![Intel IXP45X Скачать руководство пользователя страница 832](http://html1.mh-extra.com/html/intel/ixp45x/ixp45x_developers-manual_2073092832.webp)
Intel
®
IXP45X and Intel
®
IXP46X Product Line of Network Processors—Time Synchronization
Hardware Assist (TSYNC)
Intel
®
IXP45X and Intel
®
IXP46X Product Line of Network Processors
Developer’s Manual
August 2006
832
Order Number: 306262-004US
synchronization delays, the actual timestamp will be slightly later than the desired
reference point. However, allowing for 1 pclk synchronization jitter, this is a fixed delay,
easily nulled out in the software portion of the algorithm. This fixed delay is dependent
on the 10/100 MHz selection at the PHY and therefore software needs to be able to
access this information from each of the PHYs via the shared Management Data
Interface (MDI).
When a Sync or Delay_Req messages is detected, the timestamp that was captured at
the SFD in the snapshot register is frozen or “locked” until acknowledged by the
firmware.
Each message is detected by identifying key bytes in the packet. The byte offsets
identified below are numbered starting with the 1
st
byte after the SFD and the
numbering begins at 0. Therefore “byte 74” refers to the 75
th
byte after the SFD.
19.3.1
Priority Message Support
Since there exists a wide variety of data on an industrial Ethernet network, including
both time-critical and non-time-critical data, it is desirable to support “Tagged MAC
Frames” from 802.3 which define priority based messages. A Tagged MAC Frames is
identified by the “length/type” field. If byte 12 = 0x81 and byte 13=0x00, then the
message is using the Tagged MAC Frame format, in which 4 additional bytes need to be
accounted for in the header. Therefore, if a Tagged MAC Frame is detected, all the byte
offsets mentioned below are incremented by 4.
19.3.2
Sync Message
Firmware in a time master transmits a multicast Sync message periodically over the
network at 1, 2, 8, 16, or 64 second intervals. A Sync message is defined as a value of
0x00 in byte 74 of the Ethernet frame after the start of frame delimiter.
The TSync logic will monitor the MII signals, detect when the channel has transmitted
or received a Sync message, and lock the timestamp. Furthermore, the TSync logic
captures the Sequence ID and Source UUID if a Sync message is received by a channel
configured as a time slave.
19.3.3
Follow_Up Message
Firmware in a time master transmits the timestamp, captured during a previously sent
Sync message, using a multicast Follow_Up message. No time stamping is done by the
master or slave with the Follow_Up message. A Follow_Up message is defined with a
value of 0x02 in byte 74 of the Ethernet frame after the start of frame delimiter.
Figure 189. Time Stamp Reference Point
B4320-01
Ethernet
Start of Frame
Delimiter
Preamble
Octet
First Octet
foll owing
Start of Frame
1
0
1
0
1
0
1
0
1
0
1
0
1
1
0
0
0
0
0
0
0
bit time
Message Timestamp
Point