librespeed / librespeed/speedtest-rust
Use TCP advance stats to understand RTT fluctuations
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 249
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
Compared to other speed test tools, this implementation looks interesting since it uses Rust. We can extract additional statistics directly from the socket handle.
On Linux, the TCP_INFO socket option provides detailed metrics about TCP packet flow. One particularly useful parameter is rtt_var, which gives insight into RTT fluctuations (jitter).
This parameter is used in the myspeed.ai project to estimate Wi-Fi/mobile signal strength. You can refer to their implementation here:
https://github.com/winnie264/myspeed.ai/blob/61043023f551a5fdc399b0a9d8bc89d4ba206efc/include/httplib.h#L2466C29-L2466C51
I can add a similar change to calculate and expose this parameter, which would help measure connection stability more accurately.
Will that be accepted?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating how the Rust backend accesses the socket handle and exposes connection statistics, then read Linux's TCP_INFO documentation and compare the referenced myspeed.ai implementation at include/httplib.h around line 2466. Done means rtt_var is calculated and exposed consistently on Linux, with the platform limitations documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, rust
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100