TCP vs UDP Flashcards

1
Q

Stands for?

A

TCP - Transmission Control Protocol

UDP - User Datagram Protocol

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

Connection

A

TCP - connection-oriented

UDP- connectionless

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

Function

A

TCP - establishes connection, then sends 1 message at a time

UDP - one program can send a bunch of packets to another, –> end of relationship

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

Usage

A

TCP - high reliability, less concern with transmission time

UDP - fast, efficient transmission (i.e. games). Servers that answer small queries from a bunch of clients

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

Examples

A

TCP -
HTTP, FTP, SMTP, Telnet

UDP -
DNS, SNMP

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

ORdering of data packets

A

TCP - rearranges data packets in specified order

UDP - no order, all packets are independent of each other.
Ordering done by application layer

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

speed of transfer

A

TCP - slower

UDP - fast, b/c no error checking

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

Reliability

A

TCP - absolute guarantee that data is received intact and arrives in order

UDP - no guarantee that packets sent will be received at all

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

Header size

A

TCP - 20 bytes

UDP - 8 bytes

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

Streaming of data

A

TCP - Data is read as byte stream. Receiver has no indication of segment boundaries

UDP - Packets sent individually, definite boundaries, and checked for integrity only if they arrive

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

weight

A

TCP - heavy weight. Requires 3 set-up packets before any user data is sent.
Handles reliability and congestion control

UDP - lightweight. no ordering of messages, no tracking connections

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

data flow control

A

TCP - yes.

UDP - no

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

Error checking

A

TCP - yes, with recovery

UDP - yes, but no recovery options

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

Acknowledgement

A

TCP - yes

UDP - no

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

Handshake

A

TCP -
SYN, SYN-ACK, ACK

UDP- none (connectionless)

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