Initial connection to file share via DFS-N is slow

Ben Cashmore 0 Reputation points
2023-06-02T08:12:11.5533333+00:00

We have recently moved over to using DFS-N for our file shares that are hosted in Azure File Storage.

We have 9 x DCs and 1 x DFS-N server using root consolidation (all running Windows Server 2019). All on the local network.

On a users device, when browsing to the direct file share path their is no delay but when browsing to the DFS path there is an initial 10-20 second delay then you can access all the folders in the share fine for a period of time. Oddly I tested on our DCs and there is no delay when using the DFS path.

I have ran a dfsdiag and no errors were returned. Checked metadata is correctly set to use FQDN. Checked through event viewer.

I added registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dfs DFSDnsConfig = 1 to all DCs and the DFS server, all servers were then restarted but no change in performance. I did try browsing via netbios and FQDN but there is no difference so above registry change was probably not required but wanted to test anyway.

Site and Services appear to be setup correctly, all servers are in the same local site.

I compared the properties on the DFS tab on both a fast and slow device but they both look exactly the same.

I ran Wireshark to see if anything looked out of place but nothing jumped out at me, only thing I could see is there is no record of it connecting to DNS to pick up the IP for the DFS server which must mean this entry if already cached on the device. There is a lot of back and forth acknowledgments between the device and the Azure File Share location.

We found if you use mapped drives (DFS address) you can get into the file share instantly. You only seem to get the delay when manually browsing to the UNC path of the DFS File Share and when you try to save a document in word/excel/other app to the mapped drive although there is no delay when opening a document from an app using the mapped drive.

Any advice please on what could be causing the initial delay?

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,751 Reputation points
    2023-06-05T11:13:09.57+00:00

    Hello there,

    There might be slow data access for DFS namespace referrals when IPV6 is incorrectly disabled.

    If this is a network across several locations, the DC sites may not be configured accordingly. Then the client could pick up a DC from a different site and try to access a DFS over a WAN link instead of a local (or closer) replica.

    The IPv6 protocol on the DFS-N target's active network interface (NIC) has been partially disabled using an

    incorrect method, and must be either re-enabled or fully disabled.

    Option I - The preferred method is to place a checkmark next to "Internet Protocol Version 6 (TCP /IPv6)"

    on the IP Properties of the active NIC adapter and reboot the DFS-N target server.

    Option II - For administrators who want all IPv6 traffic disabled, there is a supported (but not Microsoft

    recommended) method to disable outbound IPv6 using the DisabledComponents registry value as

    directed by Microsoft KB article 929852.

    Guidance for configuring IPv6 in Windows for advanced users https://learn.microsoft.com/en-GB/troubleshoot/windows-server/networking/configure-ipv6-in-windows

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–


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.