Analytical Framework to Measure Robustness of Peer-to-Peer Networks -- Design and