Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 23s8 days 9 hours 54 minutes 23 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 23s8 days 9 hours 54 minutes 23 seconds.

Sign in to watch this lesson
TCP · 3:40
How long should TCP wait for an ACK before resending? We time 60 real round trips from this Mac to a public web server, smooth them with K&R's exponentially weighted moving average (alpha = 0.125), add four times the deviation (beta = 0.25) to get the timeout, and watch three spikes pierce it. Then we read the kernel's own timer and find macOS adds about 200 ms on top, which on loopback is thousands of round trips.