Network Stack: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Line 103:
In the course of a TCP connection, both sides send each other some data split in multiple chunks (at most one chunk per packet). The sequence number is the position (in bytes) in the whole communication where the current chunk is. Likewise, the acknowledgement number indicates the position (still in bytes) where one party expects the other party to send.
 
When either side receives a TCP packet with a sequence number S, an acknowledgement number A and a payload of size N, its next packet it sends should have the sequence number A (i.e. it's sending the data the other party expects) and the acknowledgement number S + N+ (or S+1 if N is null).
 
=== Establishing a connection ===