You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To allow the rtt-rate to be passed as a float (so you can do for ex 1
RTT-sample every 0.1 RTT periods), I've used fixed-point arithmetic as
floats are not supported in BPF (or the kernel in general). I've never
tried to use fixed-point arithmetic before, so hopefully I haven't
screwed it up too badly.
Have limited the RTT-based sampling to a maximum of 10k*RTT in order
for overflow in fixed-point multiplication to be unlikely.
The RTT-interval is based on a smoothed RTT (moving average)
calculated the same way as for the TCP stack (srtt = 7/8*prev_rtt +
1/8*rtt).
Signed-off-by: Simon Sundberg <[email protected]>
0 commit comments