SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] multihoming problem


Chronological Thread 
  • From: Michael Tüxen <Michael.Tuexen AT micmac.franken.de>
  • To: Vinod Singh <vinod.puchi AT gmail.com>
  • Cc: sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] multihoming problem
  • Date: Wed, 18 Aug 2010 19:39:16 +0200
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

On Aug 18, 2010, at 4:15 PM, Vinod Singh wrote:

> Hi,
>
> Prasanth is using Redhat Linux and it uses SCTP implementation of Linux
> Kernel 2.6.18-92 el5.
The system calls look fine, in general. However, you might want to bring up
the issue on
lksctp-developers AT lists.sourceforge.net,
which is the mailing
list for LKSCTP. sctp-discussion is about supporting the sctplib, a userland
implementation.

Best regards
Michael
>
> Regards,
> Vinod
>
>
> ________________________________
>
> From: ext Michael Tüxen
> [mailto:Michael.Tuexen AT micmac.franken.de]
> Sent: Wed 8/18/2010 4:50 PM
> To: Prasanth Pillai
> Cc:
> sctp-discussion AT sctp.de;
> Singh, Vinod (EXT-IBM - FI)
> Subject: Re: [SCTP-Discussion] multihoming problem
>
>
>
> On Aug 18, 2010, at 2:59 PM, Prasanth Pillai wrote:
>
> > Hi all,
> >
> > I am planning to use multihoming feature in my sctp server. Both my
> > server and client
> > machines are configured with multiple ip addresses on different
> > interfaces. I am able to
> > see multiple ip addresses getting passed in init ack through tcpdump. The
> > data flows
> > fine through one of the interaces, untill the interface goes down (I
> > removed the network
> > cable manually). When the interface goes down , the server is not able
> > to receive the
> > data through the other interface. I am able to see the data coming to the
> > other interface
> > ip in tcpdump, as soon as the interface is down. But my server is not
> > able to receive it.
> >
> > server code (system calls only)
> > socket (AF_INET, SOCK_STREAM, IPPROTO_SCTP)
> >
> > bind(listen_sctp_fd, (struct sockaddr *) &sctpser, sizeof (sctpser))) //
> > server first interface ip
> >
> > sctp_bindx(listen_sctp_fd, (struct sockaddr *) addresses, count,
> > SCTP_BINDX_ADD_ADDR)) // second interface ip
> >
> > listen(listen_sctp_fd, 5)
> >
> > id = accept(listen_sctp_fd, (struct sockaddr *) &peer_info, (socklen_t
> > *) & peer_info_len))
> >
> > sctp_recvmsg( client_fd, (void *) buffer, sizeof (buffer), (struct
> > sockaddr *) NULL, 0, &srInfo, &flags))
> >
> > client code (system calls only)
> >
> > socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
> >
> > sctp_connectx(sock_fd, (struct sockaddr *) addresses, 2);
> >
> > sctp_sendmsg(sock_fd, (void *) buffer, strlen(buffer) + 1, NULL, 0, 0, 0,
> > 0, 0, 0);
> >
> > Can someone help me, why my code is not working? Is there anything
> > missing in my code?
> >
> >
> > Waiting for your valuable comments.
> > Prasanth
> Hi Prasanth,
>
> what OS are you using? What SCTP implementation are you using?
>
> Best regards
> Michael
> >
> >
> >
> > _______________________________________________
> > sctp-discussion mailing list
> > sctp-discussion AT sctp.de
> > http://www.sctp.de/mailman/listinfo/sctp-discussion
>
>
>
>





Archive powered by MHonArc 2.6.19+.

Top of page