Files
NTrace-core/cmd
tsosunchia 233d4eea5d Implement per-hop independent MTR scheduler and associated tests
- Added `mtr_scheduler.go` to implement a per-hop independent scheduling mechanism for MTR (My Traceroute) probes.
- Introduced `mtrTTLProber` interface for probing TTLs and handling probe results.
- Implemented `runMTRScheduler` function to manage the scheduling of probes based on TTL, handle errors, and aggregate results.
- Added configuration options for hop intervals, maximum hops, and error handling.
- Created `mtr_scheduler_test.go` to include comprehensive unit tests for the scheduler, covering various scenarios such as maximum probes per hop, context cancellation, destination detection, error budgets, and reset functionality.
- Mocked TTL prober to simulate probe responses and track probe counts for testing.
2026-02-28 15:47:40 +08:00
..