chapter 3 - transport layer Flashcards

(36 cards)

1
Q

What is the main job of the transport layer?

A

Provide logical communication between application processes on different hosts

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

What does the sender transport layer do?

A

Breaks messages into segments and passes them to the network layer

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

What is multiplexing?

A

combining multiple data streams into one connection

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

What does the receiver transport layer do?

A

Reassembles segments and passes the message to the application

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

What does RDT 2.0 add?

A

Handles bit errors using checksums, ACKs and NAKs

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

What is demultiplexing?

A

taking a combined stream of data and separating it back into the original parts

Using header info to deliver segments to correct socket at the receiver

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

What does RDT 1.0 assume?

A

A perfectly reliable channel (no errors or losses)

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

What does RDT stand for?

A

Reliable Data Transfer

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

What info is used in TCP demultiplexing?

A

4-tuple:
* source IP
* source port
* destination IP
* destination port

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

Problem with RDT 2.0?

A

lost ACK/NAK

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

What is the solution in RDT 2.1?

A

adds sequence numbers (0,1) to avoid delivering duplicate data

if ack/nack is lost, it can send duplicates -> seq nr checks for this

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

What does RDT 2.2 do differently?

A

Uses only ACKs (no NAKs)

if receiver gets dup packet -> send ack again (i have already received this packet)

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

What does RDT 3.0 add?

A

timer

if sender not have received ACK innen en tid, resend packet

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

What is pipelining?

A

Sending multiple packets before waiting for ACKs

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

What is the key idea of Selective Repeat?

A

Only lost packets are resent

sender retransmit packets who did not receive ACK

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

What is the key idea of Go-Back-N?

A

sender sens multiple packts -> if one is lost -> send all packets after the lost one again

sends 1 pckt @ time

s -1234, lost:2, kaster 3og4, og sender 2,3,4 igjen

10
Q

Is TCP point-to-point or multicast?

A

Point-to-point (1 sender, 1 receiver)

11
Q

What does TCP use for reliability?

A

Sequence numbers and ACKs

12
Q

What is Maximum Segment Size
(MSS) in TCP?

A

max size data (payload) TCP can send in one packet, without splitting

13
Q

How does TCP handle out-of-order segments?

A

waits for all segment to arrive before delivering in right order

sender:1234 -> receiver: 1,3,4 -> venter på 2 og setter den inn 1,2,3,4

14
Q

Why is timeout value important in TCP?

A

Too short = unnecessary retransmissions
too long = slow recovery

15
Q

How is Estimated RTT calculated?

A

EstimatedRTT = (1 − α) × EstimatedRTT + α × SampleRTT

16
Q

What is the timeout interval formula?

A

Timeout = EstimatedRTT + 4 × DevRTT

17
Q

What is the goal of TCP flow control?

A

Prevent sender from overwhelming receiver’s buffer

18
How does TCP flow control work?
uses receiver window (rwnd) to to tell the sender how much data it's allowed to send
19
What causes network congestion?
Too much data sent too quickly for the network to handle
20
What are the 2 TCP congestion phases?
Slow Start and Congestion Avoidance
21
What is TCP slow start?
part of congestion control gradually increase the sending rate(exponentially) - so dont flood network
22
What is congestion avoidance?
after slow start - hit a threshold called ssthresh -> Increase cwnd linearly
23
Formula for TCP rate?
rate = cwnd / RTT
24
What is TCP fairness goal?
If K flows share a link of rate R, each gets R/K
25
Why is UDP sometimes unfair?
No congestion control; sends data regardless of congestion
26
Why do browsers open parallel TCP connections?
To bypass TCP’s congestion control limits
27
What is QUIC built on?
UDP
28
What are the goals of QUIC?
Faster connections built-in encryption better congestion control
29
What’s special about QUIC streams?
multiple independent streams over a single connection | TCP - can only have 1 - if 1 is lost everything waits -> HOL