problem s pridelovanim pasma ALTQ & pf

stobbi stobbi at netmont.sk
Thu Jun 8 10:18:30 CEST 2006


Zdravim,

potreboval by som vyriesit problem s pridelovanim pasma pre viac IP sieti
cez ALTQ s pf.

podmienky:
- kapacita linky 2Mbit
- max download pre jednolive IP siete 1Mbit
- garantovany download 250kbit
- pocet klientov 8
- agregacia

Da sa to postavit na pf? Z FAQ a HOWTO vychadza, ze pri nastavovanani
jednotlivych child queue sa musi specifikovat sirka pasma, ktorych sucet sa
musi rovnat sirke pasma rodicovskej queue. A to je problem, pretoze tam
potrebujem agregaciu. Da sa to nejak vyriesit?

Citat z pf-faq:
NOTE: Each child queue definition has its bandwidth specified. Without
specifying the bandwidth, PF will give the queue 100% of the parent queue's
bandwidth. In this situation, that would cause an error when the rules are
loaded since if there's a queue with 100% of the bandwidth, no other queue
can be defined at that level since there is no free bandwidth to allocate to
it.

V Linux-e take nieco je mozne, kde sucet child queue je vacsi ako parent 
queue (http://lartc.org/howto/lartc.qdisc.classful.html, 9.5.4.3. CBQ 
parameters that determine link sharing & borrowing)

Napadlo ma len take riesenie, ze zoskupim tie siete po styroch s parent
queue 1Mbit, ale to asi nebude to prave orechove ...

altq on fxp0 cbq bandwidth 2Mb queue { QUEUE1, QUEUE2 }

queue QUEUE1 bandwidth 1Mbit cbq(default) { NET1,NET2,NET3,NET4}
  queue NET1 bandwidth 250kbit cbq(borrow)
  queue NET2 bandwidth 250kbit cbq(borrow)
  queue NET3 bandwidth 250kbit cbq(borrow)
  queue NET4 bandwidth 250kbit cbq(borrow)

queue QUEUE2 bandwidth 1Mbit cbq { NET5,NET6,NET7,NET8 }
  queue NET5 bandwidth 250kbit cbq(borrow)
  queue NET6 bandwidth 250kbit cbq(borrow)
  queue NET7 bandwidth 250kbit cbq(borrow)
  queue NET8 bandwidth 250kbit cbq(borrow)

D.

Pali 




More information about the Users-l mailing list