Understanding Lag: Ping, Jitter, and Packet Loss
Lag in online gaming is caused by three distinct network issues, and the fix for each is different. Misdiagnosing the problem is the most common reason gaming network tweaks fail.
Ping (latency) is the round-trip time for a data packet to travel from your device to the game server and back, measured in milliseconds (ms). High ping causes delayed response — you press a button and the game reacts late. Acceptable ping varies by game type: competitive shooters need under 30ms, real-time strategy games are playable at 100ms, turn-based games tolerate even more. Check your baseline with our ping test tool.
Jitter is the variation in ping over time. A connection with consistent 60ms ping is far more playable than one averaging 40ms but varying between 10ms and 120ms. Jitter causes erratic movement prediction, rubberbanding, and inconsistent hit registration. WiFi connections typically have more jitter than ethernet.
Packet loss is the percentage of data packets that fail to arrive at their destination. Even 1–2% packet loss causes significant problems in online gaming — lost packets mean missing player positions, shots that do not register, and game client desynchronization. Anything above 0.1% during gameplay is problematic. Ethernet connections should have 0% packet loss; WiFi connections are more susceptible.
Before changing anything, measure your baseline: run our ping test and a speed test to document current performance. Run the ping test to servers in your game's primary region.
Wired Ethernet: The Single Biggest Improvement
If you are gaming over WiFi, connecting via ethernet cable is the most impactful change you can make. The difference is dramatic and consistent:
- WiFi ping: typically 5–15ms with additional router overhead
- Ethernet ping: 1–2ms to the router, consistently
- WiFi jitter: 5–20ms variation due to wireless medium contention
- Ethernet jitter: less than 1ms under normal conditions
- WiFi packet loss: 0.1–1%+ possible, especially through walls or with interference
- Ethernet packet loss: 0% under normal conditions
For gaming consoles, if ethernet cable routing is not practical, the next best options in order are: MoCA adapter over coaxial cable, powerline adapter over electrical wiring, and then closest possible WiFi node (using a wired-backhaul mesh AP in the same room as the console). See our ethernet vs WiFi guide for detailed comparison.
If you must use WiFi for gaming, connect to the 5 GHz band (lower latency than 2.4 GHz), ensure line-of-sight to the nearest access point where possible, and use a WiFi 6 router and adapter to take advantage of OFDMA and MU-MIMO, which reduce latency under multi-device load.
QoS: Prioritizing Gaming Traffic
Quality of Service (QoS) allows your router to prioritize certain types of traffic over others. When your housemate starts a large Steam download while you are in a competitive match, QoS can ensure your gaming packets are processed first, maintaining low latency even when the network is saturated.
Traditional QoS assigns priority levels to traffic categories or specific devices. In your router settings, you can designate gaming consoles or PCs as high-priority devices, or prioritize UDP gaming traffic over background downloads.
CAKE (Common Applications Kept Enhanced) with fq_codel is a modern QoS algorithm available on OpenWrt and some other routers that is exceptionally effective for reducing bufferbloat — the leading cause of high latency under load in home networks. CAKE works by actively managing the router's transmit buffer, preventing it from filling up and causing queuing delay.
Adaptive QoS (Asus) and Smart Queue Management (SQM) are router-specific implementations of similar bufferbloat management. They automatically detect and prioritize real-time traffic.
To check if bufferbloat is affecting your gaming, run a speed test while simultaneously downloading a large file. If your ping spikes dramatically during the download, you have a bufferbloat problem that QoS can fix. Our speed test can help you measure this baseline.
Practical QoS setup:
- Enable QoS on your router and set your actual internet plan speeds (do not set higher — the router needs accurate values to manage the queue properly)
- Designate gaming devices as highest priority
- Set gaming traffic (UDP, specific game ports) to highest priority if device-level QoS is not available
- Limit background downloads to 80% of line capacity to preserve headroom for interactive traffic
Test Your Gaming Connection
Measure your ping and download speed with our free network testing tools
Hide My IP NowPort Forwarding and NAT Type for Gaming
Online gaming consoles and some PC games require specific ports to be open for peer-to-peer connections, party chat, and direct player-to-player communication. NAT type — the strictness of your router's Network Address Translation — determines how freely your gaming device can make these connections.
NAT type explained:
- Open / Type 1 — no NAT restrictions; connects to all players, best for hosting
- Moderate / Type 2 — standard NAT; connects to most players, works for most games
- Strict / Type 3 — limited NAT; can only connect to Open NAT players; may cause matchmaking failures, party join issues, and voice chat problems
If you have Strict NAT, forward the relevant ports for your console to its static local IP. Common gaming ports:
- PlayStation Network: TCP 80, 443, 3478, 3479; UDP 3478, 3479
- Xbox Live: TCP 3074; UDP 3074, 88, 500, 3544, 4500
- Nintendo Switch: TCP 6667, 12400, 28910, 29900, 29901, 29920; UDP 1-65535
- PC Steam: UDP 27000–27100
Use our port checker to verify your forwarded ports are actually reachable from the internet after configuration. Also ensure UPnP is disabled after manually setting up port forwarding — UPnP and manual forwarding for the same ports can conflict.
Advanced Optimizations: DNS, MTU, and Server Selection
Once the basics are covered, these advanced tweaks can squeeze additional performance from your gaming setup.
DNS server selection: Your DNS server does not affect game latency once a connection is established, but it does affect how quickly game servers' IP addresses are resolved at connection time, and can affect routing quality through CDN optimization. Use a fast DNS provider close to you — Cloudflare (1.1.1.1) and Google (8.8.8.8) are both extremely fast globally. Avoid your ISP's DNS servers, which are often slow. Verify DNS changes with our DNS leak test.
MTU optimization: Maximum Transmission Unit (MTU) is the maximum packet size your connection can handle. The wrong MTU setting causes packet fragmentation, adding overhead and latency. Most connections use MTU 1500 (ethernet) or 1492 (PPPoE). If you suspect MTU issues, test with the ping command: ping -f -l 1472 8.8.8.8 on Windows (or ping -M do -s 1472 8.8.8.8 on Linux). If it fails, reduce the size by 10 until it succeeds — add 28 to that value for your optimal MTU. Set this in your router's WAN settings.
Select the correct game server region. Most online games allow you to choose or filter by server region. Always play on servers in your geographic region. Connecting to a North American server from Europe adds 100–150ms of latency that no amount of home networking optimization can overcome.
Check your ISP route. Sometimes your ISP routes traffic inefficiently, adding unnecessary hops. Tools like traceroute (tracert on Windows) reveal the path your packets take. Persistent inefficient routing is worth reporting to your ISP or considering a different provider. You can also use our ping test to compare latency to different servers and identify routing issues.

