9
0
Fork 0
Commit Graph

73 Commits

Author SHA1 Message Date
Holger Hans Peter Freyther 60bc8e7dab mtp: Allow to send SCCP/ISUP to a specific endpoint
For a linkset define where SCCP/ISUP should be send. This config
should probably move up to the application part when real work on
the routing is done. Right now the sccp_opc/sccp_dpc need to stay
inside the mtp_layer3.c to be able to send a TFA for the reachable
OPC and it is easier to keep both (dpc/opc) in the same file.
2012-01-16 11:51:18 +01:00
Holger Hans Peter Freyther 53559b39e5 mtp: Provide the method with the OPC and DPC
We want to submit on a link set but want to provide the OPC and
DPC of the callers choice.
2012-01-16 09:57:06 +01:00
Holger Hans Peter Freyther 104280700a mtp: Name the parameter opc instead of just PC 2012-01-16 09:55:42 +01:00
Harald Welte ff397edf38 Adopt to recent libosmocore namespace changes and libosmogsm 2011-05-08 10:29:23 +02:00
Holger Hans Peter Freyther 56cba9ab45 ss7: Drop the input of packages as well
We don't want the input change any state on the linkset and will
drop them if we think our application is not reachable.
2011-03-03 01:20:03 +01:00
Holger Hans Peter Freyther 899198ed2e ss7: Move the blocking of outgoing messages into the SS7 app
We are using knowledge of the SS7 application to drop outgoing
packages to force failures on the link and should move this into
the ss7 application.
2011-03-03 01:19:45 +01:00
Holger Hans Peter Freyther d38b87a4c9 ss7: Do not send anything until both linksets in an app are up
We need some way to forward the failure of one link to another but
they are not normally routed so we can not send a TFP. Right now we
will simply stop responding until both links are up. This should make
the SLTM fail and trigger a re-alignment on both sides. The key here
is that the 2 * SLTM timeout needs to be higher than it takes to re-align
the link. I'm not sure this code will work.
2011-03-03 01:19:02 +01:00
Holger Hans Peter Freyther 3574c121ff mtp: Consider the linkset be ready for SCTP after having collected routing data
After the expiry of T18 we should have collected the routing data
from the adjacent links and should be able to send SCCP packages
to remote endpoints.
2011-03-02 23:44:03 +01:00
Holger Hans Peter Freyther d062f8318e mtp: Call the mtp_link_set always set otherwise things get confusing
In a backtrace it is confusing to see variables called link and link
and one is a mtp_link and the other is a mtp_link_set.
2011-02-23 16:58:15 +01:00
Holger Hans Peter Freyther 47c9faac3b mtp: Attempt to implement the MTP Restart properly
For the SSP functionatilty we will need to have the timers T18
and T20. In the period of T18 we will collect TFP/TFR/TFA for the
reachable nodes of the system. Each of this node will send us a TRA
when it is finished. Right now we assume to only have one node and
stop the T18 after the TRA of this node. Then we would need to send
the TFP/TFR we have collected. On the expiry of the T20 timer we
will need to send our TRA and notify local users.

