Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhouShuya
OpenXG-RAN
Commits
34b4f693
Commit
34b4f693
authored
Mar 28, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: proper factorisation on basic-sim and l2-sim tests
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
2d58f354
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
254 additions
and
574 deletions
+254
-574
ci-scripts/reportTestLocally.sh
ci-scripts/reportTestLocally.sh
+9
-1
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+245
-573
No files found.
ci-scripts/reportTestLocally.sh
View file @
34b4f693
...
@@ -215,6 +215,14 @@ function report_test {
...
@@ -215,6 +215,14 @@ function report_test {
BW_CASES
=(
05 10 20
)
BW_CASES
=(
05 10 20
)
for
TMODE
in
${
TRANS_MODES
[@]
}
for
TMODE
in
${
TRANS_MODES
[@]
}
do
do
echo
" <tr bgcolor =
\"
#8FBC8F
\"
>"
>>
./test_simulator_results.html
if
[[
$TMODE
=
~ .
*
fdd.
*
]]
then
echo
" <td align =
\"
center
\"
colspan = 4 >Test in FDD</td>"
>>
./test_simulator_results.html
else
echo
" <td align =
\"
center
\"
colspan = 4 >Test in TDD</td>"
>>
./test_simulator_results.html
fi
echo
" </tr>"
>>
./test_simulator_results.html
for
BW
in
${
BW_CASES
[@]
}
for
BW
in
${
BW_CASES
[@]
}
do
do
ENB_LOG
=
$ARCHIVES_LOC
/
${
TMODE
}
_
${
BW
}
MHz_enb.log
ENB_LOG
=
$ARCHIVES_LOC
/
${
TMODE
}
_
${
BW
}
MHz_enb.log
...
@@ -526,7 +534,7 @@ function report_test {
...
@@ -526,7 +534,7 @@ function report_test {
echo
" </pre></td>"
>>
./test_simulator_results.html
echo
" </pre></td>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
echo
" </tr>"
>>
./test_simulator_results.html
fi
fi
PING_LOGS
=
`
ls
$ARCHIVES_LOC
/
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_ping
*
.
txt
`
PING_LOGS
=
`
ls
$ARCHIVES_LOC
/
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_ping
*
.
log
`
for
PING_CASE
in
$PING_LOGS
for
PING_CASE
in
$PING_LOGS
do
do
echo
" <tr>"
>>
./test_simulator_results.html
echo
" <tr>"
>>
./test_simulator_results.html
...
...
ci-scripts/runTestOnVM.sh
View file @
34b4f693
...
@@ -341,6 +341,35 @@ function recover_core_dump {
...
@@ -341,6 +341,35 @@ function recover_core_dump {
fi
fi
}
}
function
full_terminate
{
echo
"############################################################"
echo
"Terminate enb/ue simulators"
echo
"############################################################"
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
sleep
10
}
function
full_basic_sim_destroy
{
if
[
$KEEP_VM_ALIVE
-eq
0
]
then
echo
"############################################################"
echo
"Destroying VMs"
echo
"############################################################"
uvt-kvm destroy
$VM_NAME
ssh-keygen
-R
$VM_IP_ADDR
uvt-kvm destroy
$EPC_VM_NAME
ssh-keygen
-R
$EPC_VM_IP_ADDR
if
[
-e
$JENKINS_WKSP
/flexran/flexran_build_complete.txt
]
then
uvt-kvm destroy
$FLEXRAN_CTL_VM_NAME
ssh-keygen
-R
$FLEXRAN_CTL_VM_IP_ADDR
fi
fi
}
function
install_epc_on_vm
{
function
install_epc_on_vm
{
local
LOC_EPC_VM_NAME
=
$1
local
LOC_EPC_VM_NAME
=
$1
local
LOC_EPC_VM_CMDS
=
$2
local
LOC_EPC_VM_CMDS
=
$2
...
@@ -755,6 +784,21 @@ function start_l2_sim_ue {
...
@@ -755,6 +784,21 @@ function start_l2_sim_ue {
sleep
10
sleep
10
}
}
function
full_l2_sim_destroy
{
if
[
$KEEP_VM_ALIVE
-eq
0
]
then
echo
"############################################################"
echo
"Destroying VMs"
echo
"############################################################"
uvt-kvm destroy
$ENB_VM_NAME
ssh-keygen
-R
$ENB_VM_IP_ADDR
uvt-kvm destroy
$UE_VM_NAME
ssh-keygen
-R
$UE_VM_IP_ADDR
uvt-kvm destroy
$EPC_VM_NAME
ssh-keygen
-R
$EPC_VM_IP_ADDR
fi
}
function
run_test_on_vm
{
function
run_test_on_vm
{
echo
"############################################################"
echo
"############################################################"
echo
"OAI CI VM script"
echo
"OAI CI VM script"
...
@@ -936,77 +980,33 @@ function run_test_on_vm {
...
@@ -936,77 +980,33 @@ function run_test_on_vm {
# Retrieve EPC real IP address
# Retrieve EPC real IP address
retrieve_real_epc_ip_addr
$EPC_VM_NAME
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
retrieve_real_epc_ip_addr
$EPC_VM_NAME
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
echo
"############################################################"
TRANS_MODES
=(
"fdd"
"tdd"
)
echo
"Starting the eNB in FDD-5MHz mode"
BW_CASES
=(
05 10 20
)
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_05MHz_enb.log
start_basic_sim_enb
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 lte-fdd-basic-sim.conf none
echo
"############################################################"
echo
"Starting the UE in FDD-5MHz mode"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_05MHz_ue.log
start_basic_sim_ue
$VM_CMDS
$VM_IP_ADDR
$CURRENT_UE_LOG_FILE
25 2680
if
[
$UE_SYNC
-eq
0
]
then
echo
"Problem w/ eNB and UE not syncing"
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
return
fi
get_ue_ip_addr
$VM_CMDS
$VM_IP_ADDR
echo
"############################################################"
echo
"Pinging the UE"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_ping_ue.txt
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
for
TMODE
in
${
TRANS_MODES
[@]
}
echo
"Iperf DL"
do
echo
"############################################################"
for
BW
in
${
BW_CASES
[@]
}
CURR_IPERF_LOG_BASE
=
fdd_05MHz_iperf_dl
do
iperf_dl
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
10
$CURR_IPERF_LOG_BASE
# Not Running in TDD-10MHz and TDD-20MHz : too unstable
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
${
CURR_IPERF_LOG_BASE
}
_client.txt
$ARCHIVES_LOC
if
[[
$TMODE
=
~ .
*
tdd.
*
]]
&&
[[
$BW
=
~ .
*
10.
*
]]
;
then continue
;
fi
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
${
CURR_IPERF_LOG_BASE
}
_server.txt
$ARCHIVES_LOC
if
[[
$TMODE
=
~ .
*
tdd.
*
]]
&&
[[
$BW
=
~ .
*
20.
*
]]
;
then continue
;
fi
check_iperf
$ARCHIVES_LOC
/
$CURR_IPERF_LOG_BASE
10
echo
"############################################################"
echo
"Iperf UL"
echo
"############################################################"
CURR_IPERF_LOG_BASE
=
fdd_05MHz_iperf_ul
iperf_ul
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
2
$CURR_IPERF_LOG_BASE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
${
CURR_IPERF_LOG_BASE
}
_server.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
${
CURR_IPERF_LOG_BASE
}
_client.txt
$ARCHIVES_LOC
check_iperf
$ARCHIVES_LOC
/
$CURR_IPERF_LOG_BASE
2
echo
"############################################################"
if
[[
$BW
=
~ .
*
05.
*
]]
;
then
PRB
=
25
;
fi
echo
"Terminate enb/ue simulators"
if
[[
$BW
=
~ .
*
10.
*
]]
;
then
PRB
=
50
;
fi
echo
"############################################################"
if
[[
$BW
=
~ .
*
20.
*
]]
;
then
PRB
=
100
;
fi
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
if
[[
$TMODE
=
~ .
*
fdd.
*
]]
;
then
FREQUENCY
=
2680
;
else
FREQUENCY
=
2350
;
fi
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
sleep
10
echo
"############################################################"
echo
"############################################################"
echo
"Starting the eNB in FDD-10
MHz mode"
echo
"Starting the eNB in
${
TMODE
}
-
${
BW
}
MHz mode"
echo
"############################################################"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_10
MHz_enb.log
CURRENT_ENB_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_enb.log
start_basic_sim_enb
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
50 lte-fdd
-basic-sim.conf none
start_basic_sim_enb
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
$PRB
lte-
${
TMODE
}
-basic-sim
.conf none
echo
"############################################################"
echo
"############################################################"
echo
"Starting the UE in FDD-10
MHz mode"
echo
"Starting the UE in
${
TMODE
}
-
${
BW
}
MHz mode"
echo
"############################################################"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_10
MHz_ue.log
CURRENT_UE_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_ue.log
start_basic_sim_ue
$VM_CMDS
$VM_IP_ADDR
$CURRENT_UE_LOG_FILE
50 2680
start_basic_sim_ue
$VM_CMDS
$VM_IP_ADDR
$CURRENT_UE_LOG_FILE
$PRB
$FREQUENCY
if
[
$UE_SYNC
-eq
0
]
if
[
$UE_SYNC
-eq
0
]
then
then
echo
"Problem w/ eNB and UE not syncing"
echo
"Problem w/ eNB and UE not syncing"
...
@@ -1015,6 +1015,7 @@ function run_test_on_vm {
...
@@ -1015,6 +1015,7 @@ function run_test_on_vm {
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
full_basic_sim_destroy
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
STATUS
=
-1
return
return
...
@@ -1024,88 +1025,44 @@ function run_test_on_vm {
...
@@ -1024,88 +1025,44 @@ function run_test_on_vm {
echo
"############################################################"
echo
"############################################################"
echo
"Pinging the UE"
echo
"Pinging the UE"
echo
"############################################################"
echo
"############################################################"
PING_LOG_FILE
=
fdd_10
MHz_ping_ue.txt
PING_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_ping_ue.txt
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
# Not more testing in TDD-5MHz : too unstable
if
[[
$TMODE
=
~ .
*
tdd.
*
]]
&&
[[
$BW
=
~ .
*
05.
*
]]
;
then
full_terminate
;
continue
;
fi
echo
"############################################################"
echo
"############################################################"
echo
"Iperf DL"
echo
"Iperf DL"
echo
"############################################################"
echo
"############################################################"
CURR_IPERF_LOG_BASE
=
fdd_10MHz_iperf_dl
if
[[
$TMODE
=
~ .
*
fdd.
*
]]
iperf_dl
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
10
$CURR_IPERF_LOG_BASE
then
if
[[
$BW
=
~ .
*
20.
*
]]
;
then
THROUGHPUT
=
12
;
else
THROUGHPUT
=
10
;
fi
else
THROUGHPUT
=
6
fi
CURR_IPERF_LOG_BASE
=
${
TMODE
}
_
${
BW
}
MHz_iperf_dl
iperf_dl
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$THROUGHPUT
$CURR_IPERF_LOG_BASE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
${
CURR_IPERF_LOG_BASE
}
_client.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
${
CURR_IPERF_LOG_BASE
}
_client.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
${
CURR_IPERF_LOG_BASE
}
_server.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
${
CURR_IPERF_LOG_BASE
}
_server.txt
$ARCHIVES_LOC
check_iperf
$ARCHIVES_LOC
/
$CURR_IPERF_LOG_BASE
10
check_iperf
$ARCHIVES_LOC
/
$CURR_IPERF_LOG_BASE
$THROUGHPUT
# Not more testing in FDD-20MHz : too unstable
if
[[
$TMODE
=
~ .
*
fdd.
*
]]
&&
[[
$BW
=
~ .
*
20.
*
]]
;
then
full_terminate
;
continue
;
fi
echo
"############################################################"
echo
"############################################################"
echo
"Iperf UL"
echo
"Iperf UL"
echo
"############################################################"
echo
"############################################################"
CURR_IPERF_LOG_BASE
=
fdd_10MHz_iperf_ul
THROUGHPUT
=
2
iperf_ul
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
2
$CURR_IPERF_LOG_BASE
CURR_IPERF_LOG_BASE
=
${
TMODE
}
_
${
BW
}
MHz_iperf_ul
iperf_ul
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$THROUGHPUT
$CURR_IPERF_LOG_BASE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
${
CURR_IPERF_LOG_BASE
}
_server.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
${
CURR_IPERF_LOG_BASE
}
_server.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
${
CURR_IPERF_LOG_BASE
}
_client.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
${
CURR_IPERF_LOG_BASE
}
_client.txt
$ARCHIVES_LOC
check_iperf
$ARCHIVES_LOC
/
$CURR_IPERF_LOG_BASE
2
check_iperf
$ARCHIVES_LOC
/
$CURR_IPERF_LOG_BASE
$THROUGHPUT
echo
"############################################################"
echo
"Terminate enb/ue simulators"
echo
"############################################################"
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
sleep
10
echo
"############################################################"
echo
"Starting the eNB in FDD-20MHz mode"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_20MHz_enb.log
start_basic_sim_enb
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
100 lte-fdd-basic-sim.conf none
echo
"############################################################"
echo
"Starting the UE in FDD-20MHz mode"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_20MHz_ue.log
start_basic_sim_ue
$VM_CMDS
$VM_IP_ADDR
$CURRENT_UE_LOG_FILE
100 2680
if
[
$UE_SYNC
-eq
0
]
then
echo
"Problem w/ eNB and UE not syncing"
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
return
fi
get_ue_ip_addr
$VM_CMDS
$VM_IP_ADDR
echo
"############################################################"
echo
"Pinging the UE"
echo
"############################################################"
PING_LOG_FILE
=
fdd_20MHz_ping_ue.txt
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
full_terminate
echo
"Iperf DL"
echo
"############################################################"
CURR_IPERF_LOG_BASE
=
fdd_20MHz_iperf_dl
iperf_dl
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
12
$CURR_IPERF_LOG_BASE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
${
CURR_IPERF_LOG_BASE
}
_client.txt
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
${
CURR_IPERF_LOG_BASE
}
_server.txt
$ARCHIVES_LOC
check_iperf
$ARCHIVES_LOC
/
$CURR_IPERF_LOG_BASE
12
echo
"############################################################"
done
echo
"Terminate enb/ue simulators"
done
echo
"############################################################"
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
sleep
10
if
[
-d
$JENKINS_WKSP
/flexran
]
if
[
-d
$JENKINS_WKSP
/flexran
]
then
then
...
@@ -1139,6 +1096,7 @@ function run_test_on_vm {
...
@@ -1139,6 +1096,7 @@ function run_test_on_vm {
then
then
echo
"ERROR: Flexran Ctl VM is not alive"
echo
"ERROR: Flexran Ctl VM is not alive"
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
full_basic_sim_destroy
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
STATUS
=
-1
return
return
...
@@ -1199,183 +1157,13 @@ function run_test_on_vm {
...
@@ -1199,183 +1157,13 @@ function run_test_on_vm {
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$FLEXRAN_CTL_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/flexran_ctl_
*
.log
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$FLEXRAN_CTL_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/flexran_ctl_
*
.log
$ARCHIVES_LOC
fi
fi
echo
"############################################################"
echo
"Starting the eNB in TDD-5MHz mode"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
tdd_05MHz_enb.log
start_basic_sim_enb
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 lte-tdd-basic-sim.conf none
echo
"############################################################"
echo
"Starting the UE in TDD-5MHz mode"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
tdd_05MHz_ue.log
start_basic_sim_ue
$VM_CMDS
$VM_IP_ADDR
$CURRENT_UE_LOG_FILE
25 2350
if
[
$UE_SYNC
-eq
0
]
then
echo
"Problem w/ eNB and UE not syncing"
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
return
fi
get_ue_ip_addr
$VM_CMDS
$VM_IP_ADDR
echo
"############################################################"
echo
"Pinging the UE"
echo
"############################################################"
PING_LOG_FILE
=
tdd_05MHz_ping_ue.txt
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
# Bug in TDD 5Mhz --- not running it
# echo "############################################################"
# echo "Iperf DL"
# echo "############################################################"
# CURR_IPERF_LOG_BASE=tdd_05MHz_iperf_dl
# iperf_dl $VM_CMDS $VM_IP_ADDR $EPC_VM_CMDS $EPC_VM_IP_ADDR 6 $CURR_IPERF_LOG_BASE
# scp -o StrictHostKeyChecking=no ubuntu@$EPC_VM_IP_ADDR:/home/ubuntu/${CURR_IPERF_LOG_BASE}_client.txt $ARCHIVES_LOC
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/${CURR_IPERF_LOG_BASE}_server.txt $ARCHIVES_LOC
# check_iperf $ARCHIVES_LOC/$CURR_IPERF_LOG_BASE 6
echo
"############################################################"
echo
"Terminate enb/ue simulators"
echo
"############################################################"
terminate_enb_ue_basic_sim
$VM_CMDS
$VM_IP_ADDR
0
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
recover_core_dump
$VM_CMDS
$VM_IP_ADDR
$ARCHIVES_LOC
/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
sleep
10
echo
"############################################################"
echo
"Starting the eNB in TDD-10MHz mode"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
tdd_10MHz_enb.log
start_basic_sim_enb
$VM_CMDS
$VM_IP_ADDR
$EPC_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
50 lte-tdd-basic-sim.conf none
# Disabling TDD-10MHz in order to stop getting false negatives
# echo "############################################################"
# echo "Starting the UE in TDD-10MHz mode"
# echo "############################################################"
# CURRENT_UE_LOG_FILE=tdd_10MHz_ue.log
# start_basic_sim_ue $VM_CMDS $VM_IP_ADDR $CURRENT_UE_LOG_FILE 50 2350
# if [ $UE_SYNC -eq 0 ]
# then
# echo "Problem w/ eNB and UE not syncing"
# terminate_enb_ue_basic_sim $VM_CMDS $VM_IP_ADDR 0
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_UE_LOG_FILE $ARCHIVES_LOC
# recover_core_dump $VM_CMDS $VM_IP_ADDR $ARCHIVES_LOC/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# terminate_epc $EPC_VM_CMDS $EPC_VM_IP_ADDR
# echo "TEST_KO" > $ARCHIVES_LOC/test_final_status.log
# STATUS=-1
# return
# fi
# get_ue_ip_addr $VM_CMDS $VM_IP_ADDR
#
# echo "############################################################"
# echo "Pinging the UE"
# echo "############################################################"
# PING_LOG_FILE=tdd_10MHz_ping_ue.txt
# ping_ue_ip_addr $EPC_VM_CMDS $EPC_VM_IP_ADDR $UE_IP_ADDR $PING_LOG_FILE
# scp -o StrictHostKeyChecking=no ubuntu@$EPC_VM_IP_ADDR:/home/ubuntu/$PING_LOG_FILE $ARCHIVES_LOC
# check_ping_result $ARCHIVES_LOC/$PING_LOG_FILE 20
#
# echo "############################################################"
# echo "Iperf DL"
# echo "############################################################"
# CURR_IPERF_LOG_BASE=tdd_10MHz_iperf_dl
# iperf_dl $VM_CMDS $VM_IP_ADDR $EPC_VM_CMDS $EPC_VM_IP_ADDR 6 $CURR_IPERF_LOG_BASE
# scp -o StrictHostKeyChecking=no ubuntu@$EPC_VM_IP_ADDR:/home/ubuntu/${CURR_IPERF_LOG_BASE}_client.txt $ARCHIVES_LOC
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/${CURR_IPERF_LOG_BASE}_server.txt $ARCHIVES_LOC
# check_iperf $ARCHIVES_LOC/$CURR_IPERF_LOG_BASE 6
#
# echo "############################################################"
# echo "Terminate enb/ue simulators"
# echo "############################################################"
# terminate_enb_ue_basic_sim $VM_CMDS $VM_IP_ADDR 0
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_UE_LOG_FILE $ARCHIVES_LOC
# recover_core_dump $VM_CMDS $VM_IP_ADDR $ARCHIVES_LOC/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# sleep 10
#
# Disabling TDD-20MHz in order to stop getting false negatives
# echo "############################################################"
# echo "Starting the eNB in TDD-20MHz mode"
# echo "############################################################"
# CURRENT_ENB_LOG_FILE=tdd_20MHz_enb.log
# start_basic_sim_enb $VM_CMDS $VM_IP_ADDR $EPC_VM_IP_ADDR $CURRENT_ENB_LOG_FILE 100 lte-tdd-basic-sim.conf none
#
# echo "############################################################"
# echo "Starting the UE in TDD-20MHz mode"
# echo "############################################################"
# CURRENT_UE_LOG_FILE=tdd_20MHz_ue.log
# start_basic_sim_ue $VM_CMDS $VM_IP_ADDR $CURRENT_UE_LOG_FILE 100 2350
# if [ $UE_SYNC -eq 0 ]
# then
# echo "Problem w/ eNB and UE not syncing"
# terminate_enb_ue_basic_sim $VM_CMDS $VM_IP_ADDR 0
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_UE_LOG_FILE $ARCHIVES_LOC
# recover_core_dump $VM_CMDS $VM_IP_ADDR $ARCHIVES_LOC/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# terminate_epc $EPC_VM_CMDS $EPC_VM_IP_ADDR
# echo "TEST_KO" > $ARCHIVES_LOC/test_final_status.log
# STATUS=-1
# return
# fi
# get_ue_ip_addr $VM_CMDS $VM_IP_ADDR
#
# echo "############################################################"
# echo "Pinging the UE"
# echo "############################################################"
# PING_LOG_FILE=tdd_20MHz_ping_ue.txt
# ping_ue_ip_addr $EPC_VM_CMDS $EPC_VM_IP_ADDR $UE_IP_ADDR $PING_LOG_FILE
# scp -o StrictHostKeyChecking=no ubuntu@$EPC_VM_IP_ADDR:/home/ubuntu/$PING_LOG_FILE $ARCHIVES_LOC
# check_ping_result $ARCHIVES_LOC/$PING_LOG_FILE 20
#
# echo "############################################################"
# echo "Iperf DL"
# echo "############################################################"
# CURR_IPERF_LOG_BASE=tdd_20MHz_iperf_dl
# iperf_dl $VM_CMDS $VM_IP_ADDR $EPC_VM_CMDS $EPC_VM_IP_ADDR 6 $CURR_IPERF_LOG_BASE
# scp -o StrictHostKeyChecking=no ubuntu@$EPC_VM_IP_ADDR:/home/ubuntu/${CURR_IPERF_LOG_BASE}_client.txt $ARCHIVES_LOC
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/${CURR_IPERF_LOG_BASE}_server.txt $ARCHIVES_LOC
# check_iperf $ARCHIVES_LOC/$CURR_IPERF_LOG_BASE 6
#
# echo "############################################################"
# echo "Terminate enb/ue simulators"
# echo "############################################################"
# terminate_enb_ue_basic_sim $VM_CMDS $VM_IP_ADDR 0
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# scp -o StrictHostKeyChecking=no ubuntu@$VM_IP_ADDR:/home/ubuntu/tmp/cmake_targets/log/$CURRENT_UE_LOG_FILE $ARCHIVES_LOC
# recover_core_dump $VM_CMDS $VM_IP_ADDR $ARCHIVES_LOC/$CURRENT_ENB_LOG_FILE $ARCHIVES_LOC
# sleep 10
echo
"############################################################"
echo
"############################################################"
echo
"Terminate EPC"
echo
"Terminate EPC"
echo
"############################################################"
echo
"############################################################"
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
if
[
$KEEP_VM_ALIVE
-eq
0
]
full_basic_sim_destroy
then
echo
"############################################################"
echo
"Destroying VMs"
echo
"############################################################"
uvt-kvm destroy
$VM_NAME
ssh-keygen
-R
$VM_IP_ADDR
uvt-kvm destroy
$EPC_VM_NAME
ssh-keygen
-R
$EPC_VM_IP_ADDR
if
[
-e
$JENKINS_WKSP
/flexran/flexran_build_complete.txt
]
then
uvt-kvm destroy
$FLEXRAN_CTL_VM_NAME
ssh-keygen
-R
$FLEXRAN_CTL_VM_IP_ADDR
fi
fi
echo
"############################################################"
echo
"############################################################"
echo
"Checking run status"
echo
"Checking run status"
...
@@ -1415,80 +1203,56 @@ function run_test_on_vm {
...
@@ -1415,80 +1203,56 @@ function run_test_on_vm {
# adding 16 users to EPC subscriber lists
# adding 16 users to EPC subscriber lists
add_user_to_epc_lists
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
16
add_user_to_epc_lists
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
16
# For re-runs
EPC_CONFIGS
=(
"wS1"
"noS1"
)
add_ue_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
1
TRANS_MODES
=(
"fdd"
)
BW_CASES
=(
05
)
# Starting EPC
NB_USERS
=(
01 04
)
for
CN_CONFIG
in
${
EPC_CONFIGS
[@]
}
do
if
[[
$CN_CONFIG
=
~ .
*
wS1.
*
]]
then
echo
"############################################################"
echo
"Start EPC for the wS1 configuration"
echo
"############################################################"
start_epc
$EPC_VM_NAME
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
start_epc
$EPC_VM_NAME
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
# Retrieve EPC real IP address
# Retrieve EPC real IP address
retrieve_real_epc_ip_addr
$EPC_VM_NAME
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
retrieve_real_epc_ip_addr
$EPC_VM_NAME
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
S1_NOS1_CFG
=
1
echo
"############################################################"
else
echo
"Starting the eNB in FDD-5MHz mode"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_05MHz_01users_wS1_enb.log
start_l2_sim_enb
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$EPC_VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 rcc.band7.tm1.nfapi.conf 1
echo
"############################################################"
echo
"############################################################"
echo
"Starting the UE (1 user)
"
echo
"Terminate EPC
"
echo
"############################################################"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_05MHz_01users_wS1_ue.log
start_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_VM_IP_ADDR
$CURRENT_UE_LOG_FILE
ue.nfapi.conf 1 1
if
[
$UE_SYNC
-eq
0
]
then
echo
"Problem w/ eNB and UE not syncing"
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
return
fi
echo
"############################################################"
echo
"Pinging the EPC from UE"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_01users_wS1_ping_epc.txt
ping_epc_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
$REAL_EPC_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
echo
"Pinging the UE from EPC"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_01users_wS1_ping_ue.txt
get_ue_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
echo
"############################################################"
echo
"Terminate enb/ue simulators
"
echo
"Running now in a no-S1 configuration
"
echo
"############################################################"
echo
"############################################################"
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
S1_NOS1_CFG
=
0
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
fi
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
for
TMODE
in
${
TRANS_MODES
[@]
}
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
do
for
BW
in
${
BW_CASES
[@]
}
do
for
UES
in
${
NB_USERS
[@]
}
do
INT_NB_UES
=
`
echo
$UES
|
sed
-e
"s#^0*##"
`
echo
"############################################################"
echo
"############################################################"
echo
"Adding UE
to conf file and recompile"
echo
"
${
CN_CONFIG
}
: Adding
${
INT_NB_UES
}
UE(s)
to conf file and recompile"
echo
"############################################################"
echo
"############################################################"
add_ue_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
4
add_ue_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
$INT_NB_UES
echo
"############################################################"
echo
"############################################################"
echo
"Starting the eNB in FDD-5
MHz mode"
echo
"
${
CN_CONFIG
}
: Starting the eNB in
${
TMODE
}
-
${
BW
}
MHz mode"
echo
"############################################################"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_05MHz_04users_wS1
_enb.log
CURRENT_ENB_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_enb.log
start_l2_sim_enb
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$EPC_VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 rcc.band7.tm1.nfapi.conf 1
start_l2_sim_enb
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$EPC_VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 rcc.band7.tm1.nfapi.conf
$S1_NOS1_CFG
echo
"############################################################"
echo
"############################################################"
echo
"Starting the UE (4 user
s)"
echo
"
${
CN_CONFIG
}
: Starting the UE for
${
INT_NB_UES
}
user(
s)"
echo
"############################################################"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_05MHz_04users_wS1
_ue.log
CURRENT_UE_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_ue.log
start_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_VM_IP_ADDR
$CURRENT_UE_LOG_FILE
ue.nfapi.conf 4 1
start_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_VM_IP_ADDR
$CURRENT_UE_LOG_FILE
ue.nfapi.conf
$INT_NB_UES
$S1_NOS1_CFG
if
[
$UE_SYNC
-eq
0
]
if
[
$UE_SYNC
-eq
0
]
then
then
echo
"Problem w/ eNB and UE not syncing"
echo
"Problem w/ eNB and UE not syncing"
...
@@ -1496,163 +1260,71 @@ function run_test_on_vm {
...
@@ -1496,163 +1260,71 @@ function run_test_on_vm {
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
if
[
$S1_NOS1_CFG
-eq
1
]
then
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
fi
full_l2_sim_destroy
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
STATUS
=
-1
return
return
fi
fi
if
[
$S1_NOS1_CFG
-eq
1
]
then
get_ue_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
echo
"############################################################"
echo
"############################################################"
echo
"
Pinging the EPC from UE"
echo
"
${
CN_CONFIG
}
:
Pinging the EPC from UE"
echo
"############################################################"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_04users_wS1_ping_epc.txt
PING_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_ping_epc.log
ping_epc_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
$REAL_EPC_IP_ADDR
$PING_LOG_FILE
ping_epc_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
$REAL_EPC_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
else
echo
"############################################################"
echo
"Pinging the UE from EPC"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_04users_wS1_ping_ue.txt
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
echo
"Terminate enb/ue simulators"
echo
"############################################################"
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
echo
"############################################################"
echo
"Terminate EPC"
echo
"############################################################"
terminate_epc
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
echo
"############################################################"
echo
"Running now in a no-S1 configuration"
echo
"############################################################"
add_ue_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
1
echo
"############################################################"
echo
"noS1 : Starting the eNB in FDD-5MHz mode"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_05MHz_01users_noS1_enb.log
start_l2_sim_enb
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$EPC_VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 rcc.band7.tm1.nfapi.conf 0
echo
"############################################################"
echo
"noS1 : Starting the UE (1 user)"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_05MHz_01users_noS1_ue.log
start_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_VM_IP_ADDR
$CURRENT_UE_LOG_FILE
ue.nfapi.conf 1 0
if
[
$UE_SYNC
-eq
0
]
then
echo
"Problem w/ eNB and UE not syncing"
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
return
fi
get_ue_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
get_ue_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
get_enb_noS1_ip_addr
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
get_enb_noS1_ip_addr
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
echo
"############################################################"
echo
"############################################################"
echo
"noS1
: Pinging the eNB from UE"
echo
"
${
CN_CONFIG
}
: Pinging the eNB from UE"
echo
"############################################################"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_01users_noS1_ping_enb.txt
PING_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_ping_enb.log
ping_epc_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_IP_ADDR
$PING_LOG_FILE
ping_epc_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
fi
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
if
[
$S1_NOS1_CFG
-eq
1
]
echo
"noS1 : Pinging the UE from eNB"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_01users_noS1_ping_ue.txt
ping_enb_ip_addr
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
echo
"noS1: Terminate enb/ue simulators"
echo
"############################################################"
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
echo
"############################################################"
echo
"Adding UE to conf file and recompile"
echo
"############################################################"
add_ue_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
4
echo
"############################################################"
echo
"noS1 : Starting the eNB in FDD-5MHz mode"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_05MHz_04users_noS1_enb.log
start_l2_sim_enb
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$EPC_VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 rcc.band7.tm1.nfapi.conf 0
echo
"############################################################"
echo
"noS1 : Starting the UE (4 users)"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_05MHz_04users_noS1_ue.log
start_l2_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_VM_IP_ADDR
$CURRENT_UE_LOG_FILE
ue.nfapi.conf 1 0
if
[
$UE_SYNC
-eq
0
]
then
then
echo
"Problem w/ eNB and UE not syncing"
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
echo
"TEST_KO"
>
$ARCHIVES_LOC
/test_final_status.log
STATUS
=
-1
return
fi
get_ue_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
get_enb_noS1_ip_addr
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
echo
"############################################################"
echo
"############################################################"
echo
"noS1 : Pinging the eNB from UE
"
echo
"
${
CN_CONFIG
}
: Pinging the UE from EPC
"
echo
"############################################################"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_04users_noS1_ping_enb.txt
PING_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_ping_ue.log
ping_epc_ip_addr
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_IP_ADDR
$PING_LOG_FILE
ping_ue_ip_addr
$EPC_VM_CMDS
$EPC_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$EPC_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
else
echo
"############################################################"
echo
"############################################################"
echo
"noS1
: Pinging the UE from eNB"
echo
"
${
CN_CONFIG
}
: Pinging the UE from eNB"
echo
"############################################################"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_04users_noS1_ping_ue.txt
PING_LOG_FILE
=
${
TMODE
}
_
${
BW
}
MHz_
${
UES
}
users_
${
CN_CONFIG
}
_ping_ue.log
ping_enb_ip_addr
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
ping_enb_ip_addr
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$UE_IP_ADDR
$PING_LOG_FILE
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/
$PING_LOG_FILE
$ARCHIVES_LOC
fi
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
check_ping_result
$ARCHIVES_LOC
/
$PING_LOG_FILE
20
echo
"############################################################"
echo
"############################################################"
echo
"noS1
: Terminate enb/ue simulators"
echo
"
${
CN_CONFIG
}
: Terminate enb/ue simulators"
echo
"############################################################"
echo
"############################################################"
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
1
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
terminate_enb_ue_basic_sim
$UE_VM_CMDS
$UE_VM_IP_ADDR
2
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$ENB_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_ENB_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
scp
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
:/home/ubuntu/tmp/cmake_targets/log/
$CURRENT_UE_LOG_FILE
$ARCHIVES_LOC
if
[
$KEEP_VM_ALIVE
-eq
0
]
done
then
done
echo
"############################################################"
done
echo
"Destroying VMs"
done
echo
"############################################################"
uvt-kvm destroy
$ENB_VM_NAME
full_l2_sim_destroy
ssh-keygen
-R
$ENB_VM_IP_ADDR
uvt-kvm destroy
$UE_VM_NAME
ssh-keygen
-R
$UE_VM_IP_ADDR
uvt-kvm destroy
$EPC_VM_NAME
ssh-keygen
-R
$EPC_VM_IP_ADDR
fi
echo
"############################################################"
echo
"############################################################"
echo
"Checking run status"
echo
"Checking run status"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment