No fluff. Just the config that works.
Executive Summary
Every Mac since macOS 12 Monterey ships with a speed test you never had to install. The macOS networkQuality command runs from Terminal, saturates your link in both directions, and then measures how long a simple round trip takes while the pipe is full. That last number, reported as RPM (round trips per minute), is the one that explains why video calls freeze when someone starts a big download, even though your plan says 1 Gbps.
Objective: run networkQuality, read every line of its output, and use the flags that turn it from a toy into a troubleshooting tool: sequential tests, interface binding, JSON logging, protocol and L4S control, and a self-hosted LAN test server.
Target audience: network and security engineers, help desk staff who support Mac users, and anyone who wants a better answer than “the speed test looks fine.”
Apple describes the test as measuring how well a network handles multitasking when several devices and apps share it at the same time. Throughput tells you the size of the pipe. RPM tells you whether the pipe stays usable when it is busy.
Prerequisites and Architecture
Assumed knowledge
- Comfortable in Terminal (zsh is the default shell).
- Basic idea of latency versus bandwidth, and what bufferbloat feels like (lag under load).
- Optional:
jqfor parsing JSON. Runwhich jq; if it comes back empty,brew install jq.
Lab requirements
- A Mac running macOS 12 Monterey or later. Some flags (L4S control, the local server) only exist on newer releases, so run
networkQuality -hto see what your build supports. - Internet access to Apple’s test servers for the default test. Each run pulls and pushes real data, so expect it to count against metered or cellular plans.
- Optional: a second Mac on the same LAN (lab subnet 10.0.10.0/24 in this post) for the self-hosted server test.
| Component | Role | Notes |
|---|---|---|
| networkQuality (client) | Generates load and measures round trips | Built into macOS 12+, lives at /usr/bin/networkQuality |
| Apple CDN (default server) | Answers load and probe requests | Used when no -C, -B or -r option is given |
| Custom server | Lets you test against your own endpoint | Example servers in the Network Quality Server project; needs a valid TLS certificate |
Local server (-S) |
Turns a Mac into a LAN test target | Self-signed certificate, so the client needs -k |
| jq (optional) | Parses -c JSON output |
Useful for logging and dashboards |
Figure 1: How networkQuality measures responsiveness

Under the hood, the test opens many parallel upload and download flows until throughput stops climbing. While those flows are running, it times small transactions: TCP handshakes, TLS handshakes and HTTP/2 requests, both on the loaded connections (“self”) and on fresh ones (“foreign”). The method is written up in the IETF Responsiveness under Working Conditions draft, which defines RPM as 60 divided by the round-trip time in seconds, or 60,000 divided by the round-trip time in milliseconds.
Step-by-Step: Running macOS networkQuality
Step 1: Run the default test
Goal: get a baseline with zero options.
Action: open Terminal and run the command. The name is case-sensitive in documentation but macOS file systems are case-insensitive by default, so networkquality works too.
networkQuality
Example output (numbers are illustrative, and the exact layout changes slightly between macOS releases):
==== SUMMARY ====
Uplink capacity: 41.732 Mbps
Downlink capacity: 912.408 Mbps
Responsiveness: Medium (88.512 milliseconds | 677 RPM)
Idle Latency: 14.875 milliseconds | 4033 RPM
GUI verification: open Activity Monitor, Network tab, while the test runs. You will see the data sent and received counters jump, which confirms traffic is leaving the interface you expect.
Step 2: Read the output line by line
Goal: know what each number means before you act on it.
| Line | What it measures | How to read it |
|---|---|---|
| Uplink capacity | Maximum upload throughput reached with parallel flows | Compare with your plan’s upload speed |
| Downlink capacity | Maximum download throughput reached | Compare with your plan’s download speed |
| Responsiveness | Round trips per minute while the link is saturated | Low, Medium or High grade, plus the loaded RTT in ms and the RPM |
| Idle Latency | Round-trip time with no load | The number a classic “ping” result shows |
The gap between Idle Latency and Responsiveness is the story. In the example, an idle round trip takes about 15 ms but a loaded one takes about 89 ms. That roughly six-fold jump is bufferbloat: packets sitting in an oversized queue somewhere on the path, usually the home router or the ISP modem.
Apple’s support article grades the result in three buckets:
| Grade | What users experience |
|---|---|
| Low | Apps and services can be unreliable when another device is uploading or downloading, for example on video calls or in games |
| Medium | Brief pauses or freezes on calls when several devices or apps share the network |
| High | Apps stay well connected no matter how many devices share the network |
For a numeric yardstick, the IETF draft marks 1,000 RPM (60 ms loaded RTT) as good and 6,000 RPM (10 ms) as excellent.
Step 3: Run sequentially and verbosely to match other speed tests
Goal: get numbers you can compare with Ookla, Fast.com or an ISP’s own test, and see upload and download responsiveness separately.
Action: by default networkQuality loads both directions at once, which is closer to real life but makes the capacity figures lower than most speed tests. Add -s to test download, then upload, one at a time, and -v for more detail.
networkQuality -s -v
With -s, the summary splits responsiveness by direction. This format comes from a Mac on macOS Sequoia (numbers illustrative):
Uplink capacity: 36.108 Mbps
Downlink capacity: 885.681 Mbps
Uplink Responsiveness: High 53.144 milliseconds | 1129 RPM
Downlink Responsiveness: Medium 72.351 milliseconds | 829 RPM
Idle Latency: 27.820 milliseconds | 2156 RPM
GUI verification: run an Ookla test right after. Download and upload capacity should land close to the -s numbers. If they do not, something else on the network is competing for bandwidth during one of the runs.
Step 4: Pin the test to an interface (wired versus Wi-Fi)
Goal: split “my Wi-Fi is bad” from “my ISP is bad” with one variable changed.
Action: find the BSD device name for each port, then bind the test with -I. On a MacBook, en0 is usually Wi-Fi; on a Mac Studio or Mac mini, en0 is usually built-in Ethernet. Do not guess, check.
networksetup -listallhardwareports
# Then test each path
networkQuality -I en0 -s
networkQuality -I en1 -s
Same ISP, same minute, two interfaces. If wired shows High responsiveness and Wi-Fi shows Low, spend your time on the wireless side (channel, band, client distance, AP queueing), not on a call to the ISP.
GUI verification: Option-click the Wi-Fi icon in the menu bar to see the PHY mode, channel and transmit rate while the Wi-Fi test runs.
Step 5: Test one direction, and cap the runtime
Goal: focus on the direction users complain about and keep the test short.
Action: -d skips the download test and -u skips the upload test (both imply -s). -M sets a maximum runtime in seconds.
# Upload only, useful for "my video freezes when I share my screen"
networkQuality -d
# Download only, capped at 20 seconds
networkQuality -u -M 20
Step 6: Get JSON and parse it with jq
Goal: machine-readable results for scripts, tickets and dashboards.
Action: -c prints JSON to the screen, or to a file if you give it a file name. Throughput fields are in bits per second, latency fields are in milliseconds, and responsiveness is the RPM value.
networkQuality -c | jq '{
down_mbps: (.dl_throughput / 1e6 | floor),
up_mbps: (.ul_throughput / 1e6 | floor),
rpm: (.responsiveness | floor),
idle_ms: .base_rtt,
iface: .interface_name
}'
Useful fields from the networkQuality man page:
| Field | Meaning |
|---|---|
base_rtt |
Idle latency of the run, in ms |
dl_throughput / ul_throughput |
Measured throughput, in bits per second |
responsiveness |
Combined RPM (parallel mode) |
dl_responsiveness / ul_responsiveness |
Per-direction RPM (only with -s) |
dl_flows / ul_flows |
Number of load-generating flows opened |
il_tcp_handshake_443, il_tls_handshake |
Idle TCP and TLS handshake times, in ms |
interface_name, os_version |
Where and on what it ran |
error_domain / error_code |
Only present if the test failed |
Step 7: Log results over time
Goal: catch the “it is only bad at 8 PM” problem with data instead of anecdotes.
Action: loop the test every 15 minutes and append a CSV row. Leave it running in a tmux session or a spare Terminal tab.
echo "end_date,down_bps,up_bps,rpm,idle_ms" > ~/nq-log.csv
while true; do
networkQuality -c -M 30 | jq -r \
'[.end_date, .dl_throughput, .ul_throughput, .responsiveness, .base_rtt] | @csv' \
>> ~/nq-log.csv
sleep 900
done
Each run moves real data. At 15-minute intervals on a gigabit line that adds up, so do not leave this loop running on a metered or cellular connection.
Step 8: Force the protocol, L4S, or Private Relay
Goal: test how the path behaves with specific transports, or confirm whether an iCloud Private Relay or L4S setting is helping or hurting.
Action: -f forces a protocol: h1, h2, h3 (QUIC), L4S or noL4S. -p sends the test through iCloud Private Relay.
# HTTP/3 over QUIC (UDP 443). Handy if a firewall treats QUIC differently
networkQuality -f h3 -s
# Compare L4S forced on versus forced off
networkQuality -f L4S -s
networkQuality -f noL4S -s
# Through iCloud Private Relay
networkQuality -p
At IETF 123, Apple showed a Sequoia Mac on an L4S-enabled Comcast line getting roughly twice the working-latency improvement with L4S on (IETF 123 L4S slides). Private Relay results vary by Mac and location: Eclectic Light’s testing found big drops on some Macs with -p and no change on others.
Step 9: Take the internet out of the test with a LAN server
Goal: measure only your LAN and Wi-Fi, with no ISP in the path.
Action: on a newer macOS release, -S starts a local networkQuality server on the port you choose and prints a configuration URL. Use that URL with -C on a second Mac. The local server uses a self-signed certificate, so the client also needs -k.
# Mac 1 (wired, 10.0.10.5): start the server
networkQuality -S 4443
# Mac 2 (on Wi-Fi): paste the config URL that Mac 1 printed
networkQuality -C "<CONFIG_URL_FROM_MAC_1>" -k -s
If a server is advertised over Bonjour, -b lists the networkQuality servers it can see and -B <name> runs the test against one by name. For a permanent target (a lab VM behind your FortiGate, for example), deploy one of the example servers from the Network Quality Server project, give it a certificate your Macs trust, and point -C at its config URL.
Now you have three numbers for the same client: LAN only, wired to the internet, and Wi-Fi to the internet. Whichever leg loses the most RPM is where the problem lives.
Verification and Validation
Run these checks and compare with the expected result:
| Test | Command | Expected success output |
|---|---|---|
| Tool is present | which networkQuality |
/usr/bin/networkQuality |
| Flags available on this build | networkQuality -h |
Usage text that lists -s, -I, -c and, on newer releases, -f and -S |
| Baseline run | networkQuality |
A SUMMARY block with capacity, Responsiveness grade and Idle Latency |
| JSON works | networkQuality -c -M 20 | jq .responsiveness |
A single number (the RPM) |
| Correct interface | networkQuality -c -I en0 -M 20 | jq -r .interface_name |
en0 |
A quick before-and-after test is the most valuable use of all: run networkQuality -s with nothing else on the network, then again while a large download or cloud backup runs on another device. If the Responsiveness grade drops from High to Low, you have proved bufferbloat. Apple’s guidance for low responsiveness is a router with Smart Queue Management (SQM); on a FortiGate, traffic shaping that caps the WAN slightly below line rate gives the queue back to you. Re-run the test after each change.
Troubleshooting and Gotchas
1. The test fails or reports nonsense behind SSL inspection
The client only talks to servers presenting a certificate the Mac trusts. Behind FortiGate deep inspection with a CA the Mac does not trust, the test errors out. With a trusted CA it runs, but now you are measuring the firewall’s inspection throughput, not the link.
# Look for error fields in the JSON
networkQuality -c -M 20 | jq '{error_domain, error_code}'
Fix: check the FortiGate forward traffic log for the hostnames the Mac hits during a run, then add them to the SSL/SSH inspection profile exemptions so the test is measured end to end.
2. A VPN tunnel is quietly in the path
With a full-tunnel VPN up (FortiClient, a native IKEv2 profile, or iCloud Private Relay), the default route points at a utun interface. Your result then reflects the tunnel and the headend, not your home internet.
route -n get default | grep interface
networkQuality -c -M 20 | jq -r .interface_name
Fix: disconnect the VPN for an internet baseline, or bind the test to the physical interface with -I en0. Some VPN clients still block traffic outside the tunnel, so confirm interface_name in the JSON.
3. “networkQuality says 400 Mbps, Ookla says 900 Mbps”
Both can be right. The default run loads upload and download at the same time, which competes for airtime on Wi-Fi and for CPU on small routers. Ookla tests one direction at a time.
networkQuality -s
Fix: use -s when you need a figure to compare with other tools or an ISP contract. Keep the default parallel run when you want to see how the network behaves under realistic, two-way load. Also check networkQuality -h before writing a script for a fleet: older macOS releases do not have -f, -S or -M.
Quick Reference
| Flag | What it does |
|---|---|
-s |
Run download and upload sequentially instead of in parallel |
-v |
Verbose output |
-I <iface> |
Bind the test to an interface, for example en0 |
-d / -u |
Skip the download or upload test (implies -s) |
-M <sec> |
Maximum runtime in seconds |
-c [file] |
JSON output, to the screen or a file |
-f h1|h2|h3|L4S|noL4S |
Force a protocol, or force L4S on or off |
-p |
Use iCloud Private Relay |
-C <url> |
Use a custom configuration URL or file:// path |
-r <host> |
Connect to a host or IP, overriding DNS for the config request |
-S <port> |
Run a local networkQuality server |
-b / -B <name> |
List Bonjour-advertised servers, or run against one |
-k |
Disable TLS server identity verification (local or lab servers only) |
Sources
- Apple Support: Test Wi-Fi networks with Apple Network Responsiveness
- Apple Platform Support Guide: Use network tools to test connections
- networkQuality(8) man page
- IETF draft: Responsiveness under Working Conditions (draft-ietf-ippm-responsiveness-08)
- Network Quality Server project on GitHub
- TidBITS: Use Apple’s networkQuality Tool to Test Internet Responsiveness
- IETF 123 slides: L4S impact on measured latency
- Eclectic Light: Does iCloud+ Private Relay reduce network responsiveness?
- InfoSecMonkey: macOS File System and CLI commands