Example for Configuring the LSP Ping Test for a Common Tunnel
Networking Requirements
In Figure 7-33:
The OSPF protocol runs on Router A, Router B, and Router C. The three Routers learn the 32-bit host routes on their loopback interfaces.
MPLS and MPLS LDP are enabled on Router A, Router B, and Router C.
MPLS and MPLS LDP are enabled on GE interfaces connected to Router A, Router B, and Router C to trigger the establishment of an LDP LSP.
The NQA LSP Ping test needs to be performed to check the connectivity of the LSP between Router A and Router C.
Configuration Roadmap
The configuration roadmap is as follows:
Configure Router A as the NQA client.
Configure Router C as the NQA server.
Create an LSP Ping test on Router A.
Procedure
- Configure reachable routes between Router A and Router B, between Router A and Router C, and between Router B and Router C. The configuration details are not mentioned here.
- Configure LDP on RouterA, RouterB,
and RouterC. (The detailed
procedure is not mentioned here.)
For the configuration of LDP, refer to the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - MPLS.
- Configure Router A.
# Enable the NQA client and create an LSP Ping test for a common tunnel.
<RouterA> system-view [RouterA] nqa test-instance admin lspping [RouterA-nqa-admin-lspping] test-type lspping [RouterA-nqa-admin-lspping] lsp-type ipv4 [RouterA-nqa-admin-lspping] destination-address ipv4 10.3.3.9 lsp-masklen 32
- Perform the test.
[RouterA-nqa-admin-lspping] start now
- Verify the configuration.
[RouterA-nqa-admin-lspping] display nqa results test-instance admin lspping NQA entry(admin, lspping) :testflag is inactive ,testtype is lspping 1 . Test 1 result The test is finished Send operation times: 3 Receive response times: 3 Completion:success RTD OverThresholds number: 0 Attempts number:1 Drop operation number:0 Disconnect operation number:0 Operation timeout number:0 System busy operation number:0 Connection fail number:0 Operation sequence errors number:0 RTT Status errors number:0 Destination ip address:10.3.3.9 Min/Max/Average Completion Time: 3/9/7 Sum/Square-Sum Completion Time: 21/171 Last Good Probe Time: 2012-11-16 21:52:57.3 Lost packet ratio: 0 %
Configuration Files
RouterA configuration file
# sysname RouterA # mpls lsr-id 10.1.1.9 mpls # mpls ldp # interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.0 mpls mpls ldp # interface LoopBack1 ip address 10.1.1.9 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.1.1.9 0.0.0.0 # nqa test-instance admin lspping test-type lspping destination-address ipv4 10.3.3.9 lsp-masklen 32 # return
RouterB configuration file
# sysname RouterB # mpls lsr-id 10.2.2.9 mpls # mpls ldp # interface GigabitEthernet1/0/0 ip address 10.1.1.2 255.255.255.0 mpls mpls ldp # interface GigabitEthernet2/0/0 ip address 10.2.1.1 255.255.255.0 mpls mpls ldp # interface LoopBack1 ip address 10.2.2.9 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.2.2.9 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.2.1.0 0.0.0.255 # return
RouterC configuration file
# sysname RouterC # mpls lsr-id 10.3.3.9 mpls # mpls ldp # interface GigabitEthernet1/0/0 ip address 10.2.1.2 255.255.255.0 mpls mpls ldp # interface LoopBack1 ip address 10.3.3.9 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.3.3.9 0.0.0.0 network 10.2.1.0 0.0.0.255 # return