Telecommunications services on modern communications networks require that the frequency offset or time difference between devices be within an acceptable range. This requirement must be met using network clock synchronization.
Clock synchronization includes frequency synchronization and phase synchronization.
Frequency synchronization
Frequency synchronization, also called clock synchronization, indicates that signals have the same frequency and a fixed phase difference. That is, signals are sent or received at an average rate. All devices on a communications network operate at the same rate.
Phase synchronization
Phase synchronization, also called time synchronization, indicates that both frequencies and phases of signals are consistent. That is, the phase offset between signals is always 0.
In the following sections, time synchronization indicates phase synchronization, and clock synchronization indicates both phase synchronization and frequency synchronization.
A network that implements clock synchronization between network devices is called a clock synchronization network. Such a network uses a two-level architecture, as shown in Figure 2. Level-1 nodes are level-1 clock synchronization devices, level-2 nodes are level-2 clock synchronization devices, and nodes below level-2 nodes are clients that require clock synchronization.
A client clock synchronization link connects a node and a client. Any transmission link can be used as a client clock synchronization link because multiple synchronization methods, including Ethernet clock synchronization and Network Time Protocol (NTP), are required between nodes and clients. A node clock synchronization link connects two nodes. Any transmission link except a link that runs NTP can be used as a node clock synchronization link.
PTP organizes all clocks into a master-slave synchronization hierarchy, with the grandmaster clock at the top of the hierarchy. PTP messages are used to implement clock synchronization. To synchronize its local clock with the master clock in the hierarchy, a slave clock uses the timestamp carried in PTP messages to calculate its offset and delay compared with the master clock.
PTP domain
A PTP domain is a logical area that runs PTP. More than one PTP domains may exist on a network. Each PTP domain is an independent PTP clock synchronization system and has only one clock source. All devices in a PTP domain synchronize their clocks with the clock source.
1588v2 clock nodes
G.8275.1 clock nodes
G.8275.1 clock type: T-BC
PTP port
Master-slave hierarchy
Nodes in a PTP domain are organized into a master-slave hierarchy. Master nodes send synchronization clock signals, whereas slave nodes receive synchronization clock signals. A device may receive synchronization clock signals from an upstream node and then send the synchronization clock signals to a downstream device.
If two clock nodes synchronize time with each other:
Grandmaster clock
All clock nodes in a PTP domain are organized into a master-slave hierarchy. The grandmaster clock (GMC) is at the top of the hierarchy and serves as the reference clock. Clock nodes exchange PTP messages to synchronize the time of the GMC to the entire PTP domain. Therefore, the GMC is also called the clock source. The GMC can be statically configured or dynamically elected through the best master clock (BMC) algorithm.
PTP message
Message |
1588v2 |
G.8275.1 |
Function |
---|---|---|---|
Sync |
Supported |
Supported |
A Sync message is sent from the master to the slave and carries the t1 timestamp sent by the master. A Sync message can be sent in either one-step or two-step mode.
|
Delay_Req |
Supported |
Supported |
A Delay_Req message is sent from the slave to the master during delay time synchronization and carries the t3 timestamp sent by the slave. |
Pdelay_Req |
Supported |
Not supported |
A Pdelay_Req message is sent from the slave to the master during peer delay time synchronization and carries the t3 timestamp sent by the slave. |
Pdelay_Resp |
Supported |
Not supported |
A Pdelay_Resp message is sent by the master to the slave during peer delay time synchronization and carries the t4 timestamp and interface ID sent by the master. |
Announce |
Supported |
Supported |
An Announce message is used to exchange time source information between clock nodes to determine the master-slave hierarchy. |
Follow_Up |
Supported |
Supported |
A Follow_Up message is sent from the master to the slave following a Sync message in two-way mode during delay time synchronization. A Follow_Up message carries the t1 timestamp sent by the master. |
Delay_Resp |
Supported |
Supported |
A Delay_Resp message is sent by the master to the slave during delay time synchronization and carries the t4 timestamp and interface ID sent by the master. |
Pdelay_Resp_Follow_Up |
Supported |
Not supported |
A Pdelay_Resp_Follow_Up message is sent from the master to the slave following a Sync message in two-way mode during peer delay time synchronization. A Pdelay_Resp_Follow_Up message carries the t1 timestamp sent by the master. |
Management |
Supported |
Not supported |
Currently, a switch does not support Management messages. |
Signaling |
Supported |
Not supported |
1588v2 message encapsulation modes
MAC encapsulation
This mode applies to 1588v2 messages that are transmitted over a Layer 2 link. In MAC encapsulation, the VLAN ID and 802.1p priority can be carried in 1588v2 messages, and the Ethernet type 0x88F7 is used.
UDP encapsulation
This mode applies to 1588v2 messages that are transmitted over a Layer 3 link. In UDP encapsulation, the VLAN ID, 802.1p priority, and DSCP priority can be carried in 1588v2 messages, and the destination UDP port number is 319 (for non-Announce messages) or 320 (for Announce messages).
G.8275.1 packet encapsulation modes
G.8275.1 defines the packet encapsulation mode as Layer 2 multicast (without tags). The corresponding Ethernet Type is 0x88F7. There are two types of multicast destination MAC addresses: non-forwardable multicast MAC address (0180-C200-000E) and forwardable multicast MAC address (011B-1900-0000).
The clock synchronization process consists of three phases:
Master-slave hierarchy establishment
PTP selects the GMC and determines the master and slave ports.
Frequency synchronization
PTP synchronizes the frequency of the slave node with that of the master node.
Time synchronization
PTP synchronizes the time of the slave node with that of the master node.
Clock Protocol |
Whether Frequency Synchronization Is Supported |
Whether Time Synchronization Is Supported |
Time Synchronization Accuracy |
Signal Transmission Mode |
---|---|---|---|---|
NTP |
No |
Yes |
Millisecond accuracy |
Time signals are transmitted using NTP packets. |
Synchronous Ethernet |
Yes |
No |
- |
Clock signals are transmitted using serial data streams at the physical layer, without affecting upper-layer services and CPU performance. |
PTP |
Yes |
Yes |
Sub-microsecond accuracy |
Clock and time signals are transmitted using PTP packets, and higher time accuracy is achieved with the assistance of hardware. |