No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - System Management 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - System Management
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Static 1588v2 Functions

Configuring Static 1588v2 Functions

This section describes how to configure static 1588v2 functions. You can specify the master and slave clocks manually, without using the BMC algorithm.

Applicable Environment

To manually determine the master/slave relationship between clock nodes within a network, run the ptp port-state command to set the status of 1588v2 interfaces on the nodes. Static clock source selection and dynamic BMC selection are two independent mechanisms. Static clock source selection has a priority higher than dynamic BMC selection.

NOTE:

The 1588v2 status needs to be specified on OC, BC, and TCandBC interfaces. The 1588v2 status is Premaster on TCs interfaces, including those on TCOC and TCandBC devices.

  • Typical static 1588v2 network with OC, BC, TC, and TCOC devices

    The OC on the 1588v2 network shown in Figure 9-7 functions as the grandmaster to receive time signals provided by a BITS or GPS and sends 1588v2 packets carrying the time signals over the bearer network. TCs, including the TCOC, are core devices on the bearer network. TCs transparently transmit time information over the bearer network. The TCOC can also implement frequency synchronization. BCs at the edge of the bearer network send highly accurate time information carried in 1588v2 packets to wireless access devices, such as NodeBs and radio network controllers (RNCs).

    Figure 9-7 Static 1588v2 application

  • Typical static 1588v2 network with TCandBC devices

    All devices, including the NodeB, run 1588v2 on the network shown in Figure 9-8. ISP A's network contains the NodeB, OC2, and the BC. OC2 is connected to BITS2 on ISP A's network. ISP A's network has no bearer network device. ISP A leases the bearer network that ISP B operates, and ISP B devices trace time signals of BITS1. Time synchronization on ISP A's network is independent of that on ISP B's network. Devices on ISP A's and ISP B's networks support static 1588v2. The deployment is as follows:

    • Establish domain1 for ISP B's network and domain2 for ISP A's network.
    • OC1 in domain1 obtains BITS1 signals and sends 1588v2 packets carrying clock synchronization information to the BC interface that directly connects the TCandBC to OC1.
    • OC2 in domain2 is selected as the grandmaster and connected to BITS2. OC2 sends downstream 1588v2 packets carrying clock information. TC interfaces connect the TCandBC to OC2 and to the BC. The TC interfaces transparently transmit BITS2 time information to the BC. Upon receipt, the BC advertises the time information to the NodeB.
    Figure 9-8 Typical static 1588v2 network with a TCandBC

Pre-configuration Tasks

Before configuring static 1588v2 functions, complete the following tasks:
  • Set physical parameters of interfaces and ensure that the interfaces are physically Up.

Configuration Procedures

Figure 9-9 shows how to configure static 1588v2 functions.

Figure 9-9 Static 1588v2 function configuration

Importing BITS Time Signals

This section describes how to configure a 1588v2 router to import time signals from a BITS. You can configure a number of routers to import time signals from BITSs and dynamically or statically select a master clock.

Context

BITSs provide time signals for routers. 1588v2 routers can be configured to import time signals from BITSs and use the BMC algorithm to select a master clock. The master clock provides time signals for other devices over a 1588v2 network. 1588v2 routers obtain clock synchronization information from the grandmaster.

Perform the following steps on each router that is connected to a BITS:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run clock bits-type bits1 1pps input or clock bits-type bits1 dcls input

    The types of time signals are specified.

    Table 9-5 lists the types of signals that NE20E clock interfaces can receive. BITS1 provides 1588v2 time signals, and BITS0 provides physical clock signals.

    Table 9-5 Types of signals that clock interfaces on the NE20E supports

    Interface Label on a Clock Board

    Interface Label Set by Software

    Interface Type

    Type of Input or Output Signals

    CLK/TOD0

    BITS0

    RJ45

    Time signals:
    • 1 PPS (RS422) + ASCII (RS422) time signals

    • Two direct current level shift (DCLS) clock channels (one channel for input, and the other channel for output)

    CLK/TOD1

    BITS1

    RJ45

    Clock signals:
    • 2 Mbit/s

    • 2 MHz

  3. Run ptp clock-source bits0 on

    The NE20E is configured to use BITS signals to select a clock source.

  4. (Optional) Run ptp clock-source bits0 { receive-delay receive-delay-value | send-delay send-delay-value }

    The delay correction for time signals on the BITS interface is set.

    The ptp clock-source receive-delay send-delay command enables a 1588v2 router to correct the delay time for time signals after receiving the signals from a clock source or before sending the signals to a slave clock.

  5. Run commit

    The configuration is committed.

Enabling 1588v2 Globally

This section describes how to enable 1588v2 globally on each router. 1588v2 takes effect after you configure 1588v2 in the system and interface views. You can also set other 1588v2 parameters, including the domain number and virtual clock ID.

Context

Determine 1588v2 device types based on the 1588v2 network plan before enabling 1588v2 in the system view on each router. The following 1588v2 parameters can be set:
  • 1588v2 clock type:

    • OC: Ordinary clock
    • BC: Boundary clock
    • E2ETC: End-to-end transparent clock
    • P2PTC: Peer-to-peer transparent clock
    • TCandBC: Transparent and boundary clock
    • E2ETCOC: End-to-end transparent clock and ordinary clock
    • P2PTCOC: Peer-to-peer transparent and ordinary clock
  • Clock domain number

    A 1588v2 network is large scale and allows multiple carriers to lease the 1588v2 network as a bearer network. To transparently transmit 1588v2 packets for specific carriers, the 1588v2 network can be logically divided into clock domains. Each clock domain has a single clock source, and all devices in the domain synchronize clock signals with the clock source.

  • Virtual clock ID

    Uniquely identifies a 1588v2 router. A virtual clock ID remains even if the IPU is removed from a 1588v2 router.

  • Slave-only mode for an OC

    An OC has only a single 1588v2 interface. This means that the OC can function as the master clock to advertise clock signals or as a slave clock to receive upstream clock signals. To enable an OC to work only as a slave clock on a clock synchronous network, run the ptp slaveonly command.

  • Automatic asymmetry measurement on BCs and TCandBCs over the 1588v2 ring network. Figure 9-10 provides an example of automatic asymmetry measurement over a 1588v2 ring network.

    Figure 9-10 Automatic asymmetry measurement over a 1588v2 ring network

    The NodeB can synchronize clock signals with the global positioning system (GPS) on the ring network shown in Figure 9-10 only if fibers working in opposite directions on each network segment have the same length. Each node can synchronize clock signals with the GPS, irrespective of changes in clock sources that slave clocks trace. If a fiber between BC5 and BC6 is disconnected, BC6 traces clock signals of BC3. BC6 uses a compensation value that has calculated for the fiber between BC5 and BC6 to successfully synchronize clock signals with the GPS.

    After the faulty fiber between BC5 and BC6 is repaired, the difference between the lengths of the fibers that transmit traffic in opposite directions changes, and BC6 traces clock signals of BC5, not BC3. BC6 uses the previous compensation value but fails to synchronize clock signals with the GPS. To address this problem, run the ptp asymmetry-measure enable command to enable automatic asymmetry measurement.

Figure 9-11 shows the configuration procedure on each 1588v2 router.

Figure 9-11 Configuration Procedure

Procedure

  • Perform the following steps on each OC:
    1. Run system-view

      The system view is displayed.

    2. Run ptp enable

      1588v2 is enabled.

    3. Run ptp device-type oc

      The device type is set to OC.

    4. (Optional) Run ptp slaveonly

      The OC is configured to work in slave-only mode.

      The OC can be configured to work in slave-only mode before the OC synchronizes time signals with other clocks. The OC working in slave-only mode has its interfaces in Slave state. This means that the OC can function as a slave clock to receive clock signals from other clocks, but cannot function as a master clock to provide clock signals for other clocks.

    5. Run ptp domain domain-value

      A clock domain number is specified.

      NOTE:
      Clocks in the same clock domain can exchange 1588v2 packets to synchronize time signals.

    6. (Optional) Run ptp virtual-clock-id clock-id-value

      A virtual clock ID is set.

    7. Run commit

      The configuration is committed.

  • Perform the following steps on each BC:
    1. Run system-view

      The system view is displayed.

    2. Run ptp enable

      1588v2 is enabled.

    3. Run ptp device-type bc

      The device type is set to BC.

    4. Run ptp domain domain-value

      A clock domain number is specified.

      NOTE:
      Clocks in the same clock domain can exchange 1588v2 packets to synchronize time signals.

    5. (Optional) Run ptp virtual-clock-id clock-id-value

      A virtual clock ID is set.

    6. (Optional) Run ptp asymmetry-measure enable

      Automatic asymmetry measurement is enabled on the router over a 1588v2 ring network.

    7. (Optional) Run the ptp max-steps-removed max-steps-removed-value command to configure the maximum number of hops for time synchronization. A clock source is considered unavailable if stepsRemoved in the Announce packets received by the clock source is greater than or equal to max-steps-removed-value.
    8. Run commit

      The configuration is committed.

  • Perform the following steps on each TC and TCOC:
    1. Run system-view

      The system view is displayed.

    2. Run ptp enable

      1588v2 is enabled.

    3. Run ptp device-type { e2etc | e2etcoc | p2ptc | p2ptcoc }

      The device type is set to TC or TCOC. One of the following parameters can be configured:

      NOTE:
      A TCOC has the same functions as a TC and also implements frequency synchronization.

    4. Run ptp domain domain-value

      A clock domain number is specified.

      NOTE:
      Clocks in the same clock domain can exchange 1588v2 packets to synchronize time signals.

    5. (Optional) Run ptp virtual-clock-id clock-id-value

      A virtual clock ID is set.

    6. Run commit

      The configuration is committed.

  • Perform the following steps on each TCandBC:
    1. Run system-view

      The system view is displayed.

    2. Run ptp enable

      1588v2 is enabled.

    3. Run ptp device-type tcandbc

      The device type is set to TCandBC.

    4. Run ptp domain domain-value

      A clock domain number is specified.

      NOTE:
      Clocks in the same clock domain can exchange 1588v2 packets to synchronize time signals.

    5. (Optional) Run ptp virtual-clock-id clock-id-value

      A virtual clock ID is set.

    6. (Optional) Run ptp asymmetry-measure enable

      Automatic asymmetry measurement is enabled on the router over a 1588v2 ring network.

    7. Run commit

      The configuration is committed.

(Optional) Monitoring the Performance of a Passive Interface

This section describes how to monitor the performance of a passive interface. After a 1588v2 network achieves stable time synchronization, monitor the passive interface's offset that is between the master and slave clocks.

Prerequisites

A passive interface is determined. The display ptp all command output contains "passive" in the State field of the Port Info part.

Context

A passive interface does not trace or advertise time information. If a device has multiple master 1588v2 interfaces in the same clock domain, the device selects the interface with the highest priority as the master clock. The interface connected to the master clock is the slave clock. The unselected master interfaces enter the Passive state and function as backups for the slave clock. Passive interfaces can send Delay_Req, Pdelay_Resp, Delay_Resp_Follow_Up, signaling, and management response messages.

A passive interface can be selected as a slave clock or a master clock to participate in time synchronization after a clock source changes. Monitoring the passive interface before a clock source changes helps keep stable time signals on a synchronous 1588v2 network.

After the router stably synchronizes time signals with a clock source, the router can monitor the performance of its passive interface. The router checks the offset between the master and slave clocks on the passive interface every 300s. If the offset greater than a configured alarm threshold, the router sends an alarm named hwPtpPassiveFiberLengthChange to a network management system (NMS).

Perform the following step on each of BCs and TCandBCs:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ptp passive-measure enable

    The monitoring function is enabled on the passive interface of a 1588v2 router.

  3. Run ptp passive-measure alarm-threshold alarm-threshold-value

    An alarm threshold of the offset is set.

  4. Run commit

    The configuration is committed.

Enabling 1588v2 on a Specific Interface

This section describes how to enable 1588v2 on a specific interface. 1588v2 takes effect after you configure 1588v2 in the system and interface views. You can set 1588v2 parameters in the interface view. The parameters include the link delay measurement mechanism, asymmetric delay correction, and timestamping mode.

Context

Two devices exchange Announce packets to determine the master/slave relationship. The master device sends Sync packets to notify the slave device of time signal parameters and uses a delay measurement mechanism to achieve time signals accuracy.

After 1588v2 is enabled and a device type is specified on a specific 1588v2 router, enable 1588v2 and configure 1588v2 functions on each interface:
  • Delay measurement mechanisms for the OC, BC, and TCandBC

    Different delays on links deteriorate the accuracy of 1588v2 time synchronization. 1588v2 uses the delay measurement mechanism to correct time signals. A delay measurement process is implemented by sending delay measurement request packets and delay response packets. Either of the following parameters can be configured in the ptp delay-mechanism command to enable a specific delay measurement mechanism:
    • delay: enables the delay request-response mechanism, in which information about the clock and time is calculated based on the delay of an entire link between the master and slave clocks. Only the slave clock sends Delay_Req packets to the master clock, and the master clock replies with Delay_Resp packets. Upon receipt, the slave clock uses information carried in Delay_Resp packets to correct time signals.
    • pdelay: enables the peer delay mechanism, in which information about the clock and time is calculated based on the delay time of each link along the path between the master and slave clocks. In this mode, the master and slave clocks can send Pdelay_Rep packets to each other and then correct time signals based on the Pdelay_Resp packets. Upon receipt of the responses, the slave or master clock uses information carried in Delay_Resp packets to correct time signals.

    The PDelay mechanism helps rapidly correct the difference between the delay time in opposite directions on the network, on which the master and slave clocks obtain the delay time in opposite directions.

    NOTE:
    • Both ends of a link must use the same delay measurement mechanism.

    • If an E2ETC, an E2ETCOC, a P2PTC, and a P2PTCOC use the default delay measurement mechanism, their interfaces can directly be enabled with 1588v2.

  • Asymmetric delay corrections

    Although the delay time for sending packets differs from that for receiving packets, 1588v2 considers that the opposite paths have the same delay time. To compensate for the difference between the delay time for sending packets and the delay time for receiving packets, run the ptp asymmetry-correction command to set the asymmetry correction value. A 1588v2 device automatically uses the asymmetry correction value in path delay calculation complying with the Pdelay or delay measurement mechanism.

  • Timestamping modes

    1588v2 adds timestamps into packets to record the time when these packets are sent. 1588v2 uses timestamps to adjust clock signals and implement clock synchronization. Either of the following parameters can be specified in the ptp clock-step command to configure a command:
    • one-step: A Sync message in Delay mode and a PDelay_Resp message in PDelay mode are stamped with the time when these messages are sent.
    • two-step: A Sync message in Delay mode and a PDelay_Resp message in PDelay mode only record the time when they are generated, but carry no timestamps. A Follow_Up message is stamped with the time when the Sync message was sent, and a PDelay_Resp_Follow_Up message is stamped with the time when the PDelay_Resp message was sent.

    The NE20E supports the one-step mode by default. The NE20E that uses the one-step mode can identify Follow_Up messages sent by another device that uses the two-step mode.

    1588v2 interfaces that support different timestamping modes can communicate with each other.

Figure 9-12 shows the configuration procedure on each 1588v2 router.

Figure 9-12 Configuration Procedure

Procedure

  • Perform the following steps on each OC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) Run ptp delay-mechanism { delay | pdelay }

      A delay measurement mechanism is configured for the router.

      NOTE:
      Two interfaces on both ends of a link must use the same delay measurement mechanism. A delay measurement mechanism inconsistency causes a communication failure.

    4. Run ptp enable

      1588v2 is enabled on the interface.

    5. (Optional) Run ptp asymmetry-correction { negative negative-asymmetry-correction-value | positive positive-asymmetry-correction-value }

      The asymmetric correction time is set for 1588v2 packets to be sent.

    6. (Optional) Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for 1588v2 packets.

    7. Run commit

      The configuration is committed.

  • Perform the following steps on each BC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) Run ptp delay-mechanism { delay | pdelay }

      A delay measurement mechanism is configured for the router.

      NOTE:
      Two interfaces on both ends of a link must use the same delay measurement mechanism. A delay measurement mechanism inconsistency causes a communication failure.

    4. Run ptp enable

      1588v2 is enabled on the interface.

    5. (Optional) Run ptp announce-drop enable

      The BC is configured to discard Announce packets.

      NOTE:
      routers exchange Announce packets to establish synchronization relationships. If an interface of a 1588v2 router discards Announce packets, the router cannot receive clock information from other 1588v2 routers. The ptp announce-drop enable command is run on a user-side 1588v2 interface.

    6. (Optional) Run ptp asymmetry-correction { negative negative-asymmetry-correction-value | positive positive-asymmetry-correction-value }

      The asymmetric correction time is set for 1588v2 packets to be sent.

    7. (Optional) Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for 1588v2 packets.

    8. Run commit

      The configuration is committed.

  • Perform the following steps on each TC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp asymmetry-correction { negative negative-asymmetry-correction-value | positive positive-asymmetry-correction-value }

      The asymmetric correction time is set for 1588v2 packets to be sent.

    4. Run ptp enable

      1588v2 is enabled on the interface.

    5. Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for 1588v2 packets.

    6. Run commit

      The configuration is committed.

  • Perform the following steps on each TCOC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp enable

      1588v2 is enabled on the interface.

    4. Run ptp tcoc-clock-id clock-source-id port-num port-num

      The clock source traced by an interface on the TCOC is configured.

      Unlike a TC, a TCOC has an OC interface to implement frequency synchronization. The TCOC also has TC interfaces to transparently transmit 1588v2 packets.

      To specify a clock source that the OC interface on the TCOC tracks, run the ptp tcoc-clock-id command. The OC interface can then receive 1588v2 packets to synchronize frequencies with the master clock interface. If the ptp tcoc-clock-id command is not run on the OC interface of the TCOC, each TCOC interface functions as a TC interface, which only transparently transmits 1588v2 packets.

    5. Run ptp asymmetry-correction { negative negative-asymmetry-correction-value | positive positive-asymmetry-correction-value }

      The asymmetric correction time is set for 1588v2 packets to be sent.

    6. Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for 1588v2 packets.

    7. Run commit

      The configuration is committed.

  • Perform the following steps on each TCandBC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp port-type { bc | tc }

      The clock type of the interface is set to TC or BC.

    4. Run ptp domain domain-value

      A domain ID is set in the interface view of a TC interface.

      NOTE:
      A BC interface uses the same domain ID as that configured in the system view. The TC interface on the TCandBC uses another domain ID configured in the interface view.

    5. (Optional) Run ptp delay-mechanism { delay | pdelay }

      A delay measurement mechanism is configured for the router.

      NOTE:
      Two interfaces on both ends of a link must use the same delay measurement mechanism. A delay measurement mechanism inconsistency causes a communication failure.

    6. Run ptp enable

      1588v2 is enabled on the interface.

    7. (Optional) Run ptp announce-drop enable

      The BC is configured to discard Announce packets.

      NOTE:
      routers exchange Announce packets to establish synchronization relationships. If an interface of a 1588v2 router discards Announce packets, the router cannot receive clock information from other 1588v2 routers. The ptp announce-drop enable command is run on a user-side 1588v2 interface.

    8. (Optional) Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for 1588v2 packets.

    9. Run commit

      The configuration is committed.

Specifying the 1588v2 Interface Status

This section describes how to specify the 1588v2 interface status. After 1588v2 is enabled in the system and interface views, specify the 1588v2 status for interfaces. The master/slave clock relationships can be established based on the plan.

Context

A 1588v2 interface works in a specific state:
  • slave: A slave interface only tracks time information of a specific clock source. Each 1588v2 device has a single slave interface.
  • uncalibrated: An uncalibrated interface has detected one or more master interfaces in the same clock domain. The uncalibrated interface selects a master interface as a time source to synchronize with. The Uncalibrated state is a temporary state. There are a few scenarios for the uncalibrated parameter when static 1588v2 is used.
  • passive: A passive interface does not trace or advertise time information. Passive interfaces can send Delay_Req, Pdelay_Resp, Delay_Resp_Follow_Up, signaling, and management response messages. If a device has multiple master 1588v2 interfaces in the same clock domain, the device selects the interface with the highest priority as the master clock. The interface connected to the master clock is the slave clock. The unselected master interfaces enter the Passive state and function as backups for the slave clock.
  • master: A master interface only advertises time information.
  • premaster: A premaster interface does not trace nor advertise time information. Premaster interfaces can send Pdelay_Req, Pdelay_Resp, Delay_Resp_Follow_Up, signaling, and management response messages.
  • listening: A listening interface does not trace or advertise time information. An OC working in slave-only mode changes from the Master state to the Listening state if the OC fails.
  • faulty: A faulty interface does not send 1588v2 packets, except for responses to some management messages.
  • disabled: A disabled interface sends no 1588v2 packets and discards all received 1588v2 packets, except for management messages. Setting a 1588v2 interface to the Disabled state is equivalent to running the undo ptp enable command in the interface view to disable 1588v2 on the interface.
  • initializing: An initializing interface does not send or receive 1588v2 packets.
After statically specifying the 1588v2 interface status is enabled, all 15882v2 interfaces on a device work in the Initializing state by default.

The status of a TC interface is fixed to be premaster. Therefore, you cannot change the status of the TC interfaces, including all the PTP interfaces on the E2ETC and P2PTC devices and TC interfaces on the E2ETCOC, P2PTCOC, and TCandBC devices, through command lines. Perform the following step on each of the OCs, BC, and TCandBC:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ptp set-port-state enable

    Statically specifying the 15882v interface status is enabled.

    NOTE:
    • Delete the state setting before you perform either of the following operations:
      • Change the clock type to E2ETC, P2PTC, E2ETCOC, or P2PTCOC.

      • Configure an interface on a TCandBC as a TC interface.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Run ptp port-state { slave | uncalibrated | passive | master | premaster | listening | faulty | disabled | initializing }

    The 1588v2 interface is configured to work in a specified state.

  5. Run commit

    The configuration is committed.

(Optional) Configuring Time Attributes for 1588v2 Packets

This section describes how to configure time attributes for 1588v2 packets. 1588v2 routers exchange Announce, Sync, and Delay or Pdelay packets to send time information and maintain 1588v2 connections. You can set the interval at which a 1588v2 interface sends Announce, Sync, and Delay or Pdelay packets and the maximum number of Announce packet timeouts. Using the default time attribute values is recommended.

Context

Two devices exchange Announce packets to determine the master/slave relationship. The master device sends Sync packets to notify the slave device of time signal parameters and uses a delay measurement mechanism to achieve time signals accuracy.

If routers exchange 1588v2 packets frequently and consume a lot of bandwidth resources, increase the interval value. If the time synchronization accuracy is low, reduce the interval value.

  • Announce packets

    To set the maximum number of Announce packets that a 1588v2 interface fails to receive consecutively, run the ptp announce receipt-timeout command. If the 1588v2 interface on a device fails to receive a specified number of Announce packets, the interface status becomes Master, and the device stops attempting to synchronize the time with other 1588v2 devices. The device uses the BMC algorithm to select a clock source and synchronize the time with the clock source. Increase receipt-timeout to reduce the clock source switching frequency; reduce receipt-timeout to switch clock sources. Using the default value is recommended.

  • Sync packets

    The master interface periodically sends multicast Sync packets.

    The time when the Sync packets can be stamped into the Sync packets if the one-step timestamping mode is used or into Follow_Up packets if the two-step timestamping mode is used. To specify a timestamping mode, run the ptp clock-step { one-step | two-step } command.

  • Delay or Pdelay packets

    A router uses a delay measurement mechanism to send request packets and receive response packets from its remote router. The router uses timestamps carried in the packets to correct time signals.

Perform the following steps on each 1588v2 router:

Procedure

  • Configure time attributes for Announce packets.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp announce-interval announce-interval

      The interval at which the interface sends Announce packets is set. The following formula applies:

      Interval = 2n x 1/1024s, where n equals to announce-interval

      Remote timeout period of receiving Announce packets = Remotely configured receipt-timeout x Local interval at which Announce packets are sent

    4. Run ptp announce receipt-timeout receipt-timeout

      The maximum number of Announce packets that the interface fails to receive is set. If the interface fails to consecutively receive the specified maximum number of Announce packets, the interface enters the Master state.

      Local timeout period of receiving Announce packets = Locally configured receipt-timeout x Remote interval at which Announce packets are sent

    5. Run commit

      The configuration is committed.

  • Configure time attributes for Sync packets.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp sync-interval sync-interval

      The interval at which the interface sends Sync packets is set. The following formula applies:

      Interval = 2n x 1/1024s, where n equals to sync-interval

    4. Run commit

      The configuration is committed.

  • Configure time attributes for Delay or Pdelay packets.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp min-delayreq-interval min-delayreq-interval

      The interval at which the interface sends Delay_Req packets is set. The following formula applies:

      Interval = 2n x 1/1024s, where n equals to min-delayreq-interval

    4. Run ptp min-pdelayreq-interval min-pdelayreq-interval

      The interval at which the interface sends Pdelay_Req packets is set. The following formula applies:

      Interval = 2n x 1/1024s, where n equals to min-pdelayreq-interval

    5. Run commit

      The configuration is committed.

(Optional) Configuring a 1588v2 Packet Encapsulation Mode

This section describes how to configure a 1588v2 packet encapsulation mode. You can use MAC (Layer 2) or UDP (Layer 3) to encapsulate 1588v2 packets and set a destination address and transmission priority for the 1588v2 packets.

Prerequisites

A link type is determined. An encapsulation mode matches a specific link type:
  • Layer 2 links transmit 1588v2 packets in MAC encapsulation mode.
  • Layer 3 links transmit 1588v2 packets in UDP encapsulation mode.

Context

You can encapsulate 1588v2 messages into Layer 2 and Layer 3 packets and set the destination address and transmission priority.

Perform the following steps on each 1588v2 router:

Procedure

  • Configure the MAC encapsulation mode.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp mac-egress destination-mac destination-mac

      The interface is configured to encapsulate 1588v2 packets in MAC encapsulation mode and send the packets to a specified destination MAC address.

      Specify a destination MAC address as needed:
      • Specify a destination MAC address if unicast MAC encapsulation is used.

      • Use a default destination MAC address if multicast MAC encapsulation is used. Table 9-6 lists the mapping between default multicast destination MAC addresses and delay measurement mechanisms.
        Table 9-6 The mapping between default multicast destination MAC addresses and delay measurement mechanisms
        Packet Type MAC Address

        All except peer delay measurement mechanisms

        01-1B-19-00-00-00

        Peer delay measurement mechanism

        01-80-C2-00-00-0E

      NOTE:

      If no unicast destination MAC address is specified, the default multicast destination MAC address is used.

    4. Run ptp mac-egress vlan vlan-id [ priority priority ]

      A virtual local area network (VLAN) ID and 802.1p value are set.

      1588v2 services require higher priority than other services. A high transmission priority minimizes the delay or congestion impact on clock signal recovery. Using the default highest priority is recommended.

    5. Run commit

      The configuration is committed.

  • Configure the UDP encapsulation mode.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp udp-egress source-ip source-ip [ destination-ip destination-ip ]

      The interface is configured to use UDP to encapsulate 1588v2 packets with the specified source and destination IP addresses.

      Specify a destination IP address as required:
      • Specify a destination IP address if unicast UDP encapsulation is used.

      • Use a default destination IP address if multicast UDP encapsulation is used. Multicast 1588v2 packets have a default multicast destination IP address. Table 9-7 lists the mapping between default multicast destination IP addresses and delay measurement mechanisms.
        Table 9-7 The mapping between default multicast destination IP addresses and delay measurement mechanisms
        Packet Type IP Address

        All except peer delay measurement mechanisms

        224.0.1.129

        Peer delay measurement mechanism

        224.0.0.107

      NOTE:

      If no unicast IP address is specified, a default multicast IP address is used.

    4. Run ptp udp-egress destination-mac destination-mac

      A next-hop MAC address is specified.

    5. Run ptp udp-egress source-ip source-ip [ dscp dscp ]

      A DSCP value is set for UDP 1588v2 packets to be sent.

    6. Run ptp udp-egress source-ip source-ip vlan vlan-id [ priority priority ]

      A VLAN ID and a priority value are set for 1588v2 packets.

      1588v2 services require a higher DSCP value and a higher priority value than other services. A high transmission priority minimizes the delay or congestion impact on clock signal recovery.

    7. Run commit

      The configuration is committed.

Verifying the Configuration of Static 1588v2 Functions

After configuring static 1588v2 functions, verify the configuration.

Procedure

  • Run the display ptp all [ state | config ] command to check the 1588v2 operating status and configurations.
  • Run the display ptp interface interface-type interface-number command to check 1588v2 information on a specific 1588v2 interface.

Example

After configuring static 1588v2 functions, run the display ptp all command. The command output shows that BITS time signals have been successfully imported.
<HUAWEI> 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     :4cb16cfffef9007d                                                                
  Acl               :no         Virtual clock ID   :no                                                                              
  Acr               :no         Time lock success  :no                                                                              
  Asymmetry measure :disable    Passive measure    :disable                                                                         
                                                                                                                                    
  BMC run info                                                                                                                      
  ------------------------------------------------------------------------                                                          
  Source port       :bits1                                                                                                          
  Leap              :None                                                                                                           
  UTC Offset        :34                                                                                                             
  UTC Offset Valid  :True                                                                                                           
                                                                                                                                    
  Clock source info                                                                                                                 
  Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status                                                          
  ------------------------------------------------------------------------                                                          
  local 128  128  0x31     170   0xa0     -      -      -         -                                                                 
  bits0 128  128  0x20       6   0x20     dcls   on    in/out     abnormal  
