How nextgcorelab/nextgsim works
nextgsim is a pure-Rust 5G UE and gNB simulator, with optional 6G research prototypes. Its main workflow is to start a UE and gNB, register the UE through the radio link and 5G control-plane protocols, establish a session, and carry user traffic through GTP-U. The graph also preserves the documented AI/ML capabilities. Main-function excerpts support task startup and some subsystem ownership; other cross-crate links reflect README-documented protocol roles, not inspected call sites.
Main entry points: src/main.rs gNB simulator · src/main.rs UE simulator · src/lib.rs AI inference · src/lib.rs NWDAF analytics
Components 23
Simulation endpoints
- UE simulator
nextgsim-ue/src/main.rs - gNB simulator
nextgsim-gnb/src/main.rs - Node CLI
nextgsim-cli/src/main.rs
5G protocols
- NAS procedures
nextgsim-nas/src/lib.rs - NGAP procedures
nextgsim-ngap/src/lib.rs - RRC procedures
nextgsim-rrc/src/lib.rs - PDCP bearer
nextgsim-pdcp/src/lib.rs - RLC entity
nextgsim-rlc/src/lib.rs - GTP-U tunnel
nextgsim-gtp/src/lib.rs - Security algorithms
nextgsim-crypto/src/lib.rs
Radio and transport
- Radio link
nextgsim-rls/src/lib.rs - SCTP transport
nextgsim-sctp/src/lib.rs - UE data interface
nextgsim-ue/src/tun/mod.rs
6G research capabilities
- AI inference
nextgsim-ai/src/lib.rs - NWDAF analytics
nextgsim-nwdaf/src/lib.rs - Knowledge exposure
nextgsim-nkef/src/lib.rs - Edge hosting
nextgsim-she/src/lib.rs - ISAC sensing
nextgsim-isac/src/lib.rs - Federated learning
nextgsim-fl/src/lib.rs - Semantic communication
nextgsim-semantic/src/lib.rs - Agent framework
nextgsim-agent/src/lib.rs
Other components
- Operator
- 5G core
Connections 33
- Operator → UE simulator: starts
- Operator → gNB simulator: starts
- Operator → Node CLI: controls
- Node CLI → UE simulator: commands
- Node CLI → gNB simulator: commands
- UE simulator → NAS procedures: runs procedures
- UE simulator → RRC procedures: runs procedures
- gNB simulator → RRC procedures: spawns task
- gNB simulator → GTP-U tunnel: spawns task
- UE simulator → Radio link: radio traffic
- gNB simulator → Radio link: radio traffic
- UE simulator → UE data interface: reads and writes
- UE simulator → PDCP bearer: user-plane data
- gNB simulator → PDCP bearer: user-plane data
- PDCP bearer → RLC entity: passes bearer data
- gNB simulator → NGAP procedures: runs procedures
- NGAP procedures → 5G core: NG interface
- NGAP procedures → SCTP transport: uses transport
- NAS procedures → Security algorithms: security algorithms
- RRC procedures → Security algorithms: security algorithms
- gNB simulator → NWDAF analytics: optional task
- gNB simulator → Edge hosting: optional task
- gNB simulator → Agent framework: optional task
- AI inference → NWDAF analytics: supports analytics
- NWDAF analytics → Knowledge exposure: knowledge bridge
- Agent framework → NWDAF analytics: analytics integration
- gNB simulator → ISAC sensing: optional sensing
- UE simulator → Federated learning: optional participation
- gNB simulator → Federated learning: optional service
- UE simulator → Semantic communication: optional codec
- AI inference → ISAC sensing: model processing
- AI inference → Semantic communication: model inference
- Edge hosting → AI inference: hosts inference