How to Check Per-App Network Usage and Run a Speed Test on Mac
Your menu bar meter jumps to 18 MB/s, your laptop fan spins up, or a video call starts dropping frames, yet knowing your Mac's total download and upload speed does not tell you which app is responsible. Many third-party bandwidth monitors and firewalls answer that question by installing a system network extension, which asks for system approval and sits inline with every packet leaving macOS.
If you want to block connections or enforce firewall rules, Apple's NEFilterDataProvider framework is the right layer. If all you want is to see per-app bandwidth live and over recent days, run an honest speed test, and check whether weak Wi-Fi is the real bottleneck, macOS already exposes all three without a kernel or network extension. Getting accurate numbers out of those built-in interfaces just means steering around a few sharp traps in nettop, TUN proxies, networkQuality, and CoreWLAN.
Check per-app bandwidth right now without a network extension
For a quick visual check, Activity Monitor's Network tab lists Sent Bytes and Rcvd Bytes for every running process without extra permissions. Its main limitation is time scale: those counters accumulate from the moment each process launched, so a browser helper that has been open for two weeks stays near the top even when it is completely idle right now, and processes that already quit disappear from the table.
From Terminal, /usr/bin/nettop reads per-process socket counters from the kernel, including root daemons, without sudo. Run a single non-interactive snapshot like this:
nettop -P -L 1 -n -x -t external -J bytes_in,bytes_out
Each flag here solves a specific problem:
-Pcollapses individual socket rows into one total per process.-L 1prints one CSV snapshot and exits in roughly0.03 sinstead of taking over your terminal window.-ndisables reverse DNS and port-name lookups. Omitting-nis the classicnettoptrap: a single slow PTR lookup on a remote IP routinely stallsnettopfor around5 s, which is past a typical3 ssampling timeout and leaves live UI wrappers completely empty.-xprints exact byte counts rather than roundedKiBorMiBstrings,-t externalskips loopback traffic onlo0, and-J bytes_in,bytes_outtrims the output to the two columns that matter.
If you want to watch what moved over a one-second interval right inside Terminal, ask nettop for two delta snapshots:
nettop -P -L 2 -d -n -x -t external -J bytes_in,bytes_out
Two behaviors matter if you script nettop yourself. First, streaming nettop -L 0 or -L 60 through a pipe buffers output in libc until the process exits rather than flushing once per second, so a live monitor has to run discrete -L 1 snapshots and subtract consecutive readings. Second, nettop -P sums only the sockets that are still open when the snapshot runs. Over a 60-second background interval, a short-lived transfer that opens a socket, downloads a file, and closes the socket before the next tick vanishes from the process rows, whereas the Mac's physical en* interfaces still record every byte in their 64-bit NET_RT_IFLIST2 kernel counters (unlike 32-bit getifaddrs counters, which wrap around every 4 GB).
Why TUN proxies and VPNs count every byte twice
As soon as you run Clash, Surge, Stash, sing-box (mihomo), or a corporate VPN, naive nettop wrappers distort per-app numbers in one of two ways depending on how the proxy intercepts traffic.
With a system HTTP or SOCKS proxy on 127.0.0.1, client apps talk to the proxy over loopback, and only the proxy opens external sockets on en0. Under nettop -t external, 100% of your browser and coding-agent traffic gets blamed on the proxy binary. Taking a companion -t loopback snapshot reveals which local apps sent bytes to the proxy's port, so their share can be handed back to the real apps. Even there, loopback socket counters and external socket counters do not line up byte-for-byte in the same tick: in one measured one-minute window, local clients claimed 2.3 MB against the proxy's 1.1 MB on en0, so client claims have to be capped at what the proxy actually carried out of the Mac.
With TUN mode or a VPN (utun interfaces), the distortion flips into double-counting. Even under -t external (and -t wifi), nettop counts traffic on virtual utun sockets alongside physical interfaces. Every proxied packet is counted once when the app writes into utun and a second time when the proxy or VPN encrypts and forwards those bytes over en0, putting Stash or Clash at the top of the daily leaderboard with twice the data your Mac actually moved.
You can see which user-space process or Network Extension owns each utun kernel control socket in about 0.003 s with a read-only netstat command:
netstat -anv -p kctl | grep utun
On signed macOS binaries (including Apple's built-in /usr/sbin/netstat), this lists com.apple.net.utun_control sockets alongside the owning process ID, separating user VPN and proxy tunnels (or nehelper-managed Network Extension providers) from Apple system tunnels rooted under /System and /usr/libexec. Yet subtracting the raw utun interface byte counter from the proxy's row is a second trap: when a short-lived CLI process such as curl downloads through mihomo's TUN and closes its socket before the next sample, curl leaves no nettop row behind while the proxy keeps its external row. In one 15-second test under mihomo TUN, en0 carried 93.93 MB while utun1500 recorded 177.50 MB; subtracting utun1500 blindly wiped the proxy's row down to zero. Deducting tunnel bytes from the carrier only up to the amount by which summed process rows (excluding kernel_task) exceed the physical en* interface delta removes the double count while keeping short-lived tunnel traffic visible.
Built-in speed tests with networkQuality and why final JSON wins
Since macOS Monterey, Apple has shipped a built-in bandwidth and responsiveness test at /usr/bin/networkQuality (Apple Support HT212313). Run it with verbose output in Terminal:
networkQuality -v
Unlike older browser tests that only chase peak megabits per second, networkQuality measures idle base_rtt alongside responsiveness under load in Round-trips Per Minute (RPM, where 60,000 / RPM gives loaded latency in milliseconds). That loaded figure exposes bufferbloat: if your idle ping is 12 ms yet loaded latency jumps to 450 ms (133 RPM), saturating your uplink queues packets in your router and stalls interactive SSH sessions and voice calls. By default, networkQuality saturates upload and download simultaneously; running networkQuality -s -M 30 switches to sequential phases with a 30-second cap so high-bandwidth links have time to climb out of TCP slow start (cutting the cap to 15 s left roughly 6 s per phase on one connection and halved measured upload from 226 Mbps to 111 Mbps).
When an app runs networkQuality -c -s -M 30 to parse machine-readable JSON, the tool prints nothing at all until the entire run finishes. Any live throughput curve during the test therefore has to sample physical en* interface counters (utun* excluded so VPN framing is not counted twice). If another app downloads a file or a tunnel carries background traffic at the same time, the physical interface sees both streams: in one measured run, live en* counters read roughly 540 Mbps while networkQuality's final JSON reported 425 Mbps of actual test goodput. Live interface counters make a responsive progress curve, while the final JSON should always overwrite the headline numbers once the run completes.
Choosing networkQuality over third-party test backends also avoids real bandwidth, licensing, and privacy costs:
| Option | How it runs on macOS | Bandwidth, licensing, and privacy tradeoffs |
|---|---|---|
Apple networkQuality |
Built into macOS (/usr/bin/networkQuality) against Apple's CDN |
Zero install, reports RPM and loaded latency, transfers roughly 1 GB to 1.2 GB on fast links |
| Self-hosted test server | Dedicated multi-stream HTTP endpoints | Costs roughly 1 GB to 1.5 GB of server egress per run, making an unthrottled free desktop endpoint unsustainable |
| Ookla Speedtest CLI | Third-party binary against Speedtest.net servers | Personal, non-commercial CLI license prohibits bundling inside a commercial or distributed third-party app |
| M-Lab NDT | Open measurement platform behind several browser speed tests | Publishes every test's client public IP address and timestamp permanently in public CC0 datasets |
| Cloudflare / Fast.com | Browser services (speed.cloudflare.com, Netflix fast.com) |
Cloudflare collects test telemetry without explicit third-party app terms; Fast.com provides no supported public API |
Check Wi-Fi RSSI, noise, and link rate without Location Services
When a speed test comes back slow, the next question is whether your ISP is slow or your Mac is clinging to a weak 2.4 GHz Wi-Fi channel two rooms away. Many macOS menu bar tools trigger a Location Services permission dialog the moment they touch Wi-Fi, because nearby network names (SSID) and router hardware addresses (BSSID) can pinpoint where a Mac is physically located. On modern macOS, Apple's CWInterface API returns nil for ssid and bssid unless Location Services is granted.
Physical radio metrics on your active link are different. CoreWLAN exposes signal strength (RSSI in dBm), noise floor, transmit rate (Tx Rate in Mbps), Wi-Fi generation (802.11n/ac/ax/be, or Wi-Fi 4 through Wi-Fi 7), and channel band (2.4 GHz, 5 GHz, or 6 GHz) in 5 to 10 ms without Location Services permission, provided the app never asks for the network name.
You can check the same physical link numbers yourself in two built-in ways: hold down Option while clicking the Wi-Fi icon in the macOS menu bar, or run this read-only system_profiler command:
system_profiler SPAirPortDataType | grep -E "PHY Mode|Channel|Signal / Noise|Transmit Rate"
Read Signal / Noise before blaming your broadband plan:
-60 dBmor higher (such as-52 dBm) with noise around-90 dBmis a strong signal with plenty of signal-to-noise headroom.-61 dBmto-70 dBmis fair and usually holds mid-tier MCS link rates through a wall.- Below
-70 dBm(or a signal-to-noise gap below20 dB) forces Wi-Fi down to lower modulation rates and causes packet retries. If your RSSI andTransmit Ratestay strong yet latency still spikes every few seconds on idle links, check whether AirDrop and Continuity discovery are hopping channels in fixing Mac Wi-Fi stutter caused by AWDL.
Where Mole fits
Mole brings per-app bandwidth history, Apple's speed test, and Location-free Wi-Fi link diagnostics into one lightweight panel without installing a system network extension or helper daemon for networking.
Clicking the live upload and download figures in the menu bar, clicking the Network tile in Status, or choosing Network & Speed Test from the Mole menu opens the per-app panel. The header keeps the Mac's live Download and Upload rates and smoothed trend visible at all times, while the time-range menu switches the app rows below across Live, 1 hour, 1 day, 7 days, and 30 days. While Mole sits in the menu bar, recording takes two unprivileged nettop -n snapshots per minute (~0.03 s each, roughly 0.1% of a CPU core, stepping up to once per second only while the panel is open), reconciles loopback and utun proxy traffic against 64-bit en* interface counters so Clash, Surge, Stash, and sing-box do not double-count, and writes hourly buckets to a compact binary plist every hour, on sleep, and on quit so the 7-day and 30-day views survive restarts.
Switching the header tab to Speed Test starts networkQuality -c -s -M 30 right away, with Cancel while running and Test Again afterward so an accidental click does not burn another gigabyte of data. Physical en* counters drive the live curve while the run is in progress, the final JSON settles Download, Upload, Latency, and Under Load, and the speed test's own traffic is excluded from Mole's row in the per-app list. On the Status tab, the Network detail card also reads Signal (Strong, Fair, Weak) and Link (such as Wi-Fi 6 · 5 GHz · 864 Mbps) via CoreWLAN without ever requesting Location Services. For broader troubleshooting, see finding which app is using your network on Mac, how to read Activity Monitor, and testing Mac internet speed from Terminal.
FAQ
Why does nettop freeze for several seconds before printing anything?
By default, nettop resolves every remote IP address and port number into a hostname and service name before drawing output. Passing -n (nettop -P -L 1 -n -x) skips reverse DNS lookups and drops runtime from roughly 5 s per snapshot to about 0.03 s.
Why does my VPN or Clash / Surge / Stash proxy appear to use twice my actual traffic?
In TUN mode, nettop counts bytes on each client app's virtual utun socket and counts the same payload again when the proxy or VPN forwards encrypted packets out of your physical en0 interface. Accurate per-app monitors cap loopback claims and deduct utun excess only where summed process rows exceed physical en* interface counters.
Do macOS per-app network monitors require a Network Extension or root access?
Only if they block, reroute, or inspect individual packets, which requires Apple's NEFilterDataProvider or a VPN tunnel. Reading per-process byte totals works without root privileges or system extensions via /usr/bin/nettop -P, which includes root daemons alongside user apps.
How much data does a networkQuality speed test use on Mac?
Because networkQuality saturates both download and upload to measure loaded responsiveness (RPM), a single run on a fast fiber or Wi-Fi 6 link can transfer roughly 1 GB to 1.2 GB over 15 to 30 seconds. Avoid running repeated tests when tethered to a metered mobile hotspot.
How can an app show Wi-Fi signal strength and link speed without Location Services permission?
macOS restricts SSID and BSSID behind Location Services because nearby Wi-Fi network names can reveal your physical address. Physical radio properties on the current interface, including RSSI, noise floor, channel band, Wi-Fi generation, and transmit rate, contain no location identifier and remain readable through CoreWLAN without permission.