Replies: 1 comment 1 reply
-
Hi,
This means, the time set to rotate the file does not affect the flow cache. All flows flushed during the rotate period end up in the same file. Therefore you never will see a duration exactly the same as the rotation period, as each flow has its own timestamps. Even for continuous flows the first/last packet most likely never falls exactly on the rotation period frame. Therefore, the smaller the active/inactive timeout is, the more granular the resulting flow. However, the smaller these timeouts are, the more load you put on the collector, as at each of these timeouts you need to expire the flow cache. If you only process caps, then this may work, on an active interface with lots of traffic, this is highly not recommended. If you process pcaps, then you get the most granular flows by splitting the pcap in many individual files, each with a few packets only and then let nfpcapd process all these files. If a EOF of a pcap is reached the entire flow cache is flushed. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I try to use nfpcap and nfdump, to create from a .pcap micro-flows and use them in samples for ML DDoS detection. Since I would like to get as close to real-time data as possible, I would like to rebuild the flow context after the shortest possible time spans.
So It tried to acvieve that with the active and inactive timeouts. It does not what I expected:
nfdump/bin/nfpcapd -e 10,5 -t 10 -r Friday-WorkingHours.pcap -l out/
and
nfdump/bin/nfdump -b -O tstart -t '2017/07/07.20:46:00'-'2017/07/07.21:26:00' -o csv -R out/ 'not inet6 and inet' >fridayDump.csv
creates flows, but the duration of the flows are as if I don't touch these paramters.
I got
but I want something like:
So in short: is there a possibility with this tools, to split the flow (entries) into more finely granular entries ?
(If I change the rotation value, it increases the number of packages by a corresponding factor, but still everything in one line).
Thanks for some advice/tips!
Beta Was this translation helpful? Give feedback.
All reactions