I tried several linux flows capturers and none of them worked with Mikrotik Traffic flows.
Router: ROS 3.10 (IP 192.168.6.1)
Server: Debian squeeze (connected to router via ethernet cable)
Both PC’s have almost unused cpu power.
Software: flowd, pmacct, flow-tools.
For example log from flow-tools:
May 2 17:47:29 ali flow-capture[4393]: ftpdu_seq_check(): src_ip=192.168.6.1 dst_ip=192.168.6.2 d_version=5 expecting=13785 received=13873 lost=88
May 2 17:47:29 ali flow-capture[4393]: ftpdu_seq_check(): src_ip=192.168.6.1 dst_ip=192.168.6.2 d_version=5 expecting=13903 received=13873 lost=4294967265
May 2 17:47:29 ali flow-capture[4393]: ftpdu_seq_check(): src_ip=192.168.6.1 dst_ip=192.168.6.2 d_version=5 expecting=13903 received=13873 lost=4294967265
May 2 17:47:29 ali flow-capture[4393]: ftpdu_seq_check(): src_ip=192.168.6.1 dst_ip=192.168.6.2 d_version=5 expecting=13903 received=13873 lost=4294967265
May 2 17:47:29 ali flow-capture[4393]: ftpdu_seq_check(): src_ip=192.168.6.1 dst_ip=192.168.6.2 d_version=5 expecting=13903 received=13873 lost=4294967265
May 2 17:47:29 ali flow-capture[4393]: ftpdu_verify(): src_ip=192.168.6.1 failed.
May 2 17:47:29 ali flow-capture[4393]: ftpdu_verify(): src_ip=192.168.6.1 failed.
May 2 17:47:29 ali flow-capture[4393]: ftpdu_verify(): src_ip=192.168.6.1 failed.
May 2 17:47:29 ali flow-capture[4393]: ftpdu_verify(): src_ip=192.168.6.1 failed.
May 2 17:47:29 ali flow-capture[4393]: ftpdu_verify(): src_ip=192.168.6.1 failed.
May 2 17:47:29 ali flow-capture[4393]: ftpdu_verify(): src_ip=192.168.6.1 failed.
I saw several similar bugs in the forum and there aren’t answers. Have somebody seen similar behaviour?
Thanks
I’ve never had those issues with NTOP (http://www.ntop.org/overview.html) or commercial tools from IPSwitch and others. I can’t vouch for flowd, pmacct, flow-tools, etc.
The below patch to flow-tools will at least stop it filling my logs with useless errors due to MT netflow exports. It’s hardly a fix to the problem and I’m pretty sure the issue is on the MT, but this stops the errors in the logs being generated by flow-tools. Use it, abuse it, do with it as you please.
--- src/flow-capture.c.orig 2009-12-09 10:10:29.000000000 +0200
+++ src/flow-capture.c 2009-12-09 10:10:58.000000000 +0200
@@ -960,12 +960,14 @@
fmt_ipv4(fmt_src_ip, ftch_recexp.src_ip, FMT_JUST_LEFT);
fmt_ipv4(fmt_dst_ip, ftch_recexp.dst_ip, FMT_JUST_LEFT);
fmt_uint16(fmt_dst_port, ftch_recexp.dst_port, FMT_JUST_LEFT);
+/*
fterr_warnx(
"ftpdu_seq_check(): src_ip=%s dst_ip=%s d_version=%d expecting=%lu received=%lu lost=%lu",
fmt_src_ip, fmt_dst_ip, (int)ftpdu.ftv.d_version,
(u_long)ftch_recexpp->ftseq.seq_exp,
(u_long)ftch_recexpp->ftseq.seq_rcv,
(u_long)ftch_recexpp->ftseq.seq_lost);
+ */
/* only count these lost if "lost" is a reasonable number */
if (ftch_recexpp->ftseq.seq_lost < FT_SEQ_RESET) {
EDIT: And as per the code, the error is being generated due to flow-tools receiving the netflows ‘out of sequence’. It will only receive them out of sequence because MT is sending them out of sequence…
changeip, it’s not QoS, it’s just a bug: about every two seconds ‘flush’ of NF info happens, and for every such flush all NF packets have the same sequence_id - sequence_id that firsh packet should have. you can see it even in posts above