Professional Documents
Culture Documents
QoS Architecture
Andy Chien
Consulting System Engineer
Cisco Systems
hchien@cisco.com
• Includes
PFC3- and DFC3-based forwarding, e.g., L2, IP, MPLS
Supervisor Engine 720, -3B, -3BXL
DFC3, DFC3B, DFC3BXL
OSM, Enhanced OSM
FlexWAN, Enhanced FlexWAN, SIP-200, SIP-400
Features available through 12.2(18)SXD
• Excludes
OSM- and FlexWAN-based forwarding, e.g., AToM
Supervisor Engine 2
DFC
• QoS Architecture
• QoS Command Sets
• Class of Service
• Internal Classification
Forwarding
Tables 16 Gbps Shared Bus
16 16
MSFC3
Classic CEF256 dCEF256 16
Linecard Linecard Linecard
PFC3
Fabric
Arbitration
dCEF720 CEF720
Linecard 8 8 8 Linecard
Net MGMT
NMP 20 20 20 20
Crossbar
Supervisor
Where QoS Lives
© 2005 Cisco Systems, Inc. All rights reserved. 6
QoS Architecture
Application
• Cisco 7600 distributes QoS features across the Supervisor Engine and
the line cards
• Each line card family is designed to provide the QoS features applicable
to its role, e.g., WAN cards have deeper buffers and more features than
LAN cards, while the simpler LAN cards are less expensive
• Knowing the ingress and egress line cards will tell you what QoS
features are available to you.
• Or vice versa, determine the QoS features you need, then select the
appropriate line cards.
• PFC3 on Sup720
Centralized forwarding for Catalyst, OSM, and FlexWAN line cards
Centralized policing and marking for Catalyst and OSM line cards
No packet buffer or queuing capabilities
• Catalyst LAN ports
Distributed packet buffering, queuing, scheduling
Hardware-based queues
Strict priority, WRR, DWWR, WRED
• OSM WAN ports
Distributed packet buffering, queuing, scheduling
Software-definable queues
Shaping
CBWFQ, LLQ, WRED (Enhanced OSMs)
• FlexWAN, SIP-200, SIP-400 ports
Fully distributed QoS; no dependencies on PFC3-based QoS
Policing, marking
Packet buffering, queuing, scheduling
Software-definable queues
CBWFQ, LLQ, Shaping, WRED, etc.
WFQ (FlexWAN, SIP-200)
1 2 3
Ingress QoS
Egress QoS
PFC3
PFC3
OSM WAN Port OSM WAN Port
Forwarding
Frame
PFC3
Ingress Egress
QoS QoS
1 2 3
Ingress QoS
Egress QoS
PFC3
PFC3
OSM WAN Port OSM WAN Port
Forwarding
Frame
PFC3
Ingress Egress
QoS QoS
3 2 1
Ingress QoS
Egress QoS
PFC3
PFC3
OSM WAN Port OSM WAN Port
Forwarding
PFC3
Egress Ingress Frame
QoS QoS
Frame
Egress Ingress
QoS QoS
1 2 3
Ingress QoS
Egress QoS
PFC3
PFC3
OSM WAN Port OSM WAN Port
Forwarding
Frame
PFC3
Ingress Egress
QoS QoS
3 2 1
Ingress QoS
Egress QoS
PFC3
PFC3
OSM WAN Port OSM WAN Port
Forwarding
PFC3
Egress Ingress Frame
QoS QoS
Frame
Egress Ingress
QoS QoS
• PFC3
Centralized marking and policing
ASIC implementation
Up to 30 Mpps forwarding rate
No throughput degradation when applying QoS
• Catalyst Line Card
Distributed port QoS
ASIC implementation
Line rate performance
No throughput degradation when applying QoS
• Enhanced OSM
Distributed port QoS
PXF implementation
Up to OC-48 throughput rate
In most cases, minimal throughput degradation when applying QoS
• FlexWAN, SIP-200
Distributed IOS – policing, marking, port QoS
Processor-based implementation (one per PA)
Some throughput degradation when applying QoS
• SIP-400
Distributed IOS – policing, marking, port QoS
Network processor-based implementation
In most cases, little or no degradation when applying QoS
class-map
Router(config)# class-map <match-all | match-any> class-map-name
Router(config-cmap)# match <access-group | ip precedence | ip dscp | mpls exp |...>
policy-map
Router(config)# policy-map policy-map-name
Router(config-pmap)# class class-name
Router(config-pmap-c)# <bandwidth | police | shape | random-detect | set | queue-limit
|...>
service-policy
Router(config)# interface interface-name
Router(config-if)# service-policy <input | output> policy-map-name
mls qos
! Several different global & interface commands
Router(config)# mls qos ...
Router(config-if)# mls qos ...
Router(config-subif)# mls qos ...
rcv-queue
Router(config-if)# rcv-queue <cos-map | queue-limit | random-detect | threshold> ...
wrr-queue
Router(config-if)# wrr-queue <bandwidth | cos-map | queue-limit | random-detect |
threshold> ...
priority-queue
Router(config-if)# priority-queue cos-map ...
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
C
3-bit
16-bit Ethertype (0x8100) F 12-bit VLAN ID
Prio I
32-bit FCS
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
MPLS EXP
3 bits wide; values 0–7
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
4-bit 4-bit
8-bit TOS 16-bit Total Length
Version Hdr Len
3-bit
16-bit Indentification 13-bit Fragment Offset
Flags
Data
IP Precedence
3 bits wide; values 0–7
DSCP
6 bits wide; values 0–63
0 0 0 0 0x00
1 1 1 8 0x20
2 2 2 16 0x40
3 3 3 24 0x60
4 4 4 32 0x80
5 5 5 40 0xA0
6 6 6 48 0xC0
7 7 7 56 0xE0
Input
CoS internal Output
dscp CoS
Trust
State QoS Result
Function Function
Frame Packet Packet Result Frame
Header Header Header
IOS Config
Legend
Frame data is in blue text.
Config is in italics.
Internal classification is in
Input
CoS internal Output
dscp CoS
mls qos
mls qos
Input
CoS internal Output
dscp CoS
mls qos
mls qos
Input
CoS internal Output
dscp CoS
mls qos
mls qos
Input
CoS internal Output
dscp CoS
mls qos
Input
CoS internal Output
cos-> dscp dscp CoS
dscp ->cos
Trust ipp->
State dscp
exp-> dscp
Frame Packet dscp Packet ->exp Result Frame
Header Header Header
QoS Result
Function Function
IOS Config
Legend
Frame data is in blue text.
Config is in italics.
Internal classification is in
1 2 3
Forwarding
Ingress
Egress
DFC3
DFC3
Frame Ingress Egress
QoS
QoS
DFC3
QoS QoS
Egress
QoS
FlexWAN, SIP-200,
SIP-400 Port
Egress
QoS
3 2 1
Ingress Frame
Ingress QoS
Egress QoS
QoS
PFC3
PFC3
Forwarding
PFC3
FlexWAN, SIP-200,
SIP-400 Port
Ingress Frame
QoS
Supervisor 720
Customer Customer
Diff-Serv Domain Service Provider Diff-Serv Domain Diff-Serv Domain
IP MPLS IP
A B C D E F G
• Allows a customer’s Diff-Serv domain on both edges of the service provider network
• Uses IP ToS-based QoS on the output i/f of PE2
12 EXP 16 EXP
QoS
23 EXP 23 EXP 23 EXP
IPP IPP IPP IPP IPP
A B C D E F G
Original Original
IPP is IPP is
Short Pipe preserved preserved
Mode
Behavior
Customer Customer
Diff-Serv Domain Service Provider Diff-Serv Domain Diff-Serv Domain
IP MPLS IP
A B C D E F G
• Extends the service provider’s Diff-Serv Domain to the output i/f of PE2
• Uses EXP-based QoS on the output i/f of PE2 even though the packet is transmitted as
an IP packet
• Allows scalability by eliminating per customer configuration in PE2
12 EXP 16 EXP
QoS
23 EXP 23 EXP 23 EXP
IPP IPP IPP IPP IPP
A B C D E F G
Original Original
IPP is IPP is
preserved preserved
Pipe Mode
Behavior
© 2005 Cisco Systems, Inc. All rights reserved. 43
Pipe Mode with Explicit NULL LSP
Architecture
Customer
Cust. Service Provider Diff-Serv Domain Diff-Serv Domain
IP MPLS IP
A B C D E F G
A B C D E F G
Original Original
IPP is IPP is
preserved preserved
Pipe Mode
Behavior
Diff-Serv Domain
IP MPLS IP
A B C D E F G
QoS
12 EXP 16 EXP
23 EXP 23 EXP 23 EXP
IPP IPP IPP IPP IPP
A B C D E F G