Live data from Hacker News

The networkQuality tool on macOS

cyberhost.uk

31–40 of 92 posts

Re: The networkQuality tool on macOS

#31
post #19

Very cool finding! Made me want to explore what other tools my mac has pre-installed in /usr/bin

Personally I found it interesting that: * TFTP server [1] * PF Firewall [2] * pbcopy & pbpaste [3] are built-in in MacOS. Here[4] is list of MacOS command line man pages, some interesting tools can be found there. [1] https://rick.cogley.info/post/run-a-tftp-server-on-mac-osx/ [2] https://iyanmv.medium.com/setting-up-correctly-packet-filter... [3] https://osxdaily.com/2007/03/05/manipulating-the-clipboard-f... [4] ht…

If you like those, see also, off the top of my head and in no particular order: system_profiler, ioreg[1], networksetup, afconvert, sips, osascript, lsregister[2], apfs.util[3], and, from Xcode, GetFileInfo and SetFile.

All have man pages except lsregister; lsregister with no arguments shows help (for context, lsregister is useful when file icons / associations get messed up).

[1] A GUI version is also available as IORegistryExplorer.app in the Xcode "Additional Tools" packages available from

https://developer.apple.com/download/all/

(registration required)

[2] /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister

[3] /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util

Re: The networkQuality tool on macOS

#34
post #20

Earlier quoted context omitted.

Pbcopy/pbpaste are huge productivity boosters for me

I have a shell alias so I can just type pb to do pbpaste|pbcopy - easiest way I’ve found to strip formatting and get plain text.

It's a little awkward, but Cmd-Opt-Shift-V is "Paste and Match Style" aka "paste as plain text".

Re: The networkQuality tool on macOS

#36
post #15

Nice that it gives "responsiveness under working conditions" and defines latency as "idle latency". So this tool makes faults like buffer bloat clear to the user rather than just giving the max bandwidth like most tools.

Speedtest shows loaded latency information now too. Agreed, sometimes latency is more important than max bandwidth

Re: The networkQuality tool on macOS

#37

All kinds of undocumented findings will occur in a closed source software. And this one is not even the most shocking.

It is not undocumented it has a man page and exists in /usr/bin.

Finally I believe here is the source code.

https://github.com/network-quality

Re: The networkQuality tool on macOS

#38
That's neat!

Interestingly, while the downlink speed indicated seems accurate, it consistently (through VPNs, private relay, or directly) shows my uplink as 1/6th of what I can practically achieve.

Makes sense, given that they are using their CDN for this – a typical CDN would likely not be optimized for high eyeball ISP -> CDN throughput.

Re: The networkQuality tool on macOS

#39

This is a little weird for me: Using Cloudflare's 1.1.1.1: ~> curl -s --doh-url https://cloudflare-dns.com/dns-query https://mensura.cdn-apple.com/api/v1/gm/config | jq -r .test_endpoint sgsin3-edge-bx-008.aaplimg.com PING sgsin3-edge-bx-008.b.aaplimg.com (17.253.61.15) 56(84) bytes of data. 64 bytes from sgsin3-edge-bx-008.b.aaplimg.com (17.253.61.15): icmp_seq=1 ttl=52 time=74.2 ms If I use 8.8.8.8: ~> curl -s --do…

Where are you actually located?

1.1.1.1 does not support the EDNS client subnet header [1], which means that practically, the CDN's DNS server will see your request as originating from your nearest 1.1.1.1 resolver.

8.8.8.8 does, so if the CDN evaluates it, you might get a better match (or a worse one!)

[1] https://developers.cloudflare.com/1.1.1.1/faq/#does-1.1.1.1-...

Post reply on HN