Precision Time Protocol (PTP/IEEE-1588)



Similar documents
The Role of Precise Timing in High-Speed, Low-Latency Trading

Securing GNSS with PTP & SyncE Adam Wertheimer Microsemi Adam.Wertheimer@microsemi.com. Power Matters

T200, PTP/IEEE 1588 Grandmaster Clock and

IEEE-1588 Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems

Evaluating 1588v2 Performance Rev 2

Precision Time Protocol on Linux ~ Introduction to linuxptp

Delivering NIST Time to Financial Markets Via Common-View GPS Measurements

Choosing the correct Time Synchronization Protocol and incorporating the 1756-TIME module into your Application

Indoor / Outdoor Antenna

Precision Clock Synchronization

How To Run A Gps Time Server In A Gpx Device In A Powerbox (Gps) On A Gpm (Gpl) Or Ipa (Gpt) Device

Synchronizace a stabilita. Měření SyncE a 1588v2 PTP s přístroji VeEX nové vlastnosti

Enable customers to optimally tune their network performance with real time information and proactive recommendations.

Synchronization and precise timing in packet networks

Best Practices for Testing Ethernet and Network Synchronization at the Cell Site

SYNCHRONIZATION IN PACKET NETWORKS: TIMING METRICS AND MONITORING

Field Measurement Methodologies for Synchronization in Mobile Networks Neil Hobbs Director EMEA Technical Sales Support

AN NTP STRATUM-ONE SERVER FARM FED BY IEEE-1588

Contents. Connection Guide. What is Dante? Connections Network Set Up System Examples Copyright 2015 ROLAND CORPORATION

High-Stability Time Adjustment with Real-Time Clock Module

Welcome. People Power Partnership PROFIdag 2013 Peter Van Passen Sales & Business Development Manager HARTING Electric 1/44

Multicast (Group) Addresses for Layer 2 (Ethernet) Transport of IEEE 1588 PTP Messages, with Application to AVB

A Look at SyncE and IEEE 1588

Welcome. Enabling Wide Area Monitoring, Protection, and Control (WAMPAC) Systems with and the Importance of Time Synchronization

Packet Synchronization in Cellular Backhaul Networks By Patrick Diamond, PhD, Semtech Corporation

What? of-day clocks (a Residential Ethernet SG presentation) Synchronized time-of. David V James, JGG Alexei Beliaev, Gibson

List of CTS Oscillators for Telecom Timing and Synchronization

VoIP Timing and Synchronization Best Practices

Computer Time Synchronization

1 PC to WX64 direction connection with crossover cable or hub/switch

WHITE PAPER. Packet Time Monitoring in Your Visibility Architecture

LAN extensions for Instrumentation

ETHERNET TIME & SYNC. In Telecoms, Finance, Power, Broadcast,... ITSF Nice, 6 Nov 2012

TI GPS PPS Timing Application Note

Latency Monitoring Tool on Cisco Nexus Switches: Troubleshoot Network Latency

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

PHASOR MEASUREMENT UNIT (PMU) AKANKSHA PACHPINDE

AVnu Alliance Best Practices AVB Software Interfaces and Endpoint Architecture Guidelines

Wide Area Monitoring, Control, and Protection

Gigabit Ethernet Packet Capture. User s Guide

Clocks/timers, Time, and GPS

SyncServer S350. Ultra Precise & Versatile GPS Network Time Server

R&S AFQ100A, R&S AFQ100B I/Q Modulation Generator Supplement

STANDPOINT FOR QUALITY-OF-SERVICE MEASUREMENT

SyncServer S300. High Performance, Enhanced Security GPS Network Time Server

Application Note Synchronization and MIMO Capability with USRP Devices Ettus Research

Savvius Insight Initial Configuration

AN-1963 IEEE 1588 Synchronization Over Standard Networks Using the

VLAN 802.1Q. 1. VLAN Overview. 1. VLAN Overview. 2. VLAN Trunk. 3. Why use VLANs? 4. LAN to LAN communication. 5. Management port

Joint ITU-T/IEEE Workshop on Next Generation Optical Access Systems. DBA & QoS on the PON - Commonalities with Switching & Routing

SyncServer S250 S250 NETWORKING EXCELLENCE. Examples of Network Timing Configurations

TimeKeeper Documentation for Version 7.1.2

