LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2007, 10:27 PM   #1
Ryno
LQ Newbie
 
Registered: Jun 2005
Location: Australia
Distribution: Redhat 7.3
Posts: 2

Rep: Reputation: 0
Automated bandwidth throttling


Hello,

To all the wise linux users out there guess what I have a problem. I have been spending hours googling and searching through many different forums trying to find a solution to my problem, which is this.

What I'd like to do is setup a computer between my dsl modem and wireless router that will automatically detect an IP address and change my upload/download ratio.

DSL modem -> Linux box -> Wireless router -> rest of network

Current DSL 1.5mbs download / 512kbs upload

Linux box suddenly detects IP 192.168.x.x wants access to the DSL modem so it throttles? the speed to give 192.168.x.x 512kbs / 256kbps and the rest of the network 512kbps / 256kbs. Then when 192.168.x.x no longer needs access to the modem it gives the network back the full 1.5mbs / 512kbs.

Is this actually possible? am I searching for the right thing by typing in bandwidth throttling or is it what I want to do called something else? I'll be using an old P1 with a tiny hard disk and a enough ram to boot it up, in everyones opinion which is the best distro to use if this is possible? and most importantly does this actually make sense to anyone?

Thanks to all who reply.
 
Old 09-30-2007, 11:25 PM   #2
jakykong
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Debian Gnu/Linux Lenny on AMD64x2 (32-bit mode), an AMD Sempron 64 laptop, debian, 32bit
Posts: 101

Rep: Reputation: 15
Typically, throttling means to take two connections and distribute the load between them so that the faster connection always gets the most load, or to limit bandwidth for specific clients. I think you're idea falls roughly into the second category. Since I can't think of a better name for it, calling it "throttling" is good enough for me .

I know throttling can be done in linux. I, personally, haven't done it. But I don't know if you really need to do any throttling given the situation you described.

On an Ethernet network, every computer gets whatever bandwidth it can grab. So, if you have one system that needs 512/256kbps, and another system that needs 1024/256kbps, both will probably get their bandwidth. If you then have a third system that needs 120/230kbps, then suddenly everyone's bandwidth goes down to accomedate the load. Throttling would come in when you need to tell the second system to only use 512kbps instead of 1024 -- since it would be hogging the connection.

If I am understanding what you're saying correctly, what you're trying to do is distribute bandwidth by request -- so, one system requests bandwidth for X amount of time and gets that full amount of bandwidth (leaving a static pool of bandwidth for unrequested access as described above). That being the case, I don't know of anything built into the IP protocol that would specifically do this. It's not a native feature, so while there isn't any technical reason it couldn't be done, anything you do would probably have to be written yourself.

You may also want to consider that if you have a linux box between the network and the DSL router, nobody is actually getting access to the DSL router. Everyone is instead accessing the linux box which is routing information to/from the DSL router. So, really, nobody has a need to have access to the DSL router, they all just want a route for information to go across the internet. This being the case, what you probably really want is a router. Your wireless router has that built in, so you really don't need the linux box there in order to share the internet connection.

Give it some thought. Nothing solid here, just food for thought. Let me know if any of this sounds like what you're trying to do and we can go from there .
 
Old 10-01-2007, 01:19 AM   #3
Ryno
LQ Newbie
 
Registered: Jun 2005
Location: Australia
Distribution: Redhat 7.3
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for that.


'If I am understanding what you're saying correctly, what you're trying to do is distribute bandwidth by request -- so, one system requests bandwidth for X amount of time and gets that full amount of bandwidth (leaving a static pool of bandwidth for unrequested access as described above). That being the case, I don't know of anything built into the IP protocol that would specifically do this. It's not a native feature, so while there isn't any technical reason it couldn't be done, anything you do would probably have to be written yourself.'


Basically answers my question. I'm quite happy to have the wireless router routing the available bandwidth to the network, I just need that bandwidth to be adjustable 'on call' without human intervention. I shall go back to data mining for throttling but this idea of yours that something will need to be written specifically for this function means its pretty much dead in the water unless someone with the right knowledge and time on their hands looking for a challange comes across this thread

Thanks again
 
Old 10-01-2007, 03:34 PM   #4
jakykong
Member
 
Registered: Apr 2006
Location: Washington
Distribution: Debian Gnu/Linux Lenny on AMD64x2 (32-bit mode), an AMD Sempron 64 laptop, debian, 32bit
Posts: 101

Rep: Reputation: 15
No problem. Sorry I couldn't help you much more than that. Good luck!

Oh, and if you find something, post back so that someone else can find an answer .
 
  


Reply



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
bandwidth throttling bhogalts Linux - Networking 1 05-10-2006 02:57 AM
Bandwidth throttling joeljkp Linux - Networking 4 07-28-2005 12:59 PM
bandwidth throttling greenmeanie Debian 1 07-10-2005 09:06 PM
Bandwidth Throttling... dolvmin Linux - Networking 3 09-21-2004 08:56 AM
Bandwidth Throttling bg_27 *BSD 3 07-22-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration