韩佳鑫,服务器ping测试延迟大且丢包
问题描述
交换机下接一台服务器Ping测试延迟比较大且有丢包情况。
过程分析
查看诊断信息发现有大量的TC报文,导致上送至CPU的报文过多,网络延迟卡顿。
%Sep 6 13:44:43:588 2022 6Q-Tor-S6800 STP/6/STP_NOTIFIED_TC: Instance 0"s port Bridge-Aggregation100 was notified a topology change.
%Sep 6 13:44:45:793 2022 6Q-Tor-S6800 STP/6/STP_NOTIFIED_TC: Instance 0"s port Bridge-Aggregation100 was notified a topology change.
%Sep 6 13:44:45:952 2022 6Q-Tor-S6800 STP/6/STP_NOTIFIED_TC: Instance 0"s port Bridge-Aggregation100 was notified a topology change.
%Sep 6 13:44:48:793 2022 6Q-Tor-S6800 STP/6/STP_NOTIFIED_TC: Instance 0"s port Bridge-Aggregation100 was notified a topology change.
%Sep 6 13:44:49:003 2022 6Q-Tor-S6800 STP/6/STP_NOTIFIED_TC: Instance 0"s port Bridge-Aggregation100 was notified a topology change.
%Sep 6 13:44:51:793 2022 6Q-Tor-S6800 STP/6/STP_NOTIFIED_TC: Instance 0"s port Bridge-Aggregation100 was notified a topology change.
解决方法
开启端口TC报文保护并限速,问题解决。
1、接终端的access口开启如下命令保护
[SWA]STP bpdu-protection
[SWA-Ethernet1/0/1]stp edged-port
2、接交换机的端口开启根端口保护
[SWA-Ethernet1/0/1]stp root-protection
3、开启tc报文保护设置阈值超过即丢弃
[SWA]stp tc-protection
[SWA]stp tc-protection threshold number