dynamic queues replace each other randomly

Andrew Pantyukhin infofarmer at FreeBSD.org
Sun Mar 25 16:37:33 UTC 2007


I have a 6.2-release/i386 gateway with ipfw and
dummynet compiled into kernel.

pipe 107 config bw 2M
queue 207 config pipe 107 weight 50 mask dst-ip 0xffffffff
add queue 207 <some traffic>

The problem is this. When I look at "ipfw queue 207
show" it all seems almost normal. When new dst-ip's
are noticed, new dynamic queues appear. But one
bucket is "shared" between two flow's.

Whichever flow (dst-ip) received packets last shows
up in the table. Every time the bucket changes
between the flows, its counters are reset to 0.

If the glitch is in the numbers, here they are:
50 slots
9 queues (from 5 to 20 over time)
64 buckets
"shared" bucket no. 20
the two dst-ip are 192.168.17.68 and 172.17.0.54

Now that I look at the table, I also see another
strange thing. Right after the bucket 20 line come
two lines, both numbered as bucket 21. At least
they both show up every time. Their ip's are
192.168.17.69 and 172.17.0.55.

Any ideas are welcome. Thanks!


More information about the freebsd-ipfw mailing list