Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
oai5g-cn
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
OpenXG
oai5g-cn
Commits
8b16d1e4
Commit
8b16d1e4
authored
Apr 10, 2024
by
bigbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add remote config, modify key and opc
parent
95dd423e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
220 additions
and
8 deletions
+220
-8
README.md
README.md
+5
-0
conf/config.yaml
conf/config.yaml
+4
-4
database/oai_db.sql
database/oai_db.sql
+4
-4
docker-compose-remote.yaml
docker-compose-remote.yaml
+207
-0
No files found.
README.md
View file @
8b16d1e4
...
...
@@ -35,3 +35,8 @@ sudo docker compose up -d
```
sudo docker compose down -t 0
```
5.
add remote route
if gNB and core are not deployed in a machine, add a route on gNB
```
sudo route add -net 192.168.70.128 netmask 255.255.255.192 gw <core ip>
```
conf/config.yaml
View file @
8b16d1e4
...
...
@@ -108,14 +108,14 @@ amf:
statistics_timer_interval
:
20
#in seconds
emergency_support
:
false
served_guami_list
:
-
mcc
:
466
mnc
:
92
-
mcc
:
001
mnc
:
01
amf_region_id
:
80
amf_set_id
:
001
amf_pointer
:
01
plmn_support_list
:
-
mcc
:
466
mnc
:
92
-
mcc
:
001
mnc
:
01
tac
:
0x0001
nssai
:
-
sst
:
1
...
...
database/oai_db.sql
View file @
8b16d1e4
...
...
@@ -151,13 +151,13 @@ CREATE TABLE `AuthenticationSubscription` (
--
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'001010000000001'
,
'5G_AKA'
,
'
fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000001'
);
(
'001010000000001'
,
'5G_AKA'
,
'
00112233445566778899aabbccddeeff'
,
'00112233445566778899aabbccddeeff'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'000102030405060708090a0b0c0d0e0f
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000001'
);
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'001010000000002'
,
'5G_AKA'
,
'
fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000002'
);
(
'001010000000002'
,
'5G_AKA'
,
'
00112233445566778899aabbccddeeff'
,
'00112233445566778899aabbccddeeff'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'000102030405060708090a0b0c0d0e0f
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000002'
);
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'001010000000003'
,
'5G_AKA'
,
'
fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000003'
);
(
'001010000000003'
,
'5G_AKA'
,
'
00112233445566778899aabbccddeeff'
,
'00112233445566778899aabbccddeeff'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'000102030405060708090a0b0c0d0e0f
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000003'
);
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'001010000000004'
,
'5G_AKA'
,
'
fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000004'
);
(
'001010000000004'
,
'5G_AKA'
,
'
00112233445566778899aabbccddeeff'
,
'00112233445566778899aabbccddeeff'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'000102030405060708090a0b0c0d0e0f
'
,
NULL
,
NULL
,
NULL
,
NULL
,
'001010000000004'
);
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'466920000000001'
,
'5G_AKA'
,
'00112233445566778899aabbccddeeff'
,
'00112233445566778899aabbccddeeff'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'000102030405060708090a0b0c0d0e0f'
,
NULL
,
NULL
,
NULL
,
NULL
,
'466920000000001'
);
...
...
docker-compose-remote.yaml
0 → 100644
View file @
8b16d1e4
version
:
'
3.8'
services
:
mysql
:
container_name
:
"
mysql"
image
:
mysql:8.0
volumes
:
-
./database/oai_db.sql:/docker-entrypoint-initdb.d/oai_db.sql
-
./healthscripts/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
:
5s
timeout
:
2s
retries
:
10
networks
:
public_net
:
ipv4_address
:
192.168.70.131
ims
:
container_name
:
"
asterisk-ims"
image
:
oaisoftwarealliance/ims:latest
volumes
:
-
./conf/sip.conf:/etc/asterisk/sip.conf
-
./conf/users.conf:/etc/asterisk/users.conf
healthcheck
:
test
:
/bin/bash -c "pgrep asterisk"
interval
:
5s
timeout
:
2s
retries
:
10
networks
:
public_net
:
ipv4_address
:
192.168.70.139
oai-udr
:
container_name
:
"
oai-udr"
image
:
oaisoftwarealliance/oai-udr:latest
expose
:
-
80/tcp
-
8080/tcp
volumes
:
-
./conf/config.yaml:/openair-udr/etc/config.yaml
environment
:
-
TZ=Europe/Paris
depends_on
:
-
mysql
-
oai-nrf
networks
:
public_net
:
ipv4_address
:
192.168.70.136
oai-udm
:
container_name
:
"
oai-udm"
image
:
oaisoftwarealliance/oai-udm:latest
expose
:
-
80/tcp
-
8080/tcp
volumes
:
-
./conf/config.yaml:/openair-udm/etc/config.yaml
environment
:
-
TZ=Europe/Paris
depends_on
:
-
oai-udr
networks
:
public_net
:
ipv4_address
:
192.168.70.137
oai-ausf
:
container_name
:
"
oai-ausf"
image
:
oaisoftwarealliance/oai-ausf:latest
expose
:
-
80/tcp
-
8080/tcp
volumes
:
-
./conf/config.yaml:/openair-ausf/etc/config.yaml
environment
:
-
TZ=Europe/Paris
depends_on
:
-
oai-udm
networks
:
public_net
:
ipv4_address
:
192.168.70.138
oai-nrf
:
container_name
:
"
oai-nrf"
image
:
oaisoftwarealliance/oai-nrf:latest
expose
:
-
80/tcp
-
8080/tcp
volumes
:
-
./conf/config.yaml:/openair-nrf/etc/config.yaml
environment
:
-
TZ=Europe/Paris
networks
:
public_net
:
ipv4_address
:
192.168.70.130
oai-amf
:
container_name
:
"
oai-amf"
image
:
oaisoftwarealliance/oai-amf:latest
expose
:
-
80/tcp
-
8080/tcp
# - 38412/sctp
volumes
:
-
./conf/config.yaml:/openair-amf/etc/config.yaml
environment
:
-
TZ=Europe/Paris
depends_on
:
-
mysql
-
oai-nrf
-
oai-ausf
networks
:
public_net
:
ipv4_address
:
192.168.70.132
ports
:
-
"
38412:38412/sctp"
oai-smf
:
container_name
:
"
oai-smf"
image
:
oaisoftwarealliance/oai-smf:latest
expose
:
-
80/tcp
-
8080/tcp
-
8805/udp
volumes
:
-
./conf/config.yaml:/openair-smf/etc/config.yaml
environment
:
-
TZ=Europe/Paris
depends_on
:
-
oai-nrf
-
oai-amf
networks
:
public_net
:
ipv4_address
:
192.168.70.133
oai-spgwu
:
container_name
:
"
oai-spgwu"
image
:
oaisoftwarealliance/oai-spgwu-tiny:latest
expose
:
-
2152/udp
-
8805/udp
-
8080/tcp
# TODO: oai-spgwu-tiny will not support the new common yaml config file feature
# waiting for the new oai-upf NF
environment
:
-
TZ=Europe/Paris
-
SGW_INTERFACE_NAME_FOR_S1U_S12_S4_UP=eth0
-
SGW_INTERFACE_NAME_FOR_SX=eth0
-
PGW_INTERFACE_NAME_FOR_SGI=eth0
-
NETWORK_UE_NAT_OPTION=yes
-
NETWORK_UE_IP=12.1.0.0/16
-
ENABLE_5G_FEATURES=yes
-
REGISTER_NRF=yes
-
USE_FQDN_NRF=yes
-
UPF_FQDN_5G=oai-spgwu
-
NRF_IPV4_ADDRESS=192.168.70.130
-
NRF_FQDN=oai-nrf
# Mandatory to set the NRF PORT to 8080 (it is set to default to 80 otherwise)
-
HTTP_VERSION=2
-
NRF_PORT=8080
# Slice 0 (1, 0xFFFFFF)
-
NSSAI_SST_0=1
-
DNN_0=oai
# Slice 1 (1, 0xFFFFFF)
-
NSSAI_SST_1=1
-
DNN_1=openairinterface
# Slice 2 (1, 0xFFFFFF)
-
NSSAI_SST_2=1
-
DNN_2=ims
depends_on
:
-
oai-nrf
-
oai-smf
cap_add
:
-
NET_ADMIN
-
SYS_ADMIN
cap_drop
:
-
ALL
privileged
:
true
networks
:
public_net
:
ipv4_address
:
192.168.70.134
oai-ext-dn
:
privileged
:
true
init
:
true
container_name
:
oai-ext-dn
image
:
oaisoftwarealliance/trf-gen-cn5g:jammy
entrypoint
:
/bin/bash -c \
"ip route add 12.1.0.0/16 via 192.168.70.134 dev eth0; ip route; sleep infinity"
command
:
[
"
/bin/bash"
,
"
-c"
,
"
trap
:
SIGTERM
SIGINT;
sleep
infinity
&
wait"
]
healthcheck
:
test
:
/bin/bash -c "ip r | grep 12.1.0"
interval
:
5s
timeout
:
2s
retries
:
10
networks
:
public_net
:
ipv4_address
:
192.168.70.135
networks
:
# public_net:
# external:
# name: demo-oai-public-net
public_net
:
driver
:
bridge
name
:
demo-oai-public-net
ipam
:
config
:
-
subnet
:
192.168.70.128/26
driver_opts
:
com.docker.network.bridge.name
:
"
demo-oai"
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