本文介绍了模拟高延迟/间歇性网络连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 The Grinder (在Windows PC上)进行负载测试,我希望模拟不完美的网络条件,以查看对应用程序负载有什么影响,特别是我想查看以下影响:

I'm load testing a network application using The Grinder (on a Windows PC) and I wish to simulate imperfect network conditions in order to see what effect is has on the application load, in particular I'd like to see the effect of:

  • 可变的网络延迟时间,因此,不同的客户端不仅具有不同的延迟时间,而且在测试单个客户端期间的延迟可能会有所不同.
  • 断开的网络连接-我想模拟突然/随机断开网络连接时发生的情况.
  • Variable network latency, so not only do different clients have different latency, but also latency may vary during the test for a single client.
  • Dropped network connections - I wish to simulate what happens when a network connection is abruptly / randomly dropped.

最简单的方法是什么?

推荐答案

  1. 将Linux机器设置为该计算机的默认路由器.
  2. 在Linux机器上安装'netem': http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
  1. Setup a Linux box as the default router for this machine.
  2. Install 'netem' on the linux box:http://www.linuxfoundation.org/collaborate/workgroups/networking/netem

这篇关于模拟高延迟/间歇性网络连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 14:09