Skip to content
WebsiteHosting.com

comparison Networks

Latency vs bandwidth

Waiting is not the same as transferring. See how round-trip time, body size and goodput shape one simplified response.

Sources checked · P0002

What it means

Latency describes delay. Bandwidth describes capacity to move data at a particular layer and along a particular path. Neither alone tells you how long a web response will take. This example uses round-trip time for delay and a separately chosen goodput for the useful body-data rate. It does not equate a connection's advertised capacity with delivered application data. Capacity terminology

Try it

Simulation — compare one wait with one transfer. Change RTT, decimal kilobytes or application goodput; save a valid result as A, then change the current B scenario. The comparison shows separate waiting, transfer and total differences, not a score for your connection.

Simulation

One response on an established connection.

Waiting
80 ms
Transfer
400 ms
Total
480 ms
1 · Wait for a round trip2 · Transfer the body
The bar shows proportions, not a fixed time scale. Reducing transfer time does not remove the wait.
Timing inputs
0–2,000 ms
0–100,000 decimal kB
0.1–10,000 Mbps; always positive

Change one input to isolate its effect.

480 ms total · 80 ms waiting + 400 ms transferring.

Save a valid scenario as A, then change one input to compare B. No comparison is saved initially.

About this model

T (ms) = RTT (ms) + 8 × body size (decimal kB) ÷ goodput (Mbps). One kB is 1,000 bytes. Goodput is useful body-data rate, not advertised bandwidth. No separate server time, DNS or TLS setup, headers, loss, slow start or browser rendering. Real TCP throughput can depend on RTT. Displayed values are rounded to two decimal places; positive quantities below 0.01 are shown as less than 0.01. A zero body leaves only RTT; zero body and zero RTT give zero.

The initial calculation is 80 + 8 × 1000 / 20 = 480 ms. Save it as A and double goodput to 40 Mbps. Transfer time falls from 400 to 200 ms, but the unchanged 80 ms wait means the total is 280 ms, not 240 ms. Then try the small, high-RTT preset and the large-transfer preset to see which term dominates.

ScenarioRTTSizeGoodputTransferTotal
Initial A80 ms1000 kB20 Mbps400 ms480 ms
Twice the goodput80 ms1000 kB40 Mbps200 ms280 ms
Small, high-RTT200 ms10 kB20 Mbps4 ms204 ms
Large transfer20 ms10000 kB20 Mbps4000 ms4020 ms

A zero-byte response still has the modeled wait; setting both size and RTT to zero makes the modeled total zero. Goodput must remain positive. Empty, negative or out-of-range inputs produce an error rather than a plausible-looking result. Reset removes the saved comparison as well as restoring the three defaults.

These are arithmetic examples on an already available connection with constant goodput. DNS, connection establishment, TLS, server work, congestion dynamics and browser rendering are outside the model. The number is neither a page-load prediction nor a benchmark. Capacity and measured application throughput are different quantities. Capacity terminology TCP measurement limitations

Same question, different constraints

QuantityUnit hereWhat it changes in this model
Round-trip timemsThe waiting portion
Body sizedecimal kBHow much useful data must move
GoodputMbpsThe rate used for the body transfer

The distinction between network capacity and achieved throughput matters. A capacity figure needs a layer and a path; it is not automatically the rate available to a particular application. We therefore make the useful data rate an explicit input. Capacity terminology

Why the numbers change

Our deliberately narrow model is T = RTT + 8 × size / goodput, with time in milliseconds, size in decimal kilobytes and goodput in megabits per second. One kB is 1,000 bytes; eight bits make one byte. Converting both decimal units and seconds to milliseconds gives the factor of eight.

At the default settings, 1,000 kB at 20 Mbps needs 400 ms of transfer time. Add 80 ms of RTT and the model gives 480 ms. Doubling goodput halves the transfer portion, not the whole total. Setting the body size to zero leaves the RTT term. These values are arithmetic examples, not performance promises.

In practice

Use the controls to distinguish two hypotheses: “the response is small but starts slowly” and “the response starts promptly but contains a lot of data.” In this model, reducing RTT helps the first situation; increasing goodput or reducing size helps the transfer portion. The comparison has no universal winner.

Actual TCP throughput can depend on RTT, congestion and receive windows, loss and other conditions. Holding goodput independent of RTT is a teaching simplification, not a claim about TCP behavior. TCP throughput

About the boundary

Assume an already established connection, one response body, constant positive goodput and no separate server-processing time. DNS, connection/TLS setup, request bytes, headers, slow start, retransmissions, competing requests and browser rendering are not separately modeled. The formula is our two-term teaching model; RFC 6349 is context for TCP behavior, not its source.

Key takeaways

Ask whether a task is dominated by waiting or moving bytes before choosing a remedy. Compare one changed condition at a time and keep the units explicit. A larger bandwidth figure does not remove latency, and a faster result in this bounded calculation does not prove a faster real website.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. RFC 5136 — Defining network capacity

    Sections 2 and 3. Capacity must be described at a defined layer and along a defined path.

    Checked .

  2. RFC 6349 — TCP throughput testing

    Sections 1, 1.2 and 3.3. RTT, bottleneck bandwidth, TCP windows and achieved throughput; not the teaching formula itself.

    Checked .