TRANSPORT LAYER
INTRODUCTION
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
FIN
|
|
ACK
|
|
SYN
|
|
RST
|
Detailed explanation-1: -The TCP FIN flag is used to terminate a TCP connection by signaling the end of data transmission to the remote endpoint. The sender sends a FIN segment, which indicates that it has no more data to send and requests to close the connection.
Detailed explanation-2: -ACK-The acknowledgment flag is used to acknowledge the successful receipt of a packet. As we can see from the diagram above, the receiver sends an ACK as well as a SYN in the second step of the three-way handshake process to tell the sender that it received its initial packet.
Detailed explanation-3: -The SYN flag synchronizes sequence numbers to initiate a TCP connection. The FIN flag indicates the end of data transmission to finish a TCP connection.
Detailed explanation-4: -TCP uses a three-way handshake to establish a reliable connection. The connection is full duplex, and both sides synchronize (SYN) and acknowledge (ACK) each other. The exchange of these four flags is performed in three steps: SYN, SYN-ACK, ACK, as shown in Figure 5.8.