03.02.2014 Views

Medianet Reference Guide - Cisco

Medianet Reference Guide - Cisco

Medianet Reference Guide - Cisco

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 4<br />

<strong>Medianet</strong> QoS Design Considerations<br />

<strong>Cisco</strong> QoS Toolset<br />

policy-enforcement mechanism for that traffic type, where it receives predefined treatment (either<br />

preferential or deferential). Such treatment can include marking/remarking, queuing, policing,<br />

shaping, or any combination of these (and other) actions.<br />

• Marking, on the other hand, refers to changing a field within the packet to preserve the classification<br />

decision that was reached. Once a packet has been marked, a “trust-boundary” is established on<br />

which other QoS tools later depend. Marking is only necessary at the trust boundaries of the network<br />

and (as with all other QoS policy actions) cannot be performed without classification. By marking<br />

traffic at the trust boundary edge, subsequent nodes do not have to perform the same in-depth<br />

classification and analysis to determine how to treat the packet.<br />

<strong>Cisco</strong> IOS software performs classification based on the logic defined within the class map structure<br />

within the Modular QoS Command Line Interface (MQC) syntax. MQC class maps can perform<br />

classification based on the following types of parameters:<br />

• Layer 1 parameters—Physical interface, sub-interface, PVC, or port<br />

• Layer 2 parameters—MAC address, 802.1Q/p Class of Service (CoS) bits, MPLS Experimental<br />

(EXP) bits<br />

• Layer 3 parameters—Differentiated Services Code Points (DSCP), IP Precedence (IPP), IP Explicit<br />

Congestion Notification (IP ECN), source/destination IP address<br />

• Layer 4 parameters—TCP or UDP ports<br />

• Layer 7 parameters—Application signatures and URLs in packet headers or payload via Network<br />

Based Application Recognition (NBAR)<br />

NBAR is the most sophisticated classifier in the IOS tool suite. NBAR can recognize packets on a<br />

complex combination of fields and attributes. NBAR deep-packet classification engine examines the<br />

data payload of stateless protocols and identifies application-layer protocols by matching them against<br />

a Protocol Description Language Module (PDLM), which is essentially an application signature. NBAR<br />

is dependent on <strong>Cisco</strong> Express Forwarding (CEF) and performs deep-packet classification only on the<br />

first packet of a flow. The rest of the packets belonging to the flow are then CEF-switched. However, it<br />

is important to recognize that NBAR is merely a classifier, nothing more. NBAR can identify flows by<br />

performing deep-packet inspection, but it is up to the MQC policy-map to define what action should be<br />

taken on these NBAR-identified flows.<br />

Marking tools change fields within the packet, either at Layer 2 or at Layer 3, such that in-depth<br />

classification does not have to be performed at each network QoS decision point. The primary tool within<br />

MQC for marking is Class-Based Marking (though policers-sometimes called markers-may also be used,<br />

as is discussed shortly). Class-Based Marking can be used to set the CoS fields within an 802.1Q/p tag<br />

(as shown in Figure 4-10), the Experimental bits within a MPLS label (as shown in Figure 4-11), the<br />

Differentiated Services Code Points (DSCPs) within an IPv4 or IPv6 header (as shown in Figure 4-12),<br />

the IP ECN Bits (also shown in Figure 4-12), as well as other packet fields. Class-Based Marking, like<br />

NBAR, is CEF-dependant.<br />

OL-22201-01<br />

<strong>Medianet</strong> <strong>Reference</strong> <strong>Guide</strong><br />

4-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!