TCP Flashcards

1
Q

What is TCP?

A

TCP (Transmission Control Protocol) is a connection-oriented protocol used for reliable data transmission between devices on a network.

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

How does TCP ensure reliable delivery?

A

TCP ensures reliable delivery through acknowledgment, retransmission of lost packets, and sequencing to maintain order.

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

What is the TCP three-way handshake?

A

The three-way handshake involves three steps: SYN, SYN-ACK, and ACK to establish a connection between client and server.

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

What does the TCP header contain?

A

The TCP header contains fields like source port, destination port, sequence number, acknowledgment number, flags, window size, and checksum.

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

How does TCP handle packet loss?

A

TCP handles packet loss through retransmission after a timeout if an acknowledgment is not received.

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

What are the main flags used in TCP?

A

The main flags in TCP are SYN, ACK, FIN, RST, PSH, and URG.

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

What is a TCP segment?

A

A TCP segment is a unit of data transmitted between two devices, containing both a header and a data payload.

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

What does flow control in TCP ensure?

A

Flow control ensures the sender does not overwhelm the receiver by adjusting the rate of data transmission using a sliding window mechanism.

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

What is TCP congestion control?

A

TCP congestion control adjusts the data transmission rate to avoid network congestion using algorithms like slow-start and congestion avoidance.

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

What is the Maximum Segment Size (MSS) in TCP?

A

MSS is the largest amount of data (excluding the TCP header) that can be sent in a TCP segment.

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

What is the difference between TCP and UDP?

A

TCP is reliable, connection-oriented, and ensures ordered delivery, whereas UDP is connectionless, unreliable, and does not guarantee order.

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

How does TCP detect errors in data?

A

TCP uses a checksum to detect errors in the header and data of packets.

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

What is TCP window size?

A

The TCP window size specifies the amount of data the sender is allowed to transmit before receiving an acknowledgment.

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

How is a TCP connection terminated?

A

TCP connection termination involves a four-way handshake using the FIN and ACK flags to close the connection.

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

What happens if a TCP connection is not properly closed?

A

If a TCP connection is not properly closed, resources like memory or ports may not be released, potentially causing issues like port exhaustion.

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