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
zzha zzha
OpenXG-RAN
Commits
ee350140
Commit
ee350140
authored
Feb 22, 2019
by
Boris Djalal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add configuration files. Ping the UE from the eNB.
Signed-off-by:
Boris Djalal
<
boris.djalal@eurecom.fr
>
parent
367f8905
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
354 additions
and
21 deletions
+354
-21
ci-scripts/conf_files/rcc.band7.nos1.simulator.conf
ci-scripts/conf_files/rcc.band7.nos1.simulator.conf
+222
-0
ci-scripts/conf_files/rru.band7.nos1.simulator.conf
ci-scripts/conf_files/rru.band7.nos1.simulator.conf
+45
-0
ci-scripts/runTestOnVM.sh
ci-scripts/runTestOnVM.sh
+87
-21
No files found.
ci-scripts/conf_files/rcc.band7.nos1.simulator.conf
0 → 100644
View file @
ee350140
Active_eNBs
= (
"eNB-Eurecom-LTEBox"
);
# Asn1_verbosity, choice in: none, info, annoying
Asn1_verbosity
=
"none"
;
eNBs
=
(
{
# real_time choice in {hard, rt-preempt, no}
real_time
=
"no"
;
//////////
Identification
parameters
:
eNB_ID
=
0
xe00
;
cell_type
=
"CELL_MACRO_ENB"
;
eNB_name
=
"eNB-Eurecom-LTEBox"
;
//
Tracking
area
code
,
0
x0000
and
0
xfffe
are
reserved
values
tracking_area_code
=
1
;
plmn_list
= ( {
mcc
=
208
;
mnc
=
93
;
mnc_length
=
2
; } );
tr_s_preference
=
"local_mac"
//////////
Physical
parameters
:
component_carriers
= (
{
node_function
=
"NGFI_RCC_IF4p5"
;
node_timing
=
"synch_to_ext_device"
;
node_synch_ref
=
0
;
frame_type
=
"FDD"
;
tdd_config
=
3
;
tdd_config_s
=
0
;
prefix_type
=
"NORMAL"
;
eutra_band
=
7
;
downlink_frequency
=
2680000000
L
;
uplink_frequency_offset
= -
120000000
;
Nid_cell
=
0
;
N_RB_DL
=
50
;
Nid_cell_mbsfn
=
0
;
nb_antenna_ports
=
1
;
nb_antennas_tx
=
1
;
nb_antennas_rx
=
1
;
tx_gain
=
90
;
rx_gain
=
125
;
pbch_repetition
=
"FALSE"
;
prach_root
=
0
;
prach_config_index
=
0
;
prach_high_speed
=
"DISABLE"
;
prach_zero_correlation
=
1
;
prach_freq_offset
=
2
;
pucch_delta_shift
=
1
;
pucch_nRB_CQI
=
0
;
pucch_nCS_AN
=
0
;
pucch_n1_AN
=
0
;
pdsch_referenceSignalPower
= -
27
;
pdsch_p_b
=
0
;
pusch_n_SB
=
1
;
pusch_enable64QAM
=
"DISABLE"
;
pusch_hoppingMode
=
"interSubFrame"
;
pusch_hoppingOffset
=
0
;
pusch_groupHoppingEnabled
=
"ENABLE"
;
pusch_groupAssignment
=
0
;
pusch_sequenceHoppingEnabled
=
"DISABLE"
;
pusch_nDMRS1
=
1
;
phich_duration
=
"NORMAL"
;
phich_resource
=
"ONESIXTH"
;
srs_enable
=
"DISABLE"
;
/*
srs_BandwidthConfig
=;
srs_SubframeConfig
=;
srs_ackNackST
=;
srs_MaxUpPts
=;*/
pusch_p0_Nominal
= -
104
;
pusch_alpha
=
"AL1"
;
pucch_p0_Nominal
= -
104
;
msg3_delta_Preamble
=
6
;
pucch_deltaF_Format1
=
"deltaF2"
;
pucch_deltaF_Format1b
=
"deltaF3"
;
pucch_deltaF_Format2
=
"deltaF0"
;
pucch_deltaF_Format2a
=
"deltaF0"
;
pucch_deltaF_Format2b
=
"deltaF0"
;
rach_numberOfRA_Preambles
=
64
;
rach_preamblesGroupAConfig
=
"DISABLE"
;
/*
rach_sizeOfRA_PreamblesGroupA
= ;
rach_messageSizeGroupA
= ;
rach_messagePowerOffsetGroupB
= ;
*/
rach_powerRampingStep
=
4
;
rach_preambleInitialReceivedTargetPower
= -
108
;
rach_preambleTransMax
=
10
;
rach_raResponseWindowSize
=
10
;
rach_macContentionResolutionTimer
=
48
;
rach_maxHARQ_Msg3Tx
=
4
;
pcch_default_PagingCycle
=
128
;
pcch_nB
=
"oneT"
;
bcch_modificationPeriodCoeff
=
2
;
ue_TimersAndConstants_t300
=
1000
;
ue_TimersAndConstants_t301
=
1000
;
ue_TimersAndConstants_t310
=
1000
;
ue_TimersAndConstants_t311
=
10000
;
ue_TimersAndConstants_n310
=
20
;
ue_TimersAndConstants_n311
=
1
;
ue_TransmissionMode
=
1
;
}
);
srb1_parameters
:
{
# timer_poll_retransmit = (ms) [5, 10, 15, 20,... 250, 300, 350, ... 500]
timer_poll_retransmit
=
80
;
# timer_reordering = (ms) [0,5, ... 100, 110, 120, ... ,200]
timer_reordering
=
35
;
# timer_reordering = (ms) [0,5, ... 250, 300, 350, ... ,500]
timer_status_prohibit
=
0
;
# poll_pdu = [4, 8, 16, 32 , 64, 128, 256, infinity(>10000)]
poll_pdu
=
4
;
# poll_byte = (kB) [25,50,75,100,125,250,375,500,750,1000,1250,1500,2000,3000,infinity(>10000)]
poll_byte
=
99999
;
# max_retx_threshold = [1, 2, 3, 4 , 6, 8, 16, 32]
max_retx_threshold
=
4
;
}
# ------- SCTP definitions
SCTP
:
{
# Number of streams to use in input/output
SCTP_INSTREAMS
=
2
;
SCTP_OUTSTREAMS
=
2
;
};
//////////
MME
parameters
:
mme_ip_address
= ( {
ipv4
=
"127.0.0.3"
;
ipv6
=
"192:168:30::17"
;
active
=
"yes"
;
preference
=
"ipv4"
;
}
);
NETWORK_INTERFACES
:
{
ENB_INTERFACE_NAME_FOR_S1_MME
=
"lo"
;
ENB_IPV4_ADDRESS_FOR_S1_MME
=
"127.0.0.2/24"
;
ENB_INTERFACE_NAME_FOR_S1U
=
"lo"
;
ENB_IPV4_ADDRESS_FOR_S1U
=
"127.0.0.5/24"
;
ENB_PORT_FOR_S1U
=
2152
;
# Spec 2152
ENB_IPV4_ADDRESS_FOR_X2C
=
"127.0.0.2/24"
;
ENB_PORT_FOR_X2C
=
36422
;
# Spec 36422
};
}
);
MACRLCs
= (
{
num_cc
=
1
;
tr_s_preference
=
"local_L1"
;
tr_n_preference
=
"local_RRC"
;
}
);
L1s
= (
{
num_cc
=
1
;
tr_n_preference
=
"local_mac"
;
}
);
RUs
= (
{
local_if_name
=
"ens3"
;
remote_address
=
"CI_UE_IP_ADDR"
;
local_address
=
"CI_ENB_IP_ADDR"
;
local_portc
=
50000
;
remote_portc
=
50000
;
local_portd
=
50001
;
remote_portd
=
50001
;
local_rf
=
"no"
tr_preference
=
"udp_if4p5"
nb_tx
=
1
nb_rx
=
1
att_tx
=
0
att_rx
=
0
;
eNB_instances
= [
0
];
}
);
THREAD_STRUCT
= (
{
#three config for level of parallelism "PARALLEL_SINGLE_THREAD", "PARALLEL_RU_L1_SPLIT", or "PARALLEL_RU_L1_TRX_SPLIT"
parallel_config
=
"PARALLEL_SINGLE_THREAD"
;
#two option for worker "WORKER_DISABLE" or "WORKER_ENABLE"
worker_config
=
"WORKER_ENABLE"
;
}
);
log_config
= {
global_log_level
=
"info"
;
global_log_verbosity
=
"medium"
;
hw_log_level
=
"info"
;
hw_log_verbosity
=
"medium"
;
phy_log_level
=
"info"
;
phy_log_verbosity
=
"medium"
;
mac_log_level
=
"info"
;
mac_log_verbosity
=
"high"
;
rlc_log_level
=
"info"
;
rlc_log_verbosity
=
"medium"
;
pdcp_log_level
=
"info"
;
pdcp_log_verbosity
=
"medium"
;
rrc_log_level
=
"info"
;
rrc_log_verbosity
=
"medium"
;
};
ci-scripts/conf_files/rru.band7.nos1.simulator.conf
0 → 100644
View file @
ee350140
RUs
= (
{
local_if_name
=
"ens3"
;
remote_address
=
"CI_ENB_IP_ADDR"
local_address
=
"CI_UE_IP_ADDR"
;
local_portc
=
50000
;
remote_portc
=
50000
;
local_portd
=
50001
;
remote_portd
=
50001
;
local_rf
=
"yes"
tr_preference
=
"udp_if4p5"
;
nb_tx
=
1
;
nb_rx
=
1
;
max_pdschReferenceSignalPower
= -
27
;
max_rxgain
=
125
;
bands
= [
7
];
}
);
THREAD_STRUCT
= (
{
#three config for level of parallelism "PARALLEL_SINGLE_THREAD", "PARALLEL_RU_L1_SPLIT", or "PARALLEL_RU_L1_TRX_SPLIT"
parallel_config
=
"PARALLEL_SINGLE_THREAD"
;
#two option for worker "WORKER_DISABLE" or "WORKER_ENABLE"
worker_config
=
"WORKER_ENABLE"
;
}
);
log_config
= {
global_log_level
=
"info"
;
global_log_verbosity
=
"medium"
;
hw_log_level
=
"info"
;
hw_log_verbosity
=
"medium"
;
phy_log_level
=
"info"
;
phy_log_verbosity
=
"medium"
;
mac_log_level
=
"info"
;
mac_log_verbosity
=
"high"
;
rlc_log_level
=
"info"
;
rlc_log_verbosity
=
"medium"
;
pdcp_log_level
=
"info"
;
pdcp_log_verbosity
=
"medium"
;
rrc_log_level
=
"info"
;
rrc_log_verbosity
=
"medium"
;
};
ci-scripts/runTestOnVM.sh
View file @
ee350140
...
@@ -103,12 +103,6 @@ function start_basic_sim_ue {
...
@@ -103,12 +103,6 @@ function start_basic_sim_ue {
echo
"sudo chmod 777 /home/ubuntu/tmp/cmake_targets/basic_simulator/ue"
>>
$1
echo
"sudo chmod 777 /home/ubuntu/tmp/cmake_targets/basic_simulator/ue"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/basic_simulator/ue"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/basic_simulator/ue"
>>
$1
echo
"echo
\"
./lte-uesoftmodem -C
${
LOC_FREQUENCY
}
000000 -r
$LOC_NB_RBS
--ue-rxgain 140
\"
> ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"echo
\"
./lte-uesoftmodem -C
${
LOC_FREQUENCY
}
000000 -r
$LOC_NB_RBS
--ue-rxgain 140
\"
> ./my-lte-uesoftmodem-run.sh"
>>
$1
FILE
=
./my-lte-uesoftmodem-run.sh
if
[
-f
$FILE
]
;
then
echo
"File
$FILE
exists."
else
echo
"File
$FILE
does not exist."
fi
echo
"chmod 775 ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"chmod 775 ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"cat ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"cat ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"if [ -e /home/ubuntu/tmp/cmake_targets/log/
$LOC_UE_LOG_FILE
]; then sudo sudo rm -f /home/ubuntu/tmp/cmake_targets/log/
$LOC_UE_LOG_FILE
; fi"
>>
$1
echo
"if [ -e /home/ubuntu/tmp/cmake_targets/log/
$LOC_UE_LOG_FILE
]; then sudo sudo rm -f /home/ubuntu/tmp/cmake_targets/log/
$LOC_UE_LOG_FILE
; fi"
>>
$1
...
@@ -147,11 +141,32 @@ function get_ue_ip_addr {
...
@@ -147,11 +141,32 @@ function get_ue_ip_addr {
}
}
function
ping_ue_ip_addr
{
function
ping_ue_ip_addr
{
echo
"echo
\"
ping -c 20
$3
\"
"
>
$1
echo
"CALL ping_ue_ip_addr"
echo
'$@'
$@
echo
"echo
\"
COMMAND IS: ping -c 20
$3
\"
>
$4
"
>
$1
echo
"echo
\"
COMMAND IS: ping -c 20
$3
\"
>
$4
"
>
$1
echo
"ping -c 20
$UE_IP_ADDR
| tee -a
$4
"
>>
$1
echo
"rm -f
$4
"
>>
$1
echo
"echo
\"
ping -c 20
$3
\"
"
>>
$1
echo
"ping -c 20
$UE_REAL_IP_ADDR
| tee -a
$4
"
>>
$1
echo
"command generated by ping_ue_ip_addr:"
cat
$1
echo
"end of command generated by ping_ue_ip_addr"
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$2
<
$1
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$2
<
$1
rm
-f
$1
rm
-f
$1
echo
"END ping_ue_ip_addr"
}
function
ping_no_s1_ue_ip_addr
{
echo
"CALL ping_ue_ip_addr"
echo
'$@'
$@
echo
"echo
\"
COMMAND IS: ping -I oai0 -c 20
$3
\"
>
$4
"
>
$1
echo
"rm -f
$4
"
>>
$1
echo
"ping -I oai0 -c 20
$UE_REAL_IP_ADDR
| tee -a
$4
"
>>
$1
echo
"command generated by ping_ue_ip_addr:"
cat
$1
echo
"end of command generated by ping_ue_ip_addr"
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$2
<
$1
rm
-f
$1
echo
"END ping_ue_ip_addr"
}
}
function
ping_epc_ip_addr
{
function
ping_epc_ip_addr
{
...
@@ -299,6 +314,7 @@ function recover_core_dump {
...
@@ -299,6 +314,7 @@ function recover_core_dump {
}
}
function
start_nos1_sim_enb
{
function
start_nos1_sim_enb
{
# start_nos1_sim_enb $ENB_VM_CMDS $ENB_VM_IP_ADDR $UE_VM_IP_ADDR $CURRENT_ENB_LOG_FILE 25 rcc.band7.nos1.simulator.conf
local
LOC_VM_IP_ADDR
=
$2
local
LOC_VM_IP_ADDR
=
$2
local
LOC_UE_IP_ADDR
=
$3
local
LOC_UE_IP_ADDR
=
$3
local
LOC_LOG_FILE
=
$4
local
LOC_LOG_FILE
=
$4
...
@@ -324,11 +340,19 @@ function start_nos1_sim_enb {
...
@@ -324,11 +340,19 @@ function start_nos1_sim_enb {
echo
"echo
\"
ulimit -c unlimited && ./lte-softmodem-nos1 -O /home/ubuntu/tmp/ci-scripts/conf_files/ci-
$LOC_CONF_FILE
\"
> ./my-lte-softmodem-run.sh "
>>
$1
echo
"echo
\"
ulimit -c unlimited && ./lte-softmodem-nos1 -O /home/ubuntu/tmp/ci-scripts/conf_files/ci-
$LOC_CONF_FILE
\"
> ./my-lte-softmodem-run.sh "
>>
$1
echo
"chmod 775 ./my-lte-softmodem-run.sh"
>>
$1
echo
"chmod 775 ./my-lte-softmodem-run.sh"
>>
$1
echo
"cat ./my-lte-softmodem-run.sh"
>>
$1
echo
"cat ./my-lte-softmodem-run.sh"
>>
$1
echo
"sudo rm -f /home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
"
>>
$1
echo
"sudo -E daemon --inherit --unsafe --name=enb_daemon --chdir=/home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build -o /home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
./my-lte-softmodem-run.sh"
>>
$1
echo
"sudo -E daemon --inherit --unsafe --name=enb_daemon --chdir=/home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build -o /home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
./my-lte-softmodem-run.sh"
>>
$1
# echo " ========================================================"
# echo "BEGIN start_nos1_sim_enb command"
# cat $1
# echo "END start_nos1_sim_enb command"
# echo " ========================================================"
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_VM_IP_ADDR
<
$1
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_VM_IP_ADDR
<
$1
sleep
10
echo
" ========================================================"
sleep
20
rm
$1
rm
$1
echo
" ========================================================"
# marker is "eNB L1 are configured"
}
}
function
stop_nos1_sim_enb
{
function
stop_nos1_sim_enb
{
...
@@ -353,9 +377,9 @@ function stop_nos1_sim_enb {
...
@@ -353,9 +377,9 @@ function stop_nos1_sim_enb {
}
}
function
start_nos1_sim_ue
{
function
start_nos1_sim_ue
{
# start_nos1_sim_ue $UE_VM_CMDS $
VM_IP_ADDR $UE
_VM_IP_ADDR $CURRENT_UE_LOG_FILE 25 rru.band7.nos1.simulator.conf
# start_nos1_sim_ue $UE_VM_CMDS $
UE_VM_IP_ADDR $ENB
_VM_IP_ADDR $CURRENT_UE_LOG_FILE 25 rru.band7.nos1.simulator.conf
local
LOC_
VM
_IP_ADDR
=
$2
local
LOC_
UE
_IP_ADDR
=
$2
local
LOC_
UE
_IP_ADDR
=
$3
local
LOC_
ENB
_IP_ADDR
=
$3
local
LOC_LOG_FILE
=
$4
local
LOC_LOG_FILE
=
$4
local
LOC_NB_RBS
=
$5
local
LOC_NB_RBS
=
$5
local
LOC_CONF_FILE
=
$6
local
LOC_CONF_FILE
=
$6
...
@@ -366,21 +390,27 @@ function start_nos1_sim_ue {
...
@@ -366,21 +390,27 @@ function start_nos1_sim_ue {
echo
"source oaienv"
>>
$1
echo
"source oaienv"
>>
$1
echo
"cd ci-scripts/conf_files/"
>>
$1
echo
"cd ci-scripts/conf_files/"
>>
$1
echo
"cp
$LOC_CONF_FILE
ci-
$LOC_CONF_FILE
"
>>
$1
echo
"cp
$LOC_CONF_FILE
ci-
$LOC_CONF_FILE
"
>>
$1
echo
"sed -i -e 's#CI_UE_IP_ADDR#
$LOC_UE_IP_ADDR
#' -e 's#CI_ENB_IP_ADDR#
$LOC_
VM
_IP_ADDR
#' ci-
$LOC_CONF_FILE
"
>>
$1
echo
"sed -i -e 's#CI_UE_IP_ADDR#
$LOC_UE_IP_ADDR
#' -e 's#CI_ENB_IP_ADDR#
$LOC_
ENB
_IP_ADDR
#' ci-
$LOC_CONF_FILE
"
>>
$1
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/tools
\"
"
>>
$1
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/tools
\"
"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/tools/"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/tools/"
>>
$1
echo
"echo
\"
if [
\`
lsmod | grep -c nasmesh
\`
-eq 0 ]; then sudo -E ./init_nas_nos1 UE; fi
\"
"
>>
$1
echo
"echo
\"
if [
\`
lsmod | grep -c nasmesh
\`
-eq 0 ]; then sudo -E ./init_nas_nos1 UE; fi
\"
"
>>
$1
echo
"if [
\`
lsmod | grep -c nasmesh
\`
-eq 0 ]; then sudo -E ./init_nas_nos1 UE; fi"
>>
$1
echo
"if [
\`
lsmod | grep -c nasmesh
\`
-eq 0 ]; then sudo -E ./init_nas_nos1 UE; fi"
>>
$1
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build/
\"
"
>>
$1
echo
"echo
\"
cd /home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build/
\"
"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build/"
>>
$1
echo
"cd /home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build/"
>>
$1
echo
"echo
\"
ulimit -c unlimited && ./lte-uesoftmodem-nos1 -O /home/ubuntu/tmp/ci-scripts/conf_files/ci-
$LOC_CONF_FILE
-r
$LOC_NB_RBS
--siml1
\"
| sudo tee
-a
./my-lte-uesoftmodem-run.sh "
>>
$1
echo
"echo
\"
ulimit -c unlimited && ./lte-uesoftmodem-nos1 -O /home/ubuntu/tmp/ci-scripts/conf_files/ci-
$LOC_CONF_FILE
-r
$LOC_NB_RBS
--siml1
\"
| sudo tee ./my-lte-uesoftmodem-run.sh "
>>
$1
echo
"sudo chmod 775 ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"sudo chmod 775 ./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"cat ./my-lte-uesoftmodem-run.sh"
>>
$1
# echo "cat ./my-lte-uesoftmodem-run.sh" >> $1
# echo "BEGIN start_nos1_sim_ue command"
# cat $1
# echo "END start_nos1_sim_ue command"
echo
"sudo rm -f /home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
"
>>
$1
echo
"sudo -E daemon --inherit --unsafe --name=ue_daemon --chdir=/home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build -o /home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
./my-lte-uesoftmodem-run.sh"
>>
$1
echo
"sudo -E daemon --inherit --unsafe --name=ue_daemon --chdir=/home/ubuntu/tmp/cmake_targets/lte_noS1_build_oai/build -o /home/ubuntu/tmp/cmake_targets/log/
$LOC_LOG_FILE
./my-lte-uesoftmodem-run.sh"
>>
$1
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_UE_IP_ADDR
<
$1
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$LOC_UE_IP_ADDR
<
$1
sleep
10
echo
" ========================================================"
sleep
40
rm
$1
rm
$1
echo
" ========================================================"
# marker is "Generating RRCConnectionReconfigurationComplete"
}
}
function
stop_nos1_sim_ue
{
function
stop_nos1_sim_ue
{
...
@@ -399,7 +429,6 @@ function stop_nos1_sim_ue {
...
@@ -399,7 +429,6 @@ function stop_nos1_sim_ue {
echo
"sleep 1"
>>
$1
echo
"sleep 1"
>>
$1
echo
"echo
\"
ps -aux | grep softmodem
\"
"
>>
$1
echo
"echo
\"
ps -aux | grep softmodem
\"
"
>>
$1
echo
"ps -aux | grep softmodem | grep -v grep"
>>
$1
echo
"ps -aux | grep softmodem | grep -v grep"
>>
$1
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$2
<
$1
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$2
<
$1
rm
-f
$1
rm
-f
$1
}
}
...
@@ -1462,11 +1491,24 @@ function run_test_on_vm {
...
@@ -1462,11 +1491,24 @@ function run_test_on_vm {
fi
fi
mkdir
--parents
$ARCHIVES_LOC
mkdir
--parents
$ARCHIVES_LOC
ENB_VM_NAME
=
$VM_NAME
ENB_VM_CMDS
=
${
ENB_VM_NAME
}
_cmds.txt
echo
"ENB_VM_NAME =
$ENB_VM_NAME
"
echo
"ENB_VM_CMD_FILE =
$ENB_VM_CMDS
"
UE_VM_NAME
=
`
echo
$VM_NAME
|
sed
-e
"s#enb#ue#"
`
UE_VM_NAME
=
`
echo
$VM_NAME
|
sed
-e
"s#enb#ue#"
`
UE_VM_CMDS
=
${
UE_VM_NAME
}
_cmds.txt
UE_VM_CMDS
=
${
UE_VM_NAME
}
_cmds.txt
echo
"UE_VM_NAME =
$UE_VM_NAME
"
echo
"UE_VM_NAME =
$UE_VM_NAME
"
echo
"UE_VM_CMD_FILE =
$UE_VM_CMDS
"
echo
"UE_VM_CMD_FILE =
$UE_VM_CMDS
"
echo
"############################################################"
echo
"Waiting for ENB VM to be started"
echo
"############################################################"
uvt-kvm
wait
$ENB_VM_NAME
--insecure
ENB_VM_IP_ADDR
=
`
uvt-kvm ip
$ENB_VM_NAME
`
echo
"
$ENB_VM_NAME
has for IP addr =
$ENB_VM_IP_ADDR
"
echo
"############################################################"
echo
"############################################################"
echo
"Waiting for UE VM to be started"
echo
"Waiting for UE VM to be started"
echo
"############################################################"
echo
"############################################################"
...
@@ -1479,13 +1521,37 @@ function run_test_on_vm {
...
@@ -1479,13 +1521,37 @@ function run_test_on_vm {
echo
"Starting the eNB in FDD-5MHz mode"
echo
"Starting the eNB in FDD-5MHz mode"
echo
"############################################################"
echo
"############################################################"
CURRENT_ENB_LOG_FILE
=
fdd_05MHz_enb.log
CURRENT_ENB_LOG_FILE
=
fdd_05MHz_enb.log
start_nos1_sim_enb
$VM_CMDS
$VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
5 rcc.band7.nos1.simulator.conf
echo
"ENB_VM_CMDS =
$ENB_VM_CMDS
"
echo
"ENB_VM_IP_ADDR =
$ENB_VM_IP_ADDR
"
echo
"UE_VM_IP_ADDR =
$UE_VM_IP_ADDR
"
echo
"CURRENT_ENB_LOG_FILE =
$CURRENT_ENB_LOG_FILE
"
start_nos1_sim_enb
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_ENB_LOG_FILE
25 rcc.band7.nos1.simulator.conf
echo
"############################################################"
echo
"############################################################"
echo
"Starting the UE in FDD-5MHz mode"
echo
"Starting the UE in FDD-5MHz mode"
echo
"############################################################"
echo
"############################################################"
CURRENT_UE_LOG_FILE
=
fdd_05MHz_ue.log
CURRENT_UE_LOG_FILE
=
fdd_05MHz_ue.log
start_nos1_sim_ue
$UE_VM_CMDS
$VM_IP_ADDR
$UE_VM_IP_ADDR
$CURRENT_UE_LOG_FILE
5 rru.band7.nos1.simulator.conf
start_nos1_sim_ue
$UE_VM_CMDS
$UE_VM_IP_ADDR
$ENB_VM_IP_ADDR
$CURRENT_UE_LOG_FILE
25 rru.band7.nos1.simulator.conf
echo
"UE_SYNC =
$UE_SYNC
"
echo
"ifconfig oai0 | egrep
\"
inet addr
\"
| sed -e 's#^.*addr:##' -e 's# Bcast.*##'"
>
$UE_VM_CMDS
UE_REAL_IP_ADDR
=
`
ssh
-o
StrictHostKeyChecking
=
no ubuntu@
$UE_VM_IP_ADDR
<
$UE_VM_CMDS
`
echo
"UE oai0 interface IP addr:
$UE_REAL_IP_ADDR
"
echo
"############################################################"
echo
"Pinging the UE from eNB"
echo
"############################################################"
PING_LOG_FILE
=
fdd_05MHz_ping_ue.txt
echo
"UE_VM_CMDS =
$UE_VM_CMDS
"
echo
"UE_VM_IP_ADDR =
$UE_VM_IP_ADDR
"
echo
"UE_IP_ADDR =
$UE_IP_ADDR
"
echo
"PING_LOG_FILE =
$PING_LOG_FILE
"
ping_no_s1_ue_ip_addr
$ENB_VM_CMDS
$ENB_VM_IP_ADDR
$UE_REAL_IP_ADDR
$PING_LOG_FILE
#ping_ue_ip_addr $UE_CMDS $UE_VM_IP_ADDR $REAL_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
"END OF Pinging the UE from eNB"
echo
"############################################################"
sleep
30
sleep
30
echo
"############################################################"
echo
"############################################################"
...
...
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