add tcp_state_machine

Signed-off-by: Weiping Pan <panweiping3@gmail.com>