Notes

Notes on engineering, physics, and software.

Window Scaling flag in TCP

Throughput on a TCP connection is a function of how much data you can have in flight and how long an acknowledgement takes to come back. With window scaling hard coded to 0, the window caps at 65,535 bytes, which is the whole explanation for a 2.62 Mbps ceiling at a 200ms round trip.

Read post 1 min

Cross Platform Networking Application

A team had an encryption algorithm they wanted to test in the field, which meant shim code to run it on every platform they cared about. The hard part turned out to be the shim across operating systems that each do networking their own way, and the fix was starting from the most constrained ecosystem.

Read post 2 min

What AI Can't Replace Yet

On one engagement I wrote not a single line of C++, which raised an obvious question about my own value. The answer came down to the framework: where the shape of the system is already decided, AI writes good code, and where nothing is settled yet, its judgment calls are often wrong.

Read post 2 min