Commit Graph

847 Commits

Author SHA1 Message Date
Oliver Smith bcde1d0538 Update git URLs
git.osmocom.org has been deprecated, use gerrit or gitea urls instead.

Related: https://osmocom.org/projects/cellular-infrastructure/wiki/Git_infrastructure
Related: OS#6251
Change-Id: I03a06d23e87a75257eb731a97facd7a67c40a2c6
2023-11-29 14:22:08 +01:00
Vadim Yanitskiy 398a2cad8a templates: osmo-mgw.cfg.tmpl: address deprecation warnings
This commit fixes the following deprecation warnings:

range must end at an odd port number, autocorrecting port (16000) to: 16001
% Deprecated 'sdp audio-payload number <0-255>' config no longer has any effect
% Deprecated 'sdp audio-payload name NAME' config no longer has any effect

Change-Id: I98549abf8dd726fcc67a1de6a5f8bee64558883d
2023-06-21 19:01:15 +07:00
Vadim Yanitskiy 54f1900ce3 templates: osmo-bsc.cfg.tmpl: migrate to separate 'mgw' node
This commit fixes the following deprecation warnings:

% MGCP commands outside of 'mgw' nodes are deprecated.
  You should consider reading the User Manual and migrating to 'mgw' node.

Change-Id: Ic2b3c8a6775b6a34bfc03e0643a34772ae789139
2023-06-21 18:57:21 +07:00
Vadim Yanitskiy f44f6f7a20 templates: osmo-bsc.cfg.tmpl: remove deprecated no-op params
This patch eliminates the following deprecation warnings:

% deprecated: 'ip.access rtp-base' has no effect, RTP is handled by the MGW
Please do not use legacy config 'mgw endpoint-range' (the range can no longer be defined by the MGCP client)

Change-Id: I64f6a26a3ae347083968c12855357de10baabc59
2023-06-21 18:42:49 +07:00
Vadim Yanitskiy a3de114364 templates: also fix asp config in osmo-{bsc,sgsn}.cfg.tmpl
In change [1] I attempted to fix osmo-gsm-tester_virtual, but I did
not notice that the same problem also was in osmo-bsc.cfg.tmpl.

Also add the missing params to osmo-sgsn.cfg.tmpl.

Change-Id: I7b3adfa131a9dbb867b9ae68615da27191b021e5
Related: [1] Ie29589b46c65707089ff2b22c3b139b7b435cc95
2023-06-21 18:28:26 +07:00
Vadim Yanitskiy 395322589d templates: fix osmo-msc.cfg.tmpl: add 'role asp', 'sctp-role client'
This commit fixes osmo-gsm-tester_virtual, which currently fails
because osmo-msc is unable to start:

DLSCCP NOTICE sccp_user.c:656 OsmoMSC-A-Iu: Requesting an SCCP
              simple client on ASP asp-clnt-OsmoMSC-A configured
              with 'sctp-role server'
DLSCCP ERROR sccp_user.c:661 OsmoMSC-A-Iu: Requesting an SCCP
             simple client on ASP asp-clnt-OsmoMSC-A configured
             with 'sctp-role server' but no matching xUA server
             was configured!

Change-Id: Ie29589b46c65707089ff2b22c3b139b7b435cc95
2023-06-19 16:33:56 +07:00
Vadim Yanitskiy ad984bf45d osmo_vty: re.escape() the VTY prompt in connect()
The VTY prompt may contain regular expression metacharacters in it,
so the self.re_prompt will not match as expected.  One example is
the modem app in osmocom-bb.git using promot 'OsmocomBB(modem)'.

Change-Id: Ibada798a214be97409b55556724f558b67da7365
Related: osmo-python-tests.git I47b1f1c1765acb1b935dcbcc54bbb5eb539db4f0
Related: OS#6001
2023-04-12 15:35:21 +00:00
Pau Espin eb0e007827 osmo-mobile.cfg.tmpl: Improve logging
Change-Id: I5fc07bd9332f6adac67b108f712fb99ee7cb3439
2023-04-12 17:10:56 +02:00
Pau Espin 34b26aa97b osmo_ms_driver: Store Mobile and VirtPhy content under test rundir
Change-Id: I89223e0d77bcb3e6921be683d705161009630a2c
2023-04-12 16:55:00 +02:00
Oliver Smith bfc438bb2b templates: osmo-msc: modernize
Configure the mgw in the mgw node, and drop the obsolete commands
endpoint-range and bts-base.

