S-NSSAI Slicing Simulator
Provision slices, drive UE load, and watch the shared 5G RAN schedule 273 PRBs (100 MHz · 30 kHz SCS) across them in real time. Then flood eMBB and see exactly why slice isolation exists — URLLC's latency SLA survives only when its resources are guaranteed.
Provisioned slices
Resource policy
5G Core Network (Open5GS)
Deploy and configure 5G Service Based Architecture (SBA) network functions
Understand the 5G Service Based Architecture and verify all Open5GS network functions are operational.
3GPP 5G Core Architecture
The 5G Core uses a Service Based Architecture (SBA) where Network Functions communicate via HTTP/2 APIs. Key NFs include: AMF (Access & Mobility), SMF (Session Management), UPF (User Plane), NRF (Repository), AUSF (Authentication), UDM (Data Management), UDR (Data Repository), PCF (Policy Control), and NSSF (Slice Selection).
systemctl status open5gs-*curl /* SECURITY: Removed Direct IP:port connection */journalctl -u open5gs-amfd -fConfigure the Access and Mobility Management Function (AMF) with PLMN identity and supported slices per 3GPP TS 23.501.
AMF Role in 5G
The AMF handles: UE Registration, Connection Management, Mobility Management, Access Authentication via AUSF, Security context management, and Slice Selection (NSSF interaction). It communicates with gNB via N2 (NGAP) and with UE via NAS over N1.
sudo nano /etc/open5gs/amf.yamlsudo systemctl restart open5gs-amfdConfigure Session Management Function (SMF) and User Plane Function (UPF) for PDU session establishment and IP allocation.
SMF & UPF Functions
SMF: PDU session management, IP allocation (DHCP/static), QoS flow handling, UPF selection, policy enforcement (via PCF).
UPF: Packet routing & forwarding, QoS handling, traffic measurement, uplink classifier, GTP-U tunneling to gNB.
Provision subscribers in the Unified Data Repository with IMSI, security credentials, and slice access permissions.
5G Subscriber Identity
SUPI (IMSI): 15-digit permanent identifier (MCC+MNC+MSIN).
Security: K (permanent key), OPc (derived operator key) for AKA authentication.
Slice Access: Subscribers are authorized for specific S-NSSAIs in their subscription data.
5G RAN - gNodeB (UERANSIM)
Configure and deploy 5G NR base station with NGAP and slice support
Configure UERANSIM gNB with cell identity, TAC, PLMN, and supported slices matching the core network.
5G gNodeB Architecture
The gNB implements 5G NR radio interface (Uu) and connects to 5G Core via N2 (NGAP to AMF) and N3 (GTP-U to UPF). Key parameters: NR Cell ID (36 bits), TAC (Tracking Area Code), PLMN, and supported S-NSSAIs for slice-aware operation.
Start gNB and establish N2 (NGAP) connection to the AMF. Verify NG Setup procedure and slice configuration.
NGAP Protocol (3GPP TS 38.413)
NG Setup: gNB registers with AMF, exchanges supported TACs, PLMNs, and slices.
Messages: NG SETUP REQUEST/RESPONSE, Initial UE Message, PDU Session Resource Setup, Handover procedures. NGAP runs over SCTP on port 38412.
Understand NR cell identity structure, PCI planning, and frequency configuration per 3GPP TS 38.104.
NR Cell Identity
NCI (36 bits): gNB ID (22-32 bits) + Cell ID (4-14 bits).
PCI: Physical Cell ID (0-1007) = PSS (0-2) × 168 + SSS (0-167).
NR-ARFCN: Frequency channel number, e.g., n78 band: 620000-653333 (3.3-3.8 GHz).
5G UE - User Equipment (UERANSIM)
Simulate 5G devices with registration, authentication, and PDU sessions
Configure UE with IMSI, security keys (K, OPc), and requested S-NSSAI for slice access.
5G UE Identity & Security
SUPI: Subscription Permanent Identifier (IMSI format).
SUCI: Subscription Concealed Identifier (encrypted SUPI for privacy).
5G-GUTI: Temporary ID assigned by AMF after registration.
AKA: K + RAND → AUTN, RES*, KAUSF, KSEAF, KAMF chain.
Execute UE registration and trace the complete 5G-AKA authentication flow per 3GPP TS 23.502.
5G Registration Flow
1. UE → AMF: Registration Request (SUCI, Requested NSSAI)
2. AMF → AUSF → UDM: Authentication (5G-AKA)
3. AMF → NSSF: Slice Selection
4. AMF: Security Mode Command
5. AMF → UE: Registration Accept (5G-GUTI, Allowed NSSAI)
Establish PDU session for data connectivity and verify IP assignment and GTP tunnel creation.
PDU Session Types
IPv4/IPv6: Standard IP connectivity.
Ethernet: Layer 2 tunnel for enterprise/IIoT.
Unstructured: Raw packet forwarding.
Each PDU Session is associated with a specific S-NSSAI (slice) and DNN (APN equivalent).
5G Network Slicing (S-NSSAI)
Deploy eMBB, URLLC, and mMTC slices with traffic isolation and QoS differentiation
Understand S-NSSAI structure and configure NSSF for slice selection per 3GPP TS 23.501.
S-NSSAI Structure (3GPP TS 23.501)
SST (8 bits): Slice/Service Type - defines slice behavior.
• SST=1: eMBB (Enhanced Mobile Broadband)
• SST=2: URLLC (Ultra-Reliable Low Latency)
• SST=3: mMTC (Massive Machine Type Comm)
• SST=4: V2X (Vehicle-to-Everything)
SD (24 bits): Slice Differentiator - operator-defined subdivision.
Deploy enhanced Mobile Broadband slice for high-throughput applications like 4K video and gaming.
eMBB Characteristics
Target: 100 Mbps - 20 Gbps throughput.
Latency: 4-10ms acceptable.
Use Cases: Video streaming, AR/VR, cloud gaming, large file transfers.
5QI: Typically 5QI=9 (non-GBR, best effort) or 5QI=5 (IMS signaling).
Deploy Ultra-Reliable Low Latency slice for mission-critical applications with sub-millisecond requirements.
URLLC Characteristics
Latency: <1ms end-to-end (target 0.5ms).
Reliability: 99.9999% (6 nines).
Use Cases: Industrial automation, remote surgery, autonomous vehicles.
5QI: 82 (delay-critical GBR), 83, 84, 85 for specific URLLC scenarios.
Deploy massive Machine Type Communication slice for IoT devices with power-efficient small data transmission.
mMTC Characteristics
Density: 1 million devices per km².
Power: 10+ year battery life.
Use Cases: Smart meters, environmental sensors, asset tracking.
5QI: 79 (non-GBR, delay tolerant), small infrequent data bursts.
Run multiple UEs on different slices simultaneously and verify traffic isolation between slices.
Slice Isolation
Network slices must be isolated at multiple levels:
• Control Plane: Separate AMF/SMF instances per slice (optional).
• User Plane: Dedicated UPF or IP pools per slice.
• QoS: Different 5QI and ARP priorities per slice.
Verify isolation using separate IP pools and traffic monitoring.