|
|
What do I need to shape traffic ? |
|
A linux box with a recent kernel and 1 or more network connections. If you compile your own kernel, enable all options you can find in submenu "QoS and/or fair queueing" under menu "Networking options". You can compile it as module or in the kernel, but make sure the kernel module are loaded when needed.
You also need the tc binary to change the shaping part of the kernel. This is part of the iproute2 package. If you want to use htb to shape the traffic, you also need to patch tc so it supports htb. Example /usr/src/linux/.config file : # # QoS and/or fair queueing # CONFIG_NET_SCHED=y CONFIG_NET_SCH_CBQ=y CONFIG_NET_SCH_HTB=m CONFIG_NET_SCH_CSZ=y CONFIG_NET_SCH_PRIO=y CONFIG_NET_SCH_RED=y CONFIG_NET_SCH_SFQ=y CONFIG_NET_SCH_TEQL=y CONFIG_NET_SCH_TBF=y CONFIG_NET_SCH_GRED=y CONFIG_NET_SCH_DSMARK=y CONFIG_NET_SCH_INGRESS=y CONFIG_NET_QOS=y CONFIG_NET_ESTIMATOR=y CONFIG_NET_CLS=y CONFIG_NET_CLS_TCINDEX=y CONFIG_NET_CLS_ROUTE4=y CONFIG_NET_CLS_ROUTE=y CONFIG_NET_CLS_FW=y CONFIG_NET_CLS_U32=y CONFIG_NET_CLS_RSVP=y CONFIG_NET_CLS_RSVP6=y CONFIG_NET_CLS_POLICE=y Check to see if you have a QOS enabled kernel: grep qdisc_get_rtab /proc/ksymsExecuted on my router : $ grep qdisc_get_rtab /proc/ksyms c0220bb0 qdisc_get_rtab_R3adce61c stef.coene@docum.org | |
In addition to the lartc.org HOWTO itself, I'd suggest some introductory reading....first my own traffic control overview (and some links to other documentation):http://tldp.org/HOWTO/Traffic-Control-HOWTO/ http://tldp.org/HOWTO/Traffic-Control-HOWTO/links.htmlAn alternative introduction is Leonardo Balliache's pages: http://opalsoft.net/qos/DS.htmWerner Almesberger's still relevant implementation overview of 1999 warrants (and rewards) careful study: http://www.almesberger.net/cv/papers.html http://www.almesberger.net/cv/papers/tcio8.pdfOnce you have an understanding of the entire traffic control system, the easiest way to some practical configurations is with the tcng software: http://tcng.sourceforge.net/The tcng software reads a structured configuration file, where the "tc" command line utility is documented in parts of documents all over the 'net. -Martin mabrown-lartc@securepipe.com | |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||