SlideShare a Scribd company logo
1 of 29
PAGE 1
Stories from the PTP Battlefront
STAC London – October 2016
James Wylie – Director of Technical Services
PAGE 2
Agenda
Precision Time Protocol
A Brief Recap & How it Works
Common Deployment Gotchas
A look at PTP Switches
Upstream Considerations
GPS & Grandmaster Clocks
The Downstream Perspective
Observing Time Quality
Wrap up & Summary
Take Aways & Best Practices
PAGE 3
Agenda
Precision Time Protocol
A Brief Recap & How it Works
PAGE 4
PTP Architecture Review
Distributing high quality time
Grandmaster
GPS
Server / Host
PTP Aware
Network
Network Packet
Broker
Corvil
+/- 40ns
PTP Clients
Accuracy better than 100ns is possible
with IEEE 1588 compliant hardware
PAGE 5
PTP Architecture Review
PTP switches recommended to achieve sub-microsecond
accuracy
PTP Client
PTP-enabled
switch
Grandmaster
GPS
PTP-enabled
switch
All PTP timing packets are accurately timestamped on transmit and receive
5ns/metre propagation delay on Ethernet cables.
BUT: bidirectional communication so subtract half the round-trip time to compensate
• PTPv2 includes options for Transparent Clocks & Unicast / Hybrid Mode
• Most implementations today typically use Boundary Clocks & Multicast
• Discussion today will focus upon BC & MC
PAGE 6
• All PTP messages are multicast UDP with destination ports 319 and 320
• Port 319 used for packets that need to be timestamped
• No IGMP multicast joins needed, since in a PTP-aware path each Ethernet link has got a PTP server at
one end and a PTP client at the other (no multicast routing)
• PTP Announce messages tell the client about the server and Grandmaster
• PTP Sync messages (and optional Follow_Up messages) send the time to the client
• PTP Delay_Req and Delay_Resp allow measurement of the wire RTT
PTP Operation
Point to point Multicast!
PTP Server PTP Client
Sync message (port 319) timestamped at server then client
Optional Follow_Up (port 320) just send the server-side
timestamp from the previous Sync
Delay_Req (port 319) timestamped at client then server
Delay_Resp (port 320) supplies the server-side
timestamp of the last Delay_Req
PAGE 7
Master to Slave difference = T2-T1
Slave to Master difference = T4-T3
One way latency = (Master to Slave diff+ Slave to Master diff) / 2
Offset = Master to Slave diff – One way latency
Offset = ((T2-T1)-(T4-T3))/2
PTP Operation
Slave calculates offset from Master
PTP Master PTP Slave
Sync message
Follow_Up
Delay_Request
Delay_Response
T1
T4
T3
T2
Transceiver Delay
(copper – up to 1000ns)
Transceiver Delay
PAGE 8
Optimal PTP Deployment
Key Points
PTP Client
PTP
switchGrandmaster
GPS
PTP
switch
• Point to point Master–Slave relationship across each link
• PTP Switches do not forward PTP multicast messages
• Timestamping performed in HW on interface
• Offset between Master & Slave is accurately calculated
• Not affected by other traffic on network link
M M S
S
S M
PAGE 9
Agenda
Common Deployment Gotchas
A look at PTP Switches
PAGE 10
Scenario 1
Client not receiving PTP sync messages
PTP Client
PTP
switchGrandmaster
GPS
PTP
switch
M M S
S
S M
Sync
Delay-Req
Delay-Resp
AHA!
PTP uses
multicast…
Ok, so let’s
enable
Multicast
routing
Seems to be
working
now…
Or is it?
ROOT CAUSE
PTP Not enabled on switches
PAGE 11
Scenario 2
Same fundamental issue. PTP not enabled on switches
But client is receiving sync. Why?
ICMP Join
PTP Client
PTP
switchGrandmaster
GPS
PTP
switch
M M S
S
S M
Sync
• Although seemingly working, accuracy will be severely compromised
• Not realising ROI of expensive hardware
• Could go undetected for some time
PAGE 12
Scenario 3
Path Delay not working
PTP Client
PTP
switchGrandmaster
GPS
PTP
switch
M M S
S
S M
Sync
Delay_Req
Delay_Resp
• Common Cause – Misconfiguration
• Slave unable to calculate offset, so time will be out
• Default action is often to assume zero offset
Latencies not accounted for:
• Propagation - 5ns per metre
• Transceiver delay (large with copper – up to 1us)
PAGE 13
Scenario 4
Introduction of a non-PTP switch
PTP Client
PTP
switchGrandmaster
PTP
switch
M M S
S
S M
Standard
Switch
or LL
Switch
S
M
Jitter as PTP
mixes with other
traffic
Example:
• Link speed 1Gbps
• It takes 12us to serialize a 1500 byte packet
• PTP packets getting queued have a huge
impact on achievable accuracy.
Consideration – PTP over WAN:
• Dark fibre vs Ethernet service?
PAGE 14
Agenda
Upstream Considerations
GPS & Grandmaster Clocks
PAGE 15
GPS – Accurate but vulnerable
• Physical Disturbances
• Cable cut
• Signal blocked
• Weather
• Solar Storms
• Sabotage
• Bugs
PAGE 16
• What happens?
• BMCA where resilience is provided
• GM goes into holdover and continues providing time
• Rate of drift and quality of time is dependent
upon the specification (and price) of GM
• Example 0.1 ppm = 100ns per second
• After 1 minute off by 6us
• After 10 minutes off by 60us
Grandmaster
Loss of GPS signal
Grandmaster
GPS
PAGE 17
• 26th Jan 2016 - 13us GPS error
for 12 hours
• Rogue satellite SVN-23
decommissioned
• Error pushed to 15 satellites by
ground system software
• Multiple customers logged
support tickets reporting PPS
errors of 13us
Grandmaster
Inaccurate GPS signal received
PAGE 18
• PTP is designed to publish TAI (International
Atomic time) plus the UTC offset
• Manages leap seconds – all have been
positive so far
• Current offset is 36 seconds
• Next one scheduled for December 31st 2016
• Examples where GM publishes UTC with a
zero offset, instead of TAI.
• How will clients handle the next leap second?
And how do you test that?
Grandmaster
TAI vs UTC
PAGE 19
Agenda
The Downstream Perspective
Observing Time Quality
PAGE 20
Analyzing time quality downstream
Comparison of multiple time sources and clock modeling
Grandmaster
GPS
Server / Host
PTP Enabled
Network
Network Packet
Broker
Corvil
+/- 40ns
PTP Clients
PTP
PTP
PTP
PPS (Pulse per Second)
Timestamped
Packets for
analysis
Independent
free-running
stable clock
PAGE 21
A Selection of memorable issues
Bugs and anomalies discovered in the field
• Various Grandmasters and switches with 1 microsecond of jitter
• Missing delay response messages, resulting in incorrect offset
• PTP Sync to follow-up message delay of up to 5 seconds
• PTP Switch off by 5.5us due to port mis-config 100Mbps / 10Gbps
• 3rd party PTP service providers not meeting SLAs
• Switch that appeared to sync to random offsets from UTC
• E.g. 18 minutes 19.5 seconds or 55 minutes
• Bug: Multiples of 2^40 nanoseconds
PAGE 22
• Compare elapsed
time of free-running
clock with GPS
• Plot accumulated
difference in
microseconds:
• Clock-drift of
about -4.7ppm
Lab test: Holdover Investigation
22
PAGE 23
• Wobble apparent
with pk-pk of
approx 20 us
• Regularity to
wobble
• Oscillation with
5½ min period?
Correct for clock drift
PAGE 24
• Air-conditioning
in lab cycles
roughly every 5½
mins…
• Check changes in
clock frequency:
Suspect Environmental Effect
24
PAGE 25
• Temperature
sensitivity:
-0.4ppm/C
• For every rise in
temp. of 1 degree
Celsius, clock slows
by 0.4ppm
Clock Frequency Variance
Due to Temperature Fluctuation
25
PAGE 26
PTP & UTC Traceability for MiFID II
Detection Reporting
• Track PTP against PPS
• Alert on PTP jitter over
specified threshold
• Passively monitor PTP
traffic to multiple hosts
and validate quality
• Time series of PTP
accuracy for audits
• Explicit UTC sync Y/N
flag and alerting
• Continuous Sync health
reported with order
records
PAGE 27
Agenda
Wrap up & Summary
Take Aways & Best Practices
PAGE 28
Summary
• With Boundary Clock implementation, accuracy is achieved with a
Master/Slave across each physical link.
• Multicast forwarding (across switch) is NOT required
• PTP Does NOT require a dedicated network (just PTP aware switches)
• Ensure PTP switches are enabled
• Use multiple time sources to spot anomalies
• Bugs do exist, so expect the unexpected
PAGE 29
Thank You

