The networkQuality tool on macOS
cyberhost.uk
cyberhost.uk
we probably could have stuck with sneakernet if it wasn‘t more important most of the time
From Wikipedia:
> Observational data were recorded on 2-terabyte SATA hard disk drives fed from the Arecibo Telescope in Puerto Rico, each holding about 2.5 days of observations, which were then sent to Berkeley. Arecibo does not have a broadband Internet connection, so data must go by postal mail to Berkeley.
https://setiathome.ssl.berkeley.edu/~korpela/papers/CISE.pdf
> This 2.5-MHz band is recorded continuously onto 35 Gbyte DLT tapes using 2-bit complex samples. Each tape holds about 15.5 hours of data. The entire sky survey is expected to require 1,100 tapes, for a total of 39 Tbytes of data.
> The recorded tapes are shipped to Berkeley, where we subdivide them into small work units on four splitter workstations. ...
---
https://icecube.wisc.edu/about-us/facts/
> One terabyte of unfiltered data is collected daily and about 100 gigabytes are sent over satellite for analysis.
It's better now (the South Pole does have a broadband link)... but Ice Cube is only sending 10% of its data.
They have signal where other devices don't, and, most importantly, Bluetooth does not interfere with 2.4GHz WiFi in a crowded apartment building in a crowded street.
This makes a world of a difference. With my previous laptop, I simply couldn't use wireless internet simultaneously with Bluetooth unlesss being in the same room next to my router.
With apple client hardware and the same router (it also supports 5GHz, but I'm not sure if that's the underlying cause as it still works great on 2.4GHz with the MacBook), WiFi and BT work flawlessly across my whole apartment.
* Having both ASUS Vivobook and Apple M1 on my desk - Vivobook does it better in a particular environment of my house.
I was partly influenced by memories of scavenging WiFi cards from early Intel MBPs with failed NVIDIA GPUs and buying adapters (with 3 antennas) to add WiFi to desktops in an era where that was not close to standard.
For me its mainly WiFi+BT Audio that I care about.
A surprisingly high number of my previous Lenovo devices had the problem that using both simultaneously would lead one of the two connections to drop. On Windows and Linux. The extent of the problem varied, the worst offender was a cheap Windows convertible, but my 2019 Ryzen 7 ThinkPad also exhibits this problem sometimes.
We run Microsoft and Apple workstations at work, but for Wi-Fi planning reasons, we keep some cheap laptops around as well. If we only test with our good machines, some issues will be invisible to us. And since I am in higher ed, many students cannot afford the high end computers, but they still need the service to work, so we have to test with cheap computers with terrible Wi-Fi chips, which reveals issues that are invisible to the latest Macs/Surface Pro machines.
The one I was using shipped a very bad Wifi chip branded as Realtek. Complaints about it are all over the web (E595, Ryzen 7 with 16GB RAM in my case)
This is an extreme case, but I had similar problems with other devices, albeit not as extreme.
Using Wifi lead to a full connection drop for BT or vice-versa. To be fair, the offending device was a dirt cheap Windows 10 "convertible"/tablet from 2016.
Other devices (e.g. cheap Android smartphones) just suffered from bad signal reach / quality / channel negotiation.
Never had a smartphone with as many problems as those cheap Lenovo laptops though.
I'd expect ThinkPads and other Wintel Laptops with better chipsets to be on par with apple, so yes, it's not a fair comparison.
It's just not a problem that everyone has on their bullet list of criteria to choose a computer. Similar to TDP, battery replacability, trackpad quality, laptop speakers, etc
[1]: https://www.macobserver.com/tips/macos-monterey-includes-net...
It's not a lazy, borderline-insulting clickbait headline at all.
It's more of an art than a science, really, and your ISP may be optimizing for more average use cases.
Personally, I like to start with a regular web-based speed test (I'm biased towards https://speed.cloudflare.com, but any test that shows latency under load is OK, like https://www.waveform.com/tools/bufferbloat or https://fast.com [1]) and then combine it with "networkQuality" running concurrently (if possible, from a different host) and see how it impacts the numbers.
Of course, this only makes sense if you have your own router running (for example) OpenWRT where you can enable active queue management (SQM/AQM) and actually do something to improve the results [2].
[1] In more recent times I'm finding fast.com to be a bit unreliable, as some ISPs may treat Netflix traffic specially (like allowing for longer bursts over contracted speeds, etc. — net neutrality notwithstanding).
[2] I highly recommend this last option if you can. In my case, it allows me to be able to run "networkQuality" during a video call (over WiFi even) without any visible degradation. See: https://openwrt.org/docs/guide-user/network/traffic-shaping/...
You actually rarely if ever can make use of this, because you need flow offloading past ~175Mbps, which completely bypasses SQM.
With SQM (CAKE) enabled, my WRT1900acs router (1.6GHz dual-core) can handle my 500/100 Mbps FTTH connection just fine, with plenty of CPU to spare. From my calculations it probably doesn't quite have enough CPU to sustain 1 Gbps, should I ever upgrade to that. But the router itself is a few years old now, so that's not really surprising.
That's approximately correct if your router is using an 880MHz MIPS CPU core, but the industry has actually mostly moved on from those.
Or, you could also look at the NanoPi R4S or upper model with multiple eth and 1 Gbit capable SQM.
==== SUMMARY ==== Upload capacity: 5.983 Mbps Download capacity: 116.813 Mbps Upload flows: 20 Download flows: 16 Responsiveness: Medium (274 RPM) Base RTT: 42 Start: 5/14/23, 12:15:20 PM End: 5/14/23, 12:15:36 PM OS Version: Version 12.6.5 (Build 21G531)
and it doesn't support the Private Relay option.
* 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...
http://www.nextcomputers.org/NeXTfiles/Docs/NeXTStep/3.3/nd/...
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
Most of them live in /usr/sbin
I keep a list for my students. Here are some:
diskutil
mdfind
mdutil
plutil
networksetup
softwareupdate
screencapture
pmset
hdiutil
pkgutil
caffeinate
osascript
defaults
launchctl
For example, mdfind lets you use Spotlight search on the command line. diskutil powers "Disk Utility.app". pkgutil lets you install .pkg files and also get information about programs installed that way. screencapture lets you take screenshots from the command line (you can specify which windows, etc.)Anyhow, there's a bunch.
There are also random useful executables not in $PATH. This program powers your WiFi menu:
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
Try "airport -I"A silly one-liners to print out your overall WiFi strength:
airport -I | grep -E 'agrCtlRSSI|agrCtlNoise' | awk '{print $2}' | sed -e 'N;s/\n/ - /' | bc
Put that in a script called "wifi-strength" and walk around your house with a laptop while running the following: watch -n1 "wifi-strength | say"echo '-30' | say
echo '\-30' | say
Yeah, I knew some of them did and then at some point I just started tossing more programs in the list as I ran across them.
Also of note: looks like Apple has proposed a new IETF RFC for responsiveness and the "Round-trips Per Minute" (RPM) metric: https://github.com/network-quality/draft-ietf-ippm-responsiv...
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.
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 --doh-url https://dns.google/dns-query https://mensura.cdn-apple.com/api/v1/gm/config | jq -r .test_endpoint
hkhkg1-edge-bx-007.aaplimg.com
~> ping hkhkg1-edge-bx-007.aaplimg.com
PING hkhkg1-edge-bx-007.aaplimg.com (17.253.85.13) 56(84) bytes of data.
64 bytes from hkhkg1-edge-bx-007.aaplimg.com (17.253.85.13): icmp_seq=1 ttl=54 time=107 ms
Seems like I'm two different PoPs depending on which DNS I'm using.Apple's test_endpoint changes on each request, selecting a different nearby server to reduce latency and distributing their server load.
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-...
Here is a test I did 4 years back. https://blog.miyuru.lk/edns-geo-table-2019/
I have a tinfoil-hat theory that CF removed EDNS support to make other CDNs slow and make their own CDN look good, but if there's a CF POP nearby it does not make much difference.
You may want to read the RFC draft. However, the results are meant to be opaque. You just need to know that more RPM is better.
Guess they change servers regardless if its the most optimal one?
Thanks!
Finally I believe here is the source code.
Alt/option + WiFi symbol shows information about your local WiFi connection.
This conversation is about what's happening upstream of that.
Perhaps mostly GPT-generated text?