Would like know when the tcp sequence no is rollover

Bjørn Mork bjorn at mork.no
Fri Sep 18 03:50:20 EDT 2015


Ramana Reddy <gtvrreddy at gmail.com> writes:

> Hi all,
>
> I would like to know, when the TCP sequence no is rollover.
> Who will do it. Is it happens in tcp code or through the hardware.
> If is it is in the tcp code, can some one please point the code in the
> linux kernel
> where it happens.

Why this interest in TCP sequence numbers?

I believe RFC793 is a better source for understanding how this works:

  It is essential to remember that the actual sequence number space is
  finite, though very large.  This space ranges from 0 to 2**32 - 1.
  Since the space is finite, all arithmetic dealing with sequence
  numbers must be performed modulo 2**32.

Do you still think you'll find an explicit rollover code path? Why would
you write code like that?


Bjørn



More information about the Kernelnewbies mailing list