Commit Graph

17 Commits

Author SHA1 Message Date
Pau Espin a5536b697d cbc: test concurrent CBS message
Test having more than one active CBS message being broadcasted to an
MME.

Related: OS#4945
Change-Id: Ie9208c33f3b2586e19b446318b6ae9da07a76506
2022-08-04 13:32:39 +02:00
Pau Espin b1a83fbb6d cbc: Test sending Unknown TAI List to osmo-cbc
Related: OS#4945
Change-Id: I7d8cf5e6498d03ad340b8f843ce93a20171e9fca
2022-08-04 13:32:32 +02:00
Pau Espin db247f8318 cbc: Support mme/bsc sctp/tcp server mode
Related: OS#4945
Change-Id: I9fa4ddfa18ac85644f219874e6b2166e1795e3a9
2022-08-02 11:50:54 +02:00
Pau Espin 7e45128ec0 cbc: Add Tguard
Change-Id: I92b0a2ec931cefed34a33bd90cbc5c97d0aec540
2022-08-02 08:37:16 +00:00
Pau Espin ae2e51557f cbc: Send Write-Replace-Warn-Ind after ACKing the request
This way we can test how does osmo-cbc behave when receiving such
message.

Related: OS#4945
Change-Id: Ifcdcddc7dccb5439126a5fa29bb540669ed25908
2022-08-02 08:37:16 +00:00
Pau Espin e14c2087cf cbc: Change default cbsp/sbcap ports to allow multiple bsc/mme
The BSC/MMEs ports are applied in osmo-cbc.cfg similarly in sequential
order.

Change-Id: Ib443aba9396aebe0a56b1a79719bbcf66302a1aa
2022-08-02 08:37:16 +00:00
Pau Espin 1976346cb7 cbc: Enable MMEs and BSCs selectively
Let's only create BSC handlers (no MM handlers) in tests validating CBSP
specific features.
A new test is added to specifically validate scenarios with both an MME
and BSC attached to the CBC.

Change-Id: I79ee41f183ef49e9fd606d2a3efa2767628bf142
2022-08-02 08:37:16 +00:00
Pau Espin 3dfa807769 cbc: Fix use of incorrect variable in loop
This went unnoticed before because all tests were running with both bsc
and mme set to 1.

Change-Id: I978c92819cb4e218c95bc719ade71787dc474b23
2022-07-29 16:29:55 +02:00
Pau Espin 4ff118a230 cbc: Handle each CBSP and SBc-AP on a separate component
* Each BSC_ConnectionHandler emulates a BSC and handles one TCP/CBSP
  conn.
* Each MME_ConectionHandler emulates an MME and handles one SCTP/SBc-AP
  conn.
* ECBE related functionalities are moved to its own file
  ECBE_Components.ttcn.
* CBS_Message is moved to its own file since it is used by all modules.

Related: OS#4945
Change-Id: Ia0300a2ae69bdf604373dbc484537958413c79a2
2022-07-29 13:04:36 +00:00
Pau Espin e736981121 cbc: Fix f_sbcap_tx_write_replace_warn_resp()
The line was wrongly removed when pushing a new version of the patch for
review submission.

Fixes: 7c13cb7e0f
Change-Id: If99ff5b83e8f0c577e60e0406b001a3753213deb
2022-07-20 18:17:05 +02:00
Pau Espin 7c13cb7e0f Support for SBc-AP protocol as used on the MME-CBC interface
This requires a recent libfftranscode (>=0.5) with SBC-AP support.

The asn files are obtained from 3GPP TS 29.168.

Related: osmo-cbc.git Ib278bc1d1a74459814016fef7a8fe21cc29d46c9
Related: docker-playground.git 5f3c78105836d1f2c229655df3f537a73ab6e12a
Change-Id: Ia6743e0a3e7974a5f2dd3ecf74ec331f646f6bc2
Related: OS#4945
2022-07-18 11:20:14 +02:00
Pau Espin ac71dbb1e5 cbc: Refactor and split f_cbsp_write()
Change-Id: I827fad869c6ca5ce80dd39d30c2e3393b2394217
2022-07-08 17:14:45 +02:00
Pau Espin 9d8b6bf717 cbc: Introduce f_shutdown_helper() and call it in every test
Change-Id: I95e6f8a5a5c35d35662950e1105bdb17d2ca00de
2022-06-23 18:34:27 +07:00
Pau Espin 07746ad99e cbc: Improve CBSP port configuration
Previous -1 was taken by TTCN3 as default port (9999). Let's keep it
excplictly as 9999 by default to avoid changing docker-playground.git.

Change-Id: Ia7c599faa2101180089085c6cf5d483d2325ecac
2022-06-17 20:28:22 +00:00
Pau Espin f2c701df80 cbc: Fix trailing whitespace
Change-Id: Ie54a6f6b9aea84ae1ec67ca34a34dd171f2e0177
2022-06-16 19:00:47 +02:00
Harald Welte c81236c08f cbc: Expect CBC to include Channel Indicator IE in CBSP KILL
This should be present for all KILL relating to CBS.

Change-Id: Id9f280158a0370134ec4a4ca9a977d884670b27e
Related: SYS#5906, OS#5540, OS#5541
2022-05-01 15:58:04 +00:00
Harald Welte 08332307ea cbc: Initial set of CBC tess for osmo-cbc
osmo-cbc is the Osmocom cell broadcast centre.  So far, there was no
TTCN-3 test suite.  Let's change that.

Change-Id: I38286e8a3dd0f39bd25f631dcbb3ff4f8d4c221f
2021-02-22 10:41:29 +00:00