<!--

 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-NSA-FR1-TM2-Tab1</htmlTabRef>
	<htmlTabName>NSA 2x2 Ping DL UL with QUECTEL</htmlTabName>
	<htmlTabIcon>tasks</htmlTabIcon>
	<repeatCount>1</repeatCount>
	<TestCaseRequestedList>
 100000
 700000
 010002
 300000
 030000
 040000
 000002
 010000 010010
 000001
 050000
 050001
 000002
 070000
 070001
 070002
 000001
 010011 010002
 080001
 080000
 200000
 800000
	</TestCaseRequestedList>
	<TestCaseExclusionList></TestCaseExclusionList>

	<testCase id="100000">
		<class>Custom_Command</class>
		<desc>Disable Sleep States (obelix)</desc>
		<node>obelix</node>
		<command>sudo cpupower idle-set -D 0</command>
	</testCase>
	<testCase id="200000">
		<class>Custom_Command</class>
		<desc>Enable Sleep States (obelix)</desc>
		<node>obelix</node>
		<command>sudo cpupower idle-set -E</command>
	</testCase>
	<testCase id="700000">
		<class>Custom_Command</class>
		<desc>Disable Sleep States (asterix)</desc>
		<node>asterix</node>
		<command>sudo cpupower idle-set -D 0</command>
	</testCase>
	<testCase id="800000">
		<class>Custom_Command</class>
		<desc>Enable Sleep States (asterix)</desc>
		<node>asterix</node>
		<command>sudo cpupower idle-set -E</command>
	</testCase>

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


	<testCase id="030000">
		<class>Initialize_eNB</class>
		<desc>Initialize eNB</desc>
		<Initialize_eNB_args>-O ci-scripts/conf_files/enb.band38.nsa_2x2.100prb.usrpn310.conf --usrp-tx-thread-config 1 --thread-pool 0,2,4,6 --log_config.global_log_options level,nocolor,time,line_num,function</Initialize_eNB_args>
		<eNB_instance>0</eNB_instance>
		<eNB_serverId>0</eNB_serverId>
		<air_interface>lte</air_interface>
		<eNB_Trace>yes</eNB_Trace>
		<eNB_Stats>yes</eNB_Stats>
		<USRP_IPAddress>172.21.19.13</USRP_IPAddress>
	</testCase>


	<testCase id="040000">
		<class>Initialize_eNB</class>
		<desc>Initialize gNB</desc>
		<Initialize_eNB_args>-O ci-scripts/conf_files/gnb.nsa.band78.106prb.usrpn310.2x2.conf -q --usrp-tx-thread-config 1 --T_stdout 2 --log_config.global_log_options level,nocolor,time,line_num,function</Initialize_eNB_args>
		<eNB_instance>1</eNB_instance>
		<eNB_serverId>1</eNB_serverId>
		<air_interface>nr</air_interface>
		<eNB_Stats>yes</eNB_Stats>
		<rt_stats_cfg>datalog_rt_stats.2x2.yaml</rt_stats_cfg>
		<USRP_IPAddress>172.21.19.14</USRP_IPAddress>
	</testCase>
	<testCase id = "300000">
		<class>Custom_Command</class>
		<desc>To reboot USRP</desc>
		<node>asterix</node>
		<command>ssh root@172.21.19.14 reboot ; sleep 45</command>
        </testCase>
	<testCase id="000001">
		<class>IdleSleep</class>
		<desc>Sleep</desc>
		<idle_sleep_time_in_sec>60</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: 20pings in 20sec</desc>
		<id>nrmodule2_quectel</id>
		<ping_args>-c 20 %cn_ip%</ping_args>
		<ping_packetloss_threshold>5</ping_packetloss_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>5</ping_packetloss_threshold>
	</testCase>

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

	<testCase id="070001">
		<class>Iperf</class>
		<desc>iperf (UL/1Mbps/UDP)(20 sec)(single-ue profile)</desc>
		<iperf_args>-u -b 3M -t 60</iperf_args>
		<direction>UL</direction>
		<id>nrmodule2_quectel</id>
		<iperf_packetloss_threshold>5</iperf_packetloss_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 eNB</desc>
		<eNB_instance>0</eNB_instance>
		<eNB_serverId>0</eNB_serverId>
		<air_interface>lte</air_interface>
	</testCase>

	<testCase id="080001">
		<class>Terminate_eNB</class>
		<desc>Terminate gNB</desc>
		<eNB_instance>1</eNB_instance>
		<eNB_serverId>1</eNB_serverId>
		<air_interface>nr</air_interface>
	</testCase>

</testCaseList>

