Re: HTB - prio and rate

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I really don't seem to be getting this.  ~sigh~

As I wrote before I'm not interested in dividing bandwidth up, just
prioritizing the use of the full bandwidth by all-comers.

So I figure I want a TBF in my root class to prevent the queue in my DSL
modem from filling up.  I have about 128kb/s upstream so I added:

# tc qdisc add dev ppp0 root handle 1: tbf rate 120kbit latency 50ms burst 1540

(not sure what values I want for latency and burst)

Then I figure I want a PRIO classifier with 3 bands.  I want anything
not otherwise matching a filter to go in band 2, known bulk to go in
band 3 and priority, latency sensitive "interactive" stuff (i.e. ssh,
not scp) to go in band 1:

# tc qdisc add dev ppp0 parent 1: handle 10: prio

And then only because some examples showed using it, I put an SFQ in
each band.  Do I really need this?  Should I not do this step?

# tc qdisc add dev ppp0 parent 10:1 handle 100: sfq
# tc qdisc add dev ppp0 parent 10:2 handle 200: sfq
# tc qdisc add dev ppp0 parent 10:3 handle 300: sfq

Now I want to use iptables to put stuff into the different bands.
Again, by example I have been trying to do some iptables rules with -j
CLASSIFY --set-class (this one to get ping to be processed in the
highest priority band to test the effectiveness of "interactive
traffic):

# iptables -t mangle -I POSTROUTING -p icmp --icmp-type echo-request -j CLASSIFY --set-class 10:100

I'm not sure what the class numbers I should be using.  Would they be
10:100, 10:200 and 10:300 for the 3 bands?  or 10:1, 10:2 and 10:3?

Thanx,
b.

-- 
My other computer is your Microsoft Windows server.

Brian J. Murrell

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux