Koozali.org: home of the SME Server

advanced routing wondershaper

hanscees

advanced routing wondershaper
« on: May 20, 2003, 02:22:34 AM »
Hi,

Just thoughtI might share some info here, which to my surprise was not there yet.

If you have an adsl line or something like that, where your upload and downlaod can clutter up the line esmith 5.6 with kernel 2.4 can help out.

Kernel 2.4 has the ability for advanced routing, see
http://lartc.org/

I have succeeded using the wondershaper traffic-control script form that site at:

http://lartc.org/wondershaper/

Edit the script, run it with your /etc/rc.d/rc.local script and your line will be much more smoothly. You can:

- make sure some protocols have low priority (kazaa destinationport 1214) so your brother downloading mp3's does not halt your browsing.

- make sure your downlaoding does not DOS your www-site

and so on.

You can check with

ip adress show
if it worked. The eth1 device (your external device ) should have qdisk cbq.





 

greetings

Hans-Cees

Anthony de Waal

Re: advanced routing wondershaper
« Reply #1 on: May 27, 2003, 01:11:53 PM »
Hi there,
I tried this, but cannot see improvement.
We have a Fast ADSL with XS4all, that should have 1536/256 up/down.
At 1492/240 the pingtimes during download go up to 250, whereas the stay below 100 without the script.
This is without setting ports to low priority.
All my attempts do do see failed with syntax errors.  I can't find the proper syntax.
Any idea's how to proceed?
Kind greetings,
Thony

hanscees

Re: advanced routing wondershaper
« Reply #2 on: May 28, 2003, 12:01:54 AM »
well,
if you have syntaxt errors something is surely wrong as I need not tell you I am sure. What hane you done exactly because my script runs fine without errors. Are you using the wshaper script? You are using esmith 5.6?


Try to get output of the errors because that is where you start. I am afraid that the email lists of the advanced routing howto is the place to ask questions. The page of wondershaper also suggests another version.

Please let us know if amd how you tackeled this.

greets
hc

Anthony de Waal

Re: advanced routing wondershaper
« Reply #3 on: May 28, 2003, 12:23:46 AM »
I tried to list more than one port in the script.
Space, comma, colon, semicolon all failed as separator.
The error says 25 is not a command when I had filled in 25 as the second port.
Something like that.
The wshaper.htb did not work, the wshaper script works.
The readme or other documentation does not tell me what syntax touse to list more than one port.
Yes, it was on version 5.6.
Actually, I would not expect wonders, because I am separated from the Fast ADSL link through a WAN link that is limiting.
Getting to de-prioritize email traffic, that comes from the gateway would be a good idea.
Today someone accidentally emailed a 32 Mb attachment, that saturated the uplink for 15 minutes.
Kind greetings,
Thony

hanscees

Re: advanced routing wondershaper
« Reply #4 on: May 28, 2003, 12:34:40 AM »
well, email the maintainer after you seached the email lists for an answer to that.

From the script I would say you need a space as a seperator. If that does not work there might be a bug.

If you are seperated by a wan-link that is limiting you are coocked of course if you use the speeds of the adsl! Try to use the speed of the wanlink. If you do not know it use ftp to try and guess it?

greetings

Hans-Cees

hanscees

Re: advanced routing wondershaper
« Reply #5 on: May 28, 2003, 12:41:59 AM »
hi,

trying using this format:
"1214 139"

the "" make sure it is one variable.

hc

Anthony de Waal

Re: advanced routing wondershaper
« Reply #6 on: May 28, 2003, 01:07:38 AM »
Thanks.
that I didn't yet try. Will do so in the morning.
Kind greetings,
Thony

Anthony de Waal

Re: advanced routing wondershaper
« Reply #7 on: May 28, 2003, 03:10:14 PM »
Hi Hans-Cees

The "" did the trick.
Need to do tests to see if it has any effect.

I diminished the upload further, to 200 (max is 256) and now I do see quite an improvement in ping time.

Thanks again,

Thony

hanscees

Re: advanced routing wondershaper
« Reply #8 on: May 29, 2003, 12:37:03 AM »
could you post the improvement please?

greetings

hc

Anthony de Waal

Re: advanced routing wondershaper
« Reply #9 on: May 29, 2003, 01:55:17 AM »
Hi,
the improvement was that during a transfer of a 30 Mb mail the ping times from my client to a server on the internet decreased from average 500 to 250.
And I got a response from a collegue who didn't know I was doing this , that the Internet surfing experience had improved today.
I also found out today why there were complaints in the first place:
I installed Netprobe according to the excellent howto of Cyrus Bharda at contribs.org and found out who was responsible for quenching the upload bandwidth. It was an employee who had installed WinMX and had his files open for the outside world to download. Great program.
So, thanks to Hans-Cees and Cyrus for their contributions to the Forum!
Kind greetings,
Thony

hanscees wrote:
>
> could you post the improvement please?
>
> greetings
>
> hc

hanscees

Re: advanced routing wondershaper
« Reply #10 on: May 29, 2003, 02:51:28 AM »
you are welcome.

What does netprobe do??

hc

hanscees

Re: advanced routing wondershaper
« Reply #11 on: May 29, 2003, 02:54:03 AM »
let me re-phrase that. How can you use this on e-smith so you can use netprobe. Does it generate pictures somewhere or can you use it on the comand line?

hc

Cyrus Bharda

Re: advanced routing wondershaper
« Reply #12 on: May 29, 2003, 03:19:14 AM »
Netprobe: http://www.objectplanet.com/Probe/

This network monitor and protocol analyzer gives you an instant picture of the traffic situation on your network and enables you to monitor network traffic in real time, hunt down, identify, and isolate traffic problems and congestions on your network.
All traffic is monitored in real time and presented to the user as a combination of tables and charts, giving detailed information about hosts and protocols, as well as an instant overview of the traffic situation on your network.

All the information can be searched, sorted, and filtered by protocols, hosts, conversations, and network interfaces. With the click of a button you can see individual usage of specific protocols, how much traffic each user generates, and which sites on the Internet they have visited.

Find the howto here:

http://mirror.contribs.org/smeserver/contribs/cbharda/howto/netprobe-howto.htm

Enjoy!

Cyrus Bharda