Synchronization in Packet Networks. NTPv4 and IEEE 1588. Karen O Donoghue +1-540-653-1567

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

Precision Time Protocol (PTP/IEEE-1588)

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

Network Time Protocol (NTP) General Overview

Wide Area Monitoring, Control, and Protection

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

3.7. Clock Synch hronisation

T200, PTP/IEEE 1588 Grandmaster Clock and

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

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

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

Time Synchronization in IP Networks J.M.Suri, DDG(I), TEC B.K.Nath, Dir(I), TEC

Redes de Comunicação em Ambientes Industriais Aula 7

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

Table of Contents. Cisco Network Time Protocol: Best Practices White Paper

Technical Bulletin. Enabling Arista Advanced Monitoring. Overview

Precision Clock Synchronization

Transporting PTP messages over MPLS networks using a link local addressing draft-jobert-tictoc-ptp-link-local-00 TICTOC WG

Accordingly, it is useful to explore alternative access strategies using simpler software appropriate for less stringent accuracy expectations.

Internet Timekeeping Around the Globe 1,2

Using Network Time Protocol (NTP): Introduction and Recommended Practices

Clock Synchronization: Overview and Outlook

WHITE PAPER. Packet Time Monitoring in Your Visibility Architecture

Computer Time Synchronization

CCT vs. CCENT Skill Set Comparison

Precision Time Protocol on Linux ~ Introduction to linuxptp

VXLAN: Scaling Data Center Capacity. White Paper

LAN Switching and VLANs

802.1 AVB Support for Coordinated Shared Network

Ethernet. Ethernet. Network Devices

Computer Time Synchronization

Using & Offering Wholesale Ethernet Network and Operational Considerations

EVALUATING INDUSTRIAL ETHERNET

Course Contents CCNP (CISco certified network professional)

Indoor / Outdoor Antenna

Synchronization and precise timing in packet networks

Time Synchronization for Digital Subscriber Lines

NTP Precision Time Synchronization

ESSENTIALS. Understanding Ethernet Switches and Routers. April 2011 VOLUME 3 ISSUE 1 A TECHNICAL SUPPLEMENT TO CONTROL NETWORK

PHASOR MEASUREMENT UNIT (PMU) AKANKSHA PACHPINDE

RARP: Reverse Address Resolution Protocol

Network Virtualization and Data Center Networks Data Center Virtualization - Basics. Qin Yin Fall Semester 2013

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Internet Time Synchronization: the Network Time Protocol 1,2,3

10/100/1000 Ethernet MAC with Protocol Acceleration MAC-NET Core

A Look at SyncE and IEEE 1588

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Network Time Management Configuration. Content CHAPTER 1 SNTP CONFIGURATION CHAPTER 2 NTP FUNCTION CONFIGURATION

Managing Service Design for PTP Timing

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

Evaluating 1588v2 Performance Rev 2

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

CONTROL MICROSYSTEMS DNP3. User and Reference Manual

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

LoRa FAQs. 1 of 4 Semtech. Semtech Corporation LoRa FAQ

Document ID: FLXN111 PRODUCTS AND LICENSING

Internet Time Synchronization: the Network Time Protocol

Virtual PortChannels: Building Networks without Spanning Tree Protocol

SSVVP SIP School VVoIP Professional Certification

MPLS VPN Services. PW, VPLS and BGP MPLS/IP VPNs

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

FOUNDATION Fieldbus High Speed Ethernet Control System

Objectives. The Role of Redundancy in a Switched Network. Layer 2 Loops. Broadcast Storms. More problems with Layer 2 loops

Timing over Packet. Technical Brief

Deploying SyncE and IEEE 1588 in Wireless Backhaul

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

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

VXLAN Bridging & Routing

TDM services over IP networks

Swiss Time Systems. The new multipurpose time server for the LAN and NTP-based Distributed Time System. by MOBATIME DTS 4138.

Network Time Protocol: Best Practices White Paper

BROADCAST SMPTE ST Introduction

Synchronization Essentials of VoIP WHITE PAPER

The ISP Column A monthly column on all things Internet

Visio Enabled Solution: One-Click Switched Network Vision

OVERLAYING VIRTUALIZED LAYER 2 NETWORKS OVER LAYER 3 NETWORKS

LAN Switching Computer Networking. Switched Network Advantages. Hubs (more) Hubs. Bridges/Switches, , PPP. Interconnecting LANs

Networking 4 Voice and Video over IP (VVoIP)

- Hubs vs. Switches vs. Routers -

IP Networking. Overview. Networks Impact Daily Life. IP Networking - Part 1. How Networks Impact Daily Life. How Networks Impact Daily Life

