How TCP connection works

This post describes how to see TCP connection establishment and termination as packets using tcpdump on linux. Preparing Install the following commands on our linux. tcpdump nc telnet netstat Start a TCP connection establishment Start TCP connection using nc command with l,k option. Open another terminal and verify 12345 port is listening using netstat command. … Continue reading How TCP connection works