Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.
Transport LayerMedium
Q1. In TCP, what is the purpose of the window size field?
- A.Controlling flow by advertising buffer space✓ Correct
- B.Specifying the maximum segment size used
- C.Detecting errors in transmitted segments
- D.Identifying the application layer protocol
Explanation
The window size field implements flow control by telling the sender how many bytes the receiver is willing to accept, preventing the sender from overwhelming the receiver.
Report an error in this question
Transport LayerEasy
Q2. Which transport layer protocol provides reliable, connection-oriented service?
- A.IP
- B.ICMP
- C.UDP
- D.TCP✓ Correct
Explanation
TCP provides reliable, connection-oriented service with features like error detection, retransmission, flow control, and ordered delivery.
Report an error in this question
Transport LayerEasy
Q3. What is a socket in networking?
- A.A routing protocol name
- B.A type of cable connector
- C.A physical port on a device
- D.An IP address plus port number✓ Correct
Explanation
A socket is the combination of an IP address and a port number, uniquely identifying an endpoint for communication.
Report an error in this question
Transport LayerEasy
Q4. Which two protocols operate at the transport layer?
- A.ARP and RARP
- B.IP and ICMP
- C.HTTP and FTP
- D.TCP and UDP✓ Correct
Explanation
TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) are the two main transport layer protocols.
Report an error in this question
Transport LayerEasy
Q5. What is the purpose of the transport layer?
- A.Network-to-network routing
- B.Node-to-node frame delivery
- C.Signal encoding on media
- D.Process-to-process delivery✓ Correct
Explanation
The transport layer provides process-to-process (end-to-end) delivery using port numbers to identify specific applications.
Report an error in this question
Transport LayerMedium
Q6. What is the TCP mechanism for handling out-of-order segments?
- A.Buffering them indefinitely in memory
- B.Requesting retransmission of all data
- C.Discarding all out-of-order segments
- D.Using sequence numbers to reorder them✓ Correct
Explanation
TCP uses sequence numbers to detect and reorder out-of-order segments. The receiver buffers them and reassembles the data in the correct order.
Report an error in this question
Transport LayerEasy
Q7. Which well-known port is used by HTTP?
- A.25
- B.80✓ Correct
- C.21
- D.443
Explanation
HTTP uses well-known port 80. HTTPS uses port 443, FTP uses port 21, and SMTP uses port 25.
Report an error in this question
Transport LayerEasy
Q8. What does the checksum field in the UDP header provide?
- A.Error detection✓ Correct
- B.Flow control
- C.Congestion control
- D.Packet sequencing
Explanation
The UDP checksum provides error detection to verify that the data has not been corrupted during transmission.
Report an error in this question
Transport LayerEasy
Q9. What type of service does UDP provide?
- A.Unreliable, connectionless✓ Correct
- B.Reliable, connectionless
- C.Reliable, connection-oriented
- D.Unreliable, connection-oriented
Explanation
UDP provides unreliable, connectionless service. It does not guarantee delivery, ordering, or error recovery, making it faster but less reliable than TCP.
Report an error in this question
Transport LayerEasy
Q10. How many steps are in the TCP three-way handshake?
- A.5
- B.4
- C.2
- D.3✓ Correct
Explanation
The TCP three-way handshake has 3 steps: SYN, SYN-ACK, and ACK, used to establish a connection between client and server.
Report an error in this question
Transport LayerEasy
Q11. Which application typically uses UDP?
- A.DNS queries✓ Correct
- B.Web browsing
- C.Email sending
- D.File transfer
Explanation
DNS typically uses UDP for queries because they are small and the overhead of establishing a TCP connection is unnecessary. DNS uses TCP for zone transfers and large responses.
Report an error in this question
Transport LayerEasy
Q12. What is the range of port numbers?
- A.0 to 49151
- B.0 to 1023
- C.0 to 65535✓ Correct
- D.1 to 65535
Explanation
Port numbers range from 0 to 65535 (16 bits). They are divided into well-known (0-1023), registered (1024-49151), and dynamic/private (49152-65535).
Report an error in this question
Transport LayerMedium
Q13. What is the difference between TCP's flow control and congestion control?
- A.Congestion control is faster than flow control always
- B.Flow control is used in UDP; congestion control is for TCP
- C.Flow control protects receiver; congestion control protects network✓ Correct
- D.They are the same mechanism in TCP
Explanation
Flow control prevents the sender from overwhelming the receiver's buffer. Congestion control prevents the sender from overwhelming the network by adjusting the sending rate based on network conditions.
Report an error in this question
Transport LayerMedium
Q14. What is the maximum size of a TCP segment's data payload if the MSS is 1460 bytes?
- A.65535 bytes
- B.1500 bytes
- C.536 bytes
- D.1460 bytes✓ Correct
Explanation
The Maximum Segment Size (MSS) defines the largest amount of data that can be carried in a single TCP segment. If MSS is 1460, the payload is at most 1460 bytes.
Report an error in this question
Transport LayerMedium
Q15. What is the purpose of the TCP FIN flag?
- A.To synchronize the sequence numbers
- B.To establish a new connection
- C.To reset an existing connection
- D.To gracefully terminate a connection✓ Correct
Explanation
The FIN (Finish) flag is used to gracefully terminate a TCP connection. Each side sends a FIN to indicate it has no more data to send.
Report an error in this question
Transport LayerMedium
Q16. What is the size of the UDP header?
- A.12 bytes
- B.4 bytes
- C.20 bytes
- D.8 bytes✓ Correct
Explanation
The UDP header is 8 bytes (64 bits) consisting of four fields: source port, destination port, length, and checksum, each 2 bytes.
Report an error in this question
Transport LayerHard
Q17. In TCP congestion control, what triggers the slow start algorithm to switch to congestion avoidance?
- A.When all sent data has been acknowledged
- B.When the receiver window fills up completely
- C.After a retransmission timeout event occurs
- D.When congestion window reaches the ssthresh✓ Correct
Explanation
TCP switches from slow start (exponential growth) to congestion avoidance (linear growth) when the congestion window (cwnd) reaches the slow start threshold (ssthresh).
Report an error in this question
Transport LayerMedium
Q18. What port number does HTTPS use?
- A.143
- B.443✓ Correct
- C.80
- D.993
Explanation
HTTPS (HTTP Secure) uses port 443. It runs HTTP over TLS/SSL for encrypted web communication.
Report an error in this question
Transport LayerHard
Q19. What is the TIME_WAIT state in TCP used for?
- A.Waiting for lost data to be retransmitted
- B.Waiting for the server to respond to requests
- C.Performing the initial connection setup phase
- D.Ensuring old duplicate segments expire first✓ Correct
Explanation
TIME_WAIT ensures that delayed segments from the closed connection do not interfere with a new connection using the same socket pair. It lasts for 2*MSL (Maximum Segment Lifetime).
Report an error in this question
Transport LayerMedium
Q20. What is Nagle's algorithm in TCP?
- A.A routing algorithm for IP packets
- B.A congestion control mechanism for TCP
- C.An algorithm that buffers small segments✓ Correct
- D.An error correction algorithm for data
Explanation
Nagle's algorithm reduces the overhead of sending many small packets by buffering small segments and sending them together, improving network efficiency.
Report an error in this question
Transport LayerHard
Q21. What happens in TCP fast retransmit?
- A.The sender waits for a timeout before resending
- B.All unacknowledged segments are retransmitted
- C.The receiver requests immediate retransmission
- D.The sender resends after three duplicate ACKs✓ Correct
Explanation
TCP fast retransmit triggers retransmission after receiving three duplicate ACKs, indicating a likely packet loss, without waiting for the retransmission timeout.
Report an error in this question
Transport LayerMedium
Q22. How many steps are involved in graceful TCP connection termination?
- A.5
- B.2
- C.4✓ Correct
- D.3
Explanation
TCP connection termination uses a 4-step process (four-way handshake): FIN from initiator, ACK from other side, FIN from other side, and final ACK.
Report an error in this question
Transport LayerMedium
Q23. In TCP, what does a RST (Reset) flag indicate?
- A.Acknowledgment of data received
- B.Normal graceful termination
- C.An abrupt connection abort✓ Correct
- D.A request to synchronize
Explanation
The RST flag is used to abruptly abort a TCP connection. It can be sent when a connection request is received for a non-listening port or to immediately terminate an existing connection.
Report an error in this question
Transport LayerHard
Q24. In the TCP state diagram, what state does a client enter after sending a SYN?
- A.SYN_RECEIVED
- B.ESTABLISHED
- C.SYN_SENT✓ Correct
- D.LISTEN
Explanation
After a client sends a SYN to initiate a connection, it enters the SYN_SENT state and waits for a SYN-ACK from the server.
Report an error in this question
Transport LayerHard
Q25. What distinguishes QUIC from TCP?
- A.QUIC is only used for email protocols
- B.QUIC does not support stream multiplexing
- C.QUIC is slower but more reliable than TCP
- D.QUIC runs over UDP with built-in encryption✓ Correct
Explanation
QUIC runs over UDP, integrates TLS 1.3 encryption, supports connection migration, eliminates head-of-line blocking via stream multiplexing, and reduces handshake latency compared to TCP+TLS.
Report an error in this question
Transport LayerHard
Q26. What is the purpose of the TCP PSH (Push) flag?
- A.To indicate urgent data in the stream
- B.To establish a new TCP connection
- C.To deliver buffered data to the app now✓ Correct
- D.To reset the existing TCP connection
Explanation
The PSH flag tells the receiving TCP to push the buffered data to the application layer immediately without waiting for the buffer to fill, reducing latency for interactive applications.
Report an error in this question
Transport LayerHard
Q27. What is TCP SACK (Selective Acknowledgment)?
- A.A compression method for TCP segments
- B.An extension to report non-contiguous data blocks✓ Correct
- C.A method to acknowledge every single byte received
- D.A security feature for TCP authentication
Explanation
TCP SACK allows the receiver to acknowledge non-contiguous blocks of data, enabling the sender to retransmit only the missing segments rather than everything from the lost segment onward.
Report an error in this question
Transport LayerHard
Q28. In TCP Reno, what happens when three duplicate ACKs are received?
- A.The cwnd is reset to 1 MSS and slow start begins
- B.The TCP connection is terminated by the sender
- C.The cwnd is doubled and transmission continues
- D.The ssthresh is halved and fast recovery is entered✓ Correct
Explanation
In TCP Reno, three duplicate ACKs trigger fast retransmit and fast recovery: ssthresh is set to cwnd/2, and cwnd is set to ssthresh + 3 MSS, then linear increase continues.
Report an error in this question
Transport LayerHard
Q29. What is a SYN flood attack?
- A.Sending many SYNs without completing handshakes✓ Correct
- B.Flooding the network with excessive UDP packets
- C.Sending too much data at once to overflow buffers
- D.Sending many malformed DNS query messages
Explanation
A SYN flood attack sends many SYN packets with spoofed source addresses. The server allocates resources for each half-open connection, eventually exhausting memory and being unable to serve legitimate requests.
Report an error in this question
Transport LayerHard
Q30. What is the Silly Window Syndrome in TCP?
- A.A routing loop caused by TCP misconfiguration
- B.A security vulnerability in older TCP stacks
- C.A DNS resolution error affecting TCP connections
- D.Inefficient exchange of tiny segments due to small windows✓ Correct
Explanation
Silly Window Syndrome occurs when the receiver advertises a very small window, causing the sender to send tiny segments with high overhead relative to the data. Clark's solution and Nagle's algorithm help prevent this.
Report an error in this question