Telephone Company Lease Line Elimination. Dewey Day Principal Operational Technology Architect Pacific Gas & Electric

Technical Bulletin. Enabling Arista Advanced Monitoring. Overview

Timing over Packet. Technical Brief

Technical Brief. DualNet with Teaming Advanced Networking. October 2006 TB _v02

Domain Time II. Time Synchronization Software Suite Precise Time Synchronization for the Entire Enterprise

The ISP Column A monthly column on all things Internet

ptp++: A Precision Time Protocol Simulation Model for OMNeT++ / INET

EMX-2500 DATA SHEET FEATURES GIGABIT ETHERNET REMOTE CONTROLLER FOR PXI EXPRESS MAINFRAMES SYSTEM LEVEL FUNCTIONALITY

Achieving Low-Latency Security

Cisco CCNA Optional Semester 4 Labs Wide Area Networking LAB 1 T1 TSU WAN LINK OVERVIEW - Instructor Guide (Estimated time: 30 minutes)

Packet Synchronization over Carrier Ethernet Networks for Mobile Backhaul

Computer Time Synchronization

Layer 2 Network Encryption where safety is not an optical illusion Marko Bobinac SafeNet PreSales Engineer

DES-1005P 5-Port 10/100Mbps with 1-Port PoE Unmanaged Switch

SYNCHRONIZE DIGITAL CLOCK SYSTEM NETWORK DIGITAL CLOCK VER 1.0 DYNATEK

WHITE PAPER. Enabling 100 Gigabit Ethernet Implementing PCS Lanes

High-Performance Automated Trading Network Architectures

PRESTA 10G Platform for High-accuracy 10-Gb/s Network Monitoring

Time Calibrator Fountain Computer Products

Chapter 7 Troubleshooting

VXLAN: Scaling Data Center Capacity. White Paper

04 Internet Protocol (IP)

Internet Timekeeping Around the Globe 1,2

Infrastructure for active and passive measurements at 10Gbps and beyond

Agenda. clock tower in old city of Neuchatel ADVA Optical Networking. All rights reserved.

Trading at the Speed of Light

Technical Bulletin. Arista LANZ Overview. Overview

Cisco Bandwidth Quality Manager 3.1

Chapter 3. Enterprise Campus Network Design

CCT vs. CCENT Skill Set Comparison

What is VLAN Routing?

Evaluating the Accuracy of Maxim Real-Time Clocks (RTCs)

Device Log Export ENGLISH

IAT-1710E Integrated Access Tester

Based on Computer Networking, 4 th Edition by Kurose and Ross

LAN Switching and VLANs

TCP/IP Network Connectivity and ION Meters

Application Note. EtherCAT Master Architecture. Applicable Products: Yaskawa Servodrives with CANopen over EtherCAT

Best Practices for Leap Second Event Occurring on 30 June 2015

Deterministic Ethernet and the Intrinsic Value of Synchronization

Synchronization in. Distributed Systems. Cooperation and Coordination in. Distributed Systems. Kinds of Synchronization.

Transport and Network Layer

INTRODUCTION... 3 WHAT IS LXI?... 3 NETWORK BASICS... 4 LXI VS. GPIB... 5 LXI CORE FEATURES... 6 INTERCHANGEABLE VIRTUAL INSTRUMENT (IVI) DRIVERS...

Extreme Load Test of Hardware-accelerated Adapter against DDoS Attacks

Transcription:

White Paper W H I T E P A P E R "Smarter Timing Solutions" Precision Time Protocol (PTP/IEEE-1588) The Precision Time Protocol, as defined in the IEEE-1588 standard, provides a method to precisely synchronize computers over a Local Area Network (LAN). PTP is capable of synchronizing multiple clocks to better than 100 nanoseconds on a network specifically designed for IEEE-1588. A Network Time Server with PTP is typically referred to as an IEEE-1588 Grandmaster or PTP Grandmaster. This paper describes basic principles of PTP, information on using dual Grandmasters, and the requirements of the network to achieve sub-100 nanosecond time synchronization. PTP Synchronization Basics The protocol defines synchronization messages used between a Master and Slave clock similar to the Server and Client mode used in the Network Time Protocol (NTP). The Master is the provider of time, and the Slave synchronizes to the Master. A Grandmaster is a Master that is synchronized to a time reference such as GPS or CDMA. Messages in the protocol include Master sync message, Master delay response message, and the Slave clock delay request messages. In addition to the messages, the Best Master Clock (BMC) algorithm allows multiple Masters to negotiate the best clock for the network. Clock synchronization on the LAN requires at least one Master and one Slave. Multiple Slaves can synchronize to a single Master. The Master clock provides synchronization messages that the Slaves use to correct their local clocks. Precise timestamps are captured at the Master and Slave clocks. These timestamps are used to determine the network latency which is required to synchronize the Slave to the Master. There is a sync message transmitted typically every two seconds from the Master, and a delay request message from the Slave less frequently, about one request per minute. Four timestamps are captured between the Master and Slave clock. The timestamps are required for the Slave offset calculation. The timestamps are commonly referred to as T1, T2, T3, and T4 (see Figure 1). Figure 1. PTP Timestamps (T1 - T4)

