Home / Learn / AI Networking / What Is a SmartNIC?
On this page
From NIC to SmartNICWhy they emergedWhat a SmartNIC can doTypes of SmartNICSmartNIC, DPU and IPUFast path and slow pathProgrammingBenefitsDrawbacksWho uses themSmartNICs in AI systemsNetwork functions built into other chipsCommon questionsRelated guidesWhat Is a SmartNIC?
A SmartNIC is a network interface card with added processing capability, so it can handle some networking tasks itself instead of leaving them to the server’s processor. An ordinary network card moves packets between the network and the server. A SmartNIC can also inspect, modify, encrypt and steer those packets. It is used to take networking work off the host CPU, which frees that CPU for applications and improves network performance.
From NIC to SmartNIC
A network interface card, or NIC, is the component that connects a server to a network. A basic one does little beyond sending and receiving frames. All the processing of network protocols happens in software on the server’s CPU.
Over time, NICs took on small tasks: calculating checksums, splitting large blocks of data into packets, spreading incoming traffic across CPU cores. These are simple, fixed offloads.
A SmartNIC goes further. It has programmable processing on the card and can run more complex functions, defined in software and changeable after deployment.
Why they emerged
- Network speeds outran CPUs. As links moved to 25, 100 and more gigabits per second, processing traffic in software consumed a growing share of server CPU capacity.
- Networking moved into software. Cloud data centers use virtual networks, with each customer’s traffic encapsulated and isolated. The virtual switch that does this ran on the host CPU and became a significant load.
- CPU cores are valuable. In a cloud, each core used for networking is one that cannot be rented to a customer.
Moving that work onto the network card recovers the cores and handles the traffic faster.
What a SmartNIC can do
| Function | Description |
|---|---|
| Virtual switching | Forwarding packets between virtual machines and the network |
| Tunnelling | Encapsulating and decapsulating traffic for virtual networks |
| Flow processing | Matching packets to rules and applying actions at high speed |
| Encryption | Encrypting and decrypting traffic inline |
| Load balancing | Distributing connections across servers |
| Firewalling and filtering | Enforcing access rules |
| Traffic shaping | Rate limiting and quality of service |
| Telemetry | Measuring and reporting on traffic |
| RDMA | Remote direct memory access for storage and cluster traffic |
| Storage protocols | Presenting remote storage to the host |
| Time synchronization | Precise timestamping |
Types of SmartNIC
SmartNICs are built in three main ways.
| Type | Based on | Strengths | Weaknesses |
|---|---|---|---|
| ASIC-based | A purpose-built chip with configurable packet processing | Best performance and efficiency for supported functions | Limited to what the chip was designed to do |
| FPGA-based | A reprogrammable logic device | Highly flexible, can implement custom functions in hardware | Harder to program, higher cost and power |
| SoC-based | A chip combining network hardware with general-purpose processor cores | Runs ordinary software, most flexible | Software paths are slower than dedicated hardware |
Many products combine these: fixed-function hardware for the common fast path, with processor cores for control and less common cases.
SmartNIC, DPU and IPU
The terminology is inconsistent across the industry.
- SmartNIC is the broadest and oldest term. It can refer to any NIC with programmable processing.
- DPU, data processing unit, usually refers to the most capable class: a device with its own processor cores, running its own operating system, able to manage networking, storage and security independently of the host.
- IPU, infrastructure processing unit, is one vendor’s name for a similar class of device.
A common way to draw the line is this. A SmartNIC accelerates networking functions under the control of software on the host. A DPU is a self-contained computer that the host does not control and that can enforce policy on the host. In practice, the labels are applied loosely.
Fast path and slow path
SmartNICs typically divide packet handling in two.
- The fast path is implemented in hardware. Once a flow of traffic is recognized and the action for it decided, every subsequent packet is handled entirely on the card at full speed.
- The slow path deals with the first packet of a new flow and with exceptions. It runs in software, on the card’s processor cores or on the host, and installs a rule so that later packets take the fast path.
Programming
How a SmartNIC is programmed depends on its type.
- Standard offload interfaces. Operating systems and virtual switches can push flow rules to hardware through established interfaces, without custom code.
- Packet-processing languages. Domain-specific languages let developers describe how packets are parsed and processed.
- In-kernel programs. Small programs can be loaded to run at the network driver level, in some cases on the card.
- Vendor software kits.
- Hardware description languages, for FPGA-based cards.
The lack of a single common programming model has been a barrier to adoption. Software written for one vendor’s card often does not run on another’s.
Benefits
- CPU cores returned to applications.
- Higher throughput and lower, steadier latency for network traffic.
- Inline encryption at full speed.
- Better performance for virtualized and containerized workloads.
- A foundation for isolation, when the card is managed independently of the host.
Drawbacks
- Cost. More than a basic NIC.
- Power. The card’s own consumption.
- Complexity. Another programmable device to develop for and operate.
- Fragmentation between vendors.
- Debugging. Problems are harder to trace when processing is split between host and card.
- Not always needed. For modest network speeds or simple networking, a standard NIC is sufficient.
Who uses them
- Cloud providers. The largest have deployed them across their fleets, often using their own designs.
- Telecommunications operators, for network functions.
- Enterprises with demanding networking, storage or security needs.
- AI infrastructure.
SmartNICs in AI systems
AI clusters depend on fast networking, and the network interface is where each server meets it.
- Cluster traffic. The interface runs the RDMA transport for communication between accelerators.
- Direct data paths. It can move data straight to and from accelerator memory.
- Storage access. It handles high-throughput connections to storage.
- Tenant isolation in shared AI clouds.
- Preserving CPU capacity for the work of feeding accelerators.
- New transports. Standards such as Ultra Ethernet are implemented in the network interface.
Network functions built into other chips
The functions of a SmartNIC do not have to live on a separate card. Designers of custom AI processors are building network interfaces and transport processing into their chips, or onto a companion die in the same package. This shortens the path between the network and the compute engine.
Common questions
What is the difference between a NIC and a SmartNIC?
A NIC connects a server to a network and leaves most processing to the server’s CPU. A SmartNIC has its own programmable processing and can perform networking tasks such as switching, encryption and filtering itself.
Is a SmartNIC the same as a DPU?
The terms overlap. DPU usually refers to the most capable kind of SmartNIC, one with its own processors and operating system that can run infrastructure functions independently of the host.
Do all servers need SmartNICs?
No. They are worthwhile where network speeds are high, where networking is heavily virtualized or where offloading work from CPUs has clear value. Many servers work well with standard NICs.