A novel cost-distortion optimization framework for video streaming over differentiated services networks