⚡ Smart Grid Telemetry Lab

JitterRetryClient
Thundering Herd Mitigation

Simulates thousands of smart meters reconnecting after a country-wide blackout. Randomized ±25% jitter smooths 5,000 simultaneous retries into a steady ~350 req/sec feed.

Total Attempts
0
Retries Fired
0
Avg Jitter Offset
Last Outcome
⚙️ Simulation Parameters
Ready
📡 Retry Telemetry Log 0 entries
Attempt Status Exp Backoff Jitter Offset Actual Delay Reason / Note Timestamp
📡

Run a simulation to see live telemetry data.

🧮 Algorithm Reference
Step 1 exponentialDelay = baseDelay × 2attempt
Step 2 jitterOffset = exponentialDelay × 0.25 × (2 × rand() − 1)  // ±25% bounded
Step 3 rawDelay = exponentialDelay + jitterOffset
Step 4 actualDelay = clamp(rawDelay, 0, 30 000 ms)

Why jitter?  Without jitter, all 5,000 meters retry at exactly the same intervals (500ms, 1000ms, 2000ms…), creating a synchronized burst that hits the server like a new blackout. With ±25% jitter each client sleeps a slightly different duration, spreading the load from a peak of 5,000 req/s to a smooth ~350 req/s.