Ever had slow WAN links and wanted to see exactly who was using up the bandwidth. What you need is the Top Talkers feature.
You will first need to turn on NetFlow against the interface in question like so...
interface serial 0/0
ip flow egress
ip flow ingress
Then we enable the top talkers feature
ip flow-top-talkers
top 20
sort-by bytes
cache-timeout 3600000
The top command defines how many flows you want in the list in this case we will display the top 20 flows. The sort-by command determines how the flows are ordered. The choices are either bytes or packets. Generally bytes is more useful as it shows the weightier flows as top. You can also sort by packets this can help show a server which is perhaps sending a lot of smaller packets. The last command is cache-timeout this specifies the length of time the list of top talkers remains before being recalculated. The shorter the period the more system resources it uses.
Once you have this configured you can view the top talker list by issuing show ip flow top-talkers
Router#sh ip flow top-talkers
SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Bytes
Fa0/0 192.168.23.228 Se0/0 10.8.14.253 06 A2FD 0017 1852
Fa0/0 10.12.47.234 Null 224.0.0.10 58 0000 0000 660
Fa0/0 10.12.47.241 Local 10.12.47.233 06 00B3 75A2 238
Fa0/0 192.168.23.228 Se0/0 10.8.14.253 2E 0000 0000 224
Fa0/0 192.168.23.228 Se0/0 10.8.14.253 01 0000 0800 84
5 of 100 top talkers shown. 5 flows processed.
You will first need to turn on NetFlow against the interface in question like so...
interface serial 0/0
ip flow egress
ip flow ingress
Then we enable the top talkers feature
ip flow-top-talkers
top 20
sort-by bytes
cache-timeout 3600000
The top command defines how many flows you want in the list in this case we will display the top 20 flows. The sort-by command determines how the flows are ordered. The choices are either bytes or packets. Generally bytes is more useful as it shows the weightier flows as top. You can also sort by packets this can help show a server which is perhaps sending a lot of smaller packets. The last command is cache-timeout this specifies the length of time the list of top talkers remains before being recalculated. The shorter the period the more system resources it uses.
Once you have this configured you can view the top talker list by issuing show ip flow top-talkers
Router#sh ip flow top-talkers
SrcIf SrcIPaddress DstIf DstIPaddress Pr SrcP DstP Bytes
Fa0/0 192.168.23.228 Se0/0 10.8.14.253 06 A2FD 0017 1852
Fa0/0 10.12.47.234 Null 224.0.0.10 58 0000 0000 660
Fa0/0 10.12.47.241 Local 10.12.47.233 06 00B3 75A2 238
Fa0/0 192.168.23.228 Se0/0 10.8.14.253 2E 0000 0000 224
Fa0/0 192.168.23.228 Se0/0 10.8.14.253 01 0000 0800 84
5 of 100 top talkers shown. 5 flows processed.
You can tell what protocol and port the flows are by converting these Hex Values into decimal. The Pr column gives you the IP protocol number (17 is UDP 6 is TCP) In our example above we can see an EIGRP session IP protocol 88 (Hex 58)
The SrcP and DstP columns are the port value in Hex. The first flow for instance shows source port of 41,725 and a destination port of 23. The IP protocol is 6 (TCP) so this must be a telnet session.
Comments
Post a Comment