Module 14 - TCP and UDP Flashcards
(51 cards)
Which protocol is typically used for real-time communication like streaming or IP voice?
UDP (User datagram protocol)
Why is UDP preferred in real-time applications?
UDP has minimal overhead , it does not retransmit lost packets so there is no delay
What is a major reason UDP is not used in financial transactions?
It is unreliable
What does UDP add to each data segment?
Source and destination port numbers
What happens to UDP packets if they are dropped or arrive out of order?
Dropped packets are not retransmitted, packets arriving out of order are reordered
Which protocol provides reliable delivery with retransmission and sequencing?
TCP (Transmission Control Protocol)
How does TCP ensure data reliability? (2)
Adds sequence numbers to packets and uses acknowledgements for received packets.
What role do TCP sequence numbers play?
They allow the destination to reassemble the packets in order
What happens if a TCP packet is not acknowledged?
It is retransmitted
In TCP, what is the “window size”?
Number of packets sent before an acknowledgement.
How does TCP adjust window size in reliable vs unreliable networks?
It increases window size in reliable networks and decreases window size in unreliable
Which protocol includes constant communication between source and destination to regulate transmission?
TCP
Give an example of a TCP port used in web browsing.
Port 80 HTTP
What kind of application would likely use UDP instead of TCP?
Online gaming, streaming, VoIP
What is the key disadvantage of TCP compared to UDP?
TCP has high overhead due to reliability features
In TCP, what triggers retransmission of lost packets?
Lack of acknowledgement of a sequence
Why is delay from retransmission unacceptable in UDP-based communication?
It disrupts real time experience like live video or audio.
Which protocol is connection-oriented?
TCP
Which protocol is considered connectionless?
UDP
Which layer of the OSI model uses port numbers to identify applications?
Layer 4, transport layer
What is the function of transport layer port numbers?
To identify source and destination applications
What is a “well-known port”?
Port numbers of well known network applications from 1-1023
Which organization manages port number assignments?
ICANN (Internet corporation for assigned names and numbers)
What port number does HTTP use?
TCP port 80