tcp_lp_owd_calculator(9)
π§ tcp_lp_owd_calculator(9) π§
Okay bestie, this one is from the Kernel API Manual, and itβs a tiny little kernel function page. Weβre gonna read it together, no cap. π
πΈ NAME πΈ
tcp_lp_owd_calculator β thatβs the function name, and the original NAME line is literally just that name plus a bare - with no description after it. Iconic minimalism, honestly. π
β¨ SYNOPSIS β¨
The signature is exactly this, copied with love:
u32 tcp_lp_owd_calculator (struct sock *sk );
So yeah, it returns a u32, and it takes a struct sock *sk. Slay. π
π¦ ARGUMENTS π¦
skβ the socket weβre calculating the one way delay for, bestie. Thatβs the whole argument vibe. πΈ
π DESCRIPTION π
This function calculates the one way delay, aka OWD, in relative format. Periodt. β¨
Now the lore: the original implementation did OWD as minus of the remote time difference to the local time difference, directly. Because this time difference is just simply equal to RTT, when the network status is stable, the remote RTT will equal the local RTT, and the resulting OWD goes into zero. π
That seems to be a bug, and so we fixed it. No cap, thatβs the whole story. π
π SEE ALSO π
- Kernel file
./net/ipv4/tcp_lp.c 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_rtt_sample(9)tcp_lp_pkts_acked(9)
byeee π«Ά β sourced from ./net/ipv4, dated October 2026.
π¦ 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