Does increasing upload or download speed reduce ping?

16

7

I have a 5 MB/s connection, but I always notice high ping when playing online games. When the network is stable (i.e. when pingtest.com reports the connection as 5 MB/s), the ping stays at 50 ms, but my previous connection was 2 MB/s, and it also had a 50 ms ping when stable.

Why isn't my current connection's ping 50 ms when it's running at 2 MB/s like my previous connection? And which makes more of a difference in ping, upload or download speed?

lucas abilidebob

Posted 2015-04-14T18:27:46.920

Reputation: 185

13Neither upload speed nor download speed significantly impact ping. Ping is a measure of latency. You could have a 100 Mb/sec connection with 100 ms of ping and a 1 Mb/sec connection with 10 ms of ping. – ChrisInEdmonton – 2015-04-14T18:35:40.223

The latency of ping depends on your provider and the method (firewall) which they're using to limit your connection. – kenorb – 2015-04-14T18:48:42.940

4Distance is a great contributor to ping time. Playing an online game from Europe on servers in the US will cost you perhaps 150ms, which you can do really nothing about except move to the States. – Tetsujin – 2015-04-14T19:02:54.240

5Ping and bandwidth are independent, however if your bandwidth is saturated you'll start getting higher latency than normal as well as packet loss, so it may be a good idea to cap bandwidth-hungry programs (torrent clients, etc) to a speed a bit lower than your max bandwidth. – None – 2015-04-14T20:50:46.473

8Imagine a lorry load of blue-rays arrive every hour, you unload them, plug them into a massive stack of drives, load up the new (upload) disks into the lorry, and send it off. This would be a massive upload and download speed, but the latency would be very poor (average at best 1.5 hours, could be worse depending how far the lorries have to travel). If you start filling up the lorries, a packet may have to wait for a 2nd lorry after it is ready, so increasing latency more. – ctrl-alt-delor – 2015-04-14T22:11:54.947

100% saturation of either upload or download channel can kill your ping, but otherwise a stable 90% usage of a low bandwidth channel will have the same ping as a similar but much larger channel that's only 10% utilized. – Peteris – 2015-04-15T00:53:37.613

1I like to imagine it as a water pipe. The ping gives you an idea how long the pipe is and the bandwidth tells you how fat it is. A short (i.e. direct) pipe means the water gets there quickly. A fat pipe means lots of water gets there. Swap water for data and I think it all makes sense. If you need to transport a lot of water then you want as fat a pipe as possible i.e. large bandwidth. Games don't like to be kept waiting so a low ping time (short pipe) is usually most important. Well-designed games try to minimise the amount of data sent so as not to use up too much bandwidth. – Caltor – 2015-04-15T12:30:44.137

Outside of saturating your pipe, ping (latency) is typically governed by factors not under your control: the medium of the connection (copper, fiber, etc) as well as type of cable/connection (25 pair, single mode/multimode, wavelength, there are really lots of variations in this category), speed of network equipment you're attached to (DSLAM, CMTS, ATMs, etc), distance between you and this equipment (aka "first mile"), quality of cable within IW (cat5/cat3/cat6), as well as quality of all of this on the end of whatever you're pinging and everything in between. – MaQleod – 2015-04-15T17:00:43.233

Answers

35

Latency is generally independent of bandwidth.

  • Latency, as commonly measured by ping times, is an indication of how long it takes for your system to send data to another computer and to receive its response. Latency is influenced primarily by how far the data must travel—it takes much longer to access a webpage on a server that is halfway around the world than one that is on a server next door. Longer communication routes, where the data must pass through many switches and routers, increase latency as well.

  • Bandwidth, usually expressed in megabits per second (Mbps), is the amount of data that can be sent or received by your system over the network per unit of time. Bandwidth is what you typically pay for when you purchase Internet service—with most home Internet services, more expensive plans provide more bandwidth.

  • Although higher bandwidth can improve latency during times of congestion, under normal conditions, the two are generally independent. The HughesNet Gen4 satellite Internet service, for example, provides good bandwidth (up to 15 Mbps), but suffers from poor latency, averaging about 700 ms ping. This high ping is due to the nature of satellite Internet service, which requires beaming data up to a satellite and back down. Conversely, a dedicated T1 line has only 1.5 Mbps of bandwidth but can provide latency as low as 10 ms.

