Firefly-inspired heartbeat synchronization in overlay networks