Re: DSCP, ToS and Egress

Linux Advanced Routing and Traffic Control

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

 



I would post my scripts but they're around several thousand lines, intertwined
with lots of variable substitution and generate about 300 qdiscs and classes so
I don't think it would be easy to follow :)


I'm using stock Fedora Core 3 packages for kernel (2.6.10), iptables and
iproute2 (2.6.9) with the QNET patchset applied
(http://kem.p.lodz.pl/~peter/qnet/). I've also done this under Gentoo with the
same stock kernels, packages and patches.

Basically, I sort traffic into several different HTB classes based on protocol,
then I have 4 levels of priority subclasses under each protocol, with yet
another 4 levels of subpriorities under those. IPTables helps here by MARKing
the packets so I know which priority subclass to sort them into. Then I use an
HTB + diffserv combo on these leaf priority subclasses to apply GRED for
AF1-AF4 and apply RED for BE (not using EF yet).


Here is an organizational snippet with 1 protocol priority level:
|root DSMARK qdisc
|root DSMARK bit mask filters
|HTB main qdisc
|HTB main class
|HTB main filters (sort based on protocol into subs)
 |HTB UDP Protocol Subclass
 |HTB UDP Protocol Subclass filters (sort based on MARK value into subs)
  |HTB UDP Priority 1 Subclass
  |HTB UDP Priority 1 filters (apply DSMARK bit mask for sorting into subs)
   |HTB AF1 Class
    |GRED qdisc
   |HTB AF2 Class
    |GRED qdisc
   |HTB AF3 Class
    |GRED qdisc
   |HTB AF4 Class
    |GRED qdisc
   |HTB BE Class
    |RED qdisc

There's a great site with lots of examples and info:
http://www.opalsoft.net/qos/DS.htm

Hope that helps-
Dan-

Quoting Antonios Halkiopoulos <alg0@xxxxxxxxxxxxxxxxx>:

On Tue, 15 Feb 2005, Dan Cox wrote:


I'm successfully using HTB + GRED to shape traffic based on the DSCP field.


I am investigationg WHY HTB + GRED does not work on my test beds. In SuSe 9.1 , 9.2 and Debian testing with 2.6.8 and 2.4.27 i face LOTS of problems (actually GRED works partially).


Can you sent me your scripts and mention the version's of the kernel and iproute2 you are currently using?

Thanks in advance for your time,
Antonios Chalkiopoylos

My only working configuration is vanilla kernel 2.4.20 (patched with HTB)




-- Dan-

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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