Computer Networking Basics

In the three-way handshake that establishes a TCP connection, what is the correct order of the packets exchanged?

  1. ASYN → ACK → FIN
  2. BACK → SYN → SYN+ACK
  3. CSYN → SYN+ACK → ACK
Show answer and explanation

Answer: C. SYN → SYN+ACK → ACK

In the three-way handshake, the client first requests a connection with a SYN and announces the first number of the data it will send (its initial sequence number). The server replies with a SYN+ACK, acknowledging (ACK) that and announcing its own initial sequence number. Finally the client returns an ACK, and both directions are ready. Confirming the numbers in both directions in three exchanges prevents mistaken connections, for example from old packets that arrive late. As a result, TCP needs at least one round-trip time (RTT) before data can start flowing. FIN is used to close a connection.

  • A. FIN is the flag used to close a connection.
  • B. It starts with a SYN requesting the connection; the acknowledging ACK comes after.
  • C. Correct. SYN, SYN+ACK and ACK establish the connection.
Practice this topic Back to topic

Related calculators

Books on Computer Networking Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Computer Networking Basics questions

  1. A client makes a new HTTPS connection (TLS 1.3 over TCP) to a web server with a round-trip time (RTT) of 100 ms. Roughly how long does it take until the response to the first request starts to arrive? Assume DNS resolution is already done, and ignore server processing time and data transfer time.
  2. Which correctly pairs protocols with the standard port numbers their servers use?
  3. In TCP flow control, what is the purpose of the receiver advertising its window size (receive window) to the sender?
  4. A TCP connection has a fixed receive window of 65536 bytes and an RTT of 10 ms. The link bandwidth is ample and there is no loss. Which is closest to the upper limit on this connection's throughput?
  5. Which correctly describes the basic idea of TCP congestion control?