# tossi-foundation/ocudu-ran architecture

> Architecture diagram of the GitHub repository tossi-foundation/ocudu-ran, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tossi-foundation/ocudu-ran
- Repository: https://github.com/tossi-foundation/ocudu-ran

## Overview

OCUDU is an integrated telecom ecosystem centered on an end-to-end RAN stack. The principal operational path is configuring and starting a CU, DU, or gNB application, then processing radio and UE activity through control-plane, MAC/scheduler, and radio-unit components. The map also includes sampled security, metrics, execution, and O-RAN E2 capabilities. Some application wiring and unsampled subsystems are shown only as unverified links; the README describes accelerator and FAPI-split work on separate branches, not as confirmed implementations in this checkout.

Main entry points: [`apps/gnb/gnb.cpp`](https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/gnb/gnb.cpp) (RAN applications), [`lib/mac/mac_ctrl/mac_controller.cpp`](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/mac/mac_ctrl/mac_controller.cpp) (MAC control), [`lib/scheduler/ue_scheduling/ue_event_manager.cpp`](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/scheduler/ue_scheduling/ue_event_manager.cpp) (UE scheduling events), [`apps/services/worker_manager/worker_manager.cpp`](https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/services/worker_manager/worker_manager.cpp) (Worker management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Applications and configuration"]
  node_app_entry["RAN applications<br/>[gnb.cpp]"]
  node_app_config["Application config"]
end

subgraph group_control["RAN control plane"]
  node_cu_cp["CU control plane"]
  node_mobility["Mobility measurements"]
  node_cu_up["CU user plane"]
  node_e2_subscriptions["E2 subscriptions"]
end

subgraph group_radio["Radio and scheduling"]
  node_du_mac["MAC control<br/>[mac_controller.cpp]"]
  node_scheduler_events["UE scheduling events"]
  node_harq["HARQ management"]
  node_ru_sdr["SDR radio control"]
  node_prach["PRACH contexts"]
end

subgraph group_services["Runtime services"]
  node_worker_manager["Worker management<br/>[worker_manager.cpp]"]
  node_task_execution["Task execution"]
  node_du_clock["DU timing"]
end

subgraph group_foundation["Shared foundations"]
  node_integrity["Integrity protection"]
  node_security_api["Security interface<br/>[security_engine.h]"]
  node_protocol_types["Protocol and data types"]
  node_websocket["WebSocket support<br/>[App.h]"]
  node_fmt["Formatting support"]
  node_harq_api["HARQ declarations"]
end

node_operator(("Operator"))

node_operator -.->|"starts"| node_app_entry
node_app_entry -.->|"configures"| node_app_config
node_app_entry -.->|"starts runtime"| node_cu_cp
node_app_entry -.->|"starts runtime"| node_cu_up
node_app_entry -.->|"starts runtime"| node_du_mac
node_cu_cp -.->|"manages measurements"| node_mobility
node_cu_up -.->|"provides RAN service"| node_e2_subscriptions
node_du_mac -.->|"dispatches UE work"| node_scheduler_events
node_scheduler_events -.->|"coordinates HARQ"| node_harq
node_ru_sdr -.->|"controls radio"| node_operator
node_worker_manager -->|"creates executors"| node_task_execution
node_worker_manager -.->|"configures timing"| node_du_clock
node_du_mac -->|"handles UE requests"| node_scheduler_events
node_integrity -->|"implements protection"| node_security_api
node_harq -->|"implements manager"| node_harq_api
node_prach -->|"uses PRACH types"| node_protocol_types
node_websocket -->|"uses formatting"| node_fmt

click node_app_entry "https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/gnb/gnb.cpp"
click node_app_config "https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/gnb/gnb_appconfig_translators.cpp"
click node_cu_cp "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/cu_cp/ue_manager/ue_manager_impl.cpp"
click node_mobility "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/cu_cp/cell_meas_manager/cell_meas_manager_impl.cpp"
click node_cu_up "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/cu_up/pdu_session_manager_impl.cpp"
click node_e2_subscriptions "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/e2/common/e2_subscription_manager_impl.cpp"
click node_du_mac "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/mac/mac_ctrl/mac_controller.cpp"
click node_scheduler_events "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/scheduler/ue_scheduling/ue_event_manager.cpp"
click node_harq "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/scheduler/cell/cell_harq_manager.cpp"
click node_ru_sdr "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/ru/sdr/ru_controller_sdr_impl.cpp"
click node_prach "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/ofh/support/prach_context_repository.h"
click node_worker_manager "https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/services/worker_manager/worker_manager.cpp"
click node_task_execution "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/support/executors/task_execution_manager.cpp"
click node_du_clock "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/du/du_high/du_high_clock_controller_factory.cpp"
click node_integrity "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/security/integrity_engine_nia2_non_cmac.cpp"
click node_security_api "https://github.com/tossi-foundation/ocudu-ran/blob/main/include/ocudu/security/security_engine.h"
click node_protocol_types "https://github.com/tossi-foundation/ocudu-ran/tree/main/include/ocudu"
click node_websocket "https://github.com/tossi-foundation/ocudu-ran/blob/main/external/uWebSockets/App.h"
click node_fmt "https://github.com/tossi-foundation/ocudu-ran/tree/main/external/fmt/include/fmt"
click node_harq_api "https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/scheduler/cell/cell_harq_manager.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_entry,node_app_config toneBlue
class node_cu_cp,node_mobility,node_cu_up,node_e2_subscriptions toneAmber
class node_du_mac,node_scheduler_events,node_harq,node_ru_sdr,node_prach toneMint
class node_worker_manager,node_task_execution,node_du_clock toneRose
class node_integrity,node_security_api,node_protocol_types,node_websocket,node_fmt,node_harq_api,node_operator toneIndigo
```

## Components

### Applications and configuration

- [RAN applications](https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/gnb/gnb.cpp): `apps/gnb/gnb.cpp`
- [Application config](https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/gnb/gnb_appconfig_translators.cpp): `apps/gnb/gnb_appconfig_translators.cpp`

### RAN control plane

- [CU control plane](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/cu_cp/ue_manager/ue_manager_impl.cpp): `lib/cu_cp/ue_manager/ue_manager_impl.cpp`
- [Mobility measurements](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/cu_cp/cell_meas_manager/cell_meas_manager_impl.cpp): `lib/cu_cp/cell_meas_manager/cell_meas_manager_impl.cpp`
- [CU user plane](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/cu_up/pdu_session_manager_impl.cpp): `lib/cu_up/pdu_session_manager_impl.cpp`
- [E2 subscriptions](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/e2/common/e2_subscription_manager_impl.cpp): `lib/e2/common/e2_subscription_manager_impl.cpp`

### Radio and scheduling

- [MAC control](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/mac/mac_ctrl/mac_controller.cpp): `lib/mac/mac_ctrl/mac_controller.cpp`
- [UE scheduling events](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/scheduler/ue_scheduling/ue_event_manager.cpp): `lib/scheduler/ue_scheduling/ue_event_manager.cpp`
- [HARQ management](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/scheduler/cell/cell_harq_manager.cpp): `lib/scheduler/cell/cell_harq_manager.cpp`
- [SDR radio control](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/ru/sdr/ru_controller_sdr_impl.cpp): `lib/ru/sdr/ru_controller_sdr_impl.cpp`
- [PRACH contexts](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/ofh/support/prach_context_repository.h): `lib/ofh/support/prach_context_repository.h`

### Runtime services

- [Worker management](https://github.com/tossi-foundation/ocudu-ran/blob/main/apps/services/worker_manager/worker_manager.cpp): `apps/services/worker_manager/worker_manager.cpp`
- [Task execution](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/support/executors/task_execution_manager.cpp): `lib/support/executors/task_execution_manager.cpp`
- [DU timing](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/du/du_high/du_high_clock_controller_factory.cpp): `lib/du/du_high/du_high_clock_controller_factory.cpp`

### Shared foundations

- [Integrity protection](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/security/integrity_engine_nia2_non_cmac.cpp): `lib/security/integrity_engine_nia2_non_cmac.cpp`
- [Security interface](https://github.com/tossi-foundation/ocudu-ran/blob/main/include/ocudu/security/security_engine.h): `include/ocudu/security/security_engine.h`
- [Protocol and data types](https://github.com/tossi-foundation/ocudu-ran/tree/main/include/ocudu): `include/ocudu`
- [WebSocket support](https://github.com/tossi-foundation/ocudu-ran/blob/main/external/uWebSockets/App.h): `external/uWebSockets/App.h`
- [Formatting support](https://github.com/tossi-foundation/ocudu-ran/tree/main/external/fmt/include/fmt): `external/fmt/include/fmt`
- [HARQ declarations](https://github.com/tossi-foundation/ocudu-ran/blob/main/lib/scheduler/cell/cell_harq_manager.h): `lib/scheduler/cell/cell_harq_manager.h`

### Other components

- **Operator**

## Connections

- Operator → RAN applications: starts
- RAN applications → Application config: configures
- RAN applications → CU control plane: starts runtime
- RAN applications → CU user plane: starts runtime
- RAN applications → MAC control: starts runtime
- CU control plane → Mobility measurements: manages measurements
- CU user plane → E2 subscriptions: provides RAN service
- MAC control → UE scheduling events: dispatches UE work
- UE scheduling events → HARQ management: coordinates HARQ
- SDR radio control → Operator: controls radio
- Worker management → Task execution: creates executors (evidence: `apps/services/worker_manager/worker_manager.cpp`)
- Worker management → DU timing: configures timing
- MAC control → UE scheduling events: handles UE requests (evidence: `lib/mac/mac_ctrl/mac_controller.cpp`)
- Integrity protection → Security interface: implements protection (evidence: `lib/security/integrity_engine_nia2_non_cmac.cpp`)
- HARQ management → HARQ declarations: implements manager (evidence: `lib/scheduler/cell/cell_harq_manager.cpp`)
- PRACH contexts → Protocol and data types: uses PRACH types (evidence: `lib/ofh/support/prach_context_repository.h`)
- WebSocket support → Formatting support: uses formatting (evidence: `external/uWebSockets/App.h`)