Fix for:
| Error occurred during reading the below line:
|  mgw bts-base 8000
|
| % MGCP commands outside of 'mgw' nodes are deprecated. You should consider reading User Manual and migrating to 'mgw' node.

Change-Id: I077c4cd4c593da776a306117ad2a898a82d91064
2022-12-01 15:28:36 +01:00
Alejandro Leal Conejos dcc0b5577c util: fix the functions "create_netns" and "setcap_netsys_admin".
This commit fixes 2 functions from util.py:
 - setcap_netsys_admin: removed "self" from the arguments.
 - create_netns: pass "run_dir" to Process and convert the arguments to
a list as the other methods in the file.

Change-Id: Ida4c6d6500be92b8d1f96e4e7a870e63bd329be9
2021-06-15 17:58:44 +02:00
AlaiaL 855e712bc0 srs-enb: adds support to the malloc interceptor.
Adds support to the malloc interceptor for the SRS eNodeB. This interceptor will generate a log file that lists the mallocs, reallocs and frees produced by the srsenb.

Change-Id: I0078020468f58bdd70b0b5de879eb58192f947a6
2021-06-11 08:26:58 +02:00
AlaiaL 18cd26f58d srs-enb: sets the remote directory to the given one.
Sets the remote directory for fapi to the given in the variable 'remote_dir' in the reource schema.

Change-Id: I77a56835a4054b86d1d3f7da823a013b3370f767
2021-06-11 08:26:58 +02:00
AlaiaL d1ca06d9ac srs-enb: adds fapi to the rf supported devices.
Added support to 'fapi' rf device for the SRS eNodeB.

Change-Id: I0ac2a7db7c0533dfbc90f2526a7b823110d355c0
2021-06-11 08:26:58 +02:00
AlaiaL f2e9e980ca srs-enb: runs the given list of scripts before and after launching the eNodeB.
Allows to run given scripts before and after the execution of the SRS
eNodeB. The scripts are retrieved as a list from the resource.conf file.

Change-Id: I5017caae933809b89b32ea132be8552d6554e20e
2021-06-11 08:26:58 +02:00
AlaiaL 2cedd82cad srs-ms: allows to run given scripts before the execution of the UE.
Executes the scripts given by the 'prerun_scripts' variable before launching the UE.

Change-Id: I718e686b5844f2f07eda820914678052f1008182
2021-06-11 08:26:58 +02:00
AlaiaL e9d7f5f9b6 iperf: adds the option to define the packet length for udp.
Added the feature to configure the packet length in udp iperf. Added a modifier to select the length value.
The default value is configured to 1460.

Change-Id: Ic886faa82b7cb25f2bce685eb80910623e4ff686
2021-06-11 08:26:58 +02:00
Pau Espin 24a405f3e2 open5gs: Fix GTP-U addr binding
Change-Id: I8c91a9c4a07f4229cb4ae9af61d94e720d81a961
2021-05-12 19:37:33 +02:00
Pau Espin be5156c5c1 open5gs: Pre-configure tun device for UPF
open5gs requires the tun device to be pre-created and pre-configured
before using it. A ticket was opened in order to allow upfd itself
configuring it in [1]

[1] https://github.com/open5gs/open5gs/issues/899

Change-Id: I3b1857f09017cacee1c86f41dae1463c11b50490
2021-05-12 19:36:18 +02:00
Andre Puschmann 74588e9c35 open5gs_mme: set short network name
Change-Id: Ifd7a78e35fb47cc5a96452fe93d8ab305359d7bd
2021-05-10 21:51:31 +02:00
Andre Puschmann 5a2f05aaa4 srsenb: enable S1AP pcaps as well when PCAPs are configured
this stores the S1AP pcaps in an own file but uses
the same switch to enable them.

Change-Id: If24048d61d8dff0b9b31aff9ed6995342830ebf8
2021-05-10 21:51:31 +02:00
Andre Puschmann faa8e7c1d4 open5gs: lower default log level to info
Change-Id: I15aaac5838bdb9d271a850b959a3a8fb4a56a313
2021-05-10 21:51:31 +02:00
Andre Puschmann 0bedacdb56 open5gs: fix name
Change-Id: I7b0325718f9572b03e282d17ddf111a9493e2ee7
2021-05-10 21:51:31 +02:00
Andre Puschmann 9d75ccb9c8 open5gs: fix stopping of open5gs components after test finishes
use RemoteProcessSafeExit() for launching all open5gs components
to make sure they are stopped at the end as well.

