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

    Multi Wan 95% percentile bandwidth limiter

    Scheduled Pinned Locked Moved Traffic Shaping
    25 Posts 7 Posters 6.6k 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.
    • D
      deajan
      last edited by

      Thanks Harvy66, I actually messed up my fist tests by using "pass" instead of "match" floating rules.

      I've done two full working test setups, with 2 fiber WANs, and with 3 ADSL WANs, including high priority ICMP queues to keep dpinger happy even on high latency lines.

      I'll probably write a howto shortly about this.
      Anyway, your idea is brilliant and yet simple.

      Thanks a lot.

      NetPOWER.fr - some opensource stuff for IT people

      1 Reply Last reply Reply Quote 0
      • N
        Nullity
        last edited by

        @deajan:

        Thanks Harvy66, I actually messed up my fist tests by using "pass" instead of "match" floating rules.

        I've done two full working test setups, with 2 fiber WANs, and with 3 ADSL WANs, including high priority ICMP queues to keep dpinger happy even on high latency lines.

        I'll probably write a howto shortly about this.
        Anyway, your idea is brilliant and yet simple.

        Thanks a lot.

        Why prioritize pings?
        Usually, pings should be prioritized as standard traffic so that it's latency measurements correspond with regular traffic. If you prioritize pings the measured latency may go unchanged during link-saturation, limiting dpinger's diagnostic usefulness.

        Please correct any obvious misinformation in my posts.
        -Not a professional; an arrogant ignoramous.

        1 Reply Last reply Reply Quote 0
        • D
          deajan
          last edited by

          No need to add ICMP priority on SDSL lines, but those ADSL lines I have must be pretty bad and dpinger sat them offline like every 5 minutes, even when I increased alarm threshold.

          I actually have a probably worse problem:

          The 3 ADSL links I have a are 18Mb/1Mb links. I've limited them to 16Mb/850Kb using traffic shaper.
          When a computer is directly connected on those ADSL lines, I get 19Mb/900Kb on speedtest.net.
          LAN traffic is about 10Mb/600Kb, but still, I get really bad packet loss / high latency when keeping ICMP as standard traffic.

          I'm wondering what's the problem, but in the meantime, I've setup high ICMP priority to be able to keep the gateway online and be able to remotely connect.

          NetPOWER.fr - some opensource stuff for IT people

          1 Reply Last reply Reply Quote 0
          • N
            Nullity
            last edited by

            @deajan:

            No need to add ICMP priority on SDSL lines, but those ADSL lines I have must be pretty bad and dpinger sat them offline like every 5 minutes, even when I increased alarm threshold.

            I actually have a probably worse problem:

            The 3 ADSL links I have a are 18Mb/1Mb links. I've limited them to 16Mb/850Kb using traffic shaper.
            When a computer is directly connected on those ADSL lines, I get 19Mb/900Kb on speedtest.net.
            LAN traffic is about 10Mb/600Kb, but still, I get really bad packet loss / high latency when keeping ICMP as standard traffic.

            I'm wondering what's the problem, but in the meantime, I've setup high ICMP priority to be able to keep the gateway online and be able to remotely connect.

            When you say you have packet loss, are you referring to actual packet loss or dpinger packet loss?

            Do these lines show packet loss at all times or only during link saturation?

            Please correct any obvious misinformation in my posts.
            -Not a professional; an arrogant ignoramous.

            1 Reply Last reply Reply Quote 0
            • D
              deajan
              last edited by

              Talking about dpinger packet loss. Gateway monitors IP are set to google DNS and opendns.
              Happens without link being saturated (max is about 8Mb/600Kb on 18Mb/1Mb links).

              NetPOWER.fr - some opensource stuff for IT people

              1 Reply Last reply Reply Quote 0
              • N
                Nullity
                last edited by

                @deajan:

                Talking about dpinger packet loss. Gateway monitors IP are set to google DNS and opendns.
                Happens without link being saturated (max is about 8Mb/600Kb on 18Mb/1Mb links).

                Hmm… I would not expect prioritization to change anything if packets are randomly dropping regardless of link saturation.

                Please correct any obvious misinformation in my posts.
                -Not a professional; an arrogant ignoramous.

                1 Reply Last reply Reply Quote 0
                • D
                  deajan
                  last edited by

                  Well it does ! Having ICMP traffic with high priority, I don't get packet loss on dpinger even if I probably have a lot of packet loss on the link itself (at least the link does not get shot every minutes or so by dpinger, unless it's completly down).
                  Btw, lines themselves don't suffer packet loss.

                  It's kind of a mystery for me here. I think of two solutions:
                  1. Too much concurrent connections -> line quality drops ?
                  2. pfSense related misconfig…

                  I'll check this next days again, brain is off for today.
                  Thanks anyway.

                  NetPOWER.fr - some opensource stuff for IT people

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

                    Multi-WAN single LAN HFSC names queue thing seems to be working? It would be cool if there was some way to get some basic statistics. Like all 3 links loaded(download and upload) and maintaining a relatively stable ping.

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nullity
                      last edited by

                      @deajan:

                      Well it does ! Having ICMP traffic with high priority, I don't get packet loss on dpinger even if I probably have a lot of packet loss on the link itself (at least the link does not get shot every minutes or so by dpinger, unless it's completly down).
                      Btw, lines themselves don't suffer packet loss.

                      It's kind of a mystery for me here. I think of two solutions:
                      1. Too much concurrent connections -> line quality drops ?
                      2. pfSense related misconfig…

                      I'll check this next days again, brain is off for today.
                      Thanks anyway.

                      So you have practically no ATM frame loss but you are constantly dropping IP packets regardless of link utilization?

                      I doubt the line cares about the number of connections. Maybe packets per second is your problem?

                      Please correct any obvious misinformation in my posts.
                      -Not a professional; an arrogant ignoramous.

                      1 Reply Last reply Reply Quote 0
                      • R
                        reinhart47
                        last edited by

                        As I am trying to digest this solution, does anyone have a set of screen shots to guide the setup?
                        Also, does this solution achieve any improved load balancing across the available WANs or it is simply a method to maximize, with limits, the use of each WAN?
                        Thanks,

                        1 Reply Last reply Reply Quote 0
                        • D
                          deajan
                          last edited by

                          I've wrote a quick tutorial from my multi WAN traffic shaper experience here: https://forum.pfsense.org/index.php?topic=120380
                          Any improvements are welcome !

                          And hey, thank you Harvy66 for your solution !

                          @Nullity: There's still some serious packet loss going on. You thought of maybe too much packets. Is there a rule of thumb for the packet number / bandwidth ?

                          NetPOWER.fr - some opensource stuff for IT people

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