Networks Final exam

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/75

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

76 Terms

1
New cards

What is MSS

Maximum Segment size - maximum TCP payload size per segment (data only)

2
New cards

What does TCP ACK number represent

The sequence number of the next expected byte

3
New cards

CWND

congestion window, sender-side limit on how much data can be in flight

4
New cards

RWND

Receiver advertised window - receiver side buffer limit

5
New cards

Effective TCP Window equals what

min(cwnd, rwnd)

6
New cards

TCP receive window range

[ACK, ACK + rwnd - 1]

7
New cards

When does cumulative ACK advance

only when all bytes starting at the current ACK are received contiguously

8
New cards

Does receiving Out of order data advance an ACK

no

9
New cards

What happens if a packet arrives completely outside the receive window

Packet is dropped; no ACK sent

10
New cards

What happens if a packet partially overlaps the receive window

In-range bytes may be accepted; ACK advances only if the gap at ACK is filled

11
New cards

How does cwnd grow in slow start

+1 MSS per ACK

12
New cards

Why does cwnd double every RTT in slow start

Because cwnd ACKS arrive within one RTT

13
New cards

CWND behavior over one RTT in slow start?

cwnd doubles

14
New cards

Is slow start exponential per ACK?

No - exponential per RTT

15
New cards

How does CWND grow in congestion avoidance

+1 MSS per RTT

16
New cards

Cwnd increase per ACK in congestion avoidance

X/MSS

17
New cards

Why does congestion avoidance grow linearly?

To cautiously probe for available bandwidth

18
New cards

What indicates packet loss via duplicate ACKs

3 duplicate ACKs

19
New cards

What indicates packet loss via timeout

No ACK received before timeout expires

20
New cards

What triggers fast retransmit

Receipt of 3 duplicate ACKs

21
New cards

What does fast retransmit do

Immediately retransmits the missing packet without waiting for timeout

22
New cards

What is fast recovery

A mechanism that avoids resetting CWND to 1 MSS after 3 dup ACKs

23
New cards

ss thresh updates on 3 dup ACKs in fast recovery

ssthresh = cwnd/2C

24
New cards

cwnd during fast recovery

cwnd = ssthresh + 3

25
New cards

When does fast recovery end

When a new Ack acknowledging the retransmitted packet arrives

26
New cards

CWND after fast recovery ends?

cwnd = ssthresh

27
New cards

cwnd behavior on timeout

cwnd = 1 MSS, enter slow start

28
New cards

cwnd behavior on 3 dup ACKs

cwnd halved, enter fast recovery

29
New cards

What is ssthresh

threshold separating slow start and congestion avoidance

30
New cards

when does ssthresh change

only when packet loss is detected

31
New cards

What does ssthresh represent

A memory of the last congestion point

32
New cards

What is BDP

bandwidth * RTT

33
New cards

what does BDP represent

Max data that can be in flight without congestion

34
New cards

How do you compute max cwnd

BDP / MSS

35
New cards

What is TCP Throughput proportional to

inverse square root of packet lossj

36
New cards

Effect of quadrupling loss rate

Throughout put halved

37
New cards

Sequence number for n bits

2^n

38
New cards

Max sender window if ACKs are never lost

equal to sequence number space

39
New cards

Max sender window if ACKS can be lost

half the sequence number spave

40
New cards

Why must sender window be limited

to avoid ambiguity after sequence number wraparound

41
New cards

Virtual finish time

Previous finish time + packet size

42
New cards

Virtual finish time (weighted)

Previous finish time + (packet size / weight)

43
New cards

How does tcp react to congestion

reduce send rate

44
New cards

how does UDP react to congestion

Does not reduce send rate

45
New cards

HTTP

an application layer, request-response protocol for transferring web resources

46
New cards

What transport protocol does HTTP/1.1 use

TCP

47
New cards

What is HTTP/1.1

TCP-based version of HTTP using persistent connections

48
New cards

How many requests can be outstanding on one HTTP/1.1 connection

One at a time!W

49
New cards

What is head-of-line (HOL) blocking in HTTP/1.1

later requests just wait until earlier responses are fully received

50
New cards

How do browsers avoid HOL blocking in HTTP/1.1

By opening multiple parallel TCP connections

51
New cards

Why are multiple TCP connections inefficient

Increase congestion, RTT overhead, slow start penalties

52
New cards

What is HTTPS

HTTP over TLS (encrypted HTTP)

53
New cards

What security properties does HTTPS provide

Confidentiality, integrity, authentication

54
New cards

What is the goal of HTTP/2

Improve performance without changing HTTP semantics

55
New cards

Does HTTP/2 eliminate HOL blocking

No - HOL blocking still exists at the TCP layer

56
New cards

QUIC

A transport protocol builtt on UDP to replace TCP for HTTP

57
New cards

What application protocol runs over QUIC

HTTP/3

58
New cards

Does QUIC suffer from TCP HOL blocking

No - loss in one stream does not effect others

59
New cards

Which protocol avoids TCP

QUIC

60
New cards

Transport Layer

Runs on top of “best effort” network delivery service

61
New cards

A mechanism is reliable if and only if

  1. It resends all dropped/corrupted packets

  2. It attempts to make progress

62
New cards

Sequence number

monotonically increasing value carried in each sent packetsAC

63
New cards

Individual ACK

Receiver sends ACK for each individual packet it receives

64
New cards

Go Back N

Retransmit all packets starting from the smallest sequence # packet that wasn’t received

65
New cards

selective retransmit

only retransmit unreceived acks

66
New cards

Selective ACK

ACK contains info about ALL received packets thus far

67
New cards

Cumulative ACK

Just first part of selective ACK, ACK only highest continuous received sequence number

68
New cards

Congestion

Overloading the network

69
New cards

Flow

overloading the receiver

70
New cards

3 way handshake for setup

SYN, SYN-ACK, ACK

71
New cards

3 way handshake connection termination

FIN, FIN-ACK, ACK

72
New cards

AIMD

On success, increate CWN 1 MSS

On 3 dup packs, CWND= CWND/2

On timeout, CWND = 1 MSS

73
New cards

Slow start

start small (CWND = 1MSS)

Increase exponentially for short duration AND while Cwnd small

go back to additive increase when meet ssthresh

74
New cards

Throughout

Roughly CWND/RTTF

75
New cards

Blufferboat

high latency caused by excess buffering of packets, small buffers cannot handle traffic bursts

76
New cards

TLS goals

  1. Verify identity of server before sending HTTP messages

  2. Generate and exchange keys to encrypt HTTP messages