Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
DQOS Exam Certification Guide - Cisco press.pdf
Скачиваний:
74
Добавлен:
24.05.2014
Размер:
12.7 Mб
Скачать

114 Chapter 2: QoS Tools and Architectures

The Differentiated Services QoS Model

If you understood the Good-Old Common Sense (GOCS) model for QoS, you already understand at least half of the concepts behind DiffServ. DiffServ goes into a lot more depth, includes a large number of terms, but the core concepts of DiffServ can be summarized as follows:

Takes advantage of the scaling properties of class-based QoS tools to differentiate between types of packets, with the goal of “scalable service differentiation in the Internet.”

In a single network, packets should be marked at the ingress point into a network, with other devices making QoS choices based on the marked field.

The marked field will be in the IP header, not a data-link header, because the IP header is retained throughout the network.

Between networks, packets can be reclassified and re-marked at ingress into another network.

To facilitate marking, the IP header has be redefined to include a 6-bit Differentiated Services Code Point (DSCP) field, which allows for 64 different classifications.

To some extent, DiffServ formally defines a QoS architecture using common sense, or “best practices,” for QoS design today. Along with the formal definitions comes a lot of terminol- ogy—terminology that is purposefully not vendor specific. So, after learning the DiffServ terms, you need to relate them to Cisco tools and terms. But DiffServ is more than just recording some good ideas about QoS—DiffServ defines another useful field in the IP header (DSCP), as well as some conventions for usage of the new DSCP field. Finally, DiffServ defines general categories of QoS functions and the purpose of the tools in each category. This book has already covered those same concepts and terms from Cisco’s perspective, so in this chapter, you will read about the DiffServ terms for categories or types of QoS tools and how they relate to Cisco’s terms.

DiffServ Specifications and Terminology

DiffServ is defined by the RFCs listed in Table 2-11.

Table 2-11 DiffServ RFCs

RFC

Title

Comments

 

 

 

2474

Definition of the Differentiated Services

Contains the details of the 6-bit DSCP field in

 

Field (DS Field) in the IPv4 and IPv6

IP header.

 

Headers

 

 

 

 

2475

An Architecture for Differentiated Service

This is the core DiffServ conceptual document.

 

 

 

2597

Assured Forwarding PHB Group

Defines a set of 12 DSCP values and a

 

 

convention for their use.

 

 

 

 

 

 

The Differentiated Services QoS Model 115

 

 

 

 

 

Table 2-11 DiffServ RFCs (Continued)

 

 

 

 

 

 

 

 

RFC

Title

 

Comments

 

 

 

 

 

 

2598

An Expedited Forwarding PHB

 

Defines a single DSCP value as a convention

 

 

 

 

for use as a low-latency class.

 

 

 

 

 

 

3260

New Terminology and Clarifications for

 

Clarifies, but does not supercede, existing

 

 

DiffServ

 

DiffServ RFCs.

 

 

 

 

 

The RFCs introduce many new terms. Table 2-12 lists the terms and their definitions. This table provides a reference for study for the Cisco QoS exams; the rest of this section relates the terms to some network diagrams.

Table 2-12 DiffServ Terminology and Their Definitions

Term

Definition

 

 

Behavior aggregate (BA)

A DS behavior aggregate.

 

 

BA classifier

A classifier that selects packets based only on the contents of the DS field.

 

 

Classifier

An entity that selects packets based on the content of packet headers

 

according to defined rules.

 

 

DS behavior aggregate

A collection of packets with the same DS code point crossing a link in a

 

particular direction.

 

 

DS boundary node

A DS node that connects one DS domain to a node either in another DS

 

domain or in a domain that is not DS capable.

 

 

DS code point

A specific value of the DSCP portion of the DS field, used to select a PHB.

 

 

DS compliant

Enabled to support differentiated services functions and behaviors as

 

defined in [DSFIELD], this document, and other differentiated services

 

documents; usually used in reference to a node or device.

 

 

DS ingress node

A DS boundary node in its role in handling traffic as it enters a DS domain.

 

 

DS field

The IPv4 header ToS octet or the IPv6 traffic class octet when interpreted

 

in conformance with the definition given in [DSFIELD]. The bits of the

 

DSCP field encode the DS code point, whereas the remaining bits are

 

currently unused.

 

 

Dropper

A device that performs dropping.

 

 

Marker

A device that performs marking.

 

 

Meter

A device that performs metering.

 

 

continues

116 Chapter 2: QoS Tools and Architectures

Table 2-12 DiffServ Terminology and Their Definitions (Continued)

Term

Definition

 

 

MF classifier

A multifield (MF) classifier that selects packets based on the content of

 

some arbitrary number of header fields; typically some combination of

 

source address, destination address, DS field, protocol ID, source port and

 

destination port.

 

 

Per-hop behavior (PHB)

The externally observable forwarding behavior applied at a DS-compliant

 

node to a DS BA.

 

 

Policing

The process of discarding packets (by a dropper) within a traffic stream in

 

accordance with the state of a corresponding meter enforcing a traffic

 

profile.

 

 

Re-mark

To change the DS code point of a packet, usually performed by a marker in

 

