SlideShare une entreprise Scribd logo
1  sur  35
Télécharger pour lire hors ligne
THE HITCHHIKER’S GUIDE
TO PRECISION TIME
SYNCHRONIZATION
                                       HPTS v14
                               October 24, 2011
  ksankar42@gmail.com [doubleclix.wordpress.com]
PRECISION TIME
                                SYNCHRONIZATION!



The future is an obsession ... an attraction ... an invention … an invitation
It does not matter where the
train is going, what matters is
it’s direction and your decision
to get on …
“Give me a lever long enough & a fulcrum on which to
         place it, & I shall move the world.”	



                              A carchesion is a kind of swivel or universal joint.
• 
• 
     – 
          Krishna Sankar, Lead Architect, Egnyte.com – Cloud Storage
          Past Life ; Distinguished Engineer                                         About me
              Chief subordinate to Assistant to Chief of Staff to CTO to the CEO of Cisco, Focusing on Cloud
              Computing & Data Clouds
     –        C3L Project on Storage Overlay Network Fabric for Big Data (Hadoop)
•         Co-chair : DMTF Cloud Incubator
•         ETSI STF (Electronic Digital Signatures), W3C, OASIS (TAB, SAML et al)
•         Writing a Book on Cloud Computing
     –        “Building Clouds with Amazon Web Services”; Editor Michael Swaine
