UDP (User Datagram Protocol) Flashcards

1
Q

What is UDP?

A

UDP (User Datagram Protocol) is a connectionless, unreliable protocol used for fast data transmission without guarantees of delivery or order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is UDP faster than TCP?

A

UDP is faster because it does not require connection establishment, acknowledgments, or retransmissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the main differences between TCP and UDP?

A

TCP is reliable, connection-oriented, and ensures ordered delivery, while UDP is connectionless, unreliable, and does not guarantee order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the use of UDP in streaming applications?

A

UDP is used in streaming because it provides lower latency, which is crucial for real-time applications like live video or voice.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Does UDP guarantee packet delivery?

A

No, UDP does not guarantee packet delivery. If packets are lost, they are not retransmitted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does UDP handle errors?

A

UDP uses a checksum to detect errors in transmitted data, but it does not ensure error recovery or retransmission.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of the UDP header?

A

The UDP header contains source and destination ports, length, and checksum to help direct packets to the correct application and ensure data integrity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Is UDP suitable for file transfers?

A

UDP is not ideal for file transfers due to its lack of reliability features like error correction and retransmission.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When is UDP preferred over TCP?

A

UDP is preferred when low latency is critical and occasional data loss is acceptable, such as in VoIP or online gaming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Does UDP support flow control?

A

No, UDP does not implement flow control, which can lead to congestion if the sender transmits data too quickly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the maximum size of a UDP packet?

A

The maximum size of a UDP packet is 65,535 bytes, but the typical size is limited by the underlying network protocol, such as IP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does UDP manage packet sequencing?

A

UDP does not handle sequencing, and packets may arrive out of order, making it unsuitable for applications requiring ordered delivery.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Does UDP support retransmission of lost packets?

A

No, UDP does not support retransmission of lost packets, unlike TCP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the typical use case of UDP?

A

UDP is commonly used in applications where speed is crucial, such as live streaming, DNS queries, and online gaming.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are UDP ports categorized?

A

UDP ports are categorized into well-known ports (0-1023), registered ports (1024-49151), and dynamic/private ports (49152-65535).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly