Was ist das 5-Level-QoS-Modell (durch Konfigurationsbeispiel)?


13

Ich habe gehört, dass die Leute sagen, dass ihr Netzwerk

"betreibt ein 5-Level (oder Layer) QoS-Modell"

Manchmal erwähnen sie auch ein 7-Level-QoS-Modell. Kann mir jemand ein Cisco IOS-Konfigurationsbeispiel dafür geben, was hier gemeint ist? Damit meine ich ein Konfigurationsbeispiel, das zeigt, wie dies implementiert wird (vorausgesetzt, es gibt so etwas!). Ich bin eher mit iOS 12 vertraut, als mit 15. Was auch immer, aber beides wäre großartig.

Ich gehe davon aus, dass diese Personen auf eine 5-Klassen-Konfiguration verweisen, bei der es sich um eine der 5 folgenden Standardklassen handelt, und den Verkehr entsprechend verarbeiten.

  • DF Standard
  • EF beschleunigte Weiterleitung
  • VA Voice Admit
  • AF-sichere Weiterleitung
  • CS Class Selector (aus Gründen der Abwärtskompatibilität)

Ich suche nach einem IOS-Konfigurationsbeispiel, das 5 (oder 7!) Datenverkehrsklassen entspricht, und wende dann eine entsprechende Richtlinie an ( ich verstehe, dass dies eine große Unbestimmtheit ist. Verschiedene Netzwerkbetreiber möchten, dass der Datenverkehr unterschiedlich gehandhabt wird, aber dies ist rein Ich möchte, dass 5 verschiedene Verkehrsklassen übereinstimmen und unterschiedlich behandelt werden .

Randnotiz

Es würde mich sehr interessieren, wie man eine solche Richtlinie zum Beispiel für einen 100-Mbit / s-Link konfiguriert, damit ich sie mit einfacher Arithmetik auf 1 Gbit / s oder auf 10 Mbit / s skalieren kann. Ich vermute, dass dieses gesamte QoS-Schema, um effektiv zu sein, Pufferplatz reservieren oder Bucket-Platz zuweisen müsste, anstatt beispielsweise die Überwachung zur Begrenzung der Bandbreite zu verwenden. Ich gehe davon aus, dass Sie nicht wissen, wie viel Bandbreite zu einem bestimmten Zeitpunkt für Sprache, Video, Daten oder P2P / Torrents etc. Zur Verfügung steht

Antworten:


17

Cisco hat so etwas wie Cisco Validated Designs (CVD). Hierbei handelt es sich um Netzwerkdesigns aus verschiedenen Perspektiven wie QoS, Hochverfügbarkeit, WAN usw., die Cisco empfiehlt und getestet hat.

Für QoS haben sie 3 verschiedene Designs mit 4, 8 oder 12 Klassen, die im Bild unten zu sehen sind.

Cisco QoS-Klassen

Beginnend mit dem 4-Klassen-Modell:

! This section defines the 4-Class class-maps 
! (three are explicitly defined and one is default)
Router(config)# class-map match-any REALTIME
Router(config-cmap)# match dscp ef
 ! Matches VoIP
Router(config-cmap)# match dscp cs5
 ! Matches Broadcast Video
Router(config-cmap)# match dscp cs4
 ! Matches Realtime-Interactive

Router(config)# class-map match-any CONTROL
Router(config-cmap)# match dscp cs6
 ! Matches Network-Control
Router(config-cmap)# match dscp cs3
 ! Matches Signaling (control-plane traffic for voice/video infrastructure)
Router(config-cmap)# match dscp cs2
 ! Matches Network Management

Router(config)# class-map match-any CRITICAL-DATA
Router(config-cmap)# match dscp af41 af42 af43
 ! Matches Multimedia Conferencing on AF4 
Router(config-cmap)# match dscp af31 af32 af33
 ! Matches Multimedia Streaming on AF3
Router(config-cmap)# match dscp af21 af22 af23
 ! Matches Transactional Data on AF2
Router(config-cmap)# match dscp af11 af12 af13
 ! Matches Bulk Data on AF1


! This section defines the 4-Class Policy-Map
Router(config)# policy-map WAN-EDGE-4-CLASS
Router(config-pmap)# class REALTIME
Router(config-pmap-c)# priority percent 33
 ! Provisions 33% LLQ for REALTIME class
Router(config-pmap-c)# class CONTROL
Router(config-pmap-c)#  bandwidth percent 7
 ! Provisions 7% CBWFQ for CONTROL class
Router(config-pmap-c)# class CRITICAL-DATA
Router(config-pmap-c)#  bandwidth percent 35
 ! Provisions 35% CBWFQ for CRITICAL-DATA class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on CRITICAL-DATA class
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on CRITICAL-DATA class
Router(config-pmap-c)#   random-detect dscp af11 50 64
 ! Tunes WRED min and max drop-thresholds for AF11/10 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af12 45 64
 ! Tunes WRED min and max drop-thresholds for AF12/12 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af13 40 64
 ! Tunes WRED min and max drop-thresholds for AF13/14 to 40 and 64 packets
Router(config-pmap-c)#   random-detect dscp af21 50 64
 ! Tunes WRED min and max drop-thresholds for AF21/18 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af22 45 64
 ! Tunes WRED min and max drop-thresholds for AF22/20 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af23 40 64
 ! Tunes WRED min and max drop-thresholds for AF23/22 to 40 and 64 packets
Router(config-pmap-c)#   random-detect dscp af31 50 64
 ! Tunes WRED min and max drop-thresholds for AF31/26 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af32 45 64
 ! Tunes WRED min and max drop-thresholds for AF32/28 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af33 40 64
 ! Tunes WRED min and max drop-thresholds for AF33/30 to 40 and 64 packets
Router(config-pmap-c)#   random-detect dscp af41 50 64
 ! Tunes WRED min and max drop-thresholds for AF41/34 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af42 45 64
 ! Tunes WRED min and max drop-thresholds for AF42/36 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af43 40 64
 ! Tunes WRED min and max drop-thresholds for AF43/38 to 40 and 64 packets
Router(config-pmap-c)# class class-default
Router(config-pmap-c)#  bandwidth percent 25
 ! Provisions 25% CBWFQ for default (Best-Effort) class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on default (Best-Effort) class
Router(config-pmap-c)#  queue-limit 128 packets
 ! Expands queue-limit to 128 packets
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on default (Best-Effort) class
Router(config-pmap-c)#   random-detect dscp default 100 128
 ! Tunes WRED min and max drop-thresholds for DF/0 to 100 and 128 packets
Router(config-pmap-c)#   random-detect dscp cs1 60 100
 ! Tunes WRED min and max drop-thresholds for CS1/8 to 60 and 100 packets

Wie Sie sehen, stimmt es mit verschiedenen DSCP-Werten überein. DSCP EF wird im Allgemeinen für VoIP verwendet. Dies bedeutet, dass Ihre Pakete in Ihrem Netzwerk bereits so früh wie möglich markiert wurden. Die Bandbreitenwerte werden in Prozent eingegeben. Dies bedeutet, dass die Richtlinie auf Schnittstellen mit unterschiedlichen Geschwindigkeiten angewendet werden kann und im Vergleich zur Eingabe in kbit / s weiterhin gute Werte liefert. Auf sehr schnellen Schnittstellen wie 10 Gbit könnte es jedoch eine Menge sein, 7% für den Kontrollverkehr zu verwenden, da dies 700 Mbit / s betragen würde.

Sowohl die Daten als auch der Klassenstandard verwenden eine faire Warteschlange, mit der Pakete basierend auf DSCP und Paketgröße in eine Warteschlange eingereiht werden können, um selbst für kleine Paketflüsse eine faire Warteschlange bereitzustellen. Um dies nutzen zu können, benötigen Sie ein Image, das Hierarchical Queing Framework (HQF) mit 12,4 (20) T oder neuer unterstützt.

Die gewichtete zufällige Früherkennung (Weighted Random Early Detection, WRED) wird auch angewendet, um Probleme wie die TCP-Synchronisierung zu beheben, bei der TCP-Flows gleichzeitig beschleunigt und unterbrochen werden.

Dann haben Sie das 8-Klassen-Modell.

! This section defines the 8-Class class-maps 
! (seven are explicitly defined and one is default)
Router(config)# class-map match-all VOICE
Router(config-cmap)# match dscp ef
 ! Matches VoIP

Router(config)# class-map match-any INTERACTIVE-VIDEO
Router(config-cmap)# match dscp cs5
 ! Matches Broadcast Video
Router(config-cmap)# match dscp cs4
 ! Matches Realtime-Interactive
Router(config)# class-map match-any NETWORK-CONTROL
Router(config-cmap)# match dscp cs6
 ! Matches Network Control
Router(config-cmap)# match dscp cs2
 ! Matches Network Management

Router(config)# class-map match-all SIGNALING
Router(config-cmap)# match dscp cs3
 ! Matches Signaling

Router(config)# class-map match-all MULTIMEDIA-STREAMING
Router(config-cmap)# match dscp af31 af32 af33
 ! Matches Multimedia-Streaming on AF3

Router(config)# class-map match-any CRITICAL-DATA
Router(config-cmap)# match dscp af41 af42 af43
 ! Matches Multimedia-Conferencing on AF4
Router(config-cmap)# match dscp af21 af22 af23
 ! Matches Transactional-Data on AF2
Router(config-cmap)# match dscp af11 af12 af13
 ! Matches Bulk-Data on AF1

Router(config)# class-map match-all SCAVENGER
Router(config-cmap)# match dscp cs1
 ! Matches Scavenger


! This section configures the 8-class policy-map
Router(config)# policy-map WAN-EDGE-8-CLASS
Router(config-pmap)# class VOICE
Router(config-pmap-c)#  priority percent 10
 ! Provisions 10% LLQ for VOICE class (dual LLQ-policy)
Router(config-pmap-c)# class INTERACTIVE-VIDEO
Router(config-pmap-c)#  priority percent 23
 ! Provisions 23% LLQ for INTERACTIVE-VIDEO class (dual-LLQ policy)
Router(config-pmap-c)# class NETWORK-CONTROL
Router(config-pmap-c)#  bandwidth percent 5
 ! Provisions 5% CBWFQ for NETWORK-CONTROL class
Router(config-pmap-c)# class SIGNALING
Router(config-pmap-c)#  bandwidth percent 2
 ! Provisions 2% CBWFQ for SIGNALING class
Router(config-pmap-c)# class MULTIMEDIA-STREAMING
Router(config-pmap-c)#  bandwidth percent 10
 ! Provisions 10% CBWFQ for MULTIMEDIA-STREAMING class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on MULTIMEDIA-STREAMING class
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on MULTIMEDIA-STREAMING class
Router(config-pmap-c)#   random-detect dscp af31 50 64
 ! Tunes WRED min and max drop-thresholds for AF31/26 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af32 45 64
 ! Tunes WRED min and max drop-thresholds for AF32/28 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af33 40 64
 ! Tunes WRED min and max drop-thresholds for AF33/30 to 40 and 64 packets
Router(config-pmap-c)# class CRITICAL-DATA
Router(config-pmap-c)#  bandwidth percent 24
 ! Provisions 24% CBWFQ for CRITICAL-DATA class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on CRITICAL-DATA class
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on CRITICAL-DATA class


Router(config-pmap-c)#   random-detect dscp af11 50 64
 ! Tunes WRED min and max drop-thresholds for AF11/10 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af12 45 64
 ! Tunes WRED min and max drop-thresholds for AF12/12 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af13 40 64
 ! Tunes WRED min and max drop-thresholds for AF13/14 to 40 and 64 packets
Router(config-pmap-c)#   random-detect dscp af21 50 64
 ! Tunes WRED min and max drop-thresholds for AF21/18 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af22 45 64
 ! Tunes WRED min and max drop-thresholds for AF22/20 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af23 40 64
 ! Tunes WRED min and max drop-thresholds for AF23/22 to 40 and 64 packets
Router(config-pmap-c)#   random-detect dscp af41 50 64
 ! Tunes WRED min and max drop-thresholds for AF41/34 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af42 45 64
 ! Tunes WRED min and max drop-thresholds for AF42/36 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af43 40 64
 ! Tunes WRED min and max drop-thresholds for AF43/38 to 40 and 64 packets
Router(config-pmap-c)# class SCAVENGER
Router(config-pmap-c)#  bandwidth percent 1
 ! Constrains Scavenger class to 1% CBWFQ
Router(config-pmap-c)# class class-default
Router(config-pmap-c)#  bandwidth percent 25
 ! Provisions 25% CBWFQ for default (Best-Effort) class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on default (Best-Effort) class
Router(config-pmap-c)#  queue-limit 128 packets
 ! Expands queue-limit to 128 packets
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on default (Best-Effort) class
Router(config-pmap-c)#   random-detect dscp default 100 128
 ! Tunes WRED min and max drop-thresholds for DF/0 to 100 and 128 packets

Diese Richtlinie ist detaillierter für Echtzeitanwendungen wie Video, Streaming und Signalisierung für diese Protokolle.

Schließlich ist dies das 12-Klassen-Modell.

! This section configures the class-maps
! (eleven class maps are explicitly defined and one is default)
Router(config)# class-map match-all VOICE
Router(config-cmap)# match dscp ef
 ! Matches VoIP

Router(config)# class-map match-all BROADCAST-VIDEO
Router(config-cmap)# match dscp cs5
 ! Matches Broadcast Video

Router(config)# class-map match-all REALTIME-INTERACTIVE
Router(config-cmap)#  match dscp cs4
 ! Matches Realtime-Interactive

Router(config)# class-map match-all NETWORK-CONTROL
Router(config-cmap)# match dscp cs6
 ! Matches Network Control

Router(config)# class-map match-all SIGNALING
Router(config-cmap)# match dscp cs3
 ! Matches Signaling

Router(config)# class-map match-all NETWORK-MANAGEMENT
Router(config-cmap)# match dscp cs2
 ! Matches Network Management

Router(config)# class-map match-any MULTIMEDIA-CONFERENCING
Router(config-cmap)# match dscp af41
Router(config-cmap)# match dscp af42
Router(config-cmap)# match dscp af43
 ! Matches Multimedia-Conferencing
 ! One match statement per Drop Precedence increases visibility

Router(config)# class-map match-any MULTIMEDIA-STREAMING
Router(config-cmap)# match dscp af31
Router(config-cmap)# match dscp af32
Router(config-cmap)# match dscp af33
 ! Matches Multimedia-Streaming
 ! One match statement per Drop Precedence increases visibility

Router(config)# class-map match-any TRANSACTIONAL-DATA
Router(config-cmap)# match dscp af21
Router(config-cmap)# match dscp af22
Router(config-cmap)# match dscp af23
 ! Matches Transactional-Data
 ! One match statement per Drop Precedence increases visibility

Router(config)# class-map match-any BULK-DATA
Router(config-cmap)# match dscp af11
Router(config-cmap)# match dscp af12
Router(config-cmap)# match dscp af13
 ! Matches Bulk-Data
 ! One match statement per Drop Precedence increases visibility

Router(config)# class-map match-all SCAVENGER
Router(config-cmap)# match dscp cs1
 ! Matches Scavenger


! This section configures the 12-Class policy-map
Router(config)# policy-map WAN-EDGE-12-CLASS
Router(config-pmap)# class VOICE
Router(config-pmap-c)#  priority percent 10
 ! Provisions 10% LLQ to VOICE class (multi-LLQ policy)
Router(config-pmap-c)# class BROADCAST-VIDEO
Router(config-pmap-c)#  priority percent 10
 ! Provisions 10% LLQ to BROADCAST-VIDEO class (multi-LLQ policy)
Router(config-pmap-c)# class REALTIME-INTERACTIVE
Router(config-pmap-c)#  priority percent 13
! Provisions 13% LLQ to REALTIME-INTERACTIVE class (multi-LLQ policy)
Router(config-pmap-c)# class NETWORK-CONTROL
Router(config-pmap-c)#  bandwidth percent 2
 ! Provisions 2% CBWFQ to NETWORK-CONTROL class
Router(config-pmap-c)# class SIGNALING
Router(config-pmap-c)#  bandwidth percent 2
 ! Provisions 2% CBWFQ to SIGNALING class
Router(config-pmap-c)# class NETWORK-MANAGEMENT
Router(config-pmap-c)#  bandwidth percent 3
 ! Provisions 3% CBWFQ to NETWORK-MANAGEMENT class
Router(config-pmap-c)# class MULTIMEDIA-CONFERENCING
Router(config-pmap-c)#  bandwidth percent 10
 ! Provisions 10% CBWFQ to MULTIMEDIA-CONFERENCING class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on MULTIMEDIA-CONFERENCING class
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on MULTIMEDIA-CONFERENCING class
Router(config-pmap-c)#   random-detect dscp af41 50 64
 ! Tunes WRED min and max drop-thresholds for AF41/34 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af42 45 64
 ! Tunes WRED min and max drop-thresholds for AF42/36 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af43 40 64
 ! Tunes WRED min and max drop-thresholds for AF43/38 to 40 and 64 packets
Router(config-pmap-c)# class MULTIMEDIA-STREAMING
Router(config-pmap-c)#  bandwidth percent 10
 ! Provisions 10% CBWFQ to MULTIMEDIA-STREAMING class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on MULTIMEDIA-STREAMING class
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on MULTIMEDIA-STREAMING class
Router(config-pmap-c)#   random-detect dscp af31 50 64
 ! Tunes WRED min and max drop-thresholds for AF31/26 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af32 45 64
 ! Tunes WRED min and max drop-thresholds for AF32/28 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af33 40 64
 ! Tunes WRED min and max drop-thresholds for AF33/30 to 40 and 64 packets
Router(config-pmap-c)# class TRANSACTIONAL-DATA
Router(config-pmap-c)#  bandwidth percent 10
 ! Provisions 10% CBWFQ to TRANSACTIONAL-DATA class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on TRANSACTIONAL-DATA class
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on TRANSACTIONAL-DATA class
Router(config-pmap-c)#   random-detect dscp af21 50 64
 ! Tunes WRED min and max drop-thresholds for AF21/18 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af22 45 64
 ! Tunes WRED min and max drop-thresholds for AF22/20 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af23 40 64
 ! Tunes WRED min and max drop-thresholds for AF23/22 to 40 and 64 packets
Router(config-pmap-c)# class BULK-DATA
Router(config-pmap-c)#  bandwidth percent 4
 ! Provisions 4% CBWFQ to BULK-DATA class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on BULK-DATA class
Router(config-pmap-c)#   random-detect dscp-based
! Enables DSCP-based WRED on BULK-DATA class
Router(config-pmap-c)#   random-detect dscp af11 50 64
 ! Tunes WRED min and max drop-thresholds for AF11/10 to 50 and 64 packets
Router(config-pmap-c)#   random-detect dscp af12 45 64
 ! Tunes WRED min and max drop-thresholds for AF12/12 to 45 and 64 packets
Router(config-pmap-c)#   random-detect dscp af13 40 64
 ! Tunes WRED min and max drop-thresholds for AF13/14 to 40 and 64 packets
Router(config-pmap-c)# class SCAVENGER
Router(config-pmap-c)#  bandwidth percent 1
 ! Constrains Scavenger to 1% CBWFQ
Router(config-pmap-c)# class class-default
Router(config-pmap-c)#  bandwidth percent 25
 ! Provisions 25% CBWFQ for default (Best-Effort) class
Router(config-pmap-c)#  fair-queue
 ! Enables fair-queuing pre-sorter on default (Best-Effort) class
Router(config-pmap-c)#  queue-limit 128 packets
 ! Expands queue-limit to 128 packets
Router(config-pmap-c)#   random-detect dscp-based
 ! Enables DSCP-based WRED on default (Best-Effort) class
Router(config-pmap-c)#   random-detect dscp default 100 128
 ! Tunes WRED min and max drop-thresholds for DF/0 to 100 and 128 packets

Diese Richtlinie verfügt über noch mehr Klassen für interaktiven Datenverkehr sowie über weitere Klassen für verschiedene Datentypen und eine Verwaltungsklasse.

Schließlich müssen Sie die Richtlinie auf eine Schnittstelle wie diese anwenden.

int gix / x Service-Policy-Ausgabe WAN-EDGE-12-CLASS

Hier ist ein Link zu WAN QoS CVD.

Durch die Nutzung unserer Website bestätigen Sie, dass Sie unsere Cookie-Richtlinie und Datenschutzrichtlinie gelesen und verstanden haben.
Licensed under cc by-sa 3.0 with attribution required.