Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Differentiated services

From Wikipedia, the free encyclopedia
(Redirected fromDifferentiated services code point)
Networking architecture for prioritizing traffic
This article is about communication networks. For the design pattern for business applications, seeDifferentiated service (design pattern).

Differentiated services orDiffServ is acomputer networking architecture that specifies a mechanism for classifying and managing network traffic and providingquality of service (QoS) on modernIP networks. DiffServ can, for example, be used to providelow latency to critical network traffic such asvoice orstreaming media while providingbest-effort service to non-critical services such asweb traffic orfile transfers.

DiffServ uses a 6-bitdifferentiated services code point (DSCP) in the 6-bitdifferentiated services field (DS field) in the IP header for packet classification purposes. The DS field, together with theECN field, replaces the outdatedIPv4 TOS field.[1]

Background

[edit]

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 thepublic Internet. In December 1998, theIETF replaced theTOS andIP precedence fields in theIPv4 header with theDS field, which was later split to refer to only the top 6 bits with theECN field in the bottom two bits.[2][3] In theIPv6 header theDS field is part of theTraffic Class field where it occupies the 6 most significant bits.[2]

In the DS field, a range of eight values (class selectors) is used for backward compatibility with the former IPv4IP precedence field. Today, DiffServ has largely supplantedTOS and otherlayer-3 QoS mechanisms, such asintegrated services (IntServ), as the primary architecturerouters use to provide QoS.

Traffic management mechanisms

[edit]

DiffServ is acoarse-grained,class-based mechanism for traffic management. In contrast, IntServ is afine-grained,flow-based mechanism. DiffServ relies on a mechanism toclassify andmark packets as belonging to a specific class. DiffServ-aware routers implementper-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 orlow-latency service.

Rather than differentiating network traffic based on the requirements of an individual flow, DiffServ operates on the principle oftraffic classification, 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 routers, 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 aDiffServ domain.[4]

While DiffServ does recommend a standardized set of traffic classes,[5] 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

[edit]

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 torate limiters,traffic policers orshapers.[6]: §3 

The per-hop behavior is determined by the DS and ECN fields in the IP header. The DS field contains the 6-bit DSCP value.[2]Explicit Congestion Notification (ECN) occupies the least-significant 2 bits of the IPv4 TOS field and IPv6 traffic class (TC) field.[7][8][9]

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

[edit]

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.[5]

Expedited Forwarding

[edit]

The IETF defines Expedited Forwarding (EF) behavior inRFC 3246. 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 givenstrict 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,traffic policing and other mechanisms may be applied to EF traffic. The recommended DSCP for EF is 101110B (46 or 2EH).

Voice Admit

[edit]

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

Assured Forwarding

[edit]

The IETF defines the Assured Forwarding (AF) behavior inRFC 2597 andRFC 3260. 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 meansmore dropping). The combination of classes and drop precedence yields twelve separate DSCP encodings from AF11 through AF43 (see table).

Assured Forwarding behavior group
Drop
probability
Class 1Class 2Class 3Class 4
LowAF11 (DSCP 10) 001010AF21 (DSCP 18) 010010AF31 (DSCP 26) 011010AF41 (DSCP 34) 100010
MediumAF12 (DSCP 12) 001100AF22 (DSCP 20) 010100AF32 (DSCP 28) 011100AF42 (DSCP 36) 100100
HighAF13 (DSCP 14) 001110AF23 (DSCP 22) 010110AF33 (DSCP 30) 011110AF43 (DSCP 38) 100110

Some measure of priority and proportional fairness is defined between traffic in different classes. Should congestion occurbetween classes, the traffic in the higher class is given priority. Rather than using strict priority queuing, more balanced queue servicing algorithms such asfair queuing orweighted fair queuing are likely to be used. If congestion occurswithin a class, the packets with the higher drop precedence are discarded first. Re-marking a packet is sometimes used to increase its drop precedence if a stream's bandwidth exceeds a certain threshold. For example, a stream whose rate is above the Committed Information Rate (CIR) as defined inRFC 2697 causes the stream to be marked with a higher AF drop precedence. This allows the decision as to when to shape the stream to devices further downstream if they encounter congestion. To prevent issues associated withtail drop, more sophisticated drop selection algorithms such asrandom early detection are often used.

