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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.3315.2869" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Can someone explain me what this script = does?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2> tc qdisc del dev = eth1=20 root</FONT></DIV> <DIV><FONT face=3DArial size=3D2> tc qdisc add dev = eth1 root=20 handle 1:0 cbq bandwidth 10mbit avpkt 1000</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2> tc class add dev = eth1 parent 1:0=20 classid 1:39 cbq bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 = avpkt=20 1000<BR> tc class add dev eth1 parent 1:0 classid 1:40 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000<BR> tc class add dev eth1 parent 1:0 classid 1:41 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000<BR> tc class add dev eth1 parent 1:0 classid 1:47 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000<BR> tc class add dev eth1 parent 1:0 classid 1:48 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000<BR> tc class add dev eth1 parent 1:0 classid 1:49 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt=20 1000<BR> tc class add dev eth1 parent 1:0 classid 1:50 = cbq=20 bandwidth 256kbit rate 128kbit allot 1514 maxburst 20 avpkt = 1000</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2> tc filter add dev = eth1 parent=20 1:0 protocol ip prio 1 handle 0 tcindex classid = 1:50<BR> tc=20 filter add dev eth1 parent 1:0 protocol ip prio 39 handle 39 tcindex = classid=20 1:39<BR> tc filter add dev eth1 parent 1:0 protocol ip = prio 40=20 handle 40 tcindex classid 1:40<BR> tc filter add dev = eth1=20 parent 1:0 protocol ip prio 41 handle 41 tcindex classid=20 1:41<BR> tc filter add dev eth1 parent 1:0 protocol ip = prio 47=20 handle 47 tcindex classid 1:47<BR> tc filter add dev = eth1=20 parent 1:0 protocol ip prio 48 handle 48 tcindex classid=20 1:48<BR> tc filter add dev eth1 parent 1:0 protocol ip = prio 49=20 handle 49 tcindex classid 1:49</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>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?</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>thx,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Jan</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>---<BR>Jan Coppens<BR>Ghent University = -=20 IMEC</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Department of Information Technology=20 (INTEC)<BR>Broadband Communication Networks (IBCN)</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Sint-Pietersnieuwstraat, 41<BR>B-9000,=20 Gent<BR>Belgium</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>E-mail: <A=20 href=3D"mailto:Jan.Coppens@intec.rug.ac.be">Jan.Coppens@intec.rug.ac.be</= A><BR>Phone:=20 +32 (0)9 267 35 90<BR>Fax: +32 (0)9 267 35 99</FONT></DIV></BODY></HTML> ------=_NextPart_000_00EF_01C1C68F.3DC3F540--