A deep dive into the architecture, algorithms, and real-time simulation engine powering intelligent 5G network optimization
NetPulse AI is a real-time 5G network bandwidth allocation simulator that demonstrates how AI can optimize network resources better than traditional methods. The system compares three allocation strategies simultaneously:
Generate random but realistic bandwidth demands for all 4 user types based on their characteristics
Equal-split: Divide 100 Mbps equally (25 Mbps each) regardless of demand
Weighted priority: Allocate based on demand × priority × latency sensitivity
Multi-armed bandit: Explore strategies (first 100 ticks) then exploit learned optimal
For each allocation: compute latency, throughput, packet loss, and allocation efficiency
Aggregate score using formula: (throughput×25%) + (latency×25%) + (packet_retention×15%) + (efficiency×35%)
Send complete network state to all connected clients via WebSocket
Most important metric! Measures how smartly bandwidth is allocated. Baseline wastes bandwidth (over-allocates IoT/VoIP), AI allocates optimally.
Actual data transfer rate (Mbps). Capped by min(allocation, demand). Shows how much data users can actually send/receive.
Network delay in milliseconds. Critical for gaming and VoIP. Increases with congestion and under-allocation.
Percentage of packets successfully delivered (100% - packet_loss). Affected by congestion and under-allocation.
A tick is one simulation cycle (100 milliseconds). Think of it as the heartbeat of the network - every tick, new demands are generated, allocations are made, metrics are calculated, and results are broadcast to the dashboard.