Network interface card

A network interface card is the hardware that connects a computer to a network.

A network interface card, or NIC, is the hardware that turns outgoing data into signals on a cable and incoming signals back into data. In a server, it is usually a card in a PCIe slot or a chip on the motherboard. The operating system talks to it through a driver, which hands it packets to send and collects the ones that arrive. Nearly all the traffic a server exchanges with other machines passes through such a card.

The card handles the lowest layers of networking, framing packets and checking them for errors in hardware. It copies received packets straight into main memory and then signals the processor, so the CPU never moves the bytes itself. This direct copy, called DMA, works through rings of buffers that the driver and the card share. At high packet rates, the card batches its signals so the processor is not interrupted for every packet.

Each card has a MAC address that identifies it on its local network. The maker burns the MAC address in, though software can override it, as virtual machines do with addresses of their own. On a host that runs virtual machines, one physical card carries the traffic of every guest. The speed of the card bounds how fast a server can serve traffic or reach network storage. A busy sandbox can therefore slow network and disk access for other sandboxes on the same host.