检测PW的连接性
背景信息
使用ping vc和tracert vc命令检测PW的连接性之前,必须确保已正确配置PWE3网络。
VCCV-PING包括控制字(CW)和Label alert两种通道:
控制字通道:支持从UPE到UPE之间端到端的检测。
Label alert通道:支持端到端的检测,也支持UPE到SPE的逐跳检测。
缺省情况下,使能Label Alert通道方式的VCCV。在使用控制字通道之前,需要执行命令control-word使能控制字功能。控制字功能使能后,控制字通道方式的VCCV即被使能。
定位PW故障时,控制字通道和Label Alert通道方式不能同时使用。
检测PW的连接性目前不支持的情况包括:
不支持SPE设备上执行ping vc和tracert vc命令,只能在UPE设备上执行。
不支持多用户同时执行该命令,即两端不能同时Ping VC;在既是UPE又是SPE的设备上,如果作为SPE的PW正在执行VCCV-PING,作为UPE的PW不能再执行VCCV-PING;不能在同一台设备上,同时运行两个VCCV-PING。
不检查VC的MTU。
多跳PW情况下,需要指定本地VC-ID和VC-Type。对于控制字方式,如果VC-ID不一样,需要指定远端UPE的VC-ID;对于MPLS Label Alert方式,需要指定远端SPE或者UPE的Peer地址。
由于静态PW不存在信令协商,两端UPE的控制字配置不同(一端使能控制字,另一端禁止控制字),但都使能MPLS Label Alert情况下,PW可以UP;这时ping vc可以ping通,但CE间转发不通,因为控制字不一致。
操作步骤
- 检测PW的连通性
控制字通道
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * control-word [ remote remote-ip-address peer-pw-id | draft6 ] * [ ttl ttl-value ] [ pipe | uniform ]
如果还需要检测交换PW,可以执行如下命令:
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * control-word remote remote-ip-address peer-pw-id sender sender-address [ ttl ttl-value ] [ pipe | uniform ]
Label Alert通道
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * label-alert [ no-control-word ] [ remote remote-ip-address | draft6 ] * [ pipe | uniform ]
普通方式
ping vc pw-type pw-id [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v ] * normal [ no-control-word ] [ remote remote-ip-address peer-pw-id ] [ ttl ttl-value ] [ pipe | uniform ]
- 定位PW故障
控制字通道
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word [ draft6 ] [ full-lsp-path ] [ pipe | uniform ]
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word remote remote-ip-address [ ptn-mode | full-lsp-path ] [ pipe | uniform ]
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * control-word remote remote-pw-id draft6 [ full-lsp-path ] [ pipe | uniform ]
Label Alert通道
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * label-alert [ no-control-word ] [ remote remote-ip-address ] [ full-lsp-path ] [ draft6 ] [ pipe | uniform ]
普通方式
tracert vc pw-type pw-id [ -exp exp-value | -f first-ttl | -m max-ttl | -r reply-mode | -t timeout-value ] * normal [ no-control-word ] [ remote remote-ip-address ] [ full-lsp-path ] [ draft6 ] [ pipe | uniform ]