kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: bjorn@mork.no (Bjørn Mork)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Would like know when the tcp sequence no is rollover
Date: Fri, 18 Sep 2015 09:50:20 +0200	[thread overview]
Message-ID: <87si6cf9oj.fsf@nemi.mork.no> (raw)
In-Reply-To: <CAL2CrsPuyh6viz5gdEZbP3Erv-Y3Ws-Em9y_Ow3HNWtsbSfNjA@mail.gmail.com> (Ramana Reddy's message of "Fri, 18 Sep 2015 12:21:59 +0530")

Ramana Reddy <gtvrreddy@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

  reply	other threads:[~2015-09-18  7:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18  6:51 Would like know when the tcp sequence no is rollover Ramana Reddy
2015-09-18  7:50 ` Bjørn Mork [this message]
     [not found]   ` <CAL2CrsNq3RKSKnJgtsz+RjhgVypjbawYADubjos+fNKTL6d4qg@mail.gmail.com>
2015-09-20  9:19     ` Ramana Reddy
2015-09-20  9:33       ` Bjørn Mork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87si6cf9oj.fsf@nemi.mork.no \
    --to=bjorn@mork.no \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).