Latency

Protocols & Standards
The time delay between a request and response, typically measured in milliseconds.
← Back to Glossary

What is Latency?

Latency is the time delay between initiating a request and receiving a response, typically measured in milliseconds (ms). In networking and DNS contexts, latency represents the round-trip time for data to travel from a client to a server and back. Low latency is critical for fast website loading, responsive applications, and positive user experiences. High latency causes noticeable delays that frustrate users and can impact business metrics.

Types of Latency

Network Latency

Time for data packets to traverse the network:

DNS Latency

Time to resolve a domain name to an IP address:

Application Latency

Time for applications to process requests:

Measuring Latency

Common Tools

# Ping test (ICMP latency)

ping example.com

# DNS resolution time

dig example.com | grep "Query time"

# HTTP timing

curl -w "@curl-format.txt" -o /dev/null -s https://example.com

Key Metrics

MetricDescriptionGood Target
RTT (Round Trip Time)Complete request-response cycle<100ms
TTFB (Time to First Byte)Server response initiation<200ms
DNS ResolutionDomain to IP lookup<50ms
Connection TimeTCP handshake completion<100ms

Latency Impact by Region

Geographic distance directly affects latency:

RouteTypical Latency
Same city1-10ms
Same country20-50ms
Same continent50-100ms
Cross-continental100-200ms
Global (opposite sides)200-300ms

Reducing DNS Latency

Anycast DNS

Deploy DNS servers globally, route queries to nearest:

DNS Caching

Leverage TTL for repeated lookups:

example.com.  300  IN  A  192.0.2.1

↑ TTL in seconds

EDNS Client Subnet

Enable geographically-aware responses:

Reducing Overall Latency

Content Delivery Networks (CDNs)

Connection Optimization

Infrastructure Choices

Latency vs Bandwidth

Understanding the difference:

Both matter for performance, but latency often has greater impact on user-perceived speed, especially for interactive applications.

Low latency is essential for modern web performance, directly impacting user satisfaction, conversion rates, and search engine rankings.

Put This Knowledge to Work

Use DomScan's API to check domain availability, health, and more.