How to Fix Packet Loss
How one fixes packet loss depends upon what is causing the packet loss. Honestly, I get the impression that packet loss is usually the fault of Internet service providers (ISPs). If this is the case, there's nothing you can do about it other than convincing your ISP to fix their issue (often a daunting task) or to switch ISPs (sadly not an option for many). However, you can troubleshoot your issue anyway to make sure it's not your fault. Maybe that will help convince your ISP too.
First, make sure you're not just overtaxing your connection. Try doing more tests with smaller sizes and less frequent packets to see if it works well with less intense usage. You also might check if you are using too much bandwidth:
- Run a speed test to find your max bandwidth, probably either on Speedtest or Fast.com.
- Compare your current bandwidth use some way:
- Check your router's bandwidth page. Usually this is at 192.168.1.1 or maybe 192.168.0.1, but how exactly that all works varies a lot by router. Checking on the router is the best option as it has the advantage of showing all devices connected to the network.
- On Windows, open Performance Monitor and check the Network tab or open Task Manager and check the Performance tab.
- On MacOS, open Activity Monitor and check the Network tab.
- On Linux, there are many tools you might want to use such as bmon, slurm, tcptrack, ifotp, nethogs, speedometer, iptraf, and a ton more. If you're using Linux, you should probably be able to figure this out on your own.
- On Ubuntu or Mint, you can also open System Monitor and check the Resources.
If your usage is high compared to your maximum bandwidth, try using less and see if that fixes the packet loss. Or you could buy more bandwidth from your ISP if that's an option for you.
Next, test all of your hardware. Try plugging your modem (or wherever your Ethernet connection comes from) directly into your computer if possible. If that does fix it, then try replacing your router or wireless card. If that doesn't fix it, you could try using a different cable, network card, or computer.
If that doesn't fix it, it's probably on your ISP's end, and it will need to fix it. You should try calling them, letting them know your problems and what you have tried, and praying they will do something about it.