We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
我使用了一个名为 netem 的工具,它在 Linux 上运行。 它允许您以给定的百分比增加数据包丢失,在数据包内引入延迟并处理数据包重新排序。 基本上它是为了模拟不同的网络而设计的。
启动并运行它所需要的只是一台安装 Linux 并带有几块以太网卡的备用机器。 将其作为桥梁连接起来,并在它们之间运行 netem。 做起来应该很简单。 我在没有 Linux 经验的大学项目中使用了它,但我可能仍然在某处找到了所有设置说明。
I used a tool called netem that runs on linux. It allows you to increase packet loss at a given percentage, introduce delays within packets and handle packet re-ordering. Basically it's designed to emulate different networks.
All you need to get it up and running is a spare machine to install Linux on with a couple of Ethernet cards. Hook it up as a bridge, and run netem between them. Should be quite simple to do. I used it for my University project having no Linux experience, but I've probably still got all the setup instructions somewhere.
Ian 的解决方案似乎是一个非常好的长期解决方案,但听起来有点涉及一些快速测试。 (找到另一台机器,连接它,可能设置路由器等)
我最终只是使用 Net Limiter 并随机将限制手动设置为低得愚蠢的东西(例如 1 字节/秒),这似乎足以满足我们的需求。
Ian's solution seems like a pretty good long term solution, but sounded a little involved for just some quick testing. (finding another machine, hooking it up, possibly setting up router stuff etc)
I ended up just using Net Limiter and randomly set the limit to something stupidly low manually (like 1 byte/sec) and that seems to be sufficient for our needs.
http://snad.ncsl.nist.gov/nistnet/
有点复杂设置,但效果很好。
http://snad.ncsl.nist.gov/nistnet/
It's a little complicated to setup, but works very well.