Two delay paths must be calculated, the Master to Slave and the Slave to Master. First find the Master to Slave difference: The first timestamp is T1. It is the precise time of the sync message from the Master. This timestamp is sent in the follow-up message since the time of T1 was sampled when the sync message was transmitted on the Ethernet port. The second timestamp is T2. It is the precise time of the sync message as it is received at the Slave. The Master to Slave difference can be calculated once T1 and T2 are available at the Slave: Master to Slave difference = T2 - T1 Second, find the Slave to Master difference: The third timestamp is T3. It is the precise time of the delay request message from the Slave. The fourth timestamp is T4. It is the precise time of the delay request message when received at the Master. The Slave to Master difference can be calculated once T3 and T4 are available at the Slave. Slave to Master difference = T4 - T3 The one-way delay can be calculated once the Master to Slave and Slave to Master difference is available at the Slave: One way delay = (Master to Slave difference + Slave to Master difference) / 2 The offset is used to correct the Slave clock: Offset = Master to Slave difference One way delay or Offset = ((T2 - T1) - (T4 - T3)) / 2 Therefore, the following statements are true with respect to this algorithm, assuming constant network propagation delays and gradually changing operating conditions such as temperature: The Slave clock utilizes the offset to adjust the time to agree with the Master clock. Typically, the Slave clock will use a clock tuning algorithm that can account for network propagation delays affecting the offset and the Slave clock crystal temperature and aging effect on its stability. PTP Implementation Methods The IEEE-1588 protocol does not define how to implement PTP into a Master or Slave. Two methods have been adopted for PTP over Ethernet: PTP software timestamps and PTP hardware timestamps. The following paragraphs describe these methods. Grandmaster with Hardware Timestamping While locked to GPS, the Grandmaster clock can provide precise nanosecond timestamp resolution and accuracy better than 30 nanoseconds referenced to GPS. A Grandmaster clock incorporates a local reference oscillator that is disciplined to GPS. This oscillator is the reference clock used with dedicated hardware for the precise timestamp of the incoming delay request and outgoing sync packets. Using an oscilloscope, the 1PPS (1 pulse-per-second) output from the Grandmaster can be compared to a 1PPS output from a hardware slave (see below) to measure synchronization accuracy. The dedicated hardware approach is unaffected by operating system or network traffic latency. Slave with Hardware Timestamping Hardware timestamps with a PTP software daemon provide precise nanosecond timestamp resolution with dedicated hardware typically in a PCIe form factor (see Figure 2). The hardware slave solution has many advantages over the software slave (see below) such as an improved oscillator, a 1PPS output for measurements compared to the master (see above), and dedicated hardware that is unaffected by the operating system latency. Synchronization of better than 100 nanoseconds is achievable using either a crossover cable or a 1588 Ethernet switch.

Figure 2. PTP Slave with Hardware Timestamping Slave with Software Timestamping Software-only implementations utilize existing computer hardware and a PTP daemon (see Figure 3). The slave software solution must compensate for the internal oscillator on the computer motherboard using software timestamping. The local oscillator on the motherboard is typically of poor quality and the software timestamping is affected by the operating system latency. Measuring the software slave to the master is limited to log file statistics, as there is no 1PPS output to compare with the master. Synchronization of 10 microseconds is achievable with a software slave to a master with typical results between 10 to 100 microseconds. Figure 3. PTP Slave with Software Timestamping

