Questions tagged [sctp]

Stream Control Transmission Protocol (SCTP) is a transport layer protocol providing reliable transport of data like TCP but with message oriented features like UDP.

It provides some of the same service features of both: it is message-oriented like UDP and ensures reliable, in-sequence transport of messages with congestion control like TCP.

http://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol

230 questions
1
vote
1 answer

is it a good idea to reuse port using option SO_REUSEADDR which is already in TIME_WAIT state?

I know there are already lot of questions on SO_REUSEADDR. Still I could not get its disdvantages and have few questions. 1]what is the danger associated with SO_REUSEADDR when we are not using any linger option. 2]Will there be any packet loss…
user3591955
1
vote
0 answers

WebRTC and socket.io WebSockets heartbeat

I create an application using WebRTC data channels (ordered, reliable) and socket.io WebSockets as signalling server. Assumptions (please confirm / neglect them) WebRTC SCTP & socket.io send heartbeats, but their interval may be different if a…
Niklas Peter
  • 1,776
  • 17
  • 21
1
vote
2 answers

Linux: Error getting socket options for sctp connection

During establishment of one-to-one sctp connection, below error is reported in internal server logs after accept() of sctp connection: "Error getting socket options for socket: 13" From the error, it seems that getsockopt() has returned an error,…
A.Midany
  • 201
  • 1
  • 5
  • 16
1
vote
0 answers

Can SOL_SOCKET be used for any optname?

I am very new to SCTP programming and while troubleshooting and referring to a book (Unix Network Programming, by W.Richard Stevens) I came across something ambiguous. They have used the level name as SOL_SOCKET here and here for option name…
1
vote
0 answers

Making TCP dump without packets loss

How to make a TCP dump where it is guaranteed that all the packets that really pass through the network are captured, and nothing is missed? Details: We have an issue with 3rd party vendor who provides a solution on top of SCTP stack, which he also…
Neighbour
  • 97
  • 10
1
vote
1 answer

Add SCTP protocol in scapy

I have to build SCTP packets in scapy, however it seems that SCTP does not exist in scapy folders. So I searched on the net and I found the sctp.py script: https://github.com/jwiegley/scapy/blob/master/scapy/layers/sctp.py I tried to copy this file…
farfalla
  • 173
  • 1
  • 1
  • 10
1
vote
1 answer

SCTP receive message function returning zero

The client program i have written uses SCTP sockets for communication. I am using sctp_recvmsg to read the data available for a particular user from socket. I have noticed that at times sctp_recvmsg returns 0 value instead of number of bytes read or…
user562082
  • 61
  • 1
  • 8
1
vote
0 answers

Java IllegalAccessError exception when trying to run jmeter with SCTP scenario using junit test

I have a junit test that open a socket to linux machine and run jmeter scenario. When I invoke the jmeter (via the test) to run SCTP scenario from junit test I'm getting IllegalAccessError exception. But, when I run exactly the same command via the…
1
vote
1 answer

DTLS over SCTP using OpenSSL

I am wanting to write an application that uses OpenSSL to take advantage of it's DTLS support over SCTP. I am using Ubuntu 13.10. I have downloaded and successfully compiled LKSCTP 1.0.15 and OpenSSL 1.0.1e. I compiled OpenSSL with ./config sctp. I…
TDW
  • 21
  • 4
1
vote
1 answer

OpenJDK or Sun JDK for SCTP implementation

I'm setting up an Ubuntu VM for my project that requires SCTP connections. I'm confused as which Java7 to install for this - OpenJDK7 or SunJDK 7? Which one would have the most support? I'll be prowling on the internet to find SCTP API's and usage.
user2441441
  • 1,237
  • 4
  • 24
  • 45
1
vote
1 answer

Why 'MSG_EOF' is not found in my sctp program?

sctp_sendmsg(sock_fd, readbuf, rd_sz, (SA *)&cliaddr, len, sri.sinfo_ppid, (sri.sinfo_flags| MSG_EOF), sri.sinfo_stream, 0, 0); In ubuntu12.04, I compiled as this: gcc -lsctp temp.c -o temp. Howerver, gcc said that: error: ‘MSG_EOF’…
huaxz1986
  • 307
  • 5
  • 10
1
vote
0 answers

SCTP association 3-streams vs. 3 TCP connections

Me and one of my friends are trying to realize this simple client-server application. We observed the performance and we noticed that, in order to transfer 3 files, a singole SCTP association 3-streamed is much less performant that 3 tcp…
user2204592
  • 97
  • 1
  • 5
1
vote
1 answer

Concurrent sctp read threads and non-blocking mode

Concurrent reads from sctp socket are thread safe. SCTP stack probably uses some synchronization primitive (e.g. mutex) to achieve it. My question is if the (sctp) socket is placed in non-blocking mode. Will the read return if sctp code could not…
Ittium
  • 21
  • 3
1
vote
1 answer

SCTP Multistreaming: infinite loop

I have a simple client-server application on SCTP! The client connects to server opening 3 streams and the server sends a file per stream. The problem is that I don't know how to control the 3 streams, to know when sctp_rcvmsg() from a stream i 0 it…
SagittariusA
  • 5,289
  • 15
  • 73
  • 127
1
vote
2 answers

Exception in sending message via SCTP in Java

I am doing some testing with SCTP in a simple client server model. My Server code is following: public class SCTPServer extends Thread { InetSocketAddress serverSocketAddress=null; SctpServerChannel sctpServerChannel; SctpChannel…
Debobroto Das
  • 834
  • 6
  • 16