How does nfdump determine if a connection is established if the -a or -b or -B options are used? #566
-
Greetings! It is not entirely clear how aggregation of flow records works through the specified options We use IPFIX, Mikrotik there was an idea to discard reverse flow records, I came across the -b (-a and -B) option for nfdump in the manual, which indicates such an aggregation But how does nfdump do it? We instructed the flow sender to leave only the time, ip addresses, protocol and ports The beginning and end of a TCP connection is fixed via its flags And we removed these flags on the test device, how will aggregation behave in this case? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Aggregation Again - removing the flags does not make a difference for storage. nfdump breaks up flows into extensions, where elements are bundled together, whether they exist or not and flags go in every minimal flow bundle. |
Beta Was this translation helpful? Give feedback.
Aggregation
-a
is done via the 5-tuple protocol, srcip, dstip, srcport and dstport. See nfdump(1). This means, that all flows with the same 5-tuple are aggregated in a single flow with their byte and packet counters summed up. The number of flows in the new record is the number of aggregated flows. That's a single flow aggregation.The flag
-b
aggregates the same way as-a
does and tries to match the corresponding reverse flow with identical but reversed 5-tuple. That adds up the reverse counters in output bytes and output packets.Flags do not play a role in aggregation or reverse mapping flows and are or'ed all together in the flags field. So if you remove the flags it does not make a d…