Enhancement of IEEE 1588 synchronization using out-of-band communication path

Information

  • Patent Application
  • 20080080562
  • Publication Number
    20080080562
  • Date Filed
    September 29, 2006
    18 years ago
  • Date Published
    April 03, 2008
    16 years ago
Abstract
A system includes at least two IEEE 1588 nodes. The nodes are connected by two paths: a low latency communication path and a high bandwidth path. The clocks within the nodes are synchronized to one another at a network interface. Data and timing are transmitted on the high bandwidth path while critical timing signals are passed on the low latency communication path thereby improving timing synchronization.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 illustrates the basic IEEE-1588 operation with the master device issuing SYNC packets where timestamps TS1 and TS2 are collected (prior art).



FIG. 2 illustrates an embodiment of the invention.



FIG. 3 illustrates a LXI Class A Trigger Bus used as the out-of-band communication path.



FIG. 4 illustrates PCI-Express architecture used as the out-of-band communication.



FIG. 5 illustrates the multiple-lane nature of PCI-Express.





DETAILED DESCRIPTION

The inventive concept to improve synchronization is for both ends of a communication path generate a timestamp for a common event. These timestamps that the master device collects must be transmitted to the slave device for additional processing. As an illustrative example, the concept will be described in the following figures using IEEE-1588 SYNC and DELAY_REQ packets.



FIG. 1 illustrates the basic IEEE-1588 operation with the master device issuing SYNC packets where timestamps TS1 and TS2 are collected. The slave device issues DELAY_REQ packets where timestamps TS3 and TS4 are collected. The IEEE-1588 standard may be found at the http://ieee1588.nist.gov website.



FIG. 2 illustrates an embodiment of the invention. Both the master and slave devices 10A, 10B are bidirectionally connected by the normal network path 24, e.g. Ethernet, as well as the out-of-band communication path or low latency communication path 26.


Each device includes a processor with Media Access Control (MAC) 12A, 12B. The MAC 12A, 12B is bidirectionally communicates with the physical layer (PHY) 14A, 14B using a MII Bus 16A, 16B. The PHY 14A, 14B bidirectionally communicates with a connector, e.g. RJ45 18A, 18B. A transmit pattern detector 20A, 20B generates transmit detect (TX_DET) and transmit start-of-frame (TX_SOF) signals by monitoring the MII Bus 16. A timestamp input circuit 22A, 22B is further included.


In one embodiment, FPGA signals that exist in the current implementation are routed to the low-latency/low jitter communication path. This simplifies the design and allows the system to degrade back to standard IEEE-1588 communications when the low-latency/low-jitter communication path is unavailable.


In operation, the “forward” path (shown as a solid line) carries the SYNC signal (the TX_SOF signal of the master device) from the master device to the slave device. The timestamp of input circuit of the slave device is used to capture the time-of-arrival of this trigger. This timestamp is an alternate to timestamp TS2 (SYNC receive time).


The “reverse” path (shown as a solid line) carries the DELAY_REQ signal (the TX_SOF signal of the slave device) from the slave device to the master device. Similarly, the timestamp of the input circuit of the master device is used to capture the time-of-arrival of this trigger. This timestamp is an alternative to timestamp TS4 (DELAY_REQ receive time).


As the same signal is used on the sending side as in standard IEEE-1588 communication, the timestamp TS1 (SYNC send time) and timestamp TS3 (DELAY_REQ send time) can be used without any additional processing.


Thus, the PHY delay has been calibrated and the MII time-stamp has been adjusted accordingly. For TX packets, the time-stamp is always later to account for the PHY delay in the outbound direction. The timestamp reported in the FOLLOW_UP packet is only correct for slave devices that are time-stamping at their network interfaces. To further illustrate, when the PHY to the “out-of-band” connector delay is different from the FPGA to the “out-of-band” connector delay, the master device sends two FOLLOW_UP packets. One contains the PHY corrected time_stamp and the other contains the “out-of-band” corrected time-stamp. Alternatively, the two time-stamps may be in FOLLOW_UP message.


To address “false positives”, the monitoring circuit of the device receiving the timestamp generates the TX_SOF (transmit start of frame) on any network traffic. Only later as the packet detector has processed the necessary header bytes does it generate the TX_DET (transmit detect) signal. The TX_SOF signal leads the TX_DET signal by numerous byte times. On 100-Base-T Ethernet Frame technology, this delay equals 36 μsec and corresponds to 45 bytes from the first byte of the packet (after the preamble) to the end of the IEEE-1588 version byte.


When the solid lined “forward” and “reverse” paths are used, the receiving end is triggered on each network packet transmitted by the remote end. As the packet also follows the network path, a second timestamp is normally collected as the RX detector operates (not shown). Comparing these two timestamps, the receiver software can reject such “false positives”.


When the dashed lined “forward” and “reverse” paths are used, there are no “false positives” as the signal is generated only upon a valid pattern match by the sender. However, the signal is “late” by the same delay, e.g. 36 μsec for 100-Base-T Ethernet Frame technology, discussed above. The receiver needs to be configured to subtract out this constant value from the timestamp.


For SYNC packets, the slave device uses the timestamp resulting from the forward path rather than the timestamp from its RX detector. The master device requires no changes. The master device generates the same FOLLOW_UP packet as before (containing TS1).


For DELAY_REQ packets, the slave device behaves unaltered. When it sends the DELAY_REQ packet, its TX detector automatically generates the correct signal that traverses the “reverse” path back to the master device. The master device is configured to return the timestamp resulting, from the “reverse” path in the DELAY_RESP message.


Suitable low-latency paths include a trigger wire, coaxial cable, LXI-Trigger Bus, RF signal, optical signal, optical signal in a fiber, trace on a back-plane, signal on a ground plane, and signal on a power supply bus.



FIG. 3 illustrates a LXI Class A Trigger Bus used as the out-of-band communication path 26.


The LXI Trigger bus 26 has 8 low voltage differential signal (LVDS) pairs. The embodiment uses two of those pairs. One pair is used for SYNC “start-of-frame” signals in the “master->slave” direction. The other pair is used for reverse DELAY_REQ “start-of-frame” signals in the “slave->master” direction.


To accommodate “false positives”, since the network packet arrives later over the Ethernet path, one approach is to associate the two timestamps. Thus, any timestamps resulting from non-IEEE-1588 event packets are discarded.


In LXI Class A, the trigger bus 26 extends from device-to-device in a daisy chain fashion. To not run out of trigger lines in the reverse direction, the trigger line is time-shared. All slave devices connected to the same daisy chain are configured to send delay requests so that they are spaced out in time. During idle periods, they would tri-state that trigger line, e.g. wired or mode.


As each slave device 10B sends their DELAY_REQ, a pulse is automatically sent down the shared trigger line. The hardware on the slave side must: 1) automatically “un-tristate”, 2) send the pulse, 3) delay for a few μsec, and 4) re-tristate. The master device would see the edge and timestamp it. It is critical that the master device receive the DELAY_REQ packet over the network before the next timestamp comes down the trigger line. The DELAY_REQ signals from each slave must be sufficiently spaced apart in time such that the master device is not confused.


Alternatively, the master device 10A can participate in the time-share scheme. The scheduling of SYNC and DELAY_REQ messages must be spread out in time to avoid confusion. This is easily done as the Ethernet path may be used to achieve synchronization to better than 1 μsec so all devices have a coherent sense of time.


The inventive concept can be used to synchronize over the network similar to normal IEEE 1588 PTP while using the “out of band” path to calibrate out the IEEE1588 network path errors. To illustrate, the time-stamps from the “out-of-band” path may be used to measure end-to-end asymmetries. The network path for IEEE1588 is used when the test system is in operation thus freeing up all the trigger lines in the LXI trigger bus. At start-up and during calibration, the trigger lines can be switched into a mode such that the IEEE1588 SW measures all the delays, jitter, and asymmetries from the network path. Once calibrated, the LXI trigger bus lines are “released” for use for traditional test system triggering. Other configurations that have trigger lines, e.g. VXI or PXI, may operate similarly.



FIG. 4 illustrates PCI-Express architecture used as the out-of-band communication 26. In PCI-Express, the interconnection scheme between the devices mimics a computer network. At its core is the addition of a switch integrated circuit (IC) into the center of the PC architecture.


The “end point” devices and the host CPU must be synchronized with each other. For purposes of discussion, the “end point” devices are measurement instruments that need tight synchronization. The “switch” needs to be modified similar to an IEEE-1588 boundary clock.


To allow for synchronization, the “end points” and the “switch” must recognize the “start-of-frame” signals. The “multiple lane” nature of PCI Express is shown in FIG. 5.


A data packet, e.g. SYNC packet, gets divided into bytes that flow down different lanes. Inside the receiving device, these lines are re-assembled back into a packet. If timestamps are generated at that point, the delays and jitter introduced by the disassembly and the reassembly can be significant.


In the present invention, the byte stream directly inside the PCI Express interface application specific integrated circuit (ASIC) is monitored. Data rates are extremely fast, e.g. 400 psec bit times, 2.5 Gbps per lane. A packet recognizer is needed to collect timestamps for critical IEEE-1588-like synchronization packets. The equivalent of SYNC and DELAY_REQ packets must flow in both directions to allow for synchronization and removal of any-offset bias. Similar to standard IEEE-1588, the symmetry assumption is needed unless the system can be calibrated and asymmetries measured.


