Example for Configuring 1588 ATR Client Hop-by-Hop Time Synchronization

In a 1588 ATR domain, a client sends a unicast negotiation request to the server to implement time synchronization using 1588 ATR packets.

Networking Requirements

On the IP RAN shown in Figure 1, the time server SSU2000 supports only the 1588v2 unicast negotiation mode. To allow the NetEngine 8000 F to directly connect to the time server, configure the 1588 ATR hop-by-hop mode on the NetEngine 8000 F to achieve time synchronization in 1588v2 unicast negotiation mode.

Figure 1 1588v2 hop-by-hop time synchronization

Configuration Roadmap

This section describes the configurations only in 1588 ATR client hop-by-hop mode. In Figure 1, BCs perform time synchronization using 1588v2. For detailed configuration, see 1588v2 Configuration.

The configuration roadmap is as follows:

  1. Configure the hop-by-hop mode and enable the unicast negotiation function on the 1588 ATR client.

  2. Configure the unicast negotiation function on the time server. This step can be skipped if the time server is not a Huawei device.

  3. Adjust the unicast negotiation parameters between the 1588 ATR client and time server.

  4. Verify the configuration.

Data Preparation

To complete the configuration, you need the following data:

  • Server's local IP address

  • 1588 ATR domain where the server resides

  • Outbound interface for forwarding 1588 ATR packets

  • DSCP value of 1588 ATR packets

Procedure

  1. Configure the hop-by-hop mode and enable the unicast negotiation function on the 1588 ATR client.

    <HUAWEI> system-view
    [~HUAWEI] interface loopback 0
    [*HUAWEI-Loopback0] ip address 2.2.2.2 32
    [*HUAWEI-Loopback0] commit
    [~HUAWEI-Loopback0] quit
    [*HUAWEI] ptp enable
    [*HUAWEI] ptp device-type bc
    [*HUAWEI] ptp-adaptive enable
    [*HUAWEI] ptp-adaptive device-type client
    [*HUAWEI] ptp-adaptive time profile
    [*HUAWEI] ptp-adaptive atr hop-by-hop
    [*HUAWEI] ptp-adaptive local-ip 2.2.2.2
    [*HUAWEI] ptp-adaptive remote-server1-ip 1.1.1.1
    [*HUAWEI] clock source ptp synchronization enable
    [*HUAWEI] clock source ptp priority 5
    [*HUAWEI] ptp-adaptive atr unicast-negotiate enable
    [*HUAWEI] ptp clock-source atr enable
    [*HUAWEI] commit
    [~HUAWEI] interface gigabitethernet 0/1/9
    [~HUAWEI-GigabitEthernet0/1/9] ip address 10.1.1.1 255.255.255.0
    [~HUAWEI-GigabitEthernet0/1/9] ptp-adaptive atr enable
    [*HUAWEI-GigabitEthernet0/1/9] commit
    [~HUAWEI-GigabitEthernet0/1/9] quit

  2. Configure the unicast negotiation function on the time server. This step can be skipped if the time server is not a Huawei device.
  3. Adjust the unicast negotiation parameters between the 1588 ATR client and time server.

    [~HUAWEI] ptp-adaptive dscp 60
    [*HUAWEI] commit

  4. Verify the configuration.

    # Display all configurations of the 1588 ATR client.

    <HUAWEI> display ptp-adaptive all
    Device config info                                                                                                                
      ------------------------------------------------------------------------------                                                    
      Ptp adaptive state      :enable           Device type        :client                                                              
      Sync mode               :time             Current state      :slave                                                               
      Packet dscp             :60               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                                                             
      Local ip                :2.2.2.2          Profile            :time                                                                
      Client board            :5                Hop_by_hop mode    :yes                                                                 
      VPN                     :none

    # Display the configurations associated with the 1588 ATR client function.

    <HUAWEI> display ptp-adaptive config
    Device config info                                                                                                                
      ------------------------------------------------------------------------------ 
      Ptp adaptive state      :enable           Device type        :client           
      Sync mode               :time             Current state      :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          
      Local ip                :2.2.2.2          Profile            :time             
      Client board            :5                Hop_by_hop mode    :yes              
      VPN                     :none                                                  
      Server config info                                                             
      ------------------------------------------------------------------------------ 
               Ip address       Asymmetry(ns)                                        
      Server1: 1.1.1.1     --                                                   
      Port config info                                                               
      Name                         ATR enable                                        
      ------------------------------------------------------------------------------ 
      GigabitEthernet0/1/9         true

    # Display detailed information and packet statistics of the 1588 ATR client.

    <HUAWEI> display ptp-adaptive client 0
    Client id           :0                 IP address          :2.2.2.2
    Clock id            :2cab00fffec65e58  Mode                :two-way
    Announce interval   :1                 Announce duration   :300s
    Sync interval       :-7                Sync duration       :300s
    Delay_resp interval :-7                Delay_resp duration :300s
    
    Receive packet statistics
    ---------------------------------------------------------------------------
    Signalling          :60                Delay_req           :655778
    
    Send packet statistics
    ---------------------------------------------------------------------------
    Signalling          :60                Announce            :2547
    Sync                :655945            Delay_resp          :655778
    
    Discard packet statistics
    ---------------------------------------------------------------------------
    Signalling          :0
    Delay_req           :0
    

Configuration Files

#
interface Loopback0
ip address 2.2.2.2 255.255.255.255
#
 ptp-adaptive enable
 ptp-adaptive time profile
 ptp-adaptive device-type client
 ptp-adaptive atr hop-by-hop
 ptp-adaptive local-ip 2.2.2.2
 ptp-adaptive atr unicast-negotiate enable
 ptp-adaptive remote-server1-ip 1.1.1.1
 ptp-adaptive dscp 60
 ptp enable
 ptp device-type bc
 ptp clock-source atr enable
 clock source ptp synchronization enable
 clock source ptp priority 5
#
interface GigabitEthernet0/1/9
 undo shutdown
 ip address 10.1.1.1 255.255.255.0
 ptp-adaptive atr enable
# 
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >