Fetch your router's system log, display it on screen like tail -f and save daily logs when you run this program. Keep track of when your internet connection went down.