Class Selector

[edit]
Class Selector mapping[10]
Service classDSCP NameDSCP ValueIP precedenceExamples of application
StandardCS0 (DF)00 (000)NTP[11]
Low-priority dataCS181 (001)File transfer (FTP,SMB)
Networkoperations, administration and management (OAM)CS2162 (010)SNMP,SSH,Ping,Telnet,syslog
Broadcast videoCS3243 (011)
Real-time interactiveCS4324 (100)Gaming, low-priority video conferencing
SignalingCS5405 (101)Peer-to-peer (SIP,H.323), client-server IP telephony signaling (H.248,MEGACO,MGCP,SCCP)
Network controlCS6486 (110)Routing protocols (OSPF,BGP,IS-IS,RIP)
Reserved for future useCS7567 (111)

DF= Default Forwarding

Prior to DiffServ, IPv4 networks could use theIP precedence field in theTOS 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, later splitting it into the DS field and ECN field. In order to maintain backward compatibility with network devices that still use the Precedence field, DiffServ defines theClass Selector PHB.

The Class Selector code points are of the binary form 'xxx000'. The first three bits are the former 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 inRFC 4594.

Configuration guidelines

[edit]

RFC 4594 offers detailed and specific recommendations for the use and configuration of code points. Other RFCs, such asRFC 8622, have updated these recommendations. A full list is provided in the IETF DSCP code point registry.[12]

IETFRFC 4594 recommendations (with updates)
Service classDSCP NameDSCP ValueConditioning at DS edgePHBQueuingAQMRFC 5127 Treatment Aggregate
Network controlCS648See section 3.1RFC 2474RateYesNetwork control
TelephonyEF46Police using sr+bsRFC 3246PriorityNoRealtime (EF)
Telephony, Capacity-AdmittedVOICE-ADMIT44Police using sr+bsRFC 5865PriorityNo
SignalingCS540Police using sr+bsRFC 2474RateNo
Multimedia conferencingAF41, AF42, AF4334, 36, 38Using two-rate, three-color marker (such asRFC 2698)RFC 2597RateYes per DSCP
Real-time interactiveCS432Police using sr+bsRFC 2474RateNo
Broadcast videoCS324Police using sr+bsRFC 2474RateNo
OAMCS216Police using sr+bsRFC 2474RateYesAssured elastic (AF3)
Multimedia streamingAF31, AF32, AF3326, 28, 30Using two-rate, three-color marker (such asRFC 2698)RFC 2597RateYes per DSCP
Low-latency dataAF21, AF22, AF2318, 20, 22Using single-rate, three-color marker (such asRFC 2697)RFC 2597RateYes per DSCPAssured elastic (AF2)
High-throughput dataAF11, AF12, AF1310, 12, 14Using two-rate, three-color marker (such asRFC 2698)RFC 2597RateYes per DSCPAssured elastic (AF1)
StandardDF0Not applicableRFC 2474RateYesElastic (DF)
Non-Queue-BuildingNQB45With separate queue and traffic protectiondraft-ietf-tsvwg-nqbNQBN/A
Lower-effortLE1Not applicableRFC 8622PriorityYesElastic (DF) lower priority
CS1 (legacy)8RFC 3662

sr+bs = single rate with burst size control (such as atoken bucket).

Design considerations

[edit]

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 toIntServ, 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 specifiedservice-level agreement (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

[edit]

ABandwidth 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.[13] 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

[edit]
  • RFC 2474 — Definition of the differentiated services field (DS field) in theIPv4 andIPv6 headers. Note that the DS field of 8 bits (the bottom two unused) in[2] was later split into the current 6-bit DS field and a separate 2-bit ECN field.[3]
  • RFC 2475 — An architecture for differentiated services.
  • RFC 2597 — Assured forwarding PHB group.
  • RFC 2983 — Differentiated services and tunnels.
  • RFC 3086 — Definition of differentiated services per-domain behaviors and rules for their specification.
  • RFC 3140 — Per hop behavior identification codes. (ObsoletesRFC 2836.
  • RFC 3246 — An expedited forwarding PHB. (ObsoletesRFC 2598.)
  • RFC 3247 — Supplemental information for the new definition of the EF PHB (expedited forwarding per-hop behavior).
  • RFC 3260 — New Terminology and Clarifications for Diffserv. (UpdatesRFC 2474,RFC 2475 andRFC 2597.)
  • RFC 4594 — Configuration Guidelines for DiffServ Service Classes.
  • RFC 5865 — A differentiated services code point (DSCP) for capacity-admitted traffic. (UpdatesRFC 4542 andRFC 4594.)
  • RFC 8622 — A Lower-Effort Per-Hop Behavior (LE PHB) for Differentiated Services. (UpdatesRFC 4594 andRFC 8325, obsoletesRFC 3662.)

DiffServ Management RFCs

[edit]
  • RFC 3289 — Management information base for the differentiated services architecture.
  • RFC 3290 — An informal management model for differentiated services routers.
  • RFC 3317 — Differentiated services quality of service policy information base.

See also

[edit]

References

[edit]
  1. ^D. Grossman (April 2002).New Terminology and Clarifications for DiffServ.doi:10.17487/RFC3260.RFC3260.Informational. UpdatesRFC 2474,2475 and2597.
  2. ^abcdK. Nichols; S. Blake;F. Baker; D. Black (December 1998).Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers. Network Working Group.doi:10.17487/RFC2474.RFC2474.Proposed Standard. ObsoletesRFC 1455 and1349. Updated byRFC 3168,3260 and8436.
  3. ^abK. Ramakrishnan; S. Floyd; D. Black (September 2001).The Addition of Explicit Congestion Notification (ECN) to IP. Network Working Group.doi:10.17487/RFC3168.RFC3168.Proposed Standard. ObsoletesRFC 2481. UpdatesRFC 2474,2401 and793. Updated byRFC 4301,6040 and8311.
  4. ^S3700HI Ethernet Switches Configuration Guide - QoS,Huawei, p. 7, retrieved2016-10-07,A DiffServ domain is composed of a group of interconnected DiffServ nodes that use the same service policy and PHBs.
  5. ^abJ. Babiarz; K. Chan;F. Baker (August 2006).Configuration Guidelines for DiffServ Service Classes. Network Working Group.doi:10.17487/RFC4594.RFC4594.Informational. Updated byRFC 5865 and8622.
  6. ^J. Heinanen;F. Baker; W. Weiss; J. Wroclawski (June 1999).Assured Forwarding PHB Group. Network Working Group.doi:10.17487/RFC2597.RFC2597.Proposed Standard. Updated byRFC 3260.
  7. ^G. Tsirtsis; G. Giaretta; H. Soliman; N. Montavont (January 2011).Traffic Selectors for Flow Bindings.Internet Engineering Task Force.doi:10.17487/RFC6088.ISSN 2070-1721.RFC6088.Proposed Standard.
  8. ^Worldwide."Implementing Quality of Service Policies with DSCP". Cisco. Retrieved2010-10-16.
  9. ^Filtering DSCPArchived July 29, 2016, at theWayback Machine
  10. ^Class Selector. sec. 1.5.4.doi:10.17487/RFC4594.RFC4594.
  11. ^Mapping for NTP. sec. 5.2.doi:10.17487/RFC4594.RFC4594. suggests (emphasis added):
    • When NTP is used for providing high-accuracy timing within an administrator's (carrier's) network or to end users/clients, theTelephony service class should be used, and NTP packets should be marked with EF DSCP value.
    • For applications that require "wall clock" timing accuracy, the Standard service class should be used, and packets should be marked with DF DSCP.
  12. ^"Differentiated Services Field Codepoints (DSCP)".www.iana.org.
  13. ^K. Nichols; V. Jacobson; L. Zhang (July 1999).A Two-bit Differentiated Services Architecture for the Internet. IETF.doi:10.17487/RFC2638.RFC2638.

Further reading

[edit]

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Differentiated_services&oldid=1335192160"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp