Diffserv networks
What Are Diffserv Networks?
Diffserv networks are IP networks that implement differentiated services, a scalable quality-of-service architecture in which packets are classified and forwarded according to a small number of defined per-hop behaviors rather than through per-flow state maintained at every router. The architecture was standardized by the IETF in RFC 2474 and RFC 2475, published in 1998, as a replacement for the integrated services (IntServ) model, which required end-to-end signaling and per-flow resource reservation that proved impractical at Internet scale. In a Diffserv domain, each packet carries a six-bit Differentiated Services Code Point (DSCP) in the IP header, and each router applies a forwarding treatment keyed to that codepoint without inspecting or tracking individual flows.
The architecture divides network behavior into two functional planes. Edge nodes at the boundary of a Diffserv domain perform traffic conditioning: they classify incoming packets, mark them with the appropriate DSCP, and police or shape traffic streams to ensure they conform to a negotiated traffic profile. Interior nodes perform only per-hop forwarding based on the DSCP, keeping the core of the network fast and stateless.
Per-Hop Behaviors
A per-hop behavior (PHB) defines the scheduling, queuing, and dropping treatment applied to a class of packets at each router. The IETF has standardized three PHBs for wide deployment. Default forwarding (DF, DSCP 0) provides best-effort delivery with no preferential treatment. Expedited forwarding (EF, defined in RFC 3246) specifies a low-delay, low-jitter forwarding class intended for traffic such as voice over IP; packets in the EF class are dequeued before those in lower-priority queues, bounding the queuing delay they experience. Assured forwarding (AF, defined in RFC 2597) defines four classes, each with three drop precedences, allowing operators to offer tiered reliability for elastic traffic such as video streaming. The IETF Differentiated Services working group maintains the specifications and tracks ongoing extensions to the framework.
Traffic Classification and Marking
Before a packet reaches an interior router, an edge node must determine its correct DSCP marking. Classification uses one or more packet fields: source and destination address, transport protocol, port numbers, or application-layer signatures. Once classified, the edge node marks the DSCP field and applies policing using a token-bucket algorithm that measures whether the traffic stream's arrival rate and burst size conform to the agreed profile. Traffic that exceeds the profile is either dropped, reshaped by buffering, or marked with a higher drop precedence, making it vulnerable to discard if congestion occurs downstream. The configuration guidelines for standard service classes are described in RFC 4594, which maps application types to recommended PHBs and DSCP values.
Diffserv in Multimedia and Real-Time Communication
Real-time applications such as voice telephony, videoconferencing, and interactive gaming require bounded end-to-end delay and low jitter that best-effort IP forwarding cannot guarantee. Diffserv enables service providers to offer differentiated treatment for these workloads without installing per-call state at every router along the path. For VoIP, packets are typically marked EF and receive strict-priority queuing. For streaming video, AF41 or AF31 marking provides high throughput with controlled drop probability. RFC 7657 extends the Diffserv framework specifically to real-time communications, addressing interactions with WebRTC and other browser-based media applications.
Applications
Diffserv networks have applications in a range of fields, including:
- Voice over IP and video conferencing in enterprise and carrier networks
- Video streaming and content delivery requiring consistent throughput
- Multimedia over wireless and mobile broadband access networks
- Data center interconnects where latency-sensitive storage and compute traffic must be prioritized
- WebRTC-based browser communication with quality-of-service markings