Hi,

this follow my previous posts with subject : "pf shape download"
that I now solved.

The following test where done on OpenBSD 4.9, 5.0 snapshot of
12/09/2011 & FreeBSD 8.2 (include PF from OpenBSD 4.2 if I
remeber well). All add the same behavior. I didn't test current
(but the snapshot was probably current when I installed it)
because I was not able to build it on my system (sended the error
via sendbug).

Part 2 look like a bug to me, can somebody confirm ?

My test as been done with those rules :

altq on $int_if hfsc bandwidth 8Mb qlimit 500 queue { main, second }
queue main on $int_if bandwidth 7Mb qlimit 250 priority 4 hfsc(upperlimit 8Mb default) queue second on $int_if bandwidth 1Mb qlimit 250 priority 0 hfsc(upperlimit 2Mb)

pass in
pass out
pass out on $ext_if from <second> queue second

1 - I can't change of queue actual transfert. If I'm on queue
default, I'm downloading at 8 Mbps and add my ip address
to <second> tab, I will continue to download at 8 Mbps but
if I pause and resume my download, it will now download at
2 Mbps. Same If I'm on second queue and downloading at 2
Mbps, if a remove my ip address from <second>, it will still
download at 2 Mbps but if I pause/resume my download, it
will now download a 8 Mbps.

2 - Will doing previous test, I told myself that maybe I add to
clear state to change queue. Now If  I clear state of IP address
with "pfctl -k", the IP address will always change from is queue
to default. "pfctl -K" won't do this.

Exemple, my laptop ip address is on <second> and I download
at 2 Mbps. If I do (10.254.200.2 is the IP address of my test unit :
pfctl -k 10.254.200.2
then I will now be in the default queue instead of second and
download at 8 Mbps even If my IP address is still on <second>.
I don't have to pause/resume, it change automaticly after "pfctl -k"

This one look like a bug to me but I'm not sure. Should clear state
erase queue rules on  a transfert ? Should not this transfer pass
again by all rules and be send to second queue again ?

3 - Is their a way to change of queue a transfert without
stopping / resuming the transfer ?

4 - Why a upload rule is needed to send download traffic to a queue ?

The pf FAQ (http://openbsd.org/faq/pf/queueing.html), on bob exemple,
there a pass out to bob on int_if rule to change bob to bob queue
,what make sense to me but I must do the opposite to have my
download queued.

It's probably the FAQ that wrong but I would like to make sure before
reporting and also understand why since it's look logical for download
to do altq on int_if and make a rule on outgoing traffic of int_if to
change queue.

Thanks

Michel

Reply via email to