meshpoint
meshpoint copied to clipboard
Feature: Initiate an on-demand Meshtastic traceroute to a node
Problem
Add a way to request a fresh Meshtastic traceroute to a selected node from the local dashboard. Receiving traceroute traffic, answering another node's probe, and displaying previously observed paths do not provide this capability.
Current behavior
Checked main at d7f2b7d, v0.8.0 RC at 1b2c8ff, and release-preparation head 78082ba:
src/decode/portnum_handlers.pydecodes captured traceroute payloads.frontend/js/packet_detail_modal.jsdisplays a basic route summary for captured packets.src/transmit/meshtastic_inbound_handler.py,src/transmit/tx_service.pyandsrc/transmit/meshtastic_builder.pyanswer incoming traceroute requests addressed to Meshpoint.- There is no dashboard/API flow to originate a traceroute request and track its result.
Related: #132 tracks a clearer node-level view of observed routes; its discussion explicitly separates requesting a fresh traceroute. #162 concerns relay markers and retaining return-route data, not initiating probes.
Proposed scope
- Add an explicit Request traceroute action for a selected Meshtastic node, with a defined transmit source and channel.
- Originate a protocol-compatible request through Meshpoint's supported transmit backend. Meshpoint's native gateway implementation must build the protocol request itself; do not assume it runs official Meshtastic firmware. Evaluate USB/meshtasticd-backed paths separately and clearly disable unsupported backends.
- Correlate the response with the outstanding request and destination; distinguish queued/sent, response received, timeout and send failure. A successful send or routing ACK alone is not a completed traceroute.
- Display the observation time, outward/return paths and available per-hop signal information. Missing hops or signal values remain unknown; do not imply a recorded path is a guaranteed current route.
- Apply existing transmit permissions, enabled/disabled state, channel/encryption rules and radio scheduling limits. Add a bounded cooldown/concurrency limit; no periodic probing or automatic retry loop.
- Reuse the route presentation from #132 where practical while keeping passive observations and actively requested results distinguishable.
Verification / acceptance
- Focused protocol tests for request encoding and request/response correlation, including unrelated, late and duplicate replies.
- API/UI tests for authorization, unsupported backends, TX disabled, send failure and timeout; confirm no transmission occurs simply by opening node details.
- Ensure existing inbound traceroute replies and passive decoding remain unchanged.
- Before declaring RF support, verify a manually initiated request and matching reply using an independent Meshtastic node; include direct and multihop coverage where available, recording backend and peer firmware versions.
Release scope
Track as follow-up feature work outside the frozen v0.8.0 RC. This issue does not schedule a release or authorize hardware testing.