[LARTC] tc and u32 and filter documentation !

Rhaoni - Sistêmica rhaoni@sistemica.info
Mon, 16 Feb 2004 09:42:34 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C3F471.34AF6EA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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=20
   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 ?
  =20
( 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=20
filter documentation ?

Atenciosamente,

Rhaoni Chiu Pereira
Sist=EAmica Computadores
------=_NextPart_000_000D_01C3F471.34AF6EA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hi List,<BR><BR>&nbsp;&nbsp; Considering this QoS=20
scenario:<BR><BR>&nbsp;&nbsp; tc qdisc add dev eth0 root handle 1: htb =
default=20
12<BR>&nbsp;&nbsp; tc class add dev eth0 parent 1: &nbsp;classid 1:1 =
&nbsp;htb=20
rate 100kbit ceil 100kbps <BR>&nbsp;&nbsp; tc class add dev eth0 parent =
1:1=20
classid 1:10 htb rate &nbsp;30kbit ceil 100kbps<BR>&nbsp;&nbsp; tc class =
add dev=20
eth0 parent 1:1 classid 1:11 htb rate &nbsp;10kbit ceil =
100kbps<BR>&nbsp;&nbsp;=20
tc class add dev eth0 parent 1:1 classid 1:12 htb rate &nbsp;60kbit ceil =

100kbps<BR>&nbsp;&nbsp; tc filter add dev eth0 protocol ip parent 1:0 =
prio 1 u32=20
\<BR>&nbsp;&nbsp; &nbsp; &nbsp;match ip src 1.2.3.4 match ip dport 80 =
0xffff=20
flowid 1:10<BR>&nbsp;&nbsp; tc filter add dev eth0 protocol ip parent =
1:0 prio 1=20
u32 \<BR>&nbsp;&nbsp; &nbsp; &nbsp;match ip src 1.2.3.4 flowid=20
1:11<BR>&nbsp;&nbsp; tc filter add dev eth0 protocol ip parent 1:0 prio =
1 u32=20
\<BR>&nbsp;&nbsp; &nbsp; &nbsp;match ip dport 80 0xffff flowid=20
1:10<BR><BR>&nbsp;&nbsp; Here follows my doubts:<BR><BR>&nbsp;&nbsp; =
Where will=20
be classified a packet coming from 1.2.3.4 port 80 ?<BR>&nbsp;&nbsp; =
<BR>( just=20
to be sure 'cuz I'm making a very simple QoS tutorial in portuguese=20
brazilian&nbsp; )<BR><BR>&nbsp;&nbsp; Where ca I find a full tc syntax ( =
I=20
already have the manpage ) and u32 <BR>filter documentation=20
?<BR><BR>Atenciosamente,<BR><BR>Rhaoni Chiu Pereira<BR>Sist=EAmica=20
Computadores</DIV></BODY></HTML>

------=_NextPart_000_000D_01C3F471.34AF6EA0--