osmo-ttcn3-hacks/bsc
Vadim Yanitskiy e5d393c556 BSC_Tests: add support for per-TRX RSL connections
So far it was possible to communicate with multiple BTS instances,
however we were limited to only one IPA/RSL connection per BTS.
Communicating with additional TRX instances requires establishing
additional per-TRX IPA/RSL connections.  This patch extends the
testsuite infrastructure, so that it becomes possible to have
up to 4 individual TRX instances for each BTS.

* Introduce record 'BtsParams', store per-BTS params in an array.
* IPA_RSL_PT: test_CT.IPA_RSL[NUM_BTS] -> test_CT.IPA_RSL[NUM_BTS][NUM_TRX].
* BTS_State: test_CT.bts[NUM_BTS] -> test_CT.bts[NUM_BTS][NUM_TRX].
* f_init_bts_and_check_sysinfo() accepts number of TRX instances.
* f_init_bts() accepts number of TRX instances to configure.
* f_ipa_rsl_start() accepts a BtsTrxIdx param.

* Introduce record BtsTrxIdx allowing to specify BTS/TRX index values.
* f_ipa_tx(), f_exp_ipa_rx() accept a BtsTrxIdx param (default {0, 0}).
* f_est_dchan[_dyn]() accept a BtsTrxIdx param (default {0, 0}).
** and store the given BtsTrxIdx in returned DchanTuple.
* f_chreq_act_ack() accepts a BtsTrxIdx param (default {0, 0}).
* f_expect_chan_rel() accepts a BtsTrxIdx param (default {0, 0}).
* f_exp_ipa_rx_nonfatal() accepts BtsTrxIdx (default {0, 0}).
* f_exp_chan_rel_and_clear() uses BtsTrxIdx indicated in the given DchanTuple.

* Fix CTRL/statsd expectations in TC_stat_num_bts_connected_[123].
* Fix CTRL expectations in TC_ctrl_trx_rf_locked.

The major limitation is that MSC_ConnHdlr components still have no
access to additional TRX instances - this can be implemented later.

Change-Id: Ic0fd97234464ef624010a5f01189aa61f3393b84
Related: SYS#5460
2022-06-07 09:50:10 +00:00
..
BSC_Tests.cfg BSC_Tests.cfg: also execute LCLS test cases 2021-12-13 16:17:45 +00:00
BSC_Tests.default StatsD_Checker: Enable by default 2021-02-26 12:42:35 +01:00
BSC_Tests.ttcn BSC_Tests: add support for per-TRX RSL connections 2022-06-07 09:50:10 +00:00
BSC_Tests_CBSP.ttcn BSC_Tests: add support for per-TRX RSL connections 2022-06-07 09:50:10 +00:00
BSC_Tests_LCLS.ttcn BSC_Tests: add support for per-TRX RSL connections 2022-06-07 09:50:10 +00:00
BSC_Tests_VAMOS.cfg bsc-VAMOS: add cfg files to run BSC_Tests_VAMOS locally 2021-06-05 20:24:35 +00:00
BSC_Tests_VAMOS.ttcn BSC_Tests: add support for per-TRX RSL connections 2022-06-07 09:50:10 +00:00
MSC_ConnectionHandler.ttcn bsc: as_Media_mgw: fail on DLCX 2022-04-07 14:18:28 +00:00
README.md bsc: Add statsd checker and use it in TC_assignment_sign 2020-08-13 15:02:15 +00:00
README.txt bsc: add TC_stats_conn_fail 2021-08-27 08:24:23 +00:00
expected-results.xml bsc: add new testcase TC_srvcc_eutran_to_geran_a5_3 2022-03-16 12:47:54 +00:00
gen_links.sh bsc: Add Lb interface support 2020-10-13 08:43:10 +00:00
osmo-bsc-vamos.cfg bsc/osmo-bsc-vamos.cfg: sync logging config with osmo-bsc.cfg 2021-12-14 12:59:04 +00:00
osmo-bsc.cfg bsc/osmo-bsc.cfg: change logging level nm info -> notice 2022-05-29 20:29:50 +06:00
osmo-stp.cfg bsc/osmo-{bsc,stp}.cfg: enable extended timestamp in logging 2021-12-14 12:59:04 +00:00
regen_makefile.sh regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00

README.md

BSC_Tests.ttcn

  • external interfaces
    • A-bis side: RSL (emulates BTS-side client) (OML handled by osmo-bts-omldummy)
    • A-side (emulates MSC-side)
      • BSSAP/SCCP/M3UA (AoIP)
      • BSSAP/SCCP/IPA (SCCPLite)
    • MGW side: MGCP (emulates MGW side)
    • VTY
    • CTRL
    • StatsD

{% dot bsc_tests.svg digraph G { graph [label="AoIP", labelloc=t, fontsize=30]; rankdir=LR; { rank=same; BTS; STP; }; BSC [label="IUT\nosmo-bsc",shape="box"]; ATS [label="ATS\nBSC_Tests.ttcn"]; BTS [label="osmo-bts-omldummy\nOML only"];

BTS -> BSC [label="A-bis OML"]; ATS -> BSC [label="A-bis RSL"]; ATS -> BSC [label="CTRL"]; ATS -> BSC [label="VTY"]; BSC -> ATS [label="StatsD"]; ATS -> STP [label="A BSSAP\nSCCP/M3UA"]; BSC -> STP [label="A BSSAP\nSCCP/M3UA"]; } %}

{% dot bsc_tests_sccplite.svg digraph G { graph [label="SCCPLite", labelloc=t, fontsize=30]; rankdir=LR; BSC [label="IUT\nosmo-bsc",shape="box"]; ATS [label="ATS\nBSC_Tests.ttcn"]; BTS [label="osmo-bts-omldummy\nOML only"];

BTS -> BSC [label="A-bis OML"]; ATS -> BSC [label="A-bis RSL"]; ATS -> BSC [label="CTRL"]; ATS -> BSC [label="VTY"]; BSC -> ATS [label="StatsD"]; ATS -> BSC [label="A BSSAP\nSCCP/IPA"]; } %}