From 820b0356c81c02ad1b68abc9ce221aaef0986ccc Mon Sep 17 00:00:00 2001
From: Carlos Antonio De Lima Filho <carlos.lima.106@ufrn.edu.br>
Date: Wed, 27 Nov 2024 00:12:01 +0000
Subject: [PATCH] Update README.md

---
 .../README.md                                 | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/openairinterface5g/openairinterface-install-scripts/README.md b/openairinterface5g/openairinterface-install-scripts/README.md
index 281e05ae..1050c527 100644
--- a/openairinterface5g/openairinterface-install-scripts/README.md
+++ b/openairinterface5g/openairinterface-install-scripts/README.md
@@ -274,6 +274,50 @@ You should find a virtual interface (demo-oai) (as shown in figure below). This
 
 > sudo ip netns exec oai-ue1 iptables -P FORWARD ACCEPT
 
+**Step 11:** Configure the IMSI, Permanent Key and OPC
+
+This part you will configure the UE parameters. The UE parameters file is /home/dco1020/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf. The first three lines of the file are composed by the IMSI, Permanent Key and OPC, as shown in figure below. You will configure these parameters. 
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/ue_parameters.png) 
+
+You need to check in the docker-compose file (/home/dco1020/oai-cn5g-fed/docker-compose/database/oai_db2.sql) which SQL file the core is using. See figure below. 
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/db_file.png)  
+
+Verify/change the parameters in UE file (/home/dco1020/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf) according to the SQL file illustrated in figure below. The parameters are:
+ - "ueid" refers to "imsi"
+ - "encPermanentKey" refers to "key"
+ - "encOpcKey" refers to "opc
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/demo_oai.png)  
+
+To open UE file, type:
+
+gedit /home/dco1020/openairinterface5g/targets/PROJECTS/GENERIC-NR-5GC/CONF/ue.conf
+
+To open Docker Composer file, type:
+
+gedit /home/dco1020/oai-cn5g-fed/docker-compose/docker-compose-slicing-basic-nrf.yaml
+
+To see sqlFile, type in a terninal.
+
+gedit /home/dco1020/oai-cn5g-fed/docker-compose/database/oai_db2.sql
+
+Or use a SQLLite database visualizer like DB Browser (to install: sudo apt install sqlitebrowser -y).
+
+The last three lines of the file are composed of DNN (Data Network Name), N-SSAI SST (Network Slice Selection Assistance Information Slice/Service Type), N-SSAI SD (Network Slice Selection Assistance Information Slice/Service Type). To configure these parameters you will explore the docker-compose file (/home/dco1020/oai-cn5g-fed/docker-compose/docker-compose-basic-nrf.yaml), shown in figure below.
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/demo_oai.png)  
+
+The UE parameters (figure below) must be equal to the OAI SMF parameters in the docker-compose file, as illustrated in the figure below.
+ - "DNN_NI0" refers to "dnn"
+ - "NSSAI_SST0" refers to "nssai_sst"
+ - "NSSAI_SD0" refers to "nssai_sd" (the "NSSAI_SD0" parameter is in hexadecimal, but in the "nssai_sd" parameter you have to use decimal values) 
+
+![ALT](/openairinterface5g/openairinterface-conf/fig/UE_config_04.png)  
+
+**Note:** In this version of the tutorial, the network slice is limited a just one slice (DNN=oai), because we do not use the NSSF (Network Slice Selection Function).
+
 ## UE 2 Configurations
 
 ## Objectives
-- 
GitLab