Skip to content

Commit

Permalink
Merge branch 'master' of github.com:/eduardoschulz/Interoperabilidade
Browse files Browse the repository at this point in the history
  • Loading branch information
gckopper committed Mar 21, 2024
2 parents 45f79fd + ca10113 commit abd05bb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
Expand Down
23 changes: 21 additions & 2 deletions docs/core-network/oaicn.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ mv docker-compose-basic-nrf.yaml ~/oai-cn5g-fed/docker-compose/
You also must configure a route to the internal docker network so that the gNB can make a connection.

```shell
sudo ip route add route 192.168.70.128/26 via {ip_addr_corehost} dev {interface}
sudo ip route add 192.168.70.128/26 via {ip_addr_corehost} dev {interface}

#example
sudo ip route add route 192.168.70.128/26 via 191.4.205.38 dev br01
sudo ip route add 192.168.70.128/26 via 191.4.205.38 dev br01
```

## 2.0 Deploying the Core Network
Expand All @@ -48,6 +48,25 @@ python3 core-networks.py --type start-basic --scenario 1
python3 core-networks.py --type stop-basic --scenario 1
```

### 2.1 Adding UE to Core Database
```shell

docker exec -it mysql bash
mysql -u root -p

password: linux
```

```SQL
use oai_db;
INSERT INTO `AuthenticationSubscription` (`ueid`, `authenticationMethod`, `encPermanentKey`, `protectionParameterId`, `sequenceNumber`, `authenticationManagementField`, `algorithmId`, `encOpcKey`, `encTopcKey`, `vectorGenerationInHss`, `n5gcAuthMethod`, `rgAuthenticationInd`, `supi`) VALUES
('001010123456789', '5G_AKA', '41B7157E3337F0ADD8DA89210D89E17F', '41B7157E3337F0ADD8DA89210D89E17F', '{\"sqn\": \"000000000020\", \"sqnScheme\": \"NON_TIME_BASED\", \"lastIndexes\": {\"ausf\": 0}}', '8000', 'milenage', '1CD638FC96E02EBD35AA0D41EB6F812F', NULL, NULL, NULL, NULL, '001010123456789');

INSERT INTO `SessionManagementSubscriptionData` (`ueid`, `servingPlmnid`, `singleNssai`, `dnnConfigurations`) VALUES
('001010123456789', '00101', '{\"sst\": 222, \"sd\": \"123\"}','{\"default\":{\"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\"}]}}');
```
**The configuration above is only going to last until the core is restarted**. If you want to make this static you must make changes on the db files inside path/oaicn/docker-compose/databases/.

## 3.0 More Information

[Basic Deployment using Docker Compose](https://gitlab.eurecom.fr/oai/cn5g/oai-cn5g-fed/-/blob/master/docs/DEPLOY_SA5G_BASIC_DEPLOYMENT.md)

0 comments on commit abd05bb

Please sign in to comment.