TCP ACK generation [RFC 1122, RFC 2581]
in-order segment arrival,
everything else already ACKed
in-order segment arrival,
out-of-order segment arrival
higher-than-expect seq. #
partially or completely fills gap
delayed ACK. Wait up to 500ms
for next segment. If no next segment,
send duplicate ACK, indicating seq. #
immediate ACK if segment starts