A VPLS MAC ping test can detect the connectivity of Layer 2 links on a VPLS network.
Procedure
- Run system-view
The system view is displayed.
- Create an NQA test instance and configure the test instance type as VPLS MAC ping.
- Run nqa test-instance admin-name test-name
An NQA test instance is created, and the view of the test instance is displayed.
- Run test-type vplsping
The test instance type is set to VPLS MAC ping.
- Run description description
A description is configured for the NQA test instance.
- (Optional) Run fragment enable
MPLS packet fragmentation is enabled for the NQA test instance.
- Set the VPLS parameters to be checked.
- Run vsi vsi-name
The name of the VSI to be detected is specified.
- Run destination-address mac macAddress
The destination MAC address associated with the VSI is specified.
- (Optional) Run vlan vlan-id
A VLAN ID is specified for the NQA test instance.
- (Optional) Set optional parameters for the NQA test instance and simulate packets transmitted on an actual network.
- Run lsp-exp exp
The LSP EXP value is set for the NQA test instance.
- Run lsp-replymode { no-reply | udp | udp-via-vpls }
The reply mode in the NQA LSP test instance is configured.
- Run datafill fill-string
Padding characters in NQA test packets are configured.
- Run datasize datasizeValue
The size of the data field in an NQA test packet.
- Run probe-count number
The number of probes in a test is set for the NQA test instance.
- Run interval seconds interval
The interval at which NQA test packets are sent is set for the NQA test instance.
- Run ttl ttlValue
The TTL value in NQA test packets is set.
- (Optional) Configure detection failure conditions and enable the function to send traps to the NMS upon detection failures.
- Run timeout time
The response timeout period is set.
- Run fail-percent percent
The failure percentage is set for the NQA test instance.
- Run probe-failtimes failTimes
The system is enabled to send traps to the NMS after the number of consecutive probe failures reaches the specified threshold.
- Run test-failtimes failTimes
The system is enabled to send traps to the NMS after the number of consecutive failures of the NQA test instance reaches the specified threshold.
- Run threshold rtd thresholdRtd
The RTD threshold is configured.
- Run send-trap { all | [ rtd | testfailure | probefailure | testcomplete ]* }
The condition for triggering a trap is configured.
- (Optional) Configure the NQA statistics function.
Run records { history number | result number }
The maximum number of history records and the maximum number of result records that can be saved for the NQA test instance are set.
- (Optional) Run agetime ageTimeValue
The aging time for the NQA test instance is set.
- Schedule the NQA test instance.
- (Optional) Run frequency frequencyValue
The test period is set for the NQA test instance.
- Run start
An NQA test is started.
The start command has multiple formats. Choose one of the following as needed.
To start an NQA test instance immediately, run the start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command.
To start an NQA test instance at a specified time, run the startat [ yyyy/mm/dd ] hh:mm:ss [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command.
To start an NQA test instance after a specified delay, run the start delay { seconds second | hh:mm:ss } [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command.
To start an NQA test instance at a specified time every day, run the startdailyhh:mm:sstohh:mm:ss [ beginyyyy/mm/dd ] [ endyyyy/mm/dd ] command.
- Run commit
The configuration is committed.