A delay-based aggregate rate control for P2P streaming systems