Skip to content

telemetry: add verbose logging to TWAMP reflectors and senders#3334

Merged
nikw9944 merged 1 commit intomainfrom
nikw9944/doublezero-3301
Mar 20, 2026
Merged

telemetry: add verbose logging to TWAMP reflectors and senders#3334
nikw9944 merged 1 commit intomainfrom
nikw9944/doublezero-3301

Conversation

@nikw9944
Copy link
Contributor

Summary

Add comprehensive debug logging to TWAMP reflectors and senders to help diagnose connectivity issues between geoprobe programs.

Changes

TWAMP Reflectors (receive probes, send replies)

  • BasicReflector: Log received probes and sent replies with sequence numbers
  • LinuxReflector: Log signed probes received/sent with sender info
  • Warning on auth failures: Changed unauthorized pubkey drops from debug to warn level

TWAMP Senders (send probes, receive replies)

  • LinuxSender: Added SetLogger method and debug logging for reply verification failures
  • geoprobe-target-sender: Now sets logger when verbose mode enabled

Testing Verification

  • All TWAMP packet flows are now logged when -verbose flag is used
  • Misconfigurations (wrong pubkeys) generate warnings visible without verbose mode
  • Helps identify issues like:
    • Probes received but not replied to
    • Reply signature verification failures
    • Authority pubkey mismatches
    • Unauthorized sender attempts

Fixes #3301

- Add debug logging for signed TWAMP probes received and replies sent
- Add debug logging for reply verification failures in senders
- Log warning (not debug) when dropping probes from unauthorized pubkeys
- Set logger on sender in geoprobe-target-sender when verbose mode enabled
- Helps debug connectivity issues and misconfigurations between geoprobe programs
@nikw9944 nikw9944 force-pushed the nikw9944/doublezero-3301 branch from 36c7ee7 to b0998ea Compare March 20, 2026 19:39
@nikw9944 nikw9944 requested a review from ben-dz March 20, 2026 19:39
@nikw9944 nikw9944 enabled auto-merge (squash) March 20, 2026 19:40
@nikw9944 nikw9944 merged commit 7a3b010 into main Mar 20, 2026
31 checks passed
@nikw9944 nikw9944 deleted the nikw9944/doublezero-3301 branch March 20, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

geolocation: improved agent and target debug logging

2 participants