Skip to content

feat(proxy): split status.skysocks goodput up/down + per-direction share bars + direct-leg rtt fix - #4232

Merged
0pcom merged 1 commit into
skycoin:developfrom
0pcom:proxytree
Aug 26, 2026
Merged

feat(proxy): split status.skysocks goodput up/down + per-direction share bars + direct-leg rtt fix#4232
0pcom merged 1 commit into
skycoin:developfrom
0pcom:proxytree

Conversation

@0pcom

@0pcom 0pcom commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Three status.skysocks route-tree refinements (also skywire cli proxy tree):

  • Split goodput up/downgoodput_up_bps/goodput_down_bps sampled separately (sum kept as goodput_bps), shown next to the ↑/↓ byte totals instead of one combined column. Also restores goodput on the CLI proxy tree, which had dropped it.
  • Per-direction bandwidth-share bars████░ fixed-width meters showing each route’s fraction of the route-group aggregate up-/down-goodput. These existed in the pre-feat(proxystatus): fold per-leg mux table + full routes into one route tree #4137 mux table and were lost in the route-tree unification; re-added in the shared RouteTree so CLI and HTML stay unified.
  • Direct-leg rtt fix — a direct (1-hop) transport showed route rtt ~135ms but transport rtt ~2828ms because tp.GetLatency() returns the RAW last sample from a 60s ping (SetLatency overwrites Avg with no EWMA), so one unlucky sample stuck for a minute. Hop-0 now shows the live E2E route rtt for a direct leg; tp.GetLatency() is untouched for route-finder/tp ls/policy scoring, and multihop legs keep the near-edge transport RTT on hop 0. Developed with AI assistance (Claude).

…re bars, fix direct-leg rtt

status.skysocks route tree + 'proxy tree':
- Goodput split into per-direction rates (goodput_up_bps / goodput_down_bps,
  sampled separately in snapshotLegs; goodput_bps kept as the sum) shown next to
  the up/down byte totals instead of one combined column. Also fixes the CLI
  'proxy tree' path, which dropped goodput entirely.
- Per-direction bandwidth-SHARE bars (████░, fixed width) restored — this route's
  fraction of the route-group aggregate up-/down-goodput. The original share bars
  lived in the pre-skycoin#4137 mux table; re-added in the shared RouteTree so CLI and
  HTML stay unified.
- Direct-leg latency: hop-0 now shows the live E2E route rtt for a direct leg
  instead of tp.GetLatency()'s RAW last 60s-cadence sample (SetLatency overwrites
  Avg with no EWMA), which made the transport rtt disagree with the smoothed route
  rtt for up to a minute. tp.GetLatency() is left untouched for route-finder / tp
  ls / policy scoring; multihop legs keep the near-edge transport RTT on hop 0.
@0pcom
0pcom merged commit 89c4a4f into skycoin:develop Aug 26, 2026
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