Streamline: an optimal distribution algorithm for peer-to-peer real-time streaming