Commit Graph

1219 Commits

Author SHA1 Message Date
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
Pau Espin b32ed9256f contrib: open5gs: Install more binaries to have an EPC
Change-Id: I1ff143b4f876e28ad9a1bc6a4a4cad5dacef8e18
2021-03-16 18:36:54 +01:00
Pau Espin 965ed62fd2 sysmocom/default.conf: Add missing default value for force_ul_amplitude
Change-Id: I04218dca21f27e32d7c85a74a3e9bbf63b499357
2021-03-16 18:36:54 +01:00
Pau Espin 3bb14bedfe sysmo/defaults.conf: Fix attribute name
According to schema, the name is cipher_list.
Same goes for "integrity".

Fixes: a81801558e
Change-Id: Ib7b48ce207b96ea5f5b59db08320563be40edba1
2021-03-16 17:18:47 +00: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
Andre Puschmann f69b948148 enb.py: increase ZMQ trx timeout to 8s
increase value further to avoid failed tests due to load on system

Change-Id: I77b7864e7ef60faf0262dc24325915d73dd2d5a3
2021-03-16 18:10:28 +01:00
Andre Puschmann fcdff4bcfe ms_srs: add force_ul_amplitude config
this allows to overwrite the PHY export option phy.force_ul_amplitude

Change-Id: I255f027433944c1739c89757609f0dcc3b8aa7cb
2021-03-16 18:10:26 +01:00
Andre Puschmann 6246a9db19 iperf3_bidir: add extra test for bi-directional iperf test
Change-Id: Ibb62f53dbb15bc4788c92ebb2dee70e31dd851de
2021-03-16 18:09:49 +01:00
Nils Fürste 7b4e1f676b AndroidUE: Fix connection timeout
Change-Id: Iaacf348e2e018da5b67ada33079018c1859d3b63
2021-03-16 18:09:49 +01:00
Andre Puschmann 1bba2891c5 ms_srs: turn tx/rx_gain into INT and make them optional
when they are greater than 0 they are written as config paramter.
if they are -1 they are disbaled and automatic gain calibration is
used.

Change-Id: I473ff3ae679784178574d2f76b612dbf77180490
2021-03-16 18:09:49 +01:00
Andre Puschmann 1a1970721a mod-enb-ncells@.conf: add scenario file to select number of cells
Change-Id: Ib599de56b0b51a125555895014d78d3d649c01a0
2021-03-16 18:09:49 +01:00
Andre Puschmann 3fc74d353a run_node: add label to RunNode class
this allows specifying a label on each run node that can be used
to filter/select specific nodes.

Change-Id: Ib6a977007f56d6ff9ff029aaf049a75fb5d5e1dd
2021-03-16 18:09:49 +01:00
Andre Puschmann 001ca8595d epc-label@.conf: add scenario to select runnode based on label
this allows to select the resource/machine the EPC runs on based on the label

Change-Id: I710c67ad5a11bd33071acd779e19835ae49ce4a3
2021-03-16 18:07:22 +01:00
Andre Puschmann b190b4c397 ms_android: set num_carriers to 1 by default
throughput tests require the UE object to have the num_carriers
member. For Android UEs, set it to 1 by default.

Change-Id: I297d24bb578a7db0eb7629be4f2cc0d54624467d
2021-03-16 18:07:22 +01:00
Andre Puschmann e98e1294eb osmo-gsm-tester_androidue_conn_chk.sh: improve error handling
fix check of $serial and check passed arguments.
exit when adb isn't installed on host

Change-Id: I6190a840dbc86838457da96d188afc17f83ab15f
2021-03-16 18:07:22 +01:00
Andre Puschmann 585e35ba66 jenkins-build-amarisoft: copy ltesim_server binary into epc trial tgz
the ltesim_server is part of the UE package but needs to be executed
on the EPC run node. Therefore its handy to have the binary in the epc
trial tgz.

Change-Id: I21ac57d1c1547c1cf4d2394c8593f58ff2c78697
2021-03-16 18:04:40 +01:00
Francisco b04f135d32 srsenb_sib.conf.tmpl: reduce the default size of the PUCCH
optimized PUCCH config

Change-Id: I45ae7c33f9d1df20df37c0fe6c3d73aa85ae1b31
2021-03-16 18:04:40 +01:00
David Rupprecht f4ff058ee2 srsue.conf.tmpl: Adjust ue.config template for new pcap path
Change-Id: I4af6abaa3973652a12f571d88bca59cd443704f3
2021-03-16 18:04:40 +01:00
Andre Puschmann c487f7438c ms_srs: add config scheme to select NAS log level
we've provided only all_log_level so far but sometimes it's needed
to select the level per layer. This patch adds the ability
to do so for the NAS layer in the UE.

Change-Id: Iab2bce65e8af81f6d344849c97952e6441cb2846
2021-03-16 18:04:40 +01:00
Andre Puschmann 2bc8311ea7 srsenb_drb.conf.tmpl: add QCI10 with infinit PDCP discard timer
copy of QCI9 params but with infinit PDCP discard to avoid SDU drops
at PDCP

Change-Id: I64a74d09cc1a55ba21a7be7b5cc203e56bba3b10
2021-03-16 18:04:40 +01:00
Andre Puschmann 3cecad8ebf amarisoft_drb.cfg.tmpl: add additional QCI10 with infinit PDCP discard timer
also set QCI9 to 150ms to match default srsENB config

Change-Id: I60cc1390480142bd5bb516934c9f30b6122496d5
2021-03-16 18:04:40 +01:00
Andre Puschmann 88727efa10 srsenb_drb.conf.tmpl: set PDCP discard timer to 150ms for QCI9
srsENB now supports PDCP discard so we set it to a sane value.
Also enable status reporting for UL.

Change-Id: Ib6ad0ff57b95a1f220f87c1ede0f6eacc5fb21ff
2021-03-16 18:04:40 +01:00
Andre Puschmann aec7fa5390 {enb,ms}-label.conf: raneme and add modifier to select eNB/MS based on label
Change-Id: I26ea160b65b9dd5ef3e5ca1100d4541a0bbcbb27
2021-03-16 18:04:40 +01:00
Andre Puschmann 0320ec2e95 enb.py: increase zmq trx timeout to 4000ms
with many parallel jobs running on one machine we should
relax the timeout a bit to avoid false positives.

Change-Id: Ib32a07559bd5a4b0165f6d3431c5ac57cc050f44
2021-03-16 18:04:40 +01:00
Andre Puschmann 3ce672594f enb,epc,ms: refactor KPI API
we previously mixed component specific and component agnostic APIs
(stdout vs. log file for example) for setting and retrieving KPI.

This patch propose to use a single abstract get_kpis() method for
all components that can be enriched with component-specific
stuff as desired.

In the case of srsLTE blocks, the main implementation will
remain in srslte_common() and is shared among srsENB/srsUE/srsEPC.

The KPI analyzer in srslte_common() extract and also manages
all three KPI sources (log, csv and stdout) independently.

In addition to the get_kpis() method that always returns a flat
dictionary, it also exposes get_kpi_tree() that return
a dict of KPI dicts that will be used for the Junit.xml generation.

Change-Id: I4bacc6b8a0cb92a581edfb947100b57022265265
2021-03-16 18:04:40 +01:00
Pau Espin 6231c3c657 contrib: Add build script for open5gs
Change-Id: I0ed43dadbfe08811dd72064ee7332d0872882dfd
2021-03-15 19:06:25 +01:00
Pau Espin 3b351716a9 Fix bts.ready_for_pcu() implementation for sysmo and oc2g
osmo-bts.git ae09c8acb4aa93284cdb44f8bbdc14533dc4fa52 modified code to
avoid calling pcu_tx_info_ind() if pcu socket was not connected. Since
osmo-gsm-tester relied on log message sent from within that funtion to
find out whether BTS was able to handle PCUIF connections, that log line
is not printed anymore and hence the function ready_for_pcu() fails to
ever return true.
As a result, gprs tests for sysmo and oc2g bts types always fail with a
timeout.

Other BTS types are not affected (such as osmo-bts-trx) because in there
we simply check whether the osmo-bts process is running.

Change-Id: Ibde4b8b27b8300b4b9197c0f8d82a6ccbf3b0522
2021-03-08 12:01:37 +01:00
Pau Espin 5ff071833a osmo-sgsn: Fix template cfg to work with NS2 implementation
See following HOW-TO to update existing configs:
https://osmocom.org/projects/libosmocore/wiki/Network_service_(NS)

Change-Id: I391c977ca20ef185db6b1f17912608acaa13e87f
2021-03-08 11:31:59 +01:00
Andre Puschmann 7aa14e45f4 srsue.conf.tmpl: reduce nof PHY threads to 2 for ZMQ
we've detected a possible race condition during the Msg3
transmission that caused the thread that sets the Msg3 grant
to be delayed. The PHY worker that executed TTI+2 finished
by that time already and didn't even see the pending UL grant.

This is issue is more likely to happen on loaded system,
for example when running parallel ZMQ jobs. We therefore decided
to reduce the number of parallel PHY workers to 2 so the issue
is circumvented.

Change-Id: Ibdb42a1705d87b6d343201458c8fe397398802bc
2021-02-08 17:48:09 +01:00
Andre Puschmann d1732d7820 srsepc.conf.tmpl: double value of T3413 (paging timer)
we've already incrased the t3413 value in 9c7fd618d2
but realized it may still be too low in some cases.

we set it to 12s now.

Change-Id: I9c3c59c0ff8f539a44b420f8ba31eea016c211ce
2021-02-08 17:48:09 +01:00
Andre Puschmann b79a0c5e75 scenarios: remove ncells@ scenario and define number of cells explicitly
the specific cell scenarios files already contain cell-related
information so having a extra ncells scenario seems too much overhead.
furthermore, in more complex tests its helps to reduce the filename/path
lenght to avoid hitting the 255 character limit

Change-Id: If022d9e8d239805ee1280fb52660e68dda7484a0
2021-02-08 17:48:09 +01:00
Nils Fürste a81801558e enb: Set cipher and integrity via scenario file
This patch enables setting cipher and integrity algorithms
in Amarisoft eNB and srsENB via scenario files. If no
settings are defined following defaults are applied:
- Cipher algorithm: EEA0, EEA2, EEA1
- Integrity algorithm: EIA2, EIA1, EIA0

Example of setting cipher algorithms:
- 4g:srsue-rftype@uhd+srsenb-rftype@uhd+mod-enb-cipher@eea1+mod-enb-cipher@eea0+mod-enb-nprb@6

Change-Id: I595206b7d49016fb6d0aec175c828d9537c53886
2021-02-08 17:48:09 +01:00
Andre Puschmann 215bec2f3c enb: add abstract method stop()
implement as noop for Amarisoft eNB, srsENB will send q+Enter to stdin,
which is implemented in class srslte_common()

Change-Id: Ide606e1a6b523997215aa2fa39d4d56ae1f49181
2021-02-08 17:48:09 +01:00
Andre Puschmann 29263b7389 4g: add checks for received PRACHs for ping tests
the tests already check for sent PRACHs, this will
also check for received PRACHs on the eNB to make
sure we don't detect any fake PRACHs during the tests.

Change-Id: Ib23056b1ad4b18a7dde6cd0c997f5114ac2acb61
2021-02-08 17:48:09 +01:00
Andre Puschmann f249a026a0 enb,ue,process: move stdout counter helper to process objects
this patch adds the stdout counter to count events happening
on the stdout (known from the UE already) to the common
process class so they can also be used from the eNB (and other objects)

