Birthday protocols for low energy deployment and flexible neighbor discovery in ad hoc wireless networks