More Related Content

What's hot

High Definition On MPEG In Internet Protocol (Wbm Comments)
High Definition On MPEG In Internet Protocol (Wbm Comments)High Definition On MPEG In Internet Protocol (Wbm Comments)
High Definition On MPEG In Internet Protocol (Wbm Comments)Kelly Daniels
 
Precision Timing Protocol NAB2010
Precision Timing Protocol NAB2010Precision Timing Protocol NAB2010
Precision Timing Protocol NAB2010Kelly Daniels
 
features of tcp important for the web
features of tcp  important for the webfeatures of tcp  important for the web
features of tcp important for the webrinnocente
 
Tech talk network - friend or foe
Tech talk   network - friend or foeTech talk   network - friend or foe
Tech talk network - friend or foearagozin
 
Synchronization For High Frequency Trading Networks: A How To Guide
Synchronization For High Frequency Trading Networks: A How To GuideSynchronization For High Frequency Trading Networks: A How To Guide
Synchronization For High Frequency Trading Networks: A How To Guidejeremyonyan
 
RIP RTCP RTSP
RIP RTCP RTSPRIP RTCP RTSP
RIP RTCP RTSPDev Heba
 
Clock Generator/Jitter Cleaner with Integrated VCOs
Clock Generator/Jitter Cleaner with Integrated VCOsClock Generator/Jitter Cleaner with Integrated VCOs
Clock Generator/Jitter Cleaner with Integrated VCOsPremier Farnell
 
