mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-12-01 08:51:30 +00:00
- 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.