Solved

How to restrict download bandwidth by host

Posted on 2014-12-15
5
198 Views
Last Modified: 2014-12-23
I have a Linux host that is used as a remote backup computer. The connection has a 25mbps download bandwidth. The problem is that the remote download is using up the whole bandwidth and no one else in the office can use the Internet. The remote Linux computer is doing rsync with -bwlimit=8000, but that appears to not always work. Also, if more than one backup is downloading from that same host, the bwlimit ends up being the aggregate.

Is there a way on the receiving end to limit bandwidth from remote hosts? I'll consider a hardware solution, but since we're about to put a Linux/iptables firewall in front of all LAN hosts, a Linux software solution would be preferable.

In any case, it would be nice to have this tunable so that bandwidth could be unlimited during weekends and non-business hours, but throttled to under 10mbps during the day.
0
Comment
Question by:jmarkfoley
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:harbor235
ID: 40502602
Have you tried kicking off the backups during the off hours?

What type of network equipment is deployed at both sites? Vendor, model?

harbor235 ;}
0
 
LVL 38

Assisted Solution

by:Aaron Tomosky
Aaron Tomosky earned 500 total points
ID: 40503493
trickle will do what you are asking for
http://www.tecmint.com/manage-and-limit-downloadupload-bandwidth-with-trickle-in-linux/

That said, the better way to do this is traffic shaping. Depending on your routing gear, this is basically done by applying a low priority to either rsync traffic, or any traffic to that host. Sometimes this can be done with a minimum guaranteed bandwidth and a maximum bandwidth. That way the rsync traffic can use the full pipe if it's not being used for anything else, but it will slow down when other traffic is going on.
0
 
LVL 1

Accepted Solution

by:
jmarkfoley earned 0 total points
ID: 40507793
harbor235: > Have you tried kicking off the backups during the off hours?

Unfortunately, the backups can actually run several days.

Aaron Tomosky: > trickle will do what you are asking for

Trickle looks interesting, but it works on the program, in my case rsync on the source computer. That doesn't really help because if more than one of these programs are running the bandwidth is aggregated. rsync does have a -bwlimit parameter, but if I set that to e.g. 8000, and 2 of these programs start running, the effective upload rate becomes 1600. However, that trickle link let me to a link for wondershaper http://www.hecticgeek.com/2012/02/simple-traffic-shaping-ubuntu-linux/ which uses `tc`. I am using tc now and it is working, sort of. Now I'm getting too much restriction. If anyone what's to look at that issue I've posted a new question: http://www.experts-exchange.com/Networking/Linux_Networking/Q_28583249.html
0
 
LVL 1

Author Closing Comment

by:jmarkfoley
ID: 40514558
Thanks for the link that led to the link that led to solution
0
 
LVL 38

Expert Comment

by:Aaron Tomosky
ID: 40515014
Do you have smart or managed switches? If so, try setting the qos on the port the backup server is on.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now