[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: connection that changes queue after a while



Darek Eliasz wrote:
altq on $ext_if cbq bandwidth 220Kb queue { q_def, q_vpn, q_ssh, q_pri }

queue q_def bandwidth 200Kb priority 4 cbq(default)
queue q_vpn bandwidth 180Kb priority 2
queue q_pri bandwidth 200Kb priority 6 cbq(borrow)
queue q_ssh bandwidth 200Kb priority 7 cbq(borrow)



Sum of child bandwith is higher than parrent queue (200+180+200+200  >
220). Your ruleset should give error on OBSD 3.6 so you probably have 3.5 or
older version.

I have upgraded to 3.6 and removed the bandwitdh limitations. I have the following error
pfctl: the sum of the child bandwidth higher than parent "root_rl1"
Apparently without the bandwidth keyword, 100M is assumed. Is this a problem ?


And I still have the problem with queues:

Just after reloading the firewall :

queue root_rl1 bandwidth 100Mb priority 0 cbq( wrr root ) {q_vpn, q_def, q_pri, q_ssh, q_ack}
[ pkts: 6593 bytes: 9477302 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 24.0 packets/s, 286.08Kb/s ]


queue q_vpn bandwidth 100Mb priority 2
[ pkts: 6390 bytes: 9453908 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 24.0 packets/s, 286.08Kb/s ] <======== correct


queue q_def bandwidth 100Mb priority 4 cbq( default )
[ pkts: 23 bytes: 1893 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 0.0 packets/s, 0 b/s ]



After a while, the same connection goes another queue...


queue root_rl1 bandwidth 100Mb priority 0 cbq( wrr root ) {q_vpn, q_def, q_pri, q_ssh, q_ack}
[ pkts: 73235 bytes: 107130228 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 25.6 packets/s, 305.15Kb/s ]


queue q_vpn bandwidth 100Mb priority 2
[ pkts: 49364 bytes: 73372699 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 0.0 packets/s, 0 b/s ]


queue q_def bandwidth 100Mb priority 4 cbq( default )
[ pkts: 23689 bytes: 33735920 dropped pkts: 0 bytes: 0 ]
[ qlength: 0/ 50 borrows: 0 suspends: 0 ]
[ measured: 25.6 packets/s, 305.15Kb/s ] <======== incorrect