From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Muhammed Soyer" Date: Mon, 20 May 2002 08:45:09 +0000 Subject: [LARTC] htb error MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00CB_01C1FFF3.CB03BC40" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_00CB_01C1FFF3.CB03BC40 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable Hi, I am tryin to shape my routers traffic ..I have read lartc document = .HTB is suggested there .So I used htb ..My kernel is 2.4.18 .I patched = my kernel and activated the supports .. I have created my classes as follows tc qdisc add dev eth2 root handle 1: htb default 14 tc class add dev eth2 parent 1: classid 1:1 htb rate 2mbit ceil 2mbit tc class add dev eth2 parent 1:1 classid 1:10 htb rate 700kbit ceil = 1700kbit tc class add dev eth2 parent 1:1 classid 1:11 htb rate 200kbit ceil = 1250kbit tc class add dev eth2 parent 1:1 classid 1:12 htb rate 600kbit ceil = 1700kbit tc class add dev eth2 parent 1:1 classid 1:13 htb rate 200kbit ceil = 1700kbit tc class add dev eth2 parent 1:1 classid 1:14 htb rate 300kbit ceil = 1700kbit tc qdisc add dev eth2 parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev eth2 parent 1:11 handle 20: sfq perturb 10 tc qdisc add dev eth2 parent 1:12 handle 30: sfq perturb 10 tc qdisc add dev eth2 parent 1:13 handle 40: sfq perturb 10 tc qdisc add dev eth2 parent 1:14 handle 50: sfq perturb 10 tc filter add dev eth2 protocol ip parent 1:0 prio 1 u32 match ip dst = 194.x.x.254 match ip sport 80 0xffff flowid 1:10 tc filter add dev eth2 protocol ip parent 1:0 prio 1 u32 match ip dst = 194.x.x.254 flowid 1:11 tc filter add dev eth2 protocol ip parent 1:0 prio 1 u32 match ip dst = 194.x.x.250 flowid 1:12 tc filter add dev eth2 protocol ip parent 1:0 prio 1 u32 match ip dst = 194.x.x.200 flowid 1:13 At the begining every thing works fine ..But when overlimits begins to = occur the class having overlimits hangs the traffic related to that = class I have got error messages in syslog as follows May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894047744 then=3D4294959104 j=3D46368551 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894072320 then=3D4294959104 j=3D46368554 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894096896 then=3D4294959104 j=3D46368557 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894121472 then=3D4294959104 j=3D46368560 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894146048 then=3D4294959104 j=3D46368563 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894170624 then=3D4294959104 j=3D46368566 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894195200 then=3D4294959104 j=3D46368569 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894219776 then=3D4294959104 j=3D46368572 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894244352 then=3D4294959104 j=3D46368575 May 20 09:40:07 gesrouter kernel: HTB: bad diff in charge, = diff=3D3938700 now=3D1894268928 then=3D4294959104 j=3D46368578 these messages continue for ever.. What can the problem be ? -------------------------------------------------------------------------= ------- Muhammed Soyer ------=_NextPart_000_00CB_01C1FFF3.CB03BC40 Content-Type: text/html; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable
Hi,
    I am tryin to shape my routers = traffic ..I=20 have read lartc document .HTB is suggested there .So I used htb ..My = kernel is=20 2.4.18 .I patched my kernel and activated the supports ..
I have created my classes as follows
 
tc qdisc add dev eth2 root handle 1: htb default = 14
tc=20 class add dev eth2 parent 1: classid 1:1 htb rate 2mbit ceil 2mbit
tc = class=20 add dev eth2 parent 1:1 classid 1:10 htb rate 700kbit ceil = 1700kbit
tc class=20 add dev eth2 parent 1:1 classid 1:11 htb rate 200kbit ceil = 1250kbit
tc class=20 add dev eth2 parent 1:1 classid 1:12 htb rate 600kbit ceil = 1700kbit
tc class=20 add dev eth2 parent 1:1 classid 1:13 htb rate 200kbit ceil = 1700kbit
tc class=20 add dev eth2 parent 1:1 classid 1:14 htb rate 300kbit ceil = 1700kbit
 
tc qdisc add dev eth2 parent 1:10 handle 10: sfq = perturb=20 10
tc qdisc add dev eth2 parent 1:11 handle 20: sfq perturb 10
tc = qdisc=20 add dev eth2 parent 1:12 handle 30: sfq perturb 10
tc qdisc add dev = eth2=20 parent 1:13 handle 40: sfq perturb 10
tc qdisc add dev eth2 parent = 1:14=20 handle 50: sfq perturb 10
 
tc filter add dev eth2 protocol ip parent 1:0 prio 1 = u32 =20 match ip dst 194.x.x.254 match ip sport 80 0xffff   flowid = 1:10
tc=20 filter add dev eth2 protocol ip parent 1:0 prio 1 u32  match ip dst = 194.x.x.254   flowid 1:11
tc filter add dev eth2 protocol ip = parent 1:0=20 prio 1 u32  match ip dst 194.x.x.250   flowid 1:12
tc = filter add=20 dev eth2 protocol ip parent 1:0 prio 1 u32  match ip dst = 194.x.x.200  =20 flowid 1:13
 
At the begining every thing works fine ..But when = overlimits=20 begins to occur the class having overlimits hangs the traffic related to = that=20 class
I have got error messages in syslog as = follows
 
May 20 09:40:07 gesrouter kernel: HTB: bad diff in = charge,=20 diff=3D3938700 now=3D1894047744 then=3D4294959104 j=3D46368551
May 20 = 09:40:07=20 gesrouter kernel: HTB: bad diff in charge, diff=3D3938700 = now=3D1894072320=20 then=3D4294959104 j=3D46368554
May 20 09:40:07 gesrouter kernel: HTB: = bad diff in=20 charge, diff=3D3938700 now=3D1894096896 then=3D4294959104 = j=3D46368557
May 20=20 09:40:07 gesrouter kernel: HTB: bad diff in charge, diff=3D3938700 = now=3D1894121472=20 then=3D4294959104 j=3D46368560
May 20 09:40:07 gesrouter kernel: HTB: = bad diff in=20 charge, diff=3D3938700 now=3D1894146048 then=3D4294959104 = j=3D46368563
May 20=20 09:40:07 gesrouter kernel: HTB: bad diff in charge, diff=3D3938700 = now=3D1894170624=20 then=3D4294959104 j=3D46368566
May 20 09:40:07 gesrouter kernel: HTB: = bad diff in=20 charge, diff=3D3938700 now=3D1894195200 then=3D4294959104 = j=3D46368569
May 20=20 09:40:07 gesrouter kernel: HTB: bad diff in charge, diff=3D3938700 = now=3D1894219776=20 then=3D4294959104 j=3D46368572
May 20 09:40:07 gesrouter kernel: HTB: = bad diff in=20 charge, diff=3D3938700 now=3D1894244352 then=3D4294959104 = j=3D46368575
May 20=20 09:40:07 gesrouter kernel: HTB: bad diff in charge, diff=3D3938700 = now=3D1894268928=20 then=3D4294959104 j=3D46368578
 
 
these messages continue for ever..
 
What can the problem be ?
 

Muhammed Soyer

 

------=_NextPart_000_00CB_01C1FFF3.CB03BC40-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/