TCP vs UDP
This study set covers the fundamental differences between TCP and UDP, detailing their characteristics, use cases, and performance metrics essential for understanding networking protocols.
Quiz(72 questions)
1. What is the primary characteristic of UDP?
Terms in this Study Set(72)
TCP Characteristics(20)
What does TCP stand for?
Transmission Control Protocol.
True or False: TCP is connection-oriented.
True. It establishes a connection before transmitting data.
Describe the reliability of TCP.
TCP ensures reliable data transmission through acknowledgments and retransmissions.
What is a TCP segment?
A TCP segment is a unit of data transmitted over TCP, containing header and payload.
Compare TCP and UDP in terms of error recovery.
TCP has built-in error recovery; UDP does not.
Fill in the blank: TCP uses __________ to manage data flow.
flow control mechanisms.
What is the purpose of TCP handshaking?
To establish a reliable connection before data transfer begins.
True or False: TCP allows for duplicate packets.
False. TCP ensures that packets are delivered in order without duplicates.
What is a port number in TCP?
A port number identifies specific processes or services on a host.
Explain the role of the TCP header.
The TCP header contains control information such as source and destination ports, sequence numbers, and flags.
What is flow control in TCP?
Flow control prevents a sender from overwhelming a receiver by managing data transmission rates.
True or False: TCP is suitable for real-time applications.
False. TCP's reliability may introduce delays unsuitable for real-time scenarios.
What does sequence number indicate in TCP?
It indicates the order of bytes sent, helping to assemble the data correctly.
What is the TCP window size?
The TCP window size determines how much data can be sent before needing an acknowledgment.
Describe the three-way handshake process.
- SYN: Client requests connection. - SYN-ACK: Server acknowledges. - ACK: Client confirms connection.
Fill in the blank: TCP connections are established through a __________.
three-way handshake.
What is a TCP timeout?
A TCP timeout occurs when an acknowledgment is not received in a specified time, leading to retransmission.
Describe TCP's congestion control mechanism.
It adjusts the rate of data transmission based on network congestion to prevent packet loss.
True or False: TCP is faster than UDP.
False. TCP's features make it slower than UDP.
What are TCP flags?
TCP flags are control bits used to manage connection state, such as SYN, ACK, FIN.
UDP Characteristics(20)
What is the main feature of UDP?
UDP is a connectionless protocol, meaning it does not establish a connection before sending data.
True or False: UDP guarantees message delivery.
False. UDP does not guarantee delivery, making it suitable for applications where speed is prioritized over reliability.
What does it mean that UDP is 'unreliable'?
UDP may lose packets, deliver them out of order, or duplicate packets without any notification.
How does UDP handle error checking?
UDP uses a simple checksum for error detection, but it does not provide mechanisms for correction.
List two use cases for UDP.
- Video streaming - Online gaming
Fill in the blank: UDP is faster than TCP due to its ___ protocol structure.
connectionless
Compare UDP and TCP in terms of overhead.
UDP has lower overhead compared to TCP because it has no connection establishment or teardown processes.
What is the maximum size of a UDP packet?
The maximum size of a UDP packet is 65,535 bytes, including header and data.
True or False: UDP supports flow control.
False. UDP does not implement flow control, which can lead to congestion in high-speed networks.
What type of applications benefit from UDP's speed?
Applications like VoIP and live broadcasts benefit from UDP's low latency and quick transmission.
What is the UDP header size?
The UDP header is 8 bytes in size, consisting of source port, destination port, length, and checksum.
Cause → Effect: Sending data via UDP.
Cause: Data is sent without a connection; Effect: Faster transmission, but possible packet loss.
What is a significant drawback of using UDP?
UDP's lack of delivery guarantees can result in lost data packets, making it less suitable for critical data transfers.
How does UDP handle multiple streams of data?
UDP can handle multiple streams by using different port numbers, allowing simultaneous transmissions without interference.
What is the relationship between UDP and DNS?
DNS often uses UDP for queries due to its fast, connectionless nature, ensuring quick responses.
List one advantage of using UDP.
- Low latency
Fill in the blank: UDP is often used for ___ applications.
real-time
What happens if a UDP packet arrives out of order?
The application must handle reordering, as UDP does not provide this functionality.
True or False: UDP is suitable for file transfers.
False. UDP is not suitable for file transfers due to its unreliability and lack of order guarantees.
True or False: UDP is connectionless.
True. UDP does not establish a connection before sending data, resulting in lower overhead and faster transmission.
Comparative Analysis(16)
TCP guarantees delivery; does UDP?
No, UDP does not guarantee delivery. It is a connectionless protocol.
Which protocol is faster, TCP or UDP?
UDP is generally faster than TCP due to its reduced overhead and lack of connection establishment.
True or False: TCP is more reliable than UDP.
True. TCP ensures reliable delivery through acknowledgments and retransmissions.
Comparative analysis of TCP and UDP reliability.
TCP: - Reliable - Ordered delivery - Error checking UDP: - Unreliable - No ordering - Minimal error checking
Fill in the blank: TCP is a _____ protocol.
connection-oriented
True or False: UDP is suitable for live video streaming.
True. UDP's low latency makes it ideal for real-time applications like live streaming.
Performance of TCP: what affects it?
TCP performance can be affected by: - Congestion control - Handshake delays - Packet loss
Which protocol uses checksums for error detection?
Both TCP and UDP use checksums, but TCP has more extensive error recovery mechanisms.
Cause → Effect: TCP connection establishment.
Cause: TCP uses a three-way handshake. Effect: Ensures a reliable connection before data transfer.
Usage of TCP vs UDP in applications.
TCP is used for: - Web browsing - Email UDP is used for: - Online gaming - VoIP
Comparison of TCP and UDP data segmentation.
TCP: - Segments data into smaller packets. UDP: - Sends data as a whole without segmentation.
What happens if a TCP packet is lost?
TCP will retransmit the lost packet, ensuring all data is received correctly.
Fill in the blank: UDP is a _____ protocol.
connectionless
True or False: TCP is better for file transfers than UDP.
True. TCP's reliability is crucial for accurate file transfers.
Which protocol is best for time-sensitive applications?
UDP is preferred for time-sensitive applications like video calls and gaming due to minimal delay.
Define the maximum size of a TCP segment.
The maximum segment size (MSS) for TCP is typically 1460 bytes, depending on the MTU.
Real-World Applications(16)
Web browsing uses which protocol?
TCP is used for web browsing to ensure reliable delivery of web pages.
Online gaming typically relies on?
UDP is preferred for online gaming due to low latency requirements.
True or False: TCP is faster than UDP.
False. TCP is slower due to error-checking and connection management.
Streaming video uses which protocol?
UDP is commonly used for streaming video to minimize delays.
Email transmission primarily uses?
TCP is used for email protocols like SMTP to ensure complete message delivery.
VoIP calls rely on which protocol?
UDP is used for VoIP to prioritize speed over reliability.
Comparison: TCP vs UDP in file transfer.
TCP: reliable, ordered. UDP: faster, no guarantee.
Fill in the blank: DNS uses ____.
UDP, to resolve domain names quickly.
True or False: TCP is connectionless.
False. TCP is a connection-oriented protocol.
Which protocol is used for remote login?
TCP is used for remote login protocols like SSH for secure connections.
Real-time applications often prefer?
UDP, as it allows for faster transmission without re-transmissions.
Comparison: TCP and UDP error handling.
TCP: error correction. UDP: no error correction.
File sharing applications utilize?
TCP for reliable transfer of large files.
Streaming audio typically utilizes?
UDP to ensure continuous playback without buffering delays.
Instant messaging services use?
TCP for reliable message delivery between users.
Cause → Effect: Using TCP in financial transactions.
Cause: Need for reliability. Effect: Ensures transaction integrity.
Questions in this Study Set(72)
1. What is the primary characteristic of UDP?
2. What does TCP ensure about data transmission?
3. Which protocol is primarily used for transferring web pages?
4. Which protocol is connection-oriented?
5. Which statement is true regarding UDP's delivery guarantees?
6. Which characteristic of TCP helps maintain the order of packets?
7. Online multiplayer games mostly prefer which protocol?
8. What is the primary advantage of UDP over TCP?
9. What does the term 'unreliable' mean in the context of UDP?
10. What is the main purpose of the TCP three-way handshake?
11. True or False: TCP is considered a faster protocol than UDP.
12. Which protocol is typically used for secure file transfers?
13. How does UDP perform error checking?
14. Which of the following is NOT a feature of TCP?
15. Which protocol is more commonly used for streaming video services?
16. In terms of data delivery, which statement is true?
17. Which of the following applications is best suited for UDP?
18. What role does the TCP header play?
19. Email protocols like SMTP primarily utilize which protocol?
20. Which protocol is more suitable for online gaming?
21. What is a key advantage of using UDP over TCP?
22. What happens during a TCP timeout?
23. VoIP (Voice over Internet Protocol) calls rely on which protocol?
24. What happens during a TCP connection establishment?
25. What is the maximum size of a UDP datagram?
26. In TCP, what does flow control prevent?
27. In file transfer, how does TCP differ from UDP?
28. Which of the following statements about UDP is false?
29. Which statement accurately describes UDP's overhead?
30. Which statement about TCP and real-time applications is true?
31. Fill in the blank: The Domain Name System (DNS) primarily uses ____.
32. How does TCP handle lost packets?
33. What happens when a packet is sent via UDP?
34. What is the TCP window size?
35. True or False: TCP operates in a connectionless manner.
36. What type of error checking does TCP utilize?
37. What is the UDP header size?
38. What is the function of TCP flags?
39. Which protocol is used for secure remote login?
40. Which protocol would you choose for a video call?
41. In what scenario might UDP not be the best choice?
42. How does TCP handle congestion?
43. Which type of applications often prefer using UDP?
44. TCP segments data into packets, whereas UDP...
45. Which of the following best describes UDP flow control?
46. What is indicated by the sequence number in a TCP segment?
47. How does error handling differ between TCP and UDP?
48. What is the maximum segment size for TCP?
49. How does UDP handle simultaneous data streams?
50. Which of the following is a correct description of TCP segments?
51. File sharing applications predominantly utilize which protocol for their operations?
52. Which protocol is typically used for email transmission?
53. Which statement about the relationship between UDP and DNS is true?
54. What is a TCP acknowledgment?
55. Streaming audio services typically favor which protocol?
56. True or False: UDP is suitable for applications where speed is more critical than reliability.
57. Which of the following is NOT a characteristic of UDP?
58. In which situation would TCP's error recovery be most beneficial?
59. Instant messaging services typically use which protocol to ensure message delivery?
60. Which of the following protocols typically features a three-way handshake to establish a connection?
61. What type of applications typically use UDP?
62. How does TCP ensure no duplicate packets are received?
63. What is the primary cause for using TCP in financial transactions?
64. In which scenario would UDP be the preferred choice over TCP?
65. What must an application do if a UDP packet arrives out of order?
66. What does the term 'connection-oriented' signify about TCP?
67. True or False: UDP supports connection-oriented communication.
68. Which TCP feature allows for efficient data transmission based on network conditions?
69. Which of the following statements accurately describes UDP's error handling capabilities?
70. What does the TCP window size control during data transmission?
71. In which scenario would UDP be the least suitable choice for data transmission?
72. Which of the following correctly describes TCP's reliability mechanism?
Related Study Sets
OSI-Modell Schichten Karteikarten
Klausur: TCP Flusskontrolle und Staukontrolle
IP-Subnetting Subnetzmaske Definitionen
Test: Was ein Router tut
HTTP und HTTPS Schritt für Schritt
Wiederholung: IP-Adresse und DNS
HTTP vs HTTPS for a test
Client und Server Notizen
Create Your Own Study Set
Upload a PDF, paste your notes, or describe a topic – AI generates flashcards, quizzes and more in seconds.