See also on Server Fault: Will a higher bandwidth Internet connection lower ping response time?

bwDraco

Posted 2015-04-14T18:27:46.920

Reputation: 41 701

1NASA LADEE lunar datalink was about 600Mb/s but probably about 2 second pings (minimum; I think it takes moonlight about 1.3 seconds to reach the earth). Also, pings are usually tested with a minimal data packet so as to test return rather than bandwidth: a high-bandwidth bucket and a low-bandwidth tablespoon can each bail a droplet of water in about the same time period. – Yorik – 2015-04-14T19:38:27.803

@DragonLord How would higher bandwidth improve latency in times of congestion? – RockPaperLizard – 2015-04-14T22:59:43.730

Congestion occurs when the connection is nearly saturated. With more bandwidth, it's likely that there is more leftover bandwidth during congestion which makes it easier for individual packets to get through quickly. Qualcomm Atheros Killer NICs try to address this issue through traffic shaping that favors latency-sensitive gaming traffic over bulk data traffic. – bwDraco – 2015-04-14T23:04:54.550

1@RockPaperLizard If a connection is saturated, then a router somewhere along the line will have to hold your packet for some amount of time. To take an extreme instance, if there were only one transatlantic cable and it only sent one packet a second, you would have a very, very, very high latency for your transatlantic packet, because it would be queued. – cpast – 2015-04-15T06:03:47.657

To add a bit of my experience into your awesome answer, I usually play on North American servers, but I live in Portugal. This has a ping of about 130-800ms. While on the European servers, the ping is 70-300ms. And both lag the same, but that isn't the point. I have a 100MBps connection to the ISP. And both servers are somewhat at the same distance from me. The medium the packets must travel also has a great influence. – Ismael Miguel – 2015-04-15T10:18:22.217

3shipping a truckload of harddrives has a very large bandwidth but also a very high latency (round-trip time measured in days) – ratchet freak – 2015-04-15T11:36:00.673

@ratchetfreak Is 1 day a bad latency for 10 drives with 4TB each? – Ismael Miguel – 2015-04-15T18:45:28.213

2

@IsmaelMiguel Obligatory related XKCD: When - if ever - will the bandwidth of the Internet surpass that of FedEx?

– Adam Hart – 2015-04-15T21:24:03.917

@AdamHart I read it all... And I guess it really is a huge latency... – Ismael Miguel – 2015-04-15T21:37:11.540

5

Consider how latency and bandwidth works with hard-copies carried by foot.

Say you have a boxful of hard copies—about as much as you can carry without being significantly slowed down by the weight, and two places you might want to bring it, one 50 m away and one .5 km away.

Let's say you walk at about 5km/h. It would take you 1.2 minutes to bring the box to the first place and return, and 12 minutes to bring the box to the second place and return.

Now lets say you have to bring 100 boxes. You'd have to make 100 trips, so your total time carrying would be 2hours and 200hours respectively.

Now, let's make these things better.

Let's say you enlist 99 helpers. You can now have more bandwidth. You can now bring the 100 boxes in 1.2 and 12 minutes respectively.

Let's say you enlist 2000 helpers. You now have even more bandwidth. You can now bring the 10 boxes in 1.2 and 12 minutes respectively. The extra bandwidth hasn't helped because you've maxed it out, and the latency is the same.

Let's say you get rid of the 99 helpers, but buy a bicycle, and you can do a healthy 40km/h on it. You can now do the one-box trips in 9 seconds and 1.5 minutes respectively. You now have less latency. The 100-box trips will take 150 minutes and 25hours though.

Now, obviously the bicycle (lower latency, some extra bandwidth) is better at bringing one box of papers quickly, while the massive team of helpers (same latency, much more bandwidht) is better at bringing lots of boxes.

Network connections compare with each other in ways similar to how these different means of transporting hard copies compare.

Downloading a very large file is akin to the task of transporting lots of boxes, and so the more bandwidth, the better.

Playing a game tends to involve lots of small messages, so it's like the task of carrying one box over and over (we can't bulk-transport all the boxes, as the next box isn't ready yet). The lower the latency, the better.

But in our analogy, there's no reason why we can't have a massive team of helpers who all have bicycles.

And extend the analogy, different network connections will differ not only in latency (foot vs bicycle) and bandwidth (how many helpers) but also in having different short-cuts available, and different points they have to go through, so one may be lower latency for one trip and higher for another.

But where the analogy is accurate is that while we can have two connections where one is better by one metric and worse by another, we can also have two connections where one is better than the other by both measures.

Jon Hanna

Posted 2015-04-14T18:27:46.920

Reputation: 151

40km/h on a bike is a lot, an amateur reaches 25 at most. – ratchet freak – 2015-04-15T19:27:58.690

@ratchetfreak and getting a flat speed over 50 m so that it's done in 9seconds not very realistic, but it'll serve. – Jon Hanna – 2015-04-15T23:02:56.727

1

The correct answer is neither.

Ping can be done accomplished a couple ways, through UDP or ICMP (A short intro can be found here for ICMP)

The short of it though is that one machine sends a series of special packets, that are forwarded from router/ switches and through gateways if required to leave one network for another. This trip through devices is a ping time, which is encapsulated and sent back. Generally two pings do not have to follow the same route. The number of hops is the biggest determiner on average of ping times, although there are times when higher upload or download could matter (flooded networks).

Austin T French

Posted 2015-04-14T18:27:46.920

Reputation: 9 766

0

Both are equally important, because ping measures the roundtrip time, as in, you send a packet to some machine (upload), and a packet is returned (download), and the time from start to finish is the ping time. As a result, both should play an equal part in your pingtime.

However, there are some things worth noting: Most home connections nowadays have lower upload rates than download, so upload can clog easier, resulting in a longer packet queue, hence higher ping (and/or packet loss).

Downloading only 2mb out of 5mb does still impact ping because, amongst other things: - There is a lot of overhead with downloading, especially with protocols such as bittorrent. In general, one should expect AT LEAST 20% overhead in addition to net download rate, due to necessities such as TCP Windowing, TCP Header, Ethernet Header and Footer, IP Header, etc. On bittorrent, this overhead is magnified greatly because of the large amount of connections in use, and the need to continuously establish new ones. - Buffers along your network route clogged up - Increased chance of dropped packets, requiring a resend.

It should be noted that there are many things referred to as ping. You have the most common one, ICMP Ping, you also have various implementation of a tcp equivalent, and most games roll their own to produce a form of UDP Ping. The latter can vary greatly, as everyone seems to have their own idea of how it should be implemented to reflect how the link quality should be measured for the game, such as Round Trip, or one way only?

On a related note, nowadays when home and server connections are normally "fast enough", the biggest impact on a healthy route between you and the server is the amount of network hops. This is normally a result of the physical distance between you and the server. The amount of network hops can be checked by doing a traceroute.

Jarmund

Posted 2015-04-14T18:27:46.920

Reputation: 5 155

0

A big factor is how much unused bandwidth you have for uploads, and how much you have for downloads. Since ping works by sending a message and listening for a response, both directions affect the total round trip time. The packets are essentially the same size in both directions (unless something fragments or reassembles a fragmented packet). If either your download or upload pipe is almost full, ping is more likely to be delayed. Most home connections are asymmetric, which just means you have more download bandwidth available. As a result, it may be easier to fill up your upload bandwidth, depending on your usage. Often times, ICMP (ping) traffic has a lower priority than other traffic, so it gets delayed or dropped when the pipe gets busy.

GuitarPicker

Posted 2015-04-14T18:27:46.920

Reputation: 1 137

0

Bandwidth (speed) is necessary to be capable of sending out pings and receiving responses.

However, pings are usually designed to be compact (typical ping packets are much less than 1 KB), so unless you are flood-pinging and/or use huge packets, or have some very exotic connection like an air-gap circumvention via sound, it does not matter in practice.

Latency (responsiveness) is caused by signalling and processing speed of all hardware and software components on the round-trip path and is almost always the limiting factor if you consider the relations.

For example, assume you can send or receive 1 MBit/s, or roughly 0.1 MB/s, and your ping is a whopping 1 KB, i.e. 0.001 MB. This means you could send or receive 1,000 pings per second, each one requiring 1 ms to send or receive if you fully use the connection.

Typical latencies are > 10 ms for a round-trip over the Internet.

In that time you could send 10 pings already before receiving any response over that rather low-speed link.

Archimedix

Posted 2015-04-14T18:27:46.920

Reputation: 231