0
0
Computer Networksknowledge~20 mins

Three-way handshake in Computer Networks - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
TCP Connection Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Purpose of the Three-way Handshake

What is the main purpose of the three-way handshake in TCP connections?

ATo encrypt data before transmission to ensure security
BTo establish a reliable connection by synchronizing sequence numbers between client and server
CTo check the bandwidth availability between two hosts
DTo immediately transfer data without any delay
Attempts:
2 left
💡 Hint

Think about what needs to happen before data can be sent reliably.

📋 Factual
intermediate
2:00remaining
Sequence of Messages in Three-way Handshake

Which sequence correctly represents the three messages exchanged during the TCP three-way handshake?

AACK, ACK, SYN
BACK, SYN, SYN-ACK
CSYN-ACK, SYN, ACK
DSYN, SYN-ACK, ACK
Attempts:
2 left
💡 Hint

The first message initiates the connection.

🔍 Analysis
advanced
2:00remaining
Impact of Missing Final ACK in Three-way Handshake

What happens if the final ACK message from the client is lost during the three-way handshake?

AThe client will close the connection immediately
BThe connection is immediately established without any issues
CThe server will retransmit SYN-ACK and wait until it receives the ACK to establish the connection
DThe server will send data without waiting for the ACK
Attempts:
2 left
💡 Hint

Consider how TCP ensures reliability in message delivery.

Comparison
advanced
2:00remaining
Difference Between Three-way Handshake and Four-way Handshake

Which statement correctly distinguishes the TCP three-way handshake from the four-way handshake used in connection termination?

AThe three-way handshake establishes a connection, while the four-way handshake gracefully closes it
BThe four-way handshake is faster and replaces the three-way handshake in modern TCP
CBoth handshakes are used to establish connections but differ in encryption methods
DThe three-way handshake is used only for UDP connections
Attempts:
2 left
💡 Hint

Think about connection setup versus connection teardown.

Reasoning
expert
2:00remaining
Why is the Three-way Handshake Considered Reliable?

Why does the TCP three-way handshake provide a reliable way to establish a connection over an unreliable network?

ABecause it uses acknowledgments and sequence numbers to confirm both sides are ready and synchronized
BBecause it encrypts all messages to prevent data loss
CBecause it sends data multiple times regardless of acknowledgments
DBecause it uses UDP packets which are faster and more reliable
Attempts:
2 left
💡 Hint

Consider how TCP handles message loss and ordering.