Frequently Asked Questions
What ping is good for online gaming?
Under 30ms is excellent for competitive games like FPS and battle royales. Under 60ms is good for most multiplayer games. Under 100ms is acceptable for casual play and slower-paced games. Over 100ms will cause noticeable lag in most online games. Check your ping with our <a href='/ping'>ping test tool</a> to see your current latency.
Does internet download speed affect online gaming?
Online gaming uses surprisingly little bandwidth — typically 1–5 Mbps for most games. A 25 Mbps internet connection is more than sufficient for gaming. What matters far more than download speed is latency (ping), jitter, and packet loss. Upgrading from 100 Mbps to 1 Gbps will not reduce your ping; switching from WiFi to ethernet will.
Why does my ping spike randomly during gaming sessions?
Ping spikes are usually caused by: (1) bufferbloat — your router's queue fills up when something else is downloading; (2) background applications on your gaming device eating bandwidth; (3) WiFi interference or contention; (4) ISP routing issues during peak hours. Enable QoS on your router and check for background downloads on other devices to address the most common causes.
Does a gaming router actually make a difference?
Marketing aside, a gaming router is only meaningfully better if it has: effective QoS/bufferbloat management (CAKE or similar), enough CPU power to handle QoS at your internet speed, and reliable WiFi performance. Paying a premium for "gaming" branding without these features is not worth it. A router with good QoS implementation outperforms an expensive gaming router without it.
