模拟本地网络的低速连接
有时我想手动测试我的 Web 应用程序(调用 Web 服务或网站或 RIA 的桌面应用程序)以查看它们在低速互联网连接(例如 56 kbps)下的行为方式。是否可以通过网络模拟比真实速度更低的速度来实现?如果是,是否也可以模拟低质量连接(例如数据包丢失、连接丢失等)?
Sometimes I want to manually test my web applications (either desktop applications calling web services or websites or RIA) to see how they behave with low speed internet connection (56 kbps for example). Is it possible to do it through network by simulating lower speed that the real one? If yes, is it also possible to simulate low quality connection (something as packet loss, connection drop, e.t.c.)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
找到了我自己关于速度的问题的答案:如何模拟使用 System.Threading 的下载速度
丢包和丢包怎么样?连接丢失模拟?
Found the answer to my own question about speed: How can I simulate download speed with System.Threading
What about packet loss & connection drop simulation?
我用这个工具http://bandwidthcontroller.com/purchaseStandard.html
他们有免费试用版版和便宜的完整版。
只需确保在测试后将其卸载即可。因为即使在停用时它也会阻塞您的网络。
所以它是一个非常蹩脚的工具,除非你想要一个慢速的网络。
I did that with this tool http://bandwidthcontroller.com/purchaseStandard.html
They have a free trial version and a cheap full version.
Just make sure to deinstall it after your tests. Because it chokes your network even when deactivated.
So it is a really crappy tool, except for when you want a slow network.
Fiddler 是一种 HTTP 调试工具,可以选择限制 HTTP 请求以模拟 56k 速度。只需稍加修改即可调整速度。
Fiddler, an HTTP debugging tool, has the option to throttle HTTP requests to emulate 56k speeds. The speed can be adjusted with a little tinkering.
尝试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.
如果您有可用的电话线,请考虑使用真正的调制解调器而不是模拟它。您可以仅通过调制解调器路由要测试的地址,并使用常规连接处理所有其他流量
If you have a phone line available, consider using a real modem instead of simulating it. You can just route the address you want to test through the modem and use your regular connection for all the other traffic