<!--

 Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The OpenAirInterface Software Alliance licenses this file to You under
 the OAI Public License, Version 1.1  (the "License"); you may not use this file
 except in compliance with the License.
 You may obtain a copy of the License at

      http://www.openairinterface.org/?page_id=698

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

 For more information about the OpenAirInterface (OAI) Software Alliance:
      contact@openairinterface.org

-->
<testCaseList>
	<htmlTabRef>TEST-SA-FR1-Tab1</htmlTabRef>
	<htmlTabName>SA Ping DL UL with Quectel, 2.5ms TDD</htmlTabName>
	<htmlTabIcon>tasks</htmlTabIcon>
	<repeatCount>1</repeatCount>
	<TestCaseRequestedList>
 100000
 300000
 010000
 040000
 010010
 050000
 050001
 070000
 070001
 070002
 010001
 080000
 020000
 200000
	</TestCaseRequestedList>
	<TestCaseExclusionList></TestCaseExclusionList>

	<testCase id="100000">
		<class>Custom_Command</class>
		<desc>Disable Sleep States</desc>
		<node>asterix</node>
		<command>sudo cpupower idle-set -D 0</command>
	</testCase>
	<testCase id="200000">
		<class>Custom_Command</class>
		<desc>Enable Sleep States</desc>
		<node>asterix</node>
		<command>sudo cpupower idle-set -E</command>
	</testCase>
	<testCase id="300000">
		<class>Custom_Command</class>
		<desc>Reboot USRP</desc>
		<node>asterix</node>
		<command>ssh root@172.21.19.14 reboot ; sleep 45</command>
	</testCase>

	<testCase id="010000">
		<class>Initialize_UE</class>
		<desc>Initialize Quectel</desc>
		<id>nrmodule2_quectel</id>
	</testCase>
	<testCase id="010010">
		<class>Attach_UE</class>
		<desc>Attach Quectel UE</desc>
		<id>nrmodule2_quectel</id>
	</testCase>
	<testCase id="010001">
		<class>Detach_UE</class>
		<desc>Detach Quectel UE</desc>
		<id>nrmodule2_quectel</id>
	</testCase>
	<testCase id="020000">
		<class>Terminate_UE</class>
		<desc>Terminate Quectel</desc>
		<id>nrmodule2_quectel</id>
	</testCase>

	<testCase id="040000">
		<class>Initialize_eNB</class>
		<desc>Initialize gNB</desc>
		<Initialize_eNB_args>-O ci-scripts/conf_files/gnb.sa.band78.106prb.usrpn310.ddsuu-2x2.conf --sa -q --usrp-tx-thread-config 1 --T_stdout 2 --tune-offset 30000000 --thread-pool 1,3,5,7,9,11,13,15 --log_config.global_log_options level,nocolor,time</Initialize_eNB_args>
		<eNB_instance>0</eNB_instance>
		<eNB_serverId>0</eNB_serverId>
		<air_interface>nr</air_interface>
		<eNB_Trace>yes</eNB_Trace>
		<eNB_Stats>yes</eNB_Stats>
		<rt_stats_cfg>datalog_rt_stats.2x2.yaml</rt_stats_cfg>
		<USRP_IPAddress>172.21.19.14</USRP_IPAddress>
		<cmd_prefix>numactl --cpunodebind=netdev:ens2f0np0 --membind=netdev:ens2f0np0</cmd_prefix>
	</testCase>

	<testCase id="000001">
		<class>IdleSleep</class>
		<desc>Sleep</desc>
		<idle_sleep_time_in_sec>5</idle_sleep_time_in_sec>
	</testCase>

	<testCase id="000002">
		<class>IdleSleep</class>
		<desc>Sleep</desc>
		<idle_sleep_time_in_sec>20</idle_sleep_time_in_sec>
	</testCase>


	<testCase id="050000">
		<class>Ping</class>
		<desc>Ping: 40pings in 40sec</desc>
		<id>nrmodule2_quectel</id>
		<ping_args>-c 40 %cn_ip%</ping_args>
		<ping_packetloss_threshold>1</ping_packetloss_threshold>
		<ping_rttavg_threshold>10</ping_rttavg_threshold>
	</testCase>

	<testCase id="050001">
		<class>Ping</class>
		<desc>Ping: 100pings in 20sec</desc>
		<id>nrmodule2_quectel</id>
		<ping_args>-c 100 -i 0,2 %cn_ip%</ping_args>
		<ping_packetloss_threshold>1</ping_packetloss_threshold>
		<ping_rttavg_threshold>10</ping_rttavg_threshold>
	</testCase>

	<testCase id="070000">
		<class>Iperf</class>
		<desc>iperf (DL/60Mbps/UDP)(60 sec)(single-ue profile)</desc>
		<iperf_args>-u -b 60M -t 60</iperf_args>
		<direction>DL</direction>
		<id>nrmodule2_quectel</id>
		<iperf_packetloss_threshold>5</iperf_packetloss_threshold>
		<iperf_bitrate_threshold>95</iperf_bitrate_threshold>
		<iperf_profile>single-ue</iperf_profile>
	</testCase>

	<testCase id="070001">
		<class>Iperf</class>
		<desc>iperf (UL/7Mbps/UDP)(60 sec)(single-ue profile)</desc>
		<iperf_args>-u -b 7M -t 60</iperf_args>
		<direction>UL</direction>
		<id>nrmodule2_quectel</id>
		<iperf_packetloss_threshold>5</iperf_packetloss_threshold>
		<iperf_bitrate_threshold>95</iperf_bitrate_threshold>
		<iperf_profile>single-ue</iperf_profile>
	</testCase>

	<testCase id="070002">
		<class>Iperf</class>
		<desc>iperf (BIDIR TCP)(10 sec)(single-ue profile)</desc>
		<iperf_args>-t 10 --bidir</iperf_args>
		<direction>BIDIR</direction>
		<id>nrmodule2_quectel</id>
		<iperf_profile>single-ue</iperf_profile>
	</testCase>


	<testCase id="080000">
		<class>Terminate_eNB</class>
		<desc>Terminate gNB</desc>
		<eNB_instance>0</eNB_instance>
		<eNB_serverId>0</eNB_serverId>
		<air_interface>nr</air_interface>
		<d_retx_th>5,80,100,100</d_retx_th>
		<u_retx_th>5,80,100,100</u_retx_th>
	</testCase>

</testCaseList>

