客户这边有台SR6608路由器,配置sFlow, 向一台友商的sFlow collector吐数据。SR6608路由器吐的数据里有只有counter数据而且数据包的长度也不正常。
下图是异常的采集信息的抓包截图:
在设备上收集如下信息:
系统视图下
flow-interval 5
用户视图下
reset counters interface
隐含试图下
display sflow statistics
reset sflow statistics
debugging sflow sampler process
debugging sflow agent all
用户视图下
debugging ethernet packet interface Vlan-interface 2500
terminal debugging
terminal monitor
上述调试信息收集约20秒钟后,
先undo terminal debugging、undo terminal monitor
然后undo debugging all
再进入隐含试图undo debugging sflow sampler process、undo debugging sflow agent all
停止打印调试信息后,再收集:
display interface Vlan-interface 2500
display interface Ten-GigabitEthernet5/0/3
隐含试图下
display sflow ifcb interface Ten-GigabitEthernet5/0/3
display sflow statistics
经过分析和确认,设备之所以采样失败,是因为SR6608路由器上的SAP 4EXP 4端口万兆单板的交换芯片在实现上,不支持对三层口与二层口之间的转发流量进行采样。
现场采集的是Host A 与Internet之间的流量,G5/0/3是二层互联,G3/0/1是三层互联。这样,由于芯片实现的限制,二层口和三层口之间的流量,sFlow是无法采集的。
1、 将SAP4EXP板的G3/0/1接口改为bridge口,通过vlan接口与外网相连,这样在4EXP板的bridge口上就能正常sflow采样了;
2、在现网流量不大的情况下,可以考虑将4EXP板上的内网口G5/0/3改为三层Route口,放弃sFow采样改为NetStream采样;同时注意配置Sampler采样率(默认一比一采样),以减小CPU负担。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作