取消
显示结果 
搜索替代 
您的意思是: 
cancel
公告

December 2020

[原创翻译] 理解 Show IP OSPF Traffic 命令

4305
查看次数
30
有帮助
7
评论
本帖最后由 weidhuan 于 2015-6-29 13:57 编辑
理解 Show IP OSPF Traffic 命令

简介:
本文主要阐述在 OSPFv2 和 OSPFv3 里的 show ip ospf traffic 命令。通过显示详细的 OSPF 网络流量统计信息,show ip ospf traffic 能够帮助我们更加有效地对 OSPF 进程进行排障。
OSPF 流量统计会采集并显示以下信息:

  • OSPF hello 入向队列和 OSPF 进程队列的状态及统计信息
  • 全局 OSPF 流量统计信息
  • 每个 OSPF 接口的流量统计信息
  • 每个 OSPF 进程的流量统计信息

当 OSPF 网络出现不稳定的状况时,OSPF 进程队列的状态以及它的统计信息,能够帮助我们确定有多少流量可以被送到 OSPF 中。例如,我们可以利用这些输出,来确定 OSPF 进程处理的流量的总值。
同时,OSPF 数据包报头错误和 LSA 错误统计将有助于对各种不同的错误进行分类记录。
针对存在低速链路和频繁拓扑变更的典型的本地网络环境,你还能够监控 OSPF 进程间交互的流量控制报文的数量。
Show IP Traffic In OSPFv2
使用 show ip ospf traffic 命令,可以显示典型的 OSPFv2 网络里的 OSPF 流量统计信息:

R1#show ip ospf traffic


OSPF statistics:

Last clearing of OSPF traffic counters never


Rcvd: 640 total, 0 checksum errors

617 hello, 3 database desc, 1 link state req

15 link state updates, 4 link state acks


Sent: 636 total

618 hello, 2 database desc, 1 link state req

7 link state updates, 8 link state acks


OSPF Router with ID (3.3.3.3) (Process ID 1)


OSPF queue statistics for process ID 1:


InputQ UpdateQ OutputQ

Limit 0 200 0

Drops 0 0 0

Max delay [msec] 4 0 0

Max size 2 2 2

Invalid 0 0 0

Hello 0 0 1

DB des 2 2 1

LS req 0 0 0

LS upd 0 0 0

LS ack 0 0 0

Current size 0 0 0

Invalid 0 0 0

Hello 0 0 0

DB des 0 0 0

LS req 0 0 0

LS upd 0 0 0

LS ack 0 0 0


Interface statistics:


Interface GigabitEthernet0/1


Last clearing of interface traffic counters never


OSPF packets received/sent

Type Packets Bytes

RX Invalid 0 0

RX Hello 618 29664

RX DB des 3 136

RX LS req 1 36

RX LS upd 15 1164

RX LS ack 4 236

RX Total 641 31236


TX Failed 0 0

TX Hello 619 49516

TX DB des 2 148

TX LS req 1 68

TX LS upd 7 564

TX LS ack 8 772

TX Total 637 51068


OSPF header errors

Length 0, Auth Type 0, Checksum 0, Version 0,

Bad Source 0, No Virtual Link 0, Area Mismatch 0,

No Sham Link 0, Self Originated 0, Duplicate ID 0,

Hello 0, MTU Mismatch 0, Nbr Ignored 0,

LLS 0, Unknown Neighbor 0, Authentication 0,

TTL Check Fail 0


OSPF LSA errors

Type 0, Length 0, Data 0, Checksum 0


Summary traffic statistics for process ID 1:


OSPF packets received/sent


Type Packets Bytes

RX Invalid 0 0

RX Hello 618 29664

RX DB des 3 136

RX LS req 1 36

RX LS upd 15 1164

RX LS ack 4 236

RX Total 641 31236


TX Failed 0 0

TX Hello 619 49516

TX DB des 2 148

TX LS req 1 68

TX LS upd 7 564

TX LS ack 8 772

TX Total 637 51068


OSPF header errors

Length 0, Auth Type 0, Checksum 0, Version 0,

Bad Source 0, No Virtual Link 0, Area Mismatch 0,

No Sham Link 0, Self Originated 0, Duplicate ID 0,

Hello 0, MTU Mismatch 0, Nbr Ignored 0,

LLS 0, Unknown Neighbor 0, Authentication 0,

TTL Check Fail 0


OSPF LSA errors

Type 0, Length 0, Data 0, Checksum 0


注意:你可以使用 show ip ospf[process-id] traffic [interface-type interface-number] 命令来查看某个特定接口的 OSPF 流量。 使用 clear ip ospf traffic 命令来清除计数器。


Show IPv6 OSPF Traffic In OSPFv3

R1#show ipv6 ospf traffic


OSPFv3 statistics:

Last clearing of OSPFv3 traffic counters never


Rcvd: 18 total, 0 checksum errors

11 hello, 3 database desc, 0 link state req

2 link state updates, 2 link state acks

0 LSA ignored


Sent: 17 total, 0 failed

11 hello, 2 database desc, 1 link state req

2 link state updates, 1 link state acks


OSPFv3 Router with ID (3.3.3.3) (Process ID 1)


OSPFv3 queue statistic for process ID 1


InputQ UpdateQ OutputQ

Limit 0 200 0

Drops 0 0 0

Max delay [msec] 0 0 4

Max size 2 2 2

Invalid 0 0 0

Hello 0 0 1

DB des 2 2 1

LS req 0 0 0

LS upd 0 0 0

LS ack 0 0 0

Current size 0 0 0

Invalid 0 0 0

Hello 0 0 0

DB des 0 0 0

LS req 0 0 0

LS upd 0 0 0

LS ack 0 0 0


Interface statistics:


Interface FastEthernet0/1


Last clearing of interface traffic counters never


OSPFv3 packets received/sent

Type Packets Bytes

RX Invalid 0 0

RX Hello 12 480

RX DB des 3 244

RX LS req 0 0

RX LS upd 2 548

RX LS ack 2 92

RX Total 19 1364


TX Failed 0 0

TX Hello 12 476

TX DB des 2 56

TX LS req 1 112

TX LS upd 2 188

TX LS ack 1 256

TX Total 18 1088


OSPFv3 header errors

Length 0, Checksum 0, Version 0, No Virtual Link 0,

Area Mismatch 0, Self Originated 0, Duplicate ID 0,

Instance ID 0, Hello 0, MTU Mismatch 0,

Nbr Ignored 0, Authentication 0, TTL Check Fail 0,

Discarded 0


OSPFv3 LSA errors

Type 0, Length 0, Data 0, Checksum 0


Summary traffic statistics for process ID 1:


OSPFv3 packets received/sent


Type Packets Bytes

RX Invalid 0 0

RX Hello 12 480

RX DB des 3 244

RX LS req 0 0

RX LS upd 2 548

RX LS ack 2 92

RX Total 19 1364


TX Failed 0 0

TX Hello 12 476

TX DB des 2 56

TX LS req 1 112

TX LS upd 2 188

TX LS ack 1 256

TX Total 18 1088


OSPFv3 header errors

Length 0, Checksum 0, Version 0, No Virtual Link 0,

Area Mismatch 0, Self Originated 0, Duplicate ID 0,

Instance ID 0, Hello 0, MTU Mismatch 0,

Nbr Ignored 0, Authentication 0, TTL Check Fail 0,

Discarded 0


OSPFv3 LSA errors

Type 0, Length 0, Data 0, Checksum 0


注意:你可以使用 show ipv6 ospf [process-id] traffic[interface-type interface-number] 命令来查看某个特定接口的流量统计。 使用 Clear IPv6 OSPF traffic 来清除计数器。


原文出处: https://supportforums.cisco.com/document/117916/understanding-show-ip-ospf-traffic-command
原文作者: Sivagami Narayanan

评论
Fisheryu
Cisco Employee
:D:D:D:D
taosun2
Cisco Employee
赞!!!
Fusen Huang
Cisco Employee
谢谢楼主分享
linchen2
Community Member
赞一个
linlinwa
Cisco Employee
谢谢楼主分享!
chundli
Cisco Employee
漂亮
yongche2
Cisco Employee
学习学习
创建
认可您的同行
Content for Community-Ad