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

Traffic Graph not accurate

Traffic Monitoring
3
5
281
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.
  • A
    antgalla
    last edited by Jan 15, 2025, 2:17 AM

    Hi Guys, I just notice the traffic graph status and traffic graph dashboard is not accurate. What graph is the most accurate?

    DASHBOARD
    login-to-view

    STATUS/TRAFFIC GRAPH
    login-to-view

    D G 2 Replies Last reply Jan 15, 2025, 4:13 PM Reply Quote 0
    • D
      dennypage @antgalla
      last edited by dennypage Jan 15, 2025, 4:13 PM Jan 15, 2025, 4:13 PM

      @antgalla They look reasonably the same to me, just with different time scale averaging.

      1 Reply Last reply Reply Quote 0
      • G
        Gertjan @antgalla
        last edited by Jan 15, 2025, 4:56 PM

        @antgalla said in Traffic Graph not accurate:

        What graph is the most accurate?

        The grapher asks the NIC (interface driver) : how many packets with what size per packet was send since the last time I asked ?
        The drivers give the total - and then resets its internal counters.

        When the grapher comes back xx ms later, the same question and operation gets executed.
        Because the number of bytes is now know - and the time, an average speed is now also known.

        Normally, the NIC driver is aware about "what and how much was send".

        But I get it, you (the person) thinks the stats do not show correct values.
        Do you mind sharing why ?

        Counter questions :
        No VPN ?
        One WAN, two WANs ?
        What pfSense version ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 1
        • A
          antgalla
          last edited by Jan 16, 2025, 12:28 AM

          @Gertjan said in Traffic Graph not accurate:

          No VPN ? with VPN but different interface(ISP)
          One WAN, two WANs ? 2 WANs
          What pfSense version ? 2.7.2

          1 Reply Last reply Reply Quote 0
          • D
            dennypage
            last edited by Jan 16, 2025, 4:45 PM

            This doesn't have anything to do with VPN, multi WAN, etc. It's the same interface ("PLDT") in either case.

            I checked the code. Both graphs are produced by /usr/local/www/js/traffic-graphs.js and the data for both comes from the same rrd file.

            The graphs have different refresh rates, resulting in different time periods, which results in different time averaging intervals for rrd. The Traffic Graph page, with a hard-coded refresh rate of 1, ends up with a shorter time interval (magnified view) when compared to the Dashboard widget with a default refresh rate of 3. So on the Traffic Graph page you might see two brief spikes of 40M in quick succession, however on the dashboard widget only see one spike of 20M. It's still the same data.

            FWIW, The graphs also have different smoothing applied, but this doesn't have nearly as much of an impact as the time averaging interval.

            If you really want the Dashboard widget and the Traffic Graph page to match, you would need to change the widget refresh period to 1 second. In general this is not recommended due to the increased CPU requirement, but you have to decide what's more important to you.

            1 Reply Last reply Reply Quote 1
            4 out of 5
            • First post
              4/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.