Layer Transfer Protocols Flashcards

1
Q

What are the two main Layer 4 transport protocols?

Layer 4 Transport Layer

A

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

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

What is the key characteristic of Transmission Control Protocol (TCP)?

Layer 4 Transport Layer

A

The key characteristic of TCP is that it provides reliable, connection-oriented data transmission with error checking, flow control, and congestion control.

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

What is the key characteristic of User Datagram Protocol (UDP)?

Layer 4 Transport Layer

A

UDP’s key characteristic is that it provides connectionless, best-effort data transmission without guarantees for delivery, order, or error checking, making it faster but less reliable than TCP.

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

What is a common use case for TCP?

Layer 4 Transport Layer

A

A common use case for TCP is web browsing (HTTP/HTTPS), email (SMTP, IMAP, POP3), and file transfers (FTP), where reliable and ordered data delivery is crucial.

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

What is a common use case for UDP?

Layer 4 Transport Layer

A

A common use case for UDP is real-time applications like video streaming, online gaming, and VoIP (Voice over IP), where low latency and speed are more important than reliable delivery.

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

How does TCP establish a connection between two devices?

Layer 4 Transport Layer

A

TCP establishes a connection using a three-way handshake process that involves:

SYN (synchronize) packet sent by the client.
SYN-ACK (synchronize-acknowledge) packet sent by the server.
ACK (acknowledge) packet sent by the client.

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

Does UDP require a connection to be established before data is sent?

Layer 4 Transport Layer

A

No, UDP does not require a connection to be established before data is sent, allowing for faster transmission but at the cost of reliability.

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

What mechanisms does TCP use for error recovery and flow control?

Layer 4 Transport Layer

A

TCP uses acknowledgments (ACKs), sequence numbers, and windowing mechanisms to ensure error recovery and flow control. This enables the receiver to manage the data rate and detect lost packets for retransmission.

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

Why might an application choose UDP over TCP?

Layer 4 Transport Layer

A

An application might choose UDP over TCP when it needs lower latency and reduced overhead and can tolerate some data loss, such as in live audio/video streaming or online gaming.

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

How do applications use port numbers to communicate over TCP and UDP?

Layer 4 Transport Layer

A

Applications use port numbers to specify endpoints for communication. The client and server agree on the port numbers, allowing the transport layer to direct traffic to the correct application.

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

What is the well-known port number for DHCP (Dynamic Host Configuration Protocol) using UDP?

A

The well-known port numbers for DHCP using UDP are 67 (server) and 68 (client).

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

What is the well-known port number for SSH (Secure Shell) using TCP?

A

The well-known port number for SSH using TCP is 22.

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

What is the well-known port number for Telnet using TCP?

A

The well-known port number for Telnet using TCP is 23.

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

What is the well-known port number for DNS (Domain Name System) using UDP and TCP?

A

The well-known port number for DNS using UDP and TCP is 53.

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

What is the well-known port number for FTP (File Transfer Protocol) using TCP?

A

The well-known port numbers for FTP using TCP are 20 (data transfer) and 21 (control).

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

What is the well-known port number for HTTPS (HTTP Secure) using TCP?

A

The well-known port number for HTTPS using TCP is 443.

17
Q

What is the well-known port number for HTTP (Hypertext Transfer Protocol) using TCP?

A

The well-known port number for HTTP using TCP is 80.

18
Q

What does the command netstat -aon | findstr /i listen do?

A

The command netstat -aon | findstr /i listen displays all listening ports along with associated process IDs (PIDs) on a Windows machine.

19
Q
A