Autonegotiation

Last updated

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.

Contents

Autonegotiation for twisted pair is defined in clause 28 of IEEE 802.3. [1] and was originally an optional component in the Fast Ethernet standard. [2] It is backwards compatible with the normal link pulses (NLP) used by 10BASE-T. [3] The protocol was significantly extended in the Gigabit Ethernet standard, and is mandatory for 1000BASE-T gigabit Ethernet over twisted pair. [4]

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. [5] Another company has since bought the rights to that patent. [6] [lower-alpha 1]

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. [7] [8] [9]

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. [10] [11]

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: [12] [13]

  1. 40GBASE-T full duplex
  2. 25GBASE-T full duplex
  3. 10GBASE-T full duplex
  4. 5GBASE-T full duplex
  5. 2.5GBASE-T full duplex
  6. 1000BASE-T full duplex
  7. 1000BASE-T half duplex
  8. 100BASE-T2 full duplex
  9. 100BASE-TX full duplex
  10. 100BASE-T2 half duplex
  11. 100BASE-T4 half duplex
  12. 100BASE-TX half duplex
  13. 10BASE-T full duplex
  14. 10BASE-T half duplex

Electrical signals

A sequence of normal link pulses, used by 10BASE-T devices to establish link integrity. Normal-link-pulses.svg
A sequence of normal link pulses, used by 10BASE-T devices to establish link integrity.

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, [14] 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).

Three bursts of fast link pulses, used by autonegotiating devices to declare their capabilities. Fast-link-pulses.svg
Three bursts of fast link pulses, used by autonegotiating devices to declare their capabilities.

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.

How a link code word (a 16-bit word) is encoded in a fast link pulse burst Link-code-word.svg
How a link code word (a 16-bit word) is encoded in a fast link pulse burst

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.

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:

The technology ability field is composed of eight bits. For IEEE 802.3, these are as follows:

The link code words are also called pages. The base link code word is therefore called a base page. The next page bit of the base page is 1 when the device intends to send other pages, which can be used to communicate other abilities. These additional pages are sent only if both devices have sent base pages with a next page bit set to 1. The additional pages are still encoded as link code words (using 17 clock pulses and up to 16-bit pulses).

Message and unformatted next page

The base page is sufficient for devices to advertise which ones among the 10BASE-T, 100BASE-TX and 100BASE-T4 modes they support. For gigabit Ethernet, two other pages are required. These pages are sent if both devices have sent base pages with a next page bit set to one.

The additional pages are of two kinds: message pages and unformatted pages. These pages are still 16-bit words encoded as pulses in the same way as the base page. Their first eleven bits are data, while their second-to-last bit indicates whether the page is a message page or an unformatted page. The last bit of each page indicates the presence of an additional page. [15]

The 1000BASE-T supported modes and master-slave data (which is used to decide which of the two devices acts as the master, and which one acts as the slave) are sent using a single message page, followed by a single unformatted page. The message page contains:

The unformatted page contains a 10-bit word, called a master-slave seed value.

Duplex mismatch

A duplex mismatch occurs when two connected devices are configured in different duplex modes. This may happen, for example, if one is configured for autonegotiation while the other one has a fixed mode of operation that is full duplex (no autonegotiation). In such conditions, the autonegotiation device correctly detects the speed of operation but is unable to correctly detect the duplex mode. As a result, it sets the correct speed but assumes half-duplex mode.

When a device is operating in full duplex while the other one operates in half duplex, the connection works reliably only at a very low throughput. A full-duplex device may transmit data while it is receiving. However, if the half-duplex device receives data while it is sending, it senses a collision and aborts transmission and then attempts to resend the frame. The full-duplex device will report frame check sequence (FCS) errors on the aborted transmissions. Depending on timing, the half-duplex device may sense a late collision, which it will interpret as a hard error rather than a normal consequence of CSMA/CD and may not attempt to resend the frame. The full-duplex device does not detect any collision and assumes the frame was received without error. This combination of (late) collisions reported at the half-duplex end and FCS errors reported by the full-duplex end are indicators that a duplex mismatch is present.

Patents

Autonegotiation is covered by the US patents U.S. patent 5,617,418 , U.S. patent 5,687,174 , E U.S. patent RE39,405 E , E U.S. patent RE39,116 E , USapplication 971018  (filed 1992-11-02), USapplication 146729  (filed 1993-11-01), USapplication 430143  (filed 1995-04-26); [6] :6 European Patent Applications SN 93308568.0 (DE, FR, GB, IT, NL); Korean Patent No. 286791; Taiwanese Patent No. 098359; Japanese Patent No. 3705610; Japanese Patent 4234. Applications SN H5-274147; Korean Patent Applications SN 22995/93; Taiwanese Patent Applications SN 83104531. [lower-alpha 1]

Auto-Negotiation for single-pair Ethernet

Due to its nature, single-pair Ethernet has its own, optional variant of Auto-Negotiation. It uses differential Manchester encoding (DME) pages to negotiate capabilities in a half-duplex manner. Two different signaling speeds are used: 10/5/2.5GBASE-T1, 1000BASE-T1, 100BASE-T1, and 10BASE-T1S support high-speed mode (HSM) at 16.667 Mbit/s and optionally low-speed mode (LSM) at 625 kbit/s, while 10BASE-T1L supports LSM and optionally HSM. [16]

The selection priority for negotiated modes are: [17]

  1. 10GBASE-T1
  2. 5GBASE-T1
  3. 2.5GBASE-T1
  4. 1000BASE-T1
  5. 100BASE-T1
  6. 10BASE-T1S full duplex
  7. 10BASE-T1S half duplex
  8. 10BASE-T1L

See also

Notes

  1. 1 2 Patents expire 20 years after issue date.

Related Research Articles

<span class="mw-page-title-main">Ethernet</span> Computer networking technology

Ethernet is a family of wired computer networking technologies commonly used in local area networks (LAN), metropolitan area networks (MAN) and wide area networks (WAN). It was commercially introduced in 1980 and first standardized in 1983 as IEEE 802.3. Ethernet has since been refined to support higher bit rates, a greater number of nodes, and longer link distances, but retains much backward compatibility. Over time, Ethernet has largely replaced competing wired LAN technologies such as Token Ring, FDDI and ARCNET.

100BaseVG is a 100 Mbit/s Ethernet standard specified to run over four pairs of Category 3 cable. It is also called 100VG-AnyLAN because it was defined to carry both Ethernet and Token Ring frame types.

<span class="mw-page-title-main">Ethernet over twisted pair</span> Ethernet physical layers using twisted-pair cables

Ethernet over twisted-pair technologies use twisted-pair cables for the physical layer of an Ethernet computer network. They are a subset of all Ethernet physical layers.

<span class="mw-page-title-main">Fast Ethernet</span> Ethernet standards that carry data at the nominal rate of 100 Mbit/s

In computer networking, Fast Ethernet physical layers carry traffic at the nominal rate of 100 Mbit/s. The prior Ethernet speed was 10 Mbit/s. Of the Fast Ethernet physical layers, 100BASE-TX is by far the most common.

<span class="mw-page-title-main">Gigabit Ethernet</span> Standard for Ethernet networking at a data rate of 1 gigabit per second

In computer networking, Gigabit Ethernet is the term applied to transmitting Ethernet frames at a rate of a gigabit per second. The most popular variant, 1000BASE-T, is defined by the IEEE 802.3ab standard. It came into use in 1999, and has replaced Fast Ethernet in wired local networks due to its considerable speed improvement over Fast Ethernet, as well as its use of cables and equipment that are widely available, economical, and similar to previous standards. The first standard for faster 10 Gigabit Ethernet was approved in 2002.

In the seven-layer OSI model of computer networking, the physical layer or layer 1 is the first and lowest layer: the layer most closely associated with the physical connection between devices. The physical layer provides an electrical, mechanical, and procedural interface to the transmission medium. The shapes and properties of the electrical connectors, the frequencies to transmit on, the line code to use and similar low-level parameters, are specified by the physical layer.

<span class="mw-page-title-main">Power over Ethernet</span> System for delivering power along with data over an Ethernet cable

Power over Ethernet (PoE) describes any of several standards or ad hoc systems that pass electric power along with data on twisted-pair Ethernet cabling. This allows a single cable to provide both a data connection and enough electricity to power networked devices such as wireless access points (WAPs), IP cameras and VoIP phones.

