开发者

Windows version of "Netem" (to simulate slow network connection)? [closed]

开发者 https://www.devze.com 2023-04-11 11:17 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 6 years ago.

Improve 开发者_高级运维this question

I am testing a windows based network application, and I need to see how the server will perform when there is packet loss, congestion, or just a very slow, unreliable connection.

It's a real pity it's windows based. I'm looking for something similar to the linux tool "Netem", which does exactly what I need.

Preferably, I need this tool to work on the loopback.


My proposal is to setup a Linux machine with a Windows VM for testing the application. Doing it in this way it should be possible to change the quality of the appropriate interface which is connected to the vm. For sure it is virtualized and not native but maybe it is sufficient for you.


If you want to simulate slow network connections on windows, ipfw+dummynet has a Windows port that works fantastically. It lets you set up 'pipes' which match certain network traffic, and those pipes can pass traffic that is then delayed, dropped, or bandwidth limited Examples from the website:

Limit the total incoming TCP traffic to 2Mbit/s, and UDP to 300Kbit/s

ipfw add pipe 2 in proto tcp
ipfw add pipe 3 in proto udp
ipfw pipe 2 config bw 2Mbit/s
ipfw pipe 3 config bw 300Kbit/s 

Limit incoming traffic to 300Kbit/s for each host on network 10.1.2.0/24

ipfw add pipe 4 src-ip 10.1.2.0/24 in
ipfw pipe 4 config bw 300Kbit/s queue 20 mask dst-ip 0x000000ff 

Simulate an ADSL link to the moon:

ipfw add pipe 3 out
ipfw add pipe 4 in
ipfw pipe 3 config bw 128Kbit/s queue 10 delay 1000ms
ipfw pipe 4 config bw 640Kbit/s queue 30 delay 1000ms 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号