borrowing in 3.8

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

borrowing in 3.8

Alex Berdan
Hi All,

It's been a long time since I'm trying to do borrowing with pf and
altq from OpenBSD and seams that it's not working for me.
Here is what I do:

altq on pcn0 cbq bandwidth 10Mb queue { std, ftp }
queue std bandwidth 1024Kb cbq(default)
queue ftp bandwidth 1Mb cbq { low, big }
 queue big bandwidth 80% priority 3 cbq(borrow)
 queue low bandwidth 64Kb priority 1 cbq(borrow)


pass in quick on lo0
pass out quick on lo0

pass in quick on pcn0 inet proto tcp from any to pcn0 port 80 keep
state queue low
pass in quick on pcn0 inet proto tcp from any to pcn0 port 22 keep
state queue big

I run a apache and I'm sharing a 20MB file.

When I download from the OpenBSD box I'm getting something like 8.31KB/Sec.

If I take a look in the pfctl -vv -sq I get something like:

queue   big bandwidth 800Kb priority 3 cbq( borrow )
  [ pkts:        573  bytes:      87942  dropped pkts:      0 bytes:      0 ]
  [ qlength:   0/ 50  borrows:      0  suspends:      0 ]
  [ measured:     4.2 packets/s, 5.19Kb/s ]


queue   low bandwidth 64Kb cbq( borrow )
  [ pkts:        778  bytes:    1104998  dropped pkts:      0 bytes:      0 ]
  [ qlength:  11/ 50  borrows:    556  suspends:    132 ]
  [ measured:     6.0 packets/s, 67.82Kb/s ]


It seams that it's borrowing but not everything! Do you have any idea why?
Do you have a working example?

Thank you in advanced.
Alex