ArticleslgStudy

computer science

Autonegotiation

Autonegotiation is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Autonegotiation rather than just read about it. In short: Autonegotiation is a signaling mechanism and procedure used by Ethernet over twisted pair by which two connected devices choose common transmission parameters, such as speed, duplex mode, and flow control. In this process, the connected devices first share their capabilities regarding these parameters and then choose the highest-performance transmission mode they both support.

Autonegotiation — main illustration
Autonegotiation — illustration

Key takeaways

  • Autonegotiation belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Autonegotiation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Autonegotiation from memory before moving on to harder problems.

Reference excerpt

Autonegotiation is a signaling mechanism and procedure used by Ethernet over twisted pair by which two connected devices choose common transmission parameters, such as speed, duplex mode, and flow control. In this process, the connected devices first share their capabilities regarding these parameters and then choose the highest-performance transmission mode they both support. Autonegotiation for twisted pair is defined in clause 28 of IEEE 802.3. and was originally an optional component in the Fast Ethernet standard. It is backwards compatible with the normal link pulses (NLP) used by 10BASE-T. The protocol was significantly extended in the Gigabit Ethernet standard, and is mandatory for 1000BASE-T gigabit Ethernet over twisted pair. In the OSI model, autonegotiation resides in the physical layer.

Standardization and interoperability In 1995, the Fast Ethernet standard was released. Because this introduced a new speed option for the same wires, it included a means for connected network adapters to negotiate the best possible shared mode of operation. The autonegotiation protocol included in IEEE 802.3 clause 28 was developed from a patented technology by National Semiconductor known as NWay. The company gave a letter of assurance for anyone to use their system for a one time license fee. Another company has since bought the rights to that patent. The first version of the autonegotiation specification, in the 1995 IEEE 802.3u Fast Ethernet standard, was implemented differently by different manufacturers leading to interoperability issues. These problems led many network administrators to manually set the speed and duplex mode of each network interface. However, the use of manual configurations may lead to duplex mismatches. These can be difficult to diagnose because the network is nominally working. Simple network testing utilities such as ping may report a valid connection. However, network performance will be significantly impacted by transmission aborts and subsequent Ethernet frame drops that result from a duplex mismatch. When a duplex mismatch is occurring, the side of the connection that is using half-duplex will report late collisions, while the side using full-duplex will report FCS errors. The autonegotiation specification was improved in the 1998 release of IEEE 802.3. This was followed by the release of the IEEE 802.3ab Gigabit Ethernet standard in 1999 which specified mandatory autonegotiation for 1000BASE-T. Autonegotiation is also mandatory for 1000BASE-TX and 10GBASE-T implementations. Currently, most network equipment manufacturers recommend using autonegotiation on all access ports and enable it as a factory default setting.

Function Autonegotiation can be used by devices that are capable of more than one transmission rate, different duplex modes (half duplex and full duplex), and different transmission standards at the same speed (though in practice only one standard at each speed is widely supported). During autonegotiation, each device declares its technology abilities, that is, its possible modes of operation. The best common mode is chosen, with higher speed preferred over lower, and full duplex preferred over half duplex at the same speed. Parallel detection is used when a device that is capable of autonegotiation is connected to one that is not. This happens if a device does not support autonegotiation or autonegotiation is disabled on a device. In this condition, the device that is capable of autonegotiation can determine and match speed with the other device. This procedure cannot determine duplex capability, so half duplex is always assumed. Other than speed and duplex mode, autonegotiation is used to communicate the master-slave parameters for gigabit Ethernet.

Priority Upon receipt of the technology abilities of the other device, both devices decide the best possible mode of operation supported by both devices. Among the modes that are supported by both devices, each device chooses the one that is highest priority. The priority among modes is as follows:

40GBASE-T full duplex 25GBASE-T full duplex 10GBASE-T full duplex 5GBASE-T full duplex 2.5GBASE-T full duplex 1000BASE-T full duplex 1000BASE-T half duplex 100BASE-T2 full duplex 100BASE-TX full duplex 100BASE-T2 half duplex 100BASE-T4 half duplex 100BASE-TX half duplex 10BASE-T full duplex 10BASE-T half duplex

Electrical signals

Autonegotiation is based on pulses similar to those used by 10BASE-T devices to detect the presence of a connection to another device. These link integrity test (LIT) pulses are sent by Ethernet devices when they are not sending or receiving any frames. They are unipolar positive-only electrical pulses of a nominal duration of 100 ns, with a maximum pulse width of 200 ns, generated at a 16 ms time interval with a timing variation tolerance of 8 ms. A device detects the failure of a link if neither a frame, nor two of the LIT pulses, is received for 50-150 ms. For this scheme to work, devices must send LIT pulses regardless of receiving any. In the autonegotiation specification, these pulses are called normal link pulses (NLP).

NLPs used by autonegotiation are still unipolar, positive-only, and with a nominal duration of 100 ns; but each LIT is replaced by a pulse burst consisting of 17 to 33 pulses sent 125 μs apart. Each pulse burst is called a fast link pulse (FLP) burst. The time interval between the start of each FLP burst is the same 16 ms as between NLPs.

The FLP burst consists of 17 NLP at a 125 μs time interval with a tolerance of 14 μs. Between each pair of two consecutive NLPs (i.e. at 62.5 μs after the first NLP of the pulse pair), an additional positive pulse may be present. The presence of this additional pulse indicates a logical 1, its absence a logical 0. As a result, every FLP contains a 16-bit data word. This data word is called a link code word (LCW). The bits of the LCW are numbered from 0 to 15, where bit 0 corresponds to the first possible pulse in time and bit 15 to the last.

The base link code word Every fast link pulse burst transmits 16 bits of data known as a link code word. The first such word is known as a base link code word, and its bits are used as follows:

… excerpt ends here. Continue reading the full article.

Illustrations

Autonegotiation: Three bursts of fast link pulses, used by autonegotiating devices to declare their capabilities
Three bursts of fast link pulses, used by autonegotiating devices to declare their capabilities
Autonegotiation: How a link code word (a 16-bit word) is encoded in a fast link pulse burst
How a link code word (a 16-bit word) is encoded in a fast link pulse burst

Worked examples

Example 1 — a first encounter with Autonegotiation

Start with the simplest possible case. Write down what Autonegotiation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Autonegotiation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Autonegotiation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Autonegotiation

In research
Autonegotiation appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Autonegotiation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Autonegotiation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Ethernet, Network protocols, so understanding it makes those chapters shorter.
In everyday life
Look for Autonegotiation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Autonegotiation” →

How to study Autonegotiation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Autonegotiation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Autonegotiation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Autonegotiation in simple terms?

Autonegotiation is a signaling mechanism and procedure used by Ethernet over twisted pair by which two connected devices choose common transmission parameters, such as speed, duplex mode, and flow control. In this process, the connected devices first share their capabilities regarding these paramet…

Why does Autonegotiation matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Autonegotiation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Autonegotiation.

Tags

  • Ethernet
  • Network protocols

Keep exploring