SlideShare uma empresa Scribd logo
1 de 2
Baixar para ler offline
QUALITY               OF        SERVICE                 PART 1                                          packetlife.net
                        Quality of Service Models                                      IP Type of Service (TOS)
Best Effort    No QoS policies are implemented
                                                                                     Precedence
Integrated Services (IntServ)
Resource Reservation Protocol (RSVP) is used to reserve bandwidth per-
flow across all nodes in a path                                                           Ver     HL        TOS   Len

Differentiated Services (DiffServ)
Packets are individually classified and marked; policy decisions are made                 DSCP
independently by each node in a path

                           Layer 2 QoS Markings                                            Precedence/DSCP
                                                                                        Binary         DSCP        Prec.
       Medium Name                        Type

    Ethernet Class of Service (CoS) 3-bit 802.1p field in 802.1Q header            56 111000           Reserved    7

Frame Relay Discard Eligibility (DE) 1-bit drop eligibility flag                   48 110000           Reserved    6

         ATM Cell Loss Priority (CLP) 1-bit drop eligibility flag                  46 101110           EF          5

        MPLS Traffic Class (TC)           3-bit field compatible with 802.1p       32 100000           CS4
                                                                                   34 100010           AF41
                                IP QoS Markings                                                                    4
                                                                                   36 100100           AF42
IP Precedence
The first three bits of the IP TOS field; limited to 8 traffic classes             38 100110           AF43
Differentiated Services Code Point (DSCP)                                          24 011000           CS3
The first six bits of the IP TOS are evaluated to provide more granular
                                                                                   26 011010           AF31
classification; backward-compatible with IP Precedence                                                             3
                                                                                   28 011100           AF32
                                QoS Flowchart
                                                                                   30 011110           AF33
         No                                                                        16 010000           CS2
                                       Software Queue
                                                                                   18 010010           AF21
                                                            Scheduler




      HW       Yes                                                                                                 2
                     Queuing                                            Hardware
     Queue                             Software Queue                              20 010100           AF22
                     Decision                                            Queue
     Full?
                                       Software Queue                              22 010110           AF23
                                                                                     8 001000          CS1

                                 Terminology                                       10 001010           AF11
                                                                                                                   1
Per-Hop Behavior (PHB)                                                             12 001100           AF12
The individual QoS action performed at each independent DiffServ node              14 001110           AF13
Trust Boundary       Beyond this, inbound QoS markings are not trusted               0 000000          BE          0
Tail Drop     Occurs when a packet is dropped because a queue is full
                                                                                         Congestion Avoidance
Policing
Imposes an artificial ceiling on the amount of bandwidth that may be               Random Early Detection (RED)
consumed; traffic exceeding the policer rate is reclassified or dropped            Packets are randomly dropped
                                                                                   before a queue is full to prevent tail
Shaping
                                                                                   drop; mitigates TCP
Similar to policing but buffers excess traffic for delayed transmission;
                                                                                   synchronization
makes more efficient use of bandwidth but introduces a delay
TCP Synchronization                                                                Weighted RED (WRED)
Flows adjust TCP window sizes in synch, making inefficient use of a link           RED with the added capability of
                                                                                   recognizing prioritized traffic based
                         DSCP Per-Hop Behaviors                                    on its marking
Class Selector (CS)      Backward-compatible with IP Precedence values             Class-Based WRED (CBWRED)
Assured Forwarding (AF)          Four classes with variable drop preferences       WRED employed inside a class-
                                                                                   based WFQ (CBWFQ) queue
Expedited Forwarding (EF)          Priority queuing for delay-sensitive traffic

by Jeremy Stretch                                                                                                       v2.0
QUALITY                      OF    SERVICE                         PART 2                                        packetlife.net
                                                          Queuing Comparison
                                       FIFO               PQ               CQ               WFQ          CBWFQ           LLQ

        Default on Interfaces >2 Mbps                     No               No               <=2 Mbps     No              No
              Number of Queues 1                          4                Configured       Dynamic      Configured      Configured
            Configurable Classes No                       Yes              Yes              No           Yes             Yes
        Bandwidth Allocation Automatic                    Automatic        Configured       Automatic    Configured      Configured
 Provides for Minimal Delay No                            Yes              No               No           No              Yes
    Modern Implementation Yes                             No               No               No           Yes             Yes

    First In First Out (FIFO)                       Priority Queuing (PQ)                             LLQ Config Example

                                                  High                                                                Class Definitions

                     Tx                                                                      ! Match packets by DSCP value
                    Ring                       Medium                                        class-map match-all Voice
                                                                                              match dscp ef
                                               Normal
                                                                                 Hardware
                                                                                             !
              Hardware Queue                                                      Queue      class-map match-all Call-Signaling
                                                  Low                                         match dscp cs3
 Packets are transmitted in the                                                              !
order they are processed                       Provides four static queues which             class-map match-any Critical-Apps
                                              cannot be reconfigured                          match dscp af21 af22
 No prioritization is provided
                                                                                             !
 Default queuing method on high-               Higher-priority queues are                    ! Match packets by access list
speed (>2 Mbps) interfaces                    always emptied before lower-                   class-map match-all Scavenger
                                              priority queues                                 match access-group name Other
  Configurable with the tx-ring-
limit interface config command                 Lower-priority queues are at risk
                                                                                             policy-map Foo         Policy Creation
                                              of bandwidth starvation
      Custom Queuing (CQ)                                                                     class Voice
                                              Weighted Fair Queuing (WFQ)                      ! Priority queue policed to 33%
 Queue A      500 B/cycle                                                                      priority percent 33
                                                Flow 1                                        class Call-Signaling
 Queue B      4500 B/cycle                                                                     ! Allocate 5% of bandwidth
                                                Flow 2                                         bandwidth percent 5
                                  Hardware
 Queue C      1500 B/cycle         Queue                         ...                          class Critical-Apps
                                                                                 Hardware      bandwidth percent 20
 Rotates through queues using                   Flow n                            Queue        ! Extend queue size to 96 packets
Weighted Round Robin (WRR)                                                                     queue-limit 96
                                               Queues are dynamically created                 class Scavenger
 Processes a configurable number                                                               ! Police to 64 kbps
                                              per flow to ensure fair processing
of bytes from each queue per turn                                                              police cir 64000
                                               Statistically drops packets from
 Prevents queue starvation but                                                                  conform-action transmit
                                              aggressive flows more often                       exceed-action drop
does not provide for delay-
sensitive traffic                               No support for delay-sensitive                class class-default
                                              traffic                                          ! Enable WFQ
  Class-Based WFQ (CBWFQ)                                                                      fair-queue
                                                Low Latency Queuing (LLQ)                      ! Enable WRED
                                                                                               random-detect
 Queue A     512 Kbps Min
                                               Priority    512 Kbps Max
                                                                                             interface Serial0   Policy Application
 Queue B     1024 Kbps Min
                                              Queue A      512 Kbps Min                       ! Apply the policy in or out
                                  Hardware                                                    service-policy output Foo
  Default     Remainder            Queue      Queue B      1024 Kbps Min

 WFQ with administratively                                                       Hardware             LLQ Config Example
                                               Default        Remainder           Queue
configured queues                                                                            show policy-map [interface]
 Each queue is allocated an                    CBWFQ with the addition of a
                                                                                             Show interface
amount/percentage of bandwidth                policed strict-priority queue
  No support for delay-sensitive               Highly configurable while still               show queue <interface>
traffic                                       supporting delay-sensitive traffic             Show mls qos

by Jeremy Stretch                                                                                                                 v2.0

Mais conteúdo relacionado

Mais procurados

20110224 saf cfip_brochure_en
20110224 saf cfip_brochure_en20110224 saf cfip_brochure_en
20110224 saf cfip_brochure_ennezinamais
 
