From b5f0a32ac23c8b2230d4c817a1dc1b88c222ce37 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Wed, 10 Apr 2024 19:12:03 +0200 Subject: [PATCH] Introduced channel simulator in F1 RFSIM CI test scenario MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - adding a new test case - the test case simulate a DL radio channel with noise and runs Iperf test with such channel conditions - use CustomCommand class to send commands to a Telnet server - switched from netcat’s unsupported -N option (OpenBSD) to --send-only (Ncat 7.94) for compatibility with CI re-sync CI test in F1 RFSIM - to be used in the future, for CI of RRCReestablishment in RFSIM - adding four new test cases (040021, 040022, 040023, 040023) to the RFSIM F1 configuration - the test cases simulate a disruption of the radio channel, verify UE sync loss and resync and restore the original channel conditions - use CustomCommand class to send commands to a Telnet server temp xml --- .../xml_files/container_5g_f1_rfsim.xml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/ci-scripts/xml_files/container_5g_f1_rfsim.xml b/ci-scripts/xml_files/container_5g_f1_rfsim.xml index 5371f88da8..59e272a0ff 100644 --- a/ci-scripts/xml_files/container_5g_f1_rfsim.xml +++ b/ci-scripts/xml_files/container_5g_f1_rfsim.xml @@ -31,6 +31,7 @@ 000022 000023 020021 + 030020 030021 030022 100021 @@ -74,6 +75,14 @@ 5 + + Custom_Command + Simulate a DL radio channel with noise (3 dB) + localhost + echo channelmod modify 0 noise_power_dB 3 | nc --send-only 192.168.71.181 8091 + yes + + Iperf Iperf (DL/5Mbps/UDP)(30 sec) @@ -94,6 +103,38 @@ 90 + + Custom_Command + Simulate a disruption of DL radio channel (ploss 55)(5 sec) + localhost + echo channelmod modify 0 ploss 55 | nc -N 192.168.71.181 8091 && sleep 5 + yes + + + + Custom_Command + Get UE sync state (UE ID 0) + localhost + echo ciUE sync_state 0 | nc -N 192.168.71.181 8091 | grep -E UE_NOT_SYNC + yes + + + + Custom_Command + Restoration of the original DL channel conditions (ploss 0)(5 sec) + localhost + echo channelmod modify 0 ploss 0 | nc -N 192.168.71.181 8091 && sleep 5 + yes + + + + Custom_Command + Get UE sync state (UE ID 0) + localhost + echo ciUE sync_state 0 | nc -N 192.168.71.181 8091 | grep -E UE_CONNECTED && sleep 10 + yes + + UndeployGenObject Undeploy all OAI 5G stack