UDP And TCP Flashcards

1
Q

UDP (user datagram protocol)

A

Connectionless: no handshake, data is sent right away
Best Effort: no guaranteed of message arrival
Lightweight: minimal overhead, only adds port and checksum
Used for: Streaming and gaming
No flow control or congestion control

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

TCP (Transmission control Protocol)

A

Connection oriented: 3 way handshake for establishing communication (SYN -> SYN-ACK -> ACK)
Reliable Delivery: guaranteed in order, error free data. Will retransmit data if no ACK
Acknowledgements: retransmissions and reliability
Flow Control: Prevents sender from overwhelming receiver (sliding windows)
Sliding window controls data transmission waiting for ACK
Used for: HTTPs, email, files
Connection Termination: Uses FIN-ACK to close connection

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

True or False: UDP is faster than TCP, UDP has no feedback but TCP does

A

True

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