Openflow Stanford University - Ericsson Collaboration
Openflow Stanford University - Ericsson CollaborationOpenflow Stanford University - Ericsson Collaboration
Openflow Stanford University - Ericsson CollaborationEricsson Labs
 
Trill spb-comparison-extract
Trill spb-comparison-extractTrill spb-comparison-extract
Trill spb-comparison-extractIssacYuan
 
Flexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLAN
Flexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLANFlexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLAN
Flexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLANCisco Canada
 
ISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond Appliances
ISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond AppliancesISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond Appliances
ISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond AppliancesContinuous Computing
 
통신시스템(Gsm network)
통신시스템(Gsm network)통신시스템(Gsm network)
통신시스템(Gsm network)영기 김
 
Lte Latam 2012 Alberto Boaventura V6
Lte Latam 2012 Alberto Boaventura V6Lte Latam 2012 Alberto Boaventura V6
Lte Latam 2012 Alberto Boaventura V6Alberto Boaventura
 
2005* ApresentaçãO Sobre AviaçãO Executiva Paris Air Show
2005* ApresentaçãO Sobre AviaçãO Executiva   Paris Air Show2005* ApresentaçãO Sobre AviaçãO Executiva   Paris Air Show
2005* ApresentaçãO Sobre AviaçãO Executiva Paris Air ShowEmbraer RI
 
Enea Linux Base Station Platform FTF China
Enea Linux Base Station Platform FTF ChinaEnea Linux Base Station Platform FTF China
Enea Linux Base Station Platform FTF ChinaEneaSoftware
 
Energy Efficient Fragment Recovery Techniques for Low-power and Lossy Networks
Energy Efficient Fragment Recovery Techniques for Low-power and Lossy NetworksEnergy Efficient Fragment Recovery Techniques for Low-power and Lossy Networks
Energy Efficient Fragment Recovery Techniques for Low-power and Lossy NetworksAhmed Ayadi
 
Virtual Private LAN Service (VPLS)
Virtual Private LAN Service (VPLS)Virtual Private LAN Service (VPLS)
Virtual Private LAN Service (VPLS)Johnson Liu
 
New solutions for wireless infrastructure applications
New solutions for wireless infrastructure applicationsNew solutions for wireless infrastructure applications
New solutions for wireless infrastructure applicationschiportal
 
ARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack PortingARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack PortingMathivanan Elangovan
 
Cisco 刘洋 从“路由”回归“交换”
Cisco 刘洋 从“路由”回归“交换”Cisco 刘洋 从“路由”回归“交换”
Cisco 刘洋 从“路由”回归“交换”guiyingshenxia
 
2003 salih 3_gdata1
2003 salih 3_gdata12003 salih 3_gdata1
2003 salih 3_gdata1tapansaha26
 

Mais procurados (18)

Why EoMPLS for CE
Why EoMPLS for CEWhy EoMPLS for CE
Why EoMPLS for CE
 
20110224 saf cfip_brochure_en
20110224 saf cfip_brochure_en20110224 saf cfip_brochure_en
20110224 saf cfip_brochure_en
 
Openflow Stanford University - Ericsson Collaboration
Openflow Stanford University - Ericsson CollaborationOpenflow Stanford University - Ericsson Collaboration
Openflow Stanford University - Ericsson Collaboration
 
Trill spb-comparison-extract
Trill spb-comparison-extractTrill spb-comparison-extract
Trill spb-comparison-extract
 
Flexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLAN
Flexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLANFlexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLAN
Flexible Data Centre Fabric - FabricPath/TRILL, OTV, LISP and VXLAN
 
ISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond Appliances
ISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond AppliancesISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond Appliances
ISS World Prague 2010 - DPI at 40G and 100G: Moving Beyond Appliances
 
76.8600 50142 b
76.8600 50142 b76.8600 50142 b
76.8600 50142 b
 
통신시스템(Gsm network)
통신시스템(Gsm network)통신시스템(Gsm network)
통신시스템(Gsm network)
 
Lte Latam 2012 Alberto Boaventura V6
Lte Latam 2012 Alberto Boaventura V6Lte Latam 2012 Alberto Boaventura V6
Lte Latam 2012 Alberto Boaventura V6
 
2005* ApresentaçãO Sobre AviaçãO Executiva Paris Air Show
2005* ApresentaçãO Sobre AviaçãO Executiva   Paris Air Show2005* ApresentaçãO Sobre AviaçãO Executiva   Paris Air Show
2005* ApresentaçãO Sobre AviaçãO Executiva Paris Air Show
 
Enea Linux Base Station Platform FTF China
Enea Linux Base Station Platform FTF ChinaEnea Linux Base Station Platform FTF China
Enea Linux Base Station Platform FTF China
 
Energy Efficient Fragment Recovery Techniques for Low-power and Lossy Networks
Energy Efficient Fragment Recovery Techniques for Low-power and Lossy NetworksEnergy Efficient Fragment Recovery Techniques for Low-power and Lossy Networks
Energy Efficient Fragment Recovery Techniques for Low-power and Lossy Networks
 
Diameter Overview
Diameter OverviewDiameter Overview
Diameter Overview
 
Virtual Private LAN Service (VPLS)
Virtual Private LAN Service (VPLS)Virtual Private LAN Service (VPLS)
Virtual Private LAN Service (VPLS)
 
New solutions for wireless infrastructure applications
New solutions for wireless infrastructure applicationsNew solutions for wireless infrastructure applications
New solutions for wireless infrastructure applications
 
ARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack PortingARM LPC2300/LPC2400 TCP/IP Stack Porting
ARM LPC2300/LPC2400 TCP/IP Stack Porting
 
Cisco 刘洋 从“路由”回归“交换”
Cisco 刘洋 从“路由”回归“交换”Cisco 刘洋 从“路由”回归“交换”
Cisco 刘洋 从“路由”回归“交换”
 
2003 salih 3_gdata1
2003 salih 3_gdata12003 salih 3_gdata1
2003 salih 3_gdata1
 

Destaque (20)

Voip basics
Voip basicsVoip basics
Voip basics
 
Cloud computing e gov-12
Cloud computing e gov-12Cloud computing e gov-12
Cloud computing e gov-12
 
Tcpdump
TcpdumpTcpdump
Tcpdump
 
Physical terminations
Physical terminationsPhysical terminations
Physical terminations
 
The itil foundation_certificate_syllabus (2) (1)
The itil foundation_certificate_syllabus (2) (1)The itil foundation_certificate_syllabus (2) (1)
The itil foundation_certificate_syllabus (2) (1)
 
Cctns trg syllabus
Cctns trg syllabusCctns trg syllabus
Cctns trg syllabus
 
Vla ns
Vla nsVla ns
Vla ns
 
Ccna
CcnaCcna
Ccna
 
Networking
NetworkingNetworking
Networking
 
Ppp
PppPpp
Ppp
 
Scapy
ScapyScapy
Scapy
 
Ccna read
Ccna readCcna read
Ccna read
 
Advanced troubleshooting
Advanced troubleshootingAdvanced troubleshooting
Advanced troubleshooting
 
【Interop Tokyo 2015】 SP 04: シスコ サービス プロバイダー アクセス ポートフォリオ
【Interop Tokyo 2015】 SP 04: シスコ サービス プロバイダー アクセス ポートフォリオ【Interop Tokyo 2015】 SP 04: シスコ サービス プロバイダー アクセス ポートフォリオ
【Interop Tokyo 2015】 SP 04: シスコ サービス プロバイダー アクセス ポートフォリオ
 
Rip
RipRip
Rip
 
Spanning tree
Spanning treeSpanning tree
Spanning tree
 
【Interop tokyo 2014】 シスコ技術者認定 プロフェッショナル レベル CCNP Security
【Interop tokyo 2014】 シスコ技術者認定 プロフェッショナル レベル CCNP Security【Interop tokyo 2014】 シスコ技術者認定 プロフェッショナル レベル CCNP Security
【Interop tokyo 2014】 シスコ技術者認定 プロフェッショナル レベル CCNP Security
 
E governance
E governanceE governance
E governance
 
certificate
certificatecertificate
certificate
 
D2014082010
D2014082010D2014082010
D2014082010
 

Semelhante a Qo s

DBodle QoS Exam Study Notes
DBodle QoS Exam Study NotesDBodle QoS Exam Study Notes
DBodle QoS Exam Study NotesDuane Bodle
 
DIANA: Scenarios for QoS based integration of IP and ATM
DIANA: Scenarios for QoS based integration of IP and ATMDIANA: Scenarios for QoS based integration of IP and ATM
DIANA: Scenarios for QoS based integration of IP and ATMJohn Loughney
 
Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS) Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS) Reza Farahani
 
Shinde qos-mpls-tutorial
Shinde qos-mpls-tutorialShinde qos-mpls-tutorial
Shinde qos-mpls-tutorialadvojoy
 
BFS Distribution Via DCM
BFS Distribution Via DCMBFS Distribution Via DCM
BFS Distribution Via DCMowenlin
 
Packet shaper datasheet 81
Packet shaper datasheet 81Packet shaper datasheet 81
Packet shaper datasheet 81Zalli13
 
Packet shaper datasheet 81
Packet shaper datasheet 81Packet shaper datasheet 81
Packet shaper datasheet 81Zalli13
 
Avaya VoIP on Cisco Best Practices by PacketBase
Avaya VoIP on Cisco Best Practices by PacketBaseAvaya VoIP on Cisco Best Practices by PacketBase
Avaya VoIP on Cisco Best Practices by PacketBasePacketBase, Inc.
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Deploying Carrier Ethernet Features on Cisco ASR 9000
Deploying Carrier Ethernet Features on Cisco ASR 9000Deploying Carrier Ethernet Features on Cisco ASR 9000
Deploying Carrier Ethernet Features on Cisco ASR 9000Vinod Kumar Balasubramanyam
 
An2418881897
An2418881897An2418881897
An2418881897IJMER
 
Week11 qo s-2017(1)
Week11 qo s-2017(1)Week11 qo s-2017(1)
Week11 qo s-2017(1)trayyoo
 

Semelhante a Qo s (20)

Qo s
Qo sQo s
Qo s
 
Qos Demo
Qos DemoQos Demo
Qos Demo
 
DBodle QoS Exam Study Notes
DBodle QoS Exam Study NotesDBodle QoS Exam Study Notes
DBodle QoS Exam Study Notes
 
DIANA: Scenarios for QoS based integration of IP and ATM
DIANA: Scenarios for QoS based integration of IP and ATMDIANA: Scenarios for QoS based integration of IP and ATM
DIANA: Scenarios for QoS based integration of IP and ATM
 
Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS) Fundamental of Quality of Service(QoS)
Fundamental of Quality of Service(QoS)
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 
Mpls Qos Jayk
Mpls Qos JaykMpls Qos Jayk
Mpls Qos Jayk
 
Bts3900 b qos feature description
Bts3900 b qos feature descriptionBts3900 b qos feature description
Bts3900 b qos feature description
 
Shinde qos-mpls-tutorial
Shinde qos-mpls-tutorialShinde qos-mpls-tutorial
Shinde qos-mpls-tutorial
 
BFS Distribution Via DCM
BFS Distribution Via DCMBFS Distribution Via DCM
BFS Distribution Via DCM
 
Packet shaper datasheet 81
Packet shaper datasheet 81Packet shaper datasheet 81
Packet shaper datasheet 81
 
Packet shaper datasheet 81
Packet shaper datasheet 81Packet shaper datasheet 81
Packet shaper datasheet 81
 
Avaya VoIP on Cisco Best Practices by PacketBase
Avaya VoIP on Cisco Best Practices by PacketBaseAvaya VoIP on Cisco Best Practices by PacketBase
Avaya VoIP on Cisco Best Practices by PacketBase
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Deploying Carrier Ethernet Features on Cisco ASR 9000
Deploying Carrier Ethernet Features on Cisco ASR 9000Deploying Carrier Ethernet Features on Cisco ASR 9000
Deploying Carrier Ethernet Features on Cisco ASR 9000
 
Deploying Carrier Ethernet features on ASR 9000
Deploying Carrier Ethernet features on ASR 9000Deploying Carrier Ethernet features on ASR 9000
Deploying Carrier Ethernet features on ASR 9000
 
Mpls co s
Mpls co sMpls co s
Mpls co s
 
80211
8021180211
80211
 
An2418881897
An2418881897An2418881897
An2418881897
 
Week11 qo s-2017(1)
Week11 qo s-2017(1)Week11 qo s-2017(1)
Week11 qo s-2017(1)
 

Mais de Swapnil Kapate (13)

Training development382
Training development382Training development382
Training development382
 
Ccnp workbook network bulls
Ccnp workbook network bullsCcnp workbook network bulls
Ccnp workbook network bulls
 
Ip addressing and subnetting instructors workbook
Ip addressing and subnetting   instructors workbookIp addressing and subnetting   instructors workbook
Ip addressing and subnetting instructors workbook
 
Ospf
OspfOspf
Ospf
 
Nat
NatNat
Nat
 
Media wiki
Media wikiMedia wiki
Media wiki
 
Markdown
MarkdownMarkdown
Markdown
 
Is is
Is isIs is
Is is
 
I pv4 subnetting
I pv4 subnettingI pv4 subnetting
I pv4 subnetting
 
I pv4 multicast
I pv4 multicastI pv4 multicast
I pv4 multicast
 
I psec
I psecI psec
I psec
 
Ios zone based-firewall
Ios zone based-firewallIos zone based-firewall
Ios zone based-firewall
 
Ios i pv4_access_lists
Ios i pv4_access_listsIos i pv4_access_lists
Ios i pv4_access_lists
 

Qo s

  • 1. QUALITY OF SERVICE PART 1 packetlife.net Quality of Service Models IP Type of Service (TOS) Best Effort No QoS policies are implemented Precedence Integrated Services (IntServ) Resource Reservation Protocol (RSVP) is used to reserve bandwidth per- flow across all nodes in a path Ver HL TOS Len Differentiated Services (DiffServ) Packets are individually classified and marked; policy decisions are made DSCP independently by each node in a path Layer 2 QoS Markings Precedence/DSCP Binary DSCP Prec. Medium Name Type Ethernet Class of Service (CoS) 3-bit 802.1p field in 802.1Q header 56 111000 Reserved 7 Frame Relay Discard Eligibility (DE) 1-bit drop eligibility flag 48 110000 Reserved 6 ATM Cell Loss Priority (CLP) 1-bit drop eligibility flag 46 101110 EF 5 MPLS Traffic Class (TC) 3-bit field compatible with 802.1p 32 100000 CS4 34 100010 AF41 IP QoS Markings 4 36 100100 AF42 IP Precedence The first three bits of the IP TOS field; limited to 8 traffic classes 38 100110 AF43 Differentiated Services Code Point (DSCP) 24 011000 CS3 The first six bits of the IP TOS are evaluated to provide more granular 26 011010 AF31 classification; backward-compatible with IP Precedence 3 28 011100 AF32 QoS Flowchart 30 011110 AF33 No 16 010000 CS2 Software Queue 18 010010 AF21 Scheduler HW Yes 2 Queuing Hardware Queue Software Queue 20 010100 AF22 Decision Queue Full? Software Queue 22 010110 AF23 8 001000 CS1 Terminology 10 001010 AF11 1 Per-Hop Behavior (PHB) 12 001100 AF12 The individual QoS action performed at each independent DiffServ node 14 001110 AF13 Trust Boundary Beyond this, inbound QoS markings are not trusted 0 000000 BE 0 Tail Drop Occurs when a packet is dropped because a queue is full Congestion Avoidance Policing Imposes an artificial ceiling on the amount of bandwidth that may be Random Early Detection (RED) consumed; traffic exceeding the policer rate is reclassified or dropped Packets are randomly dropped before a queue is full to prevent tail Shaping drop; mitigates TCP Similar to policing but buffers excess traffic for delayed transmission; synchronization makes more efficient use of bandwidth but introduces a delay TCP Synchronization Weighted RED (WRED) Flows adjust TCP window sizes in synch, making inefficient use of a link RED with the added capability of recognizing prioritized traffic based DSCP Per-Hop Behaviors on its marking Class Selector (CS) Backward-compatible with IP Precedence values Class-Based WRED (CBWRED) Assured Forwarding (AF) Four classes with variable drop preferences WRED employed inside a class- based WFQ (CBWFQ) queue Expedited Forwarding (EF) Priority queuing for delay-sensitive traffic by Jeremy Stretch v2.0
  • 2. QUALITY OF SERVICE PART 2 packetlife.net Queuing Comparison FIFO PQ CQ WFQ CBWFQ LLQ Default on Interfaces >2 Mbps No No <=2 Mbps No No Number of Queues 1 4 Configured Dynamic Configured Configured Configurable Classes No Yes Yes No Yes Yes Bandwidth Allocation Automatic Automatic Configured Automatic Configured Configured Provides for Minimal Delay No Yes No No No Yes Modern Implementation Yes No No No Yes Yes First In First Out (FIFO) Priority Queuing (PQ) LLQ Config Example High Class Definitions Tx ! Match packets by DSCP value Ring Medium class-map match-all Voice match dscp ef Normal Hardware ! Hardware Queue Queue class-map match-all Call-Signaling Low match dscp cs3 Packets are transmitted in the ! order they are processed Provides four static queues which class-map match-any Critical-Apps cannot be reconfigured match dscp af21 af22 No prioritization is provided ! Default queuing method on high- Higher-priority queues are ! Match packets by access list speed (>2 Mbps) interfaces always emptied before lower- class-map match-all Scavenger priority queues match access-group name Other Configurable with the tx-ring- limit interface config command Lower-priority queues are at risk policy-map Foo Policy Creation of bandwidth starvation Custom Queuing (CQ) class Voice Weighted Fair Queuing (WFQ) ! Priority queue policed to 33% Queue A 500 B/cycle priority percent 33 Flow 1 class Call-Signaling Queue B 4500 B/cycle ! Allocate 5% of bandwidth Flow 2 bandwidth percent 5 Hardware Queue C 1500 B/cycle Queue ... class Critical-Apps Hardware bandwidth percent 20 Rotates through queues using Flow n Queue ! Extend queue size to 96 packets Weighted Round Robin (WRR) queue-limit 96 Queues are dynamically created class Scavenger Processes a configurable number ! Police to 64 kbps per flow to ensure fair processing of bytes from each queue per turn police cir 64000 Statistically drops packets from Prevents queue starvation but conform-action transmit aggressive flows more often exceed-action drop does not provide for delay- sensitive traffic No support for delay-sensitive class class-default traffic ! Enable WFQ Class-Based WFQ (CBWFQ) fair-queue Low Latency Queuing (LLQ) ! Enable WRED random-detect Queue A 512 Kbps Min Priority 512 Kbps Max interface Serial0 Policy Application Queue B 1024 Kbps Min Queue A 512 Kbps Min ! Apply the policy in or out Hardware service-policy output Foo Default Remainder Queue Queue B 1024 Kbps Min WFQ with administratively Hardware LLQ Config Example Default Remainder Queue configured queues show policy-map [interface] Each queue is allocated an CBWFQ with the addition of a Show interface amount/percentage of bandwidth policed strict-priority queue No support for delay-sensitive Highly configurable while still show queue <interface> traffic supporting delay-sensitive traffic Show mls qos by Jeremy Stretch v2.0