* [LARTC] Sharing incoming traffic
@ 2002-03-21 12:29 Julián Muñoz
2002-03-21 13:28 ` Tobias Geiger
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Julián Muñoz @ 2002-03-21 12:29 UTC (permalink / raw)
To: lartc
I've done my first test with ingress,
2 ftps, and I've seen that the bandwidth is not shared "very well".
From the point of view of a user, his transfer stops suddenly, and
restarts 20 seconds (or more!) later. Then the other has to wait !! I
observ a kind of feedback process, beeing the interval of stopped traffic
bigger each time, during the transference.
The bandwidth is limited to 64.000 bit per second, killing packets.
In fact it is not a real ethernet link, and the filter is on a vmware
machine computer, so maybe this test is not valid.
Anyone knows more about this behaviour ??
Could I optimize it playing with burst and mpu ?
Or am I doing something really bad ?
Thank you,
Here's my filter:
iptables -A PREROUTING -i eth0 -t mangle --protocol all -j MARK --set-mark
1
tc qdisc add dev eth0 handle ffff: ingress
tc filter add dev eth0 parent ffff: protocol ip prio 5 handle 1 fw \
police rate 8000bps burst 10k mpu 64b drop flowid :1
--
__o
_ \<_
(_)/(_)
Saludos de Julián
EA4ACL
-.-
Foro Wireless Madrid
http://opennetworks.rg3.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
@ 2002-03-21 13:28 ` Tobias Geiger
2002-03-21 14:18 ` Tobias Geiger
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tobias Geiger @ 2002-03-21 13:28 UTC (permalink / raw)
To: lartc
For me ingress works great.
ok, i more or less copy/pasted from the "wondershaper" :)
I guess it's not good to have a rate of 8000bps AND a burst of 10k
I'm also not shure, if the iptables-marks get noticed, but it seems so,
as you said there is a shaping effect. but as your iptable-rule is so
generally i'd say there's no reason not to use the appropriate u32
filter instead of fw.
VMWare shouldn't be the problem, at least i never had ones.
Tell me, if tuning rate/burst helped
Greetings
Tobias
On Thu, Mar 21, 2002 at 12:29:09PM +0000, Julián Muñoz wrote:
>
> I've done my first test with ingress,
>
> 2 ftps, and I've seen that the bandwidth is not shared "very well".
>
> From the point of view of a user, his transfer stops suddenly, and
> restarts 20 seconds (or more!) later. Then the other has to wait !! I
> observ a kind of feedback process, beeing the interval of stopped traffic
> bigger each time, during the transference.
>
> The bandwidth is limited to 64.000 bit per second, killing packets.
>
> In fact it is not a real ethernet link, and the filter is on a vmware
> machine computer, so maybe this test is not valid.
>
> Anyone knows more about this behaviour ??
>
> Could I optimize it playing with burst and mpu ?
>
> Or am I doing something really bad ?
>
> Thank you,
>
> Here's my filter:
>
> iptables -A PREROUTING -i eth0 -t mangle --protocol all -j MARK --set-mark
> 1
>
> tc qdisc add dev eth0 handle ffff: ingress
>
> tc filter add dev eth0 parent ffff: protocol ip prio 5 handle 1 fw \
> police rate 8000bps burst 10k mpu 64b drop flowid :1
>
>
> --
>
> __o
> _ \<_
> (_)/(_)
>
> Saludos de Julián
> EA4ACL
> -.-
>
> Foro Wireless Madrid
> http://opennetworks.rg3.net
>
>
>
> _______________________________________________
> 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] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
2002-03-21 13:28 ` Tobias Geiger
@ 2002-03-21 14:18 ` Tobias Geiger
2002-03-21 14:23 ` Tobias Geiger
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tobias Geiger @ 2002-03-21 14:18 UTC (permalink / raw)
To: lartc
the "wondershaper" by one of the authors of the LARTC-HOWTO:
http://lartc.org/HOWTO//cvs/2.4routing/output/2.4routing-15.html
at the very end of this html-page simply copy/paste the ingress-line and
the next line which is the u32 filter for the ingress-qdisc.
that worked perfect for me :)
> Thank you Tobias,
>
> > For me ingress works great.
> > ok, i more or less copy/pasted from the "wondershaper" :)
>
> Eh?
>
> > I guess it's not good to have a rate of 8000bps AND a burst of 10k
>
> I have set burst to 3k, and this has not helped, I still see the "not
> nice" sharing at the input.
> Maybe I should increase burst ??
>
>
well, what do you want? i guess i want to "test" the ingress-qdisc, and
as far i understand the whole thing it's no good idea to set a specific
rate but at the same time allow a burst that's x*specific-rate.
i always set my burst to something like specific-rate/10 or so
in your example with 8000bps rate, i'd test a burst of 800 or even less
> > I'm also not shure, if the iptables-marks get noticed, but it seems so,
> > as you said there is a shaping effect.
>
> You say the if I use u32 maybe this effect would disappear ?
>
>
like i said: i dont' know exactly :) i'm not in this c /
hardcore-kernelprogramming stuff, so i don't know for shure which code
comes first in case of ingress: the qdisc-stuff or the iptables stuff.
if the iptables stuff comes first (and it seems so) then everything's
ok. let it be.
the "effect" has nothing to do with your filter, more with your qdisc (i
guess :)
> > but as your iptable-rule is so
> > generally i'd say there's no reason not to use the appropriate u32
> > filter instead of fw.
>
> The problem is that u32 is not well documented :-(
> I had to install all the ipchains and after iptables, because was unable
> to do anything "coherent" with u32...
>
>
like mentioned above: the last line of code in the html-page is the
u32-filter line you need (and which does the same as your
iptables-mark-rule)
good luck
tobias
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
2002-03-21 13:28 ` Tobias Geiger
2002-03-21 14:18 ` Tobias Geiger
@ 2002-03-21 14:23 ` Tobias Geiger
2002-03-21 14:43 ` Julián Muñoz
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Tobias Geiger @ 2002-03-21 14:23 UTC (permalink / raw)
To: lartc
I reread your Subject line and noticed you meant SHARING. i always read
SHAPING.
Make sure u can't actually SHARE your incoming bandwith. you can just
throttle it down (to gain more interactivity on a heavy loaded link)
I hope we didn't missunderstand each other
Tobias
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
` (2 preceding siblings ...)
2002-03-21 14:23 ` Tobias Geiger
@ 2002-03-21 14:43 ` Julián Muñoz
2002-03-21 15:11 ` Martin Devera
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Julián Muñoz @ 2002-03-21 14:43 UTC (permalink / raw)
To: lartc
Ok,
what I really wanted was to prioritize some kinds of incoming traffic
(DNS or HTTP) (or penalyze some other, which is same), exactly for what
you say, "gain interactivity on a heavy loaded link"
but doing test, I saw this strange "non fairness sensation", which is
maybe problematic ??
That's why I ask if someone has already seen this behaviour, or it is
specific of my system ? The test is very easy, do 2 ftp in parallel.
I am going to recompile 2.4 on my main computer, hopping this is a caused
by vmware :-)
On Thu, 21 Mar 2002, Tobias Geiger wrote:
>
> I reread your Subject line and noticed you meant SHARING. i always read
> SHAPING.
> Make sure u can't actually SHARE your incoming bandwith. you can just
> throttle it down (to gain more interactivity on a heavy loaded link)
>
> I hope we didn't missunderstand each other
>
> Tobias
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
--
__o
_ \<_
(_)/(_)
Saludos de Julián
EA4ACL
-.-
Foro Wireless Madrid
http://opennetworks.rg3.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
` (3 preceding siblings ...)
2002-03-21 14:43 ` Julián Muñoz
@ 2002-03-21 15:11 ` Martin Devera
2002-03-21 15:31 ` Jason Tackaberry
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Martin Devera @ 2002-03-21 15:11 UTC (permalink / raw)
To: lartc
With IMQ you can ;)
> Make sure u can't actually SHARE your incoming bandwith. you can just
> throttle it down (to gain more interactivity on a heavy loaded link)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
` (4 preceding siblings ...)
2002-03-21 15:11 ` Martin Devera
@ 2002-03-21 15:31 ` Jason Tackaberry
2002-03-21 15:36 ` Martin Devera
2002-03-21 16:25 ` Julián Muñoz
7 siblings, 0 replies; 9+ messages in thread
From: Jason Tackaberry @ 2002-03-21 15:31 UTC (permalink / raw)
To: lartc
On Thu, 2002-03-21 at 10:11, Martin Devera wrote:
> With IMQ you can ;)
Except the lack of documentation makes me scared to use it (or try to
figure it out). :)
Jason.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
` (5 preceding siblings ...)
2002-03-21 15:31 ` Jason Tackaberry
@ 2002-03-21 15:36 ` Martin Devera
2002-03-21 16:25 ` Julián Muñoz
7 siblings, 0 replies; 9+ messages in thread
From: Martin Devera @ 2002-03-21 15:36 UTC (permalink / raw)
To: lartc
indeed. If someone want to volunteer docs I will give all neccessary
info ;)
devik
On 21 Mar 2002, Jason Tackaberry wrote:
> On Thu, 2002-03-21 at 10:11, Martin Devera wrote:
> > With IMQ you can ;)
>
> Except the lack of documentation makes me scared to use it (or try to
> figure it out). :)
>
> Jason.
>
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [LARTC] Sharing incoming traffic
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
` (6 preceding siblings ...)
2002-03-21 15:36 ` Martin Devera
@ 2002-03-21 16:25 ` Julián Muñoz
7 siblings, 0 replies; 9+ messages in thread
From: Julián Muñoz @ 2002-03-21 16:25 UTC (permalink / raw)
To: lartc
You say that IMQ could be attached to a device to the incoming side ??
On Thu, 21 Mar 2002, Martin Devera wrote:
> With IMQ you can ;)
>
> > Make sure u can't actually SHARE your incoming bandwith. you can just
> > throttle it down (to gain more interactivity on a heavy loaded link)
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
--
__o
_ \<_
(_)/(_)
Saludos de Julián
EA4ACL
-.-
Foro Wireless Madrid
http://opennetworks.rg3.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-03-21 16:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-21 12:29 [LARTC] Sharing incoming traffic Julián Muñoz
2002-03-21 13:28 ` Tobias Geiger
2002-03-21 14:18 ` Tobias Geiger
2002-03-21 14:23 ` Tobias Geiger
2002-03-21 14:43 ` Julián Muñoz
2002-03-21 15:11 ` Martin Devera
2002-03-21 15:31 ` Jason Tackaberry
2002-03-21 15:36 ` Martin Devera
2002-03-21 16:25 ` Julián Muñoz
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.