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

Traffic Graph direction labling

Scheduled Pinned Locked Moved Development
9 Posts 2 Posters 1.1k 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.
  • P
    Patch
    last edited by Patch Mar 27, 2021, 2:11 AM Mar 27, 2021, 1:46 AM

    What is the convention pfSense uses to defining in and out on the interfaces? There seams to be at least an inconsistency between the convention chosen for the graphs and the text display.

    Traffic graph labels.jpg

    Speed test.jpg

    • Full screen shot take during upload part of Ookla speed test, then Window for pfSense and Ookla speed test shown separately.

    • pfSense Traffic Graph shows a graph a little under 20M in blue labeled "lan (in)" in the legend. Subsequently moving the mouse over this part of the graph showed about 19.5 M Bits/sec. Mouse over the section of pfSense traffic graph when Ookla was running the download test showed about 53 M Bits/s. Both of these numbers in agreement by that reported by Ookla speedtest.

    • Tabulated devices shows 15.22 M Bits/sec in the "Bandwidth Out" column. The value consistently lower that that shown on the pfSense Traffic Graph and reported by Ookla. A similar ratio occurred during the Ookla speedtest download section of the test.

    Is this actually how it is suppose to be? The issues I have trouble understanding are

    • A different convention appears to have been used to define "In" and "Out" in the graphic vs tabulated connections sections of Traffic graph display.

    • The readings displayed in the tabulated connections appear to be a little low.

    • The tabulated values would be easier to read if the update rate on the table was slower in my opinion.

    P 1 Reply Last reply Mar 27, 2021, 3:41 AM Reply Quote 0
    • P
      Patch @Patch
      last edited by Patch Mar 27, 2021, 4:02 AM Mar 27, 2021, 3:41 AM

      Update
      Setting Mode: iftop (experimental)

      • Results in a very significant improvement for me. Tabulated speeds values seam OK, and display update rate works well for me.
      • The only residual issue is understanding how "In" and "Out" are suppose to be defined and labeled. The tabulated connections and the sort order specification, appears to have the opposite definition to that shown on the legend of the graphs.
      During Ookla download During Ookla upload
      pfSense Graph mouse over 56.4 20.1
      PfSense connection table 52 18.2
      Ookla reported average 52.5 18.9

      Again Full screen shot take during upload part of Ookla speed test, then Window for pfSense and Ookla speed test shown separately.

      Traffic graph labels 02.jpg

      Speed test 02.jpg

      J 1 Reply Last reply Mar 27, 2021, 4:17 AM Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator @Patch
        last edited by johnpoz Mar 27, 2021, 4:18 AM Mar 27, 2021, 4:17 AM

        Your looking on the lan interface - if you want to show it IN to pfsense then look on the WAN..

        Your a client, your downloading something - so for pfsense to send you that data it goes "out" the LAN to get to you on the LAN.. Traffic you send TO the internet would be IN to the LAN, out the WAN..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        P 2 Replies Last reply Mar 27, 2021, 4:52 AM Reply Quote 0
        • P
          Patch @johnpoz
          last edited by Patch Mar 27, 2021, 5:27 AM Mar 27, 2021, 4:52 AM

          @johnpoz

          • I agree it is reasonable to use a convention where the definition of traffic "In" and "Out" changes depending on if the traffic is shown at the Wan or Lan interface.

          • What I was questioning is having a screen in pfSense displaying Lan traffic where a different convention / definition is used for the graph vs the table.

          Specifically in the above screen during the upload part of the speed test,

          • the legend for the graphed data shows a blue dot for "lan (in)".

          • But the host connections show a table has a column labeled "Bandwidth Out" for the same lan traffic.

          • There is also a setting to sort by Bandwidth In or Out. With the current labeling is not obvious to me which direction of lan traffic it would sort by, the graph or tables definition of traffic direction.

          Perhaps it is all obvious to everyone else but to me one of the labels must be wrong.

          J 1 Reply Last reply Mar 27, 2021, 10:11 AM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @Patch
            last edited by johnpoz Mar 27, 2021, 10:34 AM Mar 27, 2021, 10:11 AM

            That has nothing to do with the graph - that has to do with how to sort the IPs in the table.. See how your IP that has the highest bandwidth IN is currently at the top of the list.

            See the blue and orange dots on the actual graph.. That is the telling you what is the graph..

            Might have been more apparent if on your first pic, you had more than 1 host listed.

            sort.png

            How would you sort a graph, you can sort a table ;)

            Maybe this show it better

            thishelp.png

            See where table sorted by table with bandwidth in they are in descending order, while your out is not your 0 there is above 6.11 Kbits, etc.. And your 6.13 is above your 15.76 out.. Because the table is sorted by bandwidth in.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • P
              Patch @johnpoz
              last edited by Patch Mar 27, 2021, 11:50 AM Mar 27, 2021, 11:30 AM

              We continue to agree the sort order is consistent with the definition of in / out used by the table of hosts.

              @johnpoz said in Traffic Graph direction labling:

              Your a client, your downloading something - so for pfsense to send you that data it goes "out" the LAN to get to you on the LAN.

              No problem. That is excellent to know.

              I'm very new to pfSense so didn't want to try and dictate which convention was correct / consistent with other parts of pfSense. And I had actually assumed the programmer who wrote the connection table code was different to the programmer who wrote the code for the graph.

              Traffic graph labels 03.jpg

              But given the convention clearly articulated then:

              • The label of the graph is correct. The Orange graph is maximal during the initial client download part the speed test. Data is going out from pfSense lan port to the client

              • During the second half of the speed test data is flowing in the oposite direct, out from the client in to the pfSense lan port. The blue graph shows this correctly labeled "Lan (in)". However the table of host connects uses a different convention for Lan in / out and labels it "Bandwidth Out", which is inconsistent with the stated convention.

              I really don't care from which perspective In / Out is defined. I'm just saying I find it inconsistent to use two different conventions on one screen.

              J 1 Reply Last reply Mar 27, 2021, 11:54 AM Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator @Patch
                last edited by johnpoz Mar 27, 2021, 12:04 PM Mar 27, 2021, 11:54 AM

                No that table showing what that client (192.168.1.113) is sending OUT.. That has nothing to do with the interfaces in/out graphic representation..

                Your graph is showing pfsense view of the interface - what it sends in and out..

                The table is showing what the Client, ie 192.168.1.113 in your pic is getting into it, or out from it..

                When your uploading from the client on the lan - that is OUT from the client, IN to pfsense lan interface.

                When your downloading from the client, to the client that traffic is IN, and to pfsense it is OUT of its lan interface.

                See in my pic, 192.168.1.100 downloading is bw into "that" client.. and out is from that client.

                Maybe this helps..

                graph.png

                That traffic is the table is from the clients perspective.. What is IN to the client, or OUT from the client.

                Here does this help

                direction.png

                Red is client downloading something from the internet, green is client uploading something to the internet.

                If the table listed the clients IP and called that bandwidth in while the client was uploading, and bandwidth out while is was downloading.. That would be confusing as shit.. And wrong.. The graph and that table are showing the bandwidth from 2 different points of view.

                If you want the graph and the table to match in direction, then look at the pfsense wan.. Now in/out will be the same as the client in the table.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • P
                  Patch
                  last edited by Mar 27, 2021, 12:11 PM

                  In my opinion the pfSense Traffic graph labeling would be clearer if when displaying the lan traffic it was consistently from the perspective of the firewall or consistently from the perspective of the client. Either convention is defensible, however I'm not convinced using both perspectives for different parts of the page enhances clarity.

                  J 1 Reply Last reply Mar 27, 2021, 12:47 PM Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator @Patch
                    last edited by johnpoz Mar 27, 2021, 12:48 PM Mar 27, 2021, 12:47 PM

                    And how do you do that? Since they are two different things..

                    Look forward to your PR ;)

                    Maybe if they changed the label from bandwidth in out, to "to" "from" in the table? Would that clear it up for you? That would be from the perspective of pfsense.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    1 Reply Last reply Reply Quote 0
                    9 out of 9
                    • First post
                      9/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received