Transport Layer Flashcards

1
Q

What is the transport layer?

A

end o end connection between 2 hosts

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

What are the services of the transport layer?

A
  • communication between application processes running on 2 different hosts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the transport layer sender do?

A

break application messages into segments and pass to network layer

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

What does the transport layer receiver do?

A

reassemble segments into messages and pass to application layer

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

What are the 2 transport layer protocols?

A

TCP
UDP

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

What is UDP?

A
  • unreliable
  • connectionless
  • demultiplexes IP packets
  • error checks data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is TCP?

A
  • connection oriented
  • full duplex reliable mechanisms
  • recovery mechanism for packets
  • flow and congestion control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the differences between TCP and UDP segment headers?

A

TCP much more complex as has more services
UDP has checksum

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

What are reliable data transfer mechanisms?

A

stop and wait
sliding window: go back n, selective repeat

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

How does TCP work?

A

initiates connection
send acks
closes connection

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

What does TCP do?

A

reliable data transfer over unreliable service

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

What triggers TCP retransmissions?

A

timeouts
duplicate acks

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

How can you implement TCP flow control?

A

buffer
- when buffer full, segments arriving don’t get acks

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

What is end to end congestion control?

A

used in TCP
- no explicit feedback
- congestion inferred from observed loss and delay

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

What is the equation for timeout interval?

A

timeout interval = estimated RTT + 4*DevRTT

  • DevRTT = 4% safety margin
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is additive increase multiplicative decrease (AIMD) for TCP?

A

additively increase window size until loss occurs
then cut window in half

17
Q

What is slow start for TCP?

A

when connection begins increase rate exponentially until first loss
initially congestion window = 1
double every RTT
increment for every ack received

18
Q

How to switch from slow start to congestion avoidance for TCP?

A

variable slow start threshold
on event of loss, slow start threshold set to half of window size just before loss event

19
Q

How is TCP fair?

A

divide capacity by number of flows so equal flow for each session?

capacity/no. sessions