< Home

Configuring the Encapsulation Mode for 1588v2 Messages

Context

You can configure MAC or UDP encapsulation for 1588v2 messages based on the link type used for 1588v2 message transmission:

  • MAC encapsulation: applies to Layer 2 link transmission.
  • UDP encapsulation: applies to Layer 3 link transmission.

By default, the system uses multicast MAC encapsulation.

Devices that perform clock synchronization through 1588v2 messages must use the same encapsulation mode of 1588v2 messages. Otherwise, the devices cannot communicate.

You can configure unicast or multicast encapsulation for 1588v2 messages based on the topology of the master and slave devices:

  • Unicast encapsulation: applies to point-to-point clock signal synchronization. This mode is used when a single device needs to synchronize with the master clock. If the destination MAC address or IP address of 1588v2 messages to be sent is set to a unicast address, 1588v2 messages are encapsulated in unicast encapsulation mode.
  • Multicast encapsulation: applies to point-to-multipoint clock signal synchronization. By default, devices that reside in the same PTP domain and use the same delay measurement mechanism join the same multicast group. Therefore, when multicast encapsulation is used, the destination MAC address or IP address does not need to be configured for 1588v2 messages.

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 1588v2 messages to be sent from the interface are encapsulated in MAC encapsulation mode, and the destination MAC address is configured.

      By default, the multicast destination MAC address is 011B-1900-0000 if the delay request-response mechanism is used; the multicast destination MAC address is 0180-C200-000E if the Pdelay mechanism is used.

    4. (Optional) Run ptp mac-egress vlan vlan-id [ priority priority-value ]

      The VLAN ID and 802.1p priority are configured for MAC-encapsulated 1588v2 messages.

  • 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 1588v2 messages to be sent from the interface are encapsulated in UDP encapsulation mode, and the source and destination IP addresses are configured.

      By default, if UDP encapsulation is configured, the destination IP address is multicast address 224.0.1.129 when the delay request-response mechanism is used; the destination IP address is multicast address 224.0.0.107 when the Pdelay mechanism is used.

    4. (Optional) Run ptp udp-egress destination-mac destination-mac

      The next-hop MAC address of 1588v2 messages is configured.

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

      The DSCP priority is configured for UDP-encapsulated 1588v2 messages.

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

      The VLAN ID and 802.1p priority are configured for UDP-encapsulated 1588v2 messages.

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