mpls oam l2vc delay-measure two-way proactive

Function

The mpls oam l2vc delay-measure two-way proactive command enables proactive two-way frame delay measurement (DM) for a PW.

The undo mpls oam l2vc delay-measure two-way proactive command disables proactive two-way frame DM for a PW.

By default, proactive two-way frame DM is disabled for a PW.

Format

mpls oam l2vc delay-measure two-way proactive [ exp exp-value | packet-size packet-size-value [ padding-value { 0 | 1 } ] ] * peer-ip peer-ip vc-id vc-id vc-type vc-type

undo mpls oam l2vc delay-measure two-way proactive peer-ip peer-ip vc-id vc-id vc-type vc-type

Parameters

Parameter Description Value
exp exp-value

Specifies a priority for DMMs.

The value is an integer ranging from 0 to 7. A larger value indicates a higher priority. The default value is 7.

packet-size packet-size-value

Specifies the size of a sent probe packet.

The value is an integer ranging from 64 to 1500, in bits.

padding-value

Indicates the padding value in a packet.

The value is 0 or 1. The default value is 0.

  • If the value is set to 0, each bit in a packet is padded with 0.
  • If the value is set to 1, each bit in a packet is padded with 1.
peer-ip peer-ip

Specifies the destination IP address of a PW.

The value is in dotted decimal notation.

vc-id vc-id

Specifies a PW ID.

The value is an integer ranging from 1 to 4294967295.

vc-type vc-type

Specifies the type of a remote L2VC.

Encapsulation types supported:
  • Other encapsulation types:
    • cep: This encapsulation type is used for CEP services.
    • ethernet: This encapsulation type is used when Ethernet packets do not carry VLAN information.
    • ip-interworking: This encapsulation type is used for interworking between Huawei devices.
    • ip-layer2: This encapsulation type is used for interworking between Huawei devices and non-Huawei devices.
    • vlan: This encapsulation type is used when Ethernet packets carry VLAN information.

Views

MPLS-OAM view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tpoam write

Usage Guidelines

DM is an MPLS-TP performance monitoring function.

Proactive two-way frame DM is performed by a local MEP to send a DMM to its RMEP and then receive a delay measurement reply (DMR) from the RMEP. After two-way frame DM is configured, a MEP sends a DMM with the TxTimeStampf value (the time when the DMM was sent) at specified intervals. After receiving the DMM, the RMEP replies with a DMR. This reply carries RxTimeStampf (the time when the DMM was received) and TxTimeStampb (the time when the DMR was sent). The value in every field of the DMM is copied to the DMR, with the exception that the source and destination MAC addresses are interchanged. Upon receipt of the DMR, the MEP calculates the two-way frame delay using the following equation:

Frame delay = (RxTimeb - TxTimeStampf) - (TxTimeStampb - RxTimeStampf)

Example

# Enable proactive two-way frame DM for a PW.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls oam
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 2.2.2.2 100
[*HUAWEI-GigabitEthernet0/1/0] quit
[*HUAWEI] mpls-oam
[*HUAWEI-mpls-oam] mpls oam l2vc peer-ip 2.2.2.2 vc-id 100 vc-type ethernet type cv
[*HUAWEI-mpls-oam] mpls oam l2vc delay-measure two-way proactive exp 1 peer-ip 2.2.2.2 vc-id 100 vc-type ethernet
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >