pricemi115 / homebridge-grumptech-netnanny

Homebridge plugin for monitoring network performance
ISC License
4 stars 1 forks source link

Packet Loss is ALWAYS 0% #61

Closed pricemi115 closed 9 months ago

pricemi115 commented 9 months ago

Even when there is "partial" packet loss (>0% and <100%) or when there is full packet loss, a value of 0% is computed and published.

To Reproduce Generate a condition for observing packet loss and observe the reported value is 0%.

Expected behavior Publish the correct value

pricemi115 commented 9 months ago

Mostly observed on linux operating systems, specifically Synology. The root cause of the problem is that on these operating systems, the default is to not report on individual lost ICMP requests. Adding the -O switch provides this notification. The algorithm for computing packet loss was dependent on this data.