TCP: Transmission Control Protocol Flashcards

0
Q

What flags are set in the TCP header when a connection is initiated?

A

SYN
SYN-ACK
ACK

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

What type of protocol is TCP?

A

A stream protocol.

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

What TCP header flags are set during a connection tear down?

A

FIN
ACK
FIN
ACK

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

What does the ACK flag stand for?

A

Acknowledgement

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

What does the SYN flag stand for?

A

Synchronize sequence numbers

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

What does the RST flag stand for?

A

Reset connection.

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

What does the PSH flag stand for?

A

Push data from buffer to receiving process

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

What does the FIN flag stand for?

A

Finish. The sender is finished sending data

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

What does the URG flag stand for?

A

Urgent

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

What does TCP use for addressing?

A

Port numbers

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

What causes the TCP sequence number to increment?

A

Each byte of data

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

What does the acknowledgement number in a TCP header represent?

A

The sequence number of the next byte the host expects to receive

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

What two events cause TCP to retransmit a segment?

A

Time out interval expires
or
3 duplicate ACKs from receiver

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

What does MSS stand for in a TCP header?

A

Maximum Segment Size

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

When is the Maximum Segment Size for a TCP session determined?

A

At the start of the session

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

What does the Window Size specify in a TCP header?

A

Maximum amount of data the receiver is willing to accept

17
Q

Who sets the Window Size for a TCP stream?

A

The receiver/client

18
Q

What is a delayed ACK?

A

It’s when the receiver waits for the next TCP segment with data to send an ACK.

19
Q

What is the purpose of a delayed ACK?

A

Delayed ACKs can reduce the total amount of segments sent by allowing the ACK flag to piggyback on a segment with data.

20
Q

What happens when a receiver has a window size of 0?

A

The sender sends keep-alive segments containing no data until the window size is greater than zero.