Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-UPF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-UPF
Commits
853137b4
Commit
853137b4
authored
Apr 02, 2021
by
foo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bench test added
parent
7a74b991
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
738 additions
and
0 deletions
+738
-0
scripts/tests/bench/DStester_upf_multiple_ue.xml
scripts/tests/bench/DStester_upf_multiple_ue.xml
+235
-0
scripts/tests/bench/docker-compose.yml
scripts/tests/bench/docker-compose.yml
+250
-0
scripts/tests/bench/mysql-healthcheck.sh
scripts/tests/bench/mysql-healthcheck.sh
+46
-0
scripts/tests/bench/oai_db.sql
scripts/tests/bench/oai_db.sql
+207
-0
No files found.
scripts/tests/bench/DStester_upf_multiple_ue.xml
0 → 100644
View file @
853137b4
This diff is collapsed.
Click to expand it.
scripts/tests/bench/docker-compose.yml
0 → 100644
View file @
853137b4
version
:
'
3.8'
services
:
mysql
:
container_name
:
vpptest-mysql
image
:
mysql:5.7
volumes
:
-
./oai_db.sql:/docker-entrypoint-initdb.d/oai_db.sql
-
./mysql-healthcheck.sh:/tmp/mysql-healthcheck.sh
environment
:
-
TZ=Europe/Paris
-
MYSQL_DATABASE=oai_db
-
MYSQL_USER=test
-
MYSQL_PASSWORD=test
-
MYSQL_ROOT_PASSWORD=linux
healthcheck
:
test
:
/bin/bash -c "/tmp/mysql-healthcheck.sh"
interval
:
10s
timeout
:
5s
retries
:
5
networks
:
macvlan_net
:
ipv4_address
:
192.168.74.200
oai-smf
:
image
:
oai-smf:vpp-upf
container_name
:
vpptest-oai-smf
privileged
:
true
networks
:
macvlan_net
:
ipv4_address
:
192.168.74.196
environment
:
INSTANCE
:
1
PID_DIRECTORY
:
/var/run
SMF_INTERFACE_NAME_FOR_N4
:
eth0
SMF_INTERFACE_NAME_FOR_SBI
:
eth0
SMF_INTERFACE_PORT_FOR_SBI
:
80
SMF_INTERFACE_HTTP2_PORT_FOR_SBI
:
8080
SMF_API_VERSION
:
v1
DEFAULT_DNS_IPV4_ADDRESS
:
8.8.8.8
DEFAULT_DNS_SEC_IPV4_ADDRESS
:
8.8.4.4
UE_IP_ADDRESS_POOL
:
'
10.1.1.2
-
10.1.1.200'
AMF_IPV4_ADDRESS
:
192.168.74.195
AMF_PORT
:
80
AMF_API_VERSION
:
v1
UDM_IPV4_ADDRESS
:
192.168.74.194
UDM_PORT
:
80
UDM_API_VERSION
:
v1
UPF_IPV4_ADDRESS
:
192.168.74.202
USE_NETWORK_INSTANCE
:
'
yes'
DISCOVER_UPF
:
'
no'
NRF_API_VERSION
:
'
v1'
NRF_IPV4_ADDRESS
:
'
127.0.0.1'
NRF_PORT
:
'
8080'
REGISTER_NRF
:
'
no'
healthcheck
:
test
:
/bin/bash -c "pgrep oai_smf"
interval
:
10s
timeout
:
5s
retries
:
5
extra_hosts
:
-
"
gw1.vppupf.node.5gcn.mnc95.mcc208.3gppnetwork.org:192.168.74.202"
oai-amf
:
image
:
oai-amf:develop
container_name
:
vpptest-oai-amf
privileged
:
true
networks
:
macvlan_net
:
ipv4_address
:
192.168.74.195
environment
:
INSTANCE
:
1
PID_DIRECTORY
:
/var/run
MCC
:
'
208'
MNC
:
'
95'
REGION_ID
:
'
128'
AMF_SET_ID
:
1
SERVED_GUAMI_MCC_0
:
'
208'
SERVED_GUAMI_MCC_1
:
'
460'
SERVED_GUAMI_MNC_0
:
'
95'
SERVED_GUAMI_MNC_1
:
'
11'
SERVED_GUAMI_REGION_ID_0
:
'
95'
SERVED_GUAMI_REGION_ID_1
:
'
11'
SERVED_GUAMI_AMF_SET_ID_0
:
'
1'
SERVED_GUAMI_AMF_SET_ID_1
:
'
1'
PLMN_SUPPORT_MCC
:
'
208'
PLMN_SUPPORT_MNC
:
'
95'
PLMN_SUPPORT_TAC
:
'
0xa000'
SST_0
:
'
222'
SST_1
:
'
1'
SD_0
:
'
123'
SD_1
:
'
12'
SMF_SELECTION
:
'
no'
SMF_INSTANCE_ID_0
:
1
SMF_INSTANCE_ID_1
:
2
SMF_IPV4_ADDR_0
:
192.168.74.196
SMF_IPV4_ADDR_1
:
127.0.0.1
SMF_HTTP_VERSION_0
:
v1
SMF_HTTP_VERSION_1
:
v1
AMF_INTERFACE_NAME_FOR_NGAP
:
eth0
AMF_INTERFACE_NAME_FOR_N11
:
eth0
AUSF_IPV4_ADDRESS
:
192.168.74.205
AUSF_API_VERSION
:
'
v1'
AUSF_PORT
:
80
NRF_IPV4_ADDRESS
:
192.168.74.206
NRF_API_VERSION
:
'
v1'
NRF_PORT
:
80
MYSQL_SERVER
:
192.168.74.200
MYSQL_USER
:
'
root'
MYSQL_PASS
:
'
linux'
MYSQL_DB
:
'
oai_db'
OPERATOR_KEY
:
'
63bfa50ee6523365ff14c1f45f88737d'
NF_REGISTRATION
:
'
no'
healthcheck
:
test
:
/bin/bash -c "pgrep oai_smf"
interval
:
10s
timeout
:
5s
retries
:
5
oai-vpp
:
image
:
vpp-upg:latest
privileged
:
true
container_name
:
vpptest-oai-vpp-upf
networks
:
macvlan_net
:
ipv4_address
:
192.168.75.197
macvlan_net
:
ipv4_address
:
192.168.74.197
macvlan_net
:
ipv4_address
:
192.168.76.197
environment
:
NWI_CORE
:
"
core.oai"
NWI_ACCESS
:
"
access.oai"
NWI_SGI
:
"
sgi.oai"
# NWI_SGI_SEC: "sgi.secondary.oai" # To Do - Traffic sterring or traffic redirection or I-UPF (N9)
GW_ID
:
"
1"
MNC03
:
"
95"
MCC
:
"
208"
REALM
:
"
3gppnetwork.org"
NETWORK_UE_IP
:
"
12.1.1.0/24"
N3_IPV4_ADDRESS_REMOTE
:
"
192.168.75.198"
N3_IPV4_ADDRESS_LOCAL
:
"
192.168.75.202"
N4_IPV4_ADDRESS_REMOTE
:
"
192.168.74.196"
N4_IPV4_ADDRESS_LOCAL
:
"
192.168.74.202"
N6_IPV4_ADDRESS_REMOTE
:
"
192.168.76.205"
N6_IPV4_ADDRESS_LOCAL
:
"
192.168.76.202"
VPP_MAIN_CORE
:
0
VPP_CORE_WORKER
:
1
oai-spgwu
:
image
:
oai-spgwu-tiny:gtp_ext_header
privileged
:
true
container_name
:
oai-spgwu
networks
:
macvlan_net
:
ipv4_address
:
192.168.74.199
environment
:
INSTANCE
:
1
PID_DIRECTORY
:
/var/run
SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP
:
"
eth0"
SGW_INTERFACE_NAME_FOR_SX
:
"
eth0"
PGW_INTERFACE_NAME_FOR_SGI
:
"
eth0"
SPGWC0_IP_ADDRESS
:
"
192.168.74.196"
NETWORK_UE_IP
:
"
10.1.1.0/24"
NETWORK_UE_NAT_OPTION
:
"
yes"
NRF_IPV4_ADDRESS
:
"
192.168.1.23"
NRF_PORT
:
"
8080"
NRF_API_VERSION
:
"
v1"
GW_ID
:
"
1"
MNC03
:
"
95"
MCC
:
"
208"
REALM
:
"
3gppnetwork.org"
THREAD_S1U_PRIO
:
"
64"
S1U_THREADS
:
"
16"
THREAD_SX_PRIO
:
"
64"
SX_THREADS
:
"
1"
THREAD_SGI_PRIO
:
"
64"
SGI_THREADS
:
"
16"
GTP_EXTENSION_HEADER_PRESENT
:
"
no"
BYPASS_UL_PFCP_RULES
:
"
no"
oai-nat
:
image
:
ubuntu:bionic
privileged
:
true
container_name
:
vpptest-oai-nat
networks
:
macvlan_net
:
ipv4_address
:
192.168.74.205
macvlan_net
:
ipv4_address
:
192.168.76.205
entrypoint
:
/bin/bash -c \
"apt update; apt install -y iptables iproute2 iputils-ping net-tools python iperf3;"\
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;"\
"ip route add 10.1.1.0/24 via 192.168.74.199 dev eth0;"\
"ip route add 12.1.1.0/24 via 192.168.76.201 dev eth1; sleep infinity"
gnbsim
:
image
:
gnbsim:latest
privileged
:
true
container_name
:
vpptest-gnbsim
environment
:
MCC
:
208
MNC
:
95
GNBID
:
1
TAC
:
'
0x00a000'
SST
:
'
222'
SD
:
'
010203'
SD_UE_PARAM
:
'
00007b'
PagingDRX
:
'
v32'
RANUENGAPID
:
0
IMEISV
:
'
35609204079514'
MSIN
:
'
0000000031'
RoutingIndicator
:
1234
ProtectionScheme
:
'
null'
KEY
:
'
0C0A34601D4F07677303652C0462535B'
OPc
:
'
63bfa50ee6523365ff14c1f45f88737d'
DNN
:
'
default'
URL
:
'
http://192.168.76.205:8000'
NRCellID
:
1
NGAPPeerAddr
:
'
192.168.74.195'
GTPuLocalAddr
:
'
192.168.75.198'
GTPuIFname
:
'
eth0'
networks
:
macvlan_net
:
ipv4_address
:
192.168.74.198
macvlan_net
:
ipv4_address
:
192.168.75.198
volumes
:
-
./lib/modules/4.15.0-76-generic/kernel/drivers/net/gtp.ko:/lib/modules/5.8.0-43-generic/kernel/drivers/net/gtp.ko
networks
:
# public_net:
# name: oai-public-net
# ipam:
# config:
# - subnet: 192.168.74.0/24
# public_net_access:
# name: oai-public-access
# ipam:
# config:
# - subnet: 192.168.75.0/24
# public_net_sgi_lan:
# name: oai-public-sgi-lan
# ipam:
# config:
# - subnet: 192.168.76.0/24
macvlan_net
:
external
:
name
:
oairohan
scripts/tests/bench/mysql-healthcheck.sh
0 → 100755
View file @
853137b4
#!/bin/bash
set
-eo
pipefail
if
[
"
$MYSQL_ROOT_PASSWORD
"
]
&&
[
-z
"
$MYSQL_USER
"
]
&&
[
-z
"
$MYSQL_PASSWORD
"
]
;
then
echo
>
&2
'Healthcheck error: cannot determine root password (and MYSQL_USER and MYSQL_PASSWORD were not set)'
exit
0
fi
host
=
"
$(
hostname
--ip-address
||
echo
'127.0.0.1'
)
"
user
=
"
${
MYSQL_USER
:-
root
}
"
export
MYSQL_PWD
=
"
${
MYSQL_PASSWORD
:-
$MYSQL_ROOT_PASSWORD
}
"
args
=(
# force mysql to not use the local "mysqld.sock" (test "external" connectivity)
-h
"
$host
"
-u
"
$user
"
--silent
)
STATUS
=
0
if
command
-v
mysqladmin &> /dev/null
;
then
if
mysqladmin
"
${
args
[@]
}
"
ping
>
/dev/null
;
then
database_check
=
$(
mysql
-u
$user
-D
oai_db
--silent
-e
"SELECT * FROM users;"
)
if
[[
-z
$database_check
]]
;
then
echo
"Healthcheck error: oai_db not populated"
STATUS
=
1
fi
STATUS
=
0
else
echo
"Healthcheck error: Mysql port inactive"
STATUS
=
1
fi
else
if select
=
"
$(
echo
'SELECT 1'
| mysql
"
${
args
[@]
}
"
)
"
&&
[
"
$select
"
=
'1'
]
;
then
database_check
=
$(
mysql
-u
$user
-D
oai_db
--silent
-e
"SELECT * FROM users;"
)
if
[[
-z
$database_check
]]
;
then
echo
"Healthcheck error: oai_db not populated"
STATUS
=
1
fi
STATUS
=
0
else
echo
"Healthcheck error: Mysql port inactive"
STATUS
=
1
fi
fi
exit
$STATUS
scripts/tests/bench/oai_db.sql
0 → 100755
View file @
853137b4
This diff is collapsed.
Click to expand it.
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