Help us enhance your Sophos Community experience. Share your thoughts in our Sophos Community survey.

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

Sophos XG 18 MR3 DPI slow download

Hi all,

after going from decrypting HTTPS traffic by proxy to the dpi engine my download performance dropped massivly.

I am on a SG 230 hardware where the XG 18 MR3 is installed on.

Taking the same side downloading an ISO file via HTTPS with proxy and SSL decryption a get 100mbit/s troughput which is the max of my internet connection.

switching to DPI I get arround 16mbit/s. If a start a second, third download an so on I can max out my internet connection.

switching back and forth between proxy and dpi I can always reproduce this.

this happens only to HTTPS sessions with DPI turned on.

The load on the FW is never higher than 20% while testing.

Could there be an issue that DPI is somehow limiing the throughput within a session? No QoS is defined...

I tried different DPI policies and nothing changed the behavior.

Thanks for your help

best



This thread was automatically locked due to age.
Parents
  • This is just the way it is.  Also you get the bonus of it breaking random sites with no idea why or what to do about it.

  • are there any new ideas on this topic?

    I don't think that this is not happening to lot's of other people if this would be a bug?

  • Hi,

    it happens on MAC clients, MBP, iPad, iPhones.

    Mail - iMap/s and smtp/s fail with no error messages.

    Ian

    XG115W - v20.0.1 MR-1 - Home

    XG on VM 8 - v20 GA

    If a post solves your question please use the 'Verify Answer' button.

  • I have to admit, that I just testet DPI for HTTP(s) and as this was causing issues I did  not extend the coverage, so I can't talk about imap and smtp.

    My current solution is just not to use DPI which is a petty because I would like to make use of it...

  • Just to confirm, if you use DPI, can you extend the speed of your Line with multiple sessions? For example Ookla uses different downloads at the same time. https://www.speedtest.net/ You can run multiple or single tests. 

    Whats the performance with DPI on your appliances? 

    __________________________________________________________________________________________________________________

  • right, this works. If i start several downloads I can max out my connection

  • The reason for the speed difference is because the underlying software on Sophos XG  - who does the DPI is heavily single-core, if you start a download with a single connection the DPI will only be able to use a single core to do almost everything, from the decryption/encryption to IPS and so on.

    Meanwhile with multiple connections the DPI Engine is able to share the load with all available cores of your appliance.

    The day Sophos updates Snort to 3.1, this issue will be (probably) solved.


    If a post solves your question use the 'Verify Answer' button.

    Ryzen 5600U + I226-V (KVM) v20 GA @ Home

    XG 115w Rev.3 8GB RAM v19.5 MR3 @ Travel Firewall

  • Might be, but in my case my cores are not maxed out, there is lots of performance left on every single core and when using Linux instead of windows DPI works at full speed.

  • just to add, I tested this with a single client connected to a 230 Appliance which also was a fresh install with 18.4.

    I just got a troughput between 1,6 to 2,5Mbit/s with disabled DPI I get 12Mbit/s and as you can imagine one client on a 230 should not max out the machine.

  • These are interesting facts:

    - Linux and Windows differ in behaviour
    - Multiple parallel connections max out the connection
    - CPU is not fully loaded (I'd expect that a single connection will always go on a single thread/core). In bigger installation this should not be an issue as there will be plenty of connections.


    There are still other parameters that might have an impact:

    - fastpath on/off
    - avanced-firewall tcp settings (https://docs.sophos.com/nsg/sophos-firewall/18.0/Help/en-us/webhelp/cli/PDF/sfos_cliguide.pdf)
    - SSL/TLS decryption

    If the proxy is on there are probably two connections. One going from the client to the sophos and one from sophos to the website.

    When DPI is used I'd assume that the connection is more "direct". As the behavior of linux and windows is different with respect to throughput I'd think that there might be some "live translation" between client <-> sophos and sophos <-> website which fits in case of a linux client and does not fit in case of newer Windows versions.  Analysing such a connection low level in wireshark might help to find the reason for this different behaviour (window size, window scaling, selective acknoledgement, mtu & mms, fragmentation, ...).

    I have seen some bad throughput of Windows Servers through WAN lines with high latency (SMB - never tested with HTTP(S)) so this might be an issue of Sophos firewall OR Windows Server. Multiple connections also helped in this case to increase throughput off the underlying connection.

    Besides some basic testing (and probably using the old proxy afterwards) I won't participate in this. Simply not my task to invest time here. As a lot of people seem to be able to reproduce this it is really surprising that this is lingering around in this forum for months (or even longer) and still seems not to be deeply analysed, troubleshooted and resoved by Sophos.

  • I did some more tesing:

    direct download https://speed.hetnert.de ISO 1 GB

    Win 7 Chrome Cable modem drect 70MB/s

    Win 7 Chrome xg125 Web Proxy  32 MB/s

    Win 7 Chrome xg125 dpi 2,5 MB/s (i read about snort being single core but this is really slow maybe the xg125 is at max cpu?)

    Then i sat up an Ubuntu 20 VM and after fiddling with disabling ipv6 (no cert warning or appliance cert usage):
    Firefox dpi 10 MB/s (I guess firefox uses several sessions for download?)

    Firefox Webproxy 23 MB/s

    If i have some more time i will test multiple sessions

  • thanks for testing this at your end.

    Very strange that everyone seems to get different results while doing the tests.

    If Firefox would use several sessions for a download this should also give good results on Windows 10 which it does not do at my end.

    Currently I have no clue what I could test or change on top of the things I already did. Perhaps it is a bug or an issue I can't resolve, but as long as there is no feedback from Sophos I will stay at the legacy proxy configuration which works very well.

Reply
  • thanks for testing this at your end.

    Very strange that everyone seems to get different results while doing the tests.

    If Firefox would use several sessions for a download this should also give good results on Windows 10 which it does not do at my end.

    Currently I have no clue what I could test or change on top of the things I already did. Perhaps it is a bug or an issue I can't resolve, but as long as there is no feedback from Sophos I will stay at the legacy proxy configuration which works very well.

Children
  • I recently updated my Home UTM to Sophos XG Home firewall, I had a few fun and games with the UEFI boot problem but when I had circumnavigated around that I was pleased with the look and feel of the new interface (despite there not being a SET STATIC option from the lease list in DHCP).  All appeared fine as I played around with the features and settings for a few days until I realised my download speeds via a windows client seemed severely limited from what I had before, I have a 200Mbps download link but via a windows client this was reported as 9Mbps, if I try the same speed test from a MAC computer on the same network it was revealing a 199Mbps download speed.  I tried switching of various features and disabling dpi and using traditional web proxy but could not get download speeds to match the MAC or what I have in reality, the actual system was not heavily loaded.  

    I have now reverted back to my old UTM restore and download speeds are as they should be with 40GB downloads finishing in minutes again instead of the XG network predicted 10 hours.

    This does appear to be an issue with the new XG which I am supposed to be rolling out in my company in a few weeks but am now hesitant if this issue carries over to the business environment.   

    Could an engineer from Sophos confirm this is a known issue and when there is likely to be a fix or if anyone else has found a workaround could they let me know.

  • I took some time looking into this concept and found some interesting points. 

    Of course IPS, App control and web filtering will cause some decrease of performance. 

    I could found some limitation of single connection downloads (single stream). Using a speedtest, everything looks normal (speedtest.net). Using test downloads, which offers a download file, seems to point to this issue. It will slowly increase over time. 

    So if i download for example a 1 GB test file (https://speed.hetzner.de/) which are encrypted, i can start with a slower speed but it increase over time to a acceptable speed. 

    Also by starting multiple connection from this test page, i can quickly match the overall acceptable speed. 

    It is important to understand about the DPI: The client actually communicate with the server. There is no redirect to any proxy what so ever (compared to proxy, which in direct/transparent, will redirect it to the proxy and the proxy build up a new connection).

    Just to confirm: If you see different values on different OS, it could lead to a different handling of the flow state between the server/client. 

    Another question, do you see any kind of increase over the time of a bigger download? 

    And please: For the future discussions, please be specific in your numbers. There is MB/s and there is mbit/s. To mix this up is unhealthy to get a common sense of the actual throughput numbers. 

    __________________________________________________________________________________________________________________

  • No long 40GB downloads did not appear to speed up, I left them for over two hours and they did not increase in speed HOWEVER when I reverted to UTM and tried again the downloads started and finished in minutes.  To my mind there is certainly an issue with the XG firewall, even with IPS and every other feature switched off the speed did not improve.

    edited my original message to be more specific on numbers  :-)

  • We need to be careful. UTM does not have anything like DPI in XG. Its another technology, another approach. The proxy will work differently. Lets see what the other post. 

    __________________________________________________________________________________________________________________

  • I understand DPI in XG is another technology but surely it should not bottleneck your internet bandwidth so severely, I understand it is a technology that is supposed to process packets faster not drop bandwidth from 200Mbps to 9Mbps.  I have three windows machines, a Macbook Pro and a number of wireless devices, CPU sat around11% so the firewall was not overly busy.  Even with features switched off or web proxy enabled the bottleneck was still present.  The reinstated home UTM is working as well as it has for the past 7 years with no discernible bottlenecks, I had upgraded to XG as a home experiment to learn about the new system and as well because I am looking to upgrade some business UTM's, I was just advertising the fact that there appears to be a problem with it and requesting some help from fellow forum members or a Sophos engineer.  Others have reported similar issues so I am not an isolated case.

  • General Question to all who tested:

    Did you diable ip V6 or do you have it configured on the Sophos?

    Since it did rerun some test and had an win10 VM newly created i thouht why not test it to.

    After getting some relatively high speedtest results i checked the cert from the site and it was not from my sophos.

    And that led me to ip v6, which is configured mostly in my infrastructure but not on the xg125, so my win10 client got an ip v6 lease from my dhcp and talked through/over the xg125 with my dsl modem. sort of bypass...i will check how thats possible or has someone a hint?

    So here are some more Numbers, MB=Megabyte, kbit=kilobit

    Testsites: www.wieistmeineip.de , speed.hetzner.de 10GB File for 2-3 Minutes

    W7 + W10 current Chrome

    Ubuntu current Fifrefox

    DPI

    W7  Speedtest  down 155.157 kbit  up fails   Download 10GB 3 MB/s (slows down, when the Ubuntu VM starts the same file)

    Win10 Speedtest  down 160.960 kbit  up 6112 kbit   Download 10GB 2,5 MB/s 

    Ubuntu Speedtest  down 248.445 kbit  up 1575 kbit   Download 10GB 10 MB/s (slows down, when the Ubuntu VM starts the same file)

    Webproxy

    W7  Speedtest  down 742.214 kbit  up 63.936 kbit   Download 10GB 30 MB/s 

    Win10 Speedtest  down 460.061 kbit  up 64.005 kbit   Download 10GB 26 MB/s 

    Ubuntu Speedtest  down 916.345 kbit  up 31.275 kbit   Download 10GB 30 MB/s 

    Cpu Load was around 40% in the gui, top -d1 showed around 45% snort (dpi) org 40-50% awarrenhttp (proxy)

  • My test results, with Windows 10 Clients (VM) 

    Provider vodafon business (1000mbits Download/ 50mbits Upload) 

    Router Fritzbox 6591 (exposed host) --> Sophos XG 210 (Static IP) 

    No ip V6 in Sophos and no ip V6 in Network LAN 

    DPI is still very slow or the download crash after a time 

    WebProx there is no problem 

    CPU Load of the Sophos is max. at 25% with DPI and Multi-Downloads, at WebProxy the CPu goes to round about 50%. 

    Why does Sophos only use one core for a download at DPI, that is actually an exclusion criterion for the DPI. We have to load a lot

    of large files from different servers. With the web proxy you could choose the maximum size. Is this also used for DPI?

     
  • What happen, if you wait some more time after starting the download in DPI Engine? 

    __________________________________________________________________________________________________________________

  • As already written, the download fails after a while. 

  • Why does Sophos only use one core for a download at DPI

    The DPI Engine is based on Snort 2.9.16 which is a single core IDPS (Sophos partially solves this by spawning multiple process and sharing the load between them, but only works with multiple connections).

    Snort 3.1 should resolve this problem since It's fully multi-threaded, but apparently It will take some time until we have It.

    What Rev is your XG 210 ? I didn't expected It to be this slow since Sophos told AES-NI is being used on hardware appliances.


    If a post solves your question use the 'Verify Answer' button.

    Ryzen 5600U + I226-V (KVM) v20 GA @ Home

    XG 115w Rev.3 8GB RAM v19.5 MR3 @ Travel Firewall