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

    Maximizing performance for network?

    Traffic Shaping
    3
    28
    5.4k
    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.
    • K
      killmasta93
      last edited by

      Hi,
      I was wondering if someone could help me understand few things about traffic Shaping.

      Well What im trying to accomplish is to prioritize https,http,imap,pop and block all p2p like torrents and such.

      I went thought the traffic Shaper wizard but im confused on percentages. On the photos lets say penalty box that 15 percent represents that if 192.168.3.2 passes the threshold it gets limited by 15 percent?

      And howcome it creates a shaper on WAN? if I only need LAN?

      My internet speed is 12 download and 2 upload

      After I finished the wizard not sure really what to do.

      Thank you
      Clipboarder.2015.10.03.png
      Clipboarder.2015.10.03.png_thumb
      Clipboarder.2015.10.03-003.png
      Clipboarder.2015.10.03-003.png_thumb
      Clipboarder.2015.10.03-004.png
      Clipboarder.2015.10.03-004.png_thumb
      Clipboarder.2015.10.03-005.png
      Clipboarder.2015.10.03-005.png_thumb

      Tutorials:

      https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

        WAN shaping affects your upload and LAN shaping affects your download. I would also recommend checking CoDel along with ECN.

        1 Reply Last reply Reply Quote 0
        • K
          killmasta93
          last edited by

          Hi Harvy66,
          Thank you for the reply. I was trying to understand https://forum.pfsense.org/index.php?topic=89367.0 and https://forum.pfsense.org/index.php?topic=11986.0

          I guess what im having trouble to comprehend is how the penalty box works?  :-[

          and how would I limit P2P for a 1kb/1kb or should I just Limit the bandwidth using limiter giving specific user 4down/1up?

          Thank you

          Tutorials:

          https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

          1 Reply Last reply Reply Quote 0
          • K
            killmasta93
            last edited by

            Alright for now im going to focus on traffic shaping only http-https sites for now until i understand how HFSC works.

            After that i wanted to see the queue and been seeing alots of packet drops on my default and my qothersHigh which is HTTPS and on p2p no drops when i try to torrent.

            I wonder why on qdefault priority was given a 3?

            See pictures

            Thank you

            Clipboarder.2015.10.04-003.png
            Clipboarder.2015.10.04-003.png_thumb
            Clipboarder.2015.10.04-004.png
            Clipboarder.2015.10.04-004.png_thumb
            Clipboarder.2015.10.04-005.png
            Clipboarder.2015.10.04-005.png_thumb
            Clipboarder.2015.10.04-006.png
            Clipboarder.2015.10.04-006.png_thumb
            Clipboarder.2015.10.04-007.png
            Clipboarder.2015.10.04-007.png_thumb
            Clipboarder.2015.10.04-008.png
            Clipboarder.2015.10.04-008.png_thumb
            Clipboarder.2015.10.04-009.png
            Clipboarder.2015.10.04-009.png_thumb

            Tutorials:

            https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

              @killmasta93:

              Alright for now im going to focus on traffic shaping only http-https sites for now until i understand how HFSC works.

              After that i wanted to see the queue and been seeing alots of packet drops on my default and my qothersHigh which is HTTPS and on p2p no drops when i try to torrent.

              I wonder why on qdefault priority was given a 3?

              See pictures

              Thank you

              Drops are caused by too small of buffers, which default to 50 unless you specify otherwise. Make them larger. I recommend just using CoDel, but I am not sure if queue size applies to CoDel when used as a child discipline.

              P2P may not have drops because uTP, which is primarily used by Torrent, is much less aggressive than TCP.

              What you showed looks good. My only personal opinion would be to have qDefault on the LAN and explicitly place LAN traffic in qLink.

              1 Reply Last reply Reply Quote 0
              • K
                killmasta93
                last edited by

                Hi,
                Thanks for the reply, So i was having trouble with HFSC and went to PRIQ for the LAN and for WAN went to CODELQ.

                Now i guess my question is lets say machine A is downloading an iso of 4gigs at a rate of 200kb and

                machine B is trying to navigate the web would Machine B have priority over machine A?

                And would machine A rate lower to around 100kb or less because Machine B have priority?

                Thank you, and sorry that im a bit confused.

                See pictures

                Clipboarder.2015.10.04-013.png
                Clipboarder.2015.10.04-013.png_thumb
                Clipboarder.2015.10.04-014.png
                Clipboarder.2015.10.04-014.png_thumb
                Clipboarder.2015.10.04-015.png
                Clipboarder.2015.10.04-015.png_thumb
                Clipboarder.2015.10.04-017.png
                Clipboarder.2015.10.04-017.png_thumb
                Clipboarder.2015.10.04-018.png
                Clipboarder.2015.10.04-018.png_thumb

                Tutorials:

                https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

                  http://www.linksysinfo.org/index.php?threads/qos-tutorial.68795/

                  Read that link and research until you understand every part of it. That is a good place to start.

                  Proper usage QoS needs a good understanding of internetworking fundamentals like TCP congestion control algorithms.

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

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

                    FairQ or CoDel may not need any priority because they are biased against bandwidth hogs. They provide no guarantees, but on average should be "good enough". If you can't understand HFSC, you probably don't understand enough theory to worry yourself with details and "good enough" is your best bet.

                    1 Reply Last reply Reply Quote 0
                    • K
                      killmasta93
                      last edited by

                      Thanks again I will check it out and post back once I get everything :)

                      Tutorials:

                      https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

                      1 Reply Last reply Reply Quote 0
                      • K
                        killmasta93
                        last edited by

                        Hey just curious questions, I have been reading alot on other forums about traffic shaping (Limiter) with transparent proxy and it seems that it is still broken.  Does that also include on the queues?

                        Thank you

                        Tutorials:

                        https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

                          I do not think so, but I do not know. Traffic shaping queues function as expected for me.

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

                          1 Reply Last reply Reply Quote 0
                          • K
                            killmasta93
                            last edited by

                            allright so i think I got it, but have a few questions

                            I made qVOIP as my highest then http,dns second then last everything else would be lowered to 5 percent.

                            I ran some tests on torrents and it did work, max rate was 73kbit download speed and while  ping 8.8.8.8  around 60-80 see pictures

                            But my questions is how come so little packet drops for qCatchall? And when I did a speed test it was less then 1mbit down/1mbit up but no packet loss thats where i get confused.

                            Also not sure where to add the codel on which Queues?

                            Thank you

                            Clipboarder.2015.10.12-015.png
                            Clipboarder.2015.10.12-015.png_thumb
                            Clipboarder.2015.10.12-016.png
                            Clipboarder.2015.10.12-016.png_thumb
                            Clipboarder.2015.10.12-017.png
                            Clipboarder.2015.10.12-017.png_thumb
                            Clipboarder.2015.10.12-018.png
                            Clipboarder.2015.10.12-018.png_thumb
                            Clipboarder.2015.10.12-019.png
                            Clipboarder.2015.10.12-019.png_thumb
                            Clipboarder.2015.10.12-020.png
                            Clipboarder.2015.10.12-020.png_thumb
                            Clipboarder.2015.10.12-021.png
                            Clipboarder.2015.10.12-021.png_thumb
                            Clipboarder.2015.10.12-022.png
                            Clipboarder.2015.10.12-022.png_thumb
                            Clipboarder.2015.10.12-023.png
                            Clipboarder.2015.10.12-023.png_thumb
                            Clipboarder.2015.10.12-024.png
                            Clipboarder.2015.10.12-024.png_thumb
                            Clipboarder.2015.10.12-026.png
                            Clipboarder.2015.10.12-026.png_thumb
                            Clipboarder.2015.10.12-028.png
                            Clipboarder.2015.10.12-028.png_thumb
                            Clipboarder.2015.10.12-029.png
                            Clipboarder.2015.10.12-029.png_thumb
                            Clipboarder.2015.10.12-030.png
                            Clipboarder.2015.10.12-030.png_thumb
                            Clipboarder.2015.10.12-031.png
                            Clipboarder.2015.10.12-031.png_thumb

                            Tutorials:

                            https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

                              Just remember that realtime always takes from the root and ignores upperlimit and link share. Of course any bandwidth above realtime respects upperlimit and link share.

                              And a 500 queue is very large for 13Mb of bandwidth. That's about 500ms of latency if the entire queue was full of 1500 byte packets. If in doubt, enable CoDel on all queues.

                              I also noticed that you said your connection is 12mb, but you set your shaper to 13Mb. On your download you should set your bandwidth to about 90%-95% of your minimum bandwidth. This means if you average 12Mb, but it comes in as a fluctuating 11Mb-13Mb, you should target 95% of 11Mb.

                              1 Reply Last reply Reply Quote 0
                              • K
                                killmasta93
                                last edited by

                                Hi Harvy66 thank you again for the reply :)

                                Just remember that realtime always takes from the root and ignores upperlimit and link share. Of course any bandwidth above realtime respects upperlimit and link share.

                                does that explain the speedtest pictures, while enabling traffic shaping  would speedtest results be different? Not really sure if I understood the last part, any bandwidth do you imply the WAN queues o the LAN.

                                And a 500 queue is very large for 13Mb of bandwidth. That's about 500ms of latency if the entire queue was full of 1500 byte packets. If in doubt, enable CoDel on all queues.

                                I saw on a previous post that you showed your pics which had 1024 Queues should i follow somewhat your pics? When enabling CoDel on all queues should I remove all the queue limits?

                                I also noticed that you said your connection is 12mb, but you set your shaper to 13Mb. On your download you should set your bandwidth to about 90%-95% of your minimum bandwidth. This means if you average 12Mb, but it comes in as a fluctuating 11Mb-13Mb, you should target 95% of 11Mb.

                                Thank you that was a very good point you made I wasn't really sure,  I would have days that its 11 others 12.9

                                And my last questions how were my firewall rules? where they correct? or is there any recommendation you could tip me  :)?

                                Thank you again

                                Tutorials:

                                https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

                                  If you enable CoDel, the queue limit is unused.

                                  With CoDel enabled my queue is 2-4 packets even though it is defaulted at 50.

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

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

                                    Your speedtest is going into the catchall, which has an upperlimit of 10%. Probably because many speedtests use port 8080 for some reason.

                                    1 Reply Last reply Reply Quote 0
                                    • K
                                      killmasta93
                                      last edited by

                                      Thank you for the replies

                                      @Nullity

                                      If you enable CoDel, the queue limit is unused.

                                      With CoDel enabled my queue is 2-4 packets even though it is defaulted at 50.

                                      Would it be recommended enabling it on the Default queue both LAN and WAN?

                                      @Harvy66

                                      Your speedtest is going into the catchall, which has an upper limit of 10%. Probably because many speedtests use port 8080 for some reason.

                                      but isnt my upper limit on catchall 5%? But whats funny My navigation speed on websites are great or should i be worried about the speedtest result?, But lets say I would need to download a heavy file and I would need to bypass the queue would that be possible or I would need to turn it off?

                                      Thank you

                                      Tutorials:

                                      https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

                                        @killmasta93:

                                        Thank you for the replies

                                        @Nullity

                                        If you enable CoDel, the queue limit is unused.

                                        With CoDel enabled my queue is 2-4 packets even though it is defaulted at 50.

                                        Would it be recommended enabling it on the Default queue both LAN and WAN?

                                        The answer is complicated.

                                        Though, thankfully, you can simply use trial & error to determine whether you prefer CoDel or not.

                                        tldr; enable

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

                                        1 Reply Last reply Reply Quote 0
                                        • K
                                          killmasta93
                                          last edited by

                                          Thanks Nullity for the reply I think I am getting the hang of it doing lots trail and error.

                                          So i think on the LAN part (download) I have been able to tweak it with the catchall to a decent amount without hurting download streams, but the WAN(upload) do we have any control of it?

                                          Lets say someone is uploading 1gig of information to dropbox with a 2mb upload speed it kills the internet I have seen my WAN RTT to around 300ms when originally its around 1.3ms, is there a possible way to put that catchall on the WAN for only protocols of dropbox,mega,wetransfer?

                                          Also streaming netflix,youtube, going to webpages that uses the LAN queues right?

                                          Thank you

                                          Tutorials:

                                          https://www.mediafire.com/folder/v329emaz1e9ih/Tutorials

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

                                            Before using pfSense, I was proud of my networking knowledge because I knew the diff between a switch and a hub.  ???

                                            Then I became interested in traffic-shaping and realized I knew nothing about computer networking. After reading a few networking books and many dozens of (incomprehensible, lol) white-papers centered around HFSC, I finally feel comfortable configuring a simple traffic-shaping setup.

                                            I say this because all your questions are already answered in books, the pfSense wiki, and Google. Go read. :)

                                            We ain't your lackeys. :)

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

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