Add logging module and sort TCP sequence number

Sort TCP sequence number in connection2