March 22nd, 2013, 09:55 AM
SCTP protocol: multistreaming
I'm a computer science student and for my thesis I'm studying the new communication protocol SCTP. I am supposed to write a simple application client-server using it. Actually I'm focusing on multistreaming.
I'm using the new API sctp_recvmsg() and sctp_sendmsg() but I noticed that sending n files with n conmections in TCP is always much faster
than using n streams and one only SCTP association.
Why this? Shouldn't SCTP be faster than TPC when using multistreaming?
Maybe I am making some mistakes in programming...can someone explain to me how to do it?
Thank you for all your attention!
March 22nd, 2013, 05:50 PM
March 22nd, 2013, 06:01 PM
Hey, thank you very much for your answer.
Well I'm using Linux Ubuntu and I installed the following packages:
Because sctp is supported/implemented in linux kernel
>= 2.6 but to be used it needs those two packets.
Are they emulator? How/What Shall I do?
Forgive me...I'm becoming really nervous for this problem :P
March 22nd, 2013, 06:25 PM
Why are you worried about it being faster?
Being slower is just as valid an answer as being faster.
Also, the same kind of analysis you would perform for "why is it faster" is pretty much the same kind of analysis you would do for "why is it slower".
Science is about looking at the evidence (good / bad / indifferent), then coming up with an hypothesis to explain it.
Starting out with "SCTP is faster" isn't science, it's voodoo.
The Wiki page says "Linux kernel-based 2.4 and newer" for kernel support, so I'm wondering why you downloaded anything at all.
March 22nd, 2013, 06:41 PM
I installed those packages because even if SCTP is supported,
you need them to have access to the APIs and file
netinet.h/sctp to include in a C source code. That's why...
Well, my thesis should support SCTP and I have read in some articles
and rfc that it is at least as performant as tcp.
So I do not understand if those articles are wrong or if it's me making mistakes in programming...I don't want it to be more
Efficient than tcp but at least the same.
Otherwise, why are new network applications based on SCTP if it's so slow?