Mitigating SIP Overload Using a Control-Theoretic Approach
Mitigating SIP Overload Using a Control-Theoretic ApproachMitigating SIP Overload Using a Control-Theoretic Approach
Mitigating SIP Overload Using a Control-Theoretic ApproachYang Hong
 
Timing Generators and ClockCleaner Solutions
Timing Generators and ClockCleaner SolutionsTiming Generators and ClockCleaner Solutions
Timing Generators and ClockCleaner SolutionsPremier Farnell
 
In Service Monitoring and Assurance at ITSF 2014
In Service Monitoring and Assurance at ITSF 2014 In Service Monitoring and Assurance at ITSF 2014
In Service Monitoring and Assurance at ITSF 2014 ADVA
 

What's hot (20)

High Definition On MPEG In Internet Protocol (Wbm Comments)
High Definition On MPEG In Internet Protocol (Wbm Comments)High Definition On MPEG In Internet Protocol (Wbm Comments)
High Definition On MPEG In Internet Protocol (Wbm Comments)
 
Precision Timing Protocol NAB2010
Precision Timing Protocol NAB2010Precision Timing Protocol NAB2010
Precision Timing Protocol NAB2010
 
features of tcp important for the web
features of tcp  important for the webfeatures of tcp  important for the web
features of tcp important for the web
 
Tech talk network - friend or foe
Tech talk   network - friend or foeTech talk   network - friend or foe
Tech talk network - friend or foe
 
A Baker's dozen of TCP
A Baker's dozen of TCPA Baker's dozen of TCP
A Baker's dozen of TCP
 
Iperf Tutorial
Iperf Tutorial Iperf Tutorial
Iperf Tutorial
 
RTP.ppt
RTP.pptRTP.ppt
RTP.ppt
 
Real-Time Streaming Protocol
Real-Time Streaming Protocol Real-Time Streaming Protocol
Real-Time Streaming Protocol
 
Sania rtp
Sania rtpSania rtp
Sania rtp
 
Synchronization For High Frequency Trading Networks: A How To Guide
Synchronization For High Frequency Trading Networks: A How To GuideSynchronization For High Frequency Trading Networks: A How To Guide
Synchronization For High Frequency Trading Networks: A How To Guide
 
Rtp
RtpRtp
Rtp
 
RTP
RTPRTP
RTP
 
Rtp
RtpRtp
Rtp
 
Rtp
RtpRtp
Rtp
 
RIP RTCP RTSP
RIP RTCP RTSPRIP RTCP RTSP
RIP RTCP RTSP
 
Rtsp
RtspRtsp
Rtsp
 
Clock Generator/Jitter Cleaner with Integrated VCOs
Clock Generator/Jitter Cleaner with Integrated VCOsClock Generator/Jitter Cleaner with Integrated VCOs
Clock Generator/Jitter Cleaner with Integrated VCOs
 
