PTP Telecom Profile
PTP Telecom Profile
Page 1 of 12
WHITE PAPER
The Telecom Profile These aims led to some important decisions about how the profile
The Precision Time Protocol defined in IEEE 1588-2008 is a works:
complex protocol designed to be used in a number of different
applications and environments. Some parts of the protocol are It was decided not to use on-path support, such as boundary
aimed specifically at certain applications and are not applicable clocks and transparent clocks, because this is not available in
to others, making it difficult to understand which sections of the existing networks.
protocol should be used in a particular environment.
IPv4 was adopted as the network layer due to its ubiquity, rather
Therefore IEEE 1588-2008 introduces the concept of a PTP profile. than operation directly over Ethernet or other lower-layer
The idea of a profile is to specify particular combinations of options protocols
and attribute values to support a given application, with the goal of
Unicast transmission was adopted over multicast, since it could
inter-operability between equipment designed for that application.
be guaranteed to work over wide-area telecoms networks.
The purpose of the profile is outlined in IEEE 1588-2008, clause
19.3.1.1 [1]: The default BMCA (Best Master Clock Algorithm) described in
IEEE 1588-2008 was replaced by static provisioning. This allows
The purpose of a PTP profile is to allow organizations to specify
the synchronization flow to be planned, rather than dynamically
specific selections of attribute values and optional features of PTP
adjusting itself.
that, when using the same transport protocol, inter-work and achieve
a performance that meets the requirements of a particular application. The clockClass indication was adapted to carry the Quality Level
(QL) indications defined in G.781 [3], for continuity with SDH and
A PTP profile is a set of required options, prohibited options, and the
SyncE synchronization status messaging.
ranges and defaults of configurable attributes.
Profile Features
ITU-T Recommendation G.8265.1 [2] defines a profile, colloquially
One-way and Two-way Operation
known as the Telecom Profile, aimed at distribution of accurate
Frequency can be delivered by sending messages in just one
frequency over packet networks. This is primarily intended for
direction (e.g. from master to slave). Time distribution requires
use with synchronization of cellular base stations, where the
messages in both directions, to allow compensation for the
main requirement is to operate the radio interface at a frequency
propagation delay of the messages through the network. Some
accuracy of within 50 parts per billion.
frequency recovery algorithms in the slave make use of both
Aims of the Telecom Profile directions in order to deliver a more accurate and stable result.
The Telecom Profile was created to ensure that PTP can be used Therefore the Telecom Profile permits both one-way and two-way
in accordance with existing telecom sync practices. The key aims of operation.
the profile included:
A PTP master compliant with the profile must be capable of
1. To permit operation over existing managed, wide-area, packet- supporting both one-way and two-way operation (i.e. PTP Sync and
based telecoms networks. Delay Request/Response messages). A slave use either one-way or
two-way operation, but is not required to support both methods.
2. To define message rates and parameter values consistent
with frequency distribution to the required performance for One-step and Two-step Clocks
telecom applications. PTP defines two types of clock behaviors: the "one-step clock" and
the "two-step clock". In a one-step clock, the precise timestamp
3. To allow interoperability with existing synchronization is transported directly in the Sync message. In a two-step clock, a
networks (such as SyncE and SDH). Follow_Up message is used to carry the precise timestamp of the
corresponding Sync message.
4. To allow the synchronization network to be designed and
configured in a fixed arrangement. Follow_Up messages were invented to facilitate timestamping at the
hardware level, improving the accuracy of the timestamp. Their use
5. To enable protection schemes to be constructed in accordance means that the master does not have to modify the timestamp in the
with standard telecom network practices. Sync message on the fly as the packet is being transmitted, but can
send it in a separate, non-time-critical packet later.
[1] IEEE Standard for a Precision Clock Synchronization Protocol for Networked Measurement and Control Systems, IEEE Std.1588TM-2008, 24 July 2008
[2] Precision time protocol telecom profile for frequency synchronization, ITU-T Recommendation G.8265.1, October 2010
Page 2 of 12
[3] Synchronization Layer Functions, ITU-T Recommendation G.781, September 2008
WHITE PAPER
Delay_Request/Delay_Response messages
Page 3 of 12
WHITE PAPER
more detail the operation of some of the key aspects of the profile.
Signaling (Announce grant)
Announce
messageType the type of service being requested (i.e.
Announce, Sync or Delay_Response). Signaling (Sync request)
durationField the duration of the requested service. This has Signaling (Sync grant)
a default initialization value of 300 seconds and a configurable
range of 60 to 1000 seconds.
logInterMessagePeriod the transmission rate of the requested Figure 1: Unicast Negotiation Example (Figure 1 from G.8265.1)
messages ........................ ...............................
When initiating unicast negotiation with a grandmaster, the slave message type to the same master. This prevents the master from
should use all 1s as the initial value for the targetPortIdentity of being saturated with repeated requests that it cannot service. If a
the Signaling message. The correct value should be learnt from slave has issued three service requests for the same message type
the grandmasters response, and used in subsequent signaling with either no response or a grant denied response, it should wait
messages. another 60s before retrying the request to the same master.
Page 4 of 12
WHITE PAPER
The exact order of messages and message requests will depend PTP Traceability
on type of service the slave requires. It is also possible for a slave In PTP systems, traceability is carried by the clockClass attribute
to include multiple TLVs in a service request. This may reduce in the header field of Announce messages sent by the grandmaster.
the possibility that a master will grant one request but deny other Since PTP was designed as a protocol to carry time rather than
requests for different types of message. frequency, traceability is normally defined in terms of the timescale
to which the grandmaster is referenced to. For example, clockClass
Traceability 6 is defined as a PTP clock that is synchronized to a primary
reference time source (e.g. UTC time), while clockClass 13 is
SONET/SDH Traceability
defined as a PTP clock that is synchronized to an arbitrary source
In SONET/SDH and SyncE synchronization networks, the ultimate
of time.
source of the timing signal frequency or the traceability of the
signal is conveyed by means of the QL value carried in the SSM. Telecom Profile Traceability
These QL values are defined in G.781. For example, if a timing The Telecom Profile is not concerned with time, but frequency.
signal is traceable to a primary reference clock, the QL value is set Therefore the distinction between a primary reference timescale
to QL-PRC. This signal will be conveyed all the way down the chain and an arbitrary timescale is irrelevant to the purpose of the
to the end node in the four-bit SSM code. profile. Secondly, the clockClass values defined in IEEE 1588-2008
dont indicate the accuracy of the frequency reference, merely the
If the chain is broken immediately before an SDH or SyncE clock
traceability of time.
(i.e. and SEC or EEC), the downstream timing signal is now driven
from that clock, and the QL value is set to QL-SEC or QL-EEC1. The clockClass parameter has the range
A subsequent higher quality timing element downstream of the 0 ~ 255, and there are several sections within this range of values
chain such as an SSU will then decide that it can generate a higher that are designated for use by alternative profiles. In order to
quality timing signal than the SEC or EEC, and go into holdover, maintain consistency between various methods of frequency
free-running on its own clock. It will then set its own QL value to distribution, it was decided to use one of these sections to encode
QL-SSU_A or QL-SSU_B accordingly. the QL values, rather than attempt to use the existing clockClass
definitions. This use of QL values allows interworking between
Therefore, at any point in the synchronization chain, the SSM value
SONET/SDH, SyncE and PTP frequency distribution, and for the
reflects the QL value of the synchronization element driving that
end nodes to view consistent traceability information regardless
segment of the synchronization chain.
of the means of delivery, as shown in Figure 2.
.............................................................................
End-to-end Traceability
~
PRC
Grandmaster
Grandmaster PTP
SHD Network
SHD Network Network
Packet Network
Packet Slave
Clock
Clock
Clock
Page 5 of 12
WHITE PAPER
The mapping between QL and clockClass is shown in the table Packet Timing Signal Fail
below (copy of Table 1, G.8265.1). The Telecom Profile defines the notion of Packet Timing Signal
Fail (PTSF), which is not included in IEE1588-2008. It defines three
If the grandmaster is slaved to a primary reference frequency, types of PTSF:
regardless of the traceability of time information, then the
clockClass value should be set to QL-PRC [84] (or QL-PRS [80] PTSF-lossAnnounce loss of reception of PTP Announce
for Option II). If the primary reference frequency fails, then the messages from a master, carrying the traceability information
clockClass should be degraded to a value consistent with the
grandmasters own internal oscillator. For example, if the internal PTSF-lossSync loss of reception of PTP timing messages from
oscillator is classed as suitable for an SSU type A, then the a master (e.g. Sync or Delay_Response messages)
clockClass should be set to QL-SSU-A [90]. Similarly, if it is Stratum
PTSF-unusable unusable packet timing signal received by the
2 quality (Option II), then it should be set to QL-ST2 [86].
slave, e.g. where the packet delay variation is excessive, resulting
in the slave being unable to meet the output clock performance
requirements
.............................................................................
G.781 QL Values
SSM QL PTP clockClass
Option I Option II Option III
0001 QL-PRS 80
0000 QL-STU QL-UNK 82
0010 QL-PRC 84
0111 QL-ST2 86
0011 88
0100 QL-SSU-A QL-TNC 90
0101 92
0110 94
1000 QL-SSU-B 96
1001 98
1101 QL-ST3E 100
1010 QL-ST3/ 102
QL-EEC2
1011 QL-SEC/ QL-SEC 104
QL-EEC1
1100 QL-SMC 106
1110 QL-PROV 108
1111 QL-DNU QL-DUS 110
Page 6 of 12
WHITE PAPER
Loss of the Announce messages means that there is no longer Grandmaster Selection and Protection
any traceability information available to qualify the accuracy IEE1588-2008 defines a method for a slave clock to determine
of the signal from the grandmaster. Therefore the slave should the best master to synchronize to, as part of the Best Master
switch to an alternative grandmaster that has valid traceability Clock Algorithm (BMCA). This is based first on the priority value,
information. If no alternative master is available, the slave should then on the clockClass and the clockAccuracy parameters.
go into holdover, and set its output QL value consistent with the
accuracy of its own local oscillator. However, G.781 defines a selection procedure for SONET/SDH
and SyncE in the opposite order, based first on QL values, then
Similarly, in the case of loss of timing messages, traceability of on priority. Secondly, since the unicast PTP communication paths
frequency to the master is lost, and the slave should switch to an between the slave and each grandmaster are considered as
alternative grandmaster or go into holdover if none is available. independent domains, the BMCA cannot be used because this
would mean one domain is affecting the operation of the other
The time taken to recognize these two failures is implementation domain.
dependent. If the slave has a very good quality local oscillator,
it may be able to implement longer timeouts before declaring Telecom Slave Clock
a signal fail than if it has a cheaper, more unstable oscillator. The Telecom Profile defines a new selection procedure based on
The benefit of being able to wait through possible temporary G.781. This procedure functions outside of the PTP protocol itself.
interruptions in service perhaps due to congestion must be The result of this is that, logically speaking, the slave consists
balanced against the possible degradation in performance of multiple instances of the protocol operating independently.
of the slaves output signal due to the interruption. Each of these instances feeds into the selection process, and the
synchronization algorithm operates on the selected instance.
The durations of the timeouts are defined by the parameters The protocol instances obtain the address and priority of each
announceReceiptTimeout, syncReceiptTimeout and grandmaster from a list of grandmasters. This list is similar to the
delayRespReceiptTimeout. The announceReceiptTimeout Acceptable Master Table defined in IEEE 1588-2008 in that it contains
parameter is already defined in IEEE15888-2008, while the other both addresses and priority information, but since it operates outside
two parameters are new in the Telecom Profile. of the protocol it must be considered a separate table.
For PTSF-unusable, the action to be taken is undefined by the The collection of protocol instances, selection process,
profile. If the network is congested, it may mean that signals from synchronization function and the list of grandmasters is called
other grandmasters are also unusable, but it may not be possible the Telecom Slave Clock, shown in Figure 3.
to determine that without attempting to synchronized to them.
In that case, it may be preferable to go into holdover for a short
period until the congestion has passed.
.............................................................................
Telecom
Slave Clock
Slave
Grandmaster Protocol
Clock 1 Instance 1
G.781-Based
Packet Slave Master
Grandmaster Protocol Sync
Clock 2 Network Selection Function
Instance 2 Process
Slave
Grandmaster Protocol
Clock N Instance N List of N
Grandmasters
Separate PTP
domains
Page 7 of 12
WHITE PAPER
The list of grandmasters is populated with N entries, each The selected grandmaster declines or terminates a unicast
containing the protocol address (i.e. IPv4 address) of an service request from the slave instance
acceptable grandmaster, and an associated priority. The Telecom
Profile does not describe how the information for this list is The QL value of the grandmaster is degraded for any reason
obtained or entered. The table could be manually populated,
A PTSF-lossAnnounce or PTSF-lossSync condition occurs
or entered via some kind of management system; the means
is outside the scope of the profile itself. The QL value of a higher priority grandmaster becomes equal
or higher to that of the currently selected grandmaster, providing
The Telecom Slave establishes a protocol instance for each
it is not exhibiting a PTSF condition
of the N entries in the grandmaster list.
By default, the switch process is revertive. This means that when
Each protocol instance requests unicast Announce service from
the condition that caused the change has cleared, the Telecom
its respective grandmaster. If service is granted, the protocol
Slave should re-synchronize to the originally selected grandmaster.
instance must obtain the clockClass of the grandmaster, and
The reversion function may be disabled if required
pass this information to the selection process. The means by
by a configuration option on the Telecom Slave.
which the protocol instance communicates with the selection
process is implementation-dependent. When one of the trigger events occurs, the following steps occur:
The selection process determines which grandmaster has the Each of the remaining protocol instances requests unicast
highest QL value. If several grandmasters have the same QL Announce service from its respective grandmaster, passing
value, the priority value is used to select the grandmaster. the clockClass information to the selection process.
The protocol instance associated with the selected grandmaster The selection process determines which grandmaster has
requests Sync and Delay_Response service. If granted, the timing the highest QL and priority value.
information is passed to the synchronization function, and
an output timing signal generated that is synchronized to the The protocol instance associated with the selected grandmaster
selected grandmaster. If service is not granted for the timing requests Sync and Delay_Response service. If granted, the timing
messages, it must either retry the request or the selection information is passed to the synchronization function, and
process must choose another grandmaster. an output timing signal generated that is synchronized to the
selected grandmaster. If service is not granted for the timing
The protocol instances associated with the grandmasters should messages, it must either retry the request or the selection
continue renewing the requests for Announce service, continually process must choose another grandmaster.
monitoring the status of each grandmaster.
The protocol instances associated with the originally selected
If no grandmaster is available, or the QL value of each available grandmaster must periodically request Announce service from
grandmaster is lower than the quality of the Telecom Slave Clocks that grandmaster. When the condition that caused the re-
own oscillator, then the Telecom Slave must go into holdover until selection has cleared, the selection process should operate
the conditions causing unavailability have cleared. again, allowing the reversion to occur.
Page 8 of 12
WHITE PAPER
Wait to Restore time this is the time from the clearing of the
condition that caused the original protection switch before the
restoration occurs. If the network is unstable, it may be necessary
to increase this time to avoid switching over too early, before the
network has stabilized again. There is no value recommended in
the Telecom Profile, and the value chosen should represent both
operator preference and vendor guidance
Page 9 of 12
WHITE PAPER
Profile Identification:
profileName: ITU-T PTP Profile for Frequency Distribution without timing support from the network
(Unicast mode)
profileVersion: 1.0
Annex A
profileIdentifier: 00-19-A7-00-01-00
Specified by: ITU-T (Study Group 15, Question 13)
Location: www.itu.int
General Features:
Clock Identity EUI-64 (as specified in clause 7.5.2.2.2 of IEEE 1588-2008) Annex A
Permitted Nodes Ordinary clocks (i.e. grandmasters, slave-only clocks) Annex A
Prohibited Nodes Boundary clocks, transparent clocks Annex A
Protocol mapping Both masters and slaves MUST support IEEE 1588-2008 Annex D IPv4/UDP stack 6.4,
Annex A
Path Delay Measurement Uses Delay_Request/Response mechanism, if required (i.e. two-way operation) 6.3.1,
Peer delay mechanism MUST NOT be used. Annex A
One-way and Two-way Masters MUST support both one-way and two-way operation.
6.3.1
Operation Slaves MAY support either one-way or two-way, or both.
One-step and Two-step clock Master MAY support either one-step or two-step clocks, or both.
6.3.2
Slaves MUST support both one-step and two-step clocks, without configuration.
PTP Management Not specified in this version of the profile. Annex A
Range must be supported by both masters 6.2.1,
Domain number 4 23 -
and slaves Annex A
Masters MUST implement static BMCA, with state BMC_MASTER, and state
BMCA 6.7.1,
decision code M1
Annex A
Slaves must implement static BMCA, with state BMC_SLAVE, and state decision code S1
Message Rates:
Sync & Follow-up 1/16 128
6.5,
Delay_Request/Response 1/16 128
Annex A
Announce 1/16 8 1/2
Peer Delay_Request/Response Not used
Page 10 of 12
WHITE PAPER
Page 11 of 12
WHITE PAPER
Protection switching:
A slave MUST switch to an alternative master under one or more of the following
conditions:
clockClass (QL value) degraded to a higher value
(i.e. lower quality) than an alternative master
PTSF-lossSync or PTSF-lossAnnounce conditions
Protection switching 6.7.3
on the current master
(optional) PTSF-unusable on the current master
(by configuration)
If no master is acceptable (e.g. all in PTSF condition), the slave MUST enter holdover or
free-run.
A slave MUST have the ability to temporarily exclude a master from the list of acceptable
Temporary master exclusion 6.8.1
masters (by configuration)
After a protection switch, when the highest priority master Delay time to be
Wait to Restore time has been restored, a slave MUST wait before switching back configured 6.8.2
to the primary master (not specified in profile)
Non-reversion A slave MAY optionally provide non-revertive switching (by configuration) 6.8.3
A master MUST provide the ability to force the QL value to a specified value (by
Forced traceability 6.8.4
configuration)
A slave MUST be capable of delaying a change in QL value to Delay time to be
QL Hold-off downstream devices configured 6.8.5
(not specified in profile)
A slave MUST be capable of squelching the output timing signal in case all masters are in
Output squelch 6.8.6
PTSF, or QL value of all masters is less than a pre-determined threshold (by configuration)
Page 12 of 12
WHITE PAPER
.............................................................
The Telecom Profile is a key component in delivering reliable
synchronization solutions to applications, such as cellular BMCA Best Master Clock Algorithm
backhaul, that require accurate frequency alignment. It allows ESMC Ethernet Synchronization Message Channel
operators to design packet-based synchronization systems
compatible with existing synchronization solutions, and to maintain IP Internet Protocol
existing best practice. It also facilitates the design of inter-operable ITU-T International Telecommunications Union
systems using equipment from multiple vendors. Telecommunications Standards Bureau
Symmetricom has been active in the development of both IEEE1588- MPLS Multi-Protocol Label Switching
2008 and the G.8265.1 Telecom Profile. The TP5000 is a carrier-class PDV Packet Delay Variation
PTP grandmaster fully compliant with the provisions of the profile1,
PRC Primary Reference Clock
and has been proved interoperable PTP slave devices from many
other vendors. PTP Precision Time Protocol
PTSF Packet Timing Signal Fail
The TP5000 can be deployed with confidence by operators to build
synchronization solutions for mobile backhaul applications. QL Quality Level
SDH Synchronous Digital Hierarchy
For further information please contact Symmetricom at
www.symmetricom.com. SONET Synchronous Optical NETwork
SSM Synchronization Status Messaging
SyncE Synchronous Ethernet
TLV Type Length Value field
UDP User Datagram Protocol
1 Except for clockClass traceability according to Table 1 of G.8265.1. This will be rectified in version 2.0, to be released in late 2011.
2300 Orchard Parkway 2011 Symmetricom. Symmetricom and the Symmetricom logo are registered trademarks
San Jose, California 95131-1017 of Symmetricom, Inc. All specifications subject to change without notice.
tel: 408.433.0910 fax: 408.428.7896
www.symmetricom.com WP/TelecomProfile/061311