On OS X - Best Way To Monitor if Internet Connection Drops?


Recommended Posts

I am on OS X.

I am wondering what the best, easiest way to monitor if my internet is stable and does not drop.

Unfortunately I do not have direct access to the modems supplied by my ISP.

This is at work, however we have or own direct line in our area.

 

I have found this website, which seems decent, however it only shows the past 20 results or so.

I would love to be able to let it run overnight, come in tomorrow

 

When I check the logs of the router (an Asus RT-N66U), I do see the following, which I have not a clue what it means.

Jun 18 13:00:42 kernel: eth2: received packet with  own address as source address
Jun 18 13:02:59 kernel: eth1: received packet with  own address as source address
Jun 18 13:21:01 kernel: eth2: received packet with  own address as source address
Jun 18 14:02:13 kernel: eth1: received packet with  own address as source address
Jun 18 14:28:44 kernel: eth1: received packet with  own address as source address
Jun 18 14:30:44 kernel: eth1: received packet with  own address as source address
Jun 18 14:35:50 kernel: eth2: received packet with  own address as source address
Jun 18 14:40:43 kernel: eth1: received packet with  own address as source address
Jun 18 14:54:45 kernel: eth2: received packet with  own address as source address
Jun 18 17:00:55 kernel: eth1: received packet with  own address as source address
Jun 18 19:05:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 UDP removed
Jun 18 19:05:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 TCP removed
Jun 19 08:36:05 dnsmasq-dhcp[310]: Ignoring domain wks.jnj.com for DHCP host name WJANUSL3BEK8T
Jun 19 09:07:28 kernel: eth2: received packet with  own address as source address
Jun 19 09:16:04 kernel: eth1: received packet with  own address as source address
Jun 19 09:55:38 kernel: eth1: received packet with  own address as source address
Jun 19 10:32:26 kernel: eth1: received packet with  own address as source address
Jun 19 10:33:18 kernel: eth2: received packet with  own address as source address
Jun 19 10:33:36 kernel: eth2: received packet with  own address as source address
Jun 19 10:34:40 kernel: eth1: received packet with  own address as source address
Jun 19 11:10:11 kernel: eth2: received packet with  own address as source address
Jun 19 12:41:07 kernel: eth2: received packet with  own address as source address
Jun 19 12:49:06 kernel: eth2: received packet with  own address as source address
Jun 19 12:55:40 kernel: eth1: received packet with  own address as source address
Jun 19 13:47:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 UDP removed
Jun 19 13:47:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 TCP removed

Any help would be appreciated.

I did post a thread a few weeks back about redoing the network here at work, will find out today if I get the go ahead to do that, but we do believe we have a much larger issue where our main line keeps dropping, and Optimum is of course saying it is not.

 

TIA,

DL

 

Well you could always ping out.  If you don't like that then you could establish a ping to your outside ip from a monitoring service. 

 

something like this

https://www.pingdom.com/free/

How would one ping out but keep a log of it? Is there a simple enough Terminal command I can use to do so?

Ideally I would love to be able to set it up on a laptop, let it run overnight, then come back the next morning and see if and when the connection dropped.

I don't have an OS X box that I can ssh into so that I can write and check a script, but you can make a cronjob that invokes the date and ping commands periodically and append it to a log file using command >> /file/path.

 

Something like the following as a cronjob. Here, the ping tries once immediately after the date is printed:

date >> ~/Desktop/pinglog.txt && ping -c1 google.com >> ~/Desktop/pinglog.txt

Jun 18 13:00:42 kernel: eth2: received packet with own address as source address
Jun 18 13:02:59 kernel: eth1: received packet with own address as source address

 

This is happening on both your wan and lan interfaces?  Are you running wireless repeaters, something that repeats traffic?  Where is the router connected in your network?  You have a switching loop maybe?  You clearly should not be seeing those..  Telling you its seeing a packet inbound that has its mac address..  Can you draw up your network and where this is placed.

 

Jun 18 19:05:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 UDP removed
Jun 18 19:05:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 TCP removed

 

These are telling you it removed its port forward - since you have UPnP enabled, also known as NAT-PMP..  This is business network - why and the hell would UPnP/NAT-PMP be enabled?? 

http://en.wikipedia.org/wiki/Universal_Plug_and_Play

http://en.wikipedia.org/wiki/NAT_Port_Mapping_Protocol

 

That port is not a registered port, if I had to guess its someone running P2P software on your network - again not something that should be running a work network.  That is your router telling you it removed the forward..  The log is useless because it doesn't tell you to where it was mapped too which would be actual useful info..

BudMan.
This is not an official business network. It is the same exact network I outlined in this thread which has been established as being all wrong. I am currently waiting on the go ahead to get the $3500 to redo it properly. As such it is still exactly as I shared in that thread.

Additionally this was my own personal router from home, an Asus NR66TU, that I had set up just to see if one of our Linksys was not working properly, so that is why UPnP was enabled, everything was at the default settings (which is pretty much for a home network) as I had literally just did a Factory Reset on the router. Only thing that was changed was I assigned it a Static IP as shown in the diagrams on that other thread.

 

At the time I copy and pasted those logs there were only 4 clients total connected.
My boss's phone, my phone, my iPad, and my laptop. So I can say with the utmost of certainty no one was running any P2P software whatsoever. Could it have been another app on my laptop?

 

To be honest you guys are losing me. I have no idea what a cronjob is and as I have admitted with that other thread, I do not know all that much about Networking but am willing to learn (if possible).

 

The reason for wanting to monitor our internet connection and the point of this thread as I am fairly certain our ISP is not being truthful with the reliability of the line they are providing. We are constantly dropping, whether it is with the Linksys E4200v2's, my Asus Router, or my laptop plugged directly into the modem they provide itself, the connection just randomly drops, and frequently at that.

 

It is a unique condition as the ISP over 15 years ago had this one line from approximately a half a mile away on the local highway run into our building directly to originally provide TV signal to a VP's conference room. I am not making that up. They refuse to do any work on the line as we are the sole customer in the building so to speak, and we are only paying them $220 a month, which is actually going to drop to $110 soon when I redo everything. So it is an older line with a ton of noise and feedback, they will admit that much, and they have installed a bunch of taps and feeders within our building along the line itself in order to try and control all of the feedback, and it is pretty clear they are all having a detrimental affect on the stability of the line. However when I try and confront them about it, they pretty much take the stance of go ahead and prove it, so that is what I am trying to achieve here. Maybe that clears some stuff up. Maybe not.

 

Is there no software similar to ping plotter for osx that allows monitoring of the connection combined with trace so you can see when and where the connection drops.

 

Ping plotter is nearly a must have tool for network monitoring of unstable connections. And when the ISP says it you, you can show the plots and that everything works fine until their systems take over :)

You could always just run smokeping on whatever machine you have.  http://oss.oetiker.ch/smokeping/

 

This great tool for monitoring your network connection.

 

examples

 

really bad connection

post-14624-0-70252500-1403346325.png

 

much better connection

post-14624-0-50413600-1403346457.png

 

This will show you if loosing any pings, what the response time is, etc... You can set it up to ping as many different IPs as you want and have graphs off all of them..  Run it in a VM if won't run on whatever os your using.

 

As to UPnP or NAT-PMP being on by default --- bad bad idea!!!  Bad Router Maker!!!  That should be OFF by default..

 

As to dropping -- well if you have a freaking switching loop.. It would be amazing if anything works ;)  From your diagram you posted I don't see one - but someone plugged in an extra cable where not suppose to be, etc.  That you don't have shown on your diagram.

 

Do you know how to run a virtual machine?  If so could pop out a ovf for you running somkeping.. And then just put in the hosts you want to monitor.

If you have loop in the network, why not shut all the ports and enable the ones you want with "port security with sticky MAC address" enabled and you can change the default too if you want to. This way even if someone plugs something you'll know about it and this is for Cisco switches, I haven't seen your diagram and I don't know if you have a Cisco switch or not but I am sure other brands might have similar thing. Just a hint :)

As to dropping -- well if you have a freaking switching loop.. It would be amazing if anything works ;)  From your diagram you posted I don't see one - but someone plugged in an extra cable where not suppose to be, etc.  That you don't have shown on your diagram.

 

Do you know how to run a virtual machine?  If so could pop out a ovf for you running somkeping.. And then just put in the hosts you want to monitor.

Thank for smokeping. Will check it out.

 

Can you elaborate on "freaking switching loop" please? 

And when you say someone plugged in an extra cable, you do mean with something connected on the other end right? Or could it be a cable plugged into a switch with nothing on the other end? Would that cause an issue? There is only one extra cable plugged in that I know of,  We leave a cable with nothing plugged in on the other end into the switch sometimes for people who go in and out of a certain room. I never knew that to cause trouble but if it could, then yeah we could have find the culprit.

 

And it has been a while since I ran a virtual machine, so yep thing I could probably do so again.

The network from my previous thread is 95% WiFi though and almost always used for iPads.

So plug in something to it.. So you can ping your AP and your internet gateway, etc..  Running smokeping

 

So I setup a quick vm - so if need be I can export it for you already running

 

So see here its pinging my isp gateway for last few hours.

 

post-14624-0-61126400-1403369416.png

 

I also set it up to ping the some hosts I have out on the net.. My box in NL, my vps boxes on westcoast and east coast of us for testing speeds, etc.

 

post-14624-0-39938600-1403369475.png

 

So you notice the spike in the graph..  That is where I filled up my download pipe grabbing a copy of raspbian -- so since my pipe was full for a bit, pings that happened during that period would be much slower than normal.  So you see the time increase.

 

You should really set this up for monitoring your isp connection and even connections to your different AP, etc.  This should show you when there is an issue with on, its offline - something is eating up the network bandwidth, etc..  So for example here is to my wireless controller and my AP and other devices on my wireless segment.

 

I set this up in a few minutes this morning - it really is not hard to get something like this running.

post-14624-0-47190400-1403369715.png

 

As to "Switching loop"  More than one path without stp running. Which you don't have any smart switches from what I saw..  So unlikely stp is running (spanning tree protocol) -- used to protect against switching loop.

 

http://en.wikipedia.org/wiki/Switching_loop

 

Here is an example of some problems you can have with a switching loop

post-14624-0-17662500-1403368656.png

 

No if the cable is not connected at the other end its not a loop.

 

So in the picture above computer 1 sends a broadcast or multicast looking for something..  Do you know what a broadcast or multicast packet is?  That is when computer wants to talk to anyone or bunch of people at the same time (multicast), not a specific IP address.  This could be an arp looking for the mac address of IP it wants to talk too, could be dhcp discover asking dhcp server for an IP..  Could be broadcasting for a computer name, lots of reasons for broadcast traffic.

 

So computer 1 sends broadcast, switch  A says oh broadcast packet - I send that out every port!!  So sends out broadcast to both B and C switches..  B switch sees broadcast and sends it out to C switch as well.  C switch can say oh broadcast coming from B switch - send it to A switch..  This is the same broadcast the A switch sent out..  Now computer 2 gets two copies of the same broadcast.  This can cause a problem with what they call a "broadcast storm"  The network is so busy sending resending broadcasts that normal traffic doesn't work.

 

Now smartswitch or managed switches can look for switching loops and block 1 of the paths.  Which now this allows you to maintain 2 physical paths for redundancy sake - say one of the wires breaks or switch fails, etc.

 

So in your log the router was saying hey I saw a packet on my interface that said it came from me..  That should not be possible unless for some reason the physical network that eth0 is connected to is same network eth1 is connected too.  You had your router in AP mode?  Did you have its wan interface connected and lan port connected at the same time to the same switch or switches that had a connection between them?

I am on OS X.

I am wondering what the best, easiest way to monitor if my internet is stable and does not drop.

Unfortunately I do not have direct access to the modems supplied by my ISP.

This is at work, however we have or own direct line in our area.

 

I have found this website, which seems decent, however it only shows the past 20 results or so.

I would love to be able to let it run overnight, come in tomorrow

 

When I check the logs of the router (an Asus RT-N66U), I do see the following, which I have not a clue what it means.

Jun 18 13:00:42 kernel: eth2: received packet with  own address as source address
Jun 18 13:02:59 kernel: eth1: received packet with  own address as source address
Jun 18 13:21:01 kernel: eth2: received packet with  own address as source address
Jun 18 14:02:13 kernel: eth1: received packet with  own address as source address
Jun 18 14:28:44 kernel: eth1: received packet with  own address as source address
Jun 18 14:30:44 kernel: eth1: received packet with  own address as source address
Jun 18 14:35:50 kernel: eth2: received packet with  own address as source address
Jun 18 14:40:43 kernel: eth1: received packet with  own address as source address
Jun 18 14:54:45 kernel: eth2: received packet with  own address as source address
Jun 18 17:00:55 kernel: eth1: received packet with  own address as source address
Jun 18 19:05:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 UDP removed
Jun 18 19:05:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 TCP removed
Jun 19 08:36:05 dnsmasq-dhcp[310]: Ignoring domain wks.jnj.com for DHCP host name WJANUSL3BEK8T
Jun 19 09:07:28 kernel: eth2: received packet with  own address as source address
Jun 19 09:16:04 kernel: eth1: received packet with  own address as source address
Jun 19 09:55:38 kernel: eth1: received packet with  own address as source address
Jun 19 10:32:26 kernel: eth1: received packet with  own address as source address
Jun 19 10:33:18 kernel: eth2: received packet with  own address as source address
Jun 19 10:33:36 kernel: eth2: received packet with  own address as source address
Jun 19 10:34:40 kernel: eth1: received packet with  own address as source address
Jun 19 11:10:11 kernel: eth2: received packet with  own address as source address
Jun 19 12:41:07 kernel: eth2: received packet with  own address as source address
Jun 19 12:49:06 kernel: eth2: received packet with  own address as source address
Jun 19 12:55:40 kernel: eth1: received packet with  own address as source address
Jun 19 13:47:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 UDP removed
Jun 19 13:47:08 miniupnpd[430]: Expired NAT-PMP mapping port 23234 TCP removed

Any help would be appreciated.

I did post a thread a few weeks back about redoing the network here at work, will find out today if I get the go ahead to do that, but we do believe we have a much larger issue where our main line keeps dropping, and Optimum is of course saying it is not.

 

TIA,

DL

The better tools (not just for OS X, but for any OS/distribution) are those that are designed to monitor the connection for activity - unfortunately, all too many of those are manufacturer-specific (I'm referring to GUI-based "watchdog" utilities, including Apple's own AirDrop - which can't be used for wired Ethernet, for example).  It's not just an OS X problem - it's an all-OSes problem; at least Windows has started to step up with basic watchdog-type monitoring for wireless connections - however, you still have to do third-party for similar tools for wired connections.

 

"(I'm referring to GUI-based "watchdog" utilities, including Apple's own AirDrop - which can't be used for wired Ethernet, for example)"

 

 

 

What?  watchdog util like airdrop??  Airdrop is not a watchdog util.. :huh:

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Apple has clarified Series 9 was left off the watchOS 27 compatibility list by mistake.
    • Signal accuses UK government of using child safety as cover for mass surveillance by David Uzondu Recently, the UK's Home Office announced a sweeping set of proposals to make Britain the "first country in the world" where children cannot share or view nude photos on their smart devices, an initiative that authorities claim will protect children from online predators and combat pornography. In response, Signal believes that while the government must keep children "safe" and "protected," it should do so through social services and education, not by "surveillance, funding cuts, and cover-ups." The company called the plan "dystopian" and warned that it violates everyone's fundamental right to privacy, arguing that scanning on the presumption of nudity will only strengthen the market dominance and data control of giant corporations like Apple and Google. The statement continues by accusing the government of hiding its true intentions under the guise of child safety. Signal argues that the Home Office is building an invisible surveillance infrastructure that remains ripe for exploitation by future administrations and authoritarian regimes. According to the company, this aggressive approach completely ignores the actual needs of young people, such as properly funded schools and mental health services. Tech companies like Apple and Google have a three-month window to implement these mandatory device-level filters across the United Kingdom. If these tech firms refuse to comply with the mandate, the government will pass emergency legislation to force them to comply, threatening massive fines and even going after the CEOs of these companies with criminal charges. The technology will work by blocking explicit images directly on the operating system of all smartphones and tablets by default. This system monitors the device camera and third-party apps to intercept nudity before anyone can upload or send the image. Adults can still view explicit content, but only after completing a strict age verification check to unlock their devices. Several bodies like the NSPCC and Barnardo's praised the Home Office's decision, arguing that device-level intervention stops the cycle of grooming before it starts. The Internet Watch Foundation (IWF) also supported the policy, claiming that tech companies can implement on-device checks "without threatening privacy or collecting any data."
    • Did you watch the keynote? It is way beyond what is described in this article. Looks interesting. Now it is time for them to deliver unlike what happened in 24.
    • It pretty much has to be compatible with MS Office or it is going nowhere. The rest of the world runs office including Europe. If it is not compatible it will not survive.
    • Incredible deal gets you free NVMe 512GB SSD with AMD AM5 B850 motherboard for only $150 by Sayan Sen Earlier this week we covered the story of an interesting PC case wherein you can build two full-size computers inside it as in it can house and run an AMD and an Intel system simultaneously. Speaking of building PCs, these are hard times to make one for sure as prices are often very high except during flash sales or discounts. If you are in the market for a 1080p gaming PC then Nvidia's 8GB RTX 5060 Ti is currently on sale for just $330 and you get the latest James Bond game too, for free. Speaking of which, right now there is another incredible sale going on as we can get a free 512 GB NVMe SSD from TeamGroup in the form of the G50 alongside the purchase of an AMD B850 socket AM5 motherboard for only $150 (purchase link under the specs table down below). Getting an AM5 motherboard now in 2026 will be a wise investment for sure, especially since AMD confirmed its commitment to support the socket till at least 2029. The MSI PRO B850M-P WIFI is a micro-ATX motherboard that is compatible with AMD Ryzen 9000 series processors. Since it is AM5, the motherboard works with DDR5 memory and includes MSI’s Memory Boost technology, along with EXPO and XMP support. Connectivity features include built-in Wi-Fi 7 paired with a 5G LAN solution. The board offers a PCIe 5.0 M.2 slot with MSI’s EZ M.2 Shield Frozr II thermal solution, that is said to help maintain SSD performance by providing ample cooling against overheating. The technical specifications of the MSI PRO B850M-P WIFI motherboard are given in the table below: Specification Value Form Factor Micro-ATX (mATX), 243.84 × 243.84 mm Chipset AMD B850 Socket AM5 Supported Processors AMD Ryzen 9000, 8000, and 7000 Series Desktop Processors Memory Slots 4 × DDR5 UDIMM Max Memory 256 GB Memory Speed DDR5 8200–5600 MT/s (OC), DDR5 5600–4800 MT/s (JEDEC) Display Outputs 1 × HDMI 2.1 (up to 4K 60Hz) 1 × DisplayPort 1.4 (up to 4K 60Hz) PCIe Slots 1 × PCIe 5.0 x16 (CPU) 3 × PCIe 3.0 x1 (Chipset) Audio Codec Realtek ALC897 Audio Channels 7.1-Channel High Definition Audio M.2 Slots 3 × M.2 slots M.2_1: PCIe 5.0 x4 (CPU) M.2_2: PCIe 4.0 x4 (CPU) M.2_3: PCIe 4.0 x2 (Chipset) M.2 Device Sizes M.2_1: 2280/2260 M.2_2: 2280/2260 M.2_3: 2280 SATA Ports 4 × SATA 6Gb/s RAID Support SATA: RAID 0, 1, 10 NVMe: RAID 0, 1, 5, 10 Rear USB Ports 4 × USB 2.0 2 × USB 5Gbps Type-A 1 × USB 10Gbps Type-A 1 × USB 10Gbps Type-C Front USB Headers 4 × USB 2.0 4 × USB 5Gbps Type-A 1 × USB 10Gbps Type-C LAN Realtek 8126VB 5Gb Ethernet Wireless Networking Wi-Fi 7 (802.11 a/b/g/n/ac/ax/be) Tri-band 2.4GHz / 5GHz / 6GHz MU-MIMO, MLO, 4KQAM Up to 2.9Gbps Bluetooth Bluetooth 5.4 Internal Power Connectors 1 × 24-pin ATX Power 1 × CPU Power 1 × PCIe Power (8-pin) Cooling Headers 1 × CPU Fan 1 × Combo Fan/Pump 3 × System Fan RGB Headers 3 × Addressable RGB Gen2 (JARGB_V2) 1 × RGB LED (JRGB) Additional Internal Headers 2 × Front Panel (JFP) 1 × Chassis Intrusion (JCI) 1 × Front Audio (JAUD) 1 × COM Port (JCOM) 1 × JDASH Tuning Controller 1 × TPM 2.0 Header The free TeamGroup T-FORCE G50 NVMe SSD is a PCIe Gen4 and as such it promises to deliver sequential read speeds of up to 5,000 MB/s, helping accelerate game loading, file transfers, and everyday computing tasks. The SSD features an InnoGrit controller and SLC caching technology to support consistent performance. An ultra-thin, patented graphene heatsink is included to aid in heat dissipation. The NAND flash is based on TLC which means it has plenty of endurance up its sleeve. The random performance may not be as amazing as other drives with DRAM though. Still it should be very good since it can access system memory via HMB to use it as its DRAM cache. The technical specifications of the TeamGroup 512GB G50 NVMe SSD are given in the table below: Specification Value Model / Part Number TM8FFE512G0C129 Form Factor M.2 2280 Interface PCIe Gen4x4 with NVMe Sequential Read Speed Up to 5,000 MB/s Sequential Write Speed Up to 2,500 MB/s Endurance (TBW) 325 TBW DRAM Cache No Cache Technology SLC Cache Controller InnoGrit Controller Solution Operating Temperature 0°C to 70°C Storage Temperature -40°C to 85°C Weight 7 g Dimensions 80.0 × 22.0 × 3.7 mm Vibration Resistance 80 Hz ~ 2,000 Hz / 20G Shock Resistance 1,500G / 0.5 ms MTBF 3,000,000 hours Get it at the link below: MSI PRO B850M-P WIFI AM5 AMD motherboard + Team Group T-FORCE G50 TM8FFE512G0C129 512GB SSD (free gift): $149.99 (Sold and Shipped by Newegg US) This Newegg deal is US-specific and not available in other regions unless specified. This is a first-party seller link (at the time of article publishing); ensure that you also purchase from a first-party seller link only. If you don't like it or want to look at more options, check out the previous deals that we have covered, OR you can also visit Amazon US deals page. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
  • Recent Achievements

    • Very Popular
      Captain_Eric earned a badge
      Very Popular
    • One Month Later
      amusc earned a badge
      One Month Later
    • One Month Later
      DJC50PLUS earned a badge
      One Month Later
    • Week One Done
      DJC50PLUS earned a badge
      Week One Done
    • Proficient
      Eric Biran went up a rank
      Proficient
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      226
    3. 3
      ATLien_0
      87
    4. 4
      +Edouard
      83
    5. 5
      Steven P.
      81
  • Tell a friend

    Love Neowin? Tell a friend!