P2P framework