December 23, 2025
Article
Modern networks must balance performance, reliability, and efficient resource use such as cloud, AI, and real-time applications to demand finer Quality of Service (QoS). Traditional software-based QoS adds latency and scales poorly at high speeds. Programmable SmartNICs using P4 (Programming Protocol-Independent Packet Processors), such as the iW-Fibre SmartNIC, overcome these limits by enabling hardware-based traffic classification and rate limiting at line rate. This article explores how P4-enabled SmartNICs – iW-Fibre SmartNIC, achieve intelligent, low-latency QoS through programmable pipelines and hardware acceleration.
A detailed overview of the iW-Fibre P4 architecture is available in “Building a P4-Programmable SmartNICs through iW-Fibre cards: Architecture and Insights” .
Traffic classification is the foundation of QoS, ensuring that different traffic types receive appropriate priority and handling based on RFC 2474 DiffServ standards. On the iW-Fibre SmartNIC, the P4 implementation uses standard DSCP markings.
On the iW-Fibre SmartNIC, The P4 logic inspects the packet protocol fields and applies DSCP markings accordingly, enabling differentiated Quality of Service behavior across the network.
The traffic classification and DSCP marking behavior implemented on the iW-Fibre SmartNIC is summarized below:
| Protocol Type | Traffic Characteristics | DSCP Value | DiffServ Class | QoS Intent |
|---|---|---|---|---|
| TCP | Reliable, throughput-oriented traffic | 46 | Expedited Forwarding | High priority, low latency |
| UDP | Latency-sensitive traffic (e.g., voice/video) | 44 | Voice Admit | Voice Admit |
| Other protocols | Default traffic | 0 | Best Effort | TStandard forwarding |
In addition to the above mappings, the iW-Fibre SmartNIC supports Assured Forwarding (AF) classes, allowing traffic to be categorized into multiple service classes with different drop precedence levels. This enables more granular QoS differentiation when required by network policies.
While classification organizes traffic into service classes, rate limiting ensures that no class consumes more than its fair share of bandwidth. The iW-Fibre SmartNIC implementation uses hardware registers and P4-defined policing mechanisms for deterministic rate enforcement.
On the iW-Fibre SmartNIC ,the hmeter provides finer-grained policing using Committed Information Rate (CIR) and Peak Information Rate (PIR):
This three-color model enables more flexible QoS enforcement, allowing downstream elements to make informed decisions based on conformance levels.
The combination of P4 programmability and iW-Fibre SmartNIC acceleration represents a major advancement in network QoS. By enabling line-rate traffic classification and rate limiting with hardware acceleration, the iW-Fibre SmartNIC delivers the performance, scalability, and flexibility required for modern infrastructures. As networks evolve with AI/ML workloads and edge computing, the iW-Fibre SmartNIC provides the adaptability needed for future QoS requirements while maintaining the line-rate performance demanded by today’s applications.
We appreciate you contacting iWave.
Our representative will get in touch with you soon!