Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

QoS question

Hello guys!

I attempted to mess around with Traffic shaping settings and something seems off. Perhaps I am misunderstanding something so I thought I should ask

For starters my internet connection is slow. I actually have two internet lines, one goes up to 8Mbit, the other goes up to about 16-18Mbits

I have setup a VM which I have setup to use the faster internet connection via PBR.

In Traffic Shaping Settings I have Total available WAN bandwidth set to 30000 (which if I understand correctly sets the total available bandwidth to 30Mbits.

I run a speedtest using the speedtest windows app and I get 17Mbits down

I then set the total available bandwidth to 7000 which should limit the speed to about 7Mbits

I re-run the speedtest and I still get the same down speed. Why does this happen? Shouldn't it limit the speedtest to 7Mbits?

What am I doing wrong?

Thanks a lot!

P.S. I also set the limit to 70, just to test, but I still get the same speedtest results 



This thread was automatically locked due to age.
Parents
  • This whole topic is complicated...

    First, what are your actual up/down limits? Are they symmetrical (8 up and 8 down on the one gateway, 18 up 18 down on the other)?

    Second, you won't get a download speed test that exceeds your highest-bandwidth gateway. You reach out to the speed test server through one of your gateways, which will have a particular public IP address (assuming IPv4 here) and that's where the speed test server will respond. You won't magically have that server also respond through the other gateway (that did not contact it) as well. You can get traffic through both gateways simultaneously, which will increase your overall, aggregate bandwidth but won't help a specific connection. You won't get 26 Kpbs for a single connection.

    Third, the Total Bandwidth only works when you also check the Enforce Guaranteed Bandwidth and it's a limit. But again, you will not get faster speed tests than your fastest gateway -- assuming your outgoing request is going through that gateway.

    Fourth, perhaps you're thinking of "buffer bloat" which has to do with latency and jitter, not speed. Traffic Shaping can definitely help there, but that won't increase transfer speeds..

    Fifth, you need to be very careful in SFOS when it says KB it may erroneously (!) mean Kbps (bits) but in the case of Traffic Shaping I think it actually does mean KBps (bytes) If you check the Enforce Total Bandwidth checkbox and put a Total Bandwidth of 1000, I believe you'll see your speed test limit at (1000 * 1000 / 8 = 125K) 125Kbps. Again, I leave the Total Bandwidth box off and do everything via policies.

    For the approach you are describing (which I believe is wrong) you are correct that you'd want to set up (Firewall) Rule policies and then reference them in your firewall rule. But you can also do policies based on Application (which Sophos defines based on traffic type, ports, and perhaps other characteristics), User (in IPv4, I use Clientless Users a lot to organize things and to make various displays clearer), etc.

    How you manage your two gateways is the key here. Using the old-school gateway controls, you can set the two up to be round-robin, etc. I believe if you set the weights so your faster gateway is 2 and your slower gateway is 1, then 2 out of 3 new connections will use the faster gateway. Unfortunately, that's just connections, not bandwidth -- who knows how much bandwidth you intend to use on a particular connection -- so that will help overall and on average, but a particular speed test could go through the slower gateway.

    Using SD-WAN, you can route particular traffic to the appropriate gateway. Also, it depends a LOT on what you are doing. If you're downloading a set of files and have the appropriate download software, you might be able to tell it to open up multiple connections to, say, download 3 files at once, and if you've set up your gateway controls properly, you'd hopefully get two downloading on the faster gateway and one on the slower.

    Or, if you are wanting to watch Youtube and it must be the highest priority of all, you might send that traffic through the faster gateway for Youtube, and all other traffic through the slower gateway. You can probably do some of these things depending on time of day, if you watch Youtube at night.

    As Vivek asked: your end goal matters a LOT, not how you think you are going to accomplish that goal with a tool that's new to you. Please share your actual goal so we can help.

  • Hello, Wayne and thanks for your extensive explanation!

    Let me answer your questions:

    1. The limits are not symmetrical. One ADSL line is about 7.5Mbits/1Mbit. The other line uses a combination of an ADSL line and a 4G LTE sim card which work in bonding mode and combined they have a speed of 18 down/3up. The actual speeds fluctuate from 18 to 30 down and from 2.5 to 5 up. 18/3 is the regular speed I am getting

    2. I am performing the tests through a specific machine which gets limited to a specific gateway each time by a SD-WAN rule. I am not expecting combined speeds, of course.

    3. I was asking what actually total bandwidth does. Thanks for this explanation.

    4. Yes, exactly, I was trying to reduce buffer bloat. I know I can't achieve faster speeds. My goal was to limit both gateways so that when something is being downloaded, the rest of the clients have a positive browsing experience and latency does not go sky-high  

    5. Yes I believe I found the desirable values by trial and error. Offtopic here, Sophos should consider changing this to Mbits, it makes no sense to have it this way IMHO

    After Vivek's responses I started testing a bit and I realised that because I don't have a single WAN connection with a reliable down/up speed, it was not possible to accomplish what I wanted with a single firewall rule. So what I did is to create two different policies, one for the first and another one for the second gateway. Now, as mentioned. I am using SD-WAN rules to pass specific clients through a specific gateway. Those clients have also firewall/web filtering rules in place. So I went to those rules and  made sure to add the traffic shaping policy to them. 

    I then used a specific machine and routed it through one of the gateways. I made sure that the correct shaping policy was set on its firewall rule. Then  run a speedtest to check that my limits were correctly set and run a buffer bloat test. Before messing with everything I was getting a C result. Afterwards a was getting A and in one test I got a B.

    Then changed the policy on the firewall rule to apply shaping for the other gateway. Routed the machine through the second gateway using SD-WAN.

    Speedtest again was showing that limits were correctly set. Bufferbloat tests also showed an overall improvement. 

    Again my concern is not gaining speed, just to improve on browsing experience by lowering latency. So I don't even mind if I am losing a few Mbits down/up in the process

    These changes were applied on Friday and got no complains during the weekend, so I believe I did not mess things up bigtime. But of course there is a chance that I indeed did something wrong and I simply did not get any bad feedback...

    If you think I got something wrong, or set something really off, please do let me know.

    EDIT:

    P.S.: I am expecting a freaking FTTH connection to be available (finally). When this happens I will no longer keep the second internet connection and will have only one (probably a 500/50 connection). When this happens, am I correct to assume that a single firewall rule will suffice for my needs? I was thinking a top firewall rule. Source my LAN, destination WAN and only apply a shaping policy that will limit the speed to 490/49.

    Thanks again!

     
    Sophos XG Home Licence.

    Machine: Checkpoint 3100 appliance (Intel Atom C2558 CPU, 6GB Ram, 250GB sata SSD)

Reply
  • Hello, Wayne and thanks for your extensive explanation!

    Let me answer your questions:

    1. The limits are not symmetrical. One ADSL line is about 7.5Mbits/1Mbit. The other line uses a combination of an ADSL line and a 4G LTE sim card which work in bonding mode and combined they have a speed of 18 down/3up. The actual speeds fluctuate from 18 to 30 down and from 2.5 to 5 up. 18/3 is the regular speed I am getting

    2. I am performing the tests through a specific machine which gets limited to a specific gateway each time by a SD-WAN rule. I am not expecting combined speeds, of course.

    3. I was asking what actually total bandwidth does. Thanks for this explanation.

    4. Yes, exactly, I was trying to reduce buffer bloat. I know I can't achieve faster speeds. My goal was to limit both gateways so that when something is being downloaded, the rest of the clients have a positive browsing experience and latency does not go sky-high  

    5. Yes I believe I found the desirable values by trial and error. Offtopic here, Sophos should consider changing this to Mbits, it makes no sense to have it this way IMHO

    After Vivek's responses I started testing a bit and I realised that because I don't have a single WAN connection with a reliable down/up speed, it was not possible to accomplish what I wanted with a single firewall rule. So what I did is to create two different policies, one for the first and another one for the second gateway. Now, as mentioned. I am using SD-WAN rules to pass specific clients through a specific gateway. Those clients have also firewall/web filtering rules in place. So I went to those rules and  made sure to add the traffic shaping policy to them. 

    I then used a specific machine and routed it through one of the gateways. I made sure that the correct shaping policy was set on its firewall rule. Then  run a speedtest to check that my limits were correctly set and run a buffer bloat test. Before messing with everything I was getting a C result. Afterwards a was getting A and in one test I got a B.

    Then changed the policy on the firewall rule to apply shaping for the other gateway. Routed the machine through the second gateway using SD-WAN.

    Speedtest again was showing that limits were correctly set. Bufferbloat tests also showed an overall improvement. 

    Again my concern is not gaining speed, just to improve on browsing experience by lowering latency. So I don't even mind if I am losing a few Mbits down/up in the process

    These changes were applied on Friday and got no complains during the weekend, so I believe I did not mess things up bigtime. But of course there is a chance that I indeed did something wrong and I simply did not get any bad feedback...

    If you think I got something wrong, or set something really off, please do let me know.

    EDIT:

    P.S.: I am expecting a freaking FTTH connection to be available (finally). When this happens I will no longer keep the second internet connection and will have only one (probably a 500/50 connection). When this happens, am I correct to assume that a single firewall rule will suffice for my needs? I was thinking a top firewall rule. Source my LAN, destination WAN and only apply a shaping policy that will limit the speed to 490/49.

    Thanks again!

     
    Sophos XG Home Licence.

    Machine: Checkpoint 3100 appliance (Intel Atom C2558 CPU, 6GB Ram, 250GB sata SSD)

Children
No Data