Solved

How to restrict download bandwidth by host

Posted on 2014-12-15
5
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 39

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 39

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

Are You Headed to Black Hat USA 2017?

Getting ready for Black Hat next week? Kick things off with the WatchGuard Badge Challenge and test your puzzle and cipher skills. Do you have what it takes to earn our limited edition Firebox Badge? Get started today - https://crimsonthorn.net

Question has a verified solution.

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

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
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…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

623 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