Description | This article describes how to troubleshoot slow SMB traffic transfer over FortiGate SD-WAN. |
Scope |
FortiGate SD-WAN. |
Solution |
SMB (The Server Message Block) is a client-server communication protocol using ports 139 and 445 with TCP. This protocol is used to provide access to files, printers, serial ports and other resources on a network, while ‍Samba is an open-source implementation of the SMB protocol. Typically, SMB is used to access a file hosted in a shared folder on a remote server. The article provides a guide about how to troubleshoot when expiring slowness with download or upload files.
A bottom-up troubleshooting approach following ISO Model is recommended.
Connections status analysis: on Fortinet SD-WAN, Underlays or Overlays connections must be mapped as SD-WAN Members.To discover a performance degradation on a SD-WAN member monitored with a Performance SLA, there are 3 ways:
diagnose sys sdwan health-check
More detailed information can be found in this document: Administration guide: Monitoring performance-sla.
In cases where IPsec tunnels are used as SD-WAN members, an underlay degradation can usually cause IPsec flaps. It is possible to verify IPsec tunnel stability by analyzing VPN Logs under Log & Report -> System Event -> VPN Events:
Poor underlay performance is only one of the possible causes of IPsec instability. To find out the root cause, it is necessary to debug the ike demon responsible for IPsec tunnel installation and maintenance. More details can be found in these articles:
SD-WAN Rules configuration analysis: to understand if the SD-WAN is properly configured, it is necessary to first verify which one is steering the traffic with the slowdown issues. Here are two ways to find the matching rule:
diagnose sys session list
More details about how to do this are available here: Technical Tip: How to find the SD-WAN rule and SD-WAN member used. When analyzing SD-WAN logs, remember the following:
One possible cause for the issue is if the rule that steers SMB traffic uses a Load Balance Strategy (called Maximize Bandwidth (SLA) prior to FortiOS v7.4.1 firmware), as in this example:
This could be the cause of the issue.
A huge amount of SMB traffic is managed by different sessions by FortiGate, so if the SD-WAN rule matched a used Load Balance strategy, traffic is equally distributed per session with a round-robin algorithm between all rule SD-WAN members in SLA (as explained in Administration Guide: Load balancing strategy) and shown on logs for a transfer file using SMB:
It is possible to force traffic to use only the best member with a new rule moved on top of an existing one and configured with proper IP/subnets and a Best Quality strategy. For example:
The SD-WAN Best Quality strategy chooses the best link to forward traffic comparing the 'link-cost-factor' defined via health-check, as shown in the following logs for a file transfer via SMB:
More details about Best Quality strategy can be found here: Administration Guide: Best Quality strategy.
The SD-WAN rule member used is the one with the black tick:
If the issue is still not resolved after all of the analysis and tests described above, investigate the following:
To identify the root cause, it may be necessary to analyze traffic captures:
Note the following:
Other related documents: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.