Cross-Layer P2P Traffic Engineering In Content-Based Networks