HDLC跟踪和统计信息
5.1 hdlc的跟踪信息

    hdlc的跟踪信息较为简单,共有两个级别,跟踪级别1主要是对收发链路控制帧及ip帧进行跟踪,跟踪级别2则在跟踪级别1的基础上再列出ip报的内容。

    [命令]: trace start 端口号 跟踪级别

    端口号: s0-s1

    跟踪级别: 1或2

    [例子]:把s0口配成hdlc,打开跟踪。

    #trace start s0 hdlc 1

    #ping 130.130.0.2

    hdlc: send link packet to port s0. local_code=87 remote_code=83

    hdlc: receive link frame from port s0. length=22

    hdlc: local_code=87 remote_code=84

    hdlc: get ip packet from upper.

    hdlc: send ip packet to port s0. length=80

    0f 00 08 00 45 00 00 4c 00 24 00 00 ff 01 b6 85 82 82 00 01 82 82 00 02 08 00 36 ff 00 00

    hdlc: receive ip packet from port s0. length=80

    0f 00 08 00 45 00 00 4c 02 f2 00 00 ff 01 b3 b7 82 82 00 02 82 82 00 01 00 00 3e ff 00 00 00 01 7a 8f 3b 45 3e 3d 69 55

    hdlc: deliver ip packet to upper.

    reply from 130.130.0.2 : data=48, time=50ms, ttl=255

    5.2 hdlc的统计信息

    [命令]: show statistics hdlc 端口号(s0-s1)

    所察看的端口必须已封装为hdlc。如本路由器只有一个端口封装为hdlc,则端口号可省略。

    [例子]: 把s1口配成hdlc,察看端口s1的hdlc统计信息

    #show statistics hdlc s1

    hdlc的统计信息出现的项目有:

    接收字节数 receive octets 该端口自从配置成hdlc协议以来收到的

    字节数

    接收数据包 receive packets 该端口自从配置成hdlc协议以来收到的

    数 数据包数,包括错包

    接收控制数 receive ctl 该端口自从配置成hdlc协议以来收到的

    据包数 packets 传输控制数据包数

    接收到但被 receive discard 该端口自从配置成hdlc协议以来接收正

    丢弃的数据 packets 确但被丢弃的数据包数

    包数

    接收到的错 receive error 该端口自从配置成hdlc协议以来接收到

    误的数据包 packets 的错误数据包数

    数

    接收到的未 receive unknown 该端口自从配置成hdlc协议以来接收到

    知数据包数 packets 的未知的数据包数

    发送字节数 send octets 该端口自从配置成hdlc协议以来发送的

    字节数

    发送数据包 send packets 该端口自从配置成hdlc协议以来发送的

    数 数据包数

    发送控制数 send ctl packets 该端口自从配置成hdlc协议以来发送的传输控制

    据包数 数据包数

    发送后被丢 send discard 该端口自从配置成hdlc协议以来发送后

    弃的数据包 packets 被丢弃的数据包数

    数

    发送的错误 send error 该端口自从配置成hdlc协议以来发送的

    的数据包数 packets 错误数据包数

   

   
博达 2650 相关内容:报价 | 参数 | 图片 | 论坛 | 评测