Re: traffic shapping problem with fragmented packets

From: Andi Kleen (ak@suse.de)
Date: Fri Sep 22 2000 - 16:16:20 EST


On Fri, Sep 22, 2000 at 04:56:55PM -0400, Wael Ashmawi wrote:
> I have tried several ways of doing that the script shown below does the
> shaping ok but for packet less than the Ethernet MTU. if I start to have
> fragments everything is missed up. I tried it with pings givinig
> different packet size in the command line.

The problem is not really solvable unless you fix the application to send
smaller packets. The only way to shape traffic in IP is to drop packets, and
with these big fragments a single packet drop the whole fragment is lost. TBF
doesn't know anything about fragments so it'll just arbitarily drop a rate
which results in at least one fragment dropped from every application datagram,
which results in no data transfered. You could try to set the burst size
>= application datagram size, but even that will only work properly with a
single stream.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:28 EST