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

Traffic Graphc statistics are backwards for LAN interface

Scheduled Pinned Locked Moved General pfSense Questions
23 Posts 7 Posters 2.8k Views
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 Jul 2, 2015, 10:23 PM

    @phil.davis:

    It has always been like that. The graph is with respect to the pfSense interface - so download traffic goes OUT LAN.
    The table of clients is with respect to the client - download traffic is IN to the client.
    It needs to be this way, because the clients in the table can also be systems out on the public internet (selecting to show "Remote" or "All"). And in that case it looks sensible that the table shows bandwidth out of some public IP and bandwidth in to some LAN client.

    The issue is the opposite. It's showing that "downloading" is "in" for the LAN, when relative to PFSense, it should be "out". I'm seeing 85Mb "in" on the WAN, and 85Mb "in" on the LAN. One should be "in" and the other should be "out".

    1 Reply Last reply Reply Quote 0
    • N
      NOYB
      last edited by Jul 2, 2015, 11:02 PM

      In the table Bandwidth In and Bandwidth Out columns is the perspective of the system listed in the Host Name or IP column on the same row.

      So 13.48 Mpbs Out on the pfSense LAN (shown in graph) is 12.4 M Bits/sec Bandwidth In on host 192.168.1.103 (shown in the chart).
      And 284 Kbps In on the pfSense LAN (shown in the graph) is 165.81 K Bits/sec Bandidth Out on host 192.168.1.103 (shown in the chart).

      Is that not correct?

      I know this confused me the first time I saw it too.  But I think it is correct.  Just have to understand the perspectives.

      1 Reply Last reply Reply Quote 0
      • H
        Harvy66
        last edited by Jul 2, 2015, 11:12 PM

        I was seeing something like this

        WAN 85Mb in / 3Mb out
        LAN 85Mb in / 3Mb out

        Made no sense to me.

        1 Reply Last reply Reply Quote 0
        • H
          Harvy66
          last edited by Jul 2, 2015, 11:15 PM

          Well, it's not happening right now…. Maybe I was sleep deprived. I'll check for it over this weekend and see if it happens again.

          1 Reply Last reply Reply Quote 0
          • H
            Harvy66
            last edited by Jul 2, 2015, 11:20 PM

            Got it. The graph is showing in/out correctly, but the side value is showing in/out relative to the client.

            1 Reply Last reply Reply Quote 0
            • N
              NOYB
              last edited by Jul 2, 2015, 11:37 PM

              Correct.  The bandwidth in/out shown in the table is of the interface listed in the same row.

              1 Reply Last reply Reply Quote 0
              • N
                NOYB
                last edited by Jul 2, 2015, 11:53 PM

                If you really what to twist your brain.  Figure this one out.

                ![Traffic Graph.png](/public/imported_attachments/1/Traffic Graph.png)
                ![Traffic Graph.png_thumb](/public/imported_attachments/1/Traffic Graph.png_thumb)

                1 Reply Last reply Reply Quote 0
                • H
                  Harvy66
                  last edited by Jul 2, 2015, 11:53 PM

                  I see where the confusion is coming in. The graph is relative to the interface but the table is relative to the host.

                  1 Reply Last reply Reply Quote 0
                  • N
                    NOYB
                    last edited by Jul 2, 2015, 11:56 PM

                    @Harvy66:

                    I see where the confusion is coming in. The graph is relative to the pfSense interface but the table is relative to the host interface.

                    Exactly.

                    1 Reply Last reply Reply Quote 0
                    • P
                      phil.davis
                      last edited by Jul 3, 2015, 4:45 AM

                      @NOYB:

                      If you really what to twist your brain.  Figure this one out.

                      The graph has a "better" longer-term view of the total data in/out on the pfSense interface. The table of clients takes a shorter-term snapshot on each update. Thus the table is just a "rough idea" of what is going on. For clients that are doing something consistent across time it gives a good snapshot of the activity, for clients that do bursty things then it is hit and miss.

                      Also, anyone making further comments about In/Out please always say if you are talking about the graph or the table - it is very difficult to sort out who is commenting about what.

                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                      1 Reply Last reply Reply Quote 0
                      • N
                        NOYB
                        last edited by Jul 3, 2015, 5:32 AM Jul 3, 2015, 5:28 AM

                        @phil.davis:

                        @NOYB:

                        If you really what to twist your brain.  Figure this one out.

                        The graph has a "better" longer-term view of the total data in/out on the pfSense interface. The table of clients takes a shorter-term snapshot on each update. Thus the table is just a "rough idea" of what is going on. For clients that are doing something consistent across time it gives a good snapshot of the activity, for clients that do bursty things then it is hit and miss.

                        There was only the one client doing anything of significance; copying a 600 MB video to remote client on a 1.5 mbps DSL connection.  All the traffic (for practical purpose of this) was to/from that one client.

                        If I'm correct about what is causing the discrepancy in the numbers (graph LAN In/Out the same and seemingly Out being wildly incorrect, but client table showing correct In/Out values).  Something that CMB mentioned earlier is a clue.

                        @cmb:

                        The RRD data comes from pf's counters rather than netstat (where Status>Traffic Graph pulls), . . .

                        1 Reply Last reply Reply Quote 0
                        • N
                          NuAngel @phil.davis
                          last edited by Mar 7, 2025, 2:43 PM

                          @phil-davis said in Traffic Graphc statistics are backwards for LAN interface:

                          It has always been like that. The graph is with respect to the pfSense interface - so download traffic goes OUT LAN.
                          The table of clients is with respect to the client - download traffic is IN to the client.
                          It needs to be this way, because the clients in the table can also be systems out on the public internet (selecting to show "Remote" or "All"). And in that case it looks sensible that the table shows bandwidth out of some public IP and bandwidth in to some LAN client.

                          Just quoting this comment because, despite being a nearly 10 year old thread, this is the comment that made it click in my head. I had no idea why the graphs worked this way until Phil explained it. Thank you!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                            [[user:consent.lead]]
                            [[user:consent.not_received]]