PeerSwap: A Peer-Sampler with Randomness Guarantees
The ability of a peer-to-peer (P2P) system to effectively host decentralized applications often relies on the availability of a peer-sampling service, which provides each participant with a random sample of other peers. Despite the practical effectiveness of existing peer samplers, their ability to produce random samples within a reasonable time frame remains poorly understood from a theoretical standpoint. This paper contributes to bridging this gap by introducing PeerSwap, a peer-sampling protocol with provable randomness guarantees. We establish execution time bounds for PeerSwap, demonstrating its ability to scale effectively with the network size. We prove that PEERSWAP maintains the fixed structure of the communication graph while allowing sequential peer position swaps within this graph. We do so by showing that PEERSWAP is a specific instance of an interchange process, a renowned model for particle movement analysis. Leveraging this mapping, we derive execution time bounds, expressed as a function of the network size n. Depending on the network structure, this time can be as low as a polylogarithmic function of n, highlighting the efficiency of PEERSWAP. We implement PeerSwap and conduct numerical evaluations using regular graphs with varying connectivity and containing up to 32 768 (2^15) peers. Our evaluation demonstrates that PeerSwap quickly provides peers with uniform random samples of other peers.
peerswap_cr.pdf
main document
openaccess
CC BY
605.97 KB
Adobe PDF
60da9e12fe5b6382b974598eef0b7a92