calculates and displays lost packets