WAN Traffic Management with PowerLink Pro100

HARTING Ha-VIS Management Software

10 Gigabit Ethernet MAC Core for Altera CPLDs. 1 Introduction. Product Brief Version February 2002

5-6-2 Time Distribution Using the Network

Course Syllabus. Fundamentals of Windows Server 2008 Network and Applications Infrastructure. Key Data. Audience. Prerequisites. At Course Completion

Overview of Network Hardware and Software. CS158a Chris Pollett Jan 29, 2007.

Gigabit Ethernet MAC. (1000 Mbps Ethernet MAC core with FIFO interface) PRODUCT BRIEF

SynchronizationoverIP Networks

Cisco Certified Network Associate Exam. Operation of IP Data Networks. LAN Switching Technologies. IP addressing (IPv4 / IPv6)

48 GE PoE-Plus + 2 GE SFP L2 Managed Switch, 375W

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

hp ProLiant network adapter teaming

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

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

Network Management. Jaakko Kotimäki. Department of Computer Science Aalto University, School of Science. 21. maaliskuuta 2016

RTP / RTCP. Announcements. Today s Lecture. RTP Info RTP (RFC 3550) I. Final Exam study guide online. Signup for project demos

How To Configure Voice Vlan On An Ip Phone

Data Communication Networks and Converged Networks

Encapsulating Voice in IP Packets

Transcription:

Synchronization in Packet Networks NTPv4 and IEEE 1588 Karen O Donoghue kodonog@pobox.com +1-540-653-1567

Objectives Provide a brief introduction to NTP and IEEE 1588 (PTP) Highlight some basic similarities and differences in the two solutions Provide information for the further investigation of either or both NTP and IEEE 1588 (PTP) 13 November 2007 2

Acknowledgements This effort draws heavily upon the work of: Dr. David Mills and the NTP development community Mr. John Eidson and the IEEE 1588 Working Group 13 November 2007 3

Network Time Protocol (NTP) NTP grew out of work done by Dr. David Mills at the University of Delaware Previous versions: 1985 - NTPv0 (RFC 958), 1988 - NTPv1 (RFC 1059), 1989 - NTPv2 (RFC 1119) Current version: 1992 - NTPv3 (RFC1305) The NTP architecture, protocol and algorithms have been evolved over the last twenty plus years The initial objective was to synchronize clocks over the global Internet Status: Millions of NTP peers deployed worldwide Well managed NTP provides accuracies of: Low tens of milliseconds on WANs, Submilliseconds on managed LANs, and Submicroseconds possible using a precision time source, hardware assists, and a managed/engineered infrastructure NTP daemon ported to almost every workstation and server platform available today All primarily based on the code distribution from ntp.org 13 November 2007 4

IEEE 1588 - Precision Time Protocol (PTP) IEEE 1588 PTP evolved out of the industrial automation and test and measurement communities Version 1 published as IEEE 1588 TM - 2002 Primary objectives included: Sub-microsecond synchronization of real-time clocks Targeted for relatively localized systems. Applicable to local areas networks supporting multicast communications (including but not limited to Ethernet ) Simple, administration free installation Supports heterogeneous systems of clocks with varying precision, resolution and stability Minimal resource requirements on networks and host components. Status Multiple independent implementations (products) emerging Successful plug-fest held in conjunction with ISPCS in October 2007 13 November 2007 5

NTP Standardization Status NTP developed outside the structure of the IETF Current definitive documents (RFC 1305 and RFC 4330) were independent submissions from Dr. Mills The Internet Engineering Task Force (IETF) NTP WG was chartered in March 2005 to develop an NTPv4 specification to include: Updated NTPv4 algorithms, IPv6 support, Enhanced Security SNTP (Simple Network Time Protocol) An NTP MIB (for monitoring and management via SNMP) Status: Protocol and Algorithms -07 draft released in July 2007. draft is 108 pages Plan to complete by 1Q 2008 MIB, Autokey, and NTP Control protocol drafts also underway Future efforts: IETF is currently discussing potential future development work for NTP. 13 November 2007 6

IEEE 1588 Standardization Status IEEE 1588 Version 2 PAR (Project Authorization Request) approved in March 2005. Scope included Layer 2 mapping, Transparent Clocks, Short Frames, IPv6, Security Version 2 Technical Work completed February 2007. Version 2 Sponsor Ballot completed August 2007 sponsor ballot version is 275 pages Status Work underway to complete sponsor ballot and proceed to recirculation ballot Target completion 1Q 2008 Future efforts: IEEE 802, ITU, and the LXI Consortium are currently discussing potential IEEE 1588 profiles The IETF is currently discussing potential future development work for IEEE 1588. 13 November 2007 7

