osmo-ttcn3-hacks/bsc
Vadim Yanitskiy 5f6dd352ea BSC_Tests: fix race conditions in TC_chan_alloc_algo_ass_dynamic
In cases a), b), c), d), and e) we're sending one or more Measurement
Reports via the A-bis/RSL, and then immediately triggering a traffic
channel assignment by calling f_TC_chan_alloc_algo(), which sends an
Assignment Request via the A interface.

The above-mentioned messages are sent immediately all together, so it
may happen that the BSC handles the Assignment Request earlier than
the Measurement Report(s).  In this case there will be no RxLev
samples, so the BSC would fall-back to ascending allocation order.

Recently we saw this race condition actually happening on Jenkins:

https://jenkins.osmocom.org/jenkins/view/TTCN3/job/ttcn3-bsc-test-sccplite/1583/

Let's introduce an artificial delay before sending the Assignment
Request, so that the BSC has enough time to process received MRs.

Change-Id: I2fd6508488e935d208a7aba8e2f215b1cc14ad32
2022-08-29 15:39:06 +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: fix race conditions in TC_chan_alloc_algo_ass_dynamic 2022-08-29 15:39:06 +00:00
BSC_Tests_CBSP.ttcn bsc: Fix CBSP expectancies when receiving ETWS write-replace response 2022-08-09 12:51:59 +02:00
BSC_Tests_LCLS.ttcn BSC_Tests: add support for per-TRX RSL connections 2022-06-07 09:50:10 +00:00
BSC_Tests_SCCPlite.cfg bsc: add config files for sccplite BSC tests 2022-06-13 19:16:18 +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: Rename s/use_osmux/use_osmux_cn/ 2022-08-10 18:47:33 +00:00
MSC_ConnectionHandler.ttcn bsc: Rename s/use_osmux/use_osmux_cn/ 2022-08-10 18:47:33 +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 update various expected-results.xml 2022-08-12 02:31:23 +00:00
gen_links.sh bsc: Add Lb interface support 2020-10-13 08:43:10 +00:00
osmo-bsc-sccplite.cfg bsc: add config files for sccplite BSC tests 2022-06-13 19:16:18 +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_Tests: configure 3 additional TRX instances for BTS2 2022-06-07 09:50:10 +00: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"]; } %}