Network Requirements to Achieve Sub-100 Nanosecond Synchronization Obtaining sub-100 nanosecond timing on a local area network requires an architecture that is fully IEEE-1588 compliant. The three main components are: a GPS Grandmaster clock, an Ethernet switch (transparent or boundary clock), and a PTP slave. All components must support hardware timestamping. The Grandmaster and Slave are discussed in the PTP Implementation section. Below is a discussion of the required Ethernet switch. Ethernet Switches Ethernet switches can be categorized as standard Ethernet switches and IEEE-1588 enabled Ethernet switches. A standard Ethernet switch temporarily stores packets before sending them out. The storing time of the packet is non-deterministic and network load dependent resulting in packet delay variation. The packet delay variation is the primary reason that standard Ethernet switches result in poor time synchronization even when the master and slave clock support hardware timestamping. An IEEE-1588 enabled switch is either a transparent clock or a boundary clock. Using a transparent clock or a boundary clock improves synchronization between the master and slave and ensures that the master and slave are not impacted by the affects of packet delay variation. High-Speed, Low-Latency Switches High-speed low-latency switches are characterized as standard switches when it comes to timing. High-speed low-latency store and forward switches can produce very stable and accurate synchronization under light network loads; however, they will still store packets thus increasing the packet delay variation that will negatively affect impact time synchronization. Transparent Switches A transparent switch is an Ethernet switch that handles IEEE-1588 packets differently compared to a standard switch. The transparent clock measures the time that the packet is stored in the switch. It then adds the measured time into the correction field of the follow-up message. To account for the packet delay, the slave clock uses the origin timestamp and the correction field. Boundary Clocks A boundary clock is an Ethernet switch that handles IEEE-1588 packets differently compared to a standard switch or transparent switch. The subnets to a network must isolate PTP packets when installing a boundary clock. The boundary clock acts much like an ordinary clock on the network and becomes the master clock on the isolated subnets. The boundary clock only handles PTP packets while the standard Ethernet switches or routers handle all of the other network traffic. A slave on the isolated subnet synchronizes to the boundary clock as if it were the master clock. Figure 4. PTP Slave with Hardware Timestamping & Transparent Switch Measurement

Testing Synchronization Accuracy For precise measurements the Grandmaster clock and the PTP Slave would each have a 1PPS output to measure the phase offset with an oscilloscope. See Figure 4. The synchronization accuracy and stability are dependent on the network architecture. Switches that are not 1588-compliant will add packet delay variation and impact the slave to master accuracy and stability. A crossover cable between the master and slave can be used in place of the switch to create a baseline and better understanding of the switch impact. It is also important to test synchronization capability at the intended network traffic load. Dual-Redundant Grandmaster Clocks Setting up the 1588-timing network with Dual-Redundant Grandmaster Clocks requires you to install and configure each of two Grandmasters according to the Best Master Clock (BMC) algorithm. See Figure 5. The IEEE 1588-2008 (v2) standard defines the BMC algorithm. The BMC compares the clock data of the two Grandmasters and determines the preferred clock. The clock data defines the clock characteristics and is available in the announce packet. The Grandmaster with the preferred clock data becomes the PTP Grandmaster on the network and provides timing to the Slaves. Only one PTP Grandmaster provides synchronization packets at any given time. The BMC uses the clock data to determine the Best Master Clock in the following hierarchical order: 1. Priority1: User configurable from 0-255. Lower value preferred. 2. Clock Class: Dependant on the clock being locked, in holdover, unlocked, and the epoch, either PTP or ARB. In preferred order: Locked PTP epoch, Holdover PTP epoch, Locked ARB epoch, Holdover ARB epoch, Unlocked PTP epoch, Unlocked ARB epoch. 3. Clock Accuracy: Dependant on the clock accuracy (Estimated Time Error), in preferred order: <25ns, <100ns, <250ns, <1us, <2.5us, <10us, <25us, <100us, <250us, <1ms, <2.5ms, <10ms, unknown. 4. Clock Variance: Based on the oscillator type, in preferred order: Rubidium, OCXO, or TCXO. 5. Priority2: User configurable from 0-255. Lower value preferred. 6. Unique identifier (used as a tie breaker): The port physical MAC address. Lower value preferred. Figure 5. Dual-Redundant Grandmaster Clocks

"Smarter Timing Solutions" Santa Rosa, CA, USA 1-877-749-3878 or 707-573-8633 sales@endruntechnologies.com www.endruntechnologies.com 130711