A small Peer-to-Peer network protocol for tinyos