While the inventive concept has been described using IEEE-1588 SYNC and DELAY_REQ packets, improved timing synchronization may be achieved by the master device sending a periodic signal e.g. 1 pulse/second as the “event” that the slave device time-stamps.


Alternatively, the “event” can come from a source, e.g. a remote television station, outside the system. Both the master and slave devices “see” the event and thereby timestamp the event. Appropriate messages are sent between the devices so that the slave can adjust its clock appropriately.

Claims
  • 1. A system comprising: at least two nodes, each node including a clock;a low latency communication path connecting between the two nodes; anda high bandwidth path connecting between the two nodes;wherein the clocks of the nodes are synchronized to one another at a network interface using message-based time synchronization protocol.
  • 2. A system, as defined in claim 1, wherein the high bandwidth path is selected from a group including Ethernet and PCI Express.
  • 3. A system, as defined in claim 2, wherein the low-latency communication path is selected from a group that includes a trigger wire, coaxial cable, LXI-Trigger Bus, RF signal, optical signal, optical signal in a fiber, trace on a back-plane, signal on a ground plane, and signal on a power supply bus.
  • 4. A system, as defined in claim 2, wherein the low-latency path is bi-directional.
  • 5. A system, as defined in claim 2, wherein: when one of the two nodes sends an “event” packet, it can detect the transmission of the event packet transmission at the network interface;the network interface is selected from a group including MII, GMII, MII derivatives, and GMII derivatives; andan event signal corresponding to the time of transmission of the “event” packet is transmitted down the low-latency communication path, where it is timestamped by the other of the two nodes.
  • 6. A system, as defined in claim 5, wherein the other of the two nodes generates a time-stamp for event signal from the low-latency communication path.
  • 7. A system, as defined in claim 5, wherein the one of the two nodes delays sending the event signal down the low-latency communication path by a fixed delay such that the event signal corresponds to an “event” packet.
  • 8. A system, as defined in claim 5, wherein the one of the two nodes generates a time-stamp as the event signal enters the low-latency communication path.
  • 9. A system, as defined in claim 5, when the event packet is a delay request packet, the one of the two nodes accounts for the delay when it receives the corresponding event packet from the other of the two nodes via the network interface.
  • 10. A system, as defined in claim 5, when the event packet is a synchronization packet, the one of the two nodes corrects the “FOLLOW_UP” message prior to transmission.
  • 11. A system, as defined in claim 5, wherein the low-latency path is a LXI Class-A trigger bus pair.
  • 12. A system, as defined in claim 11, wherein: the event signal corresponds to generating delay request packets; andthe event signal is transmitted down the low latency path as the event packet packet is transmitted down the high bandwidth path.
  • 13. A system, as defined in claim 12, wherein the transmission of the event signal and event packet pairs are sent at widely spaced intervals to allow the same LXI Class-A trigger bus pair to be used for all delay request messages coming from all connected nodes.
  • 14. A system, as defined in claim 12, wherein two nodes arbitrate by random slot assignment over a large time window to minimize contention.
  • 15. A system, as defined in claim 12, wherein two nodes are configured to send delay request packets at specific times to minimize contention.
  • 16. A system, as defined in claim 12, wherein the nodes send event signals and event messages at different times on pre-configured time slots.
  • 17. A calibration method comprising: a first node transmitting an event packet on a high bandwidth path to a second node, each node includes a clock, the clocks being synchronized to one another at a network interface using message-based time synchronization protocol, wherein the high bandwidth path is used for operational synchronization;one of the first and second nodes detecting the event packet at the network interface and generating an event signal corresponding to the time of detection of the event packet;transmitting the event signal down a low-latency communication path connecting the first and second nodes, wherein the low-latency communication path is used for calibration synchronization;timestamping the event signal by the receiving node of the first and second nodes; andcalibrating the clock of the receiving node according to one of the event packet and the timestamp of the event signal.
  • 18. A calibration method, as in defined in claim 17, further comprising timestamping the event signal by the one of the first and second nodes.
  • 19. A calibration method, as defined in claim 17, wherein the low-latency communication path is selected from a group that includes a trigger wire, coaxial cable, LXI-Trigger Bus, RF signal, optical signal, optical signal in a fiber, trace on a back-plane, signal on a ground plane, and signal on a power supply bus.
  • 20. A method comprising: at least two nodes receiving an event signal on a common path, each node including a clock;each node generating a timestamp corresponding to the event signal;one of the two nodes transmitting its timestamp;the other of the two nodes adjusting its clock according to the timestamps.