如何模拟慢速网络连接
可能的重复:
模拟慢速网络连接的网络工具
我有一个投注服务器,它发送将投注数据发送至游戏终端 我想模拟慢速网络连接。我希望网络非常繁忙,负载很重,这样我就可以看到投注服务器的执行情况,以及当网络负载很重时它是否超时。
我可以使用任何工具来执行此操作吗?
感谢您的任何帮助。 问候,里亚兹
Possible Duplicate:
Network tools that simulate slow network connection
I have a Bet Server which sends bet data to a game terminal
I would like to simulate a slow network connection. i want the network to be really busy, heavily loaded so i can see how the bet server performs and if it times out when there is a heavy load on the network.
Are there any tools i can use to do this?
Thanks for any help.
Regards, Riaz
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您可以尝试几个插件。
Firefox Throttle 就是其中之一
编辑:假设您正在开发一个基于浏览器的东西。
There are a couple of plugins you can try.
Firefox Throttle is one of them
Edit: this assuming you're developing a browser-based thingy.
在网络高度拥塞期间会发生很多事情;丢包、重传、缓冲区/队列已满。最好的方法是为每种情况创建测试网络流量和流量负载。它们必须是可复制的。
为此,您应该使用 IXIA 的 http://www.ixiacom.com/ 流量生成器等流量生成器。该设备允许您创建网络上具有不同负载的测试用例,既针对您的应用程序又针对整体网络拥塞。您甚至可以模拟对您的应用程序的网络攻击。
There is a lot of things that happen during high network congestion; lost packets, retransmissions, filled buffers/queues. The best way is to create the test network traffic and traffic loads for each type of situation. They must be reproducible.
You should use a traffic generator like IXIA's http://www.ixiacom.com/ traffic generator for this. This device allows you to create test cases with different loads on the network, both pointing at your application and just overall network congestion. You can even simulate network attacks on your application.
尝试这篇上一篇文章。它有很多好的答案。如果您使用的是 Mac 或 Linux,也可以使用 ipfw。只需 google ipfw 或
man ipfw
即可了解语法。Try this previous post. It has a lot of good answers. If you're Mac or Linux, you can use ipfw as well. Just google ipfw or
man ipfw
for the syntax.尝试WANem,它是一个开源广域网模拟器。您可以下载映像(ISO、Knoppix live CD)或 VMWare 虚拟设备。
Try WANem which is an open source Wide Area Network emulator. You can download the image (ISO, Knoppix live CD) or VMWare virtual appliances.
马虎
SLOPPY