Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2009 14:17:16 +0200 (CEST)
From:      Harti Brandt <hartmut.brandt@dlr.de>
To:        Erik Trulsson <ertr1013@student.uu.se>
Cc:        FreeBSD Mailer List <freebsd-net@freebsd.org>, saravana perumal <seesaravanan@yahoo.co.in>
Subject:   Re: TCP Free-BSD setup behaviour.
Message-ID:  <20090616141644.L82919@beagle.kn.op.dlr.de>
In-Reply-To: <20090616113659.GA99604@owl.midgard.homeip.net>
References:  <925929.71164.qm@web8315.mail.in.yahoo.com> <20090616113659.GA99604@owl.midgard.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 16 Jun 2009, Erik Trulsson wrote:

ET>On Tue, Jun 16, 2009 at 04:37:32PM +0530, saravana perumal wrote:
ET>> Hiš Louie.
ET>> š
ET>> As per Testing 
ET>> š
ET>> 1.Sending SYN and reaching the SYN_SENT state INTIALLY [Active open]
ET>> 2. Then Expects to RECEIVE SYN packet and 
ET>> 3. To Send SYN & ACKš to reachš SYN-RCVD state.
ET>
ET>That does not sound quite correct.  The normal sequence for the TCP
ET>three-way handshake is:
ET>
ET>    -----> SYN
ET>    <----- SYN+ACK
ET>    -----> ACK
ET>
ET>while you for some reason seem to be expecting
ET>
ET>    -----> SYN
ET>    <----- SYN
ET>    -----> SYN+ACK
ET>
ET>which is not what I would expect.

Wouldn't that be a correct simultaneous setup?

harti

ET>
ET>
ET>> š
ET>> In Free BSD active SYN-RCVD state is not happening .
ET>> š
ET>> In TCP state tranistion my expectation is represented for SYN_RCVD state.
ET>> š
ET>> š
ET>> Thanks.
ET>> Saravanan
ET>> 
ET>> 
ET>> --- On Tue, 6/16/09, saravana perumal <seesaravanan@yahoo.co.in> wrote:
ET>> 
ET>> 
ET>> From: saravana perumal <seesaravanan@yahoo.co.in>
ET>> Subject: Re: TCP Free-BSD setup behaviour.
ET>> To: "Louis Mamakos" <louie@transsys.com>
ET>> Cc: "FreeBSD Mailer List" <freebsd-net@freebsd.org>
ET>> Date: Tuesday, June 16, 2009, 3:15 PM
ET>> 
ET>> 
ET>> 
ET>> 
ET>> 
ET>> 
ET>> 
ET>> Hi Louie
ET>> š
ET>> šWe are trying to make Active Sync Received state.
ET>> š
ET>> As per our testing we are trying to received Syn packet from APPLICATION end and to send syn & ACK from Device END and hence reaching the ACTIVE SYN-RECEIVED state.
ET>> š
ET>> So initially make the application to send SYN sending the Initial SYN and once Received the SYN packet , expecting the Device to Send SYN & ACK
ET>> š
ET>> I hope the expectation should be rite in case of ACTIVE-SYN received State.
ET>> š
ET>> Thanks.
ET>> Saravanan
ET>> š
ET>> 
ET>> 
ET>> --- On Tue, 6/16/09, Louis Mamakos <louie@transsys.com> wrote:
ET>> 
ET>> 
ET>> From: Louis Mamakos <louie@transsys.com>
ET>> Subject: Re: TCP Free-BSD setup behaviour.
ET>> To: "saravana perumal" <seesaravanan@yahoo.co.in>
ET>> Cc: freebsd-net@freebsd.org, sarbalas@gmail.com
ET>> Date: Tuesday, June 16, 2009, 3:05 AM
ET>> 
ET>> 
ET>> 
ET>> On Jun 15, 2009, at 3:44 AM, saravana perumal wrote:
ET>> 
ET>> > Hi Louie ,
ET>> > 
ET>> > 
ET>> > Thanks for the Response on my Queries.
ET>> > 
ET>> > For QUERY 3,
ET>> > ACTIVE open frm Free BSD end:
ET>> > 
ET>> >š š š š FREE BSDš š š š š APPLICATION
ET>> >š š š š š š š šššSend ---------> syn
ET>> >š š š š š š š šššReceive <-------- SYN
ET>> > 
ET>> > Expect SYN & ACK-------------> Getting only ACK in this Scenario,
ET>> > 
ET>> >š Now Expects FREE BSD to respond back with the SYN & ACK , but BSD is sending only ACK message as the response.
ET>> 
ET>> There's no reason why the FreeBSD host would send another SYN; presumably the "APPLICATION" host received the SYN and responds back with SYN of it's own and ACK of the FreeBSD host's SYN.š Once the SYN has been ACK'd, there's no reason to resend it.š I suppose I wonder why you expect the FreeBSD system to retransmit it's SYN?
ET>> 
ET>> > 4š š .When checking the State - TIME-WAITš š Sending FIN and expecting the ACK ;Getting the ACK properly.šššSending Data Segment and Expecting the RST signal not getting the RST ; Instead DUT is sending the Last TCP packet. Issue seen only in Free BSD
ET>> > 
ET>> > 
ET>> > For this Issue mentioned above, Last TCP packet is jst a Testing packet with the
ET>> > following Field setš in TIME-WAIT state ,
ET>> > 
ET>> > 
ET>> > TCP: ---- TCP Packet ----
ET>> > TCP:
ET>> > TCP: Source Portš š š š ššš= 16815 (16815)
ET>> > TCP: Destination Portš š š = 16816 (16816)
ET>> > TCP: Sequence Numberš š ššš= 3865716731 (0xE66A27FB)
ET>> > TCP: Acknowledgment Number = 0 (0x00000000)
ET>> > TCP: Data Offsetš š š š ššš= 5 (20 bytes)
ET>> > TCP: Reservedš š š š š š š = 0
ET>> > TCP: Control Bitsš š š š š = 0x10
ET>> > TCP:š |543210
ET>> > TCP:š |0.....š š š š š š š = Urgent Pointer Isn't Significant
ET>> > TCP:š |.1....š š š š š š š = Acknowledgment Is Significant
ET>> > TCP:š |..0...š š š š š š š = No Push Function
ET>> > TCP:š |...0..š š š š š š š = No Reset Connection
ET>> > TCP:š |....0.š š š š š š š = No Synchronize Sequence Numbers
ET>> > TCP:š |.....0š š š š š š š = More Data From Sender
ET>> > TCP: Windowš š š š š š š š = 32752 bytes
ET>> > TCP: Checksumš š š š š š š = 0x41A0 (Correct)
ET>> > TCP: Urgent Pointerš š š š = 0 (Not Significant)
ET>> > TCP:
ET>> > TCP: --- Trailing Data [12 bytes] ---
ET>> > TCP:š 53 61 6D 70 6C 65 20 44 61 74 61 00š š š š š š šššSample Data.
ET>> > TCP: --- Trailing Data End ---
ET>> > From machine Sendingš to the FREE BSD machine,
ET>> > 
ET>> > This is to verify that Free BSD is in TIME-WAIT state.
ET>> 
ET>> Not sure what good this packet trace is; the only reason the TCP would respond with a RST segment is if the segment it receives is somehow bogus.š Perhaps that the send sequence is outside the window.š If the data is within the window, it might be considered an "old" segment that happens to arrive, perhaps out-of-order; why would the local TCP reset the connection for no good reason?
ET>> 
ET>> louie
ET>> 
ET>> 
ET>> 
ET>> 
ET>> 
ET>> _______________________________________________
ET>> freebsd-net@freebsd.org mailing list
ET>> http://lists.freebsd.org/mailman/listinfo/freebsd-net
ET>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
ET>
ET>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090616141644.L82919>