Buffer Bloat » Historique » Version 12
Laurent GUERBY, 09/12/2011 21:09
1 | 1 | Laurent GUERBY | h1. Buffer Bloat |
---|---|---|---|
2 | 1 | Laurent GUERBY | |
3 | 1 | Laurent GUERBY | * http://bufferbloat.net |
4 | 1 | Laurent GUERBY | * http://queue.acm.org/detail.cfm?id=2071893 |
5 | 12 | Laurent GUERBY | * via obinou change default queue : http://www.bufferbloat.net/issues/305 |
6 | 2 | Laurent GUERBY | |
7 | 2 | Laurent GUERBY | h2. QoS |
8 | 2 | Laurent GUERBY | |
9 | 2 | Laurent GUERBY | * tc qdisc par IP source |
10 | 2 | Laurent GUERBY | http://lists.tetalab.org/pipermail/tetaneutral/2011-April/000129.html |
11 | 1 | Laurent GUERBY | * ebtable packet flow chart http://ebtables.sourceforge.net/br_fw_ia/PacketFlow.png |
12 | 5 | Laurent GUERBY | * tc openwrt theory http://wiki.openwrt.org/doc/howto/tc/tc.theory |
13 | 4 | Laurent GUERBY | * tc openwrt howto http://wiki.openwrt.org/doc/howto/tc |
14 | 8 | Laurent GUERBY | * doc HTB http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm |
15 | 8 | Laurent GUERBY | * http://www.faqs.org/docs/Linux-HOWTO/ADSL-Bandwidth-Management-HOWTO.html |
16 | 9 | Laurent GUERBY | * [PATCH net-next] sch_red: Adaptative RED AQM http://www.spinics.net/lists/netdev/msg182750.html |
17 | 9 | Laurent GUERBY | * http://icir.org/floyd/papers/adaptiveRed.pdf |
18 | 11 | Laurent GUERBY | * QFQ http://info.iet.unipi.it/~luigi/qfq/ |
19 | 6 | Laurent GUERBY | |
20 | 6 | Laurent GUERBY | Partage de bande passante ADSL |
21 | 6 | Laurent GUERBY | |
22 | 6 | Laurent GUERBY | <pre> |
23 | 7 | Laurent GUERBY | # Version du 20111207 |
24 | 6 | Laurent GUERBY | function do_qos { |
25 | 6 | Laurent GUERBY | tc qdisc add dev $DEV root handle 1: htb default 1 |
26 | 6 | Laurent GUERBY | tc class add dev $DEV parent 1: classid 1:1 htb rate $RATE |
27 | 1 | Laurent GUERBY | for IP in $IP_LIST; do |
28 | 7 | Laurent GUERBY | tc class add dev $DEV parent 1:1 classid 1:$IP htb rate 1kbit ceil $RATE |
29 | 6 | Laurent GUERBY | tc filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip $DIR 91.224.148.$IP flowid 1:$IP |
30 | 6 | Laurent GUERBY | done |
31 | 6 | Laurent GUERBY | } |
32 | 6 | Laurent GUERBY | |
33 | 6 | Laurent GUERBY | DIR=dst #on gw then RATE= ADSL download speed |
34 | 6 | Laurent GUERBY | #DIR=src #on local machine then RATE= ADSL upload speed |
35 | 1 | Laurent GUERBY | |
36 | 6 | Laurent GUERBY | DEV=tapstg |
37 | 7 | Laurent GUERBY | RATE=11000kbit # src 700kbit |
38 | 6 | Laurent GUERBY | IP_LIST=$(seq 129 144) |
39 | 1 | Laurent GUERBY | do_qos |
40 | 6 | Laurent GUERBY | |
41 | 6 | Laurent GUERBY | DEV=tapthd |
42 | 7 | Laurent GUERBY | RATE=5500kbit # src TODO |
43 | 1 | Laurent GUERBY | IP_LIST=$(seq 194 207) |
44 | 6 | Laurent GUERBY | do_qos |
45 | 6 | Laurent GUERBY | |
46 | 6 | Laurent GUERBY | DEV=tapmon |
47 | 7 | Laurent GUERBY | RATE=480kbit # src 96kbit |
48 | 1 | Laurent GUERBY | IP_LIST=$(seq 114 115) |
49 | 1 | Laurent GUERBY | do_qos |
50 | 1 | Laurent GUERBY | |
51 | 7 | Laurent GUERBY | </pre> |
52 | 7 | Laurent GUERBY | |
53 | 7 | Laurent GUERBY | Pour supprimer un qdisc : |
54 | 7 | Laurent GUERBY | |
55 | 7 | Laurent GUERBY | <pre> |
56 | 7 | Laurent GUERBY | tc qdisc del dev tapxxx root |
57 | 7 | Laurent GUERBY | </pre> |
58 | 7 | Laurent GUERBY | |
59 | 7 | Laurent GUERBY | Pour afficher : |
60 | 7 | Laurent GUERBY | |
61 | 7 | Laurent GUERBY | <pre> |
62 | 7 | Laurent GUERBY | tc -p -s -d qdisc show dev tapxxx |
63 | 7 | Laurent GUERBY | tc -p -s -d class show dev tapxxx |
64 | 7 | Laurent GUERBY | tc -p -s -d filter show dev tapxxx |
65 | 6 | Laurent GUERBY | </pre> |
66 | 10 | Laurent GUERBY | |
67 | 10 | Laurent GUERBY | Documentation : |
68 | 10 | Laurent GUERBY | |
69 | 10 | Laurent GUERBY | <pre> |
70 | 10 | Laurent GUERBY | # tc qdisc add htb help |
71 | 10 | Laurent GUERBY | What is "help"? |
72 | 10 | Laurent GUERBY | Usage: ... qdisc add ... htb [default N] [r2q N] |
73 | 10 | Laurent GUERBY | default minor id of class to which unclassified packets are sent {0} |
74 | 10 | Laurent GUERBY | r2q DRR quantums are computed as rate in Bps/r2q {10} |
75 | 10 | Laurent GUERBY | debug string of 16 numbers each 0-3 {0} |
76 | 10 | Laurent GUERBY | |
77 | 10 | Laurent GUERBY | ... class add ... htb rate R1 [burst B1] [mpu B] [overhead O] |
78 | 10 | Laurent GUERBY | [prio P] [slot S] [pslot PS] |
79 | 10 | Laurent GUERBY | [ceil R2] [cburst B2] [mtu MTU] [quantum Q] |
80 | 10 | Laurent GUERBY | rate rate allocated to this class (class can still borrow) |
81 | 10 | Laurent GUERBY | burst max bytes burst which can be accumulated during idle period {computed} |
82 | 10 | Laurent GUERBY | mpu minimum packet size used in rate computations |
83 | 10 | Laurent GUERBY | overhead per-packet size overhead used in rate computations |
84 | 10 | Laurent GUERBY | linklay adapting to a linklayer e.g. atm |
85 | 10 | Laurent GUERBY | ceil definite upper class rate (no borrows) {rate} |
86 | 10 | Laurent GUERBY | cburst burst but for ceil {computed} |
87 | 10 | Laurent GUERBY | mtu max packet size we create rate map for {1600} |
88 | 10 | Laurent GUERBY | prio priority of leaf; lower are served first {0} |
89 | 10 | Laurent GUERBY | quantum how much bytes to serve from leaf at once {use r2q} |
90 | 10 | Laurent GUERBY | |
91 | 10 | Laurent GUERBY | TC HTB version 3.3 |
92 | 10 | Laurent GUERBY | </pre> |