run commads and calculate rate and check from network