TCP finite state machine.