CLAPS: A Cross-Layer Analysis Platform for P2P video Streaming