In addition, we add a PRACH counter to be used for tests.

Change-Id: I434f072b8aa6f4dce9f90889c6b40832f6798ff8
2021-02-08 17:48:09 +01:00
Nils Fürste a8263f40e9 Introduce Android UEs as new modems
To expand the test capacities we would like to introduce
Android UEs as new modems. Currently the following tests
are supported:
- Ping
- iPerf3 DL/UL
- RRC Mobile MT Ping

In the following is a small description.

Prerequisites:
    - Android UE
        - Rooted (Ping, iPerf, RRC Idle MT Ping)
        - Qualcomm baseband with working diag_mdlog (RRC Idle MT Ping)
        - iPerf3
        - Dropbear
    - OGT Slave Unit
        - Android SDK Platform-Tools
	  (https://developer.android.com/studio/releases/platform-tools#downloads)
        - Pycrate (https://github.com/P1sec/pycrate)
        - SCAT
            clone https://github.com/bedrankara/scat/ & install dependencies
            checkout branch ogt
            symlink scat (ln -s ~/scat/scat.py /usr/local/bin/scat)

Infrastructure explaination:
The Android UEs are connected to the OGT Units via USB. We
activate tethering and set up a SSH server (with Dropbear).
We chose tethering over WiFi to have a more stable route
for the ssh connection. We forward incoming connections to
the OGT unit hosting the Android UE(s) on specific ports
to the UEs via iptables. This enables OGT to issue commands
directly to the UEs. In case of local execution we use ADB
to issue commands to the AndroidUE. The set up was tested
with 5 Android UEs connected in parallel but it should be
scalable to the number of available IPs in the respective
subnet. Furthermore, we need to cross compile Dropbear
and iPerf3 to use them on the UEs. These tools have to be
added to the $PATH variable of the UEs.

Examplary set up:
In this example we have two separate OGT units (master
and slave) and two Android UEs that are connected to the
slave unit. An illustration may be found here: https://ibb.co/6BXSP2C

On UE 1:
ip address add 192.168.42.130/24 dev rndis0
ip route add 192.168.42.0/24 dev rndis0 table local_network
dropbearmulti dropbear -F -E -p 130 -R -T /data/local/tmp/authorized_keys  -U 0 -G 0 -N root -A

On UE 2:
ip address add 192.168.42.131/24 dev rndis0
ip route add 192.168.42.0/24 dev rndis0 table local_network
dropbearmulti dropbear -F -E -p 131 -R -T /data/local/tmp/authorized_keys  -U 0 -G 0 -N root -A

On OGT slave unit:
sudo ip link add name ogt type bridge
sudo ip l set eth0 master ogt
sudo ip l set enp0s20f0u1 master ogt
sudo ip l set enp0s20f0u2 master ogt
sudo ip a a 192.168.42.1/24 dev ogt
sudo ip link set ogt up

Now we have to manually connect to every UE from OGT Master
to set up SSH keys and verify that the setup works.
Therefore, use:
ssh -p [UE-PORT] root@[OGT SLAVE UNIT's IP]

Finally, to finish the setup procedure create the
remote_run_dir for Android UEs on the slave unit like
following:
mkdir /osmo-gsm-tester-androidue
chown jenkins /osmo-gsm-tester-androidue

Example for modem in resource.conf:
- label: mi5g
  type: androidue
  imsi: '901700000034757'
  ki: '85E9E9A947B9ACBB966ED7113C7E1B8A'
  opc: '3E1C73A29B9C293DC5A763E42C061F15'
  apn:
    apn: 'srsapn'
    mcc: '901'
    mnc: '70'
    select: 'True'
    auth_algo: 'milenage'
  features: ['4g', 'dl_qam256', 'qc_diag']
  run_node:
    run_type: ssh
    run_addr: 100.113.1.170
    ssh_user: jenkins
    ssh_addr: 100.113.1.170
    ue_ssh_port: 130
    adb_serial_id: '8d3c79a7'
  scat_parser:
    run_type: local
    run_addr: 127.0.0.1
    adb_serial_id: '8d3c79a7'

Example for default-suites.conf:
- 4g:ms-label@mi5g+srsenb-rftype@uhd+mod-enb-nprb@25+mod-enb-txmode@1

Change-Id: I79a5d803e869a868d4dac5e0d4c2feb38038dc5c
2021-01-13 19:45:56 +01:00
Andre Puschmann 4cb9ab5671 srsenb.conf.tmpl: set nof_of_prach_threds to 0 for ZMQ
this executed the PRACH search in the main thread so
PHY workers and PRACH processing don't diverge in loaded
scenarios

Change-Id: I97eddb5f9ca682251ded1f73093c2d0a49462bd6
2021-01-07 20:43:48 +01:00
Andre Puschmann 9c7fd618d2 srsepc.conf.tmpl: increase default value of T3413 (paging timer)
we've seen that the default value of 2s might be a bit tight.
the value is network dependent so no real default value exists.
however, 6s seems to be a good compromise.

Change-Id: Icc75ee048c2cc605ab26c4c87a039519998f7e57
2021-01-07 20:43:47 +01:00
Andre Puschmann 2df63d0f2f enb_srs: adopt throughput thresholds for QAM256
it turned out that we have to reduce the MCS when using QAM256,
especially for 6 PRB as subframe 0 and 5 contains PBCH and PSS
signals, so the available REs are reduced.

The eNB scheduler now has this limitation in mind and lowers the MCS.

Change-Id: I0e38fe28002fd68c768cc8dcffcf74f4f190df02
2021-01-07 20:43:47 +01:00
Andre Puschmann b7ce9499b6 enb_srs: only use QAM64 tables if both UE and eNB are configured for QAM64
this was causing failed tests because to achieve QAM64 rates both
eNB and UE need to support it and have it activated.

Change-Id: I599df92d69eeb56a5d44327de08f004222cff073
2021-01-07 20:43:47 +01:00
Andre Puschmann 1d1c0bfed9 srsue.conf.tmpl: disable TTI stats for ZMQ
since ZMQ runs are not using wall clock anyway, measuring
TTI execution isn't useful, disable it therefore to avoid
misleading warnings.

Change-Id: I5c2cb0abcfce0ee67806f6611356f4d5d180541d
2021-01-07 16:30:25 +01:00
Andre Puschmann eee4f5f715 intraenb-intrafreq-ho.conf: add eNB to cell config
make sure to have the right eNB that matches the
cells neighbor ECIDs, otherwise the eNB may trigger
a S1 HO if the eNB ID is set elsewhere

Change-Id: Id494ac1984846e78a6456bb6a17e72d63c9dacf5
2021-01-07 16:30:25 +01:00
Andre Puschmann 507c60ca0c srsue.conf.tmpl: reorder conditions for setting RRC release
the order of checks needs to go from high to low, i.e. the higher
release feature (e.g. qam256) needs to be checked and set first.

in theory it should also be possible to have a CA-capable UE
that does not support QAM256, but for srsUE we announce both anyway.

Change-Id: I2fa49f0cb5d80db412a811ceeb380359c8ad67a7
2021-01-07 16:30:25 +01:00
Andre Puschmann bfd3fe659e enb: include name label and run_addr in enb remote path
this allows to quickly identify the enb host in the logs

Change-Id: I9c979de852a23041e43692e97ebcbfb389b52fdb
2021-01-07 16:30:25 +01:00
Andre Puschmann a7725fcedf srsenb_drb.conf.tmpl: add QCI1 DRB config
use default QCI1 config for real-time voice traffic

Change-Id: I43f408b1a3c172a5eb8327f03df49801e063e5cd
2021-01-07 16:30:25 +01:00