cc enable

Function

The cc enable command enables a device to send or receive CCMs.

The undo cc enable command disables a device from sending or receiving CCMs.

By default, a device is disabled from sending or receiving CCMs.

Format

cc send enable

cc receive enable [ auto-protocol ]

undo cc send enable

undo cc receive enable

Parameters

Parameter Description Value
receive

Enables a device to receive CCMs.

-

auto-protocol

Enables OAM auto protocol extension.

-

send

Enables a device to send CCMs.

-

Views

Maintenance entity group view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
tpoam write

Usage Guidelines

Usage Scenario

MPLS-TP OAM provides proactive monitoring. To enable proactive monitoring, run the cc enable command.

MPLS-TP OAM is configured for a maintenance entity (ME). An ME consists of two maintenance entity group end points (MEPs) on both ends of a transport path. MPLS-TP OAM detects faults in the MEP. The mpls-tp meg command must be run to create a MEG before the cc enable command is run to implement MPLS-TP OAM.

The OAM auto protocol enabled on the egress provides the following functions:

  • Triggers OAM. If the sink node does not support OAM CC and CC parameters (including the detection packet type and interval at which packets are sent), upon the receipt of the first CV or FFD packet, the sink node automatically records the packet type and interval at which the packet is sent and uses these parameters in CC detection that starts.
  • Dynamically stops running the OAM. If the detection packet type or interval at which detection packets are sent is to be changed on the source node, the source node sends an FDI packet to instruct the sink node to stop the OAM state machine. If an OAM function is to be disabled on the source node, the source node also sends an FDI packet to instruct the sink node to stop the OAM state machine.

Prerequisites

The ME of the MEG has been bound to a tunnel.

Configuration Impact

After the cc enable command is run on a device, the device sends CCMs every 1000 ms.

Precautions

To prevent unnecessary alarms, run the cc enable and undo cc enable commands in the following sequence:

  • Run the cc send enable command on the ingress and then the cc receive enable command on the egress. Run the cc receive enable command on the egress and then the cc send enable command on the ingress.
  • Run the undo cc receive enable command on the egress and then the undo cc send enable command on the ingress. Run the undo cc receive enable command on the ingress and then the undo cc send enable command on the egress.

    Running the cc enable command enables both CC and CV.

    If MPLS-TP OAM is already associated with an APS tunnel protection group, the device cannot be disabled from sending or receiving CCMs.

Example

# Enable the MEP in the MEG named abc to receive CCMs
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] vlan-type dot1q 1
[*HUAWEI-GigabitEthernet0/1/0.1] mpls static-l2vc destination 4.4.4.4 400 transmit-vpn-label 100 receive-vpn-label 200
[*HUAWEI-GigabitEthernet0/1/0.1] quit
[*HUAWEI] mpls-tp meg abc
[*HUAWEI-mpls-tp-meg-abc] me l2vc peer-ip 4.4.4.4 vc-id 400 vc-type vlan mep-id 1 remote-mep-id 2
[*HUAWEI-mpls-tp-meg-abc] cc receive enable auto-protocol
# Enable the MEP in the MEG named abc to send CCMs.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0.1
[*HUAWEI-GigabitEthernet0/1/0.1] vlan-type dot1q 1
[*HUAWEI-GigabitEthernet0/1/0.1] mpls static-l2vc destination 4.4.4.4 400 transmit-vpn-label 100 receive-vpn-label 200
[*HUAWEI-GigabitEthernet0/1/0.1] quit
[*HUAWEI] mpls-tp meg abc
[*HUAWEI-mpls-tp-meg-abc] me l2vc peer-ip 4.4.4.4 vc-id 400 vc-type vlan mep-id 1 remote-mep-id 2
[*HUAWEI-mpls-tp-meg-abc] cc send enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >