Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 26 Nov 22:13
· 74 commits to main since this release
8cd49c9

via can now trace up to 16 targets at once, and the way it measures loss has been rebuilt around rounds of interleaved probes. That second part changes the numbers you see, so read the Breaking section before you point a script at the new output.

What's new

Multi-target mode. Give via several targets on the command line, or a file with --targets, and it traces them all in one session (16 at most). A summary view shows one row per target, Tab moves the focus, and c switches to a column view with the targets side by side. Reports and exports cover every target.

Interleaved probes and round-based loss. Each round sends the TTL-limited probes and a direct ping to every hop that has answered. Loss is counted per round, over completed rounds only, so a live view never shows a probe that's still in flight as lost.

Three kinds of loss figure. The Loss% column now tells you how much to trust it:

Shown as Meaning
12.3% Measured loss.
12.3%? Provisional. The hop has fewer than 20 ping samples, so this may be rate limiting or may be real. It's dimmed and doesn't count toward alerts.
~0%† The hop rate-limits its TTL replies. The figure comes from the direct pings.

A hop only gets the † when the gap between its TTL-probe loss and its ping loss is statistically significant, so an ordinary lossy link isn't mistaken for rate limiting.

Probe Detail view. A new display mode shows received and sent counts per probe type for every node, which is where to look when you want to check a rate-limit verdict yourself.

Fixed

  • IPv6 tracing hung on macOS after 12 to 16 rounds in ICMP and UDP mode. No probe send can block the round loop now, and the direct pings go out on their own socket.
  • TCP mode on macOS never saw the destination. It showed the target as lost in both families, in v0.2.1 too. The replies are now read from a packet capture, because the macOS kernel doesn't hand TCP segments to raw sockets.
  • Probes of one trace could leave from two source addresses. On a host with more than one global IPv6 address, macOS sometimes picked a different one mid-trace. Load-balancing routers treated those probes as a different flow, so an ICMP trace showed two routers at most hops and loss that mtr didn't see. Every probe socket is now bound to the source address chosen at startup.
  • IPv6 UDP and TCP probes carried a bad checksum when the kernel sent them from an address via didn't expect, and were dropped on the path. The kernel fills the checksum in now.
  • The sparkline disagreed with the Loss% column. They use the same figure now.
  • Rows of multi-node hops were out of line with the header whenever a single-flow trace found more than one router at a hop. Every column now starts at the same cell on every row, and a test holds it there.
  • Running without sudo printed a second, wrong error. via re-runs itself under sudo. When that run failed for its own reason, the first process added "raw socket permission denied". It now exits quietly with the same status. The setcap hint is shown on Linux only.
  • IPv6 link-local targets (fe80::/10, with or without a zone) are refused at startup with a clear message.
  • Saving settings dropped export_format from the config file.

Breaking

  • --no-ping is gone, along with the PingSupplement config key and its settings toggle. The direct pings are part of how loss is measured now. A config file that still has PingSupplement (or ping_supplement) loads with one warning on stderr. The key is ignored and isn't written back.
  • The Snt column is now Rnd and counts rounds, not probes. Scripts that parse report output will see a different header and different values.
  • Report and export output isn't byte-identical to v0.2.x.

Changed

  • CSV exports have more columns, all added after the existing ones, so existing column positions haven't moved: headline_loss_pct, loss_kind, rate_limited, sent and received counts per probe type, echo_ignored, hop_echo_sent, hop_echo_received, verdict_held, verdict_probes_sent, verdict_probes_received, and error last. A target that couldn't be traced gets one row with the message in error.
  • JSON exports carry the figure the views show (headline_loss_pct with loss_kind) next to the raw loss_pct, plus the counts each verdict was made from, so you can recompute a rate-limit verdict from the export alone.
  • DOT labels show the same figure as the views (~N%†, N%?), and clusters are written in a stable order.
  • The debug log names the source address each socket is bound to.
  • display_mode = "probes" is a valid config value.
  • On a narrow terminal the status bar keeps the key hints.
  • via --version on a build with no injected version reports the module version or dev+<revision>.

Known issues

  • Windows has had no live run in this release. The Windows builds and installers are published and the test suite passes on Windows in CI, but TCP mode and the direct pings haven't been run against a real network there. If you run via on Windows, I'd like to hear how it goes: #182.
  • The destination row can land a hop or more early. via puts the destination at the lowest TTL the target has ever answered at. When load-balanced paths to the target differ in length, some flows reach it sooner than others, and the row then shows loss the destination doesn't have. I saw 62% on a healthy host in UDP mode over IPv6. If the destination's loss looks wrong in UDP mode, check it in ICMP mode (-P icmp). v0.2.1 has the same fault, and the fix is planned for v0.3.1 (#234).
  • A hop that ignores ping and also rate-limits its TTL replies shows that loss as measured, even when no later hop loses anything (#173).
  • A hop that can't be pinged stays provisional (N%?), for example an IPv6 link-local first hop (#87).
  • If the bound source address goes away during a long run (a temporary IPv6 address expiring), sends fail until you restart via (#240).
  • On macOS over IPv6, what made the shared socket stall in the first place is still unexplained. The hang itself is fixed (#152).
  • In UDP mode, one Linux run counted every ICMP TTL probe at the destination's hop as lost. Seen once and not reproduced (#183).

Install

brew install tonhe/tap/viaduct

or brew upgrade viaduct if you already have it. Archives for macOS, Linux and Windows (amd64 and arm64), .deb and .rpm packages, and Windows installers are attached below.

Changelog

  • a6326fe Add agent loop callers; gate releases behind the release environment (#3)
  • 2e00c55 chore: remove ping-supplement and destination-exemption leftovers (#91)
  • 67268ff ci(agent-dev): a dispatch without an issue number runs the nightly selection (#122)
  • 9001ff6 ci(agent-dev): let the nightly selection see an unfinished triage run (#150)
  • 4d9bb4f ci(agent-loop): selection by type, protected review paths, lint and lab in the dev allowlist (#73)
  • 3f73819 ci(agent-loop): start the agent workflows from outside GitHub; drop the cron lines (#123)
  • 7e7e9be ci(release): check the binary's version before anything is published (#138)
  • eef9274 ci(release): pin GoReleaser, pass values to PowerShell through env, fail on a failed download (#220)
  • 8d1ab98 feat!: multi-target mode, interleaved probes, per-probe loss, network lab (#72)
  • 883df55 feat(export): CSV and DOT carry the headline loss, its kind and per-probe-type counts (#95)
  • 5ffe307 feat(export): mark a held verdict and carry the probe counts it was made from (#221)
  • 5e57806 feat(export): mark echo-ignored nodes and carry the hop's echo totals (#198)
  • 20e86f7 feat(tui): list hops beyond the destination in the debug log's hop lines, marked beyond=yes (#218)
  • 30ff6d4 fix(cli): exit with the sudo re-exec's status and print no second error (#238)
  • 43758a0 fix(config): write export_format in Save so saving settings keeps it (#222)
  • c6df19c fix(export): add CSV error column and a row for failed targets (#134)
  • 2d7740a fix(export): write DOT labels with DOT quoting so line breaks render (#132)
  • 1b3f4dd fix(hop): keep a hop's verdict when its echo totals fall below 20 samples (#155)
  • a118f2b fix(hop): keep probe counts intact across pause and reset (#118)
  • f29e1ca fix(hop): leave nodes that ignore echo out of a hop's echo totals (#137)
  • 2d13207 fix(probe): failed sends leave no record; ICMP errors never answer an echo (#96)
  • 1499c31 fix(probe): let the kernel fill the IPv6 UDP and TCP probe checksum (#176)
  • 7513e29 fix(probe): no probe send can block the round loop (#151)
  • 6371ccc fix(probe): read TCP replies from BPF on macOS, accept them only from the target (#194)
  • b03bccf fix(probe): send every probe of a trace from one source address (#237)
  • 3f0ef2a fix(probe): the echo tier sends on its own ICMP socket (#174)
  • b035799 fix(tui): Probe Detail shows the hop's loss and each node's share of replies (#97)
  • a9fdd48 fix(tui): a run ending on a snapshot round writes its hop lines once, as final (#202)
  • 791d6db fix(tui): ignore scroll keys in column view (#135)
  • 1d54949 fix(tui): keep hop table columns aligned on multi-node hops (#233)
  • 21a83bf fix(tui): keep key hints on a narrow status bar and show the path length (#139)
  • ecc638a fix(tui): leave the primary column out of Probe Detail in ICMP mode (#223)
  • 67651ae fix(tui): multi-target scrolling, bars and summary fit the terminal (#93)
  • f425b0b fix(tui): the status bar says '1 hop' for a one-hop path (#195)
  • c9c1401 fix: ignore the removed PingSupplement key; truthful version for plain builds (#90)
  • d22c772 fix: make build reports the tag's version; the release fails if the binary does not (#98)
  • 8a71305 fix: refuse link-local targets; full echo budget per target in report mode (#94)
  • 231280b test(probe): wait for the TCP listener before closing results (#230)