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
Michael Black
OpenXG-RAN
Commits
a20a6ba4
Commit
a20a6ba4
authored
Jul 26, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_SA_Tutorials_v2' into integration_2022_wk30
parents
72bf1b1d
43298fd0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
71 deletions
+117
-71
doc/NR_SA_CN5G_gNB_B210_COTS_UE_Tutorial.md
doc/NR_SA_CN5G_gNB_B210_COTS_UE_Tutorial.md
+9
-16
doc/NR_SA_CN5G_gNB_N300_COTS_UE_Tutorial.md
doc/NR_SA_CN5G_gNB_N300_COTS_UE_Tutorial.md
+9
-16
doc/tutorial_resources/docker-compose-basic-nrf.yaml
doc/tutorial_resources/docker-compose-basic-nrf.yaml
+80
-36
doc/tutorial_resources/oai_db.sql
doc/tutorial_resources/oai_db.sql
+19
-3
No files found.
doc/NR_SA_CN5G_gNB_B210_COTS_UE_Tutorial.md
View file @
a20a6ba4
...
...
@@ -71,10 +71,6 @@ reboot
# https://docs.docker.com/compose/install/
sudo
curl
-L
"https://github.com/docker/compose/releases/download/1.29.2/docker-compose-
$(
uname
-s
)
-
$(
uname
-m
)
"
-o
/usr/local/bin/docker-compose
sudo chmod
+x /usr/local/bin/docker-compose
docker network create
--driver
=
bridge
--subnet
=
192.168.70.128/26
-o
"com.docker.network.bridge.name"
=
"demo-oai"
demo-oai-public-net
sudo
service docker restart
```
## 2.2 OAI CN5G Setup
...
...
@@ -82,39 +78,36 @@ sudo service docker restart
```
bash
# Git oai-cn5g-fed repository
git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git ~/oai-cn5g-fed
cd
~/oai-cn5g-fed
git checkout master
./scripts/syncComponents.sh
--nrf-branch
develop
--amf-branch
develop
--smf-branch
develop
--spgwu-tiny-branch
develop
--ausf-branch
develop
--udm-branch
develop
--udr-branch
develop
--upf-vpp-branch
develop
--nssf-branch
develop
# Pull docker images
docker pull oaisoftwarealliance/oai-amf:develop
docker pull oaisoftwarealliance/oai-nrf:develop
docker pull oaisoftwarealliance/oai-smf:develop
docker pull oaisoftwarealliance/oai-udr:develop
docker pull oaisoftwarealliance/oai-udm:develop
docker pull oaisoftwarealliance/oai-ausf:develop
docker pull oaisoftwarealliance/oai-upf-vpp:develop
docker pull oaisoftwarealliance/oai-spgwu-tiny:develop
docker pull oaisoftwarealliance/
oai-nssf:develop
docker pull oaisoftwarealliance/
trf-gen-cn5g:latest
# Tag docker images
docker image tag oaisoftwarealliance/oai-amf:develop oai-amf:develop
docker image tag oaisoftwarealliance/oai-nrf:develop oai-nrf:develop
docker image tag oaisoftwarealliance/oai-smf:develop oai-smf:develop
docker image tag oaisoftwarealliance/oai-udr:develop oai-udr:develop
docker image tag oaisoftwarealliance/oai-udm:develop oai-udm:develop
docker image tag oaisoftwarealliance/oai-ausf:develop oai-ausf:develop
docker image tag oaisoftwarealliance/oai-upf-vpp:develop oai-upf-vpp:develop
docker image tag oaisoftwarealliance/oai-spgwu-tiny:develop oai-spgwu-tiny:develop
docker image tag oaisoftwarealliance/
oai-nssf:develop oai-nssf:develop
docker image tag oaisoftwarealliance/
trf-gen-cn5g:latest trf-gen-cn5g:latest
```
## 2.3 OAI CN5G Configuration files
Download and copy
the configuration files to ~/oai-cn5g-fed/docker-compose
:
-
[
docker-compose-basic-nrf.yaml
](
tutorial_resources/docker-compose-basic-nrf.yaml
)
-
[
oai_db.sql
](
tutorial_resources/oai_db.sql
)
Download and copy
configuration files
:
-
Copy
[
docker-compose-basic-nrf.yaml
](
tutorial_resources/docker-compose-basic-nrf.yaml
)
to
`~/oai-cn5g-fed/docker-compose`
-
Copy
[
oai_db.sql
](
tutorial_resources/oai_db.sql
)
to
`~/oai-cn5g-fed/docker-compose/database`
Change permissions on oai_db.sql to prevent mysql permission denied error:
```
bash
chmod
644 ~/oai-cn5g-fed/docker-compose/oai_db.sql
chmod
644 ~/oai-cn5g-fed/docker-compose/
database/
oai_db.sql
```
## 2.4 SIM Card
...
...
@@ -175,7 +168,7 @@ cd cmake_targets
```
bash
cd
~/oai-cn5g-fed/docker-compose
python3 core-network.py
--type
start-basic
--
fqdn
yes
--
scenario
1
python3 core-network.py
--type
start-basic
--scenario
1
```
## 4.2 Run OAI gNB
...
...
doc/NR_SA_CN5G_gNB_N300_COTS_UE_Tutorial.md
View file @
a20a6ba4
...
...
@@ -72,10 +72,6 @@ reboot
# https://docs.docker.com/compose/install/
sudo
curl
-L
"https://github.com/docker/compose/releases/download/1.29.2/docker-compose-
$(
uname
-s
)
-
$(
uname
-m
)
"
-o
/usr/local/bin/docker-compose
sudo chmod
+x /usr/local/bin/docker-compose
docker network create
--driver
=
bridge
--subnet
=
192.168.70.128/26
-o
"com.docker.network.bridge.name"
=
"demo-oai"
demo-oai-public-net
sudo
service docker restart
```
## 2.2 OAI CN5G Setup
...
...
@@ -83,39 +79,36 @@ sudo service docker restart
```
bash
# Git oai-cn5g-fed repository
git clone https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed.git ~/oai-cn5g-fed
cd
~/oai-cn5g-fed
git checkout master
./scripts/syncComponents.sh
--nrf-branch
develop
--amf-branch
develop
--smf-branch
develop
--spgwu-tiny-branch
develop
--ausf-branch
develop
--udm-branch
develop
--udr-branch
develop
--upf-vpp-branch
develop
--nssf-branch
develop
# Pull docker images
docker pull oaisoftwarealliance/oai-amf:develop
docker pull oaisoftwarealliance/oai-nrf:develop
docker pull oaisoftwarealliance/oai-smf:develop
docker pull oaisoftwarealliance/oai-udr:develop
docker pull oaisoftwarealliance/oai-udm:develop
docker pull oaisoftwarealliance/oai-ausf:develop
docker pull oaisoftwarealliance/oai-upf-vpp:develop
docker pull oaisoftwarealliance/oai-spgwu-tiny:develop
docker pull oaisoftwarealliance/
oai-nssf:develop
docker pull oaisoftwarealliance/
trf-gen-cn5g:latest
# Tag docker images
docker image tag oaisoftwarealliance/oai-amf:develop oai-amf:develop
docker image tag oaisoftwarealliance/oai-nrf:develop oai-nrf:develop
docker image tag oaisoftwarealliance/oai-smf:develop oai-smf:develop
docker image tag oaisoftwarealliance/oai-udr:develop oai-udr:develop
docker image tag oaisoftwarealliance/oai-udm:develop oai-udm:develop
docker image tag oaisoftwarealliance/oai-ausf:develop oai-ausf:develop
docker image tag oaisoftwarealliance/oai-upf-vpp:develop oai-upf-vpp:develop
docker image tag oaisoftwarealliance/oai-spgwu-tiny:develop oai-spgwu-tiny:develop
docker image tag oaisoftwarealliance/
oai-nssf:develop oai-nssf:develop
docker image tag oaisoftwarealliance/
trf-gen-cn5g:latest trf-gen-cn5g:latest
```
## 2.3 OAI CN5G Configuration files
Download and copy
the configuration files to ~/oai-cn5g-fed/docker-compose
:
-
[
docker-compose-basic-nrf.yaml
](
tutorial_resources/docker-compose-basic-nrf.yaml
)
-
[
oai_db.sql
](
tutorial_resources/oai_db.sql
)
Download and copy
configuration files
:
-
Copy
[
docker-compose-basic-nrf.yaml
](
tutorial_resources/docker-compose-basic-nrf.yaml
)
to
`~/oai-cn5g-fed/docker-compose`
-
Copy
[
oai_db.sql
](
tutorial_resources/oai_db.sql
)
to
`~/oai-cn5g-fed/docker-compose/database`
Change permissions on oai_db.sql to prevent mysql permission denied error:
```
bash
chmod
644 ~/oai-cn5g-fed/docker-compose/oai_db.sql
chmod
644 ~/oai-cn5g-fed/docker-compose/
database/
oai_db.sql
```
## 2.4 SIM Card
...
...
@@ -193,7 +186,7 @@ The following steps are recommended. Please change the network interface(s) as r
```
bash
cd
~/oai-cn5g-fed/docker-compose
python3 core-network.py
--type
start-basic
--
fqdn
yes
--
scenario
1
python3 core-network.py
--type
start-basic
--scenario
1
```
## 4.2 Run OAI gNB
...
...
doc/tutorial_resources/docker-compose-basic-nrf.yaml
View file @
a20a6ba4
This diff is collapsed.
Click to expand it.
doc/tutorial_resources/oai_db.sql
View file @
a20a6ba4
...
...
@@ -151,10 +151,13 @@ CREATE TABLE `AuthenticationSubscription` (
--
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'208950000000031'
,
'5G_AKA'
,
'0C0A34601D4F07677303652C0462535B'
,
'0C0A34601D4F07677303652C0462535B'
,
'{
\"
sqn
\"
:
\"
000000000020
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'63bfa50ee6523365ff14c1f45f88737d'
,
NULL
,
NULL
,
NULL
,
NULL
,
'208950000000031'
);
(
'2089900007487'
,
'5G_AKA'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1'
,
NULL
,
NULL
,
NULL
,
NULL
,
'2089900007487'
);
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'208990000000001'
,
'5G_AKA'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1'
,
NULL
,
NULL
,
NULL
,
NULL
,
'208990000000001'
);
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'208990000000001'
,
'5G_AKA'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000020
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1'
,
NULL
,
NULL
,
NULL
,
NULL
,
'208990000000001'
);
(
'208990000000002'
,
'5G_AKA'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1'
,
NULL
,
NULL
,
NULL
,
NULL
,
'208990000000002'
);
INSERT
INTO
`AuthenticationSubscription`
(
`ueid`
,
`authenticationMethod`
,
`encPermanentKey`
,
`protectionParameterId`
,
`sequenceNumber`
,
`authenticationManagementField`
,
`algorithmId`
,
`encOpcKey`
,
`encTopcKey`
,
`vectorGenerationInHss`
,
`n5gcAuthMethod`
,
`rgAuthenticationInd`
,
`supi`
)
VALUES
(
'208990000000003'
,
'5G_AKA'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'fec86ba6eb707ed08905757b1bb44b8f'
,
'{
\"
sqn
\"
:
\"
000000000000
\"
,
\"
sqnScheme
\"
:
\"
NON_TIME_BASED
\"
,
\"
lastIndexes
\"
: {
\"
ausf
\"
: 0}}'
,
'8000'
,
'milenage'
,
'C42449363BBAD02B66D16BC975D77CC1'
,
NULL
,
NULL
,
NULL
,
NULL
,
'208990000000003'
);
-- --------------------------------------------------------
...
...
@@ -203,6 +206,19 @@ CREATE TABLE `SessionManagementSubscriptionData` (
`3gppChargingCharacteristics`
varchar
(
50
)
DEFAULT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
--
-- Dumping data for table `SessionManagementSubscriptionData`
--
INSERT
INTO
`SessionManagementSubscriptionData`
(
`ueid`
,
`servingPlmnid`
,
`singleNssai`
,
`dnnConfigurations`
)
VALUES
(
'2089900007487'
,
'20899'
,
'{
\"
sst
\"
: 1,
\"
sd
\"
:
\"
1
\"
}'
,
'{
\"
oai
\"
:{
\"
pduSessionTypes
\"
:{
\"
defaultSessionType
\"
:
\"
IPV4
\"
},
\"
sscModes
\"
: {
\"
defaultSscMode
\"
:
\"
SSC_MODE_1
\"
},
\"
5gQosProfile
\"
: {
\"
5qi
\"
: 6,
\"
arp
\"
:{
\"
priorityLevel
\"
: 1,
\"
preemptCap
\"
:
\"
NOT_PREEMPT
\"
,
\"
preemptVuln
\"
:
\"
NOT_PREEMPTABLE
\"
},
\"
priorityLevel
\"
:1},
\"
sessionAmbr
\"
:{
\"
uplink
\"
:
\"
1000Mbps
\"
,
\"
downlink
\"
:
\"
1000Mbps
\"
},
\"
staticIpAddress
\"
:[{
\"
ipv4Addr
\"
:
\"
12.1.1.2
\"
}]}}'
);
INSERT
INTO
`SessionManagementSubscriptionData`
(
`ueid`
,
`servingPlmnid`
,
`singleNssai`
,
`dnnConfigurations`
)
VALUES
(
'208990000000001'
,
'20899'
,
'{
\"
sst
\"
: 1,
\"
sd
\"
:
\"
1
\"
}'
,
'{
\"
oai
\"
:{
\"
pduSessionTypes
\"
:{
\"
defaultSessionType
\"
:
\"
IPV4
\"
},
\"
sscModes
\"
: {
\"
defaultSscMode
\"
:
\"
SSC_MODE_1
\"
},
\"
5gQosProfile
\"
: {
\"
5qi
\"
: 6,
\"
arp
\"
:{
\"
priorityLevel
\"
: 1,
\"
preemptCap
\"
:
\"
NOT_PREEMPT
\"
,
\"
preemptVuln
\"
:
\"
NOT_PREEMPTABLE
\"
},
\"
priorityLevel
\"
:1},
\"
sessionAmbr
\"
:{
\"
uplink
\"
:
\"
1000Mbps
\"
,
\"
downlink
\"
:
\"
1000Mbps
\"
},
\"
staticIpAddress
\"
:[{
\"
ipv4Addr
\"
:
\"
12.1.1.2
\"
}]}}'
);
INSERT
INTO
`SessionManagementSubscriptionData`
(
`ueid`
,
`servingPlmnid`
,
`singleNssai`
,
`dnnConfigurations`
)
VALUES
(
'208990000000002'
,
'20899'
,
'{
\"
sst
\"
: 1,
\"
sd
\"
:
\"
1
\"
}'
,
'{
\"
oai
\"
:{
\"
pduSessionTypes
\"
:{
\"
defaultSessionType
\"
:
\"
IPV4
\"
},
\"
sscModes
\"
: {
\"
defaultSscMode
\"
:
\"
SSC_MODE_1
\"
},
\"
5gQosProfile
\"
: {
\"
5qi
\"
: 6,
\"
arp
\"
:{
\"
priorityLevel
\"
: 1,
\"
preemptCap
\"
:
\"
NOT_PREEMPT
\"
,
\"
preemptVuln
\"
:
\"
NOT_PREEMPTABLE
\"
},
\"
priorityLevel
\"
:1},
\"
sessionAmbr
\"
:{
\"
uplink
\"
:
\"
1000Mbps
\"
,
\"
downlink
\"
:
\"
1000Mbps
\"
},
\"
staticIpAddress
\"
:[{
\"
ipv4Addr
\"
:
\"
12.1.1.3
\"
}]}}'
);
INSERT
INTO
`SessionManagementSubscriptionData`
(
`ueid`
,
`servingPlmnid`
,
`singleNssai`
,
`dnnConfigurations`
)
VALUES
(
'208990000000003'
,
'20899'
,
'{
\"
sst
\"
: 1,
\"
sd
\"
:
\"
1
\"
}'
,
'{
\"
oai
\"
:{
\"
pduSessionTypes
\"
:{
\"
defaultSessionType
\"
:
\"
IPV4
\"
},
\"
sscModes
\"
: {
\"
defaultSscMode
\"
:
\"
SSC_MODE_1
\"
},
\"
5gQosProfile
\"
: {
\"
5qi
\"
: 6,
\"
arp
\"
:{
\"
priorityLevel
\"
: 1,
\"
preemptCap
\"
:
\"
NOT_PREEMPT
\"
,
\"
preemptVuln
\"
:
\"
NOT_PREEMPTABLE
\"
},
\"
priorityLevel
\"
:1},
\"
sessionAmbr
\"
:{
\"
uplink
\"
:
\"
1000Mbps
\"
,
\"
downlink
\"
:
\"
1000Mbps
\"
},
\"
staticIpAddress
\"
:[{
\"
ipv4Addr
\"
:
\"
12.1.1.4
\"
}]}}'
);
-- --------------------------------------------------------
--
...
...
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