Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jun 2009 19:44:37 +0530 (IST)
From:      saravana perumal <seesaravanan@yahoo.co.in>
To:        Erik Trulsson <ertr1013@student.uu.se>, Harti Brandt <harti@freebsd.org>
Cc:        FreeBSD Mailer List <freebsd-net@freebsd.org>
Subject:   Re: TCP Free-BSD setup behaviour.
Message-ID:  <576824.58716.qm@web8318.mail.in.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi Erik
=A0
=A0
Have a look into the below link
=A0
http://www.jxos.org/Projects/TCP/tcpstate.html
=A0
See how from CLOSED----------> SYN sent ---------> syn Received=A0 state.
=A0
Let me know if anything I am missing here.
=A0
Thanks.
Saravanan

--- On Tue, 6/16/09, Harti Brandt <hartmut.brandt@dlr.de> wrote:


From: Harti Brandt <hartmut.brandt@dlr.de>
Subject: Re: TCP Free-BSD setup behaviour.
To: "Erik Trulsson" <ertr1013@student.uu.se>
Cc: "saravana perumal" <seesaravanan@yahoo.co.in>, "FreeBSD Mailer List" <f=
reebsd-net@freebsd.org>
Date: Tuesday, June 16, 2009, 5:47 PM


On Tue, 16 Jun 2009, Erik Trulsson wrote:

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

Wouldn't that be a correct simultaneous setup?

harti

ET>
ET>
ET>> =A0
ET>> In Free BSD active SYN-RCVD state is not happening .
ET>> =A0
ET>> In TCP state tranistion my expectation is represented for SYN_RCVD sta=
te.
ET>> =A0
ET>> =A0
ET>> Thanks.
ET>> Saravanan
ET>>=20
ET>>=20
ET>> --- On Tue, 6/16/09, saravana perumal <seesaravanan@yahoo.co.in> wrote=
:
ET>>=20
ET>>=20
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>>=20
ET>>=20
ET>>=20
ET>>=20
ET>>=20
ET>>=20
ET>>=20
ET>> Hi Louie
ET>> =A0
ET>> =A0We are trying to make Active Sync Received state.
ET>> =A0
ET>> As per our testing we are trying to received Syn packet from APPLICATI=
ON end and to send syn & ACK from Device END and hence reaching the ACTIVE =
SYN-RECEIVED state.
ET>> =A0
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>> =A0
ET>> I hope the expectation should be rite in case of ACTIVE-SYN received S=
tate.
ET>> =A0
ET>> Thanks.
ET>> Saravanan
ET>> =A0
ET>>=20
ET>>=20
ET>> --- On Tue, 6/16/09, Louis Mamakos <louie@transsys.com> wrote:
ET>>=20
ET>>=20
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>>=20
ET>>=20
ET>>=20
ET>> On Jun 15, 2009, at 3:44 AM, saravana perumal wrote:
ET>>=20
ET>> > Hi Louie ,
ET>> >=20
ET>> >=20
ET>> > Thanks for the Response on my Queries.
ET>> >=20
ET>> > For QUERY 3,
ET>> > ACTIVE open frm Free BSD end:
ET>> >=20
ET>> >=A0 =A0 =A0 =A0 FREE BSD=A0 =A0 =A0 =A0 =A0 APPLICATION
ET>> >=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0=A0Send ---------> syn
ET>> >=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0=A0Receive <-------- SYN
ET>> >=20
ET>> > Expect SYN & ACK-------------> Getting only ACK in this Scenario,
ET>> >=20
ET>> >=A0 Now Expects FREE BSD to respond back with the SYN & ACK , but BSD=
 is sending only ACK message as the response.
ET>>=20
ET>> There's no reason why the FreeBSD host would send another SYN; presuma=
bly the "APPLICATION" host received the SYN and responds back with SYN of i=
t's own and ACK of the FreeBSD host's SYN.=A0 Once the SYN has been ACK'd, =
there's no reason to resend it.=A0 I suppose I wonder why you expect the Fr=
eeBSD system to retransmit it's SYN?
ET>>=20
ET>> > 4=A0 =A0 .When checking the State - TIME-WAIT=A0 =A0 Sending FIN and=
 expecting the ACK ;Getting the ACK properly.=A0=A0=A0Sending Data Segment =
and Expecting the RST signal not getting the RST ; Instead DUT is sending t=
he Last TCP packet. Issue seen only in Free BSD
ET>> >=20
ET>> >=20
ET>> > For this Issue mentioned above, Last TCP packet is jst a Testing pac=
ket with the
ET>> > following Field set=A0 in TIME-WAIT state ,
ET>> >=20
ET>> >=20
ET>> > TCP: ---- TCP Packet ----
ET>> > TCP:
ET>> > TCP: Source Port=A0 =A0 =A0 =A0 =A0=A0=A0=3D 16815 (16815)
ET>> > TCP: Destination Port=A0 =A0 =A0 =3D 16816 (16816)
ET>> > TCP: Sequence Number=A0 =A0 =A0=A0=A0=3D 3865716731 (0xE66A27FB)
ET>> > TCP: Acknowledgment Number =3D 0 (0x00000000)
ET>> > TCP: Data Offset=A0 =A0 =A0 =A0 =A0=A0=A0=3D 5 (20 bytes)
ET>> > TCP: Reserved=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0
ET>> > TCP: Control Bits=A0 =A0 =A0 =A0 =A0 =3D 0x10
ET>> > TCP:=A0 |543210
ET>> > TCP:=A0 |0.....=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D Urgent Pointer Isn't =
Significant
ET>> > TCP:=A0 |.1....=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D Acknowledgment Is Sig=
nificant
ET>> > TCP:=A0 |..0...=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D No Push Function
ET>> > TCP:=A0 |...0..=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D No Reset Connection
ET>> > TCP:=A0 |....0.=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D No Synchronize Sequen=
ce Numbers
ET>> > TCP:=A0 |.....0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D More Data From Sender
ET>> > TCP: Window=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 32752 bytes
ET>> > TCP: Checksum=A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D 0x41A0 (Correct)
ET>> > TCP: Urgent Pointer=A0 =A0 =A0 =A0 =3D 0 (Not Significant)
ET>> > TCP:
ET>> > TCP: --- Trailing Data [12 bytes] ---
ET>> > TCP:=A0 53 61 6D 70 6C 65 20 44 61 74 61 00=A0 =A0 =A0 =A0 =A0 =A0 =
=A0=A0=A0Sample Data.
ET>> > TCP: --- Trailing Data End ---
ET>> > From machine Sending=A0 to the FREE BSD machine,
ET>> >=20
ET>> > This is to verify that Free BSD is in TIME-WAIT state.
ET>>=20
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.=
=A0 Perhaps that the send sequence is outside the window.=A0 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>>=20
ET>> louie
ET>>=20
ET>>=20
ET>>=20
ET>>=20
ET>>=20
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>=0A=0A=0A      



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