Change-Id: Ia1439577d60f9694da70c4e42c621100c8ef295e
2021-05-10 16:56:31 +02:00
Andre Puschmann b9c9612fc1 epc_open5gs: remove _epc from name
there is no open5gs_enb so having the epc in the name is redundent, also
it safes typing and allows longer scenario configs without exceeding
filename limit.

Change-Id: Ib10bc6031ecc8de88a9c718b136d2641ce46e11d
2021-05-10 16:56:31 +02:00
Andre Puschmann e87a05624d srsue.conf.tmpl: tidy up config file
no functional changes, just remove whitespaces and newlines

Change-Id: Ib58d3591cc51c11c9e496f6510ebffb91ee71345
2021-05-10 16:56:31 +02:00
Andre Puschmann 7879143d34 amarisoftue: solve conflict of sample rate param in rf_driver
move sample_rate setting into rf_driver template that is shared
between enb and ue

Change-Id: Icc8042c3eec2a1e8bfc6823c06430c1cb18355b7
2021-05-05 20:06:48 +02:00
Andre Puschmann 8d37a9857d amarisoft_ltemme.cfg.tmpl: enable ENDC support in config template
patch also remove the UE forwarding option which isn't used anymore in the MME.

Change-Id: Ia1628e6674b124806e3cd59c5b190d27f6ba4403
2021-05-05 14:26:57 +02:00
Andre Puschmann 6c985372a1 ms_srs: add 5G NSA support
extend the MS to allow for NR carriers

Change-Id: I7de9f867e7e32d0ab4f74eb7661928175f6c1a16
2021-05-05 14:26:57 +02:00
Andre Puschmann 6e081aa1dc amarisoft_enb: add NR support
this patch adds the ability to configure NR cells with
Amarisoft eNB. It adds the new DRB-NR template and updates
the normal enb.cfg template to allow using it as LTE only
or with NR cells (5G NSA).

Change-Id: Ia27bbc6db5920ce14bacabe8043601aa2adaa5fe
2021-05-05 14:26:56 +02:00
Andre Puschmann 9b419f32ae srsenb.conf.tmpl: use LTE sample rates when Lime is found in rf args
the lime doesn't work well with the shorter sample rates the eNB
uses by default.

Change-Id: I2d3dbdf5ff62980854ef67b20469f072ce31612e
2021-05-03 13:50:11 +02:00
Andre Puschmann fcd9752c25 srsue.conf.tmpl: set srate param with the X310
Change-Id: Icb04ed51ace97d4467558639aeb3f556dbe8678a
2021-05-03 13:50:11 +02:00
Andre Puschmann 374a175c81 amarisoft_rf_driver.cfg.tmpl: only set trx offset for B210
all other RF devices do not required any offset

Change-Id: Id4c5f0bede5b09d59237cdd6a959a3663f1a1b37
2021-05-03 13:50:11 +02:00
Andre Puschmann 88b7fd2af6 ms_srs: add short_sn as config option for srsUE
this allows to change the announced support for PDCP
short sequence number lengths

Change-Id: Ibcf72dbb424ae3b6a87b60febb4dadf716407612
2021-05-03 13:50:11 +02:00
Andre Puschmann 5e08075fa3 enb_amarisoft: add "sdr" as rf_dev_type and rx_ant parameter
this allows to use the Amarisoft PCIe cards with OGT

Change-Id: Ia373a78f59538d6dfca390431f85a7af26c9d914
2021-05-03 13:50:11 +02:00
Andre Puschmann dbdc1c8443 srsue.conf.tmpl: update args for 21.04 changes to include NSA
this also removes the entire help text around arguments (that
were very outdated already) and only leaves the actual values with changes.

Change-Id: Icb9e8e7b1c68cf024db3a7273af791f017c32003
2021-05-03 13:43:44 +02:00
Andre Puschmann a4bdfbf1bf ms_srs: extend prach_sent counter with NR version
make LTE version more explicit and add another counter for NR

