Professional Documents
Culture Documents
based on
IEEE 1588v2 PTP (Precion Time Protocol)
Telecommunication networks are evolving from TDM networks based on circuit-switched
technology to so-called Next Generation Networks (NGN) based on packet-switching. The driver
of this evolution is cost reduction; the technical goal is the transport of all telecommunication
services over a unified and packet-switched platform. Ethernet is already playing an important
role in the network convergence scenario. Ethernet started as a LAN technology for enterprise
networks, and is now being used in base station backhaul and aggregation networks, and even
in metro networks. It turns out that many access network technologies require some form of
synchronization. This is the case for all cellular mobile networks which require their base
stations to be synchronized. Some of these technologies require synchronization of their
equipment clocks in frequency, some in phase.
Traditional Ethernet is not designed for the transport of synchronization. Therefore the use of
Ethernet in aggregation and backhaul networks is problematic for all access technologies in
need of synchronization. The answer to the problem is addressed through new synchronization
technique called as: PTP (Precision Time Protocol) and Synchronous Ethernet (SyncE). ITU-T
has published new recommendations for synchronization need which are described more in
detail in below section.
The Precision Time Protocol (PTP), also known as IEEE1588, is a standardized protocol
defined by the IEEE, coming initially from the automation world. The initial objective of this
protocol is to deliver time synchronization with a very high accuracy (sub-microsecond) in a LAN
environment. Therefore, IEEE 1588 is NOT a technology dedicated only to telecom.
Two versions of PTP have been released. Version 1 exists since quite a long time, and is really
targeting applications others than telecom. The version 2, approved by IEEE in 2008
(IEEE1588-2008), provides new features that can be useful to telecom applications. However,
there is a need to define in details the options and parameters of PTPv2 in order to enable this
protocol to be used in a telecom environment. This is part of the so-called "telecom profiles"
definition.
ITU-T has defined a PTP telecom profile for end-to-end frequency distribution in the
Recommendations G.8265 and G.8265.1, released in 2010. End-to-end means that the nodes
in the synchronization path (the path the PTP packets follow from the grandmaster to the slave)
do not embed PTPv2 functions.
Other PTP telecom profiles are currently under definition at the ITU-T to address the phase and
time distribution by the network in the Recommendations G.827x. These profiles will rely on the
fact that all the nodes (full on path support) or only some nodes (partial support) in the
synchronization path embed PTPv2 functions.
According to IEEE1588-2008 standard : The PTP protocol is a distributed protocol that specifies
how the real-time PTP clocks in the system synchronize with each other. These clocks are
organized into a master-slave synchronization hierarchy with the clock at the top of the
hierarchy - the grandmaster clock - determining the reference time for the entire system. The
synchronization is achieved by exchanging PTP timing messages, with the slaves using the
timing information to adjust their clocks to the time of their master in the hierarchy.
The following figure illustrates the basic PTP dialog between master and slave when PTP is
used as a two-way protocol and Delay_request / Delay_response messages are used:
Master and slave have their own internal reference clock, and the purpose is to align slave
internal clock on master reference clock. Thanks to the dialog depicted in the figure above, the
slave knows the four timestamps t1, t2, t3, and t4, and will use them to calculate the offset its
internal clock experiences compared to master reference clock, using the following formula:
Toffset = [ (t2 - t1) (t4 - t3) ] / 2
This calculation assumes that the delays in both directions (delay from Master to Slave and
Delay from Slave to Master) are symmetric, and at worst that the asymmetry is fixed and known
(otherwise, it is not possible to determine and compensate the slave internal clock offset).
PTP is therefore normally a two-way protocol, since messages are exchanged between master
and slave in both directions. However, it is possible to use PTP as a one-way protocol, using
only the "Sync" messages, in order to deliver only frequency. In this case, the calculation differs
from the previous formula, and is based in general on adaptive clock recovery principles,
which consists in recovering frequency synchronization via packets.
As described in figure 1, the basic PTP dialog consists for the master to send "Sync" messages
containing timestamps to the slave. Note that "Follow-up" messages are optional; when used,
they are combined to the "Sync" messages in order to deliver more accurate time stamps (this
feature is especially used in case of software implementation in the master, or in case the
implementation is not fast enough to insert the precise timestamp in the "Sync" message on the
fly). These two approaches correspond to the notions of "one step clock" when the precise
timestamp is directly inserted in the "Sync" messages, and "two-steps clock" when a "Follow-up"
message is used to transmit the precise timestamp.
When PTP is used with the two-way mode (for phase and time delivery), the slave initiates the
path delay calculation, e.g. by issuing "Delay_Request" messages to the master, which answers
by "Delay_Response" messages, in order to calculate and compensate the delay that the
packets spend through the network. In case of asymmetry in the links, the protocol is not
capable to determine and compensate it and there will be a time error in the calculation of the
slave internal clock offset. For instance over fibre links, it is generally agreed that a meter of
length difference between the two ways will generate roughly 2.5 ns of time error. Potentially
this error may accumulate over the links of the synchronization path.
In order to fight against Packet Delay Variation (PDV also called packet jitter) two mechanisms
are defined in the protocol, based on hardware and software PTPv2 functions embedded in
nodes:
Telecom Bounday Clock (T-BC): it acts like a slave on the ingress port (connected to a
master) and as a master on the egress port (connected to slave(s)). This allows to
compensate the internal latencies and jitter of the node.
Telecom Transparent Clock (T-TC): it measures the time of residence of the PTP packet
in the node by time stamping its arrival time on the ingress port and its departure time on
the egress port. The difference is inserted on the fly in the PTP packet in the correction
field.
It has to be remembered that those mechanisms, as part of the PTP protocol, will not help to
fight against links asymmetry.
As mentioned previously ITU-T is currently defining two telecom profiles for phase and time
delivery:
G.8275.1 is the phase/time profile assuming full on-path support i.e. assuming that all
equipments between the master clock and the slave clock support PTPv2 functions (T-BC
or T-TC), most likely the selection could be for T-BC. This profile is expected to be
finalized very soon (Probably in April 2014). A combination with Synchronous Ethernet is
possible in order to improve the performance and the time holdover in case of PRTC
failure.
G.8275.2 is the phase/time profile assuming partial on-path support i.e. assuming that not
all equipments between the master clock and the slave clock support PTPv2 functions.
The discussion have only started on this profile and its feasibility has first to be
demonstrated before any work starts on this recommandation. Therefore at this point of
time, this solution should not be considered as an applicable solution to deliver phase and
time with the proper quality.
delay fluctuation. A BC has multiple network connections and can accurately bridge
synchronization from one network segment to another. BCs improve the accuracy of clock
synchronization by filtering network jitter and deliver better scale on the master.