LedgerMath

View as Markdown

net_region_mesh

Written entirely by AI

The round-trip time from this box to an AWS Region's endpoint, from the TCP handshake and from the TLS handshake, sampled continuously at no transfer cost: no request is ever sent.

What a figure means

Each sample (repetitions 1) resolves the endpoint's name, connects, and completes a TLS handshake with AWS-LC, then ends. The TCP round trip is connection_opened.t minus name_resolved.t (SYN out, SYN-ACK back); the TLS round trip is connection_secured.t minus connection_opened.t (TLS 1.3: one round trip plus the server's signing). Two op_histogram events (metric tcp_rtt and tls_rtt) hold every counted probe that succeeded, in methods/requests v1's bins. Method runs v1's time per repetition is the median whole sample, DNS included.

What a figure does not show

  • Bandwidth or cost per byte: nothing but the handshakes and close_notify is sent.
  • Every path: an endpoint name resolves to many addresses, and one probe meets one.
  • The TLS figure is not the network alone: it includes the server's signature.

Parameters

The benchmark's Series and their figures are listed at https://api.ledgermath.com/v1/benchmarks/net_region_mesh.json.

The schedule runs net_region_mesh from all seven AWS Regions (us-east-2c on m5.large, c8g.2xlarge, and c8i.2xlarge, plus remote-region c8i.2xlarge boxes in us-east-1a, us-west-2a, eu-west-1a, eu-central-1a, ap-northeast-1a, and ap-southeast-1a) to all seven S3 regional endpoints: 7 × 7 = 49 directed Region pairs. Match target.availability_zone_id for the source Region (use2-az3, use1-az1, usw2-az2, euw1-az2, euc1-az2, apne1-az4, apse1-az2) and params.target_region for the destination Region.

Variable--quick defaultMeaning
LM_PARAM_TARGET_REGIONus-east-2The Region probed
LM_PARAM_ENDPOINTunsethttps://<host>[:<port>] instead of https://s3.<region>.amazonaws.com
LM_PARAM_GAP_MEAN_MS50Mean of the random (exponential, fixed seed) pause between samples
LM_PARAM_BUDGET_SECONDS60No sample starts after this
LM_PARAM_TIMEOUT_MS5000DNS reply, connect, and each TLS read or write
LM_PARAM_CA_FILE/etc/pki/tls/certs/ca-bundle.crtThe CA bundle
LM_PARAM_RESOLV_CONF/etc/resolv.confThe resolver file

Observed values

KeyWhat it is
target_region, host, port, endpoint_sourceWhat was probed, and where the endpoint came from
tls_library, tls_offer, client_helloAWS-LC's version and exactly what the client offers
resolver, ca_file_sha256The resolver used and the CA bundle's hash
probes_succeeded, probes_failed, probes_not_made, ended_earlyCounted probes, after the samples

Each sample is followed by a region_probe event: status, address, DNS, TCP and TLS times, TCP_INFO (smoothed and minimum RTT, path MTU) and the server chain's SHA-256s. A failed probe is recorded with its phase and reason, and the Run goes on; it then exits 4.

Findings

  • From us-east-2 to eu-west-1, about 77 ms. On 2026-12-02 three probes from a box in us-east-2 to s3.eu-west-1.amazonaws.com gave TCP round trips of 76.86 to 76.90 ms and TLS handshakes of 78.3 to 79.0 ms, with path MTU 9001.

How it works

verified folds each successful probe's address, leaf certificate hash and TLS version. Exit codes: 0 every probe succeeded; 4 a probe failed or the budget ended the Run; 1 a fatal setup error; 2 a bad parameter; 3 stdout could not be written.

Building and testing

make BUILD=static AWS_LC_ARCHIVE=<path> builds AWS-LC as http_get does (../harness/c/vendor/aws-lc.lock); AWS_LC_DIR may name another benchmark's build of it. bun test tests/net-and-ec2-benchmarks.test.ts runs it against a local TLS and DNS stand-in.