From mboxrd@z Thu Jan 1 00:00:00 1970 From: bjorn@mork.no (=?utf-8?Q?Bj=C3=B8rn_Mork?=) Date: Fri, 18 Sep 2015 09:50:20 +0200 Subject: Would like know when the tcp sequence no is rollover In-Reply-To: (Ramana Reddy's message of "Fri, 18 Sep 2015 12:21:59 +0530") References: Message-ID: <87si6cf9oj.fsf@nemi.mork.no> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Ramana Reddy 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