Sequence number

From Computer History Wiki
Revision as of 13:55, 13 April 2022 by Larsbrinkhoff (talk | contribs) (Also e.g. tapes.)
Jump to: navigation, search

In a packet switching communication network, a sequence number is given to even byte or packet (different systems have made different choices on this point) which is sent from one entity to another. This allows each item to be uniquely acknowledged after it has been sent.

In the TCP/IP protocol suite, the initial sequence number used on any given connection is random. This was initially intended to guard against old packets left circulating in the internet, but it later turned out that systems which did not pick the number randomly were vulnerable to attacks based on being able to predict sequence numbers.

Sequence numbers can also be used outside communication, e.g. in magnetic tape records to help detect and avoid I/O errors.