Blog

Ethernet for Timing

July 07, 2017 | BY: Andrew McCoubrey

Download PDF

Add another entry to the growing list of uses for a converged Ethernet network: time. The same links that carry sensor, control and communication data can also allow connected devices to synchronize their clocks with sub-microsecond precision. Using the IEEE 1588 Precision Timing Protocol (PTP) and the timing hardware built into new switches and network adapters, systems can use the network to deliver the precision timing needed for real-time and sensor processing applications.

 

From Network Time to Precision Time

Using the network to set and synchronize time is not a new idea – the Network Time Protocol (NTP) is one of the oldest services still used on the Internet. Using a time server, a computer can set its clock to within a few milliseconds of the “true” time of day. This level of precision is good enough for many applications that only need the date and time for administration. But many applications need precision synchronization between modules – for example to coordinate motion controls or fuse data from multiple sensors.

Embedded systems that need synchronization between modules use a variety of approaches. Some distribute “radial” clock and reset signals over a backplane to support digital counters that increment in lockstep. Others synchronize using a periodic pulse such as the 1PPS signal produced by some GPS receivers. Distributing and processing these specialized sync signals can require additional wiring and specialized hardware.

By using IEEE 1588 PTP, distributed embedded systems can achieve sub-microsecond synchronization using their built-in Ethernet interfaces. When all the modules in a system, including the Ethernet switch, feature PTPv2 support in hardware, synchronization error can be as low as a few nanoseconds. This level of performance is good enough for some of the most demanding real-time applications, and is possible with off-the-shelf components.

 

Implementing PTP

Precision Time Protocol can run in software on any hardware with Ethernet/IP interfaces. Reference implementations for the “ptpd” are freely available for a variety of platforms. By using software alone, on a local-area network (LAN), connected systems can typically be synchronized within a few microseconds. With this approach, most of the sync error arises from the delays as packets are transmitted and then forwarded through the network. To reduce this error, we need support in the network hardware.

Network devices with support for IEEE 1588-2008 (PTPv2) can use “hardware timestamping” to track the time it takes packets to move through network devices. By adjusting for the time spend transiting a network switch, or the adapter on a computer, they can eliminate the error associated with network latency. When combined with suitable drivers, sync within a few nanoseconds becomes possible.

 

PTP for Real-Time Networking

Synchronization is critical to a variety of real-time applications that combine data from multiple networked components. But synchronization can also be used to improve the performance of the network.

In a typical Ethernet/IP network, traffic from various applications travels over shared links. If multiple applications send at the same time, there can be congestion, causing packets to be delayed. These unpredictable delays, or “jitter” can be a serious problem for real-time systems. To ensure predictable forwarding delays, some systems divide up the network to prevent congestion. “Time division multiplexing” (TDM) gives each connected device a slot where it’s allowed to send, and devices take turns.

Recently, PTP has become a key enabler for the family of IEEE 802.1 standards for “Time Sensitive Networking” (TSN). These standards provide mechanisms that allow applications to divide up the network to ensure predictable forwarding of audio, video and other time-sensitive traffic. Support for these standards has just started to become available in commercial networking devices.

 

Get in Sync

Products with hardware support for PTP are available today. If your application needs high-precision synchronization, for real-time or time-sensitive processing, PTP may provide a low-cost off-the-shelf solution.

For more information read our White Paper: Network Time – Using Ethernet for Synchronization

Author’s Biography

Andrew McCoubrey

Senior Product Manager, Switching and Routing Solutions

Andrew McCoubrey is the Senior Product Manager for switching and routing products in the C4 Solutions group. He joined Curtiss-Wright from Cisco Systems where he was a product manager for Catalyst switching. His networking industry experience ranges from core routers to enterprise switching and embedded Ethernet. Andrew holds a Bachelor of Engineering in Computer Engineering from McGill University and an MBA from the University of Toronto.

Share This Article

  • Share on Linkedin
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
Want to add a comment? Please login
Loading...
Connect With Curtiss-Wright Connect With Curtiss-Wright Connect With Curtiss-Wright
Sales

CONTACT SALES

Contact our sales team today to learn more about our products and services.

YOUR LOCATION

PRODUCT INFORMATION

Support

GET SUPPORT

Our support team can help answer your questions - contact us today.

REQUEST TYPE

SELECT BY

SELECT Topic