TCP round trip between machines
net_rtt · compared across Services · 2 Series on 1 machine types · AWS us-east-2
Service
Scope
Order
| Compare | Service | Variant | Machine | P50 | P99 | Rate | Unit cost | Runs |
|---|---|---|---|---|---|---|---|---|
| Peer, same AZ | c8g.2xlarge | 78.46 µs | 116.2 µs | 2.289 MB/s | $0 /GB moved | 4 |
Compared:Peer, same AZ · c8g.2xlarge
Tail: P50 → P99.9
per operation, log scaleLatency histograms
pooled across counted Runs, each to its own peak
(one request each to the data API)
Over time
newest counted Runs, each Run's P50(one request each to the data API)
What this measures
The round-trip time between this box and a peer box over TCP: one small frame echoed per sample on a kept-open connection, or one TCP handshake per sample, with every round trip recorded on its own.
What it does not measure
- Throughput: a frame is small and the connection idles between samples (see
net_throughput). - The peer's own time: the echo server answers as soon as it has read a frame, but its thread waking up is inside the round trip.
- Anything about other placements:
scopenames where the peer was put (same AZ, another AZ, loopback); AWS does not promise one path between two instances.
Code & config
Benchmark docsSeries JSONPeer, same AZ · c8g.2xlarge · same az
223 for (unsigned sample = 0; sample < total; sample++) {224 bool is_warmup = sample < warmup;225 uint64_t t0, t1;226 if (P.proto == PROTO_ECHO) {227 fill_frame(sample);228 t0 = lm_now_ns();229 bool sent = lm_net_send_all(fd, g_send, g_frame);230 bool read = sent && lm_net_recv_exact(fd, g_recv, g_frame);231 t1 = lm_now_ns();// …236 if (memcmp(g_send, g_recv, g_frame) != 0) lm_die("sample %u: the echo is not the frame sent", sample);237 checksum = lm_fnv1a64(checksum, g_recv, g_frame);// …250 lm_net_sample(sample, is_warmup, 1, t0, t1);251 if (!is_warmup) lm_hist_add(&hist, t1 - t0);
Configuration
- benchmarknet_rtt
- buildstatic
- instancec8g.2xlarge
- regionus-east-2
- azuse2-az3
- servicenet_peer_same_az
- params.gap_ms5
- params.protocoltcp_echo
- params.scopesame_az
- params.size_bytes64
- params.timeout_ms5000