#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0

    Question SCTP protocol: multistreaming


    Hello everyone!
    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!
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,376
    Rep Power
    1871
    Does your OS support it natively?
    If not, the emulation of SCTP it will always be slower than whatever it uses to provide the emulation.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0
    Hey, thank you very much for your answer.
    Well I'm using Linux Ubuntu and I installed the following packages:

    libsctp-dev lksctp-tools

    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
  6. #4
  7. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,376
    Rep Power
    1871
    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.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    3
    Rep Power
    0
    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?

IMN logo majestic logo threadwatch logo seochat tools logo