
A computer port is a
hardware piece on a
computer
A computer is a machine that can be Computer programming, programmed to automatically Execution (computing), carry out sequences of arithmetic or logical operations (''computation''). Modern digital electronic computers can perform generic set ...
where an
electrical connector can be plugged to link the device to external devices, such as another computer, a
peripheral device or
network equipment.
This is a non-standard term.
Electronically, the several conductors where the port and cable contacts connect, provide a method to transfer
data signals between devices.
Bent pins are easier to replace on a cable than on a connector attached to a computer, so it was common to use female connectors for the fixed side of an interface.
Computer ports in common use cover a wide variety of shapes such as round (
PS/2, etc.), rectangular (
FireWire
IEEE 1394 is an interface standard for a serial bus for high-speed communications and isochronous real-time data transfer. It was developed in the late 1980s and early 1990s by Apple in cooperation with a number of companies, primarily Sony a ...
, etc.), square (
Telephone plug), trapezoidal (
D-Sub — the old printer port was a
DB-25), etc. There is some standardization to physical properties and function. For instance, most computers have a
keyboard port (currently a Universal Serial Bus
USB
Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
-like outlet referred to as USB Port), into which the keyboard is connected.
Physically identical connectors may be used for widely different standards, especially on older personal computer systems, or systems not generally designed according to the current Microsoft Windows compatibility guides. For example, a 9-pin D-subminiature connector on the original
IBM PC
The IBM Personal Computer (model 5150, commonly known as the IBM PC) is the first microcomputer released in the List of IBM Personal Computer models, IBM PC model line and the basis for the IBM PC compatible ''de facto'' standard. Released on ...
could have been used for monochrome video, color analog video (in two incompatible standards), a joystick interface, or a
MIDI
Musical Instrument Digital Interface (; MIDI) is an American-Japanese technical standard that describes a communication protocol, digital interface, and electrical connectors that connect a wide variety of electronic musical instruments, ...
musical instrument digital control interface. The original IBM PC also had two identical 5 pin DIN connectors, one used for the keyboard, the second for a cassette recorder interface; the two were not interchangeable. The smaller mini-DIN connector has been variously used for the keyboard and two different kinds of mouse; older
Macintosh
Mac is a brand of personal computers designed and marketed by Apple Inc., Apple since 1984. The name is short for Macintosh (its official name until 1999), a reference to the McIntosh (apple), McIntosh apple. The current product lineup inclu ...
family computers used the mini-DIN for a serial port or for a keyboard connector with different standards than the IBM-descended systems.
Electrical signal transfer
Electronically, hardware ports can almost always be divided into two groups based on the signal transfer:
*Analog ports
*Digital ports:
**
Parallel ports send multiple bits at the same time over several sets of wires.
**
Serial port
A serial port is a serial communication Interface (computing), interface through which information transfers in or out sequentially one bit at a time. This is in contrast to a parallel port, which communicates multiple bits simultaneously in Pa ...
s send and receive one bit at a time via a single wire pair (Ground and +/-).
After ports are connected, they typically require
handshaking, where transfer type, transfer rate, and other necessary information is shared before data is sent.
Hot-swappable ports can be connected while equipment is running. Almost all ports on personal computers are hot-swappable.
Plug-and-play ports are designed so that the connected devices automatically start handshaking as soon as the hot-swapping is done.
USB
Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
ports and FireWire ports are plug-and-play.
Auto-detect or auto-detection ports are usually plug-and-play, but they offer another type of convenience. An auto-detect port may automatically determine what kind of device has been attached, but it also determines what purpose the port itself should have. For example, some
sound cards allow plugging in several different types of
audio speakers; then a dialogue box pops up on the computer screen asking whether the speaker is left, right, front, or rear for
surround sound installations. The user's response determines the purpose of the port, which is physically a
1/8" tip-ring-sleeve mini jack. Some auto-detect ports can even switch between input and output based on context.
As of 2006, manufacturers have nearly standardized colors associated with ports on personal computers, although there are no guarantees. The following is a short list:
* Orange, purple, or grey: Keyboard PS/2
* Green: Mouse PS/2
* Blue or magenta: Parallel printer DB-25
* Amber: Serial DB-25 or DB-9
* Pastel pink: Microphone 1/8" stereo (TRS) minijack
* Pastel green: Speaker 1/8" stereo (TRS) minijack
Additionally, USB ports are color-coded according to the specification and data transfer speed, e.g. USB 1.x and 2.x ports are usually white or black, and USB 3.0 ones are blue. SuperSpeed+ connectors are teal in color.
FireWire
IEEE 1394 is an interface standard for a serial bus for high-speed communications and isochronous real-time data transfer. It was developed in the late 1980s and early 1990s by Apple in cooperation with a number of companies, primarily Sony a ...
ports used with video equipment (among other devices) can be either 4-pin or 6-pin. The two extra conductors in the 6-pin connection carry electrical power. This is why a self-powered device such as a camcorder often connects with a cable that is 4-pins on the camera side and 6-pins on the computer side, the two power conductors simply being ignored. This is also why laptop computers usually have only 4-pin FireWire ports, as they cannot provide enough power to meet requirements for devices needing the power provided by 6-pin connections.
Optical (light) fiber, microwave, and other technologies (i.e., quantum) have different kinds of connections, as metal wires are not effective for signal transfers with these technologies. Optical connections are usually a polished glass or plastic interface, possibly with an oil that lessens refraction between the two interface surfaces. Microwaves are conducted through a pipe, which can be seen on a large scale by examining
microwave towers with "funnels" on them leading to pipes.
Hardware
port trunking (HPT) is a technology that allows multiple hardware ports to be combined into a single group, effectively creating a single connection with a higher
Bandwidth sometimes referred to as a double-barrel approach. This technology also provides a higher degree of
fault tolerance
Fault tolerance is the ability of a system to maintain proper operation despite failures or faults in one or more of its components. This capability is essential for high-availability, mission-critical, or even life-critical systems.
Fault t ...
because a failure on one port may just mean a slow-down rather than a dropout. By contrast, in software port trunking (SPT), two agents (websites, channels, etc.) are bonded into one with the same effectiveness; i.e.,
ISDN B1 (64K) plus B2 (64K) equals data throughput of 128K.
The USB-C standard, published in 2014, supersedes previous connectors and is reversible (although not electrically), meaning it can be plugged both ways. Reversible plugs have a symmetric pinout. Other reversible connectors include
Apple's Lightning.
Types of ports
Digital Visual Interface
Digital Visual Interface">
File:DVI D.jpg, DVI port
File:Dvi-cable.jpg, Cable
File:DVI Diagram.svg, DVI
DisplayPort
DisplayPort
DisplayPort (DP) is a digital interface used to connect a video source, such as a Personal computer, computer, to a display device like a Computer monitor, monitor. Developed by the Video Electronics Standards Association (VESA), it can also car ...
" widths="150px" heights="120px" perrow="3">
File:Mini DisplayPort on Apple MacBook.jpg, Mini DisplayPort
File:Displayport-cable.jpg, DisplayPort cable
File:Display Port.png, DisplayPort