ptp mac-egress

Function

The ptp mac-egress command configures a MAC encapsulation mode for PTP packets (excluding those transparently transmitted) to be sent on a specific interface.

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

The undo ptp mac-egress vlan command restores the default VLAN ID and priority value for MAC encapsulation.

By default, the MAC multicast encapsulation mode is used, with the priority value of 7 and no VLAN ID carried.

Format

ptp mac-egress { destination-mac destination-mac | vlan vlan-id [ priority priority-value ] }

undo ptp mac-egress { destination-mac | vlan [ priority ] }

Parameters

Parameter Description Value
destination-mac destination-mac

Specifies a destination MAC address for PTP packets.

The value is in the format of H-H-H in 1588v2 mode. An H is a hexadecimal number of 4 digits. In G.8275.1 mode, the value can only be 01-80-C2-00-00-0E or 01-1B-19-00-00-00. The default value is 01-1B-19-00-00-00.

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 PTP packets.

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

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

PTP packets can be encapsulated in Layer 2 and Layer 3 packets for transmission. Select the encapsulation type according to the actual networking, and set the source and destination addresses and transmission priority of PTP packets.

Before configuring an encapsulation mode for PTP packets, check the link type for PTP packet transmission:

  • For Layer 2 link transmission, run this command to set the encapsulation mode to MAC.
  • For Layer 3 link transmission, run the ptp udp-egress command to select the UDP encapsulation mode.

    The encapsulated MAC address varies according to the delay measurement mechanism.
  • In unicast encapsulation mode, run this command to configure the destination MAC address for unicast encapsulation.
  • In multicast encapsulation mode, the default MAC address is defined for multicast encapsulation and therefore you do not need to configure the MAC address. The encapsulated MAC address varies according to the delay measurement mechanism. The MAC address is 01-1B-19-00-00-00 for non-peer delay mechanism messages and 01-80-C2-00-00-0E for peer delay mechanism messages.

    This command applies only to 1588v2, G.8275.1, and CU-106.

Prerequisites

The delay measurement mechanism has been configured using the ptp delay-mechanism { delay | pdelay } command.

PTP has been enabled on the interface using the ptp enable command.

Precautions

For clock services, the higher the priority value, the higher the packet priority, the more timely the packet forwarding, and the less the impact of the packet delay on the clock recovery performance. The default value is the maximum value. Generally, you do not need to change the value. In G.8275.1 mode, only multicast MAC encapsulation is supported.

Example

# Configure the unicast MAC encapsulation mode.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ptp mac-egress destination-mac 001B-1911-1100
# Configure the multicast MAC encapsulation mode.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ptp mac-egress vlan 1 priority 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >