What is Latency? - V2 Cloud

Background Image

What is Latency?

Intermediate – Computing

Background Image

So, what is latency? Latency is the time delay between an action and the response it triggers. The exact latency definition shifts depending on context, but in computing it usually refers to network latency: the time it takes for a data packet to travel from sender to receiver, get processed, and return a response.

What does latency mean in practice? When you click a button in an application and it takes a moment to respond, that delay is latency in action. For most everyday tasks, a small amount of latency is imperceptible. But in environments like cloud desktops, video conferencing, or real-time collaboration tools, even a few dozen extra milliseconds can separate a smooth experience from a frustrating one.

One thing worth keeping clear in any latency definition: latency is a measurement of time, not volume. It tells you how long a single data packet takes to make its trip, not how much data can move at once. That distinction is what separates latency from bandwidth and throughput.

How Is Latency Measured?

Latency is measured in milliseconds (ms). One millisecond equals one-thousandth of a second. At the network level, it is calculated as the time elapsed between sending a data packet and receiving the acknowledgment that it arrived.

The Ping Command

The simplest and most widely used tool for measuring latency is the ping command. It sends a small packet to a target address and measures how long it takes to get a response. 

Running ping google.com in a terminal, for example, will return RTT values in milliseconds for several consecutive packets.

A typical ping output looks like this:

Reply from 142.250.80.46: bytes=32 time=12ms TTL=117

The time= value is the latency. In this case, roughly 12 ms, which is very low and represents a fast, local connection.

One-Way Latency vs. Round-Trip Time

Understanding the difference between one-way latency and round-trip time (RTT) is essential because it directly affects how responsive a system feels to the user. Most interactions—clicking, typing, or sending a request—require a full exchange between the user and the server, not just a one-way transmission.

  • One-way latency measures the time for a packet to travel from source to destination in a single direction.
  • Round-trip time (RTT) measures the full journey: source to destination and back. RTT is the more commonly cited figure because most applications require a request and a response.

For interactive systems like cloud desktops or video calls, RTT is the number that matters most.

 

Latency Benchmarks: What the Numbers Mean

Latency (RTT) Experience
Under 20 ms Excellent. Imperceptible for virtually all tasks.
20-50 ms Very good. Suitable for all standard business applications.
50-100 ms Acceptable. Minor delays may appear in real-time applications.
100-150 ms Noticeable. Users may feel typing lag in remote desktop sessions.
150-200 ms Degraded. Text processing still workable; video and audio suffer.
Over 200 ms Poor. Interactive applications become frustrating to use.

Other Latency Measurement Tools

Beyond ping, network teams use more advanced tools to diagnose latency across specific paths:

  • Traceroute / tracert: Shows each network hop between your device and the destination, with latency at each step. Useful for identifying where delays are introduced.
  • iPerf: Tests network performance including latency under load.
  • Speed test tools: Consumer-facing tools like Speedtest.net report latency (often labeled as “ping") alongside download and upload speeds.

 

Latency vs. Bandwidth vs. Throughput

Latency, bandwidth, and throughput are key networking metrics.They are related, but they describe fundamentally different things:

Term What It Measures Analogy
Latency Time for a packet to travel from A to B How long it takes a single car to drive a highway
Bandwidth Maximum data volume a network can carry How many lanes the highway has
Throughput Actual data transferred per second How many cars actually complete the trip per minute

A network can have high bandwidth and still suffer from high latency. They are independent variables. A fiber connection to a distant server may deliver gigabit speeds but still feel sluggish for interactive tasks because the round-trip time is long.

 

What Causes Latency?

Latency is not caused by a single factor. It accumulates from multiple sources throughout the path a data packet travels. Understanding each source helps diagnose where delays originate and which interventions will actually help.

1. Physical Distance

The most fundamental cause of latency is geography. Data travels through fiber optic cables and wireless signals at roughly two-thirds the speed of light. A packet traveling from New York to London covers approximately 5,500 km and will incur at least 35-40 ms of latency just from the physics of the distance, before any processing delays are added.

This is why server location matters. A cloud desktop hosted in a data center 500 miles away will always feel more responsive than one hosted 5,000 miles away, regardless of the connection speed.

2. Network Hops

Data rarely travels directly from source to destination. It passes through a series of routers, switches, and network nodes, each of which inspects, processes, and forwards the packet. Every hop adds a small amount of delay. The more hops, the higher the cumulative latency.

3. Network Congestion

When network infrastructure is overloaded, packets queue up waiting to be processed. This queuing delay is one of the most variable and unpredictable sources of latency. Congestion can occur at your local ISP, at a transit provider, or at the destination server’s network edge.

4. Transmission Medium

The physical medium carrying the data affects latency:

Medium Relative Latency
Fiber optic cable Lowest (commercial baseline)
Ethernet (copper) Low, suitable for LAN
Wi-Fi (5 GHz) Low to moderate
Wi-Fi (2.4 GHz) Moderate, susceptible to interference
4G LTE Moderate (30-100 ms typical)
Satellite (GEO) Very high (500-700 ms typical)

5. Processing and Encoding Delays

Beyond pure network transit, latency accumulates from the computation required to handle data. In cloud desktop environments, this includes:

  • Server-side encoding: The server must compress and encode the desktop display into a video stream before transmitting it.
  • Client-side decoding: The local device must decode and render the received frames.
  • Protocol overhead: Remote desktop protocols (RDP, PCoIP, etc.) add their own processing time.

Each of these steps adds milliseconds. On underpowered hardware or overloaded servers, these delays compound quickly.

6. Jitter

Jitter is the variation in latency over time. A connection with 30 ms average latency but swings between 10 ms and 80 ms from packet to packet will feel inconsistent and choppy, especially for audio and video. Jitter is often more disruptive to user experience than a consistently higher but stable latency.

 

Types of Latency

The term “latency" is used broadly, but it refers to different delay types depending on the context. Knowing which type you are dealing with points you toward the right fix.

  • Network latency: Delay caused by data traveling across a network. The most commonly discussed type. Affected by distance, hops, and congestion.
  • Propagation latency: The time for a signal to physically travel through a medium. Determined by distance and the speed of the medium. Cannot be eliminated, only minimized by reducing distance.
  • Processing latency: Delay introduced by routers, switches, or servers as they inspect and forward packets. Reduced by upgrading hardware or optimizing routing.
  • Queuing latency: Delay from packets waiting in a buffer before being processed. Caused by congestion. Reduced by managing traffic priority (QoS) or increasing capacity.
  • Transmission latency: The time to push all bits of a packet onto the wire. Affected by packet size and link speed.
  • Disk latency: The time for storage hardware to read or write data. Relevant for servers and applications. SSDs dramatically reduce disk latency compared to spinning hard drives.
  • Application latency: End-to-end delay experienced by the user within a specific application. The sum of all the above types as they apply to that application’s data flow.

 

What Is Latency in Cloud Computing and Virtual Desktops?

Unlike a local application running on your own hardware, a cloud desktop or hosted application must transmit every screen update, every keystroke, and every mouse movement across a network in real time. The result is that latency in cloud computing becomes directly visible to the user in a way it never is when the application runs locally.

Why Cloud Desktops Are Latency-Sensitive

A virtual desktop session involves a continuous loop:

  1. The user interacts with the local device (keyboard press, mouse click)
  2. That input is sent to the cloud server
  3. The server processes the input and generates a screen update
  4. The server encodes the updated frame as a compressed video stream
  5. The stream is transmitted back to the user’s device
  6. The client device decodes and renders the frame

Every step adds latency. The total end-to-end delay is the sum of all six stages. At 100 ms RTT or below, this loop is imperceptible. At 200 ms or above, users begin to notice typing lag and sluggish mouse response.

The real-world impact is significant. Research on latency-sensitive virtual desktop workloads shows that when RTT exceeds 100 ms, video playback quality degrades substantially, with frame refresh rates dropping well below the 24 FPS threshold needed for smooth video.

Latency Thresholds In Cloud Computing

RTT Impact on Cloud Desktop
Under 50 ms Excellent. Indistinguishable from a local machine.
50-100 ms Good. Suitable for all standard office work.
100-150 ms Noticeable. Typing and mouse lag begin to appear.
150-200 ms Degraded. Text work is manageable; video and calls suffer.
Over 200 ms Poor. Most interactive tasks become frustrating.

The Role of Data Center Location

The single most impactful factor for cloud desktop latency is the physical distance between the user and the server. 

Choosing a low-latency data center close to your users can reduce RTT by 100 ms or more compared to a geographically distant server. For distributed teams, this means selecting a cloud provider with multiple global data center locations so each user connects to the nearest available server.

 

How to Reduce Latency

Reducing latency requires identifying where the delay comes from, whether it’s distance, network, hardware, or configuration, since there’s no one-size-fits-all solution.

Key ways to improve latency include:

  • Reduce distance: Use servers closer to users or deploy regional instances.
  • Improve network connection: Prefer wired Ethernet, use 5 GHz Wi-Fi, and avoid high-latency options like satellite internet.
  • Optimize network setup: Enable QoS, minimize routing hops, and use faster protocols like UDP when possible.
  • Upgrade client performance: Ensure sufficient CPU/RAM, close background apps, and lower screen resolution if needed.
  • Choose better infrastructure: Use providers with high-performance hardware, SSD storage, and optimized networks.

Overall, the most effective approach is to diagnose each layer systematically and address the biggest bottleneck first.

Keep Learning

Get Started Today With V2 Cloud!

Talk to a Cloud Expert

Back to all categories
Back to top

Still have questions?

Let us help you find the solution that fits your business.

Schedule a call
Your V2 CloudCare team — real people, on the line.
On a call now34s avg. pickup
SL FC AR MK +6

Your V2 CloudCare team — real people, on the line.