Skip to contentSkip to conversation

Why SFQ does not drops packets

LARTC Serguei I. Ivantsov 5 participants 7 messages Jun 1, 2001

lore
Share & tools
lore
#0 lore raw

Hello All!

Please explain me why my class 10:300 does not drops packets? My class is bounded and isolated - but 8kbit!83bps!!!

class cbq 10:300 parent 10:1 leaf 801b: rate 8Kbit (bounded,isolated) prio 5
Sent 470737 bytes 388 pkts (dropped 0, overlimits 7465)
rate 1783bps 1pps backlog 40p
borrowed 0 overactions 290 avgidle -786633 undertime 612289

--
Regards,
Serguei I. Ivantsov

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#1 lore raw
Quoted 8 lines · Serguei I. Ivantsov

Please explain me why my class 10:300 does not drops packets? My class is bounded and isolated - but 8kbit!83bps!!!

class cbq 10:300 parent 10:1 leaf 801b: rate 8Kbit (bounded,isolated) prio 5
Sent 470737 bytes 388 pkts (dropped 0, overlimits 7465)
rate 1783bps 1pps backlog 40p
borrowed 0 overactions 290 avgidle -786633 undertime 612289

I'm not sure what 1783bps means. If it is "bytes/sec" more packets should be dropped, if it is "bits/sec", everything seems to be ok.

How do you get that output? Is it documented somewhere, so I can try it?

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#2 lore raw
In reply to Serguei I. Ivantsov
Quoted 6 lines · Wingtung.Leung
Quoted 4 lines · Serguei I. Ivantsov

Please explain me why my class 10:300 does not drops packets? My class is bounded and isolated - but 8kbit!83bps!!!

Quoted 7 lines
Quoted 4 lines

class cbq 10:300 parent 10:1 leaf 801b: rate 8Kbit (bounded,isolated) prio 5
Sent 470737 bytes 388 pkts (dropped 0, overlimits 7465)
rate 1783bps 1pps backlog 40p
borrowed 0 overactions 290 avgidle -786633 undertime 612289

I'm not sure what 1783bps means. If it is "bytes/sec" more packets should be dropped, if it is "bits/sec", everything seems to be ok.

As a general rule "bps" means bits per second and "Bps" means bytes per second. I am not shure if it applies here. I should say it does.

Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+(12) 341-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
Sao Jose dos Campos / \

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#3 lore raw
In reply to Serguei I. Ivantsov
Quoted 13 lines · Ethy H. Brito
Quoted 11 lines · Wingtung.Leung
Quoted 8 lines · Serguei I. Ivantsov

Please explain me why my class 10:300 does not drops packets? My class is bounded and isolated - but 8kbit!83bps!!!

class cbq 10:300 parent 10:1 leaf 801b: rate 8Kbit (bounded,isolated) prio 5
Sent 470737 bytes 388 pkts (dropped 0, overlimits 7465)
rate 1783bps 1pps backlog 40p
borrowed 0 overactions 290 avgidle -786633 undertime 612289

Quoted 5 lines
Quoted 2 lines

I'm not sure what 1783bps means. If it is "bytes/sec" more packets should be dropped, if it is "bits/sec", everything seems to be ok.

As a general rule "bps" means bits per second and "Bps" means bytes per second. I am not shure if it applies here. I should say it does.

Usually, when one talks about the bandwidth it always refers to "bit" not "byte".

Ramin

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

#4 lore raw
In reply to Serguei I. Ivantsov

Hello Wingtung.Leung,

Friday, June 01, 2001, 6:58:44 PM, you wrote:

Quoted 8 lines · Serguei I. Ivantsov
Quoted 8 lines

Please explain me why my class 10:300 does not drops packets? My class is bounded and isolated - but 8kbit!83bps!!!

class cbq 10:300 parent 10:1 leaf 801b: rate 8Kbit (bounded,isolated) prio 5
Sent 470737 bytes 388 pkts (dropped 0, overlimits 7465)
rate 1783bps 1pps backlog 40p
borrowed 0 overactions 290 avgidle -786633 undertime 612289

WL> I'm not sure what 1783bps means. If it is "bytes/sec" more packets should WL> be dropped, if it is "bits/sec", everything seems to be ok.

Looking at the MRTG graph I can say that bps="bytes per second"

WL> How do you get that output? Is it documented somewhere, so I can try it?

To get the list of classes with details use "tc -s class ls dev eth0" To get the list of qdiscs with details use "tc -s qdisc ls dev eth0"

