Friday, November 13, 2015

[FreeNAS Slow Network]: Slow Network

Slow Network FreeNAS

502. Slow network.

 
Views: 15800
Votes: 8
Posted on Tuesday, December 19, 2006 by Tim Fehlman
http://www.dailycupoftech.com/category/freenas /

I had deployed a new network with a server and a number of workstations. Everything worked fine and the network connectivity was there but everything was painfully slow. All the network applications took forever to come up and file transfers were ridiculous. After about two weeks, I finally discovered the problem.

When I created the images for the workstations, I built the image with the network card set to a speed of 100 Mbits and full duplex. At the last minute, we switched from a managed switch to an unmanaged switch. Most unmanaged switches have their speed duplexing set to autonegotiation. It was at this point that I made a bad assumption.

And I assumed that since the network cards on each workstations were hard coded to 100/full, the switch would automatically recognize this and set each port to 100/full as well. In reality, I had created a duplex mismatch. Essentially, the network cards were looking for a 100/full link on the other end of their patch cable while the switch was expecting an autonegotiation session. Neither got what they were looking for and trouble ensued!

The long and the short of it is that you have to be sure that what is on one end of a patch cable is the same on the other end of the patch cable. That also goes for autonegotiation. Both devices need to be set to autonegotiation. If only one is set that way, then you will experience all types of network slowdowns! So remember:

10 to 10
100 to 100
1000 to 1000
half to half
full to full
auto to auto
Make sure that all of your speed and duplex match on all of your devices.
Quick Summary

  • Auto-negotiation is not 100% reliable, but it does generally work.
  • Links with a duplex mismatch will operate, but will generate large numbers of errors, and can slow down busy networks.
  • For most interfaces, both speed and duplex need to be set to auto for full auto-negotiation to work.
  • Forcing a Catalyst switch port to a specific speed disables auto-negotiation for the duplex setting.
  • Full-duplex mode can be achieved only if both sides of the link are either set to auto-negotiate or manually configured to use full-duplex.
  • Full-duplex will work only if a host is connected directly to a switch or other device, with no repeaters or hubs in-between.
  • If auto-negotiation is enabled on only one side of the link, it will always default to half-duplex, regardless of what the other side of the link is forced to.
  • If one side of a link is forced to full duplex and the other is set to auto-negotiation, a duplex mismatch will occur.
  • You can force a new auto-negotiation by simply unplugging a host cable for 10 seconds.
  • Most 10 Mb interfaces can run only in 10Mb half-duplex mode.
  • Most 10/100 Mb interfaces can do auto-negotiation. Most 10/100 Mb interfaces with RJ-45 twisted pair jacks can run in full-duplex mode.
  • Any network connected via an AUI port (with an external transceiver, for example) can run only in 10Mb half-duplex mode.

No comments: