* [LARTC] Filter for large packets?
@ 2003-01-24 9:43 Simon Stemplinger
2003-01-24 17:38 ` Simon Stemplinger
2003-01-24 17:39 ` Stef Coene
0 siblings, 2 replies; 3+ messages in thread
From: Simon Stemplinger @ 2003-01-24 9:43 UTC (permalink / raw)
To: lartc
Hi,
i am using the wondershaper script on a DSL-router-firewall combination
for several LAN clients. My Problem is that the port based filter rules
dont match bulk traffic satisfyingly, because many file sharing programs
allow to use custom ports. Usually a few connections that is not
recognized as bulk are enough to fill up the 1:20 queue and slow down
www and other normal traffic. Can anyone tell me a filter rule that
matches Packets greater that a certain number of bytes. I think
classifying outgoing packets > 512 or 1024 bytes as bulk should help
here. Do you think this is a good idea, or am i missing something?
What would be a good size threshold to separate normal from bulk traffic?
regards,
Simon
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Filter for large packets?
2003-01-24 9:43 [LARTC] Filter for large packets? Simon Stemplinger
@ 2003-01-24 17:38 ` Simon Stemplinger
2003-01-24 17:39 ` Stef Coene
1 sibling, 0 replies; 3+ messages in thread
From: Simon Stemplinger @ 2003-01-24 17:38 UTC (permalink / raw)
To: lartc
I figure it should be
tc filter add dev $DEV parent 1: protocol ip prio 10 u32 \
match ip protocol 6 0xff \
match u8 0x05 0x0f at 0 \
match u8 0x04 0x04 at 2 \
match u8 0x10 0xff at 33 \
flowid 1:30
but it doesn´t work... what am I doing wrong?
regards,
Simon
Simon Stemplinger wrote:
> Hi,
>
> i am using the wondershaper script on a DSL-router-firewall
> combination for several LAN clients. My Problem is that the port based
> filter rules dont match bulk traffic satisfyingly, because many file
> sharing programs allow to use custom ports. Usually a few connections
> that is not recognized as bulk are enough to fill up the 1:20 queue
> and slow down www and other normal traffic. Can anyone tell me a
> filter rule that matches Packets greater that a certain number of
> bytes. I think classifying outgoing packets > 512 or 1024 bytes as
> bulk should help here. Do you think this is a good idea, or am i
> missing something?
>
> What would be a good size threshold to separate normal from bulk traffic?
>
> regards,
> Simon
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] Filter for large packets?
2003-01-24 9:43 [LARTC] Filter for large packets? Simon Stemplinger
2003-01-24 17:38 ` Simon Stemplinger
@ 2003-01-24 17:39 ` Stef Coene
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2003-01-24 17:39 UTC (permalink / raw)
To: lartc
On Friday 24 January 2003 10:43, Simon Stemplinger wrote:
> Hi,
>
> i am using the wondershaper script on a DSL-router-firewall combination
> for several LAN clients. My Problem is that the port based filter rules
> dont match bulk traffic satisfyingly, because many file sharing programs
> allow to use custom ports. Usually a few connections that is not
> recognized as bulk are enough to fill up the 1:20 queue and slow down
> www and other normal traffic. Can anyone tell me a filter rule that
> matches Packets greater that a certain number of bytes. I think
> classifying outgoing packets > 512 or 1024 bytes as bulk should help
> here. Do you think this is a good idea, or am i missing something?
Maybe iptables can help you. It has a length match option so you can mark the
packets based on the lengths.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-24 17:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-24 9:43 [LARTC] Filter for large packets? Simon Stemplinger
2003-01-24 17:38 ` Simon Stemplinger
2003-01-24 17:39 ` Stef Coene
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.