11

I'm trying to test an application that uses a database connection. What I would like to do is throttling the bandwith to, say, 1 MBit or such to get a better feeling for the application under realistic conditions.

I already use Wireshark to have a look at the communication with the DB and I expected Wireshark to have a feature like that but as it seems there is no way to do something like that.

Any suggestions?

  • Wireshark is primarily for monitoring, filtering, and recording network communications that are taking place, not preventing what can or cannot be sent out. – John Feminella Feb 16 '10 at 15:16
  • 1
    I don't think Wireshark has that...You could change your nic card's settings to only run at 10mbs... – JoshBerke Feb 16 '10 at 15:21
  • @Josh: that sounds like what I'm looking for. But how do I do that? –  Feb 16 '10 at 15:29

5 Answers5

2

Check out WANem. You can download a bootable ISO that you boot up on any system with multiple NICs which you then insert between your client and server. It lets you control bandwidth, latency, jitter, loss, and a few other parameters.

eater
  • 2,697
  • 1
  • 21
  • 24
0

Take a look at Trickle. Also, if you are using a router, commercial-grade router firmware generally has some QoS traffic-shaping services.

John Feminella
  • 303,634
  • 46
  • 339
  • 357
  • Right now, I'm testing on a windows machine and all tools and libs I find are only available an Linux. I also have to test on OS-level, so there is no real hardware involved that I could tweak. Probably there's some kind of extension for the WinPcap driver? –  Feb 16 '10 at 15:25
0

If you can test it out at the endpoint you could try using a browser throttler. One example is Firefox Throttle.

Pace
  • 41,875
  • 13
  • 113
  • 156
  • Unfortunately, the program I'm testing does not have any kind of web frontend. It's just a Java Swing Application connected to a database. (For all kinds of web applications I've already used Firefox Throttle - nice tool, btw) –  Feb 16 '10 at 15:27
0

A program called BWMeter can do this.

Joe
  • 1
0

Check your own router, see if there is a Bandwith control or Quality Of Service (QoS) section. That way you can limit all your outgoing/incoming traffic to whatever you want.

TP-LINK has this for example: enter image description here

CularBytes
  • 9,924
  • 8
  • 76
  • 101