* [LARTC] bandwidth limiting on packet size !
@ 2002-03-06 17:28 Arindam Haldar
2002-03-06 17:33 ` Ross Skaliotis
0 siblings, 1 reply; 2+ messages in thread
From: Arindam Haldar @ 2002-03-06 17:28 UTC (permalink / raw)
To: lartc
hi all,
i also wanted 2 know if someone has tried bandwidth limiting on packet
size with tc and >>> WITHOUT USING IPTABLES !
can anyone lend his expertise on the above pls...
thanx in advance
A.H
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] bandwidth limiting on packet size !
2002-03-06 17:28 [LARTC] bandwidth limiting on packet size ! Arindam Haldar
@ 2002-03-06 17:33 ` Ross Skaliotis
0 siblings, 0 replies; 2+ messages in thread
From: Ross Skaliotis @ 2002-03-06 17:33 UTC (permalink / raw)
To: lartc
I'm doing this in my setup. To match packet sizes, I use a filter that
looks at the 3rd byte in the ip header. The total length in the ip header
takes up two bytes, bytes 3 to 4 (or 2-3 if you're counting starting from
0 as you should when using a filter) for a maximum packet size of 65535.
My filter looks like the following:
tc filter add dev ppp0 parent 2:0 protocol ip prio 5 u32 match ip \
protocol 6 0xff match u8 0x00 0xff at 2 flowid 2:3
The second match does the following: It looks in the first byte of the two
byte field and matches 00 only. This means that the packet can only be big
enough to fill up on byte worth of data which equates to a size no greater
then 255 bytes. You can play around with it to get different values. It
seems to work fine for me.
Hope this helps,
-Ross Skaliotis
On Wed, 6 Mar 2002, Arindam Haldar wrote:
> hi all,
>
> i also wanted 2 know if someone has tried bandwidth limiting on packet
> size with tc and >>> WITHOUT USING IPTABLES !
> can anyone lend his expertise on the above pls...
> thanx in advance
>
> A.H
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-06 17:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-06 17:28 [LARTC] bandwidth limiting on packet size ! Arindam Haldar
2002-03-06 17:33 ` Ross Skaliotis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.