Skip to content

internet-latency-collector: export total packet loss in cloud mode - #4321

Draft
thijsvanemmerik wants to merge 1 commit into
tve/cloud-latency-10-clickhouse-exporterfrom
tve/cloud-latency-11-total-packet-loss
Draft

thijsvanemmerik wants to merge 1 commit into
tve/cloud-latency-10-clickhouse-exporterfrom
tve/cloud-latency-11-total-packet-loss

Conversation

@thijsvanemmerik

Copy link
Copy Markdown
Contributor

Part of measuring latency between AWS regions with the internet latency collector.

A region pair that loses every packet writes no row, which looks exactly like a pair nobody
measured. This makes the collector write a row with a zero round-trip time when a measurement ran
and nothing came back.

RIPE Atlas reports how many packets each result sent and received. The new code reads those counts,
falling back to counting the individual ping entries, and turns a result with packets sent and none
received into a record at zero round-trip time carrying both counts. A reader can then tell a broken
path from a missing one. The record is skipped when the probe ID or either end's cloud name is
unknown. This runs only when the collector is given a node file of cloud regions to measure, so the
existing path between DoubleZero exchange locations still drops these results.

Merging changes nothing that runs today. That node file is supplied only by a separate deployment,
which does not exist yet.

Test: go test ./controlplane/internet-latency-collector/internal/ripeatlas/ -run CloudExport

A cloud sample now carries packets sent and packets received, so a pair that is
measured and losing every packet reads differently from a pair that is not being
measured at all. Without it a dark pair and an unmeasured pair both show up as
no rows.

The cloud collector fills its location-to-cloud map in its constructor, which
already receives every region with its cloud name.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant