Differences between version 11 and predecessor to the previous major change of LinuxQualityOfService.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 11 | Last edited on Thursday, October 16, 2008 12:43:56 pm | by DanielLawson | Revert |
Older page: | version 10 | Last edited on Thursday, September 22, 2005 9:48:33 am | by MichaelBordignon | Revert |
@@ -7,9 +7,9 @@
I live in a flat where we pay 3rds of the cost of the internet bill, so between three people, they each should have an even crack at the bandwidth.
I devised two queuing structures that should give a decent balance between users, one for egress on the internal interface and one for egress on the external interface.
-
+<pre>
Egress on internal interface (eth0).
Root Class
Qdisc 1: PRIO
@@ -117,9 +117,9 @@
| | For TCP and other non-interactive | |
| | applications. | |
| -------------------------------------- |
------------------------------------------
-
+</pre>
Linux QoS is based around a heirachical structure of queueing disciples (qdiscs), classes and filters.
There are two major types of qdiscs, those that are classful, or contain classes, and those that are classless, or leaf qdiscs.
@@ -140,10 +140,12 @@
With this in mind, let us first create the QoS rules on the ppp0 interface.
First, lets delete everything and start on a clean slate.
+<pre>
root@sleepy:~# tc qdisc del dev ppp0 root
root@sleepy:~# tc qdisc show dev ppp0
+</pre>
Ok, now we need to add the qdisc to the device root class, we're using CBQ
root@sleepy:~# tc qdisc add dev ppp0 root handle 10: cbq bandwidth 6Mbit rate 127kbit avpkt 1000