[erlang-questions] gen_sctp: What delays SACK?
Tue Nov 13 10:15:33 CET 2018
We're using an elixir application as a sort of protocol tester. It communicated with the system-under-test over SCTP as a transport.
We're observing delay and unsent messages and due to the nature of the SCTP protocol we're not sure which side causes the issue.
The BEAM side has the NO_DELAY option set and pumps a burst of messages but then waits for responses (so it will not burst indefinitely, it burst once and then respond).
The C++ application has the DELAYED_SACK option set - we tried with both sack_freq 1 (which supposedly disables the algorithm) and higher (the default in our system).
(We also increased the receive window on both sides to ensure that senders would not block.)
But we're stumped. The C++ side is not responding at some point. When we did an actual target test once and we saw SCTP messages sent from system-under-test just stop when analyzing the tcpdump of the interfaces - C++ application has not emitted something on the wire and respectively nothing is received.
Our latest area of inquiry is to find out if maybe the elixir part is simply not getting scheduled - but can this impact for example SACK latency? Who acknowledges a message - the SCTP stack by itself or the application? And will the protocol block the sender until SACK?
I'm sorry for asking such vague questions but SCTP know-how is spread thin in our outfit and we're not the experts...
More information about the erlang-questions