•       Working on
     –      Stanford MMDS (Mining Massive Data Sets Post Graduate Certificate Course
     –      MS Bioinformatics - John Hopkins Advanced Biotechnology Studies(Started)
•       OSCON’10 “Building a Bog data Cloud”[Link], Available now as a video [Link]
•       Author : Enterprise Web 2.0 Fundamentals, Wireless LAN Security
     –        Written a few Java books. Don’t buy them – they are very old
•         Member: Scala Expert group on STM/July 2010
•         Writing code for SNIA CDMI Ref Impl – File based Object Store SPI
•         Lego Robotics : Technical Judge FLL World Festivals
Agenda	
  
 "       What	
  is	
  Time	
  Synchroniza5on	
  anyway	
  ?	
  
 "       IEEE	
  1588	
  v2	
  
 "       IETF	
  TicToc	
  
 "       ISPCS	
  2012	
  
 "       Q&A	
  …	
  
The road lies plain before me;--'tis a theme
      Single and of determined bounds; …
                - Wordsworth, The Prelude




                                                                   6
Thanks to …
The giants whose shoulders I
am standing
What is Time Synchronization
Anyway ?




                    I am monarch of all I survey;
               My right there is none to dispute;
           From the centre all round to the sea
              I am lord of the fowl and the brute
    - Cowper, The Solitude Of Alexander SelKirk
Time Synchronization



•  Different	
  than	
  Time	
  Distribu5on	
  
•  Across	
  a	
  set	
  of	
  machines	
  for	
  a	
  specific	
  applica5on	
  
    –  The	
  value	
  proposi5on	
  of	
  providing	
  precision	
  5me	
  to	
  an	
  
       applica5on	
  is	
  enormous…	
  	
  
    –  …and	
  has	
  the	
  poten5al	
  to	
  change	
  the	
  fundamental	
  
       characteris5cs	
  of	
  applica5ons	
  
•  Slowly	
  finding	
  it’s	
  way	
  into	
  routers	
  &	
  blade	
  server	
  fabrics	
  
Applications



•    Ocean	
  observatory	
  networks	
  
•    Digital	
  substa5on	
  automa5on	
  
•    Industrial	
  Automa5on	
  
•    Stock	
  Trading	
  Desks	
  
     –  Borgs	
  trading	
  based	
  on	
  arbitrage	
  
     –  Based	
  on	
  δt	
  
•  Cloud	
  Compu5ng/Storage	
  Clouds	
  
•  Telecommunica5ons	
  
•  Cellular/Network	
  frequency,	
  …	
  
Industrial: RoboTeam in Action:
    Process Relative Motion
 (IEEE 1588 establishes timing
         coordination)
T&M: data acquisition


•  IEEE	
  1588	
  5me	
  
   stamping	
  data	
  at	
  the	
  
   sensor	
  for	
  aircraY	
  stress	
  
   tes5ng	
  




                                                 Symmetricom GPS-linked
                                                 IEEE 1588 master clock
T&M: data acquisition




•  Teletronics:	
  In-­‐flight	
  
   Monitoring-­‐	
  IEEE	
  1588	
  5me	
  
   stamping	
  data	
  at	
  source	
  
T&M/Military: System
                                                                 instrumentation




•  Agilent	
  RF	
  and	
  high	
  speed	
  digital	
  instruments	
  (each	
  has	
  an	
  IEEE	
  
   1588	
  clock)	
  
Power Generation:


General Electric: Distributed Ethernet-
based control system with IEEE 1588
used for timing coordination
When I think of my own native land,
                            In a moment I seem to be there;
                               But, alas! recollection at hand
                           Soon hurries me back to despair.
                - Cowper, The Solitude Of Alexander SelKirk




    IEEE1588v2	
  PTP	
   	
  
(Precision	
  Time	
  Protocol)	
  
Objec5ves	
  of	
  IEEE	
  1588	
  
                        	
  
•  Sub-­‐microsecond	
  synchroniza5on	
  of	
  real-­‐5me	
  
   clocks	
  in	
  components	
  of	
  a	
  networked	
  distributed	
  
   measurement	
  &	
  control	
  system	
  
•  Intended	
  for	
  rela5vely	
  localized	
  systems	
  typical	
  of	
  
   financial,	
  cloud	
  &	
  industrial	
  automa5on/test	
  &	
  
   measurement	
  environments.	
  
•  Applicable	
  to	
  local	
  area	
  networks	
  suppor5ng	
  
   mul5cast	
  communica5ons	
  (including	
  but	
  not	
  
   limited	
  to	
  Ethernet)	
  
Objec5ves	
  of	
  IEEE	
  1588	
  
                       	
  
•  Simple,	
  administra5on	
  free	
  installa5on	
  
•  Support	
  heterogeneous	
  systems	
  of	
  clocks	
  with	
  
   varying	
  precision,	
  resolu5on	
  and	
  stability	
  
•  Minimal	
  resource	
  requirements	
  on	
  networks	
  and	
  
   host	
  components.	
  
PTP Communication Ports on PTP
 Devices
§  PTP uses Master-Slave model to provide packet based clock synchronization
    over Unicast and/or Multicast transport
§  Timing distribution uses a series of messages between Master and Slave PTP
    devices to achieve synchronization
§  PTP capable devices exchange messages through logical ports
§  There are three types of PTP port states:
      – PTP Master Port/clock (M): has the best quality & distributes timing info to
      Slaves.
      – PTP Slave Port/clock (S): Synchronizes its clock with a Master port.
      – PTP Passive Port: not a Master port, doesn’t synchronize to a Master port to
      avoid loops


             1588v2                             1588v2           PRC
             Clients (Slave)                    Master

                                                                BSC/RNC
                           IP/MPLS/MPLS-
                           TP
Device Roles: Clock Types for Nodes
§  There are five basic                        RNC/GPS
    PTP devices of which
    four are PTP clocks:                        GMC
    – Ordinary Clock (OC)                  M           M

    – Boundary Clock (BC)                   S          S
    – End-to-End                         OC-0          BC-0
    Transparent Clock                                  M   M

    – Peer-to-Peer
    transparent Clock                              S       S
                                                  OC-1 OC-2
    – Management node
§  Grand Master Clock
    (GMC)                                  PTP Domain
    – Ultimate source of time  RNC, GPS = External Primary Reference Clock
    within a domain (OC or BC)
PTP Device Communication Messages

§  PTP devices communicate using a set of General messages and Event
    Messages to achieve synchronization
§  General Messages play important role in synchronization and used to
    discover PTP devices, build & maintain PTP session, are not time
    stamped and consist of:
      – Follow_up: also generate timing information
      – Delay_Response: also generate timing information
      – Pdelay_Resp_Follow_Up: used in measuring link delay
      – Announce: establishes synchronization hierarchy/Device Discovery
      – Management: query & update
      – Signaling: for communication between clocks
§  Event Messages are time stamped by hardware and used for freq/time/
    phase synchronization, and consist of:
      – Sync
      – Delay_Req
      – Pdelay_Req and Pdelay_Resp
Message Stamps




Hardware assisted time stamping increases
accuracy to ns level
But not that easy
How Clock port role is determined

 §  Best Master Clock Algorithm (BMCA)specifies how a
     PTP port state transitions to different roles (Master,
     Slave, Passive)
      – Each clock determines the best master clock in its domain
      out of all clocks it can see including itself – Grand Master
      clock is defined
      – Best clock is selected based upon multiple parameters
      including user defined priority, clock class, accuracy and
      stability of the local clock
      – If there’s a tie, the decision is made upon Universally
      Unique Identifier Device (UUID) of the port
      – Port states (M/S/Pare defined
 §  Port roles can be controlled dynamically for ex: default
     IEEE 1588 BMCA or provisioned statically on a PTP
     device using alternate BMCA
Implementa5on	
  
M600	
  uses	
  
                            OCXO	
  HQ	
  




Oscillator	
  Characteris5cs
                           	
  
Lessons
                                    	
  
•  Shallow	
  Networks	
  
•  Separate	
  from	
  other	
  networks	
  
•  No	
  buffering	
  in	
  routers	
  
•  Accuracy	
  depends	
  on	
  Hardware/SoYware	
  
•  Normal	
  Distribu5on	
  rather	
  than	
  a	
  number	
  
    –  Skinny	
  ~50	
  μsecs	
  possible	
  
•  GPS	
  satellite	
  visibility	
  needed	
  for	
  Grand	
  
   Master	
  Clocks	
  
•  Most	
  of	
  financial	
  IT	
  isnin	
  basement	
  !	
  
IETF	
  Tictoc
             	
  



         The woods are lovely, dark, and deep,
                 But I have promises to keep,
               And miles to go before I sleep,
               And miles to go before I sleep.
                                         -Frost
If a problem has no solution, it
       is not a problem, but a fact,
       not to be solved but to be
       coped with, over time …
                         - Peres’s Law

ISPCS	
  2012	
  
http://www.ispcs.org/2012/
index.html
Par5cipa5on	
  
•  Papers	
  
•  Requirements	
  
   –  For	
  Transac5on	
  Systems	
  
   –  Cloud	
  Inrastructure	
  
•  Sponsorships	
  
•  Akend	
  the	
  Symposium	
  
Was it a vision, or a waking dream?
Fled is that music:—do I wake or sleep?
                 -Keats, Ode to a Nightingale

Contenu connexe

Tendances

IEEE 1588 Timing for Mobile Backhaul_Webinar
IEEE 1588 Timing for Mobile Backhaul_WebinarIEEE 1588 Timing for Mobile Backhaul_Webinar
IEEE 1588 Timing for Mobile Backhaul_Webinar
SymmetricomSYMM
 
Basic ntp configuration
Basic ntp configurationBasic ntp configuration
Basic ntp configuration
Raghu nath
 
NTP Project Presentation
NTP Project PresentationNTP Project Presentation
NTP Project Presentation
Andrew McGarry
 
Developing production OpenFlow controller with Trema
Developing production OpenFlow controller with TremaDeveloping production OpenFlow controller with Trema
Developing production OpenFlow controller with Trema
Yasunobu Chiba
 
An Application Gateway to Deploy High-quality Video Communications in Various...
An Application Gateway to Deploy High-quality Video Communications in Various...An Application Gateway to Deploy High-quality Video Communications in Various...
An Application Gateway to Deploy High-quality Video Communications in Various...
Takashi Kishida
 
Arduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceiversArduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceivers
Pavlos Kallis
 
Performance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless TranslationPerformance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless Translation
Chunghan Lee
 

Tendances (20)

IEEE 1588 Timing for Mobile Backhaul_Webinar
IEEE 1588 Timing for Mobile Backhaul_WebinarIEEE 1588 Timing for Mobile Backhaul_Webinar
IEEE 1588 Timing for Mobile Backhaul_Webinar
 
Stories from the PTP Battlefront - Corvil at STAC London
Stories from the PTP Battlefront - Corvil at STAC LondonStories from the PTP Battlefront - Corvil at STAC London
Stories from the PTP Battlefront - Corvil at STAC London
 
Basic ntp configuration
Basic ntp configurationBasic ntp configuration
Basic ntp configuration
 
Network time protocol
Network time protocolNetwork time protocol
Network time protocol
 
Network time sync solutions for security
Network time sync solutions for securityNetwork time sync solutions for security
Network time sync solutions for security
 
NTP Project Presentation
NTP Project PresentationNTP Project Presentation
NTP Project Presentation
 
synchonization PTP
synchonization PTP synchonization PTP
synchonization PTP
 
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
 
NTP Server - How it works?
NTP Server - How it works?NTP Server - How it works?
NTP Server - How it works?
 
Tremashark
TremasharkTremashark
Tremashark
 
RTP & RTCP
RTP & RTCPRTP & RTCP
RTP & RTCP
 
Developing production OpenFlow controller with Trema
Developing production OpenFlow controller with TremaDeveloping production OpenFlow controller with Trema
Developing production OpenFlow controller with Trema
 
An Application Gateway to Deploy High-quality Video Communications in Various...
An Application Gateway to Deploy High-quality Video Communications in Various...An Application Gateway to Deploy High-quality Video Communications in Various...
An Application Gateway to Deploy High-quality Video Communications in Various...
 
DIY OFDM Session
DIY OFDM SessionDIY OFDM Session
DIY OFDM Session
 
ContikiMAC : Radio Duty Cycling Protocol
ContikiMAC : Radio Duty Cycling ProtocolContikiMAC : Radio Duty Cycling Protocol
ContikiMAC : Radio Duty Cycling Protocol
 
Machine Learning Based Session Drop Prediction in LTE Networks and its SON As...
Machine Learning Based Session Drop Prediction in LTE Networks and its SON As...Machine Learning Based Session Drop Prediction in LTE Networks and its SON As...
Machine Learning Based Session Drop Prediction in LTE Networks and its SON As...
 
Arduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceiversArduino microcontroller and nRF24L01+ transceivers
Arduino microcontroller and nRF24L01+ transceivers
 
Performance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless TranslationPerformance Evaluation of GTP-U and SRv6 Stateless Translation
Performance Evaluation of GTP-U and SRv6 Stateless Translation
 
DTS_4138-timeserver
DTS_4138-timeserverDTS_4138-timeserver
DTS_4138-timeserver
 
Beyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocolsBeyond TCP: The evolution of Internet transport protocols
Beyond TCP: The evolution of Internet transport protocols
 

En vedette

Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021
Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021
Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021
Mohammed Ghaleb
 

En vedette (16)

Small Cell Timing and Sync Presentation SCA 2013
Small Cell Timing and Sync Presentation SCA 2013Small Cell Timing and Sync Presentation SCA 2013
Small Cell Timing and Sync Presentation SCA 2013
 
The Time Is Now The Convergence Of Networks, Time Synchronization And Inform...
The Time Is Now  The Convergence Of Networks, Time Synchronization And Inform...The Time Is Now  The Convergence Of Networks, Time Synchronization And Inform...
The Time Is Now The Convergence Of Networks, Time Synchronization And Inform...
 
Chap 5
Chap 5Chap 5
Chap 5
 
Telecordia NIST/WSTS Workshop: Mobile Backhaul Synchronization
Telecordia NIST/WSTS Workshop: Mobile Backhaul SynchronizationTelecordia NIST/WSTS Workshop: Mobile Backhaul Synchronization
Telecordia NIST/WSTS Workshop: Mobile Backhaul Synchronization
 
Random broadcast based distributed consensus clock synchronization for mobile...
Random broadcast based distributed consensus clock synchronization for mobile...Random broadcast based distributed consensus clock synchronization for mobile...
Random broadcast based distributed consensus clock synchronization for mobile...
 
Time and Phase Delivery
Time and Phase DeliveryTime and Phase Delivery
Time and Phase Delivery
 
Seminar
SeminarSeminar
Seminar
 
Synchronization Overview
Synchronization OverviewSynchronization Overview
Synchronization Overview
 
Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021
Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021
Packet synchronization over_carrier_ethernet_networks_for_mbh_2012021
 
Network Time Synchronization
Network Time SynchronizationNetwork Time Synchronization
Network Time Synchronization
 
timing and synchronization
timing and synchronizationtiming and synchronization
timing and synchronization
 
Timing synchronization F Ling_v1
Timing synchronization F Ling_v1Timing synchronization F Ling_v1
Timing synchronization F Ling_v1
 
itft-Clock generator
itft-Clock generatoritft-Clock generator
itft-Clock generator
 
Synchronization and timing loop presentation -mapyourtech
Synchronization and timing loop presentation -mapyourtechSynchronization and timing loop presentation -mapyourtech
Synchronization and timing loop presentation -mapyourtech
 
Synchronization Pradeep K Sinha
Synchronization Pradeep K SinhaSynchronization Pradeep K Sinha
Synchronization Pradeep K Sinha
 
Synchronization in distributed systems
Synchronization in distributed systems Synchronization in distributed systems
Synchronization in distributed systems
 

Similaire à Precision Time Synchronization

ROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERS
ROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERSROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERS
ROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERS
Deepak Shankar
 
tutorial-Deterministic-Ethernet-stp.ppt
tutorial-Deterministic-Ethernet-stp.ppttutorial-Deterministic-Ethernet-stp.ppt
tutorial-Deterministic-Ethernet-stp.ppt
ssuser3855be
 
Unit 5-Performance and Trafficmanagement.pptx
Unit 5-Performance and Trafficmanagement.pptxUnit 5-Performance and Trafficmanagement.pptx
Unit 5-Performance and Trafficmanagement.pptx
ABYTHOMAS46
 
performanceandtrafficmanagement-160328180107.pdf
performanceandtrafficmanagement-160328180107.pdfperformanceandtrafficmanagement-160328180107.pdf
performanceandtrafficmanagement-160328180107.pdf
ABYTHOMAS46
 

Similaire à Precision Time Synchronization (20)

Accurate Synchronization of EtherCAT Systems Using Distributed Clocks
Accurate Synchronization of EtherCAT Systems Using Distributed ClocksAccurate Synchronization of EtherCAT Systems Using Distributed Clocks
Accurate Synchronization of EtherCAT Systems Using Distributed Clocks
 
lec16_nanophotonics.pptx
lec16_nanophotonics.pptxlec16_nanophotonics.pptx
lec16_nanophotonics.pptx
 
6TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 20156TiSCH @Telecom Bretagne 2015
6TiSCH @Telecom Bretagne 2015
 
ROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERS
ROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERSROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERS
ROLE OF DIGITAL SIMULATION IN CONFIGURING NETWORK PARAMETERS
 
Multi protocol label switching (mpls)
Multi protocol label switching (mpls)Multi protocol label switching (mpls)
Multi protocol label switching (mpls)
 
tutorial-Deterministic-Ethernet-stp.ppt
tutorial-Deterministic-Ethernet-stp.ppttutorial-Deterministic-Ethernet-stp.ppt
tutorial-Deterministic-Ethernet-stp.ppt
 
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
Building the Internet of Things with Thingsquare and Contiki - day 2 part 1
 
XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...
XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...
XPDS13: On Paravirualizing TCP - Congestion Control on Xen VMs - Luwei Cheng,...
 
Unit 5-Performance and Trafficmanagement.pptx
Unit 5-Performance and Trafficmanagement.pptxUnit 5-Performance and Trafficmanagement.pptx
Unit 5-Performance and Trafficmanagement.pptx
 
Building the Internet of Things with Eclipse IoT - IoTBE meetup
Building the Internet of Things with Eclipse IoT - IoTBE meetupBuilding the Internet of Things with Eclipse IoT - IoTBE meetup
Building the Internet of Things with Eclipse IoT - IoTBE meetup
 
Crash course on data streaming (with examples using Apache Flink)
Crash course on data streaming (with examples using Apache Flink)Crash course on data streaming (with examples using Apache Flink)
Crash course on data streaming (with examples using Apache Flink)
 
performanceandtrafficmanagement-160328180107.pdf
performanceandtrafficmanagement-160328180107.pdfperformanceandtrafficmanagement-160328180107.pdf
performanceandtrafficmanagement-160328180107.pdf
 
Performance and traffic management for WSNs
Performance and traffic management for WSNsPerformance and traffic management for WSNs
Performance and traffic management for WSNs
 
Vsat day-2008-comtech
Vsat day-2008-comtechVsat day-2008-comtech
Vsat day-2008-comtech
 
Industrial Networks: the Choices for Real Time Motion Control
Industrial Networks: the Choices for Real Time Motion ControlIndustrial Networks: the Choices for Real Time Motion Control
Industrial Networks: the Choices for Real Time Motion Control
 
Network Telemetry: Pushing Boundaries
Network Telemetry: Pushing BoundariesNetwork Telemetry: Pushing Boundaries
Network Telemetry: Pushing Boundaries
 
2018 FRSecure CISSP Mentor Program- Session 7
2018 FRSecure CISSP Mentor Program- Session 72018 FRSecure CISSP Mentor Program- Session 7
2018 FRSecure CISSP Mentor Program- Session 7
 
OPTICAL BURST SWITCHING
OPTICAL BURST SWITCHINGOPTICAL BURST SWITCHING
OPTICAL BURST SWITCHING
 
Tsinghua University: Two Exemplary Applications in China
Tsinghua University: Two Exemplary Applications in ChinaTsinghua University: Two Exemplary Applications in China
Tsinghua University: Two Exemplary Applications in China
 
A Platform for Data Intensive Services Enabled by Next Generation Dynamic Opt...
A Platform for Data Intensive Services Enabled by Next Generation Dynamic Opt...A Platform for Data Intensive Services Enabled by Next Generation Dynamic Opt...
A Platform for Data Intensive Services Enabled by Next Generation Dynamic Opt...
 

Plus de Krishna Sankar

Nosql hands on handout 04
Nosql hands on handout 04Nosql hands on handout 04
Nosql hands on handout 04
Krishna Sankar
 

Plus de Krishna Sankar (20)

Pandas, Data Wrangling & Data Science
Pandas, Data Wrangling & Data SciencePandas, Data Wrangling & Data Science
Pandas, Data Wrangling & Data Science
 
An excursion into Graph Analytics with Apache Spark GraphX
An excursion into Graph Analytics with Apache Spark GraphXAn excursion into Graph Analytics with Apache Spark GraphX
An excursion into Graph Analytics with Apache Spark GraphX
 
An excursion into Text Analytics with Apache Spark
An excursion into Text Analytics with Apache SparkAn excursion into Text Analytics with Apache Spark
An excursion into Text Analytics with Apache Spark
 
Big Data Analytics - Best of the Worst : Anti-patterns & Antidotes
Big Data Analytics - Best of the Worst : Anti-patterns & AntidotesBig Data Analytics - Best of the Worst : Anti-patterns & Antidotes
Big Data Analytics - Best of the Worst : Anti-patterns & Antidotes
 
Data Science with Spark
Data Science with SparkData Science with Spark
Data Science with Spark
 
Architecture in action 01
Architecture in action 01Architecture in action 01
Architecture in action 01
 
Data Science with Spark - Training at SparkSummit (East)
Data Science with Spark - Training at SparkSummit (East)Data Science with Spark - Training at SparkSummit (East)
Data Science with Spark - Training at SparkSummit (East)
 
R, Data Wrangling & Predicting NFL with Elo like Nate SIlver & 538
R, Data Wrangling & Predicting NFL with Elo like Nate SIlver & 538R, Data Wrangling & Predicting NFL with Elo like Nate SIlver & 538
R, Data Wrangling & Predicting NFL with Elo like Nate SIlver & 538
 
R, Data Wrangling & Kaggle Data Science Competitions
R, Data Wrangling & Kaggle Data Science CompetitionsR, Data Wrangling & Kaggle Data Science Competitions
R, Data Wrangling & Kaggle Data Science Competitions
 
The Hitchhiker's Guide to Machine Learning with Python & Apache Spark
The Hitchhiker's Guide to Machine Learning with Python & Apache SparkThe Hitchhiker's Guide to Machine Learning with Python & Apache Spark
The Hitchhiker's Guide to Machine Learning with Python & Apache Spark
 
Data Science Folk Knowledge
Data Science Folk KnowledgeData Science Folk Knowledge
Data Science Folk Knowledge
 
Data Wrangling For Kaggle Data Science Competitions
Data Wrangling For Kaggle Data Science CompetitionsData Wrangling For Kaggle Data Science Competitions
Data Wrangling For Kaggle Data Science Competitions
 
Bayesian Machine Learning - Naive Bayes
Bayesian Machine Learning - Naive BayesBayesian Machine Learning - Naive Bayes
Bayesian Machine Learning - Naive Bayes
 
AWS VPC distilled for MongoDB devOps
AWS VPC distilled for MongoDB devOpsAWS VPC distilled for MongoDB devOps
AWS VPC distilled for MongoDB devOps
 
The Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & PythonThe Art of Social Media Analysis with Twitter & Python
The Art of Social Media Analysis with Twitter & Python
 
Big Data Engineering - Top 10 Pragmatics
Big Data Engineering - Top 10 PragmaticsBig Data Engineering - Top 10 Pragmatics
Big Data Engineering - Top 10 Pragmatics
 
Scrum debrief to team
Scrum debrief to team Scrum debrief to team
Scrum debrief to team
 
The Art of Big Data
The Art of Big DataThe Art of Big Data
The Art of Big Data
 
The Hitchhiker’s Guide to Kaggle
The Hitchhiker’s Guide to KaggleThe Hitchhiker’s Guide to Kaggle
The Hitchhiker’s Guide to Kaggle
 
Nosql hands on handout 04
Nosql hands on handout 04Nosql hands on handout 04
Nosql hands on handout 04
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Precision Time Synchronization

  • 1. THE HITCHHIKER’S GUIDE TO PRECISION TIME SYNCHRONIZATION HPTS v14 October 24, 2011 ksankar42@gmail.com [doubleclix.wordpress.com]
  • 2. PRECISION TIME SYNCHRONIZATION! The future is an obsession ... an attraction ... an invention … an invitation
  • 3. It does not matter where the train is going, what matters is it’s direction and your decision to get on …
  • 4. “Give me a lever long enough & a fulcrum on which to place it, & I shall move the world.” A carchesion is a kind of swivel or universal joint.
  • 5. •  •  –  Krishna Sankar, Lead Architect, Egnyte.com – Cloud Storage Past Life ; Distinguished Engineer About me Chief subordinate to Assistant to Chief of Staff to CTO to the CEO of Cisco, Focusing on Cloud Computing & Data Clouds –  C3L Project on Storage Overlay Network Fabric for Big Data (Hadoop) •  Co-chair : DMTF Cloud Incubator •  ETSI STF (Electronic Digital Signatures), W3C, OASIS (TAB, SAML et al) •  Writing a Book on Cloud Computing –  “Building Clouds with Amazon Web Services”; Editor Michael Swaine •  Working on –  Stanford MMDS (Mining Massive Data Sets Post Graduate Certificate Course –  MS Bioinformatics - John Hopkins Advanced Biotechnology Studies(Started) •  OSCON’10 “Building a Bog data Cloud”[Link], Available now as a video [Link] •  Author : Enterprise Web 2.0 Fundamentals, Wireless LAN Security –  Written a few Java books. Don’t buy them – they are very old •  Member: Scala Expert group on STM/July 2010 •  Writing code for SNIA CDMI Ref Impl – File based Object Store SPI •  Lego Robotics : Technical Judge FLL World Festivals
  • 6. Agenda   "   What  is  Time  Synchroniza5on  anyway  ?   "   IEEE  1588  v2   "   IETF  TicToc   "   ISPCS  2012   "   Q&A  …   The road lies plain before me;--'tis a theme Single and of determined bounds; … - Wordsworth, The Prelude 6
  • 7. Thanks to … The giants whose shoulders I am standing
  • 8. What is Time Synchronization Anyway ? I am monarch of all I survey; My right there is none to dispute; From the centre all round to the sea I am lord of the fowl and the brute - Cowper, The Solitude Of Alexander SelKirk
  • 9. Time Synchronization •  Different  than  Time  Distribu5on   •  Across  a  set  of  machines  for  a  specific  applica5on   –  The  value  proposi5on  of  providing  precision  5me  to  an   applica5on  is  enormous…     –  …and  has  the  poten5al  to  change  the  fundamental   characteris5cs  of  applica5ons   •  Slowly  finding  it’s  way  into  routers  &  blade  server  fabrics  
  • 10. Applications •  Ocean  observatory  networks   •  Digital  substa5on  automa5on   •  Industrial  Automa5on   •  Stock  Trading  Desks   –  Borgs  trading  based  on  arbitrage   –  Based  on  δt   •  Cloud  Compu5ng/Storage  Clouds   •  Telecommunica5ons   •  Cellular/Network  frequency,  …  
  • 11. Industrial: RoboTeam in Action: Process Relative Motion (IEEE 1588 establishes timing coordination)
  • 12. T&M: data acquisition •  IEEE  1588  5me   stamping  data  at  the   sensor  for  aircraY  stress   tes5ng   Symmetricom GPS-linked IEEE 1588 master clock
  • 13. T&M: data acquisition •  Teletronics:  In-­‐flight   Monitoring-­‐  IEEE  1588  5me   stamping  data  at  source  
  • 14. T&M/Military: System instrumentation •  Agilent  RF  and  high  speed  digital  instruments  (each  has  an  IEEE   1588  clock)  
  • 15. Power Generation: General Electric: Distributed Ethernet- based control system with IEEE 1588 used for timing coordination
  • 16. When I think of my own native land, In a moment I seem to be there; But, alas! recollection at hand Soon hurries me back to despair. - Cowper, The Solitude Of Alexander SelKirk IEEE1588v2  PTP     (Precision  Time  Protocol)  
  • 17. Objec5ves  of  IEEE  1588     •  Sub-­‐microsecond  synchroniza5on  of  real-­‐5me   clocks  in  components  of  a  networked  distributed   measurement  &  control  system   •  Intended  for  rela5vely  localized  systems  typical  of   financial,  cloud  &  industrial  automa5on/test  &   measurement  environments.   •  Applicable  to  local  area  networks  suppor5ng   mul5cast  communica5ons  (including  but  not   limited  to  Ethernet)  
  • 18. Objec5ves  of  IEEE  1588     •  Simple,  administra5on  free  installa5on   •  Support  heterogeneous  systems  of  clocks  with   varying  precision,  resolu5on  and  stability   •  Minimal  resource  requirements  on  networks  and   host  components.  
  • 19. PTP Communication Ports on PTP Devices §  PTP uses Master-Slave model to provide packet based clock synchronization over Unicast and/or Multicast transport §  Timing distribution uses a series of messages between Master and Slave PTP devices to achieve synchronization §  PTP capable devices exchange messages through logical ports §  There are three types of PTP port states: – PTP Master Port/clock (M): has the best quality & distributes timing info to Slaves. – PTP Slave Port/clock (S): Synchronizes its clock with a Master port. – PTP Passive Port: not a Master port, doesn’t synchronize to a Master port to avoid loops 1588v2 1588v2 PRC Clients (Slave) Master BSC/RNC IP/MPLS/MPLS- TP
  • 20. Device Roles: Clock Types for Nodes §  There are five basic RNC/GPS PTP devices of which four are PTP clocks: GMC – Ordinary Clock (OC) M M – Boundary Clock (BC) S S – End-to-End OC-0 BC-0 Transparent Clock M M – Peer-to-Peer transparent Clock S S OC-1 OC-2 – Management node §  Grand Master Clock (GMC) PTP Domain – Ultimate source of time RNC, GPS = External Primary Reference Clock within a domain (OC or BC)
  • 21. PTP Device Communication Messages §  PTP devices communicate using a set of General messages and Event Messages to achieve synchronization §  General Messages play important role in synchronization and used to discover PTP devices, build & maintain PTP session, are not time stamped and consist of: – Follow_up: also generate timing information – Delay_Response: also generate timing information – Pdelay_Resp_Follow_Up: used in measuring link delay – Announce: establishes synchronization hierarchy/Device Discovery – Management: query & update – Signaling: for communication between clocks §  Event Messages are time stamped by hardware and used for freq/time/ phase synchronization, and consist of: – Sync – Delay_Req – Pdelay_Req and Pdelay_Resp
  • 22.
  • 23. Message Stamps Hardware assisted time stamping increases accuracy to ns level But not that easy
  • 24. How Clock port role is determined §  Best Master Clock Algorithm (BMCA)specifies how a PTP port state transitions to different roles (Master, Slave, Passive) – Each clock determines the best master clock in its domain out of all clocks it can see including itself – Grand Master clock is defined – Best clock is selected based upon multiple parameters including user defined priority, clock class, accuracy and stability of the local clock – If there’s a tie, the decision is made upon Universally Unique Identifier Device (UUID) of the port – Port states (M/S/Pare defined §  Port roles can be controlled dynamically for ex: default IEEE 1588 BMCA or provisioned statically on a PTP device using alternate BMCA
  • 25.
  • 27. M600  uses   OCXO  HQ   Oscillator  Characteris5cs  
  • 28. Lessons   •  Shallow  Networks   •  Separate  from  other  networks   •  No  buffering  in  routers   •  Accuracy  depends  on  Hardware/SoYware   •  Normal  Distribu5on  rather  than  a  number   –  Skinny  ~50  μsecs  possible   •  GPS  satellite  visibility  needed  for  Grand   Master  Clocks   •  Most  of  financial  IT  isnin  basement  !  
  • 29. IETF  Tictoc   The woods are lovely, dark, and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep. -Frost
  • 30.
  • 31. If a problem has no solution, it is not a problem, but a fact, not to be solved but to be coped with, over time … - Peres’s Law ISPCS  2012  
  • 32.
  • 34. Par5cipa5on   •  Papers   •  Requirements   –  For  Transac5on  Systems   –  Cloud  Inrastructure   •  Sponsorships   •  Akend  the  Symposium  
  • 35. Was it a vision, or a waking dream? Fled is that music:—do I wake or sleep? -Keats, Ode to a Nightingale