The Transport Layer Flashcards

1
Q

Q: What is the purpose of the transport layer?

A

A: To provide reliable or best-effort delivery of data between applications across a network.

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

Q: What are the two main transport layer protocols?

A

A: TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).

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

Q: How does an application choose between TCP and UDP?

A

A: Based on the application’s requirements for reliability, speed, and overhead.

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

Q: What is TCP?

A

A: A connection-oriented protocol that ensures reliable, ordered delivery of data.

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

Q: What is UDP?

A

A: A connectionless protocol that offers faster, best-effort delivery with minimal overhead.

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

Q: Name applications that typically use TCP.

A

A: HTTP, FTP, SMTP, Telnet.

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

Q: Name applications that typically use UDP.

A

A: Video streaming, VoIP, DNS, DHCP, online gaming.

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

Q: What functions do both TCP and UDP share?

A

A: Segmentation, multiplexing, encapsulation, reassembly, and error detection.

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

Q: What are additional features of TCP?

A

A: - Connection establishment and termination
- Reliable delivery with acknowledgments
- Flow control using window sizes
- Retransmission of lost packets

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

Q: What is the TCP 3-way handshake?

A

A: A process where the sender and receiver exchange SYN and ACK flags to establish a connection.

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

Q: What is the TCP 4-way termination?

A

A: A process involving FIN and ACK flags to gracefully close a connection.

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

Q: What is flow control in TCP?

A

A: A mechanism to adjust the rate of data transmission to prevent overwhelming the receiver.

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

Q: What happens if a TCP segment isn’t acknowledged?

A

A: It is retransmitted after a timeout.

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

Q: Why is UDP considered lightweight?

A

A: It has low overhead and does not track connection state, order, or retransmissions.

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

Q: What is the main downside of using UDP?

A

A: No guarantee of delivery, order, or duplication prevention.

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

Q: Why is UDP suitable for real-time applications?

A

A: Its low latency makes it ideal where speed is more critical than reliability.

17
Q

Q: What is a socket?

A

A: A combination of an IP address and a port number (e.g., 192.168.0.1:80).

18
Q

Q: What are well-known port ranges?

A

A: 0 to 1023 — reserved for common services like HTTP (80), HTTPS (443), SMTP (25).

19
Q

Q: What are user/registered ports?

A

A: 1024 to 49151 — assigned to specific applications.

20
Q

Q: What are dynamic (ephemeral) ports?

A

A: 49152 to 65535 — temporarily used for client-side communication.

21
Q

Q: Where can official port assignments be found?

A

A: https://www.iana.org/assignments/service-names-port-numbers