Predict Exam Questions Flashcards
(90 cards)
What guarantees does TCP provide?
Reliable, ordered, and error-checked delivery of data.
What guarantees does UDP provide?
None — it’s connectionless and does not guarantee delivery or order.
Which protocol is better for streaming video: TCP or UDP?
UDP — it tolerates some loss and has lower latency.
Which protocol is better for sending emails: TCP or UDP?
TCP — email protocols require reliable delivery.
What is the main benefit of using UDP over TCP?
Lower overhead and faster delivery for real-time data.
Why might you choose TCP over UDP?
To ensure data arrives intact, in order, and with error-checking.
Does UDP have congestion control?
No, UDP does not have built-in congestion control.
Which protocol uses a three-way handshake to establish a connection?
TCP.
Which protocol is commonly used for DNS queries?
UDP.
Why does DNS sometimes use TCP?
For larger responses (over 512 bytes) or zone transfers.
What is TCP’s window scaling used for? (sliding window mechanism)
To manage the flow of unacknowledged data between sender and receiver.
(keeps track of how many bytes (or frames) have been sent but not yet ACKed)
What does TCP use to detect lost packets?
Acknowledgements (ACKs) and timeouts.
What is selective acknowledgement (SACK)?
An extension that allows TCP to acknowledge non-contiguous packets.
What is the purpose of TCP window scaling?
To allow larger window sizes in high-bandwidth networks.
How does TCP avoid congestion?
By adjusting the congestion window using algorithms like slow start and congestion avoidance.
What is cumulative acknowledgement in TCP?
Acknowledging the last byte received in order.
Why are delayed ACKs used in TCP?
To reduce the number of small packets sent.
How does TCP ensure data is delivered in order?
By using sequence numbers and reordering data at the receiver.
What is the initial congestion window in TCP used for?
To control the amount of data sent at the start of a connection.
Why does TCP use retransmission?
To resend lost or corrupted packets.
What is network latency?
The time it takes for a data packet to travel from source to destination.
What is the bandwidth-delay product?
The amount of data that can be in transit in a network.
Why is TCP inefficient in long fat networks?
Its default window size limits throughput over high-delay links.
How can you improve TCP performance over long distances?
Enable window scaling.
Could use larger buffers, but could cause Bufferbloat. So use with Active Queue Management. (AQM)