Week 8: TCP/UDP Flashcards

1
Q

What are key differences between TCP and UDP?

A

a. TCP is connection oriented and is considered reliable. The messages are sequenced and can be buffered if they arrive out of order. It can use a sliding window to increase the packet size transmitted. 3-Way handshake.
b. UDP relies on applications for accuracy and error detection. It is considered connectionless. Sends smaller sized packets. Good for transactions simple queries or streaming protocols.

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

What types of applications would use UDP?

A

Real-time ones such as voice video where there is not time to care about lost packets
DNS, DHCP, TFTP, SNMP, RIP, VOIP.

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

Why don’t we always use TCP?

A

a. Simple transactions such as DNS or NTP would use too much bandwidth
b. Really simple transactions such as DHCP.
c. Stateless multicasts that are blasted out to a number of hosts.
d. Real-time data like voice and video are time sensitive and can’t afford to deal with retransmissions. Voice and video can deal with some packet loss without users being any the wiser.
HTTP, HTTPs, FTP, SMTP, Telnet

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

Transmission Control Protocol (TCP)

A

•Provides guaranteed delivery of IP traffic using a three-way handshake. Is more reliable than UDP, but not as fast. Is a connection oriented protocol.

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

User Datagram Protocol

A

•Used instead of TCP when guaranteed delivery of each packet is not necessary. UDP uses a best-effort delivery mechanism. Also is best for speed, but not as reliable. Is a connection-less protocol.

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