Differences

This shows you the differences between two versions of the page.

Link to this comparison view

saisp:labs:11:contents:05 [2014/05/18 12:59]
mihai.carabas [05. Traffic shaping classful]
saisp:labs:11:contents:05 [2015/05/25 16:04] (current)
alexandru.carp [05. [10p] Traffic shaping classful]
Line 1: Line 1:
-==== 05. Traffic shaping classful ====+==== 05. [10p] Traffic shaping classful ====
  
 ''​htb''​ este un qdisc **classful** (tratează traficul în mod diferențiat,​ în funcție de clasa din care face parte). Este varianta **classful** a ''​tbf''​ (împarte traficul pe clase, apoi aplica ''​tbf''​ pe fiecare în parte). ''​htb''​ este un qdisc **classful** (tratează traficul în mod diferențiat,​ în funcție de clasa din care face parte). Este varianta **classful** a ''​tbf''​ (împarte traficul pe clase, apoi aplica ''​tbf''​ pe fiecare în parte).
Line 66: Line 66:
  
 root@gateway:​~#​ tc class show dev eth0 root@gateway:​~#​ tc class show dev eth0
-root@gateway:​~# ​class htb 1:1 root prio 0 rate 1000Kbit ceil 1000Kbit burst 128Kb cburst 1600b +class htb 1:1 root prio 0 rate 1000Kbit ceil 1000Kbit burst 128Kb cburst 1600b 
-root@gateway:​~# ​class htb 1:2 root prio 0 rate 40000Kbit ceil 40000Kbit burst 128Kb cburst 1600b +class htb 1:2 root prio 0 rate 40000Kbit ceil 40000Kbit burst 128Kb cburst 1600b 
-root@gateway:​~# ​class htb 1:3 root prio 0 rate 5000Kbit ceil 5000Kbit burst 128Kb cburst 1600b +class htb 1:3 root prio 0 rate 5000Kbit ceil 5000Kbit burst 128Kb cburst 1600b 
-root@gateway:​~# ​class htb 1:4 root prio 0 rate 3000Kbit ceil 3000Kbit burst 128Kb cburst 1599b+class htb 1:4 root prio 0 rate 3000Kbit ceil 3000Kbit burst 128Kb cburst 1599b
 </​code>​ </​code>​
  
Line 85: Line 85:
 root@gateway:​~#​ tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 6000 0xffff flowid 1:2 root@gateway:​~#​ tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 6000 0xffff flowid 1:2
 root@gateway:​~#​ tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 21 0xffff flowid 1:3 root@gateway:​~#​ tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 21 0xffff flowid 1:3
-tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 80 0xffff flowid 1:4 
 root@gateway:​~#​ tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 80 0xffff flowid 1:4 root@gateway:​~#​ tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport 80 0xffff flowid 1:4
 </​code>​ </​code>​
saisp/labs/11/contents/05.1400407191.txt.gz · Last modified: 2014/05/18 12:59 by mihai.carabas
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0