Change-Id: I8192dc3b4dae27417c93b68d33a686bca4783f4d
2021-05-03 13:43:44 +02:00
Andre Puschmann a54ca0b514 enb: add rx_ant param
Change-Id: Iada98fce3608808914562d9f7e2af2c230e03cae
2021-05-03 13:43:44 +02:00
Andre Puschmann 02b4223854 srsenb_drb.conf.tmpl: decrease pollPDU for QCI9
due to internal PDU buffering between PDCP/RLC the poll frequency
needs to be increase to get quicker feedback.

Change-Id: I4114fb36e675b3f91c471558f716276ab24f1db5
2021-05-03 13:43:44 +02:00
Andre Puschmann e82f44cb49 rfemu_srsenb_stdin: catch exception in rfemu and log error
not handling the exception causes all following tests to
fail.

Change-Id: I496313ef8412c8cb18a3c2cb32c52a3b5a672853
2021-05-03 13:43:44 +02:00
AlaiaL 9e025a36a9 amarisoft_ltemme.cfg.tmpl: add gbr to the template
newer version of the amarisoft mme requires the GBR to be set

Change-Id: Ib0b046ea9fcc26b6bbe03461ca6308acc35175d1
2021-05-03 13:43:44 +02:00
Andre Puschmann fd4c0ee267 schema: add 5G as UE feature
Change-Id: I851e95fb0b763f2a838b161be4938715770eaa83
2021-05-03 13:43:44 +02:00
Andre Puschmann 31ecf59ffd ms_amarisoft: extend AmariUE to support custom frequency bands
this patch adds generic support for custom frequency bands to the ms class.
it then extends the config template for AmariUE to use them.
we set the default values for EARFCNs for DL/UL to the old values.

Change-Id: I7b2250e13fc1161be1a1d73a4348f07b31c0f724
2021-05-03 13:43:44 +02:00
AlaiaL a17140fee4 enb_srs: add support for eNB traces
this patch adds support for srsENB event tracing. it provides
a cfg scenario to enable it.

Change-Id: Icb2342acac5db87a0889cbf1b6c7bb1ad26c16fa
2021-05-03 13:43:44 +02:00
Andre Puschmann c7737e6388 ms_srs: add resource scheme to configure fixed DL and UL freq
this config option overwrites the EARFCN config that is typically
used to tell the UE the bands to scan for cells. When custom
frequencies are used, this option allows to set them explicitly.

Change-Id: Ice070ea6755e273d916db2dc941068d33bbe206a
2021-05-03 13:43:44 +02:00
Andre Puschmann 0acc75ccba epc_amarisoft: launch ltesim server when starting
this allows to use the lteue to generate DL traffic. the
server listens on the default spgw address.

Change-Id: Iad081e57e2fd9d3cbc3e59e4f729a4721ad778c9
2021-05-03 12:37:37 +02:00
Andre Puschmann 0e72f9de5f amarisoft_mme: use/expose count paramter from MS config for MME
the UEs count param, if specified, is mapped into the config
values of the EPC so it can be used for template rendering.

Since we only have one count parameter, its added to the first
subscriber. 1 is the default value and its used when no count
param is specified.

this allows to run the Amarisoft UE simulator with the Amarisoft EPC
without having to create subscriber entries for each simulated UE.

Change-Id: I29885791f716c204d0b6f18ba134885bae853b6f
2021-05-03 10:54:57 +02:00
Pau Espin d776059deb open5gs: Avoid use of non-standard ports
Despite open5gs allowing to change the GTP ports in the config file, in
reality changing those values to something else than the standard prot
will fail. Hence, we must use the standard port. As a result, we must
use different IP addresses in each process to avoid ip+port collisions.
Let's use some loopback addresses which shouldn't require extra
configuration on the host, and still only requiring 1 run_node as per
existing EPCs, with the limitation that only 1 open5gs EPC instance can
be run at one in a given run_node.

Related: https://github.com/open5gs/open5gs/issues/897
Change-Id: Id3062c6ad9d6de4c6066547e1e46edad5da285c1
2021-04-12 13:45:02 +02:00
Pau Espin 0696c60812 Initial Open5GS support
Change-Id: Iff8b88dc22d8f156572839abb48b0c1377c55e33
2021-03-30 14:17:47 +02:00
Andre Puschmann 67ab78b331 srslte_common: fix condition to check if KPI have already extracted
Change-Id: I6fdcbfadfdcfe131096d0345d2c21c87f8f7b1b6
2021-03-16 18:10:28 +01:00