Transport Layer Flashcards

(25 cards)

1
Q

What does the Transport Layer do?

A

It lets apps on different computers communicate, breaks messages into segments, ensures delivery, and can control reliability, flow, or congestion

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

What is the difference between the Transport and Network Layers?

A

Transport Layer → Apps talk to each other (on different computers).

Network Layer → Computers move data to each other(host to host).

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

What are the two key transport protocols?

A

TCP - Reliable and connected (like a phone call 📞)

UDP - Unreliable and no connection (like a text message 📩 — might get lost)

🔀 Multiplexing & Demultiplexing

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

What is multiplexing in networking?

A

Takes app data, adds port numbers, and sends it in segments

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

What is demultiplexing?

A

It checks the port number and sends the data to the right app

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

How does demultiplexing differ for TCP vs UDP?

A

UDP: Uses {dest IP, dest port} only
TCP: Uses {source IP, source port, dest IP, dest port} for each unique connection.

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

What are the key features of UDP?

A

Sends without asking.

Messages might get lost or mixed up.

Tiny extra info (8 bytes).

No congestion control → Keeps sending, even if the network is busy.

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

When is UDP preferred?

A

Streaming media → Speed is more important than perfect delivery (videos, music).

DNS → Quick lookups, okay if retried.

SNMP → Network monitoring, some loss is fine.

Apps that can handle loss or need speed

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

What does the UDP checksum do?

A

It checks for errors by calculating a checksum for the header and data, but it’s not perfect

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

What does RDT stand for?

A

Reliable Data Transfer ensures data gets there correctly, even on a bad network

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

What does RDT 1.0 assume?

A

A perfectly reliable channel means no errors or loss, so sending data is easy

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

What does RDT 2.0 introduce?

A

Bit errors can happen, it uses ACKs (acknowledgements) and NAKs (negative acknowledgements) to confirm or resend data

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

What does RDT 2.1 add?

A

Sequence numbers help spot duplicates and fix bad ACKs/NAKs

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

What does RDT 2.2 do?

A

No NAKs needed, duplicate ACKs tell the sender to resend

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

What’s new in RDT 3.0?

A

If data is lost, it waits and resends after a timeout

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

What are the key features of TCP?

A

It’s connection-based,

sends data in order,

controls flow and congestion,

and uses sequence numbers with ACKs

17
Q

What is TCP’s sequence number?

A

Byte number of the first byte in the segment’s data.

18
Q

What is a TCP ACK number?

A

The next byte the receiver is waiting for

19
Q

What is a cumulative ACK?

A

One ACK confirms all data up to a certain byte

20
Q

How does TCP handle lost segments?

A

Resend data after a timeout or after 3 duplicate ACKs

21
Q

What is the TCP 3-way handshake?

A

Client sends SYN, server replies with SYNACK, client sends ACK. Connection starts

22
Q

What is the TCP 4-way handshake (close)?

A

Client sends FIN, server replies with ACK, server sends FIN, client replies with ACK. Connection is closed

23
Q

What is TCP flow control?

A

Window size limits how much data the sender can send before needing an ACK

24
Q

Why is TCP called ‘pipelined’?

A

It sends many segments at once without waiting, to work faster

25
What’s the difference between TCP and UDP headers?
UDP is small (8 bytes). TCP is bigger with sequence numbers, ACKs, and window size