How to throttle network traffic for environment simulation?

☆樱花仙子☆ 提交于 2019-12-18 20:14:40

问题


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?


回答1:


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.




回答2:


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




回答3:


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




回答4:


A program called BWMeter can do this.




回答5:


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:



来源:https://stackoverflow.com/questions/2273839/how-to-throttle-network-traffic-for-environment-simulation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!