QoS Features - ActForNet...[Quidway-behavior-chentao]? car car operation deny Specify filter deny...
Transcript of QoS Features - ActForNet...[Quidway-behavior-chentao]? car car operation deny Specify filter deny...
-
QoS Features
-
1
Contents
Title 1 QOS Overview
Title 2 Mapping
Title 3 Classification, marking, and policing
Title 4 Queue shaping and scheduling
Title 5 Summary
-
2
QoS Ingress Feature Set
Ingress translation
Ingress Classification
BA Mapping
VLANID
802.1P
Classifier IP DSCP
802.1P
EXP
Ingress Actions
Actions
• ACL-based (SMAC/ DMAC, IP SA/DA, Protocol, L4 Ports, L4 protocol field) • CoS • IP ToS / DSCP • …….
• CAR • Deny • Permit • Remark • Redirect • Statistics
-
3
QoS Egress Feature Set
Congestion
Avoidance
Output Shaping & Scheduling
PHB Mapping (Remark)
WRED
Tail Drop Shaping • Port shaping
• Queue shaping
Scheduling • SP
• WRR
• DRR
• PQ+WRR
• PQ+DRR
802.1P
IP DSCP
EXP
Egress
Action
Actions
• CAR • Deny • Permit • Remark • Statistics
Egress
Classification
Classifier
• ACL-based (SMAC/ DMAC, IP SA/DA, Protocol, L4 Ports, L4 protocol field) • CoS • IP Precedence • DSCP •…
-
4
Contents
Title 1 QOS Overview
Title 2 Mapping
Title 3 Classification, marking, and policing
Title 4 Queue shaping and scheduling
Title 5 Summary
-
5
BA Mapping
According to the external priority
mapping to the internal priority
External priority (the ingress
packets take)
802.1P of VLAN
DSCP of IP packet
EXP of MPLS packet
S97 Internal Priority has 8 levels
BE: Best Effort
AF(1-4): Assured Forwarding
EF: Expedited Forwarding
CS6, CS7: higher than EF
-
6
Mapping CLI
ip-dscp-inbound dscp-value phb service-class [ color ]
8021p-inbound 8021p-value phb service-class [ green | yellow | red ]
mpls-exp-inbound exp-value phb service-class [ color ]
ip-dscp-outbound service-class color map dscp-value
8021p-outbound service-class { green | yellow | red } map 8021p-value
mpls-exp-outbound service-class color map exp-value
-
7
PHB Mapping (Remark)
According to the internal priority and discard grades
mapping to the external priority for next devices
Has three levels discard grade that for CAR
Green
Yellow
Red
External priority:
802.1P of VLAN
DSCP of IP packet
EXP of MPLS packet
-
8
Contents
Title 1 QOS Overview
Title 2 Mapping
Title 3 Classification, marking, and policing
Title 4 Queue shaping and scheduling
Title 5 Summary
-
9
Classifier
Application
QOS Configuration - MQC
MQC defines three-
step configuration
model
Define match criteria
traffic classifier
define class
Traffic Behavior
Attach policy with
each Behavior and
class to interface or
VLAN or Global
Traffic Policy
RULE
Traffic Policy
Traffic
Classifier Traffic
Behavior
ACL IF-MATCH
Interface Global VLAN
-
10
Traffic Classifier QOS traffic classes identify traffic according to match criteria
[Quidway-classifier-chentao]if-match ?
acl Specify ACL to match
any Specify any data packet to match
cvlan-8021p Specify customer vlan 802.1p to match
cvlan-id Specify customer vlan id to match
destination-mac Specify destination mac address to match
double-tag Specify QinQ packets to match
dscp Specify dscp of ip packets to match
inbound-interface Specify inbound interface to match
ip-precedence Specify IP precedence to match
l2-protocol Specify layer-2 protocol to match
mpls-exp Specify experimental of mpls packets to match
outbound-interface Specify outbound interface to match
protocol Specify ipv4 or ipv6 packets to match
source-mac Specify source MAC address to match
tcp Specify TCP parameters to match
vlan-8021p Specify vlan 802.1p to match
vlan-id Specify vlan id to match
-
11
Traffic Classifier
One classifier has two logic of “and” and “ or”, and default
is or
And traffic classifier test operator and
if-match 1 acl 2000
if-match 3 vlan-id 5
if-match 4 ip-precedence 3
Or traffic classifier test operator or
if-match 1 acl 2000
if-match 3 vlan-id 5
if-match 4 ip-precedence 3
-
12
Traffic Behavior
The mainly action as below
[Quidway-behavior-chentao]?
car car operation deny Specify filter deny parameters ip urpf urpf switch mirroring Mirroring operation of packets nest Add outside vlan tag to packets permit Specify filter permit parameters redirect Redirect packets remark Remark QoS values of the packet statistic Statistic disable mac learn
-
13
Traffic Policy
Traffic policy is associate traffic classifier and behavior
[Quidway-trafficpolicy-chentao]display this
#
traffic policy chentao
classifier chen behavior chen
classifier chentao behavior chentao
#
-
14
Traffic Policy Application
Application on interface, VLAN, and Gloabl
On interface
[SRV-12-GigabitEthernet2/0/1]traffic-policy 1 inbound (outbound)
On trunk:
[SRV-12-Eth-Trunk1]traffic-policy test inbound (outbound)
On Vlan:
[SRV-12-vlan100]traffic-policy 1 inbound (outbound)
On Global:
traffic-policy 1 global inbound (outbound) [slot ?]
The application priority is
When same classifier: interface > vlan > Global
When different classifier:rule mixed L2 and L3 > L2 rule >
L3 rule
-
15
Congestion Avoidance
Support TD and WRED, and the default configuration is TD
drop-profile drop-profile-name
color { green | non-tcp | red | yellow } low-limit low-limit-percentage
high-limit high-limit-percentage discard-percentage discard-
percentage
qos wred drop-profile-name
-
16
TD Introduce
TD (Tail Drop): the traditional method for congestion, and will drop
all packets when queue is full
TD will take some problems that: TCP global synchronization High delay and high jitter Same discard, and don’t differ packets of different priority
-
17
WRED Introduce
WRED discard packet accord to priority of DSCP, 802.1P,EXP, and classifier
Each discard policy contains three parameters: low limit, high limit and
discard- percentage
Support three discard level: Green, Yellow, Red
If after WRED, the queue is still full, device will use TD to handle
congestion
-
18
RED with Multiple Thresholds
Discard Probability
Average Queue Length
0
1
“Red” Threshold
0 “Yellow” Threshold
“Green” Threshold
“Red” Packets
“Green” Packets
“Yellow” Packets
Full
-
19
Traffic Policing - CAR
S9700 support 2 level CAR:
First CAR on rule, and next CAR on classifier
First CAR is trTCM and next CAR is srTCM
Scenario
For two traffic, for each traffic, 100M for first CAR for each
traffic, then 150M for next CAR for all two traffic
100M
150M
100M
RULE-1
RULE-2
First CAR (trTCM)
Aggregated CAR(srTCM)
-
20
CAR for city_a share
Traffic Policing – Hierarchical CAR
Support CAR share, same classifier share same CAR
[Quidway-behavior-peng]car cir 1000 share
[Switch] qos car city_a cir 2000
• [Switch] traffic behavior city_a_ef
• [Switch-behavior-city_a_ef] car cir 700 pir 2000
• [Switch-behavior-city_a_ef] car city_a share
• [Switch-behavior-city_a_ef] statistic enable
• [Switch-behavior-city_a_ef] quit
• [Switch] traffic behavior city_a_af31
• [Switch-behavior-city_a_af31] car cir 400 pir 2000
• [Switch-behavior-city_a_af31] car city_a share
• [Switch-behavior-city_a_af31] statistic enable
• [Switch-behavior-city_a_af31] quit
CAR for this a_ef class
CAR for this a_af31 class
CAR for city_a share
-
21
Traffic Policing - CAR
Support two types of Meter
srTCM
srTCM is mainly focus on burst of packet size
trTCM
trTCM is mainly focus on burst of packet speed
-
22
Single-Rate Three-Color Marker
Usage: •Mark conforming traffic with a low drop precedence •Mark exceeding traffic with a high drop precedence •Drop violating traffic
Definitions: •CIR – Committed Information Rate •CBS – Committed Burst Size (max) •EBS – Excess Burst Size (max) •Tc – Current size of CBS bucket •Te – Current size of EBS bucket
-
23
Two-Rate Three-Color Marker
Usage: • Mark packets within CIR as conforming • Mark packets between CIR and PIR as exceeding • Drop packets above the PIR
Definitions: • CIR – Committed Rate • PIR – Peak rate • CBS – Committed burst size (max) • PBS – Peak burst size (max) • Tc – Current size of CBS bucket • Tp – Current size of PBS bucket
-
24
Traffic Policing - Meter Configuration
srTCM
qos car car-name cir cir-value [ cbs cbs-value [ pbs pbs-value ] |
pir pir-value [ cbs cbs-value pbs pbs-value ] ] – setup car
template
qos car inbound car-name – apply CAR
trTCM
car cir cir-value [ pir pir-value ] [ cbs cbs-value pbs pbs-value ] [
mode { colorblind | color-aware } ] [ green { discard | pass [
service-class class color color ] } ] [ yellow { discard | pass [
service-class class color color ] } ] [ red { discard | pass [
serviceclass class color color ] } ]
-
25
Traffic Policing - Color design in Meter
Packet color can de defined in the Meter mechanism, such as
When burst packet size
-
26
Traffic Policing - Remark
Can remark below key points:
DSCP // remark dscp { dscp-name | dscp-value }
802.1P // remark 8021p [ 8021p-value | inner-8021p ]
Local precedence // remark local-precedence { local-
precedence-name | local-precedence-value }[ color ]
VLAN ID
remark cvlan-id cvlan-id
remark vlan-id vlan-id
DMAC
remark destination-mac mac-address
-
27
QoS statistics
Ingress / Egress per-traffic statistics
display traffic policy statistics { global [ slot slot-id ] | interface
interface type interface-number | vlan vlan-id } { inbound |
outbound } [ verbose { classifier base | rule-base } [ class
classifier-name ] ]
display qos queue statistics interface interface-type interface-
number
Can clean the statistics result based on per port/per queue
reset traffic policy statistics { global [ slot slot-id ] | interface
interface-type interface-number | vlan vlan-id } { inbound |
outbound }
reset qos queue statistics interface interface-type interface-
number
-
28
Traffic Policing - Redirect
Can redirect to:
CPU
LSP
next hop
multi-hop
GRE tunnel
VPN-instance
Interface (interface, Eth-Trunk, Multi-Trunk)
Redirect to multi-hop, Eth-Trunk, Multi-Trunk is suitable for
traffic balance
-
29
Example for Configuring Interface-based Traffic Policing
vlan batch 100 200 300 # qos car qoscar1 cir 8000 pir 10000 cbs 1000000 pbs 1250000 qos car qoscar2 cir 5000 pir 8000 cbs 625000 pbs 1000000 # interface Vlanif300 ip address 192.168.1.1 255.255.255.0 # interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 100 qos car inbound qoscar1 # interface GigabitEthernet1/0/2 port link-type trunk port trunk allow-pass vlan 200 qos car inbound qoscar2 # interface GigabitEthernet2/0/1 port link-type trunk port trunk allow-pass vlan 100 200 300 # return
-
30
Example for Configuring Traffic Policing Based on a Traffic Classifier
# vlan batch 100 110 120 # traffic classifier c2 operator or if-match vlan-id 110 traffic classifier c3 operator or if-match vlan-id 100 traffic classifier c1 operator or if-match vlan-id 120 #
traffic behavior b2 car cir 4000 pir 10000 cbs 500000 pbs 1250000 mode color-blind green pass yellow pass red discard remark dscp af33 statistic enable traffic behavior b3 car cir 4000 pir 10000 cbs 500000 pbs 1250000 mode color-blind green pass yellow pass red discard remark dscp af13 statistic enable traffic behavior b1 car cir 2000 pir 10000 cbs 250000 pbs 1250000 mode color-blind green pass yellow pass red discard remark dscp ef statistic enable
# traffic policy p1 classifier c1 behavior b1 classifier c2 behavior b2 classifier c3 behavior b3 # interface GigabitEthernet1/0/1 port link-type trunk port trunk allow-pass vlan 100 110 120 traffic-policy p1 inbound # interface GigabitEthernet2/0/1 port link-type trunk port trunk allow-pass vlan 100 110 120 # return
-
31
Contents
Title 1 QOS Overview
Title 2 Mapping
Title 3 Classification, marking, and policing
Title 4 Queue shaping and scheduling
Title 5 Summary
-
32
Traffic Policing - shaping
Support shaping based on
Port
Queue
S9700 support 2 level shaping, first is shaping based on
queue, and then shaping on the port
Q1(100M)
Port (150M)
Q2(100M)
First shaping
Next shaping
Scenario
For traffic, first shaping based on queue of 100M, then 150M shaping
for next shaping based on port
qos queue queue-index shaping cir cir-value pir pir-value [ cbs cbs-value pbs pbs-value ]
qos lr cir cir-value [ cbs cbs-value ][ outbound ]
http://localhost:7890/pages/31185543/02/31185543/02/resources/s/qos_queue_shaping.htmlhttp://localhost:7890/pages/31185543/02/31185543/02/resources/s/qos_queue_shaping.htmlhttp://localhost:7890/pages/31185543/02/31185543/02/resources/s/qos_queue_shaping.htmlhttp://localhost:7890/pages/31185543/02/31185543/02/resources/s/qos_lr.htmlhttp://localhost:7890/pages/31185543/02/31185543/02/resources/s/qos_lr.htmlhttp://localhost:7890/pages/31185543/02/31185543/02/resources/s/qos_lr.html
-
33
Queue Scheduling
Each port of S9700 has 8 queues
Support five types of queue scheduling
PQ
DRR
WRR
PQ+DRR
PQ+WRR
Different queues can be set to different scheduling mode
(PQ/WRR/DRR)
It will first schedule PQ queue ,and then schedule DRR or WRR
PQs scheduling is according the priority, from High->Low
-
34
Queue scheduling configuration
WRR configuration
qos { pq | wrr | drr },-- define the queues as PQ, WRR or DRR
qos queue queue-index wrr weight weight -- define the weight
of WRR, and default weight is 1, and the weight can 1 to 64
DRR configuration
qos { pq { start-queue-index [ to end-queue-index ] } & |
{ wrr | drr } { start-queue-index [ to end-queue-index ] } &
}* -- define queues as PQ+WRR or PQ+DRR
qos queue queue-index drr weight weight -- define the weight
of DRR, and default weight is 1
-
35
Contents
Title 1 QOS Overview
Title 2 Mapping
Title 3 Classification, marking, and policing
Title 4 Queue shaping and scheduling
Title 5 Summary
-
36
Summary: TOP 3 things to Know
Support 2 level CAR
Support Hierarchical Shaping (Queue & Port)
Support various types of queue scheduling, such as
PQ+WRR, PQ + DRR
-
Copyright©2012 Huawei Technologies Co., Ltd. All Rights Reserved. The information in this document may contain predictive statements including, without limitation, statements regarding the future financial and
operating results, future product portfolio, new technology, etc. There are a number of factors that could cause actual results and developments to
differ materially from those expressed or implied in the predictive statements. Therefore, such information is provided for reference purpose only and
constitutes neither an offer nor an acceptance. Huawei may change the information at any time without notice.
HUAWEI ENTERPRISE ICT SOLUTIONS A BETTER WAY