Solved

Need to Limit Upload Speed

Posted on 2008-10-08
5
580 Views
Last Modified: 2012-06-27
Hello,

I work for a new media company.  We are often uploading very large files to ftp and through http.  The problem of course is when we are uploading the internet connection as a whole crawls because of the lack of overhead for acks (I'm assuming).  

Is there a way to limit our outbound connect speed in order to leave some headroom.  I don't care if this is even done on each workstation.  Its rare that more than one person is uploading at a time and its generally just one person that is uploading to the printers/clients in particular.  I understand that even if I were to limit everyone and two people were uploading at once it would negate the savings.  So I'll work under the constraints of one person uploading at a time.

We have both OSX and Windows machines in the office, the main "offender" being the OSX machine.  Also, his FTP program does allow throttling, but if he has to dump something through HTTP he has no control.

Thanks for any advice!
0
Comment
Question by:blumbra
5 Comments
 
LVL 76

Expert Comment

by:arnold
Comment Utility
What router do you have?  You might be able to limit the bandwidth on the router.
0
 
LVL 2

Author Comment

by:blumbra
Comment Utility
We just have a Linksys WRT54G2.  I had an ipCop router running in here until last weekend.  Lost power and it smoked.  Had to get that locally to get us by.  I would actually prefer a simple WRT54G with the version I can use a 3rd party firmware.

The QoS stuff doesn't seem to work really well.  I tried that already.  I even tried it on the old router months ago without success.  
0
 
LVL 4

Expert Comment

by:Dave_Watkin
Comment Utility
What FTP program is the OSX using? For example, Cyberduck has the ability to cap bandwith in it's preferences.
0
 
LVL 10

Accepted Solution

by:
TCB1 earned 500 total points
Comment Utility
You need to use the unix command ipfw. It will do bandwidth limiting.
Here are some examples of its use:

sudo ipfw pipe 1 config bw 15KByte/s

creates a pipe that only allows up to 15KB/s to go through.

Then:    

sudo ipfw add 1 pipe 1 src-port 80

will attach that pipe to the outgoing traffic on port 80, effectively limiting the outgoing traffic of the web server.    

sudo ipfw delete 1

will remove the pipe from the port.
 
I'll also attach the man page for ipfw.
ipfw-man.txt
0
 
LVL 2

Author Closing Comment

by:blumbra
Comment Utility
Great solution for OS X. It solves my current problem.  I'm setting the throttling on Port 80 and we'll manage the FTP throttling right from within Cyberduck (FTP Client).  
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
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 video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

772 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now