All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Cheimonidis <gchimon@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: Adding a new IP address to an association when all addresses currently
Date: Mon, 12 Apr 2010 16:08:52 +0000	[thread overview]
Message-ID: <4BC34594.60808@gmail.com> (raw)

Hi again!

I am working with the dynamic address reconfiguration features of SCTP. 
I have a single client - server application. Both client and server apps 
are running on Ubuntu 9.10 (kernel 2.6.31).
Initially, the client has only one IPv4 address (on wlan interface) and 
it initiates an association to the server which also has only one IPv4 
address (213.xxx.yyy.vvv). After some time, I bring down the IP address 
of the client. Then, after some seconds I bring up the ethernet 
interface of the client and try to add the ethernet's IPv4 address 
(213.xxx.yyy.zzz) to the association (using sctp_bindx()) and set the 
same address as the peer's primary (using 
setsockopt(SCTP_SET_PEER_PRIMARY_ADDR)). Even though both calls succeed 
on the client and also when I call sctp_getladdrs() I can see both 
addresses on the client's side (wlan's and ethernet's), I don't see any 
ASCONF chunks being sent and consequently the communication between the 
client and the server is not possible.
My question is: Is the LKSCTP implementation capable of handling this 
scenario, I mean trying to add a new IP address to the association using 
as source IP address of the IP packet containing the ASCONF chunk the 
new IP address being added? According to RFC5061 - paragraph 5.3.2, this 
can be feasible given that the IP address included in the Address 
Parameter field of the ASCONF chunk belongs to the association (in my 
scenario it should be the wlan's IP address). If so, then what could be 
the reason for the packet containing the ASCONF chunk not being sent?

I have enabled SCTP debugging in the kernel and I am able to see the 
following lines in /var/log/kern.log when trying to add the new IP 
address (of ethernet interface) to the association:

Apr 12 16:27:54 george-laptop kernel: [23765.692896] 
sctp_setsocktopt_bindx: sk f1069a40 addrs 08ff2368 addrs_size 16 opt 1
Apr 12 16:27:54 george-laptop kernel: [23765.692904] sctp_bindx_add (sk: 
f1069a40, addrs: f3349be0, addrcnt: 1)
Apr 12 16:27:54 george-laptop kernel: [23765.692912] sctp_do_bind(sk: 
f1069a40, new addr: 213.xxx.yyy.zzz, port: 47053, new port: 47053, len: 16)
Apr 12 16:27:54 george-laptop kernel: [23765.692920] sctp_get_port() 
begins, snumG053
Apr 12 16:27:54 george-laptop kernel: [23765.692924] sctp_get_port() 
found a possible match
Apr 12 16:27:54 george-laptop kernel: [23765.692930] 
sctp_send_asconf_add_ip: (sk: f1069a40, addrs: f3349be0, addrcnt: 1)
Apr 12 16:27:54 george-laptop kernel: [23765.692943] sctp_do_sm prefn: 
ep f2273500, EVENT_T_PRIMITIVE, PRIMITIVE_ASCONF, asoc 
c31f4000[STATE_ESTABLISHED], sctp_sf_do_prm_asconf
Apr 12 16:27:54 george-laptop kernel: [23765.692949] sctp_do_sm postfn: 
asoc c31f4000, status: DISPOSITION_CONSUME
Apr 12 16:27:54 george-laptop kernel: [23765.692958] 
sctp_outq_tail(c31f4470, f26d9e40[ASCONF])
Apr 12 16:27:54 george-laptop kernel: [23765.692964] sctp_packet_config: 
packet:eff04318 vtag:0x5246ae45
Apr 12 16:27:54 george-laptop kernel: [23765.692969] 
sctp_packet_transmit_chunk: packet:eff04318 chunk:f26d9e40
Apr 12 16:27:54 george-laptop kernel: [23765.692974] 
sctp_packet_append_chunk: packet:eff04318 chunk:f26d9e40
Apr 12 16:27:54 george-laptop kernel: [23765.692980] 
sctp_packet_append_chunk: packet:eff04318 chunk:f26d9600
Apr 12 16:27:54 george-laptop kernel: [23765.692985] 
sctp_packet_transmit: packet:eff04318
Apr 12 16:27:54 george-laptop kernel: [23765.692992] sctp_v4_get_dst: 
DST:213.xxx.yyy.vvv, SRC:0.0.0.0 -
Apr 12 16:27:54 george-laptop kernel: [23765.693015] NO ROUTE
Apr 12 16:27:54 george-laptop kernel: [23765.693021] 
sctp_assoc_sync_pmtu: asoc:c31f4000, pmtu:1500, frag_point:1432
Apr 12 16:27:54 george-laptop kernel: [23765.693028] sctp_do_sm post 
sfx: error 0, asoc c31f4000[STATE_ESTABLISHED]

Thanks in advance
George

             reply	other threads:[~2010-04-12 16:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 16:08 George Cheimonidis [this message]
2010-04-12 18:07 ` Adding a new IP address to an association when all addresses Vlad Yasevich
2010-04-13  7:59 ` George Cheimonidis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BC34594.60808@gmail.com \
    --to=gchimon@gmail.com \
    --cc=linux-sctp@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.