Client-server versus P2P networks