NetFlow: what a flow is, key fields, the collector and configuration
Sign in to read this lesson
SNMP shows how much traffic goes through an interface, but not what kind of traffic it is. NetFlow gives very accurate information about the IP packets flowing through the network. A flow is a stream of packets from a source to a destination; packets belong to the same flow when the source and destination IP, source and destination port, L3 protocol type, ToS byte and input interface match. NetFlow is used to see the kind of traffic, to bill customers based on usage and to detect DoS attacks. Configuration: ip flow ingress/egress, ip flow-export version and ip flow-export destination.
What you will learn
- SNMP shows how much traffic passes, NetFlow shows what traffic it is: very accurate information about the IP packets flowing through the network.
- A flow is a stream of packets between a source and a destination. Basic fields: source IP, destination IP, source port, destination port; in addition L3 protocol type, ToS byte and input (logical) interface.
- When the same host opens a second TCP connection to the same web server, it is a separate flow because the source port is different.
- Uses: seeing the kind of traffic, billing based on usage, detecting DoS attacks. The NetFlow collector gathers the data: top talkers, most visited websites and more.
- Configuration:
ip flow ingress/ip flow egresson the interface,ip flow-export version 9,ip flow-export destination <IP> <UDP port>. Verify withshow ip cache flow.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.