From owner-freebsd-net@FreeBSD.ORG Thu Sep 13 04:28:39 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 B032E16A419 for ; Thu, 13 Sep 2007 04:28:39 +0000 (UTC) (envelope-from rahman.sazzadur@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id 972FB13C46E for ; Thu, 13 Sep 2007 04:28:39 +0000 (UTC) (envelope-from rahman.sazzadur@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so488133waf for ; Wed, 12 Sep 2007 21:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=X9MAqCUdKCxFqaXTFyHAisYjajHh8/MeQr6kCoCNivk=; b=G6VkHNE0+QNDNzfcmWpk0+FBACO83rYgDsY1UeLr977FFlngy2geAkYqQIsiruq1tUa/rwKQ5rX6WE0t09aufDVzmGdyWfS45YZViPcC/WKHGU3Edc6F1z9JPl7BDSOCT/15SwDpok7o6r/Rv9BqNTR/JrvU59o2HSFWl/sU5YA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ie55HMK4RazfG1W4k2itbOqR41Tc7U3IAaFzQksXr4MfHW+JzZ148oGKhn3H2rjiGT0eMmpM9moqdfFQqIG8fkwRNMSW+k8SuUdFgMaorzp1ujaZ+R9Fma92frLbM8OHEppfsfdj414taZ8AAnG/46KpR2ferVX8CknMo6JyV28= Received: by 10.114.149.2 with SMTP id w2mr10949wad.1189657714665; Wed, 12 Sep 2007 21:28:34 -0700 (PDT) Received: by 10.115.79.2 with HTTP; Wed, 12 Sep 2007 21:28:34 -0700 (PDT) Message-ID: <82bdb5ec0709122128r2d789050j7926109a84ec2033@mail.gmail.com> Date: Wed, 12 Sep 2007 23:28:34 -0500 From: "sazzadur rahman" To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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 04:28:39 -0000 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