Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Bandwidth throttling
PostPosted: Sat Jul 31, 2010 6:06 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
What's the easiest way (in Linux) to throttle the bandwidth (both in and out) on a Linux box.

I have a test server running on a T1 line (remember when that was HUGE?).

From 9-6 Monday-Friday, I need to limit the total bandwidth on eth0 to 256kbps in / 256kbps out. After that it's share and share alike with their other 3 servers on that T1.

Normally I'd set it up on a separate interface on the Router and limit it there, but that's not a option in this setup.

Suggestions?

//sorry if non-Linode VPS questions are not allowed in this forum - if that's the case - delete away//


Top
   
 Post subject:
PostPosted: Sat Jul 31, 2010 11:58 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
I haven't done it myself, but I think you basically just need to implement QOS/traffic shaping on those interfaces according to the rules you desire.

Not sure if you can embed the time parameters or not, but worst case you could just schedule a task to adjust the parameters around the weekday schedule.

Note that shaping can only effectively be implemented during outbound packet processing, so for the inbound path you'd do it on the output interface to the test server.

Googling for linux traffic shaping should show up various references. Though a bit dated, I think the advanced routing & traffic control howto is still relevant as well (for example, http://lartc.org/howto/lartc.qdisc.html might be a place to start).

-- David


Top
   
 Post subject:
PostPosted: Mon Aug 02, 2010 10:45 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Well, you can treat your inbound pipe like it's a 256kbps connection, and TCP streams will slow themselves down to adapt, but there's nothing you can do to stop protocols without congestion control from consuming more than that.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group