Chapter 3 NetWorks Flashcards

1
Q

What are the main transport layer services?

A

Multiplexing/demultiplexing, connectionless transport (UDP), reliable data transfer, connection-oriented transport (TCP), congestion control.

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

What does the transport layer do?

A

Provides logical communication between application processes running on different hosts.

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

What are the two primary transport protocols?

A

TCP (reliable, ordered delivery) and UDP (unreliable, unordered delivery).

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

What does the sender transport protocol do?

A

Breaks application messages into segments, adds headers, and sends them to the network layer.

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

What does the receiver transport protocol do?

A

Reassembles received segments into messages and passes them to the application layer.

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

What is multiplexing?

A

The process of handling data from multiple sockets and adding transport headers.

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

What is demultiplexing?

A

The process of directing received transport-layer segments to the correct application process.

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

What fields are used for UDP demultiplexing?

A

Destination port number only.

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

What fields are used for TCP demultiplexing?

A

Source IP, source port, destination IP, destination port (4-tuple).

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

What are the characteristics of UDP?

A

Connectionless, unreliable, unordered delivery, minimal header, no congestion control.

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

What are common applications of UDP?

A

Streaming multimedia, DNS, SNMP, HTTP/3.

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

What is the UDP segment structure?

A

Source port, destination port, length, checksum, and application data.

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

What does the UDP checksum do?

A

Detects bit errors in transmitted segments.

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

What affects the complexity of reliable data transfer protocols?

A

Characteristics of the unreliable channel (loss, corruption, reordering).

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

What are the key functions of a reliable data transfer protocol?

A

Sending, receiving, detecting errors, retransmission if needed.

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

What are the key function calls in reliable data transfer?

A

rdt_send(), udt_send(), rdt_rcv(), deliver_data().

17
Q

What assumptions does RDT 1.0 make?

A

The underlying channel is perfectly reliable (no bit errors, no packet loss).

18
Q

How does RDT 1.0 operate?

A

The sender creates a packet and sends it; the receiver extracts and delivers the data.

19
Q

What problem does RDT 2.0 address?

A

Bit errors in packets.

20
Q

How does RDT 2.0 handle bit errors?

A

Uses checksums to detect errors and acknowledgments (ACKs/NAKs) to signal correct/incorrect receipt.

21
Q

What is the ‘stop and wait’ mechanism?

A

The sender sends one packet and waits for an ACK or NAK before sending the next one.

22
Q

What is a fatal flaw in RDT 2.0?

A

If an ACK/NAK is corrupted, the sender does not know what happened.

23
Q

How does RDT 2.1 fix the flaw in RDT 2.0?

A

Uses sequence numbers (0,1) to detect duplicate packets and retransmit only when necessary.

24
Q

What must the receiver do in RDT 2.1?

A

Check for duplicates and determine if the packet should be delivered.

25
Q

What is a key difference between RDT 2.0 and RDT 2.1?

A

RDT 2.1 requires the sender to remember if the last transmitted packet was 0 or 1.