Commit 0285dad6 authored by Navid Nikaein's avatar Navid Nikaein

additional updated for the example scripts for the distributed emulation

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5769 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent fb34f9b9
#!/bin/sh #!/bin/sh
GREEN='\E[32m' sudo pkill oaisim
NC='\e[0m'
# check the compilation
echo "Bringup eNB interface"
sudo rmmod nasmesh
make all
sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko
# set params # set params
EMULATION_DEV_INTERFACE="eth0" EMULATION_DEV_INTERFACE="eth0"
EMULATION_MULTICAST_GROUP=1 EMULATION_MULTICAST_GROUP=1
EMULATION_LOG_LEVEL=5 # 3 = error, 5 info, 7 debug, trace= 9 EMULATION_LOG_LEVEL=7 # 3 = error, 5 info, 7 debug, trace= 9
OAI_LOCAL_ADDRESS="10.0.1.1" OAI_LOCAL_ADDRESS="10.0.1.1"
OAI_REMOTE_ADDRESS="10.0.1.2" OAI_REMOTE_ADDRESS="10.0.1.2"
#EMULATION_DEV_ADDRESS= `hostname -I cut -f1 -d' '` #EMULATION_DEV_ADDRESS= `hostname -I cut -f1 -d' '`
...@@ -33,18 +26,7 @@ test_install_package() { ...@@ -33,18 +26,7 @@ test_install_package() {
fi fi
} }
#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16)
#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
echo "Make sure that eth0 is the interface between the machines, otherwise change"
sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE
sudo ifconfig oai0 $OAI_LOCAL_ADDRESS netmask 255.255.255.0 broadcast 10.0.1.255
echo "applying DRB classification"
echo "$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1"
$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1
#PGM provide a reliable mutlicast data transport" #PGM provide a reliable mutlicast data transport"
test_install_package libpgm-dev test_install_package libpgm-dev
test_install_package libpgm-5.1-0 test_install_package libpgm-5.1-0
...@@ -56,6 +38,23 @@ else ...@@ -56,6 +38,23 @@ else
PGM=" " PGM=" "
fi fi
# check the compilation
echo "Bringup eNB interface"
sudo rmmod nasmesh
make all
sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko
#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16)
#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
echo "Make sure that eth0 is the interface between the machines, otherwise change"
sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE
# when running as a suduoers, the following lines are not needed
#sudo ifconfig oai0 $OAI_LOCAL_ADDRESS netmask 255.255.255.0 broadcast 10.0.1.255
#echo "applying DRB classification"
#echo "$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1"
#$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1
if [ -z $1 ]; then if [ -z $1 ]; then
echo "$OPENAIR_TARGETS/SIMU/USER/oaisim -u0 -M0 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null" echo "$OPENAIR_TARGETS/SIMU/USER/oaisim -u0 -M0 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null"
sudo -E $OPENAIR_TARGETS/SIMU/USER/oaisim -u0 -M0 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null sudo -E $OPENAIR_TARGETS/SIMU/USER/oaisim -u0 -M0 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null
......
#!/bin/sh #!/bin/sh
echo "Bringup UE interface" sudo pkill oaisim
sudo rmmod nasmesh
make nasmesh all
sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko
# set params # set params
EMULATION_DEV_INTERFACE="eth0" EMULATION_DEV_INTERFACE="eth0"
EMULATION_MULTICAST_GROUP=1 EMULATION_MULTICAST_GROUP=1
EMULATION_LOG_LEVEL=5 # 3 = error, 5 info, 7 debug, trace= 9 EMULATION_LOG_LEVEL=7 # 3 = error, 5 info, 7 debug, trace= 9
OAI_LOCAL_ADDRESS="10.0.1.2" OAI_LOCAL_ADDRESS="10.0.1.2"
OAI_REMOTE_ADDRESS="10.0.1.1" OAI_REMOTE_ADDRESS="10.0.1.1"
#EMULATION_DEV_ADDRESS= `hostname -I cut -f1 -d' '` #EMULATION_DEV_ADDRESS= `hostname -I cut -f1 -d' '`
...@@ -28,16 +25,6 @@ test_install_package() { ...@@ -28,16 +25,6 @@ test_install_package() {
} }
fi fi
} }
#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16)
#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
echo "Make sure that eth0 is the interface between the machines, otherwise change"
sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE
sudo ifconfig oai0 10.0.1.2 netmask 255.255.255.0 broadcast 10.0.1.255
$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1
#PGM provide a reliable mutlicast data transport" #PGM provide a reliable mutlicast data transport"
test_install_package libpgm-dev test_install_package libpgm-dev
test_install_package libpgm-5.1-0 test_install_package libpgm-5.1-0
...@@ -48,6 +35,21 @@ else ...@@ -48,6 +35,21 @@ else
PGM=" " PGM=" "
fi fi
echo "Bringup UE interface"
sudo rmmod nasmesh
make nasmesh all
sudo insmod $OPENAIR2_DIR/NAS/DRIVER/MESH/nasmesh.ko
#avoid conflict with reserved multicast addresses (224.0.0.11,224.0.0.13, 224.0.0.16)
#sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
echo "Make sure that eth0 is the interface between the machines, otherwise change"
sudo ip route add 239.0.0.160/28 dev $EMULATION_DEV_INTERFACE
# when running as a suduoers, the following lines are not needed
#sudo ifconfig oai0 $OAI_LOCAL_ADDRES netmask 255.255.255.0 broadcast 10.0.1.255
#$OPENAIR2_DIR/NAS/DRIVER/MESH/RB_TOOL/rb_tool -a -c0 -i0 -z0 -s $OAI_LOCAL_ADDRESS -t $OAI_REMOTE_ADDRESS -r 1
# running oaisim # running oaisim
if [ -z $1 ]; then if [ -z $1 ]; then
echo "$OPENAIR_TARGETS/SIMU/USER/oaisim -b0 -M1 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null" echo "$OPENAIR_TARGETS/SIMU/USER/oaisim -b0 -M1 -p2 -g$EMULATION_MULTICAST_GROUP -l$EMULATION_LOG_LEVEL $PGM > /dev/null"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment