Providing time synchronization across store-and-forward communication devices using protocol-enabled switches

Information

  • Patent Application
  • 20040246996
  • Publication Number
    20040246996
  • Date Filed
    June 04, 2003
    21 years ago
  • Date Published
    December 09, 2004
    20 years ago
Abstract
Techniques for using protocol-enabled switches to provide time synchronization across store-and forward communication devices. A protocol-enabled switch according to the present techniques bypasses a store-and forward communication device for the purposes of time synchronization by merging timing packets into each subnet serviced by the store-and forward communication device, thereby avoiding the variable delays that may occur in the store-and forward communication device.
Description


BACKGROUND

[0001] A wide variety of systems including industrial systems, e-commerce systems, information systems, etc., employ packet-based communication networks. Examples of packet-based communication networks include networks that conform to Ethernet standards. The entities that communicate via a packet-based communication network may be referred to as nodes. Examples of nodes include computers, workstations, control devices, sensor devices, computational devices, information servers, etc.


[0002] The nodes in a packet-based communication network may be arranged as a set of subnets. Each subnet may provide communication among a corresponding subset of the nodes. Store-and-forward communication devices may be used to forward packets between the subnets. One example of a store-and-forward communication device is a router.


[0003] The nodes that communicate via a packet-based communication network may include local clocks. In addition, the nodes may synchronize the time values contained in their local clocks by exchanging timing packets via the packet-based communication network. For example, the nodes may implement the Precision Time Protocol (PTP) as set forth in the IEEE 1588 standard for synchronizing their local clocks by exchanging timing packets and determining the delay in timing packet transfer between nodes.


[0004] The amount of time taken by a store-and-forward communication device to forward timing packets between subnets may vary depending on the amount of other traffic underway. A variation in the time taken to forward timing packets between subnets usually causes variation in the delay of timing packet transfer between nodes. Unfortunately, a variable delay in timing packet transfer between nodes may hinder the accuracy of a time synchronization protocol such as PTP that relies on a determination of the delay in timing packet transfer.



SUMMARY OF THE INVENTION

[0005] Techniques are disclosed for using protocol-enabled switches to provide time synchronization across store-and forward communication devices. A protocol-enabled switch according to the present techniques bypasses a store-and forward communication device for the purposes of time synchronization by merging timing packets into each subnet serviced by the store-and forward communication device, thereby avoiding the variable delays that may occur in the store-and forward communication device.


[0006] A communication network according to the present techniques includes a store-and-forward communication device and a protocol-enabled switch. The store-and-forward communication device includes a set of ports each for communicating via a corresponding subnet of nodes wherein one or more of the nodes synchronize a local time using a protocol that includes determining delays in the transfer of timing packets. The protocol-enabled switch provides the timing packets to each subnet according to the protocol, thereby bypassing the store-and-forward communication device and the store-and-forward communication device does not forward the timing packets on the subnets.


[0007] Other features and advantages of the present invention will be apparent from the detailed description that follows.







BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The present invention is described with respect to particular exemplary embodiments thereof and reference is accordingly made to the drawings in which:


[0009]
FIG. 1 shows one embodiment of a communication network according to the present teachings;


[0010]
FIG. 2 shows another embodiment of a communication network according to the present teachings;


[0011]
FIG. 3 shows yet another embodiment of a communication network according to the present teachings;


[0012]
FIG. 4 shows one embodiment of a protocol-enabled switch.







DETAILED DESCRIPTION

[0013]
FIG. 1 shows one embodiment of a communication network 100 according to the present teachings. The communication network 100 includes a store-and-forward communication device 10 that enables communication among a set of subnets of nodes 30-36, 40-46, 50-56, and 60-66. Any one or more of the nodes 30-36, 40-46, 50-56, and 60-66 may include a corresponding local clock and may participate in a protocol for synchronizing their local clock by exchanging timing packets via the communication network 100. In one embodiment, the store-and-forward communication device 10 is a router.


[0014] The store-and-forward communication device 10 communicates with the nodes 30-36 via a communication link 70 and a network distribution device 20. Similarly, the store-and-forward communication device 10 communicates with the nodes 40-46, 50-56, and 60-66 via a set of communication links 72-76 and a set of network distribution devices 22-26. The store-and-forward communication device 10 includes a set of subnet ports A-D for connecting to the communication links 70-76. Each network distribution device 20-26 includes a corresponding set of relay ports A-F. The relay ports A-E in this embodiment are used for connecting to the corresponding nodes 30-36, 40-46, 50-56, and 60-66 and the corresponding communication links 70-76.


