On the network shown in Figure 1, the NetEngine 8000 F can be directly connected to a time server and be configured to work in 1588 ATR server-and-client mode. The T-BC can be connected to a base station or a hierarchical node to output time signals to the downstream device. Some NEs on the intermediate microwave network do not support clock synchronization, but network devices can properly communicate with each other.
The configuration roadmap is as follows:
Enable 1588v2 on a device, set the device type to BC, and enable 1588 ATR time synchronization.
Enable 1588 ATR and unicast negotiation.
Verify the configuration.
To complete the configuration, you need the following data:
Local IP address of the upstream device
Outbound interface of upstream 1588 ATR packets
<HUAWEI> system-view [~HUAWEI] ptp enable [*HUAWEI] ptp device-type bc [*HUAWEI] ptp clock-source atr enable [*HUAWEI] commit
# Configure T-BC1.
<HUAWEI> system-view [~HUAWEI] sysname T-BC1 [*HUAWEI] commit [~T-BC1] ptp-adaptive enable [*T-BC1] ptp-adaptive atr unicast-negotiate enable [*T-BC1] ptp-adaptive time profile [*T-BC1] ptp-adaptive device-type server-and-client [*T-BC1] commit
# Enable 1588 ATR and set the server-and-client mode on T-BC2. The configuration of T-BCs is similar to that of T-BC1.
[~T-BC1] ip vpn-instance vpn1 [*T-BC1-vpn-instance-vpn1] commit [~T-BC1-vpn-instance-vpn1] quit [~T-BC1] ptp-adaptive master-only-vport 1 port-ip 10.1.1.2 vpn-instance vpn1 [*T-BC1] commit
[~T-BC2] ip vpn-instance vpn1 [*T-BC2-vpn-instance-vpn1] commit [~T-BC2-vpn-instance-vpn1] quit [~T-BC2] ptp-adaptive vport 1 port-ip 10.1.1.1 vpn-instance vpn1 [*T-BC2] ptp-adaptive vport 1 remote-port-ip 10.1.1.2 [*T-BC2] commit
# Configure T-BC1.
[~T-BC1] interface gigabitethernet 0/1/9 [*T-BC1-GigabitEthernet0/1/9] ptp-adaptive atr enable [*T-BC1-GigabitEthernet0/1/9] ip binding vpn-instance vpn1 [*T-BC1-GigabitEthernet0/1/9] ip address 10.1.1.2 24 [*T-BC1-GigabitEthernet0/1/9] commit
# Configure T-BC2.
[~T-BC2] interface gigabitethernet 0/1/9 [*T-BC2-GigabitEthernet0/1/9] ptp-adaptive atr enable [*T-BC2-GigabitEthernet0/1/9] ip binding vpn-instance vpn1 [*T-BC2-GigabitEthernet0/1/9] ip address 10.1.1.1 24 [*T-BC2-GigabitEthernet0/1/9] commit
# Display all configurations of the 1588 ATR module.
<T-BC1> display ptp-adaptive all Device config info ------------------------------------------------------------------------------ Ptp adaptive state :enable Device type :server-and-client Sync mode :time Current state :master+slave Packet dscp :56 Domain value :44 Announce interval :10 Announce duration :300s Sync interval :3 Sync duration :300s Delay_resp interval :3 Delay_resp duration:300s Announce receipt timeout:3 One-way or two-way :two-way Profile :time BMCA run info ------------------------------------------------------------------------------ Current trace source :local Vport list ------------------------------------------------------------------------------ ID Port state Negotiate state Master-only-vport list ------------------------------------------------------------------------------ ID Ip Address VPN Client number 1 10.1.1.2 vpn1 1
# Display information about successful negotiation of T-BC2.
<T-BC2> display ptp-adaptive all Device config info ------------------------------------------------------------------------------ Ptp adaptive state :enable Device type :server-and-client Sync mode :time Current state :master+slave Packet dscp :56 Domain value :44 Announce interval :10 Announce duration :300s Sync interval :3 Sync duration :300s Delay_resp interval :3 Delay_resp duration:300s Announce receipt timeout:3 One-way or two-way :two-way Profile :time BMCA run info ------------------------------------------------------------------------------ Current trace source :vport 1 Time performance statistics ------------------------------------------------------------------------------ Realtime(T2-T1) :+0s, 127ns Max(T2-T1) :+11163s, 2057757ns Min(T2-T1) :-0s, 62882358ns Realtime(T4-T3) :+0s, 119ns Max(T4-T3) :+114224s, 804881946ns Min(T4-T3) :-0s, 110ns Vport list ------------------------------------------------------------------------------ ID Port state Negotiate state 1 slave Nego success
# Display 1588 ATR vport information.
<T-BC1> display ptp-adaptive master-only-vport Master-only-vport list ------------------------------------------------------------------------------ ID Ip Address VPN Client number 1 10.1.1.2 vpn1 1 Master-only-vport 1 client list ID Ip Address Clock ID Mode Announce Sync Delay_resp ------------------------------------------------------------------------------ 0 14 10.1.1.1 202008fffe261204 two-way 0 -7 -7
# Display vport information on the downstream device.
<T-BC2> display ptp-adaptive vport Vport 1 ------------------------------------------------------------------------------ VPN :vpn1 Local ip :10.1.1.1 Remote port ip :10.1.1.2 Negotiate state :Nego success Port state :slave Clock Class :6 Pri2 :128 Accuracy :0xFE Local priority :128 Asymmetry(ns) :0
T-BC1 configuration file
#
ptp-adaptive enable
ptp-adaptive time profile
ptp-adaptive device-type server-and-client
ptp-adaptive atr unicast-negotiate enable
ptp-adaptive master-only-vport 1 port-ip 10.1.1.2
#
ptp enable
ptp device-type bc
ptp clock-source atr enable
#
interface GigabitEthernet0/1/9
undo shutdown
ip binding vpn-instance vpn1
ip address 10.1.1.2 255.255.255.0
ptp-adaptive atr enable
#
return
T-BC2 configuration file
#
ptp-adaptive enable
ptp-adaptive time profile
ptp-adaptive device-type server-and-client
ptp-adaptive atr unicast-negotiate enable
ptp-adaptive vport 1 port-ip 10.1.1.1
ptp-adaptive vport 1 remote-port-ip 10.1.1.2
#
ptp enable
ptp device-type bc
ptp clock-source atr enable
#
interface GigabitEthernet0/1/9
undo shutdown
ip binding vpn-instance vpn1
ip address 10.1.1.1 255.255.255.0
ptp-adaptive atr enable
#
return