Elastic sketch: Adaptive and fast network-wide measurements