[PR #1725] [MERGED] Add latency checks to peer connection and status output #14207

Closed
opened 2026-08-05 02:09:35 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1725
Author: @pascal-fischer
Created: 3/18/2024
Status: Merged
Merged: 3/20/2024
Merged by: @pascal-fischer

Base: mainHead: feature/peer-healthcheck


📝 Commits (10+)

  • 67cf2b1 adding peer healthcheck
  • e8c1c40 Merge branch 'main' into feature/peer-healthcheck
  • 504d8b0 generate proto file
  • 63c5fa9 fix return in udp mux and replace with continue
  • c0a1032 use ice agent for latency checks
  • 48def2b fix status output
  • 45612db remove some logs
  • 5127746 fix status test
  • 8e6b2d0 revert bind and ebpf code
  • 7d299ee fix error handling on binding response callback

📊 Changes

9 files changed (+252 additions, -185 deletions)

View changed files

📝 client/cmd/status.go (+5 -1)
📝 client/cmd/status_test.go (+11 -0)
📝 client/internal/peer/conn.go (+18 -0)
📝 client/internal/peer/status.go (+17 -0)
📝 client/proto/daemon.pb.go (+168 -152)
📝 client/proto/daemon.proto (+2 -0)
📝 client/server/server.go (+3 -0)
📝 go.mod (+10 -8)
📝 go.sum (+18 -24)

📄 Description

Describe your changes

This PR uses the ice agents healthchecks to extend out connection object with the latency between peers. This is also added to the status details output of the CLI.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1725 **Author:** [@pascal-fischer](https://github.com/pascal-fischer) **Created:** 3/18/2024 **Status:** ✅ Merged **Merged:** 3/20/2024 **Merged by:** [@pascal-fischer](https://github.com/pascal-fischer) **Base:** `main` ← **Head:** `feature/peer-healthcheck` --- ### 📝 Commits (10+) - [`67cf2b1`](https://github.com/netbirdio/netbird/commit/67cf2b1bc26240dc03203286ce39079e00ea6621) adding peer healthcheck - [`e8c1c40`](https://github.com/netbirdio/netbird/commit/e8c1c40fe516ace4de11d6416ca22928125ca94a) Merge branch 'main' into feature/peer-healthcheck - [`504d8b0`](https://github.com/netbirdio/netbird/commit/504d8b0f8059bbbe23a2baa7091b32c8343c3fd2) generate proto file - [`63c5fa9`](https://github.com/netbirdio/netbird/commit/63c5fa91338272f846a9025f4977e3310b7290d3) fix return in udp mux and replace with continue - [`c0a1032`](https://github.com/netbirdio/netbird/commit/c0a1032d80f4a629b724df9ba21ad01b49f9115f) use ice agent for latency checks - [`48def2b`](https://github.com/netbirdio/netbird/commit/48def2b000562d2e6674a3cdf342e4aadcf8bc9e) fix status output - [`45612db`](https://github.com/netbirdio/netbird/commit/45612dbf0206244abe20a629697959da106ee1a1) remove some logs - [`5127746`](https://github.com/netbirdio/netbird/commit/5127746b830b09968ca59f02aa37abef4217ee6d) fix status test - [`8e6b2d0`](https://github.com/netbirdio/netbird/commit/8e6b2d00bebc127de57efae2dc319da8ea27a575) revert bind and ebpf code - [`7d299ee`](https://github.com/netbirdio/netbird/commit/7d299ee48bbf17b550b1ae4b061484881b14fc8e) fix error handling on binding response callback ### 📊 Changes **9 files changed** (+252 additions, -185 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/status.go` (+5 -1) 📝 `client/cmd/status_test.go` (+11 -0) 📝 `client/internal/peer/conn.go` (+18 -0) 📝 `client/internal/peer/status.go` (+17 -0) 📝 `client/proto/daemon.pb.go` (+168 -152) 📝 `client/proto/daemon.proto` (+2 -0) 📝 `client/server/server.go` (+3 -0) 📝 `go.mod` (+10 -8) 📝 `go.sum` (+18 -24) </details> ### 📄 Description ## Describe your changes This PR uses the ice agents healthchecks to extend out connection object with the latency between peers. This is also added to the status details output of the CLI. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:09:35 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#14207