使用Ping检测VPWS PW的连通性
配置VPWS(Virtual Private Wire Service)网络后,可以使用PW Ping检测VPWS的连通性。
背景信息
在VPWS网络中,当某条PW发生故障时,可以通过ping vc命令进行检测。在PW为UP的情况下,大体定位PW的异常情况,如转发项异常丢失或者不正确等。
PW Ping的检测方式和场景请参见表9-2。
检测方式 |
场景 |
特点 |
---|---|---|
Control-Word方式 |
支持单段PW和多段PW场景。 |
|
Label-Alert方式 |
仅支持单段PW场景。 |
|
TTL方式 |
支持单段PW和多段PW场景。 |
需要用户指定TTL值,以保证ping请求报文在目的设备因TTL超时上送处理。 |
操作步骤
- Control-Word方式:
执行命令ping vc vc-type pw-id [ peer-address ] [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * control-word [ remote remote-ip-address peer-pw-id [ sender sender-address ] ] [ ttl ttl-value ] [ pipe | uniform ],使用Control-Word方式检测PW的连通性。
在检测多段PW的连通性时,需要指定remote remote-ip-address peer-pw-id [ sender sender-address ]参数,配置远端目的PE的IP地址、PW ID和源地址。
- Label-Alert方式:
执行命令ping vc vc-type pw-id [ peer-address ] [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * label-alert [ no-control-word ] ,使用Label-Alert方式检测PW的连通性。
- TTL方式:
执行命令ping vc vc-type pw-id [ peer-address ] [ -c echo-number | -m time-value | -s data-bytes | -t timeout-value | -exp exp-value | -r reply-mode | -v | -g ] * normal [ no-control-word ] [ remote remote-ip-address peer-pw-id ] [ ttl ttl-value ] [ pipe | uniform ],使用TTL方式检测PW的连通性。
在检测多段PW的连通性时,需要指定remote remote-ip-address peer-pw-id [ ttl ttl-value ] [ pipe | uniform ]参数,配置远端目的PE的IP地址、PW ID和TTL值。
命令执行结果输出包括:
对每一个ping vc报文的响应情况,如果超时到仍没有收到响应报文,则输出“Request time out”,否则显示响应报文中数据字节数、报文序号、TTL和响应时间等。
最后的统计信息,包括发送报文数、接收报文数、未响应报文百分比和响应时间的最小、最大和平均值。
举例如下:
<HUAWEI> ping vc ethernet 100 control-word PW PING : FEC 128 PSEUDOWIRE (NEW). Type = ethernet, ID = 100 : 100 data bytes, press CTRL_C to break Reply from 10.10.10.10: bytes=100 Sequence=1 time = 140 ms Reply from 10.10.10.10: bytes=100 Sequence=2 time = 40 ms Reply from 10.10.10.10: bytes=100 Sequence=3 time = 30 ms Reply from 10.10.10.10: bytes=100 Sequence=4 time = 50 ms Reply from 10.10.10.10: bytes=100 Sequence=5 time = 50 ms --- FEC: FEC 128 PSEUDOWIRE (NEW). Type = ethernet, ID = 100 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 30/62/140 ms