SlideShare une entreprise Scribd logo
1  sur  2
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

Layer-2 VPN
Layer-2 VPNLayer-2 VPN
Layer-2 VPN
rosmida
 

Tendances (20)

EPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC ConfigurationEPG PGW SAPC SACC PISC Configuration
EPG PGW SAPC SACC PISC Configuration
 
Gpon
GponGpon
Gpon
 
Segment Routing: A Tutorial
Segment Routing: A TutorialSegment Routing: A Tutorial
Segment Routing: A Tutorial
 
ACI MultiFabric 소개
ACI MultiFabric 소개ACI MultiFabric 소개
ACI MultiFabric 소개
 
Sapc upcc-pcrf- part 1 tbp
Sapc upcc-pcrf- part 1 tbpSapc upcc-pcrf- part 1 tbp
Sapc upcc-pcrf- part 1 tbp
 
IMS + VoLTE Overview
IMS + VoLTE OverviewIMS + VoLTE Overview
IMS + VoLTE Overview
 
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
 
Segment Routing Lab
Segment Routing Lab Segment Routing Lab
Segment Routing Lab
 
Lte default and dedicated bearer / VoLTE
Lte default and dedicated bearer / VoLTELte default and dedicated bearer / VoLTE
Lte default and dedicated bearer / VoLTE
 
MPLS Presentation
MPLS PresentationMPLS Presentation
MPLS Presentation
 
DMVPN Lab WorkBook
DMVPN Lab WorkBookDMVPN Lab WorkBook
DMVPN Lab WorkBook
 
SGSN- serving gprs support node - Platform - HW, SW and CLI
SGSN- serving gprs support node  - Platform - HW, SW and CLI SGSN- serving gprs support node  - Platform - HW, SW and CLI
SGSN- serving gprs support node - Platform - HW, SW and CLI
 
Ethernet VPN (EVPN) EVerything Provider Needs
Ethernet VPN (EVPN) EVerything Provider NeedsEthernet VPN (EVPN) EVerything Provider Needs
Ethernet VPN (EVPN) EVerything Provider Needs
 
SEGMENT Routing
SEGMENT RoutingSEGMENT Routing
SEGMENT Routing
 
PGW GGSN Optional Services Configuration
PGW GGSN Optional Services ConfigurationPGW GGSN Optional Services Configuration
PGW GGSN Optional Services Configuration
 
ospf routing protocol
ospf routing protocolospf routing protocol
ospf routing protocol
 
GPON
GPONGPON
GPON
 
a brief overview on link aggregation ieee 802.3ad
a brief overview on link aggregation ieee 802.3ada brief overview on link aggregation ieee 802.3ad
a brief overview on link aggregation ieee 802.3ad
 
Layer-2 VPN
Layer-2 VPNLayer-2 VPN
Layer-2 VPN
 
How to configure eo c services for huawei ol ts
How to configure eo c services for huawei ol tsHow to configure eo c services for huawei ol ts
How to configure eo c services for huawei ol ts
 

En vedette

En vedette (8)

QUALITY OF SERVICE(QoS) OF CLOUD
QUALITY OF SERVICE(QoS)OFCLOUDQUALITY OF SERVICE(QoS)OFCLOUD
QUALITY OF SERVICE(QoS) OF CLOUD
 
A Cross-Layer Based Multipath Routing Protocol To Improve QoS In Mobile Adhoc...
A Cross-Layer Based Multipath Routing Protocol To Improve QoS In Mobile Adhoc...A Cross-Layer Based Multipath Routing Protocol To Improve QoS In Mobile Adhoc...
A Cross-Layer Based Multipath Routing Protocol To Improve QoS In Mobile Adhoc...
 
QoS Management in Cloud Computing-Draft proposal
QoS Management in Cloud Computing-Draft proposalQoS Management in Cloud Computing-Draft proposal
QoS Management in Cloud Computing-Draft proposal
 
2009
20092009
2009
 
QoS In The Enterprise
QoS In The EnterpriseQoS In The Enterprise
QoS In The Enterprise
 
End-to-End QoS in LTE
End-to-End QoS in LTEEnd-to-End QoS in LTE
End-to-End QoS in LTE
 
QoS (quality of service)
QoS (quality of service)QoS (quality of service)
QoS (quality of service)
 
Mobile QoS Management using Complex Event Processing
Mobile QoS Management using Complex Event ProcessingMobile QoS Management using Complex Event Processing
Mobile QoS Management using Complex Event Processing
 

Similaire à QoS Cheatsheet by packetlife.net

Shinde qos-mpls-tutorial
Shinde qos-mpls-tutorialShinde qos-mpls-tutorial
Shinde qos-mpls-tutorial
advojoy
 
BFS Distribution Via DCM
BFS Distribution Via DCMBFS Distribution Via DCM
BFS Distribution Via DCM
owenlin
 
Packet shaper datasheet 81
Packet shaper datasheet 81Packet shaper datasheet 81
Packet shaper datasheet 81
Zalli13
 
Packet shaper datasheet 81
Packet shaper datasheet 81Packet shaper datasheet 81
Packet shaper datasheet 81
Zalli13
 
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
 
An2418881897
An2418881897An2418881897
An2418881897
IJMER
 

Similaire à QoS Cheatsheet by packetlife.net (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
 
76.8600 50142 b
76.8600 50142 b76.8600 50142 b
76.8600 50142 b
 
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
 
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)
 

Plus de Febrian ‎

Cisco academy procedure cust
Cisco academy procedure custCisco academy procedure cust
Cisco academy procedure cust
Febrian ‎
 
Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010
Febrian ‎
 
MPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by KhatriMPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by Khatri
Febrian ‎
 
ipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick Grosseteteipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick Grossetete
Febrian ‎
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & James
Febrian ‎
 
Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by Soricelli
Febrian ‎
 
IPv6 Theory by Cisco
IPv6 Theory by CiscoIPv6 Theory by Cisco
IPv6 Theory by Cisco
Febrian ‎
 
Juniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by IrzanJuniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by Irzan
Febrian ‎
 

Plus de Febrian ‎ (20)

Cisco academy procedure cust
Cisco academy procedure custCisco academy procedure cust
Cisco academy procedure cust
 
Iperf Tutorial
Iperf Tutorial Iperf Tutorial
Iperf Tutorial
 
Tutorial: Internet Resource Management by Champika Wijayatunga, APNIC
Tutorial: Internet Resource Management by Champika Wijayatunga, APNICTutorial: Internet Resource Management by Champika Wijayatunga, APNIC
Tutorial: Internet Resource Management by Champika Wijayatunga, APNIC
 
Juniper mpls best practice part 2
Juniper mpls best practice   part 2Juniper mpls best practice   part 2
Juniper mpls best practice part 2
 
Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010
 
MPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by KhatriMPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by Khatri
 
ipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick Grosseteteipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick Grossetete
 
Juniper mpls best practice part 1
Juniper mpls best practice   part 1Juniper mpls best practice   part 1
Juniper mpls best practice part 1
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & James
 
Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by Soricelli
 
IPv6 Theory by Cisco
IPv6 Theory by CiscoIPv6 Theory by Cisco
IPv6 Theory by Cisco
 
Juniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by IrzanJuniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by Irzan
 
Cisco IPv6 Tutorial by Hinwoto
Cisco IPv6 Tutorial by HinwotoCisco IPv6 Tutorial by Hinwoto
Cisco IPv6 Tutorial by Hinwoto
 
IPv6 by APNIC
IPv6 by APNICIPv6 by APNIC
IPv6 by APNIC
 
Internet Market
Internet MarketInternet Market
Internet Market
 
MyJalah200905
MyJalah200905MyJalah200905
MyJalah200905
 
Passion
PassionPassion
Passion
 
OnMobile Global Limited
OnMobile Global Limited OnMobile Global Limited
OnMobile Global Limited
 
Nps320
Nps320Nps320
Nps320
 
My Jalah200904
My Jalah200904My Jalah200904
My Jalah200904
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

QoS Cheatsheet by packetlife.net

  • 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