Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does anyone have recommendations if you want to simulate poor/unreliable/slow networks in order to ensure a client application handles these scenarios? Would a network emulator be the appropriate tool for this?


You can configure the Linux network stack to include packet loss and latency using tc.

Not sure about other os.

https://www.pico.net/kb/how-can-i-simulate-delayed-and-dropp...


Look at using pf on OpenBSD. Specifically, look at the probability and set delay options: https://man.openbsd.org/pf.conf

Couple this with inserting pf as a transparent firewall and you can make a good hop become all sorts of crappy. And you can do this on very low end hardware with just a pair of NICs.


FreeBSD with dummynet. Has always worked great for testing different network conditions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: