TCP/UDP Flashcards

1
Q

What services do TCP provide?

A

message fragmentation and reassembly, guarantees accurate delivery, maintains conversational context, specifies process at destination, congestion and flow control

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

Why fragment messages?

A

error correction and speed

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

error correction when messages are fragmented

A

is part of message is lost/garbled, only have to resend affected packet(s)

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

speed when messages are fragmented

A

store-and-forward delay is minimized, not possible if whole message is sent at once

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

store-and-forward

A

A can send packet 1 to B while receiving packet 2 from sender

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

What goes into guaranteed delivery?

A
  1. sender remembers which packets it sent, 2. error detection by receiver, 3. receiver acknowledges each packet received, 4. if ack not received within specified timeout interval, sender resends packet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What detects IP packet corruption?

A

checksum

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

TCP packets specify a source and destination _____.

A

port number

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

What is a port number used to determine?

A

which process (program) will receive the message

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

In conversational context, two machines must _____, _____, and _____.

A

establish a connection before they can exchange data; agree on a session ID before sending first message; agree that the convo is over

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

Each message sent between two machines includes _____.

A

the session ID

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

If a router is overworked, _____ and _____.

A

its queues fill up; it drops additional packets

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

Because TCP provides guaranteed delivery through ack, source _____ during TCP congestion

A

resends packets (which exacerbates congestion)

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

exponential backoff

A

quickly decrease rate of packet sends if packet acks are slow (not received within timeout interval)

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

how to control TCP congestion

A

start slow using a low rate of packet sends, slowly increase rate as long as acks are regularly received

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

Flow control is similar to congestion control, but with this key difference:

A

It’s not due to network interference.

17
Q

Why would you need flow control?

A

destination host’s own traffic is too much, destination unable to receive so fast

18
Q

TCP does these two things that IP does not:

A

helps manage traffic on the internet, guarantees packet delivery on the internet

19
Q

TCP does not do this, while IP does:

A

provide unique address scheme for the internet

20
Q

Neither TCP nor IP guarantee what?

A

speed of packet delivery

21
Q

UDP is an…

A

alternative to TCP.

22
Q

Like TCP, UDP…

A

builds on top of IP but provides less.

23
Q

UDP is better for _____.

A

real-time applications (video, audio, etc.)

24
Q

UDP includes…

A

checksum for error detection, port numbers

25
Q

UDP does not include…

A

guaranteed delivery through resends, sessions, reordering packets based on sequence number

26
Q

examples of where UCP is used:

A

DNS, streaming media, VOIP, online games

27
Q

What is QUIC?

A

cross between TCP and UDP, based on UDP (think of as TCP optimized for HTTP)