CS2005 - Lecture 6 - Transport Layer II

0.0(0)
studied byStudied by 1 person
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

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.

14 Terms

1
New cards

TCP

A connection-oriented transport protocol providing reliable, in-order and flow-controlled data delivery between processes on different hosts

2
New cards

TCP connection identification

By a 4-tuple: source IP, source port, destination IP, destination port

3
New cards

Key fields in a TCP header

Sequence/ACK numbers: For reliable data transfer

16-bit receive window: For flow control

Flags (SYN, ACK, FIN, RST): Connection management

Checksum: Error detection

4
New cards

MSS determination

MSS = MTU (link layer frame size) - TCP/IP header (40 bytes)

5
New cards

3-way handshake

Client -> Server: SYN (seq=client_isn)

Server -> Client: SYN-ACK (seq=server_isn, ack=client_isn+1)

Client -> Server: ACK (ack=server_isn+1)

6
New cards

TCP connection termination

One host sends FIN, other ACKs, Other host sends FIN, first host ACKs, Wait for timeout (2*MSL) to ensure all segments die

7
New cards

TCP reliability

Sequence numbers: Track byte stream

Cumulative ACks: Ack next expected byte

Retransmissions: On timeout or 3 duplicate ACKs (fast retransmit)

8
New cards

Fast retransmit trigger

Receiving 3 duplicate ACKs for the same segment

9
New cards

Receive window (rwnd)

Available buffer space at receiver: rwnd = rcvBuffer - (lastByteRcvd - lastByteRead)

10
New cards

Sender overflow avoidance

Sends only up to min(cwnd, rwnd) unacknowledged bytes

11
New cards

TCP congestion detection

Packet loss (timeout/duplicate ACKs) or delayed ACKs

12
New cards

AIMD

Additive Increase: Increase cwnd by 1 MSS/RTT

Multiplicative Decrease: Halve cwnd on loss

13
New cards

UDP over TCP usage

For real-time apps (low latency, tolerant to loss), no connection overhead or many clients

14
New cards

Key trade-offs

UDP: No reliability/flow control, low overhead

TCP: Reliable but slower (handshake, congestion control)