Re: [tcpm] SYN in SYN_RCVD state

Ted Faber <faber@ISI.EDU> Mon, 22 October 2007 20:33 UTC

Return-path: <tcpm-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ik3xx-0000TT-M1; Mon, 22 Oct 2007 16:33:37 -0400
Received: from tcpm by megatron.ietf.org with local (Exim 4.43) id 1Ik3xv-0000TF-Vi for tcpm-confirm+ok@megatron.ietf.org; Mon, 22 Oct 2007 16:33:35 -0400
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ik3xv-0000T6-44 for tcpm@ietf.org; Mon, 22 Oct 2007 16:33:35 -0400
Received: from boreas.isi.edu ([128.9.160.161]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1Ik3xu-0008Tw-Cs for tcpm@ietf.org; Mon, 22 Oct 2007 16:33:35 -0400
Received: from hut.isi.edu (hut.isi.edu [128.9.168.160]) by boreas.isi.edu (8.13.8/8.13.8) with ESMTP id l9MKW8ab029550 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 22 Oct 2007 13:32:08 -0700 (PDT)
Received: (from faber@localhost) by hut.isi.edu (8.14.1/8.14.1/Submit) id l9MKW8ZF030910; Mon, 22 Oct 2007 13:32:08 -0700 (PDT) (envelope-from faber)
Date: Mon, 22 Oct 2007 13:32:08 -0700
From: Ted Faber <faber@ISI.EDU>
To: Vishal Study <vishal.study@gmail.com>
Subject: Re: [tcpm] SYN in SYN_RCVD state
Message-ID: <20071022203208.GD1430@hut.isi.edu>
References: <a517c2ff0710191935i5c84bf87qf6d634e71a6c3471@mail.gmail.com> <4719EB76.6040605@tlc.polito.it> <a517c2ff0710210425t5540ab3ex16e00d391f9c8619@mail.gmail.com> <20071022180116.GE24089@hut.isi.edu> <a517c2ff0710221237u62412463gf28ae873594be4a3@mail.gmail.com>
Mime-Version: 1.0
In-Reply-To: <a517c2ff0710221237u62412463gf28ae873594be4a3@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
X-url: http://www.isi.edu/~faber
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: faber@hut.isi.edu
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d8ae4fd88fcaf47c1a71c804d04f413d
Cc: tcpm@ietf.org
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1012758501=="
Errors-To: tcpm-bounces@ietf.org

On Mon, Oct 22, 2007 at 12:37:23PM -0700, Vishal Study wrote:
> Hi Ted:
> 
> The server would retransmit SYN+ACK when server times out in SYN-RECEIVED state.
> I agree and have seen this.
> 
> But, when the server hasn't timed out in SYN-RECEIVED state and it
> receives retransmitted SYN from client (due to client's timeout), what
> is the expected behavior on server side? Is server supposed to send
> SYN+ACK?

The spec says no.   RFC793 p 69 gives the sequence number test and the
ACK requirement:

----
   first check sequence number

      SYN-RECEIVED STATE
      ESTABLISHED STATE
      FIN-WAIT-1 STATE
      FIN-WAIT-2 STATE
      CLOSE-WAIT STATE
      CLOSING STATE
      LAST-ACK STATE
      TIME-WAIT STATE

        Segments are processed in sequence.  Initial tests on arrival
        are used to discard old duplicates, but further processing is
        done in SEG.SEQ order.  If a segment's contents straddle the
        boundary between old and new, only the new parts should be
        processed.

[table and some text snipped.  None of it applies; the segment is
outside the window and unacceptable. ]

        If an incoming segment is not acceptable, an acknowledgment
        should be sent in reply (unless the RST bit is set, if so drop
        the segment and return):

          <SEQ=SND.NXT><ACK=RCV.NXT><CTL=ACK>

        After sending the acknowledgment, drop the unacceptable segment
        and return.
----

I can imagine an implementor sending a SYN+ACK here, but it would be
outside the spec.  I assume you have no basis for sending one.

-- 
Ted Faber
http://www.isi.edu/~faber           PGP: http://www.isi.edu/~faber/pubkeys.asc
Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#SIG
_______________________________________________
tcpm mailing list
tcpm@ietf.org
https://www1.ietf.org/mailman/listinfo/tcpm