What is the purpose of the sequence number field in the TCP header?
Answers
Answer:
TCP sequence number is used for transmitting two bytes in both the directions. In order to arrange this unordered and unreliable bytes, each of the used bytes is given a sequence number.
The sequence number is the first byte of the segment. The sequence number field is of 32 bits. The first bit of the stream has usually an index value of either 0 or 1. In case of a sequence number, it is randomly generated during connection handshake and is known as the initial sequence number. This is generally done to prevent an attacker from forging.
TCP header contains various information.
One of the most important information is the sequence number. TCP divides the information in to various packets and then it routes the packet into different way in the sender side.
At the receiver side the packets gets received in different time and once again aligns the packet in order and then show those information to the sender.
To arrange the packets in order in the receiver side, TCP numbers the packet.