Vous êtes sur la page 1sur 9

1

ConfidentialCopyright2013
JimOlsen
April,2013
NTPorPTP:
WhichistheBestNetworkTimingProtocol
foryourNeeds?
A man with one clock knows the time, a man with two clocks is not sure...
2 ConfidentialCopyright2013
NTPandPTPGenesis
1994:NTPv3
Introduceprecision
ofupto1
microsecond
1992:NTPv3
Formalcorrectness
principles,revised
algorithms,broadcast
mode
2002:PTPv1
Synchronizeclocksina
computernetworkwith
accuracyinthesub
microsecondrange
1989:NTPv2
Symmetrickey
authentication
1994 1992 1989 1988
2002 2008
2008:PTPv2
Improved
accuracy,
precision,
robustness
NetworkTimeProtocol(NTP)
PrecisionTimeProtocol(PTP)
1989:NTPv1
Introductionofprotocol
tosynchronizeandtime
distribution
(discontinued)
2011:NTPv4(Enhancements)
Interleavedmodes,huffnpuff,
orphanmode,authentication
options,automaticNTP
configurationschemes,Association
management
2011
IEEE1588V2,2008,Telecom
PTP(PrecisionTimeProtocol)
JohnEidson,Agilenttechnologies,inventor
ReplacementforIRIGB,(outofbandcoaxcabling)
InbandtimingoverEthernet
RFC1305forNTP(NetworkTimeProtocol)Version3
DavidMills,UniversityofDelaware
March,1992
TimetransferforTimeofDay
2
3 ConfidentialCopyright2013
Terminology
NTPNetworkTimeProtocol
NTPServer
TimeServer
NTPClient
Asymmetrycorrection
Canbeclient/server
SNTPClient
Noasymmetrycorrection
Clientonly
PTPPrecisionTimeProtocol
GMC
GrandMasterClock
Slaveclock
PTPclient
OrdinaryClocks
GMC
Slaves
BoundaryClocks
Slave/GMC
TransparentClocks
Switches
3
4 ConfidentialCopyright2013
NTP/PTPServers:
WhyTwoTimeTransferProtocols
NTPServer
Lowtransactionratewithclient
Onetimingpacket16/64sec
Largenumberofclientssupported
Thousands
Clientaccuracyrequirementnot
stringent
Milliseconds
NetworkEngineering
Besteffort
MajorityofApplicationsareto
TransferTimeofDay
PTPGrandmaster
Hightransactionratewithclient
Multipletimingpackets/sec
Smallnumberofclientssupported
Hundreds
Stringentclientaccuracy
requirements
Micro/Nanoseconds
NetworkEngineering
QoS,Highestpriority
MajorityofApplicationsarefor
frequency/phase
3
5 ConfidentialCopyright2013
EssentialElementsof
NetworkTimeSynchronization
Accuracy
Reliability
Security
6 ConfidentialCopyright2013
Accuracy(andPrecision)
Accuracyisafunctionofcorrectnessrelativetoan
agreedtostandard,(UTCforexample)
Hardwareclockcharacteristicsforaccuracy:
50nsrms,150nspeaktoUTCwhiletrackingGPS
Singlesatelliteoperationto1stoUTC
Asnetwork&CPUspeedsimprove,sodoesprecision,
butnotnecessarilyaccuracy
.
.
.
.
.
..
.
.
.
.
.
Precise but
not accurate
. .
.
. .
.
.
.
.
.
Accurate but
not precise
.
..
.
.
.
.
.
.
.
..
Precise &
Accurate
LAN WAN
NTP
PTP*
* Default Profile
Someslideshavea
subjectivescorerating
NTPvs.PTPinthisarea
4
7 ConfidentialCopyright2013
Reliability
TimeReliabilitymeans:
Providingtimefromareliablesource
Notificationwhentimesynchronizationisinquestion
TimeReliabilityshouldinclude:
Solutionswithoscillatorupgradesforholdover
Timesanitycrosscheckingtootherclocks
(PeersinNTP)
Managementarchitectureforreportingreliability
SNMP,Customizablealarms,Emailalerts
LAN WAN
NTP
PTP*
* Default Profile
8 ConfidentialCopyright2013
TheNTP/PTPTradeOffandDecisionPoints
Accuracy Effort
Resources
Money
Time
Nanoseconds
Microseconds
Milliseconds
NTPiseasyto
implement
PTPrequireseffort
dependingon
desiredaccuracy
NTPdelivers
millisecond
accuracy
PTPcandeliver
submicrosecond
accuracy
5
9 ConfidentialCopyright2013
NTPvs.PTPFeatureComparison
Feature NTP PTP
Peaktimetransfererror
possible(accuracyatslave)
>0.5milliseconds <100microseconds
to100sofnanoseconds
ErrorSource Routers SwitchesandO/Sstackdelay
Spatialextent LAN/WAN LAN/WAN
Implementation HWorSWServers
SWclients
ClientsPulltimefromServer
(client/server)
HWMasters
HWorSW
MasterPushestimetoSlave
(master/slave)
Protocols UDP/IP Unicast (mainly) UPD/IP - Multicast
Unicast, Hybrid
Security MD5&Autokey none
Administration Configured Selforganized
QoS Besteffort Highestpriority
10 ConfidentialCopyright2013
Follow_Up message
containingaccurate
valueoft
1
(ifrequired)
t
1
PTPPacketExchange Multicast
PTPdefinesanexchangeoftimestampedmessagesoverapacketnetwork
Sync message
(t
1
)t
2
t
1
Delay_Req message t
3
t
4
PacketExchange:MasterandSlaveexchange
timestampedSync &Delay_req event
messages
Fourkeytimestampsarecollected
MasterClockTime SlaveClockTime
time
Delay_Resp message
containingvalueoft
4
DataatSlave
Clock
(t
1
),t
2
t
1
,t
2
,t
3
t
1
,t
2
,t
3
,t
4
t
1
,t
2
Timeoffsetcalculationrequiresallfour
timestamps:
Multicast
(1:group)
6
11 ConfidentialCopyright2013
1.OriginateTimeStamp
HowTimeOffsetsareCorrected
(i.e.TimeTransfer)inNTP
NTPClient
1.OriginateTimeStamp
2.ReceiveTimeStamp
1.OriginateTimeStamp
2.ReceiveTimeStamp
3.TransmitTimeStamp
1.OriginateTimeStamp
2.ReceiveTimeStamp
3.TransmitTimeStamp
4.ClientTimeReceived
Client
Time = (Receive Time Originate Time) + (Transmit Time Client Time Received)
Offset 2
Assumes symmetric path latency (delay) for outbound and return paths
NTPServer
12 ConfidentialCopyright2013
TypicalNTPStratumArchitecture
Stratum0:GNSS/GPS:
Stratum1
Stratum2
LAN WAN
NTP
PTP*
* Default Profile
EachinstancethetimeistransferredtheStratumindexes.
Thisisindependentoftheinterveningnetwork.
Timingpacketstransferredviaunicast
Stratum3
7
13 ConfidentialCopyright2013
AchievableNTPWANTimeTransferAccuracy
Malaysia to San Jose, CA
NTP Time transfer accurate
to 2.7 milliseconds
Virginia to California
NTP Time transfer accurate
to 3.2 milliseconds
14 ConfidentialCopyright2013
WhyNetworkClocksareaProblemin
EnterpriseApplications
Everynetworkelementhasaclock
Clocksdriftdueto:
Oscillatorquality
Temperaturechanges
Intentionaloscillatorfrequencyditheringto
loweroverallfrequencyemissions(reduceharmonics)
Powersavemodes
Oscillatoraging
Distributedcomputingexposesnewchallengeswith
clockdrifts:
Lackofinitialtimeofdaysynchronization
Differentclockdriftratesbetweenservers,switches,routers
leadtoperformancedegradation
8
15 ConfidentialCopyright2013
EnterpriseApplication/OperationAreas
thatNeedAccurateTime
Logfileaccuracy,auditing&
monitoring
Fastersystemsrequirebetter
granularityandaccuracyinthelogtime
stamps
NMSreportintegrity
Networkfaultdiagnosisandrecovery
Accesssecurityandauthentication
Issueswithsecurity,accessrights,non
repudiation
Loginerrorswhentimedriftbeyond
predefinedskews(PDC)
Transactionprocessing
Timestampinginafastdisparate
networkswithheavytraffic
Scheduledoperations
Backup,archive,retrieval
Realworldtimevalues
Email
Phonesystems
Workstations
Legal&regulatoryrequirements
Directoryservices
Otherapplications
Password&digitalID
Softwaredevelopment
QoSMetrics
16 ConfidentialCopyright2013
16
NTPandPTPSummary
Bothprotocolsplayanimportant
roleinnetworks
CarrierClassattributes
Increasereliability
Enhanceperformance
Rapidexpansion
Numberofclients
Varietyofapplications
ContactyourEmpoweredNetworks
representativetoseehow
EmpoweredandSymmetricomcan
helpyouwithNTPandPTP
solutions
TimeProvider5000
SSU2000
TimeHub5500
SyncServer S350
SyncServer S300
SyncServer S250
SyncServer S200
SyncServer S100
NTPTimeServers
OptionalPTPGrandmasters
NTPTimeServers
OptionalPTPGrandmasters
NTPTimeServers NTPTimeServers
NTPTimeServers
OptionalPTPGrandmasters
NTPTimeServers
OptionalPTPGrandmasters
9
17 ConfidentialCopyright2013
Thankyou

Vous aimerez peut-être aussi