Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Medium-dependent interface

From Wikipedia, the free encyclopedia
Interface between a network device and the data link it communicates over
Hub with three MDI-X ports and one switchable port, circa 1998
Switch showing one logical port, 16, with two physical ports, one in each conductor arrangement: MDI-X (the norm for a hub or switch), labelled16x, and MDI, labelledUplink, for connecting to another hub or switch with a normal straight-through cable

Amedium-dependent interface (MDI) describes the interface (both physical and electrical/optical) in acomputer network from a physical-layer implementation to the physical medium used to carry the transmission.Ethernet over twisted pair also defines amedium-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.

Ethernet

[edit]
wire pairs connect straight across
Straight-through MDI–to–MDI-X connection for 10BASE-T

The popularEthernet family defines common medium-dependent interfaces. For10BASE5, connection to the coaxial cable was made with either avampire tap or a pair ofN connectors. For10BASE2, the connection to the coaxial cable was typically made with a singleBNC connector to which a T-piece was attached. For twisted-pair cabling8P8C, modular connectors are used (often calledRJ45 in this context). For fiber, avariety of connectors are used depending on manufacturer and physical space availability.

With 10BASE-T and 100BASE-TX, separate twisted pairs are used for the two directions of communication. Since twisted pair cables are conventionally wired pin to pin (straight-through) there are two different pinouts used for the medium-dependent interface. These are referred to as MDI and MDI-X (medium-dependent interface crossover). When connecting an MDI port to an MDI-X port, a straight-through cable is used, while to connect two MDI ports or two MDI-X ports, a crossover cable must be used. Conventionally, MDI is used on end devices androuters while MDI-X is used onhubs andswitches. Some hubs and switches have an MDIuplink port (often switchable) to connect to other hubs or switches without acrossover cable.

Cable requirement for Ethernet link
To
From
MDIMDI-XAuto MDI-X
MDIcrossoverstraightany
MDI-Xstraightcrossoverany
Auto MDI-Xanyanyany

MDI vs. MDI-X

[edit]

The terminology generally refers to variants of theEthernet over twisted pair technology that use a female 8P8C port connection on a computer, or other network device.

The X refers to the fact that transmit wires on an MDI device must be connected to receive wires on an MDI-X device. Straight-through cables connect pins 1 and 2 (transmit) on an MDI device to pins 1 and 2 (receive) on an MDI-X device. Similarly, pins 3 and 6 are receive pins on an MDI device and transmit pins on an MDI-X device. The general convention is fornetwork hubs, bridges and switches to use the MDI-X configuration, while all other nodes such aspersonal computers,workstations, servers and routers use an MDI interface. Some routers and other devices had an uplink/normal switch to go back and forth between MDI and MDI-X on a specific port.[1]

The requirement of connecting the transmitter of one side to the receiver on the other side and vice versa makes it necessary to always have anodd number of crossovers between two devices, with an MDI-X port containing an internal crossover. Thus, connecting MDI to MDI-X requires a straight-through cable (one crossover in total). Connecting MDI to MDI (no crossover) or MDI-X to MDI-X (two crossovers) requires a(nother) crossover in the cable to get an odd number. When using more complicated setups through multiplepatch panels instructured cabling, the connection can use multiple patch and building cable segments. It is a good idea to have all necessary crossovers on one side, i.e. either on the central hub/switch or on each secondary hub/switch.

Automatic MDI-X

[edit]
wire pairs cross over each other
MDI to MDI connection withEthernet crossover cable

To connect two ports of the same configuration (MDI to MDI, or MDI-X to MDI-X) with a 10 or 100 Mbit/s connection (10BASE-T or 100BASE-TX), anEthernet crossover cable is needed to connect the pair that each interface transmits on to thereceive conductors of the other interface. The confusion of needing two different kinds of cables for anything but hierarchicalstar network topologies prompted a more automatic solution.

A twisted-pair Ethernet port withautomatic MDI-X, orauto MDI-X orauto-crossover, automatically detects the required configuration, MDI or MDI-X, eliminating the need for crossover cables to interconnect switches or to connect network nodes peer-to-peer. As long as it is enabled on either end of a link, either type of cable can be used. For auto MDI-X to operate correctly, the data rate and duplex setting on the interface must be set toauto. Auto MDI-X was developed byHewlett-Packard engineers Daniel Joseph Dove and Bruce W. Melvin.[2]A pseudo-random–number generator determines whether a network port will start in MDI or MDI-X configuration to begin auto-negotiating the link.[3][4]

When two auto–MDI-X ports are connected together, which is normal for modern products, the algorithm resolution time is typically < 500 ms. However, a ~1.4 second asynchronous timer is used to resolve the extremely rare case (with a probability of less than 1 in 5×1021) of a loop in which each end keeps switching.[5]

Subsequently, Dove promoted auto MDI-X within the1000BASE-T standard[5] and also developed patented algorithms forforced-mode auto MDI-X which allow a link to be automatically established even if the port does not auto-negotiate.[6] This may or may not be implemented on a given device, so occasionally a crossover cable may still be necessary when connecting an auto-MDI-X to an MDI-X (hub or switch) port, especially whenautonegotiation is deactivated.[7]

Newer routers, hubs and switches (including some 10/100, and all 1-gigabit or 10-gigabit devices in practice) use auto MDI-X for 10/100 Mbit connections to automatically switch to the proper configuration once a cable is connected.

Gigabit and faster Ethernet links over twisted pair cable use all four cable pairs for simultaneous transmission in both directions. For this reason, there are no dedicated transmit and receive pairs, and consequently, crossover cables are never required for 1000BASE-T communication.[8] Thephysical medium attachment sublayer (PMA) provides identification of each pair and usually works over crossover cables as well, and even if the pairs are unusually swapped, or if thepolarity of a pair is unexpectedly inverted.[9]

See also

[edit]

References

[edit]
  1. ^Netgear Model EN104tp EN106tp EN108tp Ethernet Hub Installation Guide(PDF). Bay Networks. August 3, 1998. p. 5. Archived fromthe original(PDF) on 2021-07-05. RetrievedJune 18, 2011.
  2. ^"HP Auto-MDIX technology".Hewlett-Packard web site. RetrievedJune 17, 2011.
  3. ^US patent 6175865, Daniel J. Dove and Bruce W. Melvin, "Apparatus for automatically configuring network media connections", issued 2001-01-16 
  4. ^US patent 6460078, Daniel J. Dove and Bruce W. Melvin, "Apparatus for automatically configuring media connectors of a node interface", issued 2002-10-01 
  5. ^abDaniel Dove (February 1998)."1000BASE-T Automatic Crossover Algorithm"(PDF).Presentation to IEEE 802.3ab working group. RetrievedJune 17, 2011.
  6. ^Daniel Joseph Dove."Apparatus & method for automatically switching media connections when operating in forced speed and duplex mode". US Patent 7,366,771 filed March 12, 2002 and issued April 29, 2008.
  7. ^HP ProCurve 2910al Installation and Getting Started Guide, March 2010, Pub No. 5992-3084
  8. ^IEEE 802.3-201240.8.2 Crossover Function
  9. ^IEEE 802.3-201240.1.4 Signaling

External links

[edit]
Wikimedia Commons has media related toMedium-dependent interface.
Ethernet family oflocal area network technologies
Speeds
General
Organizations
Media
Historic
Applications
Transceivers
Interfaces
Retrieved from "https://en.wikipedia.org/w/index.php?title=Medium-dependent_interface&oldid=1309305997"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp