{"id":403,"date":"2011-10-25T10:46:32","date_gmt":"2011-10-25T18:46:32","guid":{"rendered":"http:\/\/www.tranzoa.net\/~alex\/blog\/?p=403"},"modified":"2011-10-25T10:46:32","modified_gmt":"2011-10-25T18:46:32","slug":"net-connection-monitor","status":"publish","type":"post","link":"https:\/\/www.tranzoa.net\/~alex\/blog\/?p=403","title":{"rendered":"Net Connection Monitor"},"content":{"rendered":"<p>The net connection here was getting pretty flaky. Down for chunks of time in the night, day and in between.<\/p>\n<p>Since our connection&#8217;s gears are hidden beneath a couple layers of organizations, it&#8217;s been frustrating to deal with the outages. It feels like Qwest \/ Century Link&#8217;s problem &#8211; the telling from the second hand says they say that there is only 1 wire-pair in to the house, so they probably are not wholly on top of things. But who knows?<\/p>\n<p>So I wrote a <a href=\"https:\/\/www.tranzoa.net\/tzpython\/ping_mon.py\">little script<\/a> to ping every 10 seconds an address randomly chosen from:<\/p>\n<ul>\n<li>the outside gateway<\/li>\n<li>the <a href=\"http:\/\/www.speakeasy.net\/speedtest\/\">Speakeasy\/Megapath<\/a> DNS server<\/li>\n<li>Google&#8217;s DNS server<\/li>\n<\/ul>\n<p>The <a href=\"https:\/\/www.tranzoa.net\/tzpython\/ping_mon.py\">script<\/a> prints the exit value from the &#8220;ping&#8221; program (1 is bad) and the duration the pinging has been bad when a good ping follows any bad one.<\/p>\n<p>Here is a day of activity:<\/p>\n<pre>\r\n1   8.8.8.8         Sat Oct 22 00:02:11 2011\r\n0   72.1.134.1      Sat Oct 22 00:02:33 2011 00:00:22\r\n1   66.93.87.2      Sat Oct 22 00:30:48 2011\r\n0   72.1.134.1      Sat Oct 22 00:30:59 2011 00:00:11\r\n1   8.8.8.8         Sat Oct 22 00:31:11 2011\r\n0   8.8.8.8         Sat Oct 22 00:31:44 2011 00:00:32\r\n1   66.93.87.2      Sat Oct 22 01:27:28 2011\r\n0   8.8.8.8         Sat Oct 22 01:27:39 2011 00:00:10\r\n1   8.8.8.8         Sat Oct 22 01:27:51 2011\r\n0   66.93.87.2      Sat Oct 22 01:28:02 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 01:32:49 2011\r\n0   66.93.87.2      Sat Oct 22 01:32:59 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 02:03:45 2011\r\n0   8.8.8.8         Sat Oct 22 02:04:39 2011 00:00:54\r\n1   72.1.134.1      Sat Oct 22 02:14:32 2011\r\n0   72.1.134.1      Sat Oct 22 02:14:42 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 02:21:29 2011\r\n0   72.1.134.1      Sat Oct 22 02:21:50 2011 00:00:21\r\n1   66.93.87.2      Sat Oct 22 02:33:26 2011\r\n0   66.93.87.2      Sat Oct 22 02:33:36 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 02:45:24 2011\r\n0   8.8.8.8         Sat Oct 22 02:45:34 2011 00:00:10\r\n1   72.1.134.1      Sat Oct 22 02:57:01 2011\r\n0   8.8.8.8         Sat Oct 22 02:57:23 2011 00:00:21\r\n1   8.8.8.8         Sat Oct 22 03:28:36 2011\r\n0   72.1.134.1      Sat Oct 22 03:29:09 2011 00:00:32\r\n1   8.8.8.8         Sat Oct 22 03:32:55 2011\r\n0   66.93.87.2      Sat Oct 22 03:33:06 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 04:27:07 2011\r\n0   72.1.134.1      Sat Oct 22 04:27:28 2011 00:00:21\r\n1   66.93.87.2      Sat Oct 22 04:32:22 2011\r\n0   66.93.87.2      Sat Oct 22 04:32:43 2011 00:00:21\r\n1   72.1.134.1      Sat Oct 22 04:44:21 2011\r\n0   66.93.87.2      Sat Oct 22 04:44:31 2011 00:00:10\r\n1   8.8.8.8         Sat Oct 22 04:56:09 2011\r\n0   8.8.8.8         Sat Oct 22 04:56:19 2011 00:00:10\r\n1   8.8.8.8         Sat Oct 22 05:19:54 2011\r\n0   8.8.8.8         Sat Oct 22 05:20:04 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 05:31:40 2011\r\n0   72.1.134.1      Sat Oct 22 05:32:01 2011 00:00:21\r\n1   66.93.87.2      Sat Oct 22 06:18:38 2011\r\n0   66.93.87.2      Sat Oct 22 06:19:11 2011 00:00:32\r\n1   66.93.87.2      Sat Oct 22 06:19:23 2011\r\n0   72.1.134.1      Sat Oct 22 06:19:34 2011 00:00:10\r\n1   72.1.134.1      Sat Oct 22 06:19:46 2011\r\n0   72.1.134.1      Sat Oct 22 06:19:56 2011 00:00:10\r\n1   72.1.134.1      Sat Oct 22 06:54:21 2011\r\n0   8.8.8.8         Sat Oct 22 06:54:32 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 06:56:35 2011\r\n0   66.93.87.2      Sat Oct 22 06:56:46 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 07:17:56 2011\r\n0   8.8.8.8         Sat Oct 22 07:18:06 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 07:53:16 2011\r\n0   66.93.87.2      Sat Oct 22 07:53:26 2011 00:00:10\r\n1   72.1.134.1      Sat Oct 22 07:53:38 2011\r\n0   66.93.87.2      Sat Oct 22 07:53:48 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 08:16:52 2011\r\n0   66.93.87.2      Sat Oct 22 08:17:02 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 08:40:22 2011\r\n0   66.93.87.2      Sat Oct 22 08:40:44 2011 00:00:21\r\n1   8.8.8.8         Sat Oct 22 09:54:46 2011\r\n0   66.93.87.2      Sat Oct 22 09:54:57 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 09:56:30 2011\r\n0   66.93.87.2      Sat Oct 22 09:56:52 2011 00:00:21\r\n1   8.8.8.8         Sat Oct 22 11:54:25 2011\r\n0   66.93.87.2      Sat Oct 22 11:54:46 2011 00:00:21\r\n1   72.1.134.1      Sat Oct 22 11:56:32 2011\r\n0   66.93.87.2      Sat Oct 22 11:57:15 2011 00:00:43\r\n1   8.8.8.8         Sat Oct 22 12:05:20 2011\r\n0   8.8.8.8         Sat Oct 22 12:05:41 2011 00:00:21\r\n1   8.8.8.8         Sat Oct 22 12:40:48 2011\r\n0   72.1.134.1      Sat Oct 22 12:40:58 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 12:52:24 2011\r\n0   72.1.134.1      Sat Oct 22 12:52:35 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 12:57:20 2011\r\n0   72.1.134.1      Sat Oct 22 12:57:41 2011 00:00:21\r\n1   72.1.134.1      Sat Oct 22 14:23:30 2011\r\n0   66.93.87.2      Sat Oct 22 14:24:02 2011 00:00:32\r\n1   72.1.134.1      Sat Oct 22 19:32:21 2011\r\n0   8.8.8.8         Sat Oct 22 19:32:32 2011 00:00:10\r\n1   66.93.87.2      Sat Oct 22 21:39:20 2011\r\n0   66.93.87.2      Sat Oct 22 21:39:30 2011 00:00:10\r\n1   8.8.8.8         Sat Oct 22 21:53:51 2011\r\n0   72.1.134.1      Sat Oct 22 21:54:13 2011 00:00:21\r\n1   8.8.8.8         Sat Oct 22 21:54:36 2011\r\n0   72.1.134.1      Sat Oct 22 21:54:57 2011 00:00:21\r\n1   72.1.134.1      Sat Oct 22 23:12:39 2011\r\n0   72.1.134.1      Sat Oct 22 23:12:49 2011 00:00:10\r\n<\/pre>\n<p>Analysis of more data shows that, indeed, the gateway is more reliably pinged than the Speakeasy\/Megapath DNS server, which is slightly more reliable than the Google DNS server. So, it&#8217;s the wire.<\/p>\n<p>Meanwhile, the net connection currently is faster than it&#8217;s ever been. Almost a meg, down and a half meg up. Whooo, hoo.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The net connection here was getting pretty flaky. Down for chunks of time in the night, day and in between. Since our connection&#8217;s gears are hidden beneath a couple layers of organizations, it&#8217;s been frustrating to deal with the outages. &hellip; <a href=\"https:\/\/www.tranzoa.net\/~alex\/blog\/?p=403\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-bloggy-things","category-product-reviews"],"_links":{"self":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=403"}],"version-history":[{"count":6,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":409,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=\/wp\/v2\/posts\/403\/revisions\/409"}],"wp:attachment":[{"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tranzoa.net\/~alex\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}