ptp udp-egress

Function

The ptp udp-egress command configures the UDP encapsulation parameters for 1588v2 packets to be sent by an interface.

The undo ptp udp-egress destination-mac command restores the default MAC encapsulation mode.

The undo ptp udp-egress command restores the default UDP encapsulation settings.

By default, 1588v2 packets are encapsulated in UDP multicast mode.

Format

ptp udp-egress source-ip source-ip [ destination-ip destination-ip ] [ dscp dscp ] [ vlan vlan-id [ priority priority-value ] ]

ptp udp-egress destination-mac destination-mac

undo ptp udp-egress { source-ip | destination-ip | destination-mac | dscp | vlan | priority }

Parameters

Parameter Description Value
source-ip source-ip

Specifies a source IP address for UDP-encapsulated 1588v2 packets.

The value is an IP address.

destination-ip destination-ip

Specifies a destination IP address for UDP 1588v2 packets.

The value is an IP address.

dscp dscp

Specifies a DSCP value for UDP-encapsulated 1588v2 packets.

The value is an integer ranging from 0 to 63. The default value is 56.

vlan vlan-id

Specifies a VLAN ID for sent and received packets.

The value is an integer ranging from 1 to 4094.

priority priority-value

Specifies the priority value for VLAN encapsulation packets.

The value is an integer ranging from 0 to 7. The default value is 7, indicating the highest priority.

destination-mac destination-mac

Specifies a destination MAC address for UDP-encapsulated 1588v2 packets.

The value is in the format of H-H-H. Each H indicates a 4-digit hexadecimal number.

Views

100GE interface view, 10G LAN interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, FlexE-100G interface view, FlexE-400G interface view, FlexE-50G interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

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

An encapsulation mode depends on a specific link type:

  • Layer 2 links: The ptp mac-egress command configures the MAC encapsulation mode.
  • Layer 3 links: The undo ptp udp-egress command configures the UDP encapsulation mode.

    The multicast MAC encapsulation mode is used by default. Specify a destination IP address as needed:
  • Specify a destination IP address if unicast encapsulation mode is used.
  • Use a default destination IP address if multicast UDP encapsulation is used. The addresses 224.0.1.129 (for all except peer delay measurement mechanisms) and 224.0.0.107 (for peer delay measurement mechanism) are default multicast IP addresses when specific delay measurement mechanisms are used.

    This command applies only to 1588v2 and SMPTE-2059-2.

Prerequisites

A delay measurement mechanism has been specified using the ptp delay-mechanism { delay | pdelay } command.

1588v2 has been enabled on an interface using the ptp enable command.

Precautions

The MAC encapsulation mode and UDP encapsulation mode are mutually exclusive. Before configuring the UDP encapsulation mode, you need to clear the configured MAC encapsulation mode.

If destination-mac and destination-ip are not configured, the encapsulation mode is multicast encapsulation.

For clock services, the higher the DSCP and priority, the higher the packet priority, the more timely the packet forwarding, and the less the impact of packet delay on the clock recovery performance. The default value is the maximum value. Generally, you do not need to change the value.

The GPS 3.0 module does not support this command.

Example

# Encapsulate 1588v2 packets with the source IP address 192.168.2.2 and destination IP address 192.168.1.1 in UDP unicast mode.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ptp udp-egress  source-ip 192.168.2.2 destination-ip 192.168.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >