9
0
Fork 0
Commit Graph

14 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 1bf8a4e42a m3ua: Make connection non-blocking to not block other flows
Currently the connect is blocking leading to one bad connection
(e.g. to a black hole) blocking all other connections leading to
bursty traffic.

Change-Id: Idfca8acbce09176055da3e577566386e07d7a348
2017-10-23 11:55:28 +08:00
Holger Hans Peter Freyther 368e549a92 tests/vty: Add VTY tests to the osmo-stp
There seems to be issues with the write handling of the osmo-stp
and so far we did not enable vty tests here. Make it possible to
enable the tests, fix the VTY strings, change string to OsmoSTP.

Change-Id: I547fd4840d86ce16e8589fb63802dd7099781194
2016-08-15 13:36:25 +02:00
Holger Hans Peter Freyther f3afabe989 misc: Attempt to fix various 64bit compiler warnings
Change-Id: I4ed058aba15d9fdc22dde99d60df0aabd6585b75
2016-08-15 13:36:11 +02:00
Holger Hans Peter Freyther e948224d44 m3ua: Start timer to wait for ASPAC_ACK
For M3UA we should have one time-out for operation we want and
then re-transmit it. As this is too much work right now create
a single timer that waits that after a connect the ASPAC_ACK
state will be reached.
2015-10-09 14:43:12 +02:00
Holger Hans Peter Freyther 1a1aa0c739 ctr: Count number of dropped messages
In case of back pressure we can not send messages quick enough
and will drop messages. Add a counter so we can count how often
this happened per link/linkset. The SCTP M2UA code is not changed
as we don't have a link in the hands and adding it is too risky
without tests (not all M2UA have a link index so some might not
have a link).
2015-10-04 15:24:27 +02:00
Holger Hans Peter Freyther b492e86e4f ss7: Allow to force the link down when the IPA conn is going down
For the "bridging" to IPA mode we can force the SCTP/M3UA connection
down. This way the remote STP will do a proper link fail-over
procedure instead of the STP throwing data away.

This is not configurable yet.
2015-09-21 16:43:20 +02:00
Holger Hans Peter Freyther d5be846c92 sctp: Print the rc and the errno in case of an error
Print the errno and RC to give some kind of idea about
the error.
2015-08-30 22:55:54 +02:00
Holger Hans Peter Freyther 6a441c86fe m3ua: Make the traffic-mode configurable 2015-04-16 22:32:09 +02:00
Holger Hans Peter Freyther 71477e1342 m3ua: Send data on stream != 0
RFC4666:
 The DATA message MUST NOT be sent on stream 0
2015-03-24 21:14:18 +01:00
Holger Hans Peter Freyther 316168249f all: Use the libosmo-sccp version of mtp_level3.h 2015-03-24 19:24:22 +01:00
Holger Hans Peter Freyther ebdbc11403 m3ua: Use the MTP_READ_DPC/MTP_READ_OPC for using the right PC
Make the code work for both ISUP and SCCP and let the address
handling still be part of the linkset/mtp3 code.
2015-03-24 19:21:01 +01:00
Holger Hans Peter Freyther d1df399a97 m3ua: Implement link bring-up and sending/receiving of data
the opc/dpc for ISUP is currently wrong. The send/recv path
for actual SCCP data is not tested.
2015-03-24 18:53:21 +01:00
Holger Hans Peter Freyther 6a20bae1f9 m3ua: Implement connect and re-connect handling 2015-03-24 18:52:46 +01:00
Holger Hans Peter Freyther d2f21e0796 m3ua: Begin to create a m3ua client connection
Implement a basic M3UA state machine on a SCTP connection.
2015-03-24 18:52:45 +01:00