Configuring Time Synchronization in Server-and-Client Mode

Context

To achieve time synchronization across the VPN, the device needs to serve as both a client to synchronize time with the time source and a server to provide time services for the router close to the base station. The device must be configured to work in server-and-client mode. That is, the device must function as a T-BC.

Procedure

  • On both upstream and downstream devices:
    1. Run system-view

      The system view is displayed.

    2. Run ptp enable

      1588v2 is enabled for the device.

    3. Run ptp device-type bc

      The device type is configured as BC.

    4. Run ptp clock-source atr enable

      1588 ATR time source synchronization is enabled.

  • On the upstream device:
    1. Run system-view

      The system view is displayed.

    2. Run ptp-adaptive enable

      1588 ATR is enabled for the device.

    3. Run ptp-adaptive time profile

      The 1588 ATR device is configured to support ITU-T G.8275.2.

    4. Run ptp-adaptive device-type server-and-client

      The 1588 ATR clock is configured to work in server-and-client mode.

    5. Run ptp-adaptive atr unicast-negotiate enable

      1588 ATR unicast negotiation is enabled for the device.

    6. Run ptp-adaptive master-only-vport portid port-ip address-value [ vpn-instance vpn-name ]

      The local IP address and VPN instance name for the virtual upstream interface of T-BC to initiate Layer 3 unicast negotiation are specified.

    7. Run commit

      The configuration is committed.

    8. Run quit

      The system view is displayed.

    9. Enable 1588 ATR on the outbound interface of 1588 ATR packets.

      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run ptp-adaptive atr enable

        1588 ATR is enabled on the interface.

      3. Run ip address address-value { mask | mask-length }

        An IP address is configured for the interface. The IP address must be the same as that configured for the master-only-vport.

      4. Run commit

        The configuration is committed.

  • On the downstream device:
    1. Run system-view

      The system view is displayed.

    2. Run ptp-adaptive enable

      1588 ATR is enabled for the device.

    3. Run ptp-adaptive time profile

      The 1588 ATR device is configured to support ITU-T G.8275.2.

    4. Run ptp-adaptive device-type server-and-client

      The working mode of the 1588 ATR clock is configured as server-and-client.

    5. Run ptp-adaptive atr unicast-negotiate enable

      1588 ATR unicast negotiation is enabled for the device.

    6. Run ptp-adaptive vport port-id port-ip ip-address [ vpn-instance vpn-name ]

      A local IP address and a VPN instance name for the T-BC interface that initiates Layer 3 unicast negotiation are configured.

    7. Run ptp-adaptive vport port-id remote-port-ip remote-ip-address

      A list of remote clock servers is configured for unicast negotiation on a specified virtual port.

    8. Enable 1588 ATR on the inbound interface of 1588 ATR packets.

      1. Run interface interface-type interface-number

        The interface view is displayed.

      2. Run ptp-adaptive atr enable

        1588 ATR is enabled on the interface.

      3. Run ip address address-value { mask | mask-length }

        An IP address is configured for the interface. The IP address must be the same as that configured for the vport.

      4. Run commit

        The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >