Something new in hfsc from openbsd 3.8 to openbsd 4.2

Submitted by Anonymous
on January 14, 2008 - 6:37pm

Hi
I have some problems in migrating to openbsd4.2. I am trying to use hfsc, but it makes something what I havent expected.
For example if parent class is using upperlimit 10Mb, child class uperlimit from some kilobits to 4 Mb its ok, but if I will try to use child more ( 5 - 10 Mbits) starts doing something nasty ( child gets less than declared upperlimit and chaotical) and if in that parent class are more child's, the bandwidth they are dealing is very chaotical, but sometimes it's capable take all 10Mbit, sometimes not. What I am doing wrong? In openbsd3.8 it worked OK, but now, I bought 4.2 cd and vualia - one problem after other?

HFSC changes or bugs?

Neramus (not verified)
on
January 16, 2008 - 6:47pm

Does anybody uses openbsd4.2 and hfsc? Maybe its problems not in my configuration, maybe I need make some changes in kernel or something?

Whats wrong with upperlimit?

Does Hfsc works with >1000 rules?

Here is some rules from my pf.conf:

altq on em0 hfsc bandwidth 99Mb queue {lietuva, pasaulis, init}
### Pasaulinis Downloadas#####
queue pasaulis bandwidth 10Mb hfsc (upperlimit 10Mb ecn) priority 7 { Pl1, Pl2, Pl3, Pl4, Pl5 }
queue Pl1 bandwidth 1Mb hfsc ( upperlimit 1Mb ecn) priority 4 { $P1 }
queue Pl2 bandwidth 2Mb hfsc (upperlimit 10Mb ecn) priority 5 { $P2 }
queue Pl3 bandwidth 2Mb hfsc (upperlimit 10Mb ecn) priority 6 { $P3 }
queue Pl4 bandwidth 2Mb hfsc (upperlimit 10Mb ecn) priority 7 { $P4 }
queue Pl5 bandwidth 3Mb hfsc (upperlimit 10Mb ecn) priority 7 { $P5 }
### Default downloadas ###
queue init bandwidth 999Kb hfsc (upperlimit 999Kb default ecn) priority 7
### Lietuvos downloadas ###
queue lietuva qlimit 2000 bandwidth 88Mb hfsc (upperlimit 68Mb ecn) priority 7 { Pl5lt, Pl4lt, Pl3lt, Pl2lt, Pl1lt }
queue Pl1lt bandwidth 5Mb hfsc ( upperlimit 5Mb ecn) priority 4 { $P1lt }
queue Pl2lt bandwidth 20Mb hfsc (upperlimit 88Mb ecn) priority 5 { $P2lt }
queue Pl3lt bandwidth 20Mb hfsc (upperlimit 88Mb ecn) priority 6 { $P3lt }
queue Pl4lt bandwidth 20Mb hfsc (upperlimit 88Mb ecn) priority 7 { $P4lt }
queue Pl5lt bandwidth 20Mb hfsc (upperlimit 88Mb ecn) priority 7 { $P5lt }

#### UPLOAD
altq on em1 hfsc bandwidth 99Mb queue {lietuvau, pasaulisu, initu}
### Pasaulinis upload#####
queue pasaulisu bandwidth 10Mb hfsc (upperlimit 10Mb ecn) priority 7 { Pu1, Pu2, Pu3, Pu4, Pu5 }
queue Pu1 bandwidth 1Mb hfsc ( upperlimit 1Mb ecn) priority 4 { $P1u }
queue Pu2 bandwidth 2Mb hfsc (upperlimit 10Mb ecn) priority 5 { $P2u }
queue Pu3 bandwidth 2Mb hfsc (upperlimit 10Mb ecn) priority 6 { $P3u }
queue Pu4 bandwidth 2Mb hfsc (upperlimit 10Mb ecn) priority 7 { $P4u }
queue Pu5 bandwidth 3Mb hfsc (upperlimit 10Mb ecn) priority 7 { $P5u }
### Default uploadas ###
queue initu bandwidth 999Kb hfsc (upperlimit 999Kb default ecn) priority 7
### Lietuvos uploadas ###
queue lietuvau qlimit 2000 bandwidth 88Mb hfsc (upperlimit 68Mb ecn) priority 7 { Pu5lt, Pu4lt, Pu3lt, Pu2lt, Pu1lt }
queue Pu1lt bandwidth 5Mb hfsc ( upperlimit 5Mb ecn) priority 4 { $P1ltu }
queue Pu2lt bandwidth 20Mb hfsc (upperlimit 88Mb ecn) priority 5 { $P2ltu }
queue Pu3lt bandwidth 20Mb hfsc (upperlimit 88Mb ecn) priority 6 { $P3ltu }
queue Pu4lt bandwidth 20Mb hfsc (upperlimit 88Mb ecn) priority 7 { $P4ltu }

queue 2.100 qlimit 800 bandwidth 11Kb hfsc (linkshare 11Kb upperlimit 40Kb ecn) priority 7
queue 2.3 qlimit 800 bandwidth 11Kb hfsc (linkshare 11Kb upperlimit 1000Kb ecn) priority 7
queue 2.4 qlimit 800 bandwidth 11Kb hfsc (linkshare 11Kb upperlimit 2500Kb ecn) priority 7
queue 2.100lt qlimit 800 bandwidth 35Kb hfsc (linkshare 35Kb upperlimit 512Kb ecn) priority 7
queue 2.3lt qlimit 800 bandwidth 35Kb hfsc (linkshare 35Kb upperlimit 7000Kb ecn) priority 7
queue 2.4lt qlimit 800 bandwidth 35Kb hfsc (linkshare 35Kb upperlimit 10000Kb ecn) priority 7
queue 2.100u qlimit 800 bandwidth 11Kb hfsc (linkshare 11Kb upperlimit 40Kb ecn) priority 7
queue 2.3u qlimit 800 bandwidth 11Kb hfsc (linkshare 11Kb upperlimit 1000Kb ecn) priority 7
queue 2.4u qlimit 800 bandwidth 11Kb hfsc (linkshare 11Kb upperlimit 2500Kb ecn) priority 7
queue 2.100ltu qlimit 800 bandwidth 35Kb hfsc (linkshare 35Kb upperlimit 512Kb ecn) priority 7
queue 2.3ltu qlimit 800 bandwidth 35Kb hfsc (linkshare 35Kb upperlimit 7000Kb ecn) priority 7
queue 2.4ltu qlimit 800 bandwidth 35Kb hfsc (linkshare 35Kb upperlimit 10000Kb ecn) priority 7

pass out quick on em0 from ! to 192.168.2.100 label uzsienis label bybys queue 2.100
pass out quick on em0 from to 192.168.2.100 label lietuva queue 2.100lt
pass out quick on em1 from ! to 192.168.2.100 label uzsienis queue 2.100u
pass out quick on em1 from to 192.168.2.100 label lietuva queue 2.100ltu
pass out quick on em0 from ! to 192.168.2.3 label uzsienis queue 2.3
pass out quick on em0 from to 192.168.2.3 label lietuva queue 2.3lt
pass out quick on em1 from ! to 192.168.2.3 label uzsienis queue 2.3u
pass out quick on em1 from to 192.168.2.3 label lietuva queue 2.3ltu
pass out quick on em0 from ! to 192.168.2.4 label uzsienis queue 2.4
pass out quick on em0 from to 192.168.2.4 label lietuva queue 2.4lt
pass out quick on em1 from ! to 192.168.2.4 label uzsienis queue 2.4u
pass out quick on em1 from to 192.168.2.4 label lietuva queue 2.4ltu

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.