August 2025
Intermediate to advanced
272 pages
6h 14m
English
TCP connections can be in one of three general phases: establishing the connection, transferring data, or terminating the connection. Let’s take a look at these.
TCP connections are established through a three-step handshake. Establishing a connection requires a server listening on a bound port. Once that passive listener is in place, the handshake goes as follows:
The client sends a SYN (for synchronize) to the server, asking to establish a connection. The SYN contains a sequence number that the client sets to a random number A.
To accept the connection, the server responds with a SYN-ACK. It sets the acknowledgment number to A + 1 and the sequence number of the SYN-ACK packet to a different random ...
Read now
Unlock full access