Week 8: TCP/UDP Flashcards
What are key differences between TCP and UDP?
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.
What types of applications would use UDP?
Real-time ones such as voice video where there is not time to care about lost packets
DNS, DHCP, TFTP, SNMP, RIP, VOIP.
Why don’t we always use TCP?
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
Transmission Control Protocol (TCP)
•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.
User Datagram Protocol
•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.