LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Protocol not supported (https://www.linuxquestions.org/questions/linux-kernel-70/protocol-not-supported-886650/)

maswd 06-16-2011 01:22 AM

Protocol not supported
 
Dear Forum,
I am using Centos-5.6 in VirtualBox uner Windows7.
I have installed it several times using different combinations (linux text, linux vesa=1024x768), with /without Gnome Desktop, using Development Tools and Libraries, Graphics Internet etc..

I found that one or two installations show that sctp can be loaded via modprobe, otherwise I get Protocol family not supported when I use lksctp-tools.

I have used in fresh installations:
1. firewall enabled, SELinux=Permissive
2. yum install lksctp-tools
3. locate sctp.ko (gives presence output)
3. modprobe sctp
4. /usr/bin/checksctp

I am working on SS7 project.
Help will be greatly appreciated.

kbp 06-16-2011 06:39 PM

Quote:

I have installed it several times using different combinations (linux text, linux vesa=1024x768), with /without Gnome Desktop, using Development Tools and Libraries, Graphics Internet etc..
.. this will have no bearing on the issue other than the number of dependencies that will need to be installed when you do 'yum install lksctp-tools'. The sctp module is included in the kernel so locating it is not really relevant

try:
- yum install lksctp-tools
- modinfo sctp
- modprobe sctp
- lsmod | grep sctp
- /usr/bin/checksctp

Let us know where you receive an error message

maswd 06-17-2011 08:18 AM

Protocol not supported
 
Dear,
there are some improvements, let me tell first.

I updated
/etc/sysconfig/network with IPV6=yes
/etc/sysconfig/network-script/ifcfg-eth0 with IPV6INIT=yes, IPV6AUTOCONF=yes
/etc/modprobe.conf with on in the relevant protol alias lines.

..
now I can modprobe sctp fine.

After installing lksctp-tools via yum,
I get /usr/bin/checksctp, sctp_test etc.

./checksctp gives:
SCTP supported

when I use sctp_test -H192.168.56.2 -P 3565 -h 192.168.56.1 -p 3565 -s
I get error:

Starting tests...
socket(SOCK_SEQPACKET, IPPROTO_SCTP) -> sk=3
SCTP_EVENTS: error: -1

and I confirm that there is no transmision on eth0
Please give me solution (I am using CentOS-5.6)

kbp 06-18-2011 03:55 AM

So did you set up one machine as a server:
Code:

sctp_test -H 192.168.56.1 -P 3565 -l
... and one machine as a client?:
Code:

sctp_test -H 192.168.56.2 -P 3565 -h 192.168.56.1 -p 3565 -s

maswd 06-20-2011 01:14 AM

SCTP connection in CentOS
 
Surely, there will be two signaling points (SIGTRAN)
but at this moment I am unable to transmit anything over SCTP via LKSCTP.
my kernel 2.6.18-238 has built in SCTP support, verified by /usr/bin/checksctp utility

modprobe sctp gives no errors

/sbin/lsmod | grep sctp gives:
sctp 151449 2 [unsafe]
ipv6 270049 17 sctp, ip6t_REJECT,cnic


now executing client test utility /usr/bin/sctp_test:

sctp_test -H192.168.56.2 -P3565 -h192.168.56.1 -p3565 -s

remote:addr=192.168.56.1, port=m2pa, family=2
local:addr=192.168.56.2, port=m2pa, family=2
seed= 1308306117

Starting tests..
socket(SOCK_SEQPACKET, IPROTO_SCTP) -> sk=3
SCTP_EVENTS: error: -1


please tell me how can i resolve this problem,
Thanks.

kbp 06-20-2011 09:01 AM

Did you start sctp_test as a server on 192.168.56.1 first ?

maswd 06-21-2011 01:15 AM

Yes, I run on either side (as client or as server) both commands fail
giving the same error
socket(..... ) -> sk=3
SCTP_EVENTS: error: -1

jasondevj 09-01-2011 09:38 PM

Hope you got it working if not and for anyone else who is facing the same issue.

I had the same issue every time I tried to do the test I got the same error. What I did was I downgraded the lksctp version to lksctp-tools-1.0.6-3.el5 and it worked perfectly I think there is a version conflict between the kernel and the new lksctp version or you could try to upgrade the kernel version ;)

maswd 09-05-2011 12:25 AM

LKSCTP over CENTOS
 
Dear jasondevj
Thank you very very much, you solved my very old problem that i put under the large heap.
You may be right, it is some problem with version.
any way lksctp-tools-1.0.6-3.el5 is working as far as checksctp is working in client/server configuration.
I will inform as i go for SS7-sigtran testing using lksctp.
Regards
Masood


All times are GMT -5. The time now is 10:43 PM.