Buffer Bloat » Historique » Version 6
Version 5 (Laurent GUERBY, 04/12/2011 21:35) → Version 6/98 (Laurent GUERBY, 04/12/2011 22:00)
h1. Buffer Bloat
* http://bufferbloat.net
* http://queue.acm.org/detail.cfm?id=2071893
h2. QoS
* tc qdisc par IP source
http://lists.tetalab.org/pipermail/tetaneutral/2011-April/000129.html
* ebtable packet flow chart http://ebtables.sourceforge.net/br_fw_ia/PacketFlow.png
* tc openwrt theory http://wiki.openwrt.org/doc/howto/tc/tc.theory
* tc openwrt howto http://wiki.openwrt.org/doc/howto/tc
Partage de bande passante ADSL
<pre>
function do_qos {
tc qdisc add dev $DEV root handle 1: htb default 1
tc class add dev $DEV parent 1: classid 1:1 htb rate $RATE
for IP in $IP_LIST; do
tc class add dev $DEV parent 1: classid 1:$IP htb rate $RATE
tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip $DIR 91.224.148.$IP flowid 1:$IP
done
}
DIR=dst #on gw then RATE= ADSL download speed
#DIR=src #on local machine then RATE= ADSL upload speed
DEV=tapstg
RATE=11000kbit
IP_LIST=$(seq 129 144)
do_qos
DEV=tapthd
DOWN=5500kbit
IP_LIST=$(seq 194 207)
do_qos
DEV=tapmon
DOWN=600kbit
IP_LIST=$(seq 114 115)
do_qos
</pre>
* http://bufferbloat.net
* http://queue.acm.org/detail.cfm?id=2071893
h2. QoS
* tc qdisc par IP source
http://lists.tetalab.org/pipermail/tetaneutral/2011-April/000129.html
* ebtable packet flow chart http://ebtables.sourceforge.net/br_fw_ia/PacketFlow.png
* tc openwrt theory http://wiki.openwrt.org/doc/howto/tc/tc.theory
* tc openwrt howto http://wiki.openwrt.org/doc/howto/tc
Partage de bande passante ADSL
<pre>
function do_qos {
tc qdisc add dev $DEV root handle 1: htb default 1
tc class add dev $DEV parent 1: classid 1:1 htb rate $RATE
for IP in $IP_LIST; do
tc class add dev $DEV parent 1: classid 1:$IP htb rate $RATE
tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip $DIR 91.224.148.$IP flowid 1:$IP
done
}
DIR=dst #on gw then RATE= ADSL download speed
#DIR=src #on local machine then RATE= ADSL upload speed
DEV=tapstg
RATE=11000kbit
IP_LIST=$(seq 129 144)
do_qos
DEV=tapthd
DOWN=5500kbit
IP_LIST=$(seq 194 207)
do_qos
DEV=tapmon
DOWN=600kbit
IP_LIST=$(seq 114 115)
do_qos
</pre>