Changing route based on packet loss