In TCP we have sequence numbers. When we add 1 to a sequence number, what does that mean -what are we counting?

QuestionsCategory: QuestionsIn TCP we have sequence numbers. When we add 1 to a sequence number, what does that mean -what are we counting?
Raz asked 5 months ago

In TCP we have sequence numbers. When we add 1 to a sequence number, what does that mean -what are we counting?

1 Answers
Techtuna Staff answered 5 months ago

While sending data using tcp we need to create handshake using tcp-3 way handshake protocol.
We sent data in bytes for each segment and sequence number represents the byte number of the first byte so the unordered data bytes can be arranged properly at the receiver side.
When a data is sent with sequence number say x we receive it’s acknowledge from receiver that data ha been received. So to send next data packet we add 1 to sequence number means (x+1) . So adding 1 means to send next data packet as previously send data packet has been received by receiver.
We are counting the acknowledgement received for each packet so we can add 1 to sequence number and send next data packet.