Rearranging segments of a data stream to be transmitted for optimizing a response time of a receiver