Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am writing a website and want to test it's speed on slower internet connections.

I have the unfortunate first world problem of downloading at 100mbps, how can I throttle my own computer's internet connection to 56kbps or 5mbps to give myself an idea of how my users might be downloading my website?

EDIT: I am using Windows primarily but also have an ubuntu laptop if the answer is linux oriented.

share|improve this question
1  
What system du you have. Windows, *nix, BSD, Coffeemachine? –  Christopher Perrin Jun 22 '12 at 16:48
2  
I need a Coffeemachine that can surf at 100mbps. –  ErnieTheGeek Jun 22 '12 at 16:58
add comment

3 Answers

up vote 2 down vote accepted

Can you not just get a router/switch that supports QoS and filter it that way? I know if you use the Tomato firmware on the WRT54G they have quite a few options that may work for you. http://www.wi-fiplanet.com/tutorials/article.php/3800416/How-to-Manage-Traffic-Using-Tomato-and-QoS.htm

Edit: Matter of fact, I had a friend of mine that upgraded his internet connection but didn't upgrade his router config and it appeared to him that he never got increased. So you should be able to do something similar.

share|improve this answer
    
Interesting. I do have a router that offers QoS but unfortunately my new router MUST be the one provided by my cable company. They can turn it on and off remotely, it's kind of creepy. I will dig around in those settings (they actually offer some, surprisingly) but they are very limited so hopefully they haven't cut out that functionality. I can see how they might, as they would assume most customers wouldn't know what to do with them. –  darkAsPitch Jun 24 '12 at 20:45
add comment

On Linux Systems with IP table you could try using the Kernel traffic shaping options.

Here as a good article: IPTABLES - Limit rate of a specific incoming IP

share|improve this answer
    
Cool, thanks for that link. I will check it out. –  darkAsPitch Jun 24 '12 at 20:46
add comment

Although you could try to do this via network simulation or downgrading your bandwidth, I recommend doing it on the client instead, using your webpage editor Dreamweaver, or some shell scripting.

To do that in Dreamweaver

Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh). Select Status Bar from the Category list on the left. Select a connection speed with which to calculate download time and click OK.

To do it via math, calculate total page sizes and embedded images, script, etc then compare across different speeds.

Understanding the user's perception of "fast" When thinking about speed of internet connections, remember that speed (latency) and bandwidth (breadth of the pipe) are two different things completely. You should consider both in building webpages, including browser render times.

share|improve this answer
    
The problem with doing it via a true browser is that I have a few MySQL queries happening server side that I am worried are maybe too much for certain pages. After the page loads I do a few ajax calls that query the database for more info to load, depending on the page. –  darkAsPitch Jun 24 '12 at 20:43
    
Above is more in the WYSIWG editor than true browser, unless tabbing... Database queries that are cached shouldn't be an issue dev.mysql.com/doc/refman/5.1/en/query-cache.html / I would be more concerned about slow AJAX though. The best tests are those that are most representative. –  Brennan Jun 24 '12 at 21:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.