Mitigating SIP Overload Using a Control-Theoretic Approach
Mitigating SIP Overload Using a Control-Theoretic ApproachMitigating SIP Overload Using a Control-Theoretic Approach
Mitigating SIP Overload Using a Control-Theoretic Approach
 
Timing Generators and ClockCleaner Solutions
Timing Generators and ClockCleaner SolutionsTiming Generators and ClockCleaner Solutions
Timing Generators and ClockCleaner Solutions
 
In Service Monitoring and Assurance at ITSF 2014
In Service Monitoring and Assurance at ITSF 2014 In Service Monitoring and Assurance at ITSF 2014
In Service Monitoring and Assurance at ITSF 2014
 

Viewers also liked

MiFID II Compliance Solution from Corvil
MiFID II Compliance Solution from CorvilMiFID II Compliance Solution from Corvil
MiFID II Compliance Solution from CorvilCorvil
 
Petrichor Energy (TSX.V - PTP) Corporate Presentation
Petrichor Energy (TSX.V - PTP) Corporate PresentationPetrichor Energy (TSX.V - PTP) Corporate Presentation
Petrichor Energy (TSX.V - PTP) Corporate PresentationViral Network Inc
 
Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...
Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...
Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...idescitation
 
Stp study chhenai
Stp study chhenaiStp study chhenai
Stp study chhenaiIshfaq Mohd
 
Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Sri Prasanna
 
Compliance Guide for NFA-Registered Firms
Compliance Guide for NFA-Registered FirmsCompliance Guide for NFA-Registered Firms
Compliance Guide for NFA-Registered FirmsActiance, Inc.
 
Insperity Business Confidence Survey Q2 2015 [Infographic]
Insperity Business Confidence Survey Q2 2015 [Infographic]Insperity Business Confidence Survey Q2 2015 [Infographic]
Insperity Business Confidence Survey Q2 2015 [Infographic]Insperity
 
Linking Open Government Data at Scale
Linking Open Government Data at Scale Linking Open Government Data at Scale
Linking Open Government Data at Scale Bernadette Hyland-Wood
 
Episode 5 Justin Somaini of Box.com
Episode 5 Justin Somaini of Box.comEpisode 5 Justin Somaini of Box.com
Episode 5 Justin Somaini of Box.comContrast Security
 
Data on demand flexible archiving in a big content world
Data on demand   flexible archiving in a big content worldData on demand   flexible archiving in a big content world
Data on demand flexible archiving in a big content worldActuate Corporation
 
Zaptech Solutions - Software Development Company
Zaptech Solutions - Software Development CompanyZaptech Solutions - Software Development Company
Zaptech Solutions - Software Development CompanyZaptech Solutions
 
Infographic: 10 Jaw-dropping Skype for Business Stats
Infographic: 10 Jaw-dropping Skype for Business StatsInfographic: 10 Jaw-dropping Skype for Business Stats
Infographic: 10 Jaw-dropping Skype for Business StatsExinda
 
KeyBank Accruent Expesite Case Study
KeyBank Accruent Expesite Case StudyKeyBank Accruent Expesite Case Study
KeyBank Accruent Expesite Case StudyAccruent
 
Mhta.private.cloud.final.16.9
Mhta.private.cloud.final.16.9Mhta.private.cloud.final.16.9
Mhta.private.cloud.final.16.9Virteva Inc.
 
Call Management Services Should be Part of Every Business Telephone System
Call Management Services Should be Part of Every Business Telephone SystemCall Management Services Should be Part of Every Business Telephone System
Call Management Services Should be Part of Every Business Telephone SystemMahindra Comviva
 

Viewers also liked (20)

MiFID II Compliance Solution from Corvil
MiFID II Compliance Solution from CorvilMiFID II Compliance Solution from Corvil
MiFID II Compliance Solution from Corvil
 
Petrichor Energy (TSX.V - PTP) Corporate Presentation
Petrichor Energy (TSX.V - PTP) Corporate PresentationPetrichor Energy (TSX.V - PTP) Corporate Presentation
Petrichor Energy (TSX.V - PTP) Corporate Presentation
 
Mikko lin++0429 myanmar brief 2014
Mikko lin++0429 myanmar brief 2014Mikko lin++0429 myanmar brief 2014
Mikko lin++0429 myanmar brief 2014
 
Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...
Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...
Conducted EMI Reduction Accomplished via IEEE 1588 PTP for Grid Connected Par...
 
Stp study chhenai
Stp study chhenaiStp study chhenai
Stp study chhenai
 
Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)Clock Synchronization (Distributed computing)
Clock Synchronization (Distributed computing)
 
Compliance Guide for NFA-Registered Firms
Compliance Guide for NFA-Registered FirmsCompliance Guide for NFA-Registered Firms
Compliance Guide for NFA-Registered Firms
 
2014 Ecommerce Holiday Prep
2014 Ecommerce Holiday Prep2014 Ecommerce Holiday Prep
2014 Ecommerce Holiday Prep
 
Insperity Business Confidence Survey Q2 2015 [Infographic]
Insperity Business Confidence Survey Q2 2015 [Infographic]Insperity Business Confidence Survey Q2 2015 [Infographic]
Insperity Business Confidence Survey Q2 2015 [Infographic]
 
Linking Open Government Data at Scale
Linking Open Government Data at Scale Linking Open Government Data at Scale
Linking Open Government Data at Scale
 
Real time analytics-inthe_cloud
Real time analytics-inthe_cloudReal time analytics-inthe_cloud
Real time analytics-inthe_cloud
 
Episode 5 Justin Somaini of Box.com
Episode 5 Justin Somaini of Box.comEpisode 5 Justin Somaini of Box.com
Episode 5 Justin Somaini of Box.com
 
Data on demand flexible archiving in a big content world
Data on demand   flexible archiving in a big content worldData on demand   flexible archiving in a big content world
Data on demand flexible archiving in a big content world
 
Zaptech Solutions - Software Development Company
Zaptech Solutions - Software Development CompanyZaptech Solutions - Software Development Company
Zaptech Solutions - Software Development Company
 
KServe Retail Outlet
KServe Retail OutletKServe Retail Outlet
KServe Retail Outlet
 
Infographic: 10 Jaw-dropping Skype for Business Stats
Infographic: 10 Jaw-dropping Skype for Business StatsInfographic: 10 Jaw-dropping Skype for Business Stats
Infographic: 10 Jaw-dropping Skype for Business Stats
 
Product Engineering
Product EngineeringProduct Engineering
Product Engineering
 
KeyBank Accruent Expesite Case Study
KeyBank Accruent Expesite Case StudyKeyBank Accruent Expesite Case Study
KeyBank Accruent Expesite Case Study
 
Mhta.private.cloud.final.16.9
Mhta.private.cloud.final.16.9Mhta.private.cloud.final.16.9
Mhta.private.cloud.final.16.9
 
Call Management Services Should be Part of Every Business Telephone System
Call Management Services Should be Part of Every Business Telephone SystemCall Management Services Should be Part of Every Business Telephone System
Call Management Services Should be Part of Every Business Telephone System
 

Similar to Stories from the PTP Battlefront - Corvil at STAC London

High performance browser networking ch1,2,3
High performance browser networking ch1,2,3High performance browser networking ch1,2,3
High performance browser networking ch1,2,3Seung-Bum Lee
 
Field Measurement Options for Network Operators
Field Measurement Options for Network OperatorsField Measurement Options for Network Operators
Field Measurement Options for Network OperatorsADVA
 
Timing and synchronization for 5G over optical networks
Timing and synchronization for 5G over optical networksTiming and synchronization for 5G over optical networks
Timing and synchronization for 5G over optical networksADVA
 
Synchronization Protection and Redundancy in NG Networks
Synchronization Protection and Redundancy in NG NetworksSynchronization Protection and Redundancy in NG Networks
Synchronization Protection and Redundancy in NG NetworksADVA
 
Synchronization protection & redundancy in ng networks itsf 2015
Synchronization protection & redundancy in ng networks   itsf 2015Synchronization protection & redundancy in ng networks   itsf 2015
Synchronization protection & redundancy in ng networks itsf 2015Daniel Sproats
 
Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...
Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...
Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...ADVA
 
Performance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdfPerformance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdfPhcng785014
 
Options for time-sensitive networking for 5G fronthaul
Options for time-sensitive networking for 5G fronthaulOptions for time-sensitive networking for 5G fronthaul
Options for time-sensitive networking for 5G fronthaulADVA
 
Methods for Improving NTP
Methods for Improving NTPMethods for Improving NTP
Methods for Improving NTPADVA
 
Evaluation of Precision Time Synchronisation Methods for Substation Applications
Evaluation of Precision Time Synchronisation Methods for Substation ApplicationsEvaluation of Precision Time Synchronisation Methods for Substation Applications
Evaluation of Precision Time Synchronisation Methods for Substation ApplicationsDavid Ingram
 
Network Application Performance
Network Application PerformanceNetwork Application Performance
Network Application PerformanceShumon Huque
 
Designing TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion ControlDesigning TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion Controlsoohyunc
 
SWIFT: Tango's Infrastructure For Real-Time Video Call Service
SWIFT: Tango's Infrastructure For Real-Time Video Call ServiceSWIFT: Tango's Infrastructure For Real-Time Video Call Service
SWIFT: Tango's Infrastructure For Real-Time Video Call ServiceMeng ZHANG
 
Assured timing for power networks
Assured timing for power networksAssured timing for power networks
Assured timing for power networksAdtran
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfWifiCren
 
Improving NTP Installed Base Time Accuracy
Improving NTP Installed Base Time AccuracyImproving NTP Installed Base Time Accuracy
Improving NTP Installed Base Time AccuracyADVA
 
RIPE 80: Buffers and Protocols
RIPE 80: Buffers and ProtocolsRIPE 80: Buffers and Protocols
RIPE 80: Buffers and ProtocolsAPNIC
 
ePRTC in data centers – GNSS backup as a service (GBaaS)
ePRTC in data centers – GNSS backup as a service (GBaaS)ePRTC in data centers – GNSS backup as a service (GBaaS)
ePRTC in data centers – GNSS backup as a service (GBaaS)ADVA
 

Similar to Stories from the PTP Battlefront - Corvil at STAC London (20)

High performance browser networking ch1,2,3
High performance browser networking ch1,2,3High performance browser networking ch1,2,3
High performance browser networking ch1,2,3
 
Field Measurement Options for Network Operators
Field Measurement Options for Network OperatorsField Measurement Options for Network Operators
Field Measurement Options for Network Operators
 
Timing and synchronization for 5G over optical networks
Timing and synchronization for 5G over optical networksTiming and synchronization for 5G over optical networks
Timing and synchronization for 5G over optical networks
 
Synchronization Protection and Redundancy in NG Networks
Synchronization Protection and Redundancy in NG NetworksSynchronization Protection and Redundancy in NG Networks
Synchronization Protection and Redundancy in NG Networks
 
Synchronization protection & redundancy in ng networks itsf 2015
Synchronization protection & redundancy in ng networks   itsf 2015Synchronization protection & redundancy in ng networks   itsf 2015
Synchronization protection & redundancy in ng networks itsf 2015
 
Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...
Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...
Time sync: Existing mobile networks need to be ready for 5G and time-sensitiv...
 
Performance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdfPerformance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdf
 
Options for time-sensitive networking for 5G fronthaul
Options for time-sensitive networking for 5G fronthaulOptions for time-sensitive networking for 5G fronthaul
Options for time-sensitive networking for 5G fronthaul
 
Fast Convergence Techniques
Fast Convergence TechniquesFast Convergence Techniques
Fast Convergence Techniques
 
Methods for Improving NTP
Methods for Improving NTPMethods for Improving NTP
Methods for Improving NTP
 
Evaluation of Precision Time Synchronisation Methods for Substation Applications
Evaluation of Precision Time Synchronisation Methods for Substation ApplicationsEvaluation of Precision Time Synchronisation Methods for Substation Applications
Evaluation of Precision Time Synchronisation Methods for Substation Applications
 
Network Application Performance
Network Application PerformanceNetwork Application Performance
Network Application Performance
 
Transport Layer
Transport LayerTransport Layer
Transport Layer
 
Designing TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion ControlDesigning TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion Control
 
SWIFT: Tango's Infrastructure For Real-Time Video Call Service
SWIFT: Tango's Infrastructure For Real-Time Video Call ServiceSWIFT: Tango's Infrastructure For Real-Time Video Call Service
SWIFT: Tango's Infrastructure For Real-Time Video Call Service
 
Assured timing for power networks
Assured timing for power networksAssured timing for power networks
Assured timing for power networks
 
Aceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdfAceleracion TCP Mikrotik.pdf
Aceleracion TCP Mikrotik.pdf
 
Improving NTP Installed Base Time Accuracy
Improving NTP Installed Base Time AccuracyImproving NTP Installed Base Time Accuracy
Improving NTP Installed Base Time Accuracy
 
RIPE 80: Buffers and Protocols
RIPE 80: Buffers and ProtocolsRIPE 80: Buffers and Protocols
RIPE 80: Buffers and Protocols
 
