Auto-negotiation

On this page 7

Auto-negotiation is the Ethernet mechanism that lets two devices on a link exchange their capabilities and select the highest common operating mode, including speed, duplex and flow control, before normal traffic begins. It is defined in IEEE 802.3 Clause 28 for twisted-pair links and extended in later clauses for faster and backplane interfaces.

As a foundational function in Ethernet & switching, auto-negotiation allows a laptop, a server or a network switch port to connect at 10 Mb/s, 1 Gb/s or 10 Gb/s without manual configuration. It is mandatory for 1000BASE-T and faster twisted-pair standards, because those links also use it to agree on clock roles.

How auto-negotiation exchanges capabilities

On twisted-pair copper, auto-negotiation runs over Fast Link Pulses (FLPs), bursts of 17 to 33 pulses sent roughly every 16 milliseconds while no data link exists. The pulses encode a 16-bit base page that lists the technologies a device supports, its pause capabilities and a remote fault flag.

Each side compares its own list with the partner’s and applies a fixed priority resolution table: the highest-performance mode that both advertise wins. For gigabit and faster modes, devices exchange additional next pages carrying extended abilities and the master-slave clock preference.

The sequence below outlines what happens when a cable is plugged in between two compliant ports.

PhaseWhat the devices doResult
Pulse detectionEach port sends FLP bursts and listensPartner presence is confirmed
Base page exchangePorts advertise speeds, duplex and pauseCommon abilities are known
Next page exchangePorts share gigabit and vendor dataMaster and slave roles are set
Priority resolutionPorts select the best shared modeHighest common denominator is chosen
Link establishmentPhysical layer trains in the chosen modeLink comes up and frames flow
Auto-negotiation sequence on a twisted-pair link

Parameters that auto-negotiation settles

Auto-negotiation resolves more than speed. It decides duplex mode, pause frame support and, on gigabit copper, which side provides the reference clock. Modern implementations also coordinate Energy-Efficient Ethernet (IEEE 802.3az) and, for multi-gigabit links, the choice among 2.5, 5 and 10 Gb/s rates defined in IEEE 802.3bz.

ParameterPossible valuesWhy it matters
Speed10 Mb/s to 10 Gb/s on copperSets the link throughput
DuplexHalf or fullFull duplex removes collisions
Pause capabilityNone, symmetric, asymmetricEnables IEEE 802.3x flow control
Master or slave rolePreferred, forced or resolvedRequired for 1000BASE-T clocking
Energy-Efficient EthernetSupported or notAllows low-power idle periods
Forward error correctionOff, BASE-R FEC, RS-FECNeeded on many 25 Gb/s and faster links
Link parameters negotiated between Ethernet ports

On fiber links, behavior differs. 1000BASE-X uses Clause 37 negotiation only for duplex and pause, because the speed is fixed by the optics. Many 10 Gb/s fiber interfaces do not negotiate at all, while 25 Gb/s and faster direct-attach and backplane links use Clause 73 to agree on rate and FEC.

Auto-negotiation compared with fixed settings

Network administrators can either let ports negotiate or hard-code speed and duplex. Fixed settings were popular in the early 2000s, when some implementations negotiated unreliably, but today the general recommendation is to leave auto-negotiation enabled on both ends.

Side ASide BTypical outcome
AutoAutoBest common mode, full duplex
Fixed 100 Mb/s fullFixed 100 Mb/s fullWorks if both are set identically
Fixed 100 Mb/s fullAutoDuplex mismatch: B falls back to half duplex
Fixed 1 Gb/s copperAutoOften no link, since 1000BASE-T requires negotiation
Auto with speed limitAutoHighest mode within the advertised limit
Outcomes of different configuration combinations

The third row explains the most notorious failure. When one side is forced and stops sending FLPs, the auto side uses parallel detection: it can sense the speed from the signal but not the duplex, so the standard requires it to assume half duplex. The result is a link that comes up at the right speed but performs badly.

Troubleshooting negotiation problems

Negotiation faults usually show up as slow transfers, rising error counters or links that settle at a lower speed than expected. Interface statistics on a managed switch are the first place to look, because the symptoms are characteristic.

SymptomLikely causeCorrective action
Late collisions and CRC errorsDuplex mismatchSet both ends to auto
Gigabit port links at 100 Mb/sDamaged pair in the cableTest or replace the cabling
Link flaps repeatedlyMarginal cable or faulty transceiverCheck cable length and optics
No link on a fiber portNegotiation enabled on one side onlyMatch negotiation settings
Throughput far below line ratePause frames or mismatched FECReview flow control and FEC
Symptoms of negotiation faults and their usual causes

A frequent and often overlooked cause of downshift to 100 Mb/s is a cable with one broken pair. 100BASE-TX needs only two pairs, while 1000BASE-T needs all four, so many PHYs deliberately fall back when a pair fails. Cable diagnostics built into switch PHYs, often called time-domain reflectometry, can locate such faults.

Best practices for switch ports

Consistent policy prevents most negotiation problems. The guidance below reflects common practice in enterprise and data center networks built on managed switches.

  • Keep auto-negotiation on for copper access ports and server ports unless a device documents a specific requirement.
  • Change settings on both ends together whenever a fixed configuration is unavoidable.
  • Limit advertised speeds instead of forcing a speed when a slower rate is needed, so duplex still negotiates.
  • Match FEC and negotiation modes on high-speed fiber and direct-attach links, consulting both vendors’ documentation.
  • Monitor error counters after any cabling or configuration change to catch mismatches early.

Put simply

When two people from different countries meet, they quickly check which languages they both speak and then pick the one they know best. Auto-negotiation is that quick check for network devices.

The moment a cable connects a computer to a switch, both devices announce what they can do, such as how fast they can talk and whether they can talk and listen at the same time. They then agree on the best option both support, all within a fraction of a second and without anyone touching a setting.

In practice

A medium-sized office reports that nightly backups to a file server take six hours instead of the usual forty minutes. The server connects to a managed switch through a copper port, and the link shows as up at 100 Mb/s.

The network technician finds that an earlier administrator had forced the server adapter to 100 Mb/s full duplex, while the switch port remained on auto. The switch had therefore fallen back to half duplex, and its counters showed thousands of late collisions. The technician also replaces an aging patch cable that tests with a faulty pair. With both ends set to auto-negotiation and a new cable installed, the link comes up at 1 Gb/s full duplex, errors stop and the backup completes in about thirty minutes.