<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi everyone,<br>
<br>
I am trying to use softflowd and nfcapd to turn a pcap into neflow data.<br>
<br>
I am starting nfcapd by running: nfcapd -p 12345 -l netflow/<br>
and softflowd by running: softflowd -n localhost:12345 -r singleflow.pcap<br>
<br>
This is the pcap I am trying to convert<br>
<br>
No. Time Source Destination Protocol Info<br>
1 0.000000 192.168.1.73 74.86.135.174 TCP <br>
2 0.149059 74.86.135.174 192.168.1.73 TCP<br>
3 0.149170 192.168.1.73 74.86.135.174 TCP<br>
4 0.149322 192.168.1.73 74.86.135.174 HTTP<br>
5 0.200823 192.168.1.73 74.86.135.174 TCP<br>
6 0.299411 74.86.135.174 192.168.1.73 TCP<br>
7 0.319394 74.86.135.174 192.168.1.73 HTTP<br>
8 0.319474 192.168.1.73 74.86.135.174 TCP<br>
9 0.376528 74.86.135.174 192.168.1.73 TCP<br>
10 0.376569 192.168.1.73 74.86.135.174 TCP<br>
<br>
This shows the pcap contains a single flow. However when I run nfdump on the produced nfcap file, I get: -<br>
<br>
Date flow start Duration Proto Src IP Addr:Port Dst IP Addr:Port Packets Bytes Flows<br>
2009-08-23 03:33:22.720 0.377 TCP 74.86.135.174:80 -> 192.168.1.73:38589 4 445 1<br>
2009-08-23 03:33:22.720 0.377 TCP 192.168.1.73:38589 -> 74.86.135.174:80 6 846 1<br>
<br>
Summary: total flows: 2, total bytes: 1291, total packets: 10, avg bps: 27395, avg pps: 26, avg bpp: 129<br>
Time window: 2009-08-23 03:33:22 - 2009-08-23 03:33:23<br>
Total flows processed: 2, Records skipped: 0, Bytes read: 116<br>
Sys: 0.000s flows/second: 0.0 Wall: 0.000s flows/second: 5333.3<br>
<br>
Summary: total flows: 2, total bytes: 1291, total packets: 10, avg<br>
bps: 27395, avg pps: 26, avg bpp: 129<br>
Time window: 2009-08-23 03:33:22 - 2009-08-23 03:33:23<br>
Total flows processed: 2, Records skipped: 0, Bytes read: 116<br>
Sys: 0.000s flows/second: 0.0 Wall: 0.000s flows/second: 5333.3<br>
<br>
Which shows there are two flows. Every time I try and convert a pcap
to netflow I get double the number of flows I expect. Can anyone tell
me why this is, and what I can do to correct it?<br>
<br>
Thank you all for you help.<br>
<br>
Regards,<br>
<font color="#888888"><br>
Simon</font><br>
</td></tr></table><br>