交换机接口的出方向和入方向的丢包率貌似没有命令可以查询。
一般来讲丢包率百分之多少是可以接受的状态?
丢包率与包转发率有没有关系?
怎么排查哪些包被丢?
(0)
最佳答案
交换机接口的出方向和入方向的丢包率做流统
ACL Advanced 3990
rule 0 permit ip source 172.16.125.9 0 destination 60.191.37.151 0
rule 5 permit ip source 60.191.37.151 0 destination 172.16.125.9 0
rule 10 permit ip source 172.16.125.9 0 destination 60.191.123.44 0
rule 15 permit ip source 60.191.123.44 0 destination 172.16.125.9 0
#
traffic classifier lt operator and
if-match 3990
#
traffic behavior lt
accounting
#
qos policy lt
classifier lt behavior lt
#
最后在出接口和入接口调用
#
dis qos policy interface //查看流统情况
(0)
一般业务丢包在千分之三以内,排查丢包需要做流通 IP根据自己实际情况改写
用流统计或者debug ip icmp 确定丢在哪台设备哪个端口,配置:
System-view
#
acl number 3000
rule 0 permit icmp source 192.168.1.1 0 destination 192.168.1.3 0
rule 0 permit icmp source 192.168.1.3 0 destination 192.168.1.1 0
#
traffic classifier 1
if-match acl 3000
#
traffic behavior 1
accounting packet
#
qos policy 1
classifier 1 behavior 1
#
interface Ethernet1/0/1
qos apply policy 1 inbound
qos apply policy 1 outbound
#
Interface Ethernet1/0/2
qos apply policy 1 outbound
qos apply policy 1 inbound
#
查看端口的统计信息结果
[H3C]dis qos policy interface Ethernet 1/0/1
Interface: Ethernet1/0/1
Direction: Inbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Accounting Enable:
4 (Packets)
Direction: Outbound
Policy: 2
Classifier: 2
Operator: AND
Rule(s) : If-match acl 3001
Behavior: 2
Accounting Enable:
4 (Packets)
[H3C]dis qos policy interface Ethernet 1/0/2
Interface: Ethernet1/0/2
Direction: Inbound
Policy: 2
Classifier: 2
Operator: AND
Rule(s) : If-match acl 3001
Behavior: 2
Accounting Enable:
4 (Packets)
Direction: Outbound
Policy: 1
Classifier: 1
Operator: AND
Rule(s) : If-match acl 3000
Behavior: 1
Accounting Enable:
4 (Packets)
(1)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
如果你不清楚哪些报文丢了,需要在设备上查这条有问题的流的话,还是建议抓包,镜像也没办法确认