DiffServ
   HOME

TheInfoList



OR:

Differentiated services or DiffServ is a
computer networking A computer network is a set of computers sharing resources located on or provided by network nodes. The computers use common communication protocols over digital interconnections to communicate with each other. These interconnections are ...
architecture that specifies a mechanism for classifying and managing network traffic and providing
quality of service Quality of service (QoS) is the description or measurement of the overall performance of a service, such as a telephony or computer network, or a cloud computing service, particularly the performance seen by the users of the network. To quantitat ...
(QoS) on modern IP networks. DiffServ can, for example, be used to provide
low-latency Latency, from a general point of view, is a time delay between the cause and the effect of some physical change in the system being observed. Lag, as it is known in gaming circles, refers to the latency between the input to a simulation and ...
to critical network traffic such as
voice The human voice consists of sound made by a human being using the vocal tract, including talking, singing, laughing, crying, screaming, shouting, humming or yelling. The human voice frequency is specifically a part of human sound producti ...
or streaming media while providing best-effort service to non-critical services such as
web traffic Web traffic is the data sent and received by visitors to a website. Since the mid-1990s, web traffic has been the largest portion of Internet traffic. Sites monitor the incoming and outgoing traffic to see which parts or pages of their site are ...
or
file transfer File transfer is the transmission of a computer file through a communication channel from one computer system to another. Typically, file transfer is mediated by a communications protocol. In the history of computing, numerous file transfer protocol ...
s. DiffServ uses a 6-bit differentiated services code point (DSCP) in the 8-bit differentiated services field (DS field) in the IP header for packet classification purposes. The DS field replaces the outdated IPv4 TOS field.


Background

Modern data networks carry many different types of services, including voice, video, streaming music, web pages and email. Many of the proposed QoS mechanisms that allowed these services to co-exist were both complex and failed to scale to meet the demands of the public Internet. In December 1998, the
IETF The Internet Engineering Task Force (IETF) is a standards organization for the Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster or requirements and a ...
published - ''Definition of the Differentiated services field (DS field) in the IPv4 and
IPv6 header An IPv6 packet is the smallest message entity exchanged using Internet Protocol version 6 (IPv6). Packets consist of control information for addressing and routing and a payload of user data. The control information in IPv6 packets is subdivided ...
s'', which replaced the IPv4 ''TOS'' and ''IP precedence'' fields with the ''DS field''. In the DS field, a range of eight values (class selectors) is used for backward compatibility with the former IP precedence field. Today, DiffServ has largely supplanted TOS and other layer-3 QoS mechanisms, such as
integrated services In computer networking, integrated services or IntServ is an architecture that specifies the elements to guarantee quality of service (QoS) on networks. IntServ can for example be used to allow video and sound to reach the receiver without interrup ...
(IntServ), as the primary architecture routers use to provide QoS.


Traffic management mechanisms

DiffServ is a ''coarse-grained'', ''class-based'' mechanism for traffic management. In contrast, IntServ is a ''fine-grained'', ''flow-based'' mechanism. DiffServ relies on a mechanism to ''classify'' and ''mark'' packets as belonging to a specific class. DiffServ-aware routers implement per-hop behaviors (PHBs), which define the packet-forwarding properties associated with a class of traffic. Different PHBs may be defined to offer, for example, low-loss or
low-latency Latency, from a general point of view, is a time delay between the cause and the effect of some physical change in the system being observed. Lag, as it is known in gaming circles, refers to the latency between the input to a simulation and ...
service. Rather than differentiating network traffic based on the requirements of an individual flow, DiffServ operates on the principle of
traffic classification Traffic classification is an automated process which categorises computer network traffic according to various parameters (for example, based on port number or protocol) into a number of ''traffic classes''. Each resulting traffic class can be t ...
, placing each data packet into one of a limited number of traffic classes. Each router on the network is then configured to differentiate traffic based on its class. Each traffic class can be managed differently, ensuring preferential treatment for higher-priority traffic on the network. The premise of Diffserv is that complicated functions such as packet classification and policing can be carried out at the edge of the network by edge routers. Since no classification and policing is required in the core router, functionality there can then be kept simple. Core routers simply apply PHB treatment to packets based on their markings. PHB treatment is achieved by core routers using a combination of scheduling policy and queue management policy. A group of routers that implement common, administratively defined DiffServ policies are referred to as a ''DiffServ domain''. While DiffServ does recommend a standardized set of traffic classes, the DiffServ architecture does not incorporate predetermined judgments of what types of traffic should be given priority treatment. DiffServ simply provides a framework to allow classification and differentiated treatment. The standard traffic classes (discussed below) serve to simplify interoperability between different networks and different vendors' equipment.


Classification and marking

Network traffic entering a DiffServ domain is subjected to classification and conditioning. A traffic classifier may inspect many different parameters in incoming packets, such as source address, destination address or traffic type and assign individual packets to a specific traffic class. Traffic classifiers may honor any DiffServ markings in received packets or may elect to ignore or override those markings. For tight control over volumes and type of traffic in a given class, a network operator may choose not to honor markings at the ingress to the DiffServ domain. Traffic in each class may be further conditioned by subjecting the traffic to rate limiters, traffic policers or shapers. The per-hop behavior is determined by the DS field in the IP header. The DS field contains the 6-bit DSCP value.
Explicit Congestion Notification Explicit Congestion Notification (ECN) is an extension to the Internet Protocol and to the Transmission Control Protocol and is defined in RFC 3168 (2001). ECN allows end-to-end notification of network congestion without dropping packets. ECN is ...
(ECN) occupies the least-significant 2 bits of the IPv4 TOS field and IPv6 traffic class (TC) field.Filtering DSCP
In theory, a network could have up to 64 different traffic classes using the 64 available DSCP values. The DiffServ RFCs recommend, but do not require, certain encodings. This gives a network operator great flexibility in defining traffic classes. In practice, however, most networks use the following commonly defined per-hop behaviors: *''Default Forwarding'' (DF) PHB — which is typically best-effort traffic *''Expedited Forwarding'' (EF) PHB — dedicated to low-loss, low-latency traffic *''Assured Forwarding'' (AF) PHB — gives assurance of delivery under prescribed conditions *''Class Selector'' PHBs — which maintain backward compatibility with the IP precedence field.


Default Forwarding

A default forwarding (DF) PHB is the only required behavior. Essentially, any traffic that does not meet the requirements of any of the other defined classes uses DF. Typically, DF has best-effort forwarding characteristics. The recommended DSCP for DF is 0.


Expedited Forwarding

The IETF defines Expedited Forwarding (EF) behavior in . The EF PHB has the characteristics of low delay, low loss and low jitter. These characteristics are suitable for voice, video and other realtime services. EF traffic is often given strict priority queuing above all other traffic classes. Because an overload of EF traffic will cause queuing delays and affect the jitter and delay tolerances within the class,
admission control Admission control is a validation process in communication systems where a check is performed before a connection is established to see if current resources are sufficient for the proposed connection. Applications For some applications, dedicated ...
, traffic policing and other mechanisms may be applied to EF traffic. The recommended DSCP for EF is 101110B (46 or 2EH).


Voice Admit

The IETF defines Voice Admit behavior in . The Voice Admit PHB has identical characteristics to the Expedited Forwarding PHB. However, Voice Admit traffic is also admitted by the network using a Call Admission Control (CAC) procedure. The recommended DSCP for voice admit is 101100B (44 or 2CH).


Assured Forwarding

The IETF defines the Assured Forwarding (AF) behavior in and . Assured forwarding allows the operator to provide assurance of delivery as long as the traffic does not exceed some subscribed rate. Traffic that exceeds the subscription rate faces a higher probability of being dropped if congestion occurs. The AF behavior group defines four separate AF classes with all traffic within one class having the same priority. Within each class, packets are given a drop precedence (high, medium or low, where higher precedence means ''more'' dropping). The combination of classes and drop precedence yields twelve separate DSCP encodings from AF11 through AF43 (see table). Some measure of priority and proportional fairness is defined between traffic in different classes. Should congestion occur ''between'' classes, the traffic in the higher class is given priority. Rather than using strict priority queuing, more balanced queue servicing algorithms such as fair queuing or
weighted fair queuing Weighted fair queueing (WFQ) is a network scheduling algorithm. WFQ is both a packet-based implementation of the generalized processor sharing (GPS) policy, and a natural extension of fair queuing (FQ). Whereas FQ shares the link's capacity in ...
are likely to be used. If congestion occurs ''within'' a class, the packets with the higher drop precedence are discarded first. To prevent issues associated with
tail drop Tail drop is a simple queue management algorithm used by network schedulers in network equipment to decide when to drop packets. With tail drop, when the queue is filled to its maximum capacity, the newly arriving packets are dropped until the qu ...
, more sophisticated drop selection algorithms such as
random early detection Random early detection (RED), also known as random early discard or random early drop is a queuing discipline for a network scheduler suited for congestion avoidance. In the conventional tail drop algorithm, a router or other network component ...
are often used.


Class Selector

DF= Default Forwarding Prior to DiffServ, IPv4 networks could use the IP precedence field in the TOS byte of the IPv4 header to mark priority traffic. The TOS octet and IP precedence were not widely used. The IETF agreed to reuse the TOS octet as the DS field for DiffServ networks. In order to maintain backward compatibility with network devices that still use the Precedence field, DiffServ defines the ''Class Selector'' PHB. The Class Selector code points are of the binary form 'xxx000'. The first three bits are the IP precedence bits. Each IP precedence value can be mapped into a DiffServ class. IP precedence 0 maps to CS0, IP precedence 1 to CS1, and so on. If a packet is received from a non-DiffServ-aware router that used IP precedence markings, the DiffServ router can still understand the encoding as a Class Selector code point. Specific recommendations for use of Class Selector code points are given in RFC 4594.


Configuration guidelines

offers detailed and specific recommendations for the use and configuration of code points. sr+bs = single rate with burst size control.


Design considerations

Under DiffServ, all the policing and classifying are done at the boundaries between DiffServ domains. This means that in the core of the Internet, routers are unhindered by the complexities of collecting payment or enforcing agreements. That is, in contrast to IntServ, DiffServ requires no advance setup, no reservation, and no time-consuming end-to-end negotiation for each flow. The details of how individual routers deal with the DS field are configuration specific, therefore it is difficult to predict end-to-end behavior. This is complicated further if a packet crosses two or more DiffServ domains before reaching its destination. From a commercial viewpoint, this means that it is impossible to sell different classes of end-to-end connectivity to end users, as one provider's Gold packet may be another's Bronze. DiffServ or any other IP based QoS marking does not ensure the quality of the service or a specified
service-level agreement A service-level agreement (SLA) is a commitment between a service provider and a customer. Particular aspects of the service â€“ quality, availability, responsibilities â€“ are agreed between the service provider and the service user. T ...
(SLA). By marking the packets, the sender indicates that it wants the packets to be treated as a specific service, but there is no guarantee this happens. It is up to all the service providers and their routers in the path to ensure that their policies will take care of the packets in an appropriate fashion.


Bandwidth broker

A Bandwidth Broker in the framework of DiffServ is an agent that has some knowledge of an organization's priorities and policies and allocates bandwidth with respect to those policies. In order to achieve an end-to-end allocation of resources across separate domains, the Bandwidth Broker managing a domain will have to communicate with its adjacent peers, which allows end-to-end services to be constructed out of purely bilateral agreements.


DiffServ RFCs

* — Definition of the differentiated services field (DS field) in the IPv4 and IPv6 headers. * — An architecture for differentiated services. * — Assured forwarding PHB group. * — Differentiated services and tunnels. * — Definition of differentiated services per-domain behaviors and rules for their specification. * — Per hop behavior identification codes. (Obsoletes .) * — An expedited forwarding PHB. (Obsoletes .) * — Supplemental information for the new definition of the EF PHB (expedited forwarding per-hop behavior). * — New Terminology and Clarifications for Diffserv. (Updates , and .) * — Configuration Guidelines for DiffServ Service Classes. * — A differentiated services code point (DSCP) for capacity-admitted traffic. (Updates and .) * — A Lower-Effort Per-Hop Behavior (LE PHB) for Differentiated Services. (Updates and , obsoletes .)


DiffServ Management RFCs

* — Management information base for the differentiated services architecture. * — An informal management model for differentiated services routers. * — Differentiated services quality of service policy information base.


See also

*
Class of service Class of service (COS or CoS) is a parameter used in data and voice protocols to differentiate the types of payloads contained in the packet being transmitted. The objective of such differentiation is generally associated with assigning prioritie ...
*
Teletraffic engineering Teletraffic engineering, telecommunications traffic engineering, or just traffic engineering when in context, is the application of transportation traffic engineering theory to telecommunications. Teletraffic engineers use their knowledge of stat ...


References


Further reading

* *


External links

* IET
DiffServ Working Group
page * Cisco Whitepaper â€

* ACM SIGCOMM'09 pape
Modeling and Understanding End-to-End Class of Service Policies in Operational Networks
proposes a practical model for extracting DiffServ policies
Cisco: Implementing Quality of Service Policies with DSCP
{{DEFAULTSORT:Differentiated services Internet architecture Internet Standards Quality of service