network stub for p2p emulation