bits1 125  128  0x20       6   0x20     1pps   on    in/-       normal                                            
  bits2 120  128  0x20       6   0x20     1pps   on    -/out      abnormal           
After configuring static 1588v2 functions, run the display ptp all command. The command output shows 1588v2 operating status and configurations. The display on an OC is used as an example.
  • The command output contains the following configurations:
    • 1588v2 is enabled.
    • The clock domain number is 1.
    • The clock type is OC.
    • The OC works in slave-only mode.
  • The command output contains the following 1588v2 operation information:

    • The clock ID of the local clock is 001882fffe1b1bf4.
    • The clock ID of the clock source is 001882fffe77c2cf.
    • The clock ID of the parent clock is also 001882fffe77c2cf.
    • GE 0/1/0 is enabled with 1588v2.
    • The Delay mechanism is used on GE 0/1/0.
    • GE 0/1/0 sets its clock to the Master state if this interface fails to receive a maximum of 10 Announce packets.
<HUAWEI> display ptp all
  Device config info
  ------------------------------------------------------------------
  PTP state         :enabled   Domain  value      :1
  Slave only        :yes       Device type        :OC
  Set port state    :yes         Local clock ID     :001882fffe1b1bf4
  Acl               :no         Virtual clock ID   :no
  Acr               :no         Time lock success  :no

  BMC run info
  ------------------------------------------------------------------
  Grand clock ID    :001882fffe77c2cf
  Receive number    :GE0/1/0
  Parent clock ID   :001882fffe77c2cf
  Parent portnumber :6417
  Priority1         :128        Priority2          :128
  Step removed      :1          Clock accuracy     :49
  Clock class       :187        Time Source        :160
  UTC Offset        :0          UTC Offset Valid   :False
  Time Scale        :ARB        Time Traceable     :False
  Leap              :None       Frequence Traceable:False

  Port info
  Name                  State        Delay-mech Ann-timeout Type Domain
  ------------------------------------------------------------------------
  GigabitEthernet0/1/0  slave        delay      10          OC   1
  Time Performance Statistics(ns): Slot 1  Card 0  Port 0
  ------------------------------------------------------------------------
  Realtime(T2-T1)   :534               Pathdelay     :0
  Max(T2-T1)        :887704804
  Min(T2-T1)        :512

  Clock source info
  Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status
  ------------------------------------------------------------------------
  local 200  128  0x31     187   0xa0     -      -      -         -
  bits0 128  128  0x20       6   0x20     dcls   on    in/out     abnormal  
bits1 125  128  0x20       6   0x20     1pps   on    in/-       normal                                            
  bits2 120  128  0x20       6   0x20     1pps   on    -/out      abnormal   
Run the display ptp interface interface-type interface-number command to view information about 1588v2 packets on a specified interface.
<HUAWEI> display ptp interface gigbitethernet0/1/0
  Port State :slave
  Port Number :7937
  Announce-interval :7
  Grand clock ID    :286ed4fffe651bdd
  Receive number    :GE0/1/0
  Parent clock ID   :286ed4fffe651bdd
  Parent portnumber :7426
  Priority1         :28         Priority2          :28
  Step removed      :0          Clock accuracy     :47
  Clock class       :55         Time Source        :160
  UTC Offset        :9          UTC Offset Valid   :True
  Time Scale        :PTP        Time Traceable     :False
  Leap              :None       Frequence Traceable:False

  Recv Packet Statistics
  -----------------------------------------------------------------------
  Announce               :1524       Sync                       :59920
  Req                    :0          Resp                       :1491
  Followup               :0          Pdelay_resp_followup       :0

  Send Packet Statistics
  -----------------------------------------------------------------------
  Announce               :56721      Sync                       :37793
  Req                    :1491       Resp                       :0
  Followup               :0          Pdelay_resp_followup       :0

  Discard Packet Statistics
  -----------------------------------------------------------------------
  Announce               :0          Sync                       :4247
  Delayreq               :0          Pdelayreq                  :0
  Resp                   :0          Pdelayresp                 :0
  Followup               :0          Pdelay_resp_followup       :0

Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055400

Views: 19947

Downloads: 30

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next