最佳答案
流统确认下丢包位置,如果确认是交换机侧丢包,收集对应设备的诊断信息和流统信息,返回400分析处理
acl number 3333
description traffic accounting for host A to host B
rule 10 permit tcp source 1.1.1.1 0 destination 2.2.2.2 0 destination-port eq www
acl number 3334
description traffic accounting for host B to host A
rule 10 permit tcp source 2.2.2.2 0 source-port eq www destination 1.1.1.1 0
#
traffic classifier traffic_accounting_from_A_to_B operator and
if-match acl 3333
traffic classifier traffic_accounting_from_B_to_A operator and
if-match acl 3334
#
traffic behavior traffic_accounting_from_A_to_B
accounting packet
traffic behavior traffic_accounting_from_B_to_A
accounting packet
#
qos policy traffic_accounting_from_A_to_B
classifier traffic_accounting_from_A_to_B behavior traffic_accounting_from_A_to_B
qos policy traffic_accounting_from_B_to_A
classifier traffic_accounting_from_B_to_A behavior traffic_accounting_from_B_to_A
#
interface GigabitEthernet2/0/1
qos apply policy traffic_accounting_from_A_to_B inbound
qos apply policy traffic_accounting_from_B_to_A outbound
#
interface GigabitEthernet2/0/2
qos apply policy traffic_accounting_from_B_to_A inbound
qos apply policy traffic_accounting_from_A_to_B outbound
注意事项
1、对匹配的流量计一定要尽量精确,避免其他流量影响统计结果。
2、注意流量双向性和qos策略下发的方向要正确下发。
(0)
判断是否丢包,最好的方法就是流统。参考http://kms2.h3c.com/View.aspx?id=41506
定义acl,匹配PCA访问PCB的流量计,在做流量统计时应尽量保证匹配的情况精确,避免抓取到其他业务流量,使流量统计不准确。
[H3C]acl number 3333
[H3C-acl-adv-3333]description traffic accounting for host A to host B
[H3C-acl-adv-3333]rule 10 permit tcp source 1.1.1.1 0.0.0.0 destination 2.2.2.2 0.0.0.0 destination-port eq 80
定义流分类,匹配acl定义的PCA访问PCB的web流量。
[H3C]traffic classifier traffic_accounting_from_A_to_B
[H3C-classifier-traffic_accounting_from_A_to_B]if-match acl 3333
定义流行为,统计报文个数
[H3C]traffic behavior traffic_accounting_from_A_to_B
[H3C-behavior-traffic_accounting_from_A_to_B]accounting packet
定义qos策略,关联流分类和流行为
[H3C]qos policy traffic_accounting_from_A_to_B
[H3C-qospolicy-traffic_accounting_from_A_to_B]classifier traffic_accounting_from_A_to_B behavior traffic_accounting_from_A_to_B
在2/0/1的入方向和2/0/2的出访问下发qos策略,来统计报文是否到达设备和是否被设备转发给PCB。
[H3C]interface GigabitEthernet2/0/1
[H3C-GigabitEthernet2/0/1]qos apply policy traffic_accounting_from_A_to_B inbound
[H3C]interface GigabitEthernet2/0/2
[H3C-GigabitEthernet2/0/2]qos apply policy traffic_accounting_from_A_to_B outbound
使PCA访问PCB,查看接口GigabitEthernet2/0/1流量统计结果
[H3C]display qos policy interface GigabitEthernet 2/0/1
Interface: GigabitEthernet2/0/1
Direction: Inbound
Policy: traffic_accounting_from_A_to_B
Classifier: traffic_accounting_from_A_to_B
Operator: AND
Rule(s) : If-match acl 3333
Behavior: traffic_accounting_from_A_to_B
Accounting Enable:
5 (Packets)
(0)
暂无评论
您好,请知:
关于丢包,有如下要点需要排查:
1、首先在设备上部署QOS流控,对特定的数据包、测试地址段的转发进行监控,看是否已发数据包出去。
2、其次采用分段PING的方式,从网关开始,逐步网上PING,看在那里丢包就在哪里进行排查。
3、同时检查下端口是否有CRC错包,并确保物理链路正常。
4、不排除有环路的情况,可使用dis mac-address mac-move看下。
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论