tc
modprobe sch_qdisc modprobe cls_classifier |
tc qdisc add dev eth0 root handle 1: cbq bandwidth 100MBit avpkt 1000 cell 8 |
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100MBit rate 100MBit\ allot 1514 cell 8 weight 10MBit prio 8 maxburst 20 avpkt 1000 tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 100MBit rate 100MBit\ allot 1514 cell 8 weight 10MBit prio 8 maxburst 20 avpkt 1000 # Klasse fuer Gruppe 5 tc class add dev eth0 parent 1:3 classid 1:35 cbq bandwidth 100MBit rate 100KBit\ allot 1514 cell 8 weight 10KBit prio 5 maxburst 20 avpkt 1000 bounded tc qdisc add dev eth0 parent 1:35 tbf rate 100KBit buffer 10Kb/8 limit 15Kb |
# Filter fuer Gruppe 5, fuer jede IP tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32\ match ip dst 134.109.96.165/32 flowid 1:35 |
Gruppe | Bandbreite | Nutzer | Ab Menge | Vorher Klasse | ||||||
---|---|---|---|---|---|---|---|---|---|---|
0 | 1 | 2 | 3 | 4 | 5 | |||||
1 | 98 MBit/s | 949 | 55,4% | 0 MByte/Tag | 925 | 11 | 7 | 4 | 2 | 0 |
2 | 53 MBit/s | 222 | 13,0% | 17 MByte/Tag | 193 | 18 | 7 | 2 | 1 | 1 |
3 | 29 MBit/s | 151 | 8,8% | 29 MByte/Tag | 113 | 23 | 5 | 8 | 1 | 1 |
4 | 15 MBit/s | 111 | 6,5% | 40 MByte/Tag | 53 | 24 | 18 | 8 | 8 | 0 |
5 | 8400 KBit/s | 82 | 4,8% | 54 MByte/Tag | 27 | 12 | 33 | 6 | 3 | 1 |
6 | 4500 KBit/s | 64 | 3,7% | 69 MByte/Tag | 5 | 10 | 25 | 11 | 8 | 5 |
7 | 2500 KBit/s | 49 | 2,9% | 92 MByte/Tag | 4 | 4 | 15 | 14 | 4 | 8 |
8 | 1300 KBit/s | 39 | 2,3% | 114 MByte/Tag | 0 | 0 | 9 | 16 | 9 | 5 |
9 | 720 KBit/s | 30 | 1,8% | 150 MByte/Tag | 1 | 1 | 4 | 14 | 5 | 5 |
10 | 390 KBit/s | 16 | 0,9% | 223 MByte/Tag | 0 | 0 | 1 | 2 | 11 | 2 |
Dipl.-Inf. Jan Horbach
Rechnernetze und verteilte Systeme
Fakultät für Informatik
Technische Universität Chemnitz
jan.horbach@informatik.tu-chemnitz.de