Transmission Control Protocol Flashcards

1
Q

Row 1 contents

A

Source port, destination port

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

source and destination ports

A

Purpose: determine what port the communication came from (source) and where it’s going to (destination)
Size: 2B

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

Row 2 contents

A

sequence number
By the source machines, TCP stack and is used to make certain that packets are arranged in the proper sequence when they arrive
Extra: important for defeating man in the middle attacks

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

Row 3 contents

A

Acknowledge number
Echo of the sequence number sent back by the receiving system. If the package is not received by the sender in a fixed amount of time another request is made

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

Row four contents

A

Data offset, reserved, TCP, flags, window size

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

TCP flags

A

FIN:the normal soft closing of a connection
SYN: the opening of a connection
RST: hard to close of a connection; usually use to communicate a packet, arrived at the wrong port
PSH:push the data past the buffer to the application
ACK:acknowledgment of a packet; all packets after a three-way handshake, should have this set
URG:indicates the following data is urgent

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

Window size

A

Row: three
Purpose: communicate the size of the window. The TCP stack has to buffer packets; can identify the OS that sent the packet.
Size: 2B

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

Row five contents

A

Checksum, urgent pointer

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

Checksum

A

Row: five
Purpose: uses a simple algorithm to check for errors; I.E. An integrity checker.
size: 2B

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

URG pointer

A

Row: five
Purpose: points to the last bite of the sequence number of urgent data; URG must be set to activate this field

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

Row six contents

A

Options
Like IP options varies in length
Padding
Necessary to bring TCP header to a multiple of 32 bits

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

describe the three steps of a TCP three-way handshake

A

Step one: client sends a packet with the SYN flag
Step two: server response with a packet with the SYN – ACK flag
Step three: client sends a packet with the ACK flag set that acknowledges the response of the sender

Data transfer can begin after this

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