Repository navigation
Overall Flow
We have shown the implemented functionality and models for the different layers/modules. The overall information flow, happening every logical timestep, can be represented as:
In real-time mode the timestep is triggered according to period in the configuration file, typically 1 ms. In offline mode, when period is lower than zero, the same logical flow runs as fast as possible. Monitoring, text logging and dashboard output are side effects of the same loop and do not change the radio model itself.
mac_layer::step and ue_handler::step both end in thread_pool::wait_threads(), so by
the time simulator::step returns, no worker thread is running. That makes the start of
the next step a point where the whole simulation is quiescent, and it is where the
runtime control plane applies everything it has to apply:
[control thread] socket -> parse -> queue (mutex)
|
[ticker thread] simulator::step(ts) v
+-- control.tick() <-- the only writer of control state
+-- mac_l.step() [pool x8]
+-- ue_h.step() [pool xN]
The control thread never touches simulation state: it only parses and queues. Applying a
command anywhere else would race against grid_dl and grid_ul, which walk the same UE
list concurrently. See Runtime Control.