From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Coppens" Date: Fri, 08 Mar 2002 09:51:46 +0000 Subject: [LARTC] tcindex filter MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00EF_01C1C68F.3DC3F540" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_00EF_01C1C68F.3DC3F540 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Can someone explain me what this script does? tc qdisc del dev eth1 root tc qdisc add dev eth1 root handle 1:0 cbq bandwidth 10mbit avpkt = 1000 tc class add dev eth1 parent 1:0 classid 1:39 cbq bandwidth 256kbit = rate 128kbit allot 1514 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:0 classid 1:40 cbq bandwidth 256kbit = rate 128kbit allot 1514 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:0 classid 1:41 cbq bandwidth 256kbit = rate 128kbit allot 1514 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:0 classid 1:47 cbq bandwidth 256kbit = rate 128kbit allot 1514 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:0 classid 1:48 cbq bandwidth 256kbit = rate 128kbit allot 1514 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:0 classid 1:49 cbq bandwidth 256kbit = rate 128kbit allot 1514 maxburst 20 avpkt 1000 tc class add dev eth1 parent 1:0 classid 1:50 cbq bandwidth 256kbit = rate 128kbit allot 1514 maxburst 20 avpkt 1000 tc filter add dev eth1 parent 1:0 protocol ip prio 1 handle 0 = tcindex classid 1:50 tc filter add dev eth1 parent 1:0 protocol ip prio 39 handle 39 = tcindex classid 1:39 tc filter add dev eth1 parent 1:0 protocol ip prio 40 handle 40 = tcindex classid 1:40 tc filter add dev eth1 parent 1:0 protocol ip prio 41 handle 41 = tcindex classid 1:41 tc filter add dev eth1 parent 1:0 protocol ip prio 47 handle 47 = tcindex classid 1:47 tc filter add dev eth1 parent 1:0 protocol ip prio 48 handle 48 = tcindex classid 1:48 tc filter add dev eth1 parent 1:0 protocol ip prio 49 handle 49 = tcindex classid 1:49 I think it will devide the traffic in the different classes according to = the tcindex value. However, the script doesn't use a dsmark qdisc, so = the tcindex value should be set first with an ingress qdisc, right? thx, Jan --- Jan Coppens Ghent University - IMEC Department of Information Technology (INTEC) Broadband Communication Networks (IBCN) Sint-Pietersnieuwstraat, 41 B-9000, Gent Belgium E-mail: Jan.Coppens@intec.rug.ac.be Phone: +32 (0)9 267 35 90 Fax: +32 (0)9 267 35 99 ------=_NextPart_000_00EF_01C1C68F.3DC3F540 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
Can someone explain me what this script = does?
 
    tc qdisc del dev = eth1=20 root
    tc qdisc add dev = eth1 root=20 handle 1:0 cbq bandwidth 10mbit avpkt 1000
 
    tc class add dev = eth1 parent 1:0=20 classid 1:39 cbq bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 = avpkt=20 1000
    tc class add dev eth1 parent 1:0 classid 1:40 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000
    tc class add dev eth1 parent 1:0 classid 1:41 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000
    tc class add dev eth1 parent 1:0 classid 1:47 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000
    tc class add dev eth1 parent 1:0 classid 1:48 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000
    tc class add dev eth1 parent 1:0 classid 1:49 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000
    tc class add dev eth1 parent 1:0 classid 1:50 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt = 1000
 
    tc filter add dev = eth1 parent=20 1:0 protocol ip prio 1 handle 0 tcindex classid = 1:50
    tc=20 filter add dev eth1 parent 1:0 protocol ip prio 39 handle 39 tcindex = classid=20 1:39
    tc filter add dev eth1 parent 1:0 protocol ip = prio 40=20 handle 40 tcindex classid 1:40
    tc filter add dev = eth1=20 parent 1:0 protocol ip prio 41 handle 41 tcindex classid=20 1:41
    tc filter add dev eth1 parent 1:0 protocol ip = prio 47=20 handle 47 tcindex classid 1:47
    tc filter add dev = eth1=20 parent 1:0 protocol ip prio 48 handle 48 tcindex classid=20 1:48
    tc filter add dev eth1 parent 1:0 protocol ip = prio 49=20 handle 49 tcindex classid 1:49
 
I think it will devide the traffic in = the different=20 classes according to the tcindex value. However, the script doesn't use = a dsmark=20 qdisc, so the tcindex value should be set first with an ingress = qdisc,=20 right?
 
thx,
Jan
 
---
Jan Coppens
Ghent University = -=20 IMEC
 
Department of Information Technology=20 (INTEC)
Broadband Communication Networks (IBCN)
 
Sint-Pietersnieuwstraat, 41
B-9000,=20 Gent
Belgium
 
E-mail: Jan.Coppens@intec.rug.ac.be
Phone:=20 +32 (0)9 267 35 90
Fax: +32 (0)9 267 35 99
------=_NextPart_000_00EF_01C1C68F.3DC3F540-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/