TCP basics

TCP is one of the key protocols in today’s Internet. A TCP connection always starts with a three-way handshake. The exercises below should help you to improve your understandings of this first phase of a TCP connection.

Please log in to see this exercise
Please log in to see this exercise
Please log in to see this exercise
Please log in to see this exercise
Please log in to see this exercise
Please log in to see this exercise

Once the connection is established, the client and the server can exchange data and acknowledgments.

Please log in to see this exercise
Please log in to see this exercise
Please log in to see this exercise
Please log in to see this exercise

A connection ends with the transmission of segments that include the FIN flag that marks the end of the data transfer.

Please log in to see this exercise

TCP can be extended by using options that are negotiated during the three-way handshake.

Please log in to see this exercise
Please log in to see this exercise
Please log in to see this exercise

With your knowledge of TCP, you should now be able to reorder all the segments exchanged over a TCP connection.

Please log in to see this exercise

Footnotes