---
title: "Network interface card"
url: https://www.daytona.com/compute-glossary/networking/network-interface-card
---

# Network interface card

Part of the [Compute Glossary](https://www.daytona.com/compute-glossary.md), section [Networking](https://www.daytona.com/compute-glossary/networking.md).

Also called NIC, Network card.

A network interface card is the hardware that connects a computer to a network, turning 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 speed of the card bounds how fast a server can serve traffic or reach storage over the network. The maker burns the MAC address in, though software can override it, as virtual machines do with addresses of their own. When network storage shares the card with other traffic, a busy workload can slow disk access for the whole host.

## Link speed

Link speed is the rate at which a network interface card sends and receives data on its cable, agreed with the switch at the other end. Both ends must support the same speed and the same kind of cable or optics. The two ends settle on the fastest speed they share through a step called autonegotiation. Higher speeds usually need optical transceivers or short copper cables, because signals degrade faster over distance.

The link speed is a ceiling that real traffic rarely reaches. Protocol overhead and the processor time spent on each packet keep actual throughput below it, more so with many small packets. Each packet carries headers and a gap on the wire, which make up a larger share of a small packet. Jumbo frames, which allow much larger packets inside a datacenter, cut that overhead for bulk transfers.

Servers often carry two ports bonded together, for more bandwidth or to survive a failed cable. Clusters that train machine learning models give each GPU its own card, because the GPUs exchange data constantly. A bond rarely speeds up a single connection, since each connection usually stays on one port to keep its packets in order. GPU networks often use RDMA, which lets a card write into another machine's memory without either processor copying the data.

| **Card**             | **Description**                                                                          |
| -------------------- | ---------------------------------------------------------------------------------------- |
| **Consumer card**    | A card in a desktop or laptop runs at one to ten gigabits per second.                    |
| **Server card**      | A card in a general-purpose server runs at tens of gigabits per second, up to a hundred. |
| **GPU cluster card** | A card in a GPU cluster runs at hundreds of gigabits per second.                         |

## Offloads

Offloads are tasks of the network stack that a network interface card does in hardware instead of the CPU. Checksums and the splitting of large sends into packets are the common ones, and they free processor time at high speeds. The receive side has a mirror image, where the card merges small packets of one stream into a larger buffer before the kernel sees it. The kernel then does its work once for many packets.

A card can also spread incoming packets across several queues, each handled by a different core. Without this, one core would have to take every packet, and it would limit the whole server. The card picks a queue by hashing the addresses and ports of each packet, so all packets of one connection land on the same core. That keeps them in order and keeps the data of each connection in one core's cache.

SmartNICs and data processing units go further, running whole parts of the network and storage stacks on their own processors. Cloud providers use them to move the virtualization of networks off the CPUs of the host. The host's processors are then left to guests, which is what tenants pay for. Keeping the provider's software on a separate card also puts it out of reach of a guest that breaks out onto the host.

## Shared cards

Shared cards are network interface cards that carry the traffic of many virtual machines at once. Each guest sees a [virtual network interface](https://www.daytona.com/compute-glossary/networking/virtual-network-interface.md) of its own, and a software switch on the host forwards its packets to and from the physical card. The switch learns which guest owns which address and sends each frame only where it belongs. It is also where the host can apply rules so that one guest cannot read or forge the traffic of another, since the switch alone does not stop it.

The software path costs processor time on the host for every packet. The network performance of a guest therefore depends on the CPUs of the host as much as on the speed of the card. A guest that floods the network can take that processor time from its neighbors. Hosts cap the bandwidth and packet rate of each guest, so one noisy guest does not slow the rest.

SR-IOV lets one physical card present itself as many lightweight virtual functions, each passed directly to a guest. The guest then talks to the hardware without the host in the path, at the cost of harder live migration. The card itself then enforces the separation between guests, with filters it applies in hardware. Migration suffers because part of the guest's state lives inside a physical card that cannot move with it.

## Related terms

- [Virtual network interface](https://www.daytona.com/compute-glossary/networking/virtual-network-interface.md)
- [Egress control](https://www.daytona.com/compute-glossary/networking/egress-control.md)
