Resolving the high ping problem on Minecraft servers
The most common cause for ping spikes in Minecraft is inadequate bandwidth. It can occur with slower broadband speeds with multiple devices connected. Try disconnecting devices that are not in use.
Firewalls are known for restricting traffic from certain online games such as Minecraft Multi-player. The anti-virus or firewall intercepts and reviews every packet of data sent and received. This process can be time-consuming, and in some cases, data packets can be lost. By whitelisting Badlion Client in your firewall & anti-virus software, you can shave a few milliseconds off your ping time. Try disabling them temporarily.
Ensure that your CPU is not maxing out. If your computer is hitting the max CPU usage, you need to check what is causing the CPU spikes. This will cause a delay in input and random "ping" spikes (because your computer is lagging).