TCP vs UDP
- 51Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
51 questions
- 1Layer 4 provides_____transfer of data between end hosts.
Hint
Think of the Layer's purpose: it delivers data unchanged, hiding network details.
Answer
transparent
- 2The addresses used at Layer 4 are called_____.
Hint
These are numeric identifiers, distinct from physical interfaces.
Answer
port numbers
- 3Port numbers identify the_____layer protocol being used.
Hint
Think of the layer above Layer 4 in the OSI model.
Answer
Application
- 4The process of using port numbers to manage multiple simultaneous communication sessions is called_____.
Hint
It allows a host to handle several data streams concurrently.
Answer
session multiplexing
- 5IANA defines well-known port numbers in the range 0 to_____.
Hint
These ports are strictly regulated and used by major protocols.
Answer
1023
- 6IANA defines registered port numbers in the range 1024 to_____.
Hint
These require registration but are less strictly controlled.
Answer
49151
- 7IANA defines ephemeral (private/dynamic) port numbers in the range 49152 to_____.
Hint
Hosts typically use this range for randomly chosen source ports.
Answer
65535
- 8Hosts randomly select source port numbers from the_____range.
Hint
This range is also called private or dynamic.
Answer
ephemeral
- 9The total number of available port numbers (0–65535) is 2 to the power of_____.
Hint
Each port field in the TCP/UDP header is 16 bits.
Answer
16
- 10The Layer 4 PDU for TCP is called a_____.
Hint
Just as a Layer 3 PDU is a packet and Layer 2 is a frame.
Answer
segment
- 11TCP is a_____protocol, meaning it establishes a connection before sending data.
Hint
It uses a handshake to set up the connection.
Answer
connection-oriented
- 12TCP provides reliable communication through_____and retransmission.
Hint
The receiver confirms receipt of data.
Answer
acknowledgments
- 13TCP uses_____numbers to sequence segments and allow out-of-order reassembly.
Hint
These numbers are in the TCP header.
Answer
sequence
- 14TCP provides_____control using the Window Size field to prevent overwhelming the receiver.
Hint
It regulates the data transmission rate.
Answer
flow
- 15The process to establish a TCP connection is called the_____handshake.
Hint
It involves three message exchanges.
Answer
three-way
- 16The first step of the TCP three-way handshake involves sending a segment with the_____flag set.
Hint
This flag synchronizes sequence numbers.
Answer
SYN
- 17The second step of the TCP three-way handshake involves sending a segment with the SYN and_____flags set.
Hint
This flag acknowledges receipt of the SYN.
Answer
ACK
- 18The third step of the TCP three-way handshake involves sending a segment with the_____flag set.
Hint
This finalizes the connection.
Answer
ACK
- 19The process to terminate a TCP connection is sometimes called the_____handshake.
Hint
It involves four message exchanges.
Answer
four-way
- 20In TCP, the acknowledgment number indicates the next expected_____number.
Hint
This is part of forward acknowledgment.
Answer
sequence
- 21TCP uses_____acknowledgment, where the ack number is the next expected sequence number.
Hint
It looks ahead rather than confirming the last received.
Answer
forward
- 22If a TCP segment is not acknowledged, the sender will_____it.
Hint
This ensures reliability.
Answer
retransmit
- 23The TCP header field that controls how much data can be sent before an acknowledgment is required is the_____field.
Hint
This field enables flow control.
Answer
window size
- 24TCP dynamically adjusts the window size using a mechanism called the_____window.
Hint
It moves as data is acknowledged.
Answer
sliding
- 25The TCP header fields for source and destination port are each_____bits long.
Hint
This determines the total number of available ports.
Answer
16
- 26In the TCP header, the flags used to establish a connection are SYN and_____.
Hint
Both flags are set in the second handshake step.
Answer
ACK
- 27UDP is a_____protocol; it does not establish a connection before sending data.
Hint
It sends data immediately without setup.
Answer
connectionless
- 28UDP provides_____communication; it does not guarantee delivery.
Hint
It makes an effort but no promises.
Answer
best-effort
- 29UDP does not provide_____for lost segments.
Hint
Once data is sent, it's not resent automatically.
Answer
retransmission
- 30UDP does not provide_____of segments if they arrive out of order.
Hint
It has no sequence numbers.
Answer
sequencing
- 31UDP does not provide_____control; it has no mechanism to adjust data flow.
Hint
It does not use windowing.
Answer
flow
- 32The UDP header contains four fields: source port, destination port, length, and_____.
Hint
This field checks for errors.
Answer
checksum
- 33FTP uses TCP ports 20 and_____.
Hint
One port is for data, the other for control.
Answer
21
- 34SSH uses TCP port_____.
Hint
This port is used for secure remote CLI access.
Answer
22
- 35Telnet uses TCP port_____.
Hint
An older, unencrypted remote access protocol.
Answer
23
- 36SMTP uses TCP port_____.
Hint
This protocol is used for sending email.
Answer
25
- 37HTTP uses TCP port_____.
Hint
This is the standard port for web traffic.
Answer
80
- 38POP3 uses TCP port_____.
Hint
This protocol retrieves email from a server.
Answer
110
- 39HTTPS uses TCP port_____.
Hint
The secure version of HTTP.
Answer
443
- 40DHCP uses UDP ports 67 and_____.
Hint
One port is for the server, the other for the client.
Answer
68
- 41TFTP uses UDP port_____.
Hint
A simpler file transfer protocol than FTP.
Answer
69
- 42SNMP uses UDP ports 161 and_____.
Hint
One port is for queries, the other for traps.
Answer
162
- 43Syslog uses UDP port_____.
Hint
This port is used for system logging messages.
Answer
514
- 44DNS typically uses UDP, but can use_____in some situations (e.g., zone transfers).
Hint
This protocol provides connection-oriented service.
Answer
TCP
- 45The File Transfer Protocol (FTP) uses the_____protocol at the transport layer.
Hint
FTP requires reliable delivery.
Answer
TCP
- 46The Simple Mail Transfer Protocol (SMTP) uses_____at the transport layer.
Hint
Email delivery requires reliability.
Answer
TCP
- 47The Trivial File Transfer Protocol (TFTP) uses_____at the transport layer.
Hint
It is simpler and does not guarantee delivery.
Answer
UDP
- 48The Domain Name System (DNS) typically uses_____at the transport layer.
Hint
It's efficient for small queries.
Answer
UDP
- 49TCP is preferred for applications that require_____communication, such as file downloads.
Hint
It ensures data arrives complete and in order.
Answer
reliable
- 50UDP is preferred for_____-sensitive applications such as voice and video.
Hint
These applications cannot tolerate retransmission delays.
Answer
delay
- 51TFTP uses UDP but provides_____within the application itself.
Hint
It simulates TCP-like features at a higher layer.
Answer
reliability

Ask anything
We've read this whole study set, so questions about it get the best answers.