< Home

Example for Configuring 1588v2 Time Synchronization

Networking Requirements

In Figure 1, the bearer network carries wireless services between NodeBs, and all bearer network nodes support 1588v2. IN addition, NodeB1 and NodeB2 support 1588v2. In this way, wireless base stations and bearer network devices achieve frequency and time synchronization. Because all the devices on the bearer network support 1588v2, clock information can be transmitted in network-wide BC mode.

Figure 1 Networking diagram for clock synchronization

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure input of external clock signals.

  2. Configure the type of 1588v2-capable devices on the bearer network as BC.

  3. Configure PE1 and PE2 as system master clocks and connect them to external clocks. PE1 and PE2 back up each other.

  4. Set the delay mechanism to Pdelay.

Procedure

  1. Configure a clock source.

    # Configure PE1 to input clock signals from the PTP clock source to implement frequency synchronization. The configurations of PE2, CE1, and CE2 are similar to the configuration of PE1.
    <HUAWEI> system-view
    [HUAWEI] sysname PE1
    [PE1] clock ethernet-synchronization enable
    [PE1] clock source ptp synchronization enable slot 0
    [PE1] clock source ptp priority 10 slot 0
    [PE1] clock source ptp ssm prc slot 0

  2. Globally enable PTP and configure the device type as BC.

    # Configure PE1. The configurations of PE2, CE1, and CE2 are similar to the configuration of PE1.

    [PE1] ptp enable
    [PE1] ptp device-type bc slot 0

  3. Enable PTP on the interface.

    # Configure PE1. The configurations of PE2, CE1, and CE2 are similar to the configuration of PE1.

    [PE1] interface XGigabitEthernet 0/0/1
    [PE1-XGigabitEthernet0/0/1] ptp delay-mechanism pdelay
    [PE1-XGigabitEthernet0/0/1] ptp enable
    [PE1-XGigabitEthernet0/0/1] quit
    [PE1] interface XGigabitEthernet 0/0/2
    [PE1-XGigabitEthernet0/0/2] ptp delay-mechanism pdelay
    [PE1-XGigabitEthernet0/0/2] ptp enable
    [PE1-XGigabitEthernet0/0/2] quit
    [PE1] interface XGigabitEthernet 0/0/3
    [PE1-XGigabitEthernet0/0/3] ptp delay-mechanism pdelay
    [PE1-XGigabitEthernet0/0/3] ptp enable
    [PE1-XGigabitEthernet0/0/3] quit

  4. Verify the configuration.

    After completing the configurations, run the display ptp all command on CE1 and CE2 to view the PTP synchronization status. The following example uses the command output on CE1.

    [CE1] display ptp all
      Device config info                                                            
      ------------------------------------------------------------------------------
      PTP state         :enabled             Domain  value      :0                 
      Slave only        :no                   Device type        :BC                
      Set port state    :no                   Local clock ID     :00259e1000000001  
      Virtual clock ID  :no         Time lock success  :yes                         
      PTP profile       :IEEE1588V2                                          
                                                                                    
      BMC run info                                                                  
      ------------------------------------------------------------------------------
      Grand clock ID    :00259e1000000002                                           
      Receive number    :XGigabitEthernet0/0/2                                                  
      Parent clock ID   :00259e1000000002                                           
      Parent portnumber :4126                                                       
      Priority1         :110                 Priority2           :110               
      Step removed      :1                   Clock accuracy      :0x31              
      Clock class       :6                   Time Source         :0xa0              
      UTC Offset        :35                  UTC Offset Valid    :False             
      Timescale         :ARB                 Time traceable      :False             
      Leap              :None                Frequency traceable :False             
      Offset scaled     :0xffff                                                     
                                                                                    
      Port info                                                                     
      Name                        State        Delay-mech Ann-timeout Type   Domain 
      ------------------------------------------------------------------------------
      XGigabitEthernet0/0/1       master       delay      4           BC     0      
      XGigabitEthernet0/0/2       slave        delay      4           BC     0      
                                                                                      
      Time Performance Statistics(ns): Slot 1  Card 0  Port 1                       
      ------------------------------------------------------------------------------
      Realtime(T2-T1)   :140                     Pathdelay     :0                   
      Max(T2-T1)        :3510286792100                                              
      Min(T2-T1)        :-5715158684                                                
                                                                                    
      Clock source info                                                             
      Clock       Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status
      ------------------------------------------------------------------------------
      local       128  128  0x31     187   0xa0    -      -      -         -        

Configuration Files

  • CE1 configuration file

    #
    sysname CE1
    #
    clock ethernet-synchronization enable
    clock source ptp priority 10 slot 0                                             
    clock source ptp ssm prc slot 0                                                 
    clock source ptp synchronization enable slot 0                                
    #                                                                               
    ptp enable                                                                      
    ptp device-type bc slot 0                                                     
    #
    interface XGigabitEthernet0/0/1
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    interface XGigabitEthernet0/0/2
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    return  
    
  • CE2 configuration file

    #
    sysname CE2
    #
    clock ethernet-synchronization enable
    clock source ptp priority 10 slot 0                                             
    clock source ptp ssm prc slot 0                                                 
    clock source ptp synchronization enable slot 0                                
    #                                                                               
    ptp enable                                                                      
    ptp device-type bc slot 0                                                     
    #
    interface XGigabitEthernet0/0/1
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    interface XGigabitEthernet0/0/2
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    return  
    
  • PE1 configuration file

    #
    sysname PE1
    #
    clock ethernet-synchronization enable
    clock source ptp priority 10 slot 0                                             
    clock source ptp ssm prc slot 0                                                 
    clock source ptp synchronization enable slot 0                                
    #                                                                               
    ptp enable                                                                      
    ptp device-type bc slot 0                                                     
    #
    interface XGigabitEthernet0/0/1
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    interface XGigabitEthernet0/0/2
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    interface XGigabitEthernet0/0/3
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    return
    
  • PE2 configuration file

    #
    sysname PE2
    #
    clock ethernet-synchronization enable
    clock source ptp priority 10 slot 0                                             
    clock source ptp ssm prc slot 0                                                 
    clock source ptp synchronization enable slot 0                                
    #                                                                               
    ptp enable                                                                      
    ptp device-type bc slot 0                                                     
    #
    interface XGigabitEthernet0/0/1
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    interface XGigabitEthernet0/0/2
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    interface XGigabitEthernet0/0/3
     ptp delay-mechanism pdelay                                                     
     ptp enable 
    #
    return
    
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >