Gigabit Switch Spanning Tree Causes Slow Logon

Mark Berry February 8, 2010

I recently installed a Dell PowerConnect 2824 switch, my first foray into managed switches and gigabit networking. I blogged earlier about how to set it up and how to use it for bandwidth monitoring.

The client where I installed the switch reported that an XP workstation (a Dell OptiPlex 755 with a gigabit NIC) was extremely slow to log on immediately after a reboot. Like five minutes or more slow. Once the logon did finally complete, I saw that a logon script had failed to map network drives, although I could map them manually. The issue did not seem to happen on older workstations with 10/100 NICs.

I spent some time chasing event log messages (like Userenv event 1053, “the RPC server is unavailable”) to no avail. To make a long story short, the solution is to enable Fast Link mode on the PowerConnect switch for all ports except those connected to routers, switches, and hubs. Once enabled for this device, I could complete a logon within a few seconds, even right after a reboot.

In PowerConnect 2824 web interface, go to the Switch > Spanning Tree > Port Settings page, and click Show All in the upper right corner. That opens a new page with all ports and settings. Enable Fast Link on the ports connected to endpoints like workstations and IP phones:

PowerConnect 2824 STP Port Table

 

The Dell switch support team came through once again, this time with a helpful explanation of what Fast Link is doing and when to enable it. I later learned that this is not a new problem. Here's a relevant Cisco article apparently written in 2000:

Using PortFast and Other Commands to Fix Workstation Startup Connectivity Delays

As for why it took 5+ minutes for a logon to complete (when spanning tree negotiation should only take 30-40 seconds with Fast Link disabled), my hunch is that with Fast Link disabled, the workstation has issues even before a user logs on. If the workstation thinks that the network is there and immediately starts attempting to connect to the server (for running computer Group Policy etc.), that connection will fail if the switch port is still checking the spanning tree (listening and learning phases). Once that initial server connection fails, other things will be slow as well (DNS, logon, etc.). Fast Link lets the workstation connect to the server almost immediately, so DNS, time sync, and GPO processing can happen as expected.



2 Comments

  1. OSX 10.6 Network Timeout (continued) « Angela Creason's Blog   |  August 27, 2010 at 7:54 pm

    [...] First, we’ve experimented with disabling spanning-tree protocol for our client ports and seen about a 20 second improvement from Mac gong sound to ‘other’ showing up the login options (indicating that it knows there is a network). This had a negligible affect on windows clients. Note: on Dell Gigabit switches this is enabling Fast Link on a client port.  We learned that from this blog post. [...]

Leave a Reply





Notify me of followup comments via e-mail. You can also subscribe without commenting.