1588v2 is used to transmit frequency signals and time signals from the BITS server, allowing network-wide clock synchronization on the wireless transport network and wireless access network. For the NodeBs that support only UDP encapsulation, NetEngine 8000 Fs can send UDP-encapsulated 1588v2 packets to these NodeBs.
On the network shown in Figure 1, the transport network transmits wireless services between NodeBs, and all transport network nodes support 1588v2. Core nodes PE1 and PE2 receive time information from the BITS server. NodeB-2 supports SyncE, instead of 1588v2. Both NodeB-1 and NodeB-3 support 1588v2. PE1 and PE2 dynamically select the grandmaster clock. The grandmaster clock transmits 1588v2 time signals over the entire network. 1588v2-enabled NodeBs and PEs can also achieve time synchronization in addition to frequency synchronization.
Because all nodes on the transport network support 1588v2, they can be configured as BCs to transmit clock information. For NodeB-2 that does not support 1588v2, frequency information can be transmitted through the clock signals over an E1 line.
The configurations in this example are performed on PE1, PE2, CE1, and CE2. HUAWEI NetEngine 8000 F Series can function as PE1, PE2, CE1.
Device Name |
Interface Name |
Interface IP Address |
Interface MAC Address |
---|---|---|---|
PE1 |
GE 0/1/8 |
10.0.0.1/24 |
00e0-fc22-1111 |
PE1 |
GE 0/1/0 |
172.16.0.1/24 |
00e0-fc11-1111 |
PE2 |
GE 0/1/8 |
10.0.0.2/24 |
00e0-fc22-2222 |
PE2 |
GE 0/1/0 |
192.168.0.1/24 |
00e0-fc11-2222 |
CE1 |
GE 0/1/8 |
172.16.0.2/24 |
00e0-fc22-1111 |
CE1 |
GE 0/1/0 |
10.10.0.1/24 |
00e0-fc22-3333 |
CE2 |
GE 0/1/0 |
192.168.0.2/24 |
00e0-fc22-4444 |
CE2 |
GE 0/1/1 |
172.16.1.1/24 |
00e0-fc22-5555 |
NodeB-1 |
- |
10.10.0.2/24 |
00e0-fc33-1111 |
NodeB-3 |
- |
172.16.1.2/24 |
00e0-fc33-2222 |
The configuration roadmap is as follows:
Configure a routing protocol and ensure the communion between devices. In this example, OSPF is used.
Connect PE1 and PE2 to BITS servers.
Configure PE1, PE2, CE1, and CE2 as BCs.
Configure the unicast UDP encapsulation mode for 1588v2 packets.
To complete the configuration, you need the following data:
Delay measurement mechanism of 1588 links: PDelay
Value of the 1588v2 domain where clock devices reside
Interval at which Announce messages are sent and the number of times Announce message receiving times out
Interval at which Sync messages are sent
Interval at which PDelay messages are sent
After completing the configurations, run the display ptp all state command to view the 1588v2 operating status. The following example uses the command output on CE1. The command output shows that GE 0/1/8 of CE1 is working in the Slave state, the grandmaster clock ID is 000a0bfffe0c0dd4, and the parent clock ID is also 000a0bfffe0c0dd4. CE1 has synchronized with the master clock source.
<CE1> display ptp all state Device config info ------------------------------------------------------------------ PTP state :enabled Domain value :1 Slave only :no Device type :BC Set port state :no Local clock ID :000a0bfffe0c0d42 Acl :no Virtual clock ID :no Acr :no Time lock success :yes Asymmetry measure :disable Passive measure :disable BMC run info ------------------------------------------------------------------ Grand clock ID :000a0bfffe0c0dd4 Receive number :GigabitEthernet0/1/8 Parent clock ID :000a0bfffe0c0dd4 Parent portnumber :6417 Priority1 :128 Priority2 :128 Step removed :1 Clock accuracy :49 Clock class :187 Time Source :160 UTC Offset :0 UTC Offset Valid :False Timescale :ARB Time Traceable :False Leap :None Frequence Traceable:False Offset scaled :0xffff Sync uncertain :False Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------ GigabitEthernet0/1/8 slave pdelay 10 BC 1 Time Performance Statistics(ns): Slot X Card X Port X ------------------------------------------------------------------------ Realtime(T2-T1) :534 Pathdelay :0 Max(T2-T1) :887704804 Min(T2-T1) :512 Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------ local 200 128 0x31 187 0xa0 - - - - bits1 128 128 0x20 6 0x20 none off -/- abnormal
CE1 configuration file
# sysname CE1 # ptp enable ptp device-type bc ptp domain 1 # interface GigabitEthernet0/1/8 undo shutdown ip address 172.16.0.2 255.255.255.0 ptp enable ptp delay-mechanism pdelay ptp announce receipt-timeout 10 ptp min-pdelayreq-interval 10 ptp udp-egress source-ip 172.16.0.2 destination-ip 172.16.0.1 ptp udp-egress destination-mac 00e0-fc11-1111 # interface GigabitEthernet0/1/0 undo shutdown ip address 10.10.0.1 255.255.255.0 ptp enable ptp delay-mechanism pdelay ptp min-pdelayreq-interval 10 ptp announce-drop enable ptp udp-egress source-ip 10.10.0.1 destination-ip 10.10.0.2 ptp udp-egress destination-mac 00e0-fc33-1111 # ospf 1 area 0.0.0.0 network 172.16.0.0 0.0.0.255 network 10.10.0.0 0.0.0.255 #
CE2 configuration file
# sysname CE2 # ptp enable ptp device-type bc ptp domain 1 clock manual source ptp # interface GigabitEthernet0/1/0 undo shutdown ip address 192.168.0.2 255.255.255.0 ptp enable ptp delay-mechanism pdelay ptp announce receipt-timeout 10 ptp min-pdelayreq-interval 10 ptp udp-egress source-ip 192.168.0.2 destination-ip 192.168.0.1 ptp udp-egress destination-mac 00e0-fc11-2222 # interface GigabitEthernet0/1/1 undo shutdown ip address 172.16.1.1 255.255.255.0 ptp enable ptp delay-mechanism pdelay ptp announce-drop enable ptp udp-egress source-ip 172.16.1.1 destination-ip 172.16.1.2 ptp udp-egress destination-mac 00e0-fc33-2222 # ospf 1 area 0.0.0.0 network 192.168.0.0 0.0.0.255 network 172.16.1.0 0.0.0.255 #
PE1 configuration file
# sysname PE1 # ptp enable clock bits-type bits1 1pps input ptp clock-source bits1 on ptp clock-source bits1 priority1 2 clock source ptp synchronization enable clock source ptp priority 1 ptp device-type bc ptp domain 1 interface GigabitEthernet0/1/0 undo shutdown ip address 172.16.0.1 255.255.255.0 ptp enable ptp delay-mechanism pdelay ptp announce-interval 8 ptp min-delayreq-interval 10 ptp udp-egress source-ip 172.16.0.1 destination-ip 172.16.0.2 ptp udp-egress destination-mac 00e0-fc22-1111 interface GigabitEthernet0/1/8 undo shutdown ip address 10.0.0.1 255.255.255.0 ptp announce receipt-timeout 10 ptp udp-egress source-ip 10.0.0.1 destination-ip 10.0.0.2 ptp udp-egress destination-mac 00e0-fc22-2222 # ospf 1 area 0.0.0.0 network 10.0.0.0 0.0.0.255 network 172.16.0.0 0.0.0.255 #
PE2 configuration file
# sysname PE2 # ptp enable clock bits-type bits1 1pps input ptp clock-source bits1 on ptp clock-source bits1 priority1 1 clock source ptp synchronization enable clock source ptp priority 1 ptp device-type bc ptp domain 1 interface GigabitEthernet0/1/0 undo shutdown ip address 192.168.0.1 255.255.255.0 ptp enable ptp delay-mechanism pdelay ptp announce-interval 8 ptp min-delayreq-interval 10 ptp udp-egress source-ip 192.168.0.1 destination-ip 192.168.0.2 ptp udp-egress destination-mac 00e0-fc22-4444 interface gigabitethernet 0/1/8 undo shutdown ip address 10.0.0.2 255.255.255.0 ptp enable ptp delay-mechanism pdelay ptp udp-egress source-ip 10.0.0.2 destination-ip 10.0.0.1 ptp udp-egress destination-mac 00e0-fc22-1111 ptp announce receipt-timeout 10 # ospf 1 area 0.0.0.0 network 10.0.0.0 0.0.0.255 network 192.168.0.0 0.0.0.255 #