The media-independent interface (MII) was originally defined as a standard interface to connect a Fast Ethernet medium access control (MAC) block to a PHY chip. The MII is standardized by IEEE 802.3u and connects different types of PHYs to MACs. Being media independent means that different types of PHY devices for connecting to different media can be used without redesigning or replacing the MAC hardware. Thus any MAC may be used with any PHY, independent of the network signal transmission medium.

<span class="mw-page-title-main">Ethernet hub</span> Device for interconnecting Ethernet devices

An Ethernet hub, active hub, network hub, repeater hub, multiport repeater, or simply hub is a network hardware device for connecting multiple Ethernet devices together and making them act as a single network segment. It has multiple input/output (I/O) ports, in which a signal introduced at the input of any port appears at the output of every port except the original incoming. A hub works at the physical layer. A repeater hub also participates in collision detection, forwarding a jam signal to all ports if it detects a collision. In addition to standard 8P8C ("RJ45") ports, some hubs may also come with a BNC or an Attachment Unit Interface (AUI) connector to allow connection to legacy 10BASE2 or 10BASE5 network segments.

<span class="mw-page-title-main">Medium-dependent interface</span> Interface between a network device and the data link it communicates over

A medium-dependent interface (MDI) describes the interface in a computer network from a physical-layer implementation to the physical medium used to carry the transmission. Ethernet over twisted pair also defines a medium-dependent interface – crossover (MDI-X) interface. Auto–MDI-X ports on newer network interfaces detect if the connection would require a crossover and automatically choose the MDI or MDI-X configuration to complement the other end of the link.

The physical coding sublayer (PCS) is a networking protocol sublayer in the Fast Ethernet, Gigabit Ethernet, and 10 Gigabit Ethernet standards. It resides at the top of the physical layer (PHY), and provides an interface between the physical medium attachment (PMA) sublayer and the media-independent interface (MII). It is responsible for data encoding and decoding, scrambling and descrambling, alignment marker insertion and removal, block and symbol redistribution, and lane block synchronization and deskew.

An Ethernet crossover cable is a crossover cable for Ethernet used to connect computing devices together directly. It is most often used to connect two devices of the same type, e.g. two computers or two switches to each other. By contrast, straight through patch cables are used to connect devices of different types, such as a computer to a network switch.

<span class="mw-page-title-main">Ethernet physical layer</span> Electrical or optical properties between network devices

The physical-layer specifications of the Ethernet family of computer network standards are published by the Institute of Electrical and Electronics Engineers (IEEE), which defines the electrical or optical properties and the transfer speed of the physical connection between a device and the network or between network devices. It is complemented by the MAC layer and the logical link layer. An implementation of a specific physical layer is commonly referred to as PHY.

Ethernet in the first mile (EFM) refers to using one of the Ethernet family of computer network technologies between a telecommunications company and a customer's premises. From the customer's point of view, it is their first mile, although from the access network's point of view it is known as the last mile.

On an Ethernet connection, a duplex mismatch is a condition where two connected devices operate in different duplex modes, that is, one operates in half duplex while the other one operates in full duplex. The effect of a duplex mismatch is a link that operates inefficiently. Duplex mismatch may be caused by manually setting two connected network interfaces at different duplex modes or by connecting a device that performs autonegotiation to one that is manually set to a full duplex mode.

<span class="mw-page-title-main">10 Gigabit Ethernet</span> Standards for Ethernet at ten times the speed of Gigabit Ethernet

10 Gigabit Ethernet is a group of computer networking technologies for transmitting Ethernet frames at a rate of 10 gigabits per second. It was first defined by the IEEE 802.3ae-2002 standard. Unlike previous Ethernet standards, 10GbE defines only full-duplex point-to-point links which are generally connected by network switches; shared-medium CSMA/CD operation has not been carried over from the previous generations of Ethernet standards so half-duplex operation and repeater hubs do not exist in 10GbE. The first standard for faster 100 Gigabit Ethernet links was approved in 2010.

ethtool is the primary means in Linux kernel-based operating systems for displaying and modifying the parameters of network interface controllers (NICs) and their associated device driver software from application programs running in userspace.

<span class="mw-page-title-main">OPEN Alliance SIG</span>

The OPEN Alliance is a non-profit, special interest group (SIG) of mainly automotive industry and technology providers collaborating to encourage wide scale adoption of Ethernet-based communication as the standard in automotive networking applications.

IEEE 802.3bz, NBASE-T and MGBASE-T are standards released in 2016 for Ethernet over twisted pair at speeds of 2.5 and 5 Gbit/s. These use the same cabling as the ubiquitous Gigabit Ethernet, yet offer higher speeds. The resulting standards are named 2.5GBASE-T and 5GBASE-T.

Classic Ethernet is a family of 10 Mbit/s Ethernet standards, which is the first generation of Ethernet standards. In 10BASE-X, the 10 represents its maximum throughput of 10 Mbit/s, BASE indicates its use of baseband transmission, and X indicates the type of medium used. Classic Ethernet includes coax, twisted pair and optical variants. The first Ethernet standard was published in 1983 and classic Ethernet operating at 10 Mbit/s was the dominant form of Ethernet until the first standard for Fast Ethernet was approved in 1995.

References

  1. "Clause 28: Physical Layer link signaling for Auto-Negotiation on twisted pair", IEEE Standard for Ethernet , p. 278, doi:10.1109/IEEESTD.2018.8457469, ISBN   978-1-5044-5090-4 [ dead link ]
  2. Jayaswal, Kailash (2005). Administering Data Centers Servers, Storage, and Voice over IP. Hoboken: John Wiley & Sons. p. 168. ISBN   0471783358.
  3. Schmidt, Daniel Minoli, Andrew (1998). Switched network services. New York: Wiley Computer Pub. p. 93. ISBN   0471190802.{{cite book}}: CS1 maint: multiple names: authors list (link)
  4. IEEE. "Part 3: Carrier Sense Multiple Access with Collision Detection (CSMA/CD) access method and Physical Layer specifications" (PDF). SECTION TWO: This section includes Clause21 through Clause 33 and Annex 22A through Annex 33E. Archived from the original (PDF) on November 26, 2013. Retrieved 2014-06-03.
  5. "Archived copy" (PDF). Archived from the original (PDF) on 2008-11-19. Retrieved 2009-12-02.{{cite web}}: CS1 maint: archived copy as title (link)
  6. 1 2 Negotiated Data Solutions LLC. "NWay/IEEE Standard Patent License Offer | Negotiated Data Solutions LLC". Negotiateddata.com. Archived from the original on 2009-01-06. Retrieved 2010-02-02.
  7. "Configuring and Troubleshooting Ethernet 10/100/1000Mb Half/Full Duplex Auto-Negotiation". Cisco . Retrieved 2012-01-12. Cisco recommends to leave auto-negotiation on for those devices compliant with 802.3u.
  8. Jim Eggers and Steve Hodnett (July 2004). "Ethernet Autonegotiation Best Practices" (PDF). Sun Microsystems. Archived from the original (PDF) on 2011-05-20. Using autonegotiation is the IEEE 802.3 standard and customers are encouraged to follow the "intent" of IEEE 802.3u/z standards and implement autonegotiation in their Ethernet environments.
  9. Rich Hernandez (2001). "Gigabit Ethernet Auto-Negotiation". Dell . Retrieved 2012-01-12.
  10. "Auto-Negotiation; 802.3-2002" (PDF). IEEE Standards Interpretations. IEEE. Archived from the original (PDF) on January 30, 2006. Retrieved November 5, 2007.
  11. DP83865 datasheet (PDF), p. 29, retrieved 2023-05-19
  12. IEEE 802.3-2018 Annex 28B
  13. "Port speed and duplex mode configuration". docs.ruckuswireless.com. Retrieved 2020-09-25.
  14. "IEEE Link Task Force Autodetect, Specification for NWay Autodetect" (PDF). p. 57. Archived from the original (PDF) on 2011-07-14.
  15. IEEE 802.3 Clause 28.2.1.2.6 Next Page
  16. IEEE 802.3 Clause 98
  17. IEEE 802.3 Annex 98B