L4 Transport Layer Flashcards

1
Q

What are the main services provided by the transport layer?

A

Logical communication between processes; Multiplexing and demultiplexing; Integrity checking; Connection management; Acknowledgments and retransmissions; Flow control

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

How does the transport layer differ from the network layer?

A

Transport layer provides process-to-process communication, whereas network layer provides host-to-host communication.

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

What are the two main transport protocols in the Internet?

A

Transmission Control Protocol (TCP) and User Datagram Protocol (UDP)

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

What are the characteristics of UDP?

A

Connectionless, unreliable, unordered delivery, minimal error checking

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

What are the characteristics of TCP?

A

Reliable delivery, in-order delivery, flow control, congestion control, connection establishment required

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

What is multiplexing in the context of the transport layer?

A

Gathering data from multiple application processes and sending them as transport segments.

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

What is demultiplexing in the context of the transport layer?

A

Delivering incoming transport segments to the correct application process.

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

How are UDP sockets identified?

A

By a 2-tuple: (destination IP address, destination port number)

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

How are TCP sockets identified?

A

By 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
10
Q

How do web servers use port numbers?

A

Clients send segments to destination port 80; server distinguishes clients using source IP and source port.

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

What happens with persistent versus non-persistent HTTP connections?

A

Persistent HTTP uses one TCP connection for multiple requests; non-persistent HTTP opens/closes a connection for each request/response.

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

What information does the UDP segment structure include?

A

Source port number, Destination port number, Length, Checksum

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

How is checksum used in UDP?

A

Sender calculates checksum over segment contents; receiver verifies checksum to detect errors.

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

What is depicted in the diagram showing hosts A, B, and C communicating with a server?

A

Transport layer multiplexing and demultiplexing using TCP 4-tuples.

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

How does the server (IP B) distinguish between different client connections?

A

By using the source IP address and source port number along with destination IP and port.

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

What are the components of the TCP 4-tuple used for socket demultiplexing?

A

Source IP, Source Port, Destination IP, Destination Port

17
Q

Why do different client segments, even if targeting the same port 80, get directed to different sockets?

A

Because they have different source IPs and/or source ports.

18
Q

What role does the transport layer play in relation to the network layer in this image?

A

It provides logical process-to-process communication, while network layer provides host-to-host delivery.

19
Q

In the diagram, what application processes (P2, P3, P4, P5, P6) are involved?

A

They represent different server processes or threads managing client sessions.

20
Q

What key concept is demonstrated by the note ‘three segments, all destined to IP address B, dest port 80 are demultiplexed to different sockets’?

A

Connection-oriented demultiplexing in TCP using 4-tuples.

21
Q

What does the TCP/UDP segment format diagram illustrate?

A

The segment structure including source port, destination port, header fields, and payload.

22
Q

What is the size of the combined source and destination port fields in a TCP/UDP segment?

A

32 bits total (16 bits each)

23
Q

Where are the source and destination ports located in the TCP/UDP segment?

A

At the beginning of the transport segment header.

24
Q

What follows the source and destination port numbers in a TCP/UDP segment?

A

Other header fields and then the application data.

25
What is the purpose of source and destination port numbers in the transport layer?
To allow multiplexing and demultiplexing of data between applications.
26
How is the application data placed within a TCP or UDP segment?
After the header fields.
27
Which protocol header is simpler and smaller, TCP or UDP?
UDP.
28
What is the main idea illustrated by the logical end-to-end transport diagram?
Transport layer creates logical connections between applications across a network.
29
What is the path of data according to the logical end-to-end transport concept?
From application -> transport -> network -> link -> physical -> and back up at destination.
30
What network devices are involved in logical transport but do not operate at the transport layer?
Routers and switches.
31
Which layers are responsible for end-to-end delivery in the OSI model according to the diagram?
Transport layer and Application layer.
32
How is the illusion of a direct application-to-application connection achieved over a network?
By transport layer protocols like TCP and UDP abstracting the underlying complexities.
33
Why is it called 'logical' end-to-end transport?
Because physically packets pass through many devices, but logically it's one seamless application connection.
34
What protocols provide logical end-to-end transport on the internet?
TCP and UDP.