From: Bora E. <bor...@gm...> - 2012-09-28 12:47:19
|
Hi Wei, I confirmed that this can be done by filtering ABORT packets using iptables. You just saved my day :) For anyone interested, below command blocks outgoing ABORT messages: iptables -t filter -I OUTPUT -p sctp --chunk-types any ABORT -j DROP Best regards, Bora. On Fri, Sep 28, 2012 at 1:18 PM, Bora Erbas <bor...@gm...> wrote: > Hi Wei, > > Thanks for the reply. > I had already tried "rmmod -f sctp" but it says busy even if no > application is using it. > I used sctp_test to load sctp then killed the sctp_test application. > Even then it's not unloading. > > I will look into iptables: I am not particularly experienced on it. > > Regards, > Bora. > > On Fri, Sep 28, 2012 at 12:56 PM, Wei Yongjun <wei...@gm...> wrote: >> On 09/28/2012 05:06 PM, Bora Erbas wrote: >>> Hi All, >>> >>> We have a home-grown SCTP stack which uses raw IP sockets >>> (protocol=). >>> On the same host, another application uses LKSCTP for SCTP traffic. >>> And whenever lksctp is loaded to kernel after being used by the >>> application, it interferes with the raw-ip-sctp. >>> LKSCTP basically sends ABORT messages to the peer of the raw-ip-sctp >>> stack and destroys the association. >>> This happens even if the two sctp stacks use different network >>> interfaces and ports. >>> >>> Even after the application that uses lksctp is killed, the problem >>> persists until a reboot is performed. >>> It comes back when lksctp is loaded back to the kernel. >>> >>> Platform is: CentOS 5.5. >>> Linux host1 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 >>> x86_64 x86_64 GNU/Linux >>> >>> Netstat output for the raw ip socket: >>> raw 0 0 0.0.0.0:132 0.0.0.0:* >>> 7 >>> >>> So what I would like to know is this: >>> 1. Is there a way to unload lksctp from kernel without rebooting? This >>> won't solve my problems but just curious. >> >> you can using rmmod -f sctp, but this need you kernel support. >> >>> 2. Is it possible to have lksctp work side by side with a raw IP >>> socket that also handles SCTP traffic? >> >> you can using iptables to drop those packet that handle by >> the raw socket. >> >>> >>> Any pointers on this subject is greatly appreciated. >>> I am trying to get information on LKSCTP, which I am not very familiar >>> yet, so any information will be useful for me. >>> >>> Thanks in advance. >>> >>> Best regards, >>> Bora. >>> >>> ------------------------------------------------------------------------------ >>> Got visibility? >>> Most devs has no idea what their production app looks like. >>> Find out how fast your code is with AppDynamics Lite. >>> http://ad.doubleclick.net/clk;262219671;13503038;y? >>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html >>> _______________________________________________ >>> Lksctp-developers mailing list >>> Lks...@li... >>> https://lists.sourceforge.net/lists/listinfo/lksctp-developers >>> >>> >> >> |