Similarities at a Glance NTP and PTP both: Exchange time information over a packet switched network for the purposes of clock synchronization Use this exchanged time information to determine the offset between two independent clocks Form a hierarchical tree structure as the basis for the distribution of time information Assume symmetric network paths Are somewhat resilient in the presence of packet loss Use methods to reduce the impact of non-deterministic delays 13 November 2007 8

Time stamp format and timescale NTP Timestamp Format 32-bit unsigned seconds 32-bit fractions of a second (resolving to 232 picoseconds) PTP Timestamp Format 48-bit unsigned seconds 32-bit unsigned nanoseconds Timescale UTC Prime Epoch 0 hour 1 January 1900 Timescale(s) TAI Allows for alternate timescales 13 November 2007 9

Clock Types NTP Clock (Does not distinguish amongst different types of clocks) IEEE 1588 Ordinary Clock (OC) Has a single PTP port in a domain and maintains the timescale of the domain Boundary Clock (BC) Has multiple PTP ports in a domain and maintains the timescale of the domain Transparent Clock Measures the time taken for a PTP event message to transit the device Peer-to-peer transparent clocks (P2P TC) provide corrections for the propagation delay of the link in addition to the transit time End-to-end transparent clock (E2E TC) 13 November 2007 10

NTP Time Information Exchange Returnable Time Approach PTP Client Server Master Slave t 1 t 2 t 1 Sync t 2 Follow_Up t 3 t 3 t 4 t 4 Delay_Req Delay_Resp Key differences: Client/Server versus Master/Slave Additional messages (follow_up and delay_resp) 13 November 2007 11

NTP Message NTP Protocol Header Format (32 bits) LI VN Mode Strat Poll Root Delay Root Dispersion Reference Identifier Reference Timestamp (64) Originate Timestamp (64) Receive Timestamp (64) Transmit Timestamp (64) Extension Field 1 (optional) Key/Algorithm Identifier Message Hash (64 or 128) Prec Extension Field 2 (optional) NTP has a single message type NTP Modes of Operation Symmetric Active Symmetric Passive Client Server Broadcast Server Broadcast Client 13 November 2007 12

PTP Messages PTP Event Messages (timestamped) PTP General Messages (not timestamped) Sync Delay_Req Pdelay_Req Pdelay_Resp Follow_Up Pdelay_Resp_Follow_Up Announce Management Signaling 13 November 2007 13

IEEE 1588 (PTP) - Hardware Time Stamping 13 November 2007 14

Hierarchical Structure NTP and PTP both: Utilize a hierarchical structure Provide for reconfiguration of the hierarchy However: PTP has two defined protocol phases: 1) First, organize clocks into masterslave hierarchy 2) Then, each slave synchronizes to master NTP clients continuously monitor multiple servers and identify truechimers and falsetickers 13 November 2007 15

NTP - Architecture Peer 1 Peer 2 Filter 1 Filter 2 Selection and Clustering Algorithms Combining Algorithm Clock Discipline Algorithm Loop Filter Peer 3 Filter 3 NTP Messages Timestamps VFO Multiple servers/peers provide redundancy and diversity. Clock filters select best from a window of eight time offset samples. Intersection and clustering algorithms pick best truechimers and discard falsetickers. Combining algorithm computes weighted average of time offsets. Loop filter and variable frequency oscillator (VFO) implement hybrid phase/frequency-lock (P/F) feedback loop to minimize jitter and wander. From http://www.eecis.udel.edu/~mills/ntp.html 13 November 2007 16

NTP - Clock Filter Algorithm T 2 Server x T 3 θ 0 T 1 Client θ = 1 [( T T ) ( 2 1 + T3 δ = ( T4 T1 ) ( T3 T2 ) 2 T4 )] T 4 The most accurate offset θ 0 is measured at the lowest delay δ 0 (apex of the wedge scattergram). The correct time θ must lie within the wedge θ 0 ±(δ δ 0 )/2. The δ 0 is estimated as the minimum of the last eight delay measurements and (δ 0,θ 0 ) becomes the offset and delay output. Each output can be used only once and must be more recent than the previous output. From http://www.eecis.udel.edu/~mills/ntp.html 13 November 2007 17

Summary of Basic Differences NTP Client/server architecture Sophisticated client Dynamic and ongoing server selection Strictly layer 3 solution Clock filter algorithms for local clock behavior UDP/IPv4 and UDP/IPv6 only allowable transports Designed as a unicast protocol with broadcast/multicast functionality added PTP Master/slave architecture Simple slave Static master selection (Best Master Clock algorithm) Hardware timestamp capability (layer violation) No clock filter algorithms Multiple transports allowed: UDP/IPv4, UDP/IPv6, IEEE 802.3, DeviceNET, ControlNET, and IEC 61158 Type 10 currently defined) Designed as a multicast protocol with unicast functionality added 13 November 2007 18

NTP and PTP Trade-offs Pros IETF (NTP) Scalable and robust Subnet technology independent Represents the generic computing equipment market Wide scale deployment and years of experience Cons Does not address high end synchronization requirements in an open standards based manner Pros IEEE 1588 (PTP) Designed for high precision applications Industrial automation and telecom industries have real time requirements Cons Lacks the robustness and deployment experience of NTP Currently represents a niche market relative to generic computing equipment Note: Each of these solutions has some overlap and addresses some unique aspects of the problem (not an apples to apples comparison). 13 November 2007 19

Clock Coordination Service Trends Proprietary Time Coordination IRIG Network Time Protocol (NTP) IEEE 1588 (PTP) Unified Solution?? Past Present Future Multiple independent time distribution systems Multiple uncorrelated timescales per platform Unique and specialized platform time distribution solutions GPS primary time distribution system Some migration to UTC and GPS timescales Migration to standards based time distribution solutions (IRIG, NTP) Next generation robust GPS time distribution system Only one or a limited few coordinated timescales Standards based time distribution solutions using existing and emerging network infrastructure 13 November 2007 20

NTP References NTP Published Specifications RFC 4330 -- Simple Network Time Protocol (SNTP) Version 4 for IPv4, IPv6 and OSI, January 2006, Informational. Obsoletes RFC 2330, 1769. RFC 1305 -- Network Time Protocol (Version 3) Specification, Implementation and Analysis, March 1992, Draft Standard. Obsoletes RFC958, RFC1059, RFC1119. NTPv4 Draft Specification draft-ietf-ntp-ntpv4-proto-07.txt (shortly to be -08) Books Computer Network Time Synchronization: The Network Time Protocol, David L. Mills, CRC Press, 2006. Websites www.ietf.org www.eecis.udel.edu/~mills/ www.ntp.org 13 November 2007 21

IEEE 1588 (PTP) References IEEE 1588 Version 1 Published specification IEEE Std 1588 TM -2002 IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems. IEEE 1588 Version 2 Draft specification IEEE P1588 D2.1 Draft Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems, July 2007. Books Measurement, Control and Communication Using IEEE 1588, John C. Eidson, Springer-Verlag, 2006. Documents Version 1 and provides application examples. Websites www.ieee1588.nist.gov (NIST website with previous 1588 conference information) www.ispcs.org 13 November 2007 22

Questions? 13 November 2007 23

International Standards Activities IEEE 802.1AS IEEE 802.1AS Standard for Time Sensitive Applications in Bridged LANs Project Authorization Request (PAR) approved in July 2006 Status Draft in development based on IEEE 1588 Opportunity for market beyond AVB Potential for hardware time synchronization support in all IEEE 802 type interfaces (including Ethernet and wireless) Leveraging IEEE 1588 could result in more general hardware availability and market acceptance of technology. Affordable mainstream products that support precise time synchronization. 13 November 2007 24

Common Time Reference Architecture Functional Architecture Time Reference Provides a time source traceable to a national or international reference (UTC(USNO)) Time Dissemination Distribution of time and frequency information to sites, campuses, or platforms GPS is a key enabling technology Time Distribution Distribution of time and frequency to users and applications via an assortment of interfaces UTC UTC(USNO) Reference Time CTR Dissemination CTR Distribution User 13 November 2007 25

Mapping of Architecture to Components UTC GPS Most common means to distribute UTC to platform/site Common Time Reference Coordinates an ensemble including external inputs (GPS) and platform standards (Cesium) to provide a single coordinated time for the platform/site Common Time Service Distributes time to customers NTP, PPS and IRIG are common examples Manages time in local systems GPS Common Time Reference Common Time Service UTC(USNO) Reference Time CTR Dissemination CTR Distribution User 13 November 2007 26

Notional Common Time Service Architecture Time Consumer (Application) CTS API Clock Access Service Time formats Time scales Time Mgmt Local Client Clock Coord.. Service (NTP client, 1588 ordinary clock client) Local OS (POSIX) API Clock Time Manager Resource Manager Common Time Reference (GPS/NTP Server/ 1588 Master Clock) CTS components 13 November 2007 27