cfd loopback

Use cfd loopback to enable LB function so that LBMs can be sent from the source MEP to the target MP, and LBR messages can be received.

Syntax

cfd loopback service-instance instance-id mep mep-id { target-mac mac-address | target-mep target-mep-id } [ number number ]

Views

Any view

Predefined user roles

network-admin

Parameters

service-instance instance-id: Specifies the service instance ID in the range of 1 to 32767.

mep mep-id: Specifies the ID of the source MEP, in the range of 1 to 8191.

target-mac mac-address: Specifies the destination MAC address of the MP, in the format of H-H-H.

target-mep target-mep-id: Specifies the ID of the target MEP, in the range of 1 to 8191.

number number: Specifies the number of the LBMs packets sent, in the range of 1 to 10. The default is 5.

Examples

# Enable LB to check the status of the link between MEP 1101 and MEP 2001 in service instance 1 (assume that the link status is normal).

<Sysname> cfd loopback service-instance 1 mep 1101 target-mep 2001
Loopback to 0010-fc00-6512 with the sequence number start from 1101-43404:
Reply from 0010-fc00-6512: sequence number=1101-43404 Time=5ms
Reply from 0010-fc00-6512: sequence number=1101-43405 Time=5ms
Reply from 0010-fc00-6512: sequence number=1101-43406 Time=5ms
Reply from 0010-fc00-6512: sequence number=1101-43407 Time=5ms
Reply from 0010-fc00-6512: sequence number=1101-43408 Time=5ms
Sent: 5        Received: 5        Lost: 0

# Enable LB to check the status of the link between MEP 1101 and MEP 2001 in service instance 1 (assume that the link status is abnormal).

<Sysname> cfd loopback service-instance 1 mep 1101 target-mep 2001
Loopback to 0010-fc00-6512 with the sequence number start from 1101-43404:
Sent: 5        Received: 0        Lost: 5

Table 9: Command output

Field

Description

Loopback to 0010-fc00-6512 with the sequence number start from 1101-43404

Sends LBMs to 0010-FC00-6512 with the sequence number starting with 1101-43404.

Reply from 0010-fc00-6512

Reply from the MP with MAC address 0010-FC00-6512.

sequence number

Sequence number in the LBR messages.

Time=5ms

The interval between the sending of LBMs and receiving of LBRs is 5 milliseconds.

Sent

Number of LBMs sent.

Received

Number of LBR messages received.

Lost

Number of lost LBRs.