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
1
Merge Requests
1
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-RAN
Commits
0700d5d0
Commit
0700d5d0
authored
Jun 14, 2022
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 5G SA end-to-end, step-by-step, tutorials for OAI CN5G, OAI gNB and COTS UE
parent
50916825
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
39 deletions
+107
-39
doc/NR_SA_CN5G_gNB_B210_COTS_UE_Tutorial.md
doc/NR_SA_CN5G_gNB_B210_COTS_UE_Tutorial.md
+9
-5
doc/NR_SA_CN5G_gNB_N300_COTS_UE_Tutorial.md
doc/NR_SA_CN5G_gNB_N300_COTS_UE_Tutorial.md
+9
-5
doc/tutorial_resources/docker-compose-basic-nrf.yaml
doc/tutorial_resources/docker-compose-basic-nrf.yaml
+70
-26
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 @
0700d5d0
...
...
@@ -86,6 +86,7 @@ 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
...
...
@@ -95,7 +96,9 @@ 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
...
...
@@ -105,16 +108,17 @@ 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 +179,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 @
0700d5d0
...
...
@@ -87,6 +87,7 @@ 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
...
...
@@ -96,7 +97,9 @@ 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
...
...
@@ -106,16 +109,17 @@ 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 +197,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 @
0700d5d0
This diff is collapsed.
Click to expand it.
doc/tutorial_resources/oai_db.sql
View file @
0700d5d0
...
...
@@ -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