配置CR-LSP热备份隧道LSP Trace测试示例
组网需求
RouterA、RouterB、RouterC、RouterD都运行OSPF协议,并学习到彼此Loopback接口的32位主机路由。
RouterA、RouterB、RouterC、RouterD上都启用MPLS、MPLS TE、MPLS RSVP-TE和MPLS TE CSPF。
RouterA、RouterB、RouterC、RouterD之间的接口都启用MPLS、MPLS TE和MPLS RSVP-TE,建立从RouterA到RouterC的TE隧道。
- 主CR-LSP的路径为RouterA-->RouterB-->RouterC
- 备份CR-LSP的路径为RouterA-->RouterD-->RouterC
但是当备份CR-LSP出现故障不能承载主链路切换过来的流量时,需要对这条备份链路进行检测。应用NQA LSP Trace可以实现对CR-LSP热备份(hot-standby)隧道进行连通性的检测。NQA集成的备份链路的检测功能,可以对备份链路的连通性及性能状况进行实时的检测,便于链路故障的检测和定位。
操作步骤
- 配置RouterA、RouterB、RouterC和RouterD之间路由可达
具体配置内容请参见本例的配置文件。
- 配置RouterA、RouterB、RouterC和RouterD的MPLS RSVP-TE
具体配置内容请参见本例的配置文件。
- 配置RouterA上建立到RouterC的TE隧道
具体配置内容请参见本例的配置文件。
- 配置RouterA的NQA测试例
# 使能NQA客户端,配置TE隧道的LSP Trace测试例。
<RouterA> system-view
[RouterA] nqa test-instance admin lsptrace
[RouterA-nqa-admin-lsptrace] test-type lsptrace
[RouterA-nqa-admin-lsptrace] lsp-type te
[RouterA-nqa-admin-lsptrace] lsp-tetunnel tunnel 0/0/1 hot-standby
- 启动测试操作
[RouterA-nqa-admin-lsptrace] start now
- 验证配置结果
[RouterA-nqa-admin-lsptrace] display nqa results test-instance admin lsptrace
NQA entry(admin, lsptrace) :testFlag is inactive ,testtype is lsptrace 1 . Test 1 result The test is finished Completion:success Attempts number:1 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 Drop operation number:0 Last good path Time:2009-04-24 11:22:21.2 1 . Hop 1 Send operation times: 3 Receive response times: 3 Min/Max/Average Completion Time: 50/60/56 Sum/Square-Sum Completion Time: 170/9700 RTD OverThresholds number: 0 Last Good Probe Time: 2009-04-24 11:22:20.8 Destination ip address:10.30.1.2 Lost packet ratio: 0 % 2 . Hop 2 Send operation times: 3 Receive response times: 3 Min/Max/Average Completion Time: 80/110/93 Sum/Square-Sum Completion Time: 280/26600 RTD OverThresholds number: 0 Last Good Probe Time: 2009-04-24 11:22:21.2 Destination ip address:10.30.3.3 Lost packet ratio: 0 %
配置文件
RouterA的配置文件
# sysname RouterA # mpls lsr-id 10.10.1.1 mpls mpls te mpls rsvp-te mpls te cspf # explicit-path backup next hop 10.30.1.2 next hop 10.40.1.2 next hop 10.30.3.3 # explicit-path main next hop 10.1.1.2 next hop 10.20.1.2 next hop 10.30.3.3 # interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 10.30.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 10.10.1.1 255.255.255.255 # interface Tunnel0/0/1 ip address unnumbered interface LoopBack1 tunnel-protocol mpls te destination 10.30.3.3 mpls te tunnel-id 100 mpls te record-route mpls te path explicit-path main mpls te path explicit-path backup secondary mpls te commit # ospf 1 opaque-capability enable area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.10.1.1 0.0.0.0 network 10.30.1.0 0.0.0.255 mpls-te enable # nqa test-instance admin lsptrace test-type lsptrace lsp-type te lsp-tetunnel Tunnel0/0/1 hot-standby # return
RouterB的配置文件
# sysname RouterB # mpls lsr-id 10.20.2.2 mpls mpls te mpls rsvp-te mpls te cspf # interface GigabitEthernet1/0/0 ip address 10.20.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 10.1.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 10.20.2.2 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.20.1.0 0.0.0.255 network 10.20.2.2 0.0.0.0 mpls-te enable # return
RouterC的配置文件
# sysname RouterC # mpls lsr-id 10.30.3.3 mpls mpls te mpls rsvp-te mpls te cspf # interface GigabitEthernet1/0/0 ip address 10.40.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 10.20.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 10.30.3.3 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 10.20.1.0 0.0.0.255 network 10.30.3.3 0.0.0.0 network 10.40.1.0 0.0.0.255 mpls-te enable # return
RouterD的配置文件
# sysname RouterD # mpls lsr-id 10.40.4.4 mpls mpls te mpls rsvp-te mpls te cspf # interface GigabitEthernet1/0/0 ip address 10.30.1.2 255.255.255.0 mpls mpls te mpls rsvp-te # interface GigabitEthernet2/0/0 ip address 10.40.1.1 255.255.255.0 mpls mpls te mpls rsvp-te # interface LoopBack1 ip address 10.40.4.4 255.255.255.255 # ospf 1 opaque-capability enable area 0.0.0.0 network 10.30.1.0 0.0.0.255 network 10.40.1.0 0.0.0.255 network 10.40.4.4 0.0.0.0 mpls-te enable # return