Most active commenters

    ←back to thread

    2039 points Gadiguibou | 14 comments | | HN request time: 1.055s | source | bottom
    1. wkat4242 ◴[] No.36492685[source]
    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

    replies(8): >>36492828 #>>36492924 #>>36493099 #>>36493644 #>>36493800 #>>36494202 #>>36509042 #>>36516500 #
    2. elpakal ◴[] No.36492828[source]
    You can do similar magic with Charles Proxy fyi
    3. obituary_latte ◴[] No.36492924[source]
    Never 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/

    Thanks for sharing.

    replies(1): >>36496034 #
    4. nine_k ◴[] No.36493099[source]
    Toxiproxy 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.
    5. llarsson ◴[] No.36493644[source]
    You can be an ultra nerd on Linux and go this with the networking QoS tools: https://tldp.org/HOWTO/Traffic-Control-HOWTO/components.html
    6. pwenzel ◴[] No.36493800[source]
    Network Link Conditioner rules. I pair it with `mitmproxy` for debugging native apps.
    replies(1): >>36498436 #
    7. Arubis ◴[] No.36494202[source]
    [Comcast](https://github.com/tylertreat/comcast) also does this for macOS, BSD, and Linux. And it's _brilliantly_ named.
    replies(1): >>36495727 #
    8. wkat4242 ◴[] No.36495727[source]
    Thanks! I'm on BSD so this is great to hear!
    9. llimllib ◴[] No.36496034[source]
    I'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
    replies(1): >>36512271 #
    10. macshome ◴[] No.36498436[source]
    You 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.

    11. ipozgaj ◴[] No.36509042[source]
    You can do that with standard Linux tooling available on every distribution, see 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.
    12. desro ◴[] No.36512271{3}[source]
    How 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.
    replies(1): >>36514979 #
    13. llimllib ◴[] No.36514979{4}[source]
    I 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

    14. xenadu02 ◴[] No.36516500[source]
    Note 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.