Which statement correctly describes how TCP handles application message boundaries?
TCP, UDP, and Transport Services Online Quiz Questions
Use this free practice quiz with 20 questions to review TCP, UDP, and Transport Services, test your knowledge, and prepare for your next test or exam.
A host receives traffic addressed to several applications that share one IP address. Which transport-layer function uses port information to deliver each item to the correct application?
- A
Demultiplexing data to the appropriate socket and application
- B
Encrypting the payload before transmission
- C
Choosing the shortest IP routing path
- D
Retransmitting every datagram that lacks an acknowledgment
TCP and UDP port fields are 16 bits wide. What is the largest port-number value, in decimal?
Complete the statement: provides a connection-oriented, reliable, service.
An application sends three UDP datagrams separately. Which behavior should the receiving application expect if all three arrive?
- A
UDP combines all sends into one continuous stream.
- B
UDP preserves the boundaries of individual datagrams.
- C
UDP guarantees that every datagram arrives in order.
- D
UDP retransmits datagrams automatically when they are lost.
True or false: TCP flow control primarily protects the network path from overload, while TCP congestion control primarily protects the destination host's receive buffer.
- A
True
- B
False
Which services are provided by TCP? Select all correct choices.
- A
Retransmission of lost data
- B
In-order delivery to the application
- C
Suppression of duplicate application data
- D
Limiting data to what the receiver can buffer
- E
Preservation of separate application message boundaries
What is the standard TCP procedure used to synchronize initial sequence numbers and confirm that both endpoints can send and receive?
Complete the TCP model: usable sending window = (, ).
Which capabilities are not provided by UDP itself? Select all correct choices.
- A
Guaranteed delivery
- B
Retransmission of lost datagrams
- C
In-order delivery
- D
Receiver flow control
- E
General-purpose congestion control
- F
Preservation of datagram boundaries
Which application scenario is the best fit for UDP according to the material's decision example?
- A
A software update that must arrive completely and in order
- B
A database result that cannot tolerate missing bytes
- C
Live game-character positions sent every 20 milliseconds
- D
A file transfer requiring reliable delivery
An application has two components: a software-update downloader and a game that sends a character's position every 20 milliseconds. Recommend TCP or UDP for each component and justify both choices using reliability, ordering, latency, and application-level responsibilities.
Which statement best describes QUIC's relationship to UDP?
- A
UDP cannot support reliability or congestion control at any layer.
- B
QUIC runs over UDP and supplies substantial transport behavior above it.
- C
QUIC replaces IP and therefore does not use transport-layer packets.
- D
QUIC is simply TCP with a different port number.
Which property distinguishes UDP from TCP when an application sends three separate messages?
- A
UDP combines all sends into one continuous stream.
- B
UDP preserves each datagram as a separate message.
- C
UDP guarantees that every datagram arrives in order.
- D
UDP requires a three-way handshake before sending.
What does a transport-layer port number identify?
- A
A port number identifies an application endpoint on a host.
- B
A port number identifies the physical route between two networks.
- C
A port number guarantees that a packet will be delivered.
- D
A port number replaces the destination IP address.
True or false: Calling a UDP socket “connected” causes the remote peer to maintain TCP-like connection state.
- A
True
- B
False
A TCP receiver has successfully received every byte through sequence number 4,999. What acknowledgment sequence number should it send?
A TCP receiver’s buffer is nearly full, although the network path is otherwise lightly loaded. Which mechanism should limit the sender’s outstanding data?
- A
The sender is sending to too many different destination ports.
- B
TCP flow control, using the receiver’s advertised receive window.
- C
TCP congestion control, based only on network-path capacity.
- D
TCP retransmission control, which resends every segment.
True or false: After one endpoint sends a TCP FIN, the peer is still allowed to send data until the peer also closes its own direction of the connection.
- A
True
- B
False
A server receives traffic for a nonexistent TCP connection and must terminate the exchange abruptly. What three-letter TCP flag abbreviation should it use?