Skip to contentSkip to conversation

Avoid dropped packets

LARTC Gastón 2 participants 2 messages Jun 2, 2004

lore
Share & tools
lore

Gastón

author
#0 lore raw

I´m shaping with htb with a kernel 2.4.25 compiled with PSCHED_CPU. What i´m noticing (in mrtg) is that traffic coming in to eth0 (internet side) is much bigger than eth1(Lan side).
I think this is due to packets being dropped right? In this case, is there any way to avoid this? because right now traffic coming from the router is being wasted right?

This is the output of tc:

tc -s class show dev eth1

class htb 1:2 root rate 1408Kbit ceil 1408Kbit burst 3401b cburst 3401b
Sent 90714750 bytes 136654 pkts (dropped 0, overlimits 0) rate 181452bps 285pps
lended: 15521 borrowed: 0 giants: 0
tokens: -27837 ctokens: -27837

class htb 1:30 parent 1:2 leaf 30: prio 0 rate 1280Kbit ceil 1408Kbit burst 3237b cburst 3401b
Sent 90379104 bytes 136761 pkts (dropped 18479, overlimits 0) rate 181450bps 284pps backlog 107p
lended: 121133 borrowed: 15521 giants: 0
tokens: -776 ctokens: -27837

Thanks for your help.

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

#1 lore raw

Packet dropping is normal if you are going to shape traffic, but that is not so significant,
in your case there is quite big number if dropped packets, but normal anyway.
thi can be because you are shaping udp traffic, which do not have rate controll ability.

you should either pass all udp packets, either ignore wasted traffic.

----- Original Message -----
From: "Gastón" <[email protected]>
To: <[email protected]>
Sent: Wednesday, June 02, 2004 9:54 PM
Subject: [LARTC] Avoid dropped packets

Quoted 3 lines

I´m shaping with htb with a kernel 2.4.25 compiled with PSCHED_CPU. What i´m
noticing (in mrtg) is that traffic coming in to eth0 (internet side) is

much

Quoted 9 lines

bigger than eth1(Lan side).
I think this is due to packets being dropped right? In this case, is there any way to avoid this? because right now traffic coming from the router is being wasted right?

This is the output of tc:

tc -s class show dev eth1

Quoted 7 lines

class htb 1:2 root rate 1408Kbit ceil 1408Kbit burst 3401b cburst 3401b
Sent 90714750 bytes 136654 pkts (dropped 0, overlimits 0) rate 181452bps 285pps
lended: 15521 borrowed: 0 giants: 0
tokens: -27837 ctokens: -27837

class htb 1:30 parent 1:2 leaf 30: prio 0 rate 1280Kbit ceil 1408Kbit

burst

Quoted 7 lines

3237b cburst 3401b
Sent 90379104 bytes 136761 pkts (dropped 18479, overlimits 0) rate 181450bps 284pps backlog 107p
lended: 121133 borrowed: 15521 giants: 0
tokens: -776 ctokens: -27837

Quoted 6 lines

Thanks for your help.

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

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