accordance with a TCA.

 

 

Shaper

A device that performs shaping.

 

 

Traffic conditioner

An entity that performs traffic-conditioning functions and which may

 

contain meters, markers, droppers, and shapers. Traffic conditioners are

 

typically deployed in DS boundary nodes only. A traffic conditioner may

 

re-mark a traffic stream or may discard or shape packets to alter the

 

temporal characteristics of the stream and bring it into compliance with a

 

traffic profile.

 

 

Table 2-12 contains material reprinted from RFC 2475.

DiffServ terminology overwhelms most people when first learning the architecture. Not all the DiffServ terms are even listed in the table. In fact, I wouldn’t be surprised if you are already wondering which of these terms you really need to know when using QoS and which of these terms you need to know for the Cisco QoS exams. Neither of the exams covered by this book focus on DiffServ as an end to itself. If you glance over the table, and read this section, you should become familiar enough with the terms to do well on those questions on the exams.

The rest of this section explores some examples of usage of DiffServ terminology. The first two terms are “behavior aggregate” and “per-hop behavior.” If you read the previous section about the fictitious “GOCS model” for QoS, you already know the concepts behind the terms.

Figure 2-14 shows the terms in a figure that is a duplicate of Figure 2-12.

The Differentiated Services QoS Model 117

Figure 2-14 Behavior Aggregates and Per-Hop Behavior

Mark

X

Y

Z

-DS Classifier recognizes BAs by a detailed examination of packet headers

-DS Marker sets DSCP fields based on which BA it is a part of

-Best performed near the source

Classify

Drop

 

Shape

Queue

 

Bit Rate

 

 

 

?

 

Limit

 

 

x bps

 

Dropped

 

Down

 

 

Slow

 

 

 

-The BA Classifier identifies BAs by looking at the DSCP field -Routers apply PHBs to each BA

-Good QoS design typically implies same BAs throughout network -PHBs may be different on each router and for each BA

Server 1

IP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IP

Hannah

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

FA0

 

SW1

R1

s0

s0

R2

s1

T1

s0

R3

SW2

 

 

2

 

3

 

 

 

 

 

201

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

301

 

 

DSCP = AF11: Behavior Aggregate of Flows to Web Server

 

 

DSCP = AF21: Behavior Aggregate of Flows to Server1 FTP Server

 

 

DSCP = AF31: Behavior Aggregate of Lots of VoIP Payload Flows

 

 

DSCP = AF41: Behavior Aggregate of VoIP Signaling Traffic

 

Consider the flow of packets from left to right in this network. The following list numbers correspond to the steps in the figure:

1The packets are classified or categorized by matching fields in the header. For instance, packets with Server1’s destination IP address, and destination port 80, would be in the first class. The process of classifying the packets is performed by the DS classifier, MF classifier, or just classifier. The classifier marks the DSCP field inside the IP header; DSCP is a

118 Chapter 2: QoS Tools and Architectures

6-bit field inside the DS field (byte) inside the IP header. Classification and marking are considered to be two different steps—the DiffServ marker actually performs the process of marking the packets. DiffServ defines each class or category of packets as a BA.

2Router R1 determines which packets are part of which BA by using a BA classifier. A BA classifier only examines the DSCP field, so technically it differs from an MF classifier, as described in step 1, because the MF classifier can look at many fields besides the DSCP field. When R1 decides to apply a QoS tool to a BA (for example, queuing), the action is called a per-hop behavior. The term PHB makes sense to most people, particularly if you think of it as a per-hop QoS behavior.

3Router R2 performs the same types of tasks as R1; these tasks are described with the same terms as in step 2. Also note that the PHBs can be, and often are, different on one router to the next. In this case, R2 may want to use a shaping PHB—DiffServ would call the shaping tool a shaper—but because all implemented shaping tools need to calculate the rate at which packets are sent, DiffServ would consider both a meter and shaper to be used.

4Likewise, no new terminology is required to describe step 4, as compared with the two preceding steps. However, the terms “AF11,” “AF21,” “AF31,” and “AF41” have not yet been defined. DiffServ defines several suggested values to be used in the DSCP field. Most installations do not need all 64 values possible in DSCP. The next section in this chapter covers the details, but in this case, AF11, AF21, AF31, and AF41 represent different DSCP values.

DiffServ models good QoS design specifically to support Internet-scale QoS. Reading through the RFCs, you will notice that DiffServ focuses on issues between different networks. Figure 2-15 shows the same two enterprise networks and the same two ISPs shown in Figure 2-13 in the GOCS section of this chapter. The figure shows examples of several of the DiffServ terms that relate to interconnecting networks.

Figure 2-15 DiffServ Domains, Regions, and Nodes

 

 

DS Region

 

 

 

DS Interior Node

 

 

DS Ingress Boundary Node

DS Egress Boundary Node

 

McCoy

R3

 

ISP2

Hatfield

Ordinance, Inc.

ISP1

 

Gunsmiths

 

 

 

R1

R2

 

 

DS Domain

DS Domain

DS Domain

DS Domain

Direction of Flow of Packets in This Example