Skip to contentSkip to conversation

tc and u32 and filter documentation !

LARTC Rhaoni - Sistêmica 2 participants 2 messages Feb 16, 2004 – Feb 19, 2004

lore
Share & tools
lore
#0 lore raw

Hi List,

Considering this QoS scenario:

tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbit ceil 100kbps

   tc class add dev eth0 parent 1:1 classid 1:10 htb rate  30kbit ceil 100kbps
   tc class add dev eth0 parent 1:1 classid 1:11 htb rate  10kbit ceil 100kbps
   tc class add dev eth0 parent 1:1 classid 1:12 htb rate  60kbit ceil 100kbps
   tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
      match ip src 1.2.3.4 match ip dport 80 0xffff flowid 1:10
   tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
      match ip src 1.2.3.4 flowid 1:11
   tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
      match ip dport 80 0xffff flowid 1:10

Here follows my doubts:

Where will be classified a packet coming from 1.2.3.4 port 80 ?

( just to be sure 'cuz I'm making a very simple QoS tutorial in portuguese brazilian )

Where ca I find a full tc syntax ( I already have the manpage ) and u32
filter documentation ?

Atenciosamente,

Rhaoni Chiu Pereira
Sistêmica Computadores

#1 lore raw
Quoted 16 lines · Rhaoni - Sistêmica

Hi List,

Considering this QoS scenario:

tc qdisc add dev eth0 root handle 1: htb default 12
tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbit ceil

100kbps tc class add dev eth0 parent 1:1 classid 1:10 htb rate  30kbit ceil
100kbps tc class add dev eth0 parent 1:1 classid 1:11 htb rate  10kbit ceil
100kbps tc class add dev eth0 parent 1:1 classid 1:12 htb rate  60kbit ceil
100kbps tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
      match ip src 1.2.3.4 match ip dport 80 0xffff flowid 1:10
   tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
      match ip src 1.2.3.4 flowid 1:11
   tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
      match ip dport 80 0xffff flowid 1:10
Quoted 3 lines

Here follows my doubts:

Where will be classified a packet coming from 1.2.3.4 port 80 ?

1:10.

Quoted 5 lines

( just to be sure 'cuz I'm making a very simple QoS tutorial in portuguese brazilian )

Where ca I find a full tc syntax ( I already have the manpage ) and u32
filter documentation ?

Most of the options depends on what you do with the tc command: adding filters, qdiscs, classes, ...

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/