< Home

Example for Configuring G.8275.1 Time Synchronization

Networking Requirements

In Figure 1, the bearer network carries wireless services between NodeBs, and all bearer network nodes support G.8275.1. In addition, NodeB1 and NodeB2 support G.8275.1. In this way, wireless base stations and bearer network devices achieve frequency and time synchronization.

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 G.8275.1-capable devices on the bearer network as T-BC.

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

Procedure

  1. Configure input of external clock signals.

    # Configure PE1 to input clock signals from the line clock source to implement frequency synchronization. The configuration of PE2 is similar to the configuration of PE1.
    <HUAWEI> system-view
    [HUAWEI] sysname PE1
    [PE1] clock ethernet-synchronization enable
    [PE1] interface XGigabitEthernet 0/0/1
    [PE1-XGigabitEthernet0/0/1] clock synchronization enable
    [PE1-XGigabitEthernet0/0/1] quit
    [PE1] interface XGigabitEthernet 0/0/2
    [PE1-XGigabitEthernet0/0/2] clock synchronization enable
    [PE1-XGigabitEthernet0/0/2] quit
    [PE1] interface XGigabitEthernet 0/0/3
    [PE1-XGigabitEthernet0/0/3] clock synchronization enable
    [PE1-XGigabitEthernet0/0/3] clock ssm ssua
    [PE1-XGigabitEthernet0/0/3] clock priority 1
    [PE1-XGigabitEthernet0/0/3] quit
    # Configure CE1 to connect to a clock source through Ethernet interfaces. The configuration of CE2 is similar to the configuration of CE1.
    <HUAWEI> system-view
    [HUAWEI] sysname CE1
    [CE1] clock ethernet-synchronization enable
    [CE1] interface XGigabitEthernet 0/0/1
    [CE1-XGigabitEthernet0/0/1] clock synchronization enable
    [CE1-XGigabitEthernet0/0/1] clock priority 1
    [CE1-XGigabitEthernet0/0/1] quit
    [CE1] interface XGigabitEthernet 0/0/2
    [CE1-XGigabitEthernet0/0/2] clock synchronization enable
    [CE1-XGigabitEthernet0/0/2] clock ssm ssua
    [CE1-XGigabitEthernet0/0/2] clock priority 1
    [CE1-XGigabitEthernet0/0/2] quit

  2. Globally enable PTP, set the PTP protocol to G.8275.1, and set the device type to T-BC.

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

    [PE1] ptp enable
    [PE1] ptp profile g-8275-1 enable
    [PE1] ptp device-type t-bc slot 0

  3. Configure G.8275.1 on an 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 delay
    [PE1-XGigabitEthernet0/0/1] ptp enable
    [PE1-XGigabitEthernet0/0/1] quit
    [PE1] interface XGigabitEthernet 0/0/2
    [PE1-XGigabitEthernet0/0/2] ptp delay-mechanism delay
    [PE1-XGigabitEthernet0/0/2] ptp enable
    [PE1-XGigabitEthernet0/0/2] quit
    [PE1] interface XGigabitEthernet 0/0/3
    [PE1-XGigabitEthernet0/0/3] ptp delay-mechanism delay
    [PE1-XGigabitEthernet0/0/3] ptp enable
    [PE1-XGigabitEthernet0/0/3] ptp notslave disable
    [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        :T-BC                
      Set port state    :no                   Local clock ID     :00259e1000000001  
      Virtual clock ID  :no         Time lock success  :yes                          
      PTP profile       :G.8275.1                           
                                                                                  
      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       slave         delay      4          T-BC     0      
      XGigabitEthernet0/0/2       master        delay      4          T-BC     0      
                                                                                      
      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
    #                                                                               
    ptp enable                                                                      
    ptp profile g-8275-1 enable                                                     
    ptp device-type t-bc slot 0                   
    #
    interface XGigabitEthernet0/0/1
     clock synchronization enable
     ptp delay-mechanism delay
     ptp enable 
    #
    interface XGigabitEthernet0/0/2
     clock ssm ssua
     clock priority 1
     clock synchronization enable
     ptp delay-mechanism delay
     ptp notslave disable
     ptp enable
    #
    return  
    
  • CE2 configuration file

    #
    sysname CE2
    #
    clock ethernet-synchronization enable
    #
    ptp enable
    ptp profile g-8275-1 enable
    ptp device-type t-bc slot 0
    #
    interface XGigabitEthernet0/0/1
     clock ssm ssua
     clock priority 1
     clock synchronization enable
     ptp delay-mechanism delay
     ptp notslave disable
     ptp enable
    #
    interface XGigabitEthernet0/0/2
     clock synchronization enable
     ptp delay-mechanism delay
     ptp enable 
    #
    return  
    
  • PE1 configuration file

    #
    sysname PE1
    #
    clock ethernet-synchronization enable
    #
    ptp enable
    ptp profile g-8275-1 enable
    ptp device-type t-bc slot 0
    #
    interface XGigabitEthernet0/0/1
     clock synchronization enable
     ptp delay-mechanism delay
     ptp enable 
    #
    interface XGigabitEthernet0/0/2
     clock synchronization enable
     ptp delay-mechanism delay
     ptp enable 
    #
    interface XGigabitEthernet0/0/3
     clock ssm ssua
     clock priority 1
     clock synchronization enable
     ptp delay-mechanism delay
     ptp notslave disable
     ptp enable
    #
    return
    
  • PE2 configuration file

    #
    sysname PE2
    #
    clock ethernet-synchronization enable
    #
    ptp enable
    ptp profile g-8275-1 enable
    ptp device-type t-bc slot 0
    #
    interface XGigabitEthernet0/0/1
     clock synchronization enable
     ptp delay-mechanism delay
     ptp enable 
    #
    interface XGigabitEthernet0/0/2
     clock synchronization enable
     ptp delay-mechanism delay
     ptp enable 
    #
    interface XGigabitEthernet0/0/3
     clock ssm ssua
     clock priority 1
     clock synchronization enable
     ptp delay-mechanism delay
     ptp notslave disable
     ptp enable
    #
    return
    
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic