Latencysmasher: a software-defined networking-based framework for end-to-end latency optimization