Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Apinger percentage precision question

    General pfSense Questions
    2
    3
    694
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Harvy66
      last edited by

      I've been forgetting to ask this for a while, but I suddenly remembered. If apinger sends out a ping once per second, how can it report a precision better than 1.6% in a 1 minute average?

      I've seen the WAN quality graph show packet loss in seemingly multiples of 0.04%. So 0.04%, 0.08%, 0.12%, etc. But a resolution of 0.04% would indicate a sampling rate of 2500, which is a lot more than 1 per second over a 60 second window.

      I haven't had any loss for a long while, so I can't find examples of this anymore, but I have had this in the past, many times.

      Thanks  :-)

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Good question.
        I'm reminded of lessons I was taught years ago: A large number of decimal places doesn't necessarily indicate a greater level of accuracy. Merely less rounding in the calculation. Like digital displays that read 1.000 but have an accuracy of +/- 0.5.
        Not sure if that applies here.

        Steve

        1 Reply Last reply Reply Quote 0
        • H
          Harvy66
          last edited by

          I may question how the 8 hour graph can get results like 0.12% in a 1min average,  but when I ran a ping myself and upped the sampling rate, I would get similar numbers. I wonder if it does some kind of weighted sliding window for the average percentage.

          The main thing is the numbers seem trustworthy, so I'm happy. Maybe I just to look at the code. I've never done that before.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.