For more complex routing we will need to have a shared routing
cache and remember which SSNs and OPCs are reachable and have inter
linkset notifications.
2011-02-23 15:27:09 +01:00
Holger Hans Peter Freyther 7176030e02 vty: Add all mighty new vty interface for osmo-stp
This new interface allows to have multiple linksets, msc
connections and ways to connect those in one instance of
the osmo-stp. Forbid to reset linksets without an app.
2011-02-23 15:25:35 +01:00
Holger Hans Peter Freyther 169a1a918c misc: Use llist_add_tail to add new links to the end 2011-02-22 21:05:59 +01:00
Holger Hans Peter Freyther 5e5758c783 log: Improve some logging messages across several files. 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 5a34c7f6f8 mtp: Rename link_no to nr, add a name like for the other commands 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 6c0b2e570c mtp: Make the mtp_link point to a specific type of link
We might want to be able to change the type of a link at
runtime. Decouple the link and the actual type of the link.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 1b5d846b46 mtp: Stop hardcoding the supported SSN inside the mtp_layer3.c
Stop hardcoding the supported ssn's inside the mtp_layer3.c and
make it possible to allow to configure this in the future.
2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther a33b23f293 mtp: Rename no to nr to align with the rest of the structs 2011-02-17 19:34:28 +01:00
Holger Hans Peter Freyther 694337f893 mtp: Allow to find a linkset by number 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 599c9a4b9a mtp: Allocate the MTPLinkSet as a child of the BSC
In preparation of the VTY code change, make the mtp linkset
a child of the bsc.
2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 0452f22a21 stp: Add code that allows to inject messages on any linkset
This can be useful to test out certain messages without having
any of the linksets be fully connected. It is not possible to
get the result. In the future this code should reply with an
M2UA error message if something went wrong.
2011-02-10 20:09:08 +01:00
Holger Hans Peter Freyther d3f412bbd5 mtp: Turn error messages into full sentences.
Turn the error messages into full sentences that
end with a full stop. Try to put the link set name
and the link number into these messages.
2011-01-28 18:52:16 +01:00
Holger Hans Peter Freyther 38d936a445 mtp: Assign a name to linkset, use this name in the log messages 2011-01-26 12:41:42 +01:00
Holger Hans Peter Freyther fd5d8d2ac1 mtp: Send the TFP/TRA/TFA with the first SLS provided by that link 2011-01-25 13:38:28 +01:00
Holger Hans Peter Freyther 7d336a55ed mtp: Make SCCP tfa/tra/tfp messages work on the linkset
This will be used to send the data with the right SLS from
the right link of the linkset.
2011-01-25 13:38:27 +01:00
Holger Hans Peter Freyther 1ec2a749f0 mtp: Remember the first SLS this link is on 2011-01-25 13:38:27 +01:00
Holger Hans Peter Freyther 326a1f7310 stats: Fix counting incoming packets from a link 2011-01-24 20:52:30 +01:00
Holger Hans Peter Freyther 9543f4a356 mtp: Call it mtp_link_submit and use it in mtp_link
Remove the _set from the API, call it from the mtp_link.c. This
will fix the statistics for outgoing packets.
2011-01-24 20:49:58 +01:00
Holger Hans Peter Freyther 4c1eb0ee43 stats: Count packets on a per link level 2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther c5d897e847 stats: Collect statistics on the linkset
Collect incoming, in sccp, in isup, out isup, out sccp packets.
This does not yet work for out in total.
2011-01-22 16:22:18 +01:00
Holger Hans Peter Freyther 050577a088 mtp: Return SLTA on the same SLS, send SLTM with a static sls
Derive the SLS from the static link_no we have assigned.
2011-01-20 19:28:15 +01:00
Holger Hans Peter Freyther 95057b9237 mtp: Send the SLTM/SLTA on the link directly
For both the SLTM that the app is sending and the SLTM we
are receiving we don't want to go through the SLC.
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther 1cc24561b0 mtp: Count the links in a linkset 2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther 9b8a4a7f49 mtp: Remove the unused linkset_sccp_down routine as it is not used 2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther a8ce061d86 mtp: Move the link testing into a new file for mtp_link
The link testing should work under the linkset and if the
SLTM is failing the link should be taken down and it should
be restarted.
2011-01-20 19:07:16 +01:00
Holger Hans Peter Freyther 2d845fca0c mtp: Rename the the_link to set as it is a link set 2011-01-20 15:44:14 +01:00
Holger Hans Peter Freyther 1349584c26 mtp: Start the linktest directly
No need for delaying the linktest, start it directly when
the linkset should come up
2011-01-20 15:08:57 +01:00
Holger Hans Peter Freyther 606eae8ece mtp: Send the TFP/TRA once the first link is available
Instead of sending SCCP TFP/TRA as a response to a TRA
the code will now send one as a response to the first
SLTA we receive in the linkset on the first link.
2011-01-20 14:23:10 +01:00
Holger Hans Peter Freyther 157de2a8ab mtp: Only respond to regular maintainenance for our code point 2011-01-20 13:11:29 +01:00
Holger Hans Peter Freyther d8a73e24d2 isup: Allow to have a different OPC for ISUP messages. 2011-01-20 11:49:39 +01:00
Holger Hans Peter Freyther cfbe80febb mtp: Send a TFA for the point codes we are routing to. 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther adf7692031 mtp: Send TRA messages on all affected point codes 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther 27c5e2357f mtp: Send the TFP for every POC we want to handle. 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther bee2ed18c7 mtp: Make the input path work on a specific link of the linkset 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther 1b6901ec4a stp: Forward unhandled ISUP from one end to another 2011-01-20 11:37:50 +01:00
Holger Hans Peter Freyther 92affdad72 mtp: Do not send anything in case the there is no link
If there is no usable link in the linkset we should not try
to send. This assumes that all incoming packages come from
links that are up. We do not check this right now but we
will have to check this.
2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther 101cd0bc83 mtp: Send the SSA/SSP for the apoc and assn of the request 2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther df8597aeea mtp: Send the SSA with the affected POC for SCCP. 2011-01-20 11:37:49 +01:00
Holger Hans Peter Freyther 0e2f9116f8 mtp: Rename link_data to mtp_link and move out the transport specific things
Rename link_data to mtp_link and move it into the mtp_data header
file, also remove the union to ease creating more of the subtypes.

This is done in preparation to the linkset knowing more about the
link (e.g. having a link test per link instead of per link).
2011-01-17 14:11:26 +01:00
Holger Hans Peter Freyther d91f94024e mtp: Create the SLC with all links 2011-01-17 11:27:32 +01:00
Holger Hans Peter Freyther fe72c160e2 mtp: Turn the MTPl2 link into a list of links. 2011-01-17 11:27:00 +01:00