LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-03-2008, 11:29 AM   #1
yitzle
Member
 
Registered: Aug 2006
Posts: 50

Rep: Reputation: 15
How to cap bandwidth/speed?


Is there some way to set a max bandwidth and/or traffic speed on a Linux (Debain) system?

Thanks.
 
Old 01-03-2008, 11:37 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
If it's web traffic you're interested in limiting you can use squid.
 
Old 01-03-2008, 07:12 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,088

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Have a look at www.lartc.org.

Search for 'traffic shaping'. You most likely want a HTB type queing. Once you read the chapters about traffic shaping, google for examples. It is not difficult, although it might look complicated at first sight, hence the advice to search for examples.

jlinkels
 
Old 01-04-2008, 10:57 AM   #4
yitzle
Member
 
Registered: Aug 2006
Posts: 50

Original Poster
Rep: Reputation: 15
Thanks for the replies. I'll look into both.
Just to clarify, I'm looking to limit all traffic through the ethernet card/dev in either direction to a set limit. Nothing more.

PS www.lartc.org doesn't seem to work. But Google tells me to try http://lartc.org
 
Old 01-04-2008, 11:56 AM   #5
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,088

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I think you are correct and it is lartc.org.

Traffic shaping in BOTH directions is difficult, as a matter of fact you can only shape what you send out, because only that is what is controlled by you. That is called egress traffic.

There is a limited functionality the shape incoming traffic (ingress). That is more difficult because you cannot control wht someone else already sent to you.

If you want to receive traffic, and then shape that traffic into your local network, that is possible using an Intermediate Que Device. (IMQ). The IMQ used to require a kernel patch (pre- 2.6.n), I am not sure what the current status is.

jlinkels
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WGET speed cap? Skillz Linux - Networking 7 12-04-2007 07:29 AM
Download speed / bandwidth prioritized by application gruessle Linux - Software 2 07-15-2007 11:06 AM
rsync Bandwidth Cap? cdrom600 Linux - Software 3 02-26-2007 06:59 PM
Bandwidth speed tests lumba General 5 12-06-2005 03:37 PM
Please put the average connection speed/bandwidth of mirrors on LQ vharishankar LQ Suggestions & Feedback 6 01-16-2005 08:16 PM


All times are GMT -5. The time now is 03:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration