How ashish7889/end-to-end-5g-core-management works
This is a 5G Core management prototype: independent FastAPI services implement network-function discovery, subscriber authentication and UE registration, plus PDU-session setup across slice selection, policy lookup and user-plane tunnel creation. Management APIs expose overview and advanced observability endpoints; a frontend dashboard is present, though its wiring to those APIs is not established by the evidence shown. Shared configuration and database utilities underpin the backend. Several service capabilities are identified by the README or source index, but unsampled implementation details and inter-service links are omitted where not supported.
Main entry points: management/main.py Management API · clients.py Core service clients · db.py Database · udm_ausf/main.py UDM/AUSF API
Components 24
Shared backend
- Configuration
backend/common/config.py - Database
backend/common/db.py
Subscriber access
- AMF API
backend/amf/main.py - UE registration routes
backend/amf/routers/ue.py - UE auth client
backend/amf/services/auth.py - UDM/AUSF API
backend/udm_ausf/main.py - Authentication routes
backend/udm_ausf/routers/auth.py - Subscriber data
backend/udm_ausf/crud/subscriber.py
Function discovery
- NRF API
backend/nrf/main.py - NF registry routes
backend/nrf/routers/nf.py - NF registry data
backend/nrf/crud/nf.py
Session control
- SMF API
backend/smf/main.py - PDU session routes
backend/smf/routers/session.py - Session orchestration
backend/smf/services/manager.py - Core service clients
backend/smf/services/clients.py - Slice selection
backend/nssf/routers/slice.py - Policy control
backend/pcf/routers/policy.py - User-plane tunnels
backend/upf/routers/session.py
Management and UI
- Management API
backend/management/main.py - Overview endpoints
backend/management/routers/overview.py - Advanced observability
backend/management/routers/advanced.py - Management clients
backend/management/services/clients.py - Dashboard frontend
frontend/static/app.js
Other components
- Operator
Connections 25
- Operator → NRF API: registers and discovers
README.md - NRF API → NF registry routes: routes to
backend/nrf/main.py - NF registry routes → NF registry data: accesses registry
backend/nrf/routers/nf.py - NRF API → Database: initializes
backend/nrf/main.py - Operator → AMF API: registers UE
README.md - AMF API → UE registration routes: routes to
backend/amf/main.py - UE registration routes → UE auth client: requests authentication
backend/amf/routers/ue.py - UE auth client → UDM/AUSF API: authenticates UE
README.md - UDM/AUSF API → Authentication routes: routes to
backend/udm_ausf/main.py - Authentication routes → Subscriber data: reads and creates
backend/udm_ausf/routers/auth.py - UDM/AUSF API → Database: initializes
backend/udm_ausf/main.py - Operator → SMF API: requests sessions
- SMF API → PDU session routes: routes to
backend/smf/main.py - PDU session routes → Session orchestration: delegates orchestration
backend/smf/routers/session.py - Session orchestration → Core service clients: calls service clients
backend/smf/services/manager.py - Core service clients → Slice selection: requests slice
backend/smf/services/clients.py - Core service clients → Policy control: fetches policy
backend/smf/services/clients.py - Core service clients → User-plane tunnels: sets up tunnel
backend/smf/services/clients.py - SMF API → Database: initializes
backend/smf/main.py - Operator → Management API: queries observability
- Management API → Overview endpoints: routes to
backend/management/main.py - Management API → Advanced observability: routes to
backend/management/main.py - Management API → Database: initializes
backend/management/main.py - Dashboard frontend → Management API: uses API
- Management clients → Configuration: reads settings
backend/management/services/clients.py