Language: English

Ping spikes every few seconds: finding what keeps time

Last updated · 5 min read

Your ping is fine, then it jumps, then it's fine again, and the jump comes back on a beat: every few seconds, every minute, every five. A spike that keeps time is good news of a kind. Something is doing it on a timer, and a timer can be found. Here's how to measure the rhythm, where it usually comes from, and how to test each suspect.

Time the spikes

Open a Windows terminal (press Win, type cmd, Enter) and run ipconfig to find your router's address, the "Default Gateway". Then ping it for two minutes:

ping -n 120 192.168.1.1

Windows sends one ping a second, so the lines are close to seconds. Note which replies are slow and count the lines between them. Then run the same test against something outside your home, such as ping -n 120 1.1.1.1. Between them, the two tests already narrow it down a lot:

  • The router test spikes on a beat: the cause is on this PC or between it and the router. On Wi-Fi, that's the first suspect below.
  • The router test is clean, the outside test spikes on a beat: something is filling your line on a timer, on this PC or another device in the home, or the spikes are further out.
  • Both clean, and only the game spikes: it's the road to that game's servers, or the servers. What causes ping spikes covers that case.

Wi-Fi looking for other networks

A Wi-Fi adapter can't listen to your router while it listens to the other channels, and to find networks or work out where the PC is, it has to. Many users on Intel's, HP's and other support forums report spikes on a steady beat, from tens of milliseconds to whole seconds, that stopped as soon as Windows stopped looking for networks. Microsoft hasn't documented it as a cause, so treat it as something to test, not a diagnosis.

The test takes a minute. In a terminal opened as administrator, run netsh wlan show interfaces to see your Wi-Fi adapter's name (often "Wi-Fi"), then:

netsh wlan set autoconfig enabled=no interface="Wi-Fi"

That switches off Windows' automatic Wi-Fi configuration on that adapter; you stay connected to the network you're on. Run the router ping again. If the beat has gone, you've found it. Switch it back on afterwards with the same command and enabled=yes: while it's off, Windows won't find or join Wi-Fi networks by itself. The lasting fixes are a network cable, or the adapter's own settings and an up-to-date driver from its maker. Wi-Fi or Ethernet goes through the rest of what Wi-Fi does to a game.

Location and other things that ask for a scan

Windows' location service uses nearby Wi-Fi access points to work out where the PC is, Microsoft says, alongside GPS, the IP address and other sources. Any app that keeps asking for the PC's location keeps that going. If the test above made the spikes go away, try once with location turned off (Settings → Privacy & security → Location) and autoconfig back on. If they stay away, an app asking for your location was the timer.

The same goes for anything that lists the Wi-Fi networks around you: a network or Wi-Fi tool, some hardware vendors' control panels. Close them while you test.

Programs on a timer

If the spikes show in the outside test but not the router test, something is using your line on a schedule. Common ones:

  • Cloud sync. OneDrive, Dropbox, Google Drive and photo backups upload in bursts as files change.
  • Launchers and updaters. Game launchers, browsers and drivers check for updates and download them in the background.
  • Windows itself. Windows Update, and Delivery Optimization, which can upload updates to other PCs.
  • Another device. A console downloading, a camera uploading to the cloud, a TV fetching an update.

To see what's sending, open Resource Monitor (press Win, type resmon) and look at the Network tab while a spike comes: it lists each program's traffic. Pause the suspects one at a time and run the outside test again. If a full upload is the cause, a router setting called SQM stops it from stalling everything else; Bufferbloat explains how it works.

Power saving on the network adapter

On a laptop, Wi-Fi power saving can add delay as the adapter dozes between packets. Windows has a setting for it in the power plan: Control Panel → Power Options → Change plan settings → Change advanced power settings → Wireless Adapter Settings → Power Saving Mode. Maximum Performance keeps the adapter awake, at the cost of battery. Intel advises leaving its adapters' defaults alone unless you need to change them, and newer versions of Windows may not show the setting at all.

One box that's often blamed doesn't do this. "Allow the computer to turn off this device to save power", on the adapter's Power Management tab in Device Manager, is about sleep and hibernation: Microsoft says Windows doesn't turn the network card off for being idle, and Intel says the box has no effect on Wi-Fi power management.

Where NoSpike fits

Nothing on this page is something NoSpike fixes. Wi-Fi scans, programs on a timer and power saving all happen on your PC and in your home, before any route to a game begins, and NoSpike works on the route. It measures your own route to the game's server beside the routes through its relays in Amsterdam, Copenhagen, Frankfurt, London, Madrid and Sweden, and, left to choose for itself, routes the game only when a relay measured better; when your own connection is the best way, it says so and routes nothing.

Its network check helps with the finding: it says whether your PC is on a cable or Wi-Fi, traces the way to the game's server hop by hop, and has a separate test of how far your ping rises while the line is full. Measuring needs only an account; routing the game is what NoSpike Pro is for. The games list says where each game shows its own ping.

Frequently asked questions

Why does my ping spike every few seconds on Wi-Fi?

Often because the adapter stops listening to your router for a moment, for example to look for other networks. Ping your router for two minutes: if the slow replies come on a beat, test with Windows' Wi-Fi autoconfig switched off, as above.

Is it safe to turn off WLAN AutoConfig?

As a test, yes: you stay on the network you're connected to. While it's off, Windows won't find or join networks by itself, so switch it back on afterwards with the same command and enabled=yes.

Why does my ping spike every minute even on a cable?

Then it isn't Wi-Fi. Look for something using the line on a schedule: cloud sync, an updater, another device in the home. Resource Monitor's Network tab shows which program is sending when the spike comes.