File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes General Computing and the fly likes Sharing network bandwidth - capping speed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Sharing network bandwidth - capping speed" Watch "Sharing network bandwidth - capping speed" New topic

Sharing network bandwidth - capping speed

Michael (Mikey) Green

Joined: Mar 11, 2008
Posts: 6
I am not sure where else to ask this, so here goes:

I have got a small office network (15 Computers) which is sharing a (supposedly) 20 Mbit Internet Connection. The ISP provides us with a single DHCP IP address, which is used by (the one and only) router, to share it amongst other computers on the network. The router has got NAT (Network Address Translation) and a DHCP server enabled, to provide each computer with an individual local IP address per computer. Oh, and all the connections are multiplexed via a switch. This is shown diagrammatically as follows

---------------- ------------- ---------------- ---->
ISP |-----> | Router |------> | 10/100 Switch | ---->
---------------- ------------- ---------------- ---->

----> Single Ethernet Cable

----> Multiple computers

A very crude dig. but it helps to illustrate the network setup I currently have. The problem is this, it's fine when around 5 ppl are using the network, but the moment it goes beyond that, the network capacity "fluctuates". What I mean by this is, that if somebody starts using the network to say e.g. download a file, everybody else feels the strain and everyone's network speed falls. That is not really surprising given that we are sharing a network and I am assuming we just tend to reach the limiting point in network. My question is this, how can I modify the network so that I can gaurantee everybody atleast a min. amount of bandwidth - or cap everybody's speed to 1 Mbit so that in that way at least the network will be more homogenous to access?

Any suggestions appreciated, I have been hacking on this problem for ages but I can't seem to find any solution, or even a way to go about doing this. The router's own management console is "primitive" and doesn't allow much conifguration. For reference, in case it helps anybody, it's a

"Netgear DGFV338 ProSafe Wireless ADSL Modem"

Thanks very much.


What goes around, comes around - someone
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

You could try putting a proxy between your switch and your router. Squid is a popular open-source router that can manage bandwidth use.

[How To Ask Questions On JavaRanch]
Michael (Mikey) Green

Joined: Mar 11, 2008
Posts: 6
Thanks very much Joe!

I believe that Squid works at Application level (and hence requires a POSIX OS) unless I am wrong, in which case I might have to do some digging w.r.t Linux based routers....

In any case, least I have some lead on figuring out a solution - will report back on what I find.
I agree. Here's the link:
subject: Sharing network bandwidth - capping speed
It's not a secret anymore!