add a extra function to get network traffic statistics