ePRTC in data centers – GNSS backup as a service (GBaaS)
ePRTC in data centers – GNSS backup as a service (GBaaS)ePRTC in data centers – GNSS backup as a service (GBaaS)
ePRTC in data centers – GNSS backup as a service (GBaaS)
 

Recently uploaded

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 

Recently uploaded (20)

Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 

Stories from the PTP Battlefront - Corvil at STAC London

  • 1. PAGE 1 Stories from the PTP Battlefront STAC London – October 2016 James Wylie – Director of Technical Services
  • 2. PAGE 2 Agenda Precision Time Protocol A Brief Recap & How it Works Common Deployment Gotchas A look at PTP Switches Upstream Considerations GPS & Grandmaster Clocks The Downstream Perspective Observing Time Quality Wrap up & Summary Take Aways & Best Practices
  • 3. PAGE 3 Agenda Precision Time Protocol A Brief Recap & How it Works
  • 4. PAGE 4 PTP Architecture Review Distributing high quality time Grandmaster GPS Server / Host PTP Aware Network Network Packet Broker Corvil +/- 40ns PTP Clients Accuracy better than 100ns is possible with IEEE 1588 compliant hardware
  • 5. PAGE 5 PTP Architecture Review PTP switches recommended to achieve sub-microsecond accuracy PTP Client PTP-enabled switch Grandmaster GPS PTP-enabled switch All PTP timing packets are accurately timestamped on transmit and receive 5ns/metre propagation delay on Ethernet cables. BUT: bidirectional communication so subtract half the round-trip time to compensate • PTPv2 includes options for Transparent Clocks & Unicast / Hybrid Mode • Most implementations today typically use Boundary Clocks & Multicast • Discussion today will focus upon BC & MC
  • 6. PAGE 6 • All PTP messages are multicast UDP with destination ports 319 and 320 • Port 319 used for packets that need to be timestamped • No IGMP multicast joins needed, since in a PTP-aware path each Ethernet link has got a PTP server at one end and a PTP client at the other (no multicast routing) • PTP Announce messages tell the client about the server and Grandmaster • PTP Sync messages (and optional Follow_Up messages) send the time to the client • PTP Delay_Req and Delay_Resp allow measurement of the wire RTT PTP Operation Point to point Multicast! PTP Server PTP Client Sync message (port 319) timestamped at server then client Optional Follow_Up (port 320) just send the server-side timestamp from the previous Sync Delay_Req (port 319) timestamped at client then server Delay_Resp (port 320) supplies the server-side timestamp of the last Delay_Req
  • 7. PAGE 7 Master to Slave difference = T2-T1 Slave to Master difference = T4-T3 One way latency = (Master to Slave diff+ Slave to Master diff) / 2 Offset = Master to Slave diff – One way latency Offset = ((T2-T1)-(T4-T3))/2 PTP Operation Slave calculates offset from Master PTP Master PTP Slave Sync message Follow_Up Delay_Request Delay_Response T1 T4 T3 T2 Transceiver Delay (copper – up to 1000ns) Transceiver Delay
  • 8. PAGE 8 Optimal PTP Deployment Key Points PTP Client PTP switchGrandmaster GPS PTP switch • Point to point Master–Slave relationship across each link • PTP Switches do not forward PTP multicast messages • Timestamping performed in HW on interface • Offset between Master & Slave is accurately calculated • Not affected by other traffic on network link M M S S S M
  • 9. PAGE 9 Agenda Common Deployment Gotchas A look at PTP Switches
  • 10. PAGE 10 Scenario 1 Client not receiving PTP sync messages PTP Client PTP switchGrandmaster GPS PTP switch M M S S S M Sync Delay-Req Delay-Resp AHA! PTP uses multicast… Ok, so let’s enable Multicast routing Seems to be working now… Or is it? ROOT CAUSE PTP Not enabled on switches
  • 11. PAGE 11 Scenario 2 Same fundamental issue. PTP not enabled on switches But client is receiving sync. Why? ICMP Join PTP Client PTP switchGrandmaster GPS PTP switch M M S S S M Sync • Although seemingly working, accuracy will be severely compromised • Not realising ROI of expensive hardware • Could go undetected for some time
  • 12. PAGE 12 Scenario 3 Path Delay not working PTP Client PTP switchGrandmaster GPS PTP switch M M S S S M Sync Delay_Req Delay_Resp • Common Cause – Misconfiguration • Slave unable to calculate offset, so time will be out • Default action is often to assume zero offset Latencies not accounted for: • Propagation - 5ns per metre • Transceiver delay (large with copper – up to 1us)
  • 13. PAGE 13 Scenario 4 Introduction of a non-PTP switch PTP Client PTP switchGrandmaster PTP switch M M S S S M Standard Switch or LL Switch S M Jitter as PTP mixes with other traffic Example: • Link speed 1Gbps • It takes 12us to serialize a 1500 byte packet • PTP packets getting queued have a huge impact on achievable accuracy. Consideration – PTP over WAN: • Dark fibre vs Ethernet service?
  • 15. PAGE 15 GPS – Accurate but vulnerable • Physical Disturbances • Cable cut • Signal blocked • Weather • Solar Storms • Sabotage • Bugs
  • 16. PAGE 16 • What happens? • BMCA where resilience is provided • GM goes into holdover and continues providing time • Rate of drift and quality of time is dependent upon the specification (and price) of GM • Example 0.1 ppm = 100ns per second • After 1 minute off by 6us • After 10 minutes off by 60us Grandmaster Loss of GPS signal Grandmaster GPS
  • 17. PAGE 17 • 26th Jan 2016 - 13us GPS error for 12 hours • Rogue satellite SVN-23 decommissioned • Error pushed to 15 satellites by ground system software • Multiple customers logged support tickets reporting PPS errors of 13us Grandmaster Inaccurate GPS signal received
  • 18. PAGE 18 • PTP is designed to publish TAI (International Atomic time) plus the UTC offset • Manages leap seconds – all have been positive so far • Current offset is 36 seconds • Next one scheduled for December 31st 2016 • Examples where GM publishes UTC with a zero offset, instead of TAI. • How will clients handle the next leap second? And how do you test that? Grandmaster TAI vs UTC
  • 19. PAGE 19 Agenda The Downstream Perspective Observing Time Quality
  • 20. PAGE 20 Analyzing time quality downstream Comparison of multiple time sources and clock modeling Grandmaster GPS Server / Host PTP Enabled Network Network Packet Broker Corvil +/- 40ns PTP Clients PTP PTP PTP PPS (Pulse per Second) Timestamped Packets for analysis Independent free-running stable clock
  • 21. PAGE 21 A Selection of memorable issues Bugs and anomalies discovered in the field • Various Grandmasters and switches with 1 microsecond of jitter • Missing delay response messages, resulting in incorrect offset • PTP Sync to follow-up message delay of up to 5 seconds • PTP Switch off by 5.5us due to port mis-config 100Mbps / 10Gbps • 3rd party PTP service providers not meeting SLAs • Switch that appeared to sync to random offsets from UTC • E.g. 18 minutes 19.5 seconds or 55 minutes • Bug: Multiples of 2^40 nanoseconds
  • 22. PAGE 22 • Compare elapsed time of free-running clock with GPS • Plot accumulated difference in microseconds: • Clock-drift of about -4.7ppm Lab test: Holdover Investigation 22
  • 23. PAGE 23 • Wobble apparent with pk-pk of approx 20 us • Regularity to wobble • Oscillation with 5½ min period? Correct for clock drift
  • 24. PAGE 24 • Air-conditioning in lab cycles roughly every 5½ mins… • Check changes in clock frequency: Suspect Environmental Effect 24
  • 25. PAGE 25 • Temperature sensitivity: -0.4ppm/C • For every rise in temp. of 1 degree Celsius, clock slows by 0.4ppm Clock Frequency Variance Due to Temperature Fluctuation 25
  • 26. PAGE 26 PTP & UTC Traceability for MiFID II Detection Reporting • Track PTP against PPS • Alert on PTP jitter over specified threshold • Passively monitor PTP traffic to multiple hosts and validate quality • Time series of PTP accuracy for audits • Explicit UTC sync Y/N flag and alerting • Continuous Sync health reported with order records
  • 27. PAGE 27 Agenda Wrap up & Summary Take Aways & Best Practices
  • 28. PAGE 28 Summary • With Boundary Clock implementation, accuracy is achieved with a Master/Slave across each physical link. • Multicast forwarding (across switch) is NOT required • PTP Does NOT require a dedicated network (just PTP aware switches) • Ensure PTP switches are enabled • Use multiple time sources to spot anomalies • Bugs do exist, so expect the unexpected