Magma India Documentation
Magma AGW Helm Deploy
Magma 4G Virtual Labs
Magma Services 5G
5G Virtual Lab
5G Core
OAI 5G Core
FREE5GC 5G Core
OPEN5GS 5G Core
MAGMA 5G Core SA
Help
Magma India Documentation
»
Magma India Documentation!
Edit on GitHub
Magma India Documentation!
¶
Magma AGW Helm Deploy
Install AGW Helm
Install Access Gateway on Ubuntu (Bare Metal)
Prerequisites
Deployment
1. Docker
2. Create a K8s Cluster
3. Deploy AGW
Magma 4G Virtual Labs
Installation
Installation of Orchestrator with one IP instead of five
Install Dependant Collections
Setup Ansible (Ubuntu 20.04 LTS Setup):
Copy your public SSH key to the host:
Create a new user:
Installation of Access Gateway
Install Access Gateway on Ubuntu (Bare Metal)
Prerequisites
Deployment
1. Create boot USB stick and install Ubuntu on your AGW host
2. Deploy magma on the AGW_HOST
Run AGW installation
Post Install Check
Installation of srsRAN
Prerequisites
Preparing Magma for UE traffic in Your NMS
Add Your SSH Public Key to the srsRAN VM for Ansible
Update hosts, bind_ip, mme address in hosts.yml file
Deploy srsRAN
Verify setup
Architecture
Lab Architecture
Infra Architecture
Modules
1. PGW ( PDN Gateway )
2. SGW ( Serving Gateway )
3. MME ( Mobility Management Entity )
4. HSS ( Home Subscriber Server)
5. eNodeB
6. UE ( User Equipment )
7. SGi
8. S11
9. ITTI
10. S6a
11. S1-AP
12. S1
13. Gtpv1-u
14. Gtpv2-c
14. srsRAN
Magma Services
Magma Services
About Services
1. SCTPd
2. MME
3. Enodebd
4. Magmad
5. DNSd
6. SubscriberDB
7. Mobilityd
8. Directoryd
9. Sessiond
10. PolicyDB
11. DPId
12. Pipelined
13. Events
14. SMSd
15. Ctraced
16. Health checker
17. Control proxy
18. Header enrichment
Dynamic services
1. Monitord
2. Td-agent-bit
Datapath
Magma Services 5G
Magma has 3 major components:
About Services
1.
Control proxy
2.
Accessd
3.
SctpD
4.
SmsD
5.
Policydb
6.
SessionD
7. MagmaD
8. DNSd
9. Health checker
10. EnodebD
11. MonitorD
12. RedirectD
13. ConntrackD
14. Td-agent-bit
15. EventD
16. CtraceD
17. PipelineD
18. DpiD
19. Subscriberdb
20. DirectoryD
21. MobilityD
Other components:
OVS
srsRAN
5G Virtual Lab
Installation
Installation of Open5gs
Install Open5GS
Setup Open5GS
NAT Port Forwarding
Access Open5gs Dashboard
Installation of UERANSIM
Install UERANSIM
Setup gNB
Setup UE
Architecture
5G Lab Architecture
Modules
AMF
SMF
UPF
UDR
PCF
NSSF
NRF
AUSF
UDM
SBI
NGAP
Interface
N2
N3
N4
N6
N7
N10
N11
N12
N13
5G Core
AMF
Access and Mobility Management Function
Overview
AMF Vs MME
Functions
NR Interface
N1/N2
N8
N11
N12
N14
N15
N17
N22
N26
NR Call Flow
RRC Connection
Initial NAS message + Obtain UE context from old AMF
NAS Identification
NAS Authentication
NAS Security
Retrieving Subscription data
Deregistration
Setup User Plane
AS Security and RRC Reconfiguration
UL and DL data transfer
UPF
User Plane Function
Overview
User Plane Setup
Initial User Plane Setup
First UL/DL Data Transfer
Modification of the ongoing sessions
SMF
Session Management Function
Overview
Session Configuration
User Plane Setup
Session Establishment
Session Modification
Deactivation of Session
OAI 5G Core
AMF
Access and Mobility Management Function [1]
Interface
N1 [2]
N2 [3]
N8
N11 [4]
N12
N22
SBI [8]
Protocols
NAS [5]
NGAP [6]
SCTP [7]
ITTI Message [9]
Call Flow
Registration and Deregistration
Authentication and Authorization
User Plane Setup
Context Setup and Session Modification
Handover Procedure
AUSF
Authentication Server Function [1]
Authentication Procedure
Sending Temporary Identifier
Retrieving Authentication Parameters
Deriving Keys
SMF
Session Management Function [1]
Interface
N1 [6]
N2 [7]
N4 [8]
N11
N10
SBI [9]
Protocols
NAS [2]
NGAP [3]
PFCP [4]
UDP [5]
ITTI Message [10]
Call Flow
Session Establishment
Session Modification
Session Release
Handover Handling
UDM & UDR
Unified Data Management and Unified Data Repository
UDM [1]
UDR [2]
Data Management
Register Context
Deregistration of functions
FREE5GC 5G Core
AMF
Access and Mobility Management Function [1]
Protocols
NAS [2]
NGAP [3]
SBI [4]
Call Flow
Registration
Deregistration
Authorization & Authentication
PDU Session Establishment/ Modification
Registration with AMF Re-allocation
Xn-based Inter NG-RAN Handover
Inter NG RAN Node N2-based Handover
Configuration Update
SMF
Session Management Function [1]
Protocols
PFCP [2]
UDP [3]
SBI(Service-based Interface) [4]
Call Flow
Session Establishment
Session Modification
Session Release
Addition of additional PSA and BP or UL CL
Handover Procedure
UPF
User Plane Function [1]
Protocols
PFCP [2]
GTP-U [3]
Call Flow
OPEN5GS 5G Core
AMF
Access and Mobility Management Function [0]
Interface
N1
N2
N8
N11
N12
N22
SBI
Protocols
NAS [9]
NGAP [12] [13]
SCTP [15]
Call Flow
Registration and Deregistration
Mobility Management
Authentication
Context Setup and Session Modification
AMF Timer
SMF
Session Management Function [0]
Interface & Protocols
N4 [11]
PFCP [24]
NAS [15]
NGAP [16] [18]
SBI(Service-based Interface) [25]
Call Flow
Session Establishment
Session Modification
Session Deletion
Handover Procedure
UPF
User Plane Function [0]
Interface & Protocols
N4 [5]
PFCP [7]
GTP [3]
Call Flow
Session Establishment & UPF Initialisation
Session Modification
Session Deletion
MAGMA 5G Core SA
AccessD
AccessD Service [1]
Protocols
NAS [2]
NGAP [3]
Call Flow
Registration with SUCI as Mobile Identity
Registration with GUTI as Mobile Identity
PDU Session Establishment
PDU Session Modification
Service Request
UE-Initiated Session Release
UE-Initiated Deregistration
IDLE Mode and Paging
SessionD
Magma SessionD Service [0]
SessionD’s Interface with other Services
SessionD <——> AccessD
SessionD <——> PipelineD
SessionD <——> PolicyDB
Architecture of SessionD
Call Flow
PDU Session Establishment
Session Release/Termination
Paging Request
PipelineD
Magma PipelineD Service [0]
Interface of PipelineD with Other Services:
sessionD ←→pipelineD
OVS←→pipelineD
directoryD ←→pipelineD
mobilityD ←→pipelineD
Architecture of PipelineD
Call Flow
1. Session Establishment
2. Session Modification
3. Session Termination
4. Paging Procedure
Help