When the internet feels slow I want one answer: who is talking, and to whom? iftop is top for network connections. Each line is a pair of hosts and how much data flows between them right now.
sudo iftop -n -P -i eth0
-n skips hostname lookups, which keeps the screen quick and stops iftop from generating DNS traffic of its own. -P turns on port display, so you see the port next to each address. -i picks the interface, and the name differs per machine.
The three columns on the right are the average rate over the last 2, 10 and 40 seconds, sorted by the 10-second one. A few keys help while it runs:
sanddgroup all traffic per source or per destination.pswitches port display on and off.1,2and3sort by that column.Ppauses the screen, which is useful when you want to copy an address.
To only count one network, use -F with a network and mask. The man page gives -F 10.0.0.0/255.0.0.0 as an example.
The caveat: it needs permission to see all traffic on the interface, which normally means root. It also shows connections, not processes. For the program behind the traffic you need a tool like nethogs.
Further reading: iftop man page
Going deeper: Keep a domain pointed at your home with Cloudflare DDNS on Unraid