• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 是
  • 否
  • 全部
  • 是
  • 否
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索
问

. 251是解码器连着汇聚2口,汇聚时断时续,核心很顺畅,

1天前提问
  • 0关注
  • 0收藏,96浏览
粉丝:0人 关注:0人

问题描述:

汇聚时断时续汇聚,核心很顺畅,组长说汇聚有环路,

组网及组网描述:

汇聚上联核心交换机,下联2口连接解码器的网线

5 个回答
粉丝:1人 关注:7人

流统看看丢哪里了

大佬请问怎么看

zhiliao_gOQqio 发表时间:1天前 更多>>

大佬请问怎么了

zhiliao_gOQqio 发表时间:1天前

大佬请问怎么看

zhiliao_gOQqio 发表时间:1天前
粉丝:0人 关注:0人

流量统计就是通过与类关联,对符合匹配规则的流进行统计,统计报文数或字节数。是排查丢包和不通类问题的手段。例如,可以统计从某个源IP地址发送的报文,然后管理员对统计信息进行分析,根据分析情况采取相应的措施。

如图所示组网,PCA访问PCB web业务无法访问成功,怀疑网络中存在丢包,使用流量统计,确认丢包位置。在大型网络中通过流量统计也可以缩小故障范围。PCA的IP为1.1.1.1,PCB的IP为2.2.2.2。

定义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)

根据结果看出有5个报文进行交换机。查看接口GigabitEthernet2/0/2流量统计结果

[H3C]display qos policy interface GigabitEthernet 2/0/2

  Interface: GigabitEthernet2/0/2

  Direction: Outbound

  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)

有5个报文从交换机发出,说明从A到B转发正常。

使用相同方式对反方向做流量统计,同时查看结果。

[H3C]acl number 3334

[H3C-acl-adv-3334]description traffic accounting for host B to host A

[H3C-acl-adv-3334]rule 10 permit tcp source 2.2.2.2 0.0.0.0 source-port eq 80 destination 1.1.1.1 0.0.0.0

定义流分类,匹配acl定义的PCA访问PCB的web流量。

[H3C]traffic classifier traffic_accounting_from_B_to_A

[H3C-classifier-traffic_accounting_from_B_to_A]if-match acl 3334

定义流行为,统计报文个数

[H3C]traffic behavior traffic_accounting_from_B_to_A

[H3C-behavior-traffic_accounting_from_B_to_A]accounting packet

定义qos策略,关联流分类和流行为

[H3C]qos policy traffic_accounting_from_B_to_A

[H3C-qospolicy-traffic_accounting_from_B_to_A]classifier traffic_accounting_from_B_to_A behavior traffic_accounting_from_B_to_A

在2/0/2的入方向和2/0/1的出访问下发qos策略,来统计报文是否到达设备和是否被设备转发给PCB。

[H3C]interface GigabitEthernet2/0/1

[H3C-GigabitEthernet2/0/1]qos apply policy traffic_accounting_from_B_to_A outbound

[H3C]interface GigabitEthernet2/0/2

[H3C-GigabitEthernet2/0/2]qos apply policy traffic_accounting_from_B_to_A inbound

使用display qos policy interface查看流量统计结果

[H3C]display qos policy interface GigabitEthernet 2/0/1

  Interface: GigabitEthernet2/0/1

  Direction: Outbound

  Policy: traffic_accounting_from_B_to_A
   Classifier: traffic_accounting_from_B_to_A
     Operator: AND
     Rule(s) : If-match acl 3334
     Behavior: traffic_accounting_from_B_to_A
      Accounting Enable:
        5 (Packets)

[H3C]display qos policy interface GigabitEthernet 2/0/2

  Interface: GigabitEthernet2/0/2

  Direction: Inbound

  Policy: traffic_accounting_from_B_to_A
   Classifier: traffic_accounting_from_B_to_A
     Operator: AND
     Rule(s) : If-match acl 3334
     Behavior: traffic_accounting_from_B_to_A
      Accounting Enable:
        5 (Packets)

通过以上结果可以看出交换机反向转发正常,在交换机上没有丢包。

关键配置如下

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策略下发的方向要正确下发。

粉丝:48人 关注:2人

  1. 确认 G1/0/2 stp edged-port active 是否生效;不生效就 shutdown/undo shutdown 端口;
  2. 开启 stp bpdu-protection;
  3. 去解码器现场拔线排查,确认解码器是否自环;
  4. 清除 MAC 漂移,长 ping 复测。


解码器直连核心没有断断续续,开启了 stp bpdu-protection,stp edged-port 不管用,长 ping还是断断续续

zhiliao_gOQqio 发表时间:1天前 更多>>

解码器直连核心没有断断续续,开启了 stp bpdu-protection,stp edged-port 不管用,长 ping还是断断续续

zhiliao_gOQqio 发表时间:1天前
粉丝:95人 关注:11人

先看下接口带宽情况 

做流量统计定位下丢包位置

粉丝:17人 关注:9人

根据描述,汇聚交换机出现时断时续、核心正常,且怀疑有环路,可按以下步骤排查。
1. 快速确认环路
在汇聚交换机上执行:
display stp brief
查看是否有端口处于DISCARDING或LEARNING状态,以及根桥是否正常。若STP未启用或端口状态异常,环路可能性大。
2. 检查端口流量和错误
display interface brief
display interface GigabitEthernet1/0/2
关注2口(连解码器)的input/output errors、CRC、collisions。若错误计数持续增长,可能是物理链路或双工不匹配。
3. 查看MAC地址漂移
display mac-address mac-move
若存在MAC漂移记录,说明有环路或二层路径切换。
4. 确认STP配置
display current-configuration | include stp
确保汇聚和核心的STP模式一致(如MSTP),且汇聚的优先级设置合理,避免根桥选举异常。
5. 检查解码器侧
解码器可能发送异常广播或组播,导致汇聚端口拥塞。在汇聚上对2口做流量统计:
display interface GigabitEthernet1/0/2 | include rate
观察广播/组播速率是否异常。
6. 临时处置
若确认环路,可先在2口启用边缘端口和BPDU保护:
interface GigabitEthernet1/0/2
stp edged-port enable
stp bpdu-protection enable
但需确保解码器不会发送BPDU。
建议:优先检查2口物理链路(网线、光模块)和双工模式,时断时续常与链路质量或协商问题相关,环路通常表现为完全中断或广播风暴。

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

✖

分享扩散:

➤

提出建议

✖

    +
✖

亲~登录后才可以操作哦!

确定
✖

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub
✖

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

✖

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明