Routelearn.net
Course menu

Unit 7: TCP, UDP and PortsLesson 7.2.4 (12 of 20 in this unit)45 of 84 in the Network Fundamentals course

Test: TCP & UDP

Check your understanding of the whole course.

Intermediate · 10 min read

TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are the transport layer protocols that carry data between applications, which are identified by port numbers. TCP sets up a connection and delivers data reliably and in order; UDP sends each datagram on its own without a connection or any confirmation of delivery.

In simple terms: Both get data to the right application on a computer. TCP makes sure everything arrives in order, while UDP sends quickly and leaves any checking to the application.

This test has twelve questions on the whole course. Answer each one, then read the explanation. If you get a question wrong, go back to the lesson named in its explanation.

Predict · scenario 1

1. A packet has reached the right PC, which is running a browser, an email app and a chat app. What does the transport layer add that IP alone does not?

Predict · scenario 2

2. Your laptop picks source port 51515 for a new connection to a web server. What kind of port is this?

Predict · scenario 3

3. Two PCs connect to the same server on TCP 443, both from source port 50000. How does the server keep them apart?

Predict · scenario 4

4. You are checking a list of firewall rules. Which service and port pair is correct?

Predict · scenario 5

5. A capture shows a TCP segment with no options. How long is its TCP header?

Predict · scenario 6

6. A client opens a TCP connection to a web server. In what order are the handshake messages sent?

Predict · scenario 7

7. A client sends a SYN, and the server immediately replies with RST. What error does the client application report?

Predict · scenario 8

8. A segment with sequence number 2001 carries 500 bytes and arrives safely. Which acknowledgement number confirms it?

Predict · scenario 9

9. A TCP sender resends a segment straight away, before its retransmission timer runs out. What caused this?

Predict · scenario 10

10. A fast server sends a file to a slow laptop. Which device sets the window size that stops the server from overwhelming the laptop?

Predict · scenario 11

11. A client finishes a download and closes the connection first. Which side then waits in the TIME_WAIT state?

Predict · scenario 12

12. A company is choosing a transport protocol for its internet phone calls. Why do voice calls normally use UDP instead of TCP?