[0015] The communication network 100 includes a protocol-enabled switch 12 that handles the exchange of timing packets with nodes 30-36, 40-46, 50-56, and 60-66. The protocol-enabled switch 12 communicates with the nodes 30-36, 40-46, 50-56, and 60-66 via a set of communication links 80-86. In this embodiment, the communication links 80-86 connect between a set of switch ports A-D of the protocol-enabled switch 12 and the relay ports F of the network distribution devices 20-26. The protocol-enabled switch 12 does not forward any packets carried on the communication links 80-86.


[0016] In other embodiments, the store-and-forward communication device 10 may have any number of subnet ports and the protocol-enabled switch 12 provides a corresponding switch port for each subnet port. Similarly, the network distribution devices that connect to nodes may have any number of relay ports depending on the number of corresponding nodes.


[0017] The store-and-forward communication device 10 is configured so that it does not forward any timing packets carried on the communication links 70-76. In one embodiment, the store-and-forward communication device 10 ignores timing packets that are multicast packets with a time_to_live=1 according to the IEEE 1588 protocol. The ignoring of the timing packets by the store-and-forward communication device 10 avoids the variable delays in timing packet transfer in the communication network 100 that might otherwise occur if the store-and-forward communication device 10 were to be used to forward timing packets across subnets. Instead, the protocol-enabled switch 12 provides time synchronization functionality to the nodes 30-36, 40-46, 50-56, and 60-66 by exchanging timing packets nodes 30-36, 40-46, 50-56, and 60-66 via the communication links 80-86.


[0018] In one embodiment, the protocol-enabled switch 12 acts as a master clock that generates and transmits timing packets on each of the communication links 80-86 according to the PTP protocol set forth in the IEEE 1588 standard. The network distribution devices 20-26 relay timing packets received via their relay ports F onto their relay ports A-D. In addition, the network distribution devices 20-26 relay timing packets received via their relay ports A-D onto their relay ports F.


[0019]
FIG. 2 shows another embodiment of the communication network 100 according to the present teachings. In this embodiment, the protocol-enabled switch 12 exchanges timing packets with the nodes 30-36, 40-46, 50-56, and 60-66 via a set of communication links 120-126, a set of hubs 90-96, and a set of communication links 130-136. The communication links 120-126 connect in this embodiment to the relay ports E of the network distribution devices 20-26. The store-and-forward communication device 10 does not forward timing packets carried on the communication links 110-116 and the protocol-enabled switch 12 does not relay packets carried via the communication links 130-136.


[0020]
FIG. 3 shows yet another embodiment of the communication network 100 according to the present teachings. In this embodiment, the protocol-enabled switch 12 includes a set switch ports A-H that are segmented into groups of two. The switch ports A-B are grouped together so that the protocol-enabled switch 12 relays packets between the communication links 146 and 156. Similarly, the switch ports C-D are grouped together so that the protocol-enabled switch 12 relays packets between the communication links 144 and 154, the switch ports E-F are grouped together so that the protocol-enabled switch 12 relays packets between the communication links 142 and 152, and the switch ports G-H are grouped together so that the protocol-enabled switch 12 relays packets between the communication links 140 and 150. The protocol-enabled switch 12 does not relay packets between different groups.


[0021] The store-and-forward communication device 10 does not forward timing packets carried on the communication links 140-146. The protocol-enabled switch 12 exchanges timing packets with the nodes 30-36, 40-46, 50-56, and 60-66 via the communication links 150-156 and the relay ports E of the network distribution devices 20-26.


[0022] A variety of network distribution devices may be used to relay packets in a subnet of nodes. For example, any of the network distribution devices 20-26 may be a switch or a hub or a combination. In addition, any of the network distribution devices 20-26 may be a protocol-enabled switch that synchronizes its local master clock to the master clock 212 contained in the protocol-enabled switch 12. A master clock in a protocol-enabled switch of the network distribution devices 20-26 is then used to drive synchronization of local clocks in downstream subnets.


[0023]
FIG. 4 shows one embodiment of the protocol-enabled switch 12. The protocol-enabled switch 12 includes a set of port circuits 200-206, a switching core 210, and a PTP master clock 212.


[0024] Each port circuit 200-206 enables communication via a corresponding Ethernet communication link. Incoming packets are provided by the port circuits 200-206 to the switching core 210. The normal switching function of the switching core 210 is disabled so that packets are not forwarded among the port circuits 200-206.


[0025] The PTP master clock 212 functions as a master clock according to the PTP protocol set forth in the IEEE 1588 standard. The PTP master clock 212 generates timing packets and provides the timing packets to the switching core 210. The switching core 210 provides the timing packets to the port circuits 200-206 for transmission. Timing packets received by the port circuits 200-206 are provided to the switching core 210 and the switching core provides the received timing packets to the PTP master clock 212.


[0026] The protocol-enabled switch 12 may be a PTP enabled switch that is modified to disable relaying of packets between its ports or between groups of ports. For example, such a modification may be accomplished by altering the firmware of the switching core 210.


[0027] The foregoing detailed description of the present invention is provided for the purposes of illustration and is not intended to be exhaustive or to limit the invention to the precise embodiment disclosed. Accordingly, the scope of the present invention is defined by the appended claims.


Claims
  • 1. A communication network, comprising: store-and-forward communication device having a set of subnet ports each for communicating via a corresponding subnet of nodes wherein one or more of the nodes synchronize a local time using a protocol that includes a set of timing packets that are ignored by the store-and-forward communication device; protocol-enabled switch that provides the timing packets for each subnet according to the protocol.
  • 2. The communication network of claim 1, wherein each subnet of nodes connects to the store-and-forward communication device and the protocol-enabled switch via a corresponding network communication device.
  • 3. The communication network of claim 2, wherein the network communication device is a switch.
  • 4. The communication network of claim 2, wherein the network communication device is a hub.
  • 5. The communication network of claim 2, wherein the network communication device is another protocol enabled switch.
  • 6. The communication network of claim 1, wherein the protocol-enabled switch is configured to not relay any packets among the subnets.
  • 7. The communication network of claim 1, wherein each subnet includes a network distribution device that connects to the corresponding subnet port and to a corresponding switch port of the protocol-enabled switch.
  • 8. The communication network of claim 1, wherein each subnet includes a network distribution device that connects to the corresponding subnet port and to a corresponding switch port of the protocol-enabled switch via a corresponding hub.
  • 9. The communication network of claim 1, wherein the protocol-enabled switch includes a switch port pair for each subnet that connects between the corresponding subnet port and a network distribution device for the corresponding subnet.
  • 10. A method for providing time synchronization across a store-and-forward communication device, comprising the steps of: connecting each of a set of subnet ports of the store-and-forward communication device to a corresponding subnet of nodes wherein one or more of the nodes synchronize a local time using a protocol that includes a set of timing packets that are ignored by the store-and-forward communication device; connecting a protocol-enabled switch to the subnets of nodes such that the protocol-enabled switch provides the timing packets for each subnet according to the protocol.
  • 11. The method of claim 10, wherein the steps of connecting include the step of connecting each subnet of nodes to the store-and-forward communication device and the protocol-enabled switch via a corresponding network communication device.
  • 12. The method of claim 11, wherein the step of connecting each subnet of nodes to the store-and-forward communication device and the protocol-enabled switch via a corresponding network communication device comprises the step of connecting each subnet of nodes to the store-and-forward communication device and the protocol-enabled switch via a switch.
  • 13. The method of claim 11, wherein the step of connecting each subnet of nodes to the store-and-forward communication device and the protocol-enabled switch via a corresponding network communication device comprises the step of connecting each subnet of nodes to the store-and-forward communication device and the protocol-enabled switch via a hub.
  • 14. The method of claim 11, wherein the step of connecting each subnet of nodes to the store-and-forward communication device and the protocol-enabled switch via a corresponding network communication device comprises the step of connecting each subnet of nodes to the store-and-forward communication device and the protocol-enabled switch via another protocol enabled switch.
  • 15. The method of claim 10, further comprising the step of configuring the protocol-enabled switch to not relay any packets among the subnets.
  • 16. The method of claim 10, wherein the steps of connecting include the step of connecting a network distribution device to a corresponding subnet port and to a corresponding switch port of the protocol-enabled switch.
  • 17. The method of claim 10, wherein the steps of connecting include the step of connecting a network distribution device to a corresponding subnet port and to a corresponding switch port of the protocol-enabled switch via a corresponding hub.
  • 18. The method of claim 10, wherein the steps of connecting include the step of connecting a switch port pair for each subnet between the corresponding subnet port and a network distribution device for the corresponding subnet.