Skip to main content
Version: 1.3.0

sFlow

sFlow (Sampled Flow) is a network monitoring protocol designed for high-speed networks. Unlike NetFlow and IPFIX, which capture complete flow records, sFlow uses packet sampling to provide scalable and efficient traffic analysis. It operates by embedding monitoring agents in network devices that randomly sample packets and send them to a central collector for analysis.

FieldDescription
sampleSequenceNumberUnique identifier for the sampled packet
sourceIPSource IP address
destinationIPDestination IP address
sourcePortSource port number
destinationPortDestination port number
protocolTransport protocol (TCP, UDP, etc.)
sampledPacketSizeSize of the sampled packet in bytes
inputInterfaceInterface where the packet was received
outputInterfaceInterface where the packet was forwarded
vlanIDVLAN identifier of the packet
tcpFlagsTCP control flags
flowSampleTypeType of sampling (e.g., packet, counter)
samplingRateRatio of sampled packets to total packets
agentAddressIP address of the device performing sampling
collectorAddressIP address of the sFlow collector

sFlow's lightweight sampling approach makes it ideal for real-time traffic monitoring in large-scale, high-speed networks.