模拟不良的互联网连接 [英] Simulating a bad internet connection

查看:119
本文介绍了模拟不良的互联网连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一种可以通过LAN访问互联网的嵌入式设备. 我现在处于测试阶段,我想测试一下在互联网连接不良时设备的性能. 当前,该设备通过集线器连接到路由器,我使用该集线器通过Wireshark监视数据包. 降低设备上网速度以模仿可能发生的情况的最佳方法是什么?

I'm developing an embedded device which has access to the internet through LAN. I'm in the testing phase now, and I would like to test how the device performs when the connection to the internet is poor. Currently, the device is connected to a router through a hub, which I use to monitor the packets with Wireshark. What's the best way to throttle down the internet speed of the device to mimic a scenario that may happen?

我可以通过PC进行操作吗?我需要访问路由器吗?如果是这样,是否有可能限制路由器接口中每个IP的速度?

Can I do it through a PC? Do I need access to the router? If so, is it possible to limit the speed of each IP in the router interface?

实际上,一位朋友建议我购买usb2lan以太网卡,并将PC lan连接桥接到嵌入式设备,然后使用软件QoS限制器.您认为这行得通吗?

Actually, a friend suggested that I will purchase a usb2lan ethernet card, and to bridge the PC lan connection to the embedded device, and then using a software QoS limiter. do you think it will work ?

推荐答案

您可以尝试使用" Fiddler "

您可以选择模拟不良网络(例如旧的调制解调器33k或56k)

You have options to simulate bad network (like old modems 33k or 56k)

您需要将设备插入PC并打开代理(每个请求都将通过Fiddler传输)

You need to plug in your device to your PC and turn on the proxy (every request will be transfered through Fiddler)

然后,您可以使用错误的网络测试代码,然后查看发生了什么事;)

Then you could test your code with a bad network then see what happening ;)

这篇关于模拟不良的互联网连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