9
0
Fork 0
Commit Graph

54 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
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 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 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 b27c9626e8 mtp: Remove the bsc pointer from the MTP LinkSet 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 a7bc3aafdc ss7: Create a SS7 application that is responsible for the routing 2011-02-17 19:34:27 +01:00
Holger Hans Peter Freyther 84ec8714b2 msc: Move the MSC Connection into a new header file
This is in preparation of splitting the MSC part and the
nat logic for the upcoming config rewriting.
2011-02-17 19:34:27 +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 89fa11af02 bsc: Remove the global link_set pointer from the bsc
Start removing the static names for the linkset
2011-02-10 20:09:09 +01:00
Holger Hans Peter Freyther e86c02e107 bsc: Move the BSC<->MSC variables to a new struct.
Move the MSC related information out of the bsc_data and update
the code to use this BSC configuration. This is greatly cleaning
up the code and in theory there might now be two BSC and two MSCs
that one application can handle (minus the missing VTY config)
2011-02-10 20:09:09 +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 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 1ec2a749f0 mtp: Remember the first SLS this link is on 2011-01-25 13:38:27 +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 ea5ce23d72 mtp: Make it possible to block a link.
The semantic of a block is to take the physical
link down, call mtp_link_down and to make sure
that the link remains down and no packets are
forwarded there. The unblock call will reset the
link and this should get it back into operation
again.
2011-01-24 15:35:08 +01:00
Holger Hans Peter Freyther f6375b49d3 pcap: Allow to log on a link or linkset level 2011-01-22 21:33:18 +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 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 fa8cf2d938 mtp: Create a method for a link failure to restart the link.
Make sure that a failed link will be restarted by calling the
reset method which should take the link down.
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 d8a73e24d2 isup: Allow to have a different OPC for ISUP messages. 2011-01-20 11:49:39 +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 efbd8c2e80 stp: Allow to forward all ISUP messages without any modification 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 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 fe72c160e2 mtp: Turn the MTPl2 link into a list of links. 2011-01-17 11:27:00 +01:00
Holger Hans Peter Freyther 069e635413 mtp: Keep an array for the SLS -> SLC mapping for active links. 2011-01-17 11:21:12 +01:00
Holger Hans Peter Freyther 644aafbc94 mtp: Make the link_data be a child of the link_set
Change the order of the link and linkset. The link will be
below the linkset. This change should make it more easy to
introduce multiple linksets.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther c8405692b3 mtp: Propagate link and linkset failures in two stages
Handle a single link failure in links.c and if all the
links have failed propagate it up. This is preparing the
multiple links support.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther 569f1e171d mtp: Rename mtp_link to mtp_link_set as this is the linkset
The link_udp is actually below the linkset. We need to get this
right now and then can have multiple links.
2011-01-17 11:21:11 +01:00
Holger Hans Peter Freyther 346e1c4bc4 mtp: Attempt to select the sls properly in the round robin fashion
When we call the submit method with a SLS of -1 we will try
to find the next SLS to do things in a round robin way.
2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther 45738887be mtp: Kill the link variable from the mtp link. 2011-01-17 11:21:10 +01:00
Holger Hans Peter Freyther f19afaed7b sccp: Stop queueing messages between SLTM messages
Remove the queueing of messages that was added during a debugging
session and should not be needed. This will simply bringing down
the linkset.
2011-01-17 11:21:09 +01:00
Holger Hans Peter Freyther de56c22702 license: Switch to the GNU AGPLv3 for this network service 2011-01-16 20:35:13 +01:00
Holger Hans Peter Freyther 7a72556577 mtp: Allow to have a different POC for SCCP 2011-01-01 13:34:58 +01:00
Holger Hans Peter Freyther 3aad776b28 isup: Respond to a ISUP GRS with a GRA. 2010-12-10 13:22:46 +01:00
Holger Hans Peter Freyther e976df1b5b mtp: Be able to set the spare bits in the network indicator 2010-11-26 21:07:11 +01:00