如何节流网络流量以进行环境模拟? [英] How to throttle network traffic for environment simulation?
问题描述
我正在尝试测试使用数据库连接的应用程序.我想做的是将带宽限制在1 MBit左右,以便在实际条件下对应用程序有更好的感觉.
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.
我已经使用Wireshark来查看与数据库的通信,并且我希望Wireshark具有这样的功能,但是似乎没有办法做类似的事情.
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.
有什么建议吗?
推荐答案
查看 WANem .您可以下载可引导的ISO,该ISO可在具有多个NIC的任何系统上引导,然后将其插入客户端和服务器之间.它使您可以控制带宽,延迟,抖动,丢失和其他一些参数.
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.
这篇关于如何节流网络流量以进行环境模拟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!