Solved

How to restrict download bandwidth by host

Posted on 2014-12-15
5
199 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

776 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