Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wait, can Linux not timestamp packets with the monotonic clock? Using wall time just feels wrong here.


Yup! The details of Linux networking API are often surprising.

I think if it's possible to change the ping algo to reduce the potential for wall clock change affecting the measurement.

For example, instead of using SO_TIMESTAMP to measure wall clock diffed with the send time, maybe it's possible to grab the wall clock just before recv() and use wall clock to measure the event-loop time only (which is way shorter than the ping rtt).




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: