Hi dfex,
Thank you very much for help. I really appreciate it.
You said that I don't need 'all' firewall filter. I thought (I am junos-newbie) that I have to configure 'all' filter as the last on filters list. Otherwise, packets which doesn't match first (and only one) filter will be dropped. Isn't that?
I tried to tune netflow configuration (Junos 10.4) using flow-inactive-timeout and flow-active-timeout in the following way:
lab@j183# run show configuration forwarding-options
sampling {
input {
rate 1;
}
family inet {
output {
flow-inactive-timeout 15;
flow-active-timeout 60;
flow-server 10.1.0.5 {
port 2055;
version 5;
}
}
}
}
(I set this parameters to the lowest possible values).
Unfortunately, it doesn't help at all. I experimented with sending ~54MB file between interfaces, and flow packet arrived to my collector 30-40second after transfer had been finished. So it doesn't fit my 1-minute sampling model at all (as you suggested).
I experimented with SNMP as you advised. There is IF-MIB::ifInOctets (.1.3.6.1.2.1.2.2.1.10) MIB available, and it gives me value of bytes transferred. However, there is a serious issue for which I cannot find workaround.
What I need, is amount of traffic transferred every one minute, for example:
1st minute - 2922MB
2nd minute - 192MB and so on...
Most probably (as i googled), there is no other way to reset this counter as resetting whole router.
So every minute I'would have to subtract last counter value from new counter value - and it would be statistics from last minute.
It's fine; the worst thing is, that this counter (possible often) will reach the maximum value which can be stored on 32 bytes (probably it's version/router-dependent), and then I'will be unable to compute amount of transferred data within this minute. If I knew, that counter will be resetted every time it reach 2^31-1, it will be possible to compute new value every time, but I suspect that it is router-dependent.
Could you please suggest me some solution?
Thank you very much
Piotr