是否有任何程序可以模擬不穩定的網絡連接? (Are there any programs that can simulate an unstable network connection?)


問題描述

是否有任何程序可以模擬不穩定的網絡連接? (Are there any programs that can simulate an unstable network connection?)

We need to simulate an unstable network connection to try to debug some connectivity issues in our server/client application and I was wondering if there are any programs out there that can simulate those conditions such as on a faint wireless network.

I'm not just referring to reducing bandwidth, but also reducing reliability, frequent on and off, short bursts of disconnectedness, etc.


參考解法

方法 1:

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.

方法 2:

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.

方法 3:

http://snad.ncsl.nist.gov/nistnet/

It's a little complicated to setup, but works very well.

(by Davy8IanDavy8Sam)

參考文件

  1. Are there any programs that can simulate an unstable network connection? (CC BY-SA 3.0/4.0)

#network-traffic #Simulation #unreliable-connection






相關問題

網絡流量操縱(虛擬局域網) (Network traffic manipulation (Virtual LAN))

如何在linux中了解特定端口的流量 (How to know traffic to a specific port in linux)

僅嗅探/記錄應用層 (Sniffing/recording application layer only)

Android:監控應用程序的數據流量使用情況 (Android: Monitor an app's data traffic usage)

如何按時間從android獲取trafficStats信息? (How to get trafficStats information from android by time?)

在 FreeBSD 中使用 SSH 隧道進行所有流量轉發 (All traffic forwarding using SSH tunnel in FreeBSD)

Wireshark - 僅查看多播和廣播流量 (Wireshark - see only multicast and broadcast traffic)

java套接字中的奇怪流量 (Strange traffic in java sockets)

是否有任何程序可以模擬不穩定的網絡連接? (Are there any programs that can simulate an unstable network connection?)

獲取 XHR 響應(網絡流量)並在 Katalon Studio 中解析 (Get XHR response (network traffic) and parse it in Katalon Studio)

Visual Studio 2019 中的網絡流量工具在哪裡 (Where's the Network Traffic Tool in Visual Studio 2019)

為什麼我不能用 chrome 調試 Service Worker? (Why I can't debug Service Workers with chrome?)







留言討論