From owner-freebsd-net@FreeBSD.ORG Thu Sep 13 13:50:23 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 604D316A41B for ; Thu, 13 Sep 2007 13:50:23 +0000 (UTC) (envelope-from rrs@cisco.com) Received: from sj-iport-3.cisco.com (sj-iport-3-in.cisco.com [171.71.176.72]) by mx1.freebsd.org (Postfix) with ESMTP id 26EF113C442 for ; Thu, 13 Sep 2007 13:50:23 +0000 (UTC) (envelope-from rrs@cisco.com) X-IronPort-AV: E=Sophos;i="4.20,250,1186383600"; d="scan'208";a="523552061" Received: from sj-dkim-2.cisco.com ([171.71.179.186]) by sj-iport-3.cisco.com with ESMTP; 13 Sep 2007 06:50:23 -0700 Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-2.cisco.com (8.12.11/8.12.11) with ESMTP id l8DDoMep002100; Thu, 13 Sep 2007 06:50:22 -0700 Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com [128.107.191.63]) by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id l8DDoIoV016902; Thu, 13 Sep 2007 13:50:22 GMT Received: from xfe-sjc-212.amer.cisco.com ([171.70.151.187]) by xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 06:49:13 -0700 Received: from [127.0.0.1] ([171.68.225.134]) by xfe-sjc-212.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 13 Sep 2007 06:49:13 -0700 Message-ID: <46E93FC6.4080003@cisco.com> Date: Thu, 13 Sep 2007 09:48:54 -0400 From: Randall Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070601 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sazzadur rahman References: <82bdb5ec0709122128r2d789050j7926109a84ec2033@mail.gmail.com> In-Reply-To: <82bdb5ec0709122128r2d789050j7926109a84ec2033@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Sep 2007 13:49:13.0645 (UTC) FILETIME=[DE81FDD0:01C7F60C] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=3089; t=1189691422; x=1190555422; c=relaxed/simple; s=sjdkim2002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=rrs@cisco.com; z=From:=20Randall=20Stewart=20 |Subject:=20Re=3A=20A=20query=20regarding=20dynamic=20address=20configura tion=20in=20SCTP |Sender:=20; bh=+qkZ0tv/i2zvm7dyfv94IMyZNniEmNp8iTpOVAudKbg=; b=u/vbEOaa2fH0Ls1MnwgWMsO1tkWwAotis3kdDXYbfvIAkgWfOyIL2PNaLMcFcoP1kyW4LQVB eTceBJhpmf7u7siGpfFAh7CmFwG8a2LuWc+FmO/m+ELCRiSZJuKze4fe; Authentication-Results: sj-dkim-2; header.From=rrs@cisco.com; dkim=pass (sig from cisco.com/sjdkim2002 verified; ); Cc: freebsd-net@freebsd.org Subject: Re: A query regarding dynamic address configuration in SCTP X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2007 13:50:23 -0000 Sazzadur: No I don't think your expectation is wrong.. this may be a bug in the code. Not sure whats up but I will test this scenario and see if I can recreate it. Once you get the addr made primary .. this should be the primary address.. Let me try this here in my lab and see if I get the same results. By the way. What version of the code are you on.. is it the Current 7.0 code.. or is it a patch from sctp.org on 6.x? If a patch, what is the name (date) of the patch.. Thanks R sazzadur rahman wrote: > Hello, > > I am trying to test a dynamic address configuration scenario between a sctp > server and a sctp client. > The scenario is like: > > > sctp_server(129.15.78.125) > sctp_client(129.15.78.114) > > 1. > <------------------------------------------------------------------------ > connect > accept > -----------------------------------------------------------------------> > > 2. > <--------------------------------------------------------------------- data > > sack > -----------------------------------------------------------------------> > > sctp_server > creates an ipalias > of 129.15.78.126 > > 3. addip(129.15.78.126 > )--------------------------------------------------------> > > <-------------------------------------------------------------------------asconf_ack > > > 4. setpeerprimary(129.15.78.126)-------------------------------------------> > > <-------------------------------------------------------------------------asconf_ack > > > 5. > <------------------------------------------------------------------------ > data (still it sends data to peers > > 129.15.78.125 instead of 129.15.78.126) > > I was expecting that in step 5, sctp_client would send data to sctp_server > in 129.15.78.126 IP address > which has been set primary by peer. But it still sends data to the old ip > address 129.15.78.125. > > I found add ip and setpeerprimary operations were successful as sctp_server > gets successful asconf_ack after each > operations. I also found that sctp_client gets SCTP_PEER_ADDR_CHANGE event > with states SCTP_ADDR_ADDED and SCTP_ADDR_CONFIRMED after addip operation > by sctp_server and SCTP_ADDR_MADE_PRIM state after set_peer_primary_address > operation by sctp_server. Hence, I guess every operations worked perfect. > > > So, is my expectation wrong in this scenario? What else should I do to make > sctp_client send data to 129.15.78.126 ip address instead of > 129.15.78.125ip address? > > I would appriciate any help in this regard. > > Best Regards, > Sazzadur Rahman, > Graduate Student, > School of computer science, > University of Oklahoma, > Norman, USA > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > -- Randall Stewart NSSTG - Cisco Systems Inc. 803-345-0369 803-317-4952 (cell)