Issue with File Transfers between On-premises Computers and Azure Files/Servers

Jose7282 0 Reputation points
2025-02-12T12:18:28.4466667+00:00

We are experiencing issues in our infrastructure when users attempt to upload or download files from on-premises computers to Azure Files Premium or Azure servers via the SMB protocol, resulting in very slow transfer speeds.

The users are connected to a Fortinet firewall (onprem), and there is a Site-to-Site (S2S) connection between the Fortinet firewall and Azure VPN Gateway (SKU1-650 Mbps). The connection seems to be working, but the file transfer process is facing interruptions or failures.

We have checked the metrics for connections to Azure Files, and we've noticed spikes in the "Success E2E Latency" metric, but no issues in the "Success Server Latency" metric.

User's image Clients on-premises are connecting from Spain, while the Azure infrastructure is located in West Europe.

A ping from clients through the Fortinet firewall yields the following data:
User's image

Based on this, we believe there might be an issue with the firewall negotiation with Azure VPN. We have tried setting the MTU to 1400 and TCP MSS to 1350, adjusting various encryption configurations, but without success.

Currently we have this encryption configuration in Fortinet and Azure VPN:

User's image

Any guidance or insights would be greatly appreciated.

Best regards,

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,358 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,640 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,632 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sina Salam 17,491 Reputation points
    2025-02-12T18:27:27.47+00:00

    Hello Jose7282,

    Welcome to the Microsoft Q&A and thank you for posting your questions here.

    I understand that you are having issues with the File Transfers between On-premises Computers and Azure Files/Servers.

    These issues might emanate likely from a combination of TCP inefficiencies, VPN limits, and SMB configuration, try to look into them. However, perform the actions below:

    • Validate SMB 3.1.1 + Multichannel.
    • Upgrade VPN Gateway SKU if bandwidth is capped.
    • Simplify FortiGate policies for SMB traffic.

    If latency/packet loss persists, test with ExpressRoute (Microsoft Peering) for dedicated connectivity. Then, expose Azure Files publicly (with NSG restrictions) temporarily. If speeds improve, the VPN is the bottleneck.

    Then you can confirm if VPN bandwidth is the bottleneck by run an iPerf3 test between an on-premises machine and an Azure VM over the VPN tunnel:

    • Deploy a test VM in the same VNet as Azure Files.
    • Install iPerf3 on both the Azure VM and an on-premises test machine.
    • Run iPerf3 over TCP and UDP to test bandwidth:
    • On Azure VM (server mode) using bash command: iperf3 -s
    • On-Premises Client (test mode) using bash command: iperf3 -c <Azure_VM_IP> -P 4 -t 30
    • For UDP test also: iperf3 -c <Azure_VM_IP> -u -b 650M

    If throughput is significantly below 650 Mbps, the VPN is a bottleneck.

    Also, perform Azure Files Premium Tweaks by improve the throughput provisioning: This is to ensure the file share’s provisioned IOPS/throughput (e.g., 100 GiB = 100+ MB/s baseline) aligns with workload needs. And secondly, confirm clients in Spain aren’t routed through non-optimal paths (e.g., via US). Use Azure Speed Test to check regional connectivity.

    In summary:

    • If iPerf3 confirms VPN is slow, upgrade VPN Gateway SKU or switch to ExpressRoute.
    • If packet loss is high, disable DPI, reconfigure MSS/MTU, and analyze FortiGate logs.
    • If SMB performance is poor but VPN is fine, optimize storage mount settings.
    • If routing is the issue, modify UDR.

    I hope this is helpful! Do not hesitate to let me know if you have any other questions.


    Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.

    0 comments No comments

  2. Jose7282 0 Reputation points
    2025-02-13T09:28:25.0466667+00:00

    Thanks for your response.

    We confirm the following:

    Validate SMB 3.1.1 + Multichannel.

    VPN Gateway SKU bandwidth is not capped.

    However, the FortiGate configuration is managed by another provider, so they are currently reviewing it.

    We have attached Azure File Premium information:

    User's image

    We have also enabled the Azure Premium Files Metadata Cache Preview weeks ago.

    User's image

    And here are the metrics showing spikes in E2E latency:

    Metrics (Avg)

    User's image

    Metrics (Max)

    User's image

    I will follow up once we have tested with iPerf and the FortiGate provider has checked their configuration.

    Regards.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.