Proactive Traffic Sampling with Dynamic Flow Rates in Software-Defined Networks