Osmocom test suites in TTCN-3 (Eclipse Titan) https://osmocom.org/projects/core-testing-infra
Go to file
Philipp Maier ac791564f1 GTPv2_Emulation: improve accessibility of unit-data (TEID0)
When GTPv2 unit-data is passed around, there is always the problem that
it is routed to the MTC_CT (TEID0). The reason for this is that GTPv2_Emulation
cannot determine a specific receiver component because unit-data does
not contain any addressing fields that would identifiy a specific vc_conn.

In GTPv2_Emulation there is already a mechanism implemented that detects
responses by their sequence number. Untfortunately this does only work
when the vc_conn has send a unit-data message before so that the
sequence number of the response can be guessed.

In case the first messages comes from the IUT, there is no way to
determine the receiving vc_conn, so this message is then routed to the
MCT_CT (TEID0). This can be a problem for testcases that run from inside
a ConnHdlr componet.

The solution that is proposed in this patch uses a mechanism that allows
to create an expectation for a specific messageType. When the GTPv2_Emulation
sees a unit-data message with the expected messageType, it will forward
it to all ConnHdlr (vc_conn) components that have registered for this
messageType previously.

Related: OS#5760
Change-Id: I02bb74d7bd547347168b5c64ee6512c71e8fd960
2023-09-01 17:23:45 +02:00
COMMON initial chekin of code received by Ericsson on 20170410 2017-04-12 12:13:44 +02:00
ROHC_CNL113426_LATEST import Ericsson NS, ISUP, ROHC and SNDCP modules for TITAN 2017-07-25 08:23:52 +02:00
SCCP_Test regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
asn-test HNBAP, RUA and RANAP protocol codecs 2019-04-25 20:07:11 +00:00
bin Remove M3UA/MTP3/SCCP code from this repo, use upstream repos 2018-03-18 12:52:20 +01:00
bsc BSC_Tests: Fix test case TC_err_84_unknown 2023-07-26 12:45:31 +00:00
bsc-nat ran emulation: allow multiple reset attempts 2022-03-31 17:49:10 +00:00
bts BTS_Tests: add new testcase TC_pcu_data_req_imm_ass_agch 2023-08-29 13:18:03 +02:00
cbc cbc: Add expected-results.xml 2022-08-05 22:31:33 +02:00
ccid ccid: Lots of CCID helpers have been moved to titan.TestPorts.USB 2022-02-25 16:56:16 +01:00
deps ASCI: Update commit hash of titan.ProtocolModules.MobileL3_v13.4.0 2023-08-29 11:11:16 +02:00
dia2gsup dia2gsup: initial refactoring 2023-08-31 11:50:47 +00:00
doc doc: Always annotate codec port types in case of IPL4/UD ports 2021-12-22 14:24:50 +00:00
fr Avoid generating zero-length packets 2022-04-12 22:52:47 +02:00
fr-net Start BSSGP_CT and NS_CT as alive-type component in all testsuites 2022-02-24 11:47:43 +00:00
gbproxy gbproxy: Reduce timeout to fix flaky test 2023-05-09 13:59:28 +00:00
ggsn_tests ggsn: Speed up tests by lowering retransmission T3,N3 timers 2023-04-18 10:01:02 +00:00
hlr regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
hnbgw hnbgw: TC_apply_sccp() 2023-08-19 01:59:27 +00:00
hnodeb copyright: fix typo: sysmocom s/s.m.f.c./s.f.m.c./ GmbH 2023-05-18 18:58:40 +07:00
lapdm regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
library GTPv2_Emulation: improve accessibility of unit-data (TEID0) 2023-09-01 17:23:45 +02:00
mgw MGW_Tests: Add test for "confecho" connection. 2023-07-18 07:08:23 +00:00
mme MME_Tests: add new testcase TC_s1ap_tau_unknown_guti 2023-09-01 17:23:45 +02:00
msc ASCI: Add tests for voice group/broadcast calls at MSC 2023-08-30 09:18:55 +00:00
ns Revert "WIP: ns: Add test for SNS Size NSEI IE" 2022-12-12 11:00:05 +00:00
pcap-client Avoid generating zero-length packets 2022-04-12 22:52:47 +02:00
pcu PCUIF_Components: fix confirm member in record BTS_CCCH_Block 2023-08-30 15:40:15 +02:00
pgw DIAMETER_Emulation: Support forwarding messages identified by ete_id to a client component 2023-08-26 07:27:15 +00:00
remsim remsim: server: TC_connect_{client,bankd}_duplicate 2022-05-04 10:08:44 +00:00
sccp sccp: add debug output when the expected PDU doesn't match 2022-11-22 18:49:27 +00:00
selftest library: move IA/IAR Rest Octets to GSM_RestOctets.ttcn 2022-10-21 10:35:27 +00:00
sgsn SGSN_Tests: add RIM ROUTING ADDRESS field in request 2023-08-15 09:42:51 +00:00
simtrace move SIMTRACE_{Types,Templates,Emulation}.ttcn to library 2022-02-25 16:56:16 +01:00
sip regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
smlc */osmo-stp.cfg: Explicitly define role & sctp-role 2023-07-11 11:48:41 +00:00
stp stp: Don't expect a fixed SLS in IPA -> M3UA case 2023-09-01 08:29:01 +00:00
sysinfo regen_makefile.sh: set executable name explicitly 2021-10-13 11:12:22 +02:00
upf move f_str_split() from UPF_Tests to Osmocom_VTY_Functions 2023-07-10 15:34:57 +00:00
.checkpatch.conf checkpatch.conf: ignore imported sbcap *.asn files 2022-07-18 08:56:46 +00:00
.gitignore .gitignore: sms.db-shm sbs.db-wal (when db is open) 2023-03-08 23:15:42 +00:00
.gitreview Add git-review config 2017-12-13 11:15:48 +01:00
Common.cfg Common.cfg: Always log VEERDICTOP on Console 2020-10-10 18:15:37 +02:00
Makefile dia2gsup: Introduce initial testsuite 2023-08-26 07:27:15 +00:00
compare-results.py compare_results.py: use ansi colors 2020-05-19 19:25:35 +00:00
gen_links.sh.inc gen_links.sh.inc: Fix globbing writing '*.ttcn' to */.gitignore 2022-03-22 17:49:55 +00:00
log_merge.sh Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00
mask_expected_results.sh add mask_expected_results.sh 2018-04-11 19:32:01 +02:00
regen-makefile.sh regen_makefile.sh: files/flags in separate lines 2021-10-12 16:35:01 +02:00
rmlinks.sh Remove M3UA/MTP3/SCCP code from this repo, use upstream repos 2018-03-18 12:52:20 +01:00
start-testsuite.sh Limit maximum number of open file descriptors to overcome titan bug 2023-03-16 12:07:41 +01:00
ttcn3-dumpcap-start.sh Fix missing quotes for possibly unresolved variables in shell test-statements 2022-11-02 17:36:35 +00:00
ttcn3-dumpcap-stop.sh fixup: ttcn3-tcpdump*.sh: Fix output of special chars 2022-12-20 15:05:55 +00:00
ttcn3-tcpdump-start.sh ttcn3-tcpdump*.sh: Fix tcpdump procs not being killed 2022-11-28 22:52:52 +01:00
ttcn3-tcpdump-stop.sh fixup: ttcn3-tcpdump*.sh: Fix output of special chars 2022-12-20 15:05:55 +00:00
update_expected_results_from_jenkins.sh Put build / run scripts under Apache 2.0 license 2019-06-21 09:34:09 +00:00