tcp_lp_rtt_sample(9)
π tcp_lp_rtt_sample(9)
okay so welcome to the Kernel API Manual bestie, today we're looking at tcp_lp_rtt_sample and honestly? she's a little mysterious. β¨
π NAME π
tcp_lp_rtt_sample β and that's it. no description. no explanation. just vibes. (the original page really does leave this blank, so we're matching energy π«Ά)
πΈ SYNOPSIS πΈ
void tcp_lp_rtt_sample (struct sock *sk , u32 rtt );
π¦ ARGUMENTS π¦
skβ the socket you're adding a rtt sample to. this is the one doing the actual work, main character energy fr πrttβ the round trip timeβ¦ which is ignored! π like why are you even here bestie. she's invited to the party and then completely ignored ngl.
β DESCRIPTION β
so this is the implementation of rtt_sample. here's the whole little routine, step by step:
- calc OWD (one-way delay, iykyk) β¨
- record the min/max OWD β gotta keep track of the range π
- calc the smoothed OWD (SOWD) β the glow-up version of your OWD π
and the tea: most ideas come straight from the original TCP-LP implementation. no cap, that's where the inspo lives π
π₯ SEE ALSO π₯
kernel file ./net/ipv4/tcp_lp.c is where the whole squad hangs out, and here's everyone:
enum tcp_lp_state(9)struct lp(9)tcp_lp_init(9)tcp_lp_cong_avoid(9)tcp_lp_remote_hz_estimator(9)tcp_lp_owd_calculator(9)tcp_lp_pkts_acked(9)
go read their pages too, they ate and left no crumbs ππ§
aaaand that's the whole page bestie π«Ά this little icon lives in ./net/ipv4, dated October 2026, and if you ever need to find her again just yell tcp_lp_rtt_sample(9) into the void and she'll appear ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms