Incoming traffic?
Hi there,
a program is downloading large files on a regular basis and has no switch to limit bandwidth.
Is there a way to shape this incoming traffic? Any pointers?
My outgoing traffic shaping works perfectly, but this incoming thing gives me a headache..
many thanks in advance!
Dominik
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines · Dominik Werder
a program is downloading large files on a regular basis and has no switch to limit bandwidth.
Is there a way to shape this incoming traffic? Any pointers?
On a router, you could just setup shaping on the LAN interface. On a standalone machine, you'd either have to use ingress qdisc, or if you want to use more familiar schedulers like HTB for incoming traffic, maybe IMQ can help you.
Shaping incoming traffic usually works by dropping packets that were already sent to you and hoping that the other side will back off and send packets slower. This causes overhead (as packets have to be re-sent) which is why some people don't like this method.
Personally, I've been using this approach for ages on my router (shaping incoming traffic as outgoing traffic on LAN interface) and found that it's better than having a single person / download choke the line completely...
Better methods are said to exist (like tcp window resizing or whatever) but I've never seen them implemented in Linux so far.
HTH
Andreas Klauer
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Dominik, if you are running a router, the way to do it is to shape outgoing traffic on your LAN interface. A copy of my script to do this is at
http://www.stardotstar.org/?page_id=63
Edward
Date: Tue, 04 Oct 2005 11:33:15 +0200
Quoted 11 lines
From: "Dominik Werder" <[email protected]>
Subject: [LARTC] Incoming traffic?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8Hi there,
a program is downloading large files on a regular basis and has no switch to limit bandwidth.
Quoted 10 lines
Is there a way to shape this incoming traffic? Any pointers?
My outgoing traffic shaping works perfectly, but this incoming thing gives me a headache..
many thanks in advance!
Dominik
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 6 lines · Dominik Werder
Hi there,
a program is downloading large files on a regular basis and has no switch to limit bandwidth.
Is there a way to shape this incoming traffic? Any pointers?
Use trickle.
Regards,
Carl-Daniel
Signature · 5 lines
http://www.hailfinger.org/ _______________________________________________ LARTC mailing list [email protected] http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc