MDI
Initialism of medium-dependent interface.
MDI: where your network cable actually plugs in
An MDI is the physical socket on a network device where a twisted-pair cable terminates. It is the female connector that receives the male RJ45 plug from your network patch cable, and it is the actual interface between the device's internal circuitry and the external network. On a switch, router, or network adapter, the MDI is what you see and touch; it is built into the device itself, not added as a separate module.
The term medium-dependent exists because the interface depends on the medium being used. In twisted-pair Ethernet (the standard since the 1990s), the MDI carries eight conductors in four pairs, arranged in a specific sequence. Historically, fiber-optic networks and coaxial connections each had their own physical MDI designs, though twisted-pair MDI sockets are now the overwhelming default in enterprise and commercial installations.
An MDI is distinct from an MDI-X (medium-dependent interface, crossed), which has its transmit and receive pairs internally swapped. This matters because normal Ethernet cables have matching pinouts on both ends; connecting two MDI ports directly requires either a crossover cable or automatic crossover detection. Most modern switches and computers now support auto-MDI-X, which detects the cable type and adjusts internally, but the distinction remains important in older equipment and in understanding why some connections fail without explanation.
The MDI itself is a passive component, typically an 8-position 8-contact (8P8C) plastic housing with copper spring contacts. The socket is rated for insertion cycles: consumer-grade MDIs often tolerate 500 to 1000 mating cycles before contact wear becomes noticeable, while industrial-grade versions are rated for 5000 to 10000 cycles. Dirty or corroded contacts inside the MDI are a common cause of intermittent network failures, particularly in environments with moisture, dust, or vibration.
In cabinet and data center practice, the MDI is just one part of the connection chain. A network device has MDI ports; these connect via patch cables to patch panel MDI openings, which in turn connect to structured cabling runs inside walls. Distinguishing the device-side MDI from the panel-side MDI (sometimes called the IDC or insulation displacement connector end) helps technicians troubleshoot whether a fault lies in the device, the patch cable, the panel, or the backbone cabling.