A crossover cable connects two devices of the same type, for example DTE-DTE or DCE-DCE, usually connected asymmetrically, by a modified cable called a crosslink. Such a distinction between devices was introduced by IBM. The crossing of wires in a cable or in a connectoradaptor allows:
connecting two devices directly, output of one to input of the other,
letting two terminal devices communicate without an interconnecting hubknot, i.e. PCs,
linking two or more hubs, switches or routers together, possibly to work as one wider device.
In contrast, a straight-through cable uses direct wiring to connect complementary devices, e.g. a PC to a switch.
Concept
Straight-through cables are used for most applications, but crossover cables are sometimes used:
In a straight through cable, pins on one end correspond exactly to the corresponding pins on the other end
: Using the same wiring scheme at each end yields a straight-through cable. In this case, the terminations are identical, so only one pinout is required.
In a crossover cable, pins do not correspondsome or all of the conductors are swapped at the terminations. For example, if pin 1 on one end goes to pin 2 on the other end, then pin 2 on one end goes to pin 1 on the other end, and the other pins remain unaffected. Such crossover cables are electrically symmetrical, meaning that they work identically regardless of which way you plug them in.
: Using different wiring at each end yields a crossover cable.
A loopback is a type of degraded "one sidecrosslinked connection" connecting a port to itself, usually for test purposes.
Other technologies
Some connection standards use different balanced pairs to transmit data, so crossover cables for them have different configurations to swap the transmit and receive pairs:
Twisted pairToken ring uses T568B pairs 1 and 3, so a crossover cable to connect two Token Ring interfaces must swap these pairs, connecting pins 4, 5, 3, and 6 to 3, 6, 4, and 5 respectively.
A T1 cable uses T568B pairs 1 and 2, so to connect two T1 CSU/DSU devices back-to-back requires a crossover cable that swaps these pairs. Specifically, pins 1, 2, 4, and 5 are connected to 4, 5, 1, and 2 respectively.
A 56K DDS cable uses T568B pairs 2 and 4, so a crossover cable for these devices swaps those pairs.