7 ms·
Not a command-line tool but the network link conditioner is also really great. Never seen such a tool on another OS You can simulate a really bad network. Late
by wkat4242 3y ago
Not a command-line tool but the network link conditioner is also really great. Never seen such a tool on another OS
You can simulate a really bad network. Latency, bandwidth, packet loss etc. Great for testing but also if people insist on cameras being on. Just screw up the connection so bad that everyone gets annoyed with your blocky image and robot voice and suggest you turn off video and then you make it 'magically' ok - lol
- elpakal 3y agoYou can do similar magic with Charles Proxy fyi
- obituary_latte 3y agoNever had heard of this before. Some other cool tools in the "additional tools for X-Code" package which I had also never heard of. https://developer.apple.com/download/all/ https://developer.apple.com/download/all/ Thanks for sharing.
- llimllib 3y agoI've used AU Lab to pipe my microphone input through my headphones, which is apparently how professionals like to record audio (a "monitor" so you can hear how you sound), but I couldn't get used to it
- desro 3y agoHow was the latency when you last tried it? Most outboard audio interfaces (even inexpensive ones like the Focusrite Scarletts with ≤ 2 inputs) have a "direct monitor" feature that is as close to zero-latency as you can reasonably get.
- llimllib 3y agoI don’t remember, or have context for how it feels when it’s instant, so I’m a bad tester. Maybe that’s why I didn’t like it, a tiny bit of latency seems like a killer in that scenario
- nine_k 3y agoToxiproxy is such a tool for everywhere else, and it did help me test and improve networking code for poor conditions: timeouts, retries, packet loss, etc.
- llarsson 3y agoYou can be an ultra nerd on Linux and go this with the networking QoS tools: https://tldp.org/HOWTO/Traffic-Control-HOWTO/components.html https://tldp.org/HOWTO/Traffic-Control-HOWTO/components.html
- pwenzel 3y agoNetwork Link Conditioner rules. I pair it with `mitmproxy` for debugging native apps.
- macshome 3y agoYou can also use `rvictl` to connect to a development iOS device’s network device for grab a tcp dump. Also Instruments has a really nice network capture tool now.
- Arubis 3y ago[Comcast](https://github.com/tylertreat/comcast https://github.com/tylertreat/comcast) also does this for macOS, BSD, and Linux. And it's _brilliantly_ named.
- wkat4242 3y agoThanks! I'm on BSD so this is great to hear!
- ipozgaj 3y agoYou can do that with standard Linux tooling available on every distribution, see https://man7.org/linux/man-pages/man8/tc.8.html https://man7.org/linux/man-pages/man8/tc.8.html. What you're specifically looking for is `qdisc netem`, it can inject packet loss, reordered packets, duplicate packets, delay and more.
- xenadu02 3y agoNote that NLC is a GUI interface to control dummynet and PF (packet filter). It sets up rules to inject packet relay and drop a certain percentage of packets based on the profile. You can use dnctl and pfctl on macOS to do similar things and more.