其次是通过ping 产生一定的流量,观察有没有丢包,show interface 检查端口计数器有没有显示input/output错误,有没有CRC、Frame等错误。注意在点对点类型的端口上ping 路由器本身的地址比ping 对端路由器的地址延时要小一半,原因可以参考下面的分析。在ATM等二层端口上不能直接产生测试数据包,可能需要额外的配置,如在8500交换机上可以这样配置:
interface atm 1/0/0 //需要进行环回测试的ATM二层端口
!
inter atm 0.1 point-to-point
atm pvc 0 100 interface atm 0/1/0 0 100 encap aal5snap
ip address 172.31.20.1 255.255.255.0
!
如果测试发现有丢包情况,可以通过命令show controller了解更多细节情况。如以下命令显示了某ATM端口上的BIP错误情况:
Router>show controllers atm 3/0/3
IF Name: ATM3/0/3 Chip Base Address: BC38E000
Port type: OC3 Port rate: 155000 Kbps Port medium: MM Fiber
Port status:Good Signal Loopback:None Flags:8308
...
Key: txcell - # cells transmitted
rxcell - # cells received
b1 - # section BIP-8 errors
b2 - # line BIP-8 errors
b3 - # path BIP-8 errors
ocd - # out-of-cell delineation errors - not implemented
g1 - # path FEBE errors
z2 - # line FEBE errors
chcs - # correctable HEC errors
uhcs - # uncorrectable HEC errors
txcell:275849733, rxcell:143010088
b1:26, b2:104, b3:34, ocd:0
g1:12, z2:0, chcs:0, uhcs:20
...