Ptp packet over udp/ipv6, Ptp packet over udp/ipv6 –27 – Altera 10-Gbps Ethernet MAC MegaCore Function User Manual
Page 94

Chapter 7: Functional Description
7–27
IEEE 1588v2
February 2014
Altera Corporation
10-Gbps Ethernet MAC MegaCore Function User Guide
7.9.4.3. PTP Packet over UDP/IPv6
Figure 7–16
shows the format of the PTP packet transported over the UDP/IPv6
protocol. Checksum calculation is mandatory for the UDP/IPv6 protocol. You must
extend 2 bytes at the end of the UDP payload of the PTP packet. The MAC function
modifies the extended bytes to ensure that the UDP checksum remains
uncompromised.
Figure 7–16. PTP Packet over UDP/IPv6
Note to
Figure 7–16
:
(1) For packets with VLAN or Stacked VLAN tag, add 4 or 8 octets offsets before the length/type field.
Version | Traffic Class | Flow Label
Payload Length
4 Octet
2 Octets
Source IP Address
16 Octets
Destination IP Address
16 Octets
Source Port
2 Octets
Destination Port = 319 / 320
2 Octets
Hop Limit
Next Header = 0x11
1 Octet
1 Octet
Length/Type = 0x86DD
Source Address
Destination Address
2 Octets
6 Octets
6 Octets
Checksum
Length
2 Octets
2 Octets
flagField
correctionField
transportSpecific | messageType
reserved | versionPTP
reserved
1 Octet
1 Octet
1 Octet
2 Octets
8 Octets
reserved
4 Octets
SourcePortIdentify
10 Octets
sequenceId
2 Octets
controlField
1 Octet
logMessageInterval
1 Octet
TimeStamp
Payload
10 Octets
0..1500/9600 Octets
extended bytes
2 Octets
CRC
4 Octets
domainNumber
messageLength
2 Octets
1 Octet
MAC Header
UDP Header
IP Header
PTP Header
(1)