Consider simulating a LoRaWAN network with 1,000 nodes. Calculate simulation time vs real-time requirements:
Simulation approach (NS-3, abstract event model):
For 1 day of network activity: 1000 nodes × 24 packets/day = 24,000 total packets
Assuming NS-3 processes ~1,000,000 events/sec on modern hardware, and each packet generates ~100 simulation events (TX/RX/MAC/routing):
\[t_{sim} = \frac{N_{packets} \times E_{packet}}{R_{events}} = \frac{24,000 \text{ packets} \times 100 \text{ events/packet}}{10^6 \text{ events/sec}} = 2.4 \text{ sec}\]
For 1 month (30 days) of network behavior: \(2.4 \text{ sec} \times 30 = 72 \text{ sec} \approx 1.2 \text{ minutes}\) of simulation.
Emulation approach (Cooja, real firmware): \[t_{emu} = t_{real} = 30 \text{ days} \times 86400 \text{ sec/day} = 2,592,000 \text{ sec} = 30 \text{ days}\]
Speedup ratio: \(\frac{2,592,000 \text{ sec}}{72 \text{ sec}} = 36,000\times\) faster with simulation.
Trade-off: Simulation is 36,000× faster but uses abstract radio models. Emulation is real-time but validates actual firmware behavior. For 1,000-node design exploration, simulation wins. For 10-node firmware validation, emulation provides exact behavior testing.