add function to show the packet loss