LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-16-2011, 01:22 AM   #1
maswd
LQ Newbie
 
Registered: May 2011
Posts: 5

Rep: Reputation: Disabled
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.
 
Old 06-16-2011, 06:39 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
Old 06-17-2011, 08:18 AM   #3
maswd
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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)

Last edited by maswd; 06-17-2011 at 08:20 AM.
 
Old 06-18-2011, 03:55 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
Old 06-20-2011, 01:14 AM   #5
maswd
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thumbs up 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.
 
Old 06-20-2011, 09:01 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Did you start sctp_test as a server on 192.168.56.1 first ?
 
Old 06-21-2011, 01:15 AM   #7
maswd
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
Old 09-01-2011, 09:38 PM   #8
jasondevj
LQ Newbie
 
Registered: Sep 2011
Distribution: Redhat and Fedora
Posts: 1

Rep: Reputation: Disabled
Smile

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
 
Old 09-05-2011, 12:25 AM   #9
maswd
LQ Newbie
 
Registered: May 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
protocol not supported audiocd trinity9 Fedora 1 01-27-2006 07:58 AM
Protocol not supported Debian phoenix_wolf Linux - Newbie 1 12-12-2004 02:35 AM
protocol not supported aplusguy Linux - Software 1 01-13-2004 06:39 AM
Can not use gaim, says protocol not supported ICO Linux - Newbie 2 11-22-2003 06:32 PM
AMSN Supported Protocol 9 ahmerali Linux - Software 5 10-21-2003 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration