On Wed, 3 Feb 2016 23:09:39 +0000
Tarkan Açan <tarkan.a...@sodium.com.tr> wrote:

> hello misc,
>
> i am using openbsd 5.8 amd64 on my apu 1d4 with success but i have
> one big problem. the queue mechanism in pf allows some traffic
> shaping but what i really need is to give users their share of the
> bandwidth. for this i need some connection based algorithm like sfq
> (linux) or cbq (mikrotik - routeros). i have read and searched around
> a lot but it seems not possible to do such a thing with pf. is it
> possible to arrange this kind of bandwith sharing with a proxy like
> relayd? does anybody have suggestions? all feedback is sincerely
> appreciated.

>From my experience with queueing in 5.8 amd64 on APU, there shouldn't be
a problem if you use fixed bandwidth allocation where target bandwidth
and max bandwidth are the same, similar to:

---cut-here---
queue dowload on $int_if          bandwidth 20M max 20M
   queue user1   parent download  bandwidth  5M max  5M
   queue user2   parent download  bandwidth  5M max  5M
   queue user3   parent download  bandwidth  5M max  5M
   queue default parent download  bandwidth  5M max  5M default

match to $user1 set queue user1
match to $user2 set queue user2
match to $user2 set queue user2
---cut-here---

If you need something more advanced, like granting minimum bandwidth
with the ability to borrow from other queues up to maximum bandwidth
when other queues are empty, I am afraid you won't be able to do it
with current queueing system. However, I'm still hoping one of
these days someone will prove me wrong.

Regards,
--
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/

Reply via email to