If you want to check bandwidth consumed with every class use estimator in class definition "est 1sec 4sec"

WL> tc class add dev eth0 parent 10:1 classid 10:300 est 1sec 4sec \
WL> cbq bandwidth 64Kbit rate \
WL> 8Kbit allot 1514 weight 1Kbit prio 5 maxburst 1 avpkt 1000 \
WL> bounded isolated

After number of tests I come to conclusion that the only queueing discipline which can DROP packets and thereby throttle bandwith is TBF. But it does not allow to throttle bandwith dynamically, does not allow to relocate bandwith between classes:(

Please put me right if I wrong.

Signature · 8 lines
Best regards,
 Serguei                            mailto:[email protected]



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#5 lore raw
In reply to Serguei I. Ivantsov

Hello Ramin,

Friday, June 01, 2001, 8:41:52 PM, you wrote:

Quoted 13 lines · Ethy H. Brito
Quoted 13 lines · Wingtung.Leung
Quoted 12 lines · Serguei I. Ivantsov
Quoted 9 lines

Please explain me why my class 10:300 does not drops packets? My class is bounded and isolated - but 8kbit!83bps!!!

class cbq 10:300 parent 10:1 leaf 801b: rate 8Kbit (bounded,isolated) prio 5
Sent 470737 bytes 388 pkts (dropped 0, overlimits 7465)
rate 1783bps 1pps backlog 40p
borrowed 0 overactions 290 avgidle -786633 undertime 612289

Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

I'm not sure what 1783bps means. If it is "bytes/sec" more packets should be dropped, if it is "bits/sec", everything seems to be ok.

As a general rule "bps" means bits per second and "Bps" means bytes per second. I am not shure if it applies here. I should say it does.

RA> Usually, when one talks about the bandwidth it always refers to "bit" RA> not "byte".

RA> Ramin

RA> _______________________________________________
RA> LARTC mailing list / [email protected]
RA> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

Well, let's perfom a little calculation :)

"tc -s class ls dev eth0" :

Quoted 3 lines

class cbq 10:200 parent 10:1 leaf 8026: rate 16Kbit (bounded,isolated) prio 5
Sent 4049872 bytes 3846 pkts (dropped 0, overlimits 10286)
borrowed 0 overactions 1364 avgidle 309677 undertime 0

after 4 second :

Quoted 4 lines

class cbq 10:200 parent 10:1 leaf 8026: rate 16Kbit (bounded,isolated) prio 5
Sent 4049926 bytes 3847 pkts (dropped 0, overlimits 10286)
rate 13bps
borrowed 0 overactions 1364 avgidle 309677 undertime 0

4049926(bytes)-4049872(bytes)T(bytes)

54(bytes)/4(second).5 BYTES PER SECOND!

It is easy to come to this conclusion when looking at MRTG graps.

Signature · 8 lines
Best regards,
 Serguei                            mailto:[email protected]



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
#6 lore raw
In reply to Serguei I. Ivantsov
Quoted 12 lines · Serguei I. Ivantsov

Hello Ramin,

Well, let's perfom a little calculation :)

"tc -s class ls dev eth0" :

Quoted 3 lines

class cbq 10:200 parent 10:1 leaf 8026: rate 16Kbit (bounded,isolated) prio 5
Sent 4049872 bytes 3846 pkts (dropped 0, overlimits 10286)
borrowed 0 overactions 1364 avgidle 309677 undertime 0

after 4 second :

Quoted 8 lines
Quoted 4 lines

class cbq 10:200 parent 10:1 leaf 8026: rate 16Kbit (bounded,isolated) prio 5
Sent 4049926 bytes 3847 pkts (dropped 0, overlimits 10286)
rate 13bps
borrowed 0 overactions 1364 avgidle 309677 undertime 0

4049926(bytes)-4049872(bytes)T(bytes)

54(bytes)/4(second).5 BYTES PER SECOND!

I agree. This is how the *throughput* is measured. What I meant was when you talk about Ethernet, Fast-Ethernet, Gig-Ethernet, TokenRing, DS3, OC3, OC48, OC192... all is expressed in bits/sec and that's the bandwidth. The throughput can be packets/sec or bytes/sec or bits/sec.

Ramin

Quoted 6 lines

It is easy to come to this conclusion when looking at MRTG graps.

Signature · 2 lines
Best regards,
 Serguei                            mailto:[email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/