
An ingress queue group must be configured and applied to the ingress network FP where the traffic is received for the VPRN. All traffic received on that FP for any binding in the VPRN (either automatically or statically configured) which is redirected to a policer in the FP queue group (using fp-redirect-qroup in the network QoS policy) will be controlled by that policer. As a result, the traffic from all such bindings is treated as a single entity (per forwarding class) with regard to ingress QoS control. Any
fp-redirect-group multicast-policer, broadcast-policer or
unknown-policer commands in the network QoS policy are ignored for this traffic (IP multicast traffic would use the ingress network queues or queue group related to the network interface).
configure
vprn
network
ingress
qos <network-policy-id> fp-redirect-group <queue-group-name>
instance <instance-id>
This is supported for all available transport tunnel types and is independent of the label mode (vrf or
next-hop) used within the VPRN. It is also supported for Carrier-Supporting-Carrier VPRNs.
Queue sharing is also supported if the High Scale MDA (HSMDA) is used. On ingress, HSMDA queues are bypassed, and the queue group on the IOM forwarding plane is used. On egress, it is possible to redirect forwarding classes from multiple SAPs to an HSMDA queue group. Note that the HSMDA also uses the term queue group to describe a group of 8 pre-configured hardware queues on its egress port. When queue sharing and redirection is configured on egress, a set of 8 HSMDA queues could be configured as a part of the queue group template. These correspond to 8 hardware queues on the HSMDA. When all eight (8) egress fcs are mapped to the queue-group instantiated in the egress port, the per-sap hsmda queue-group resource is freed.
The percent-rate command is supported in a queue group template for
pir and
cir parameters only for egress queues. The user has the option of specifying
percent-rate for
pir and
cir parameters. For
pir, the range is 0.01 to 100.00, and for
cir, the range is 0.00 to 100.00.
When the queue rate is configured with percent-rate, a port-limit is applied, specifically, the
percent-rate is relative to the rate of the port to which the queue is attached.
*A:PE>config>qos>qgrps>egr>qgrp>queue# percent-rate
- no percent-rate
- percent-rate <pir-percent> [cir <cir-percent>]
<pir-percent> : [0.01..100.00]
<cir-percent> : [0.00..100.00]
3.
|
Redirect the SAP ingress forwarding class policer in the SAP-ingress QoS policy using the keyword fp-redirect-group keyword on the policer, or SAP egress forwarding class queue or policer using the port-redirect-group keyword. (Steps 2 and 3 may be done in opposite order.) On ingress: config>qos>sap-ingress policy-id fc fc-name queue queue-id fp-redirect-group
On egress: config>qos>sap-egress policy-id fc fc-name queue queue-id port-redirect-group-queue config>qos>sap-egress policy-id fc fc-name policer policer-id port-redirect-group-queue
|
Note that if the user enables the packet-byte-offset {
add bytes |
subtract bytes} option under the ingress queue-group policer, the byte counters of that policer will reflect the adjusted packet size.
The set of statistics per queue are eligible for collection in a similar manner to SAP queues. The collect-stats command enables or disables statistics collection in to a billing file based on the accounting policy applied to the queue group.
The user applies a network QoS policy to the ingress context of a spoke-SDP
1 to redirect the mapping of a Forwarding Class (FC) to a policer defined in a queue-group template which is instantiated on the ingress Forwarding Plane (FP) where the PW packets are received.
config>service>vprn>interface>spoke-sdp>ingress>qos network-policy-id fp-redirect-group queue-group-name instance instance-id
Let us refer to a queue-group containing policers as a policer queue-group. The user must instantiate this queue-group by applying the following command:
config>qos>network>ingress>fc>fp-redirect-group policer policer-id
config>qos>network>ingress>fc>fp-redirect-group broadcast-policer policer-id
config>qos>network>ingress>fc>fp-redirect-group unknown-policer policer-id
config>qos>network>ingress>fc>fp-redirect-group mcast-policer policer-id
When the FC of a PW is redirected to use a policer in the named queue-group, the policer feeds the existing per-FP ingress shared queues referred to as policer-output-queues. These queues are shared by both access and network policers configured on the same ingress FP. The shared queue parameters are configurable using the following command:
b.
|
a queue-group policer followed by the per-FP ingress shared queues referred to as policer-output-queues if the ingress context of the network IP interface from which the packet is received is redirected to a queue-group. The only exceptions to this behavior are for packets received from a IES/VPRN spoke interface and from a R-VPLS spoke-SDP, which is forwarded to the R-VPLS IP interface. In these two cases, the ingress network shared queue for the packet FC defined in the network-queue policy applied to the ingress of the MDA/FP is used.
|
config>service>vprn>interface>spoke-sdp>egress>qos network-policy-id port-redirect-group queue-group-name instance instance-id
config>qos>network>egress>fc>port-redirect-group {
queue queue-id |
policer policer-id [
queue queue-id]}
config>qos>network>egress>prec ip-prec-value [
fc fc-name] [
profile {
in |
out}]
config>qos>network>egress>dscp dscp-name [
fc fc-name] [
profile {
in |
out}]
config>service>vprn>interface>spoke-sdp>egress>qos network-policy-id port-redirect-group queue-group-name instance instance-id
config>service>ies>interface>spoke-sdp>egress>qos network-policy-id port-redirect-group queue-group-name instance instance-id
A new statistic displaying the number of valid ingress packets received on a SAP, or subscribers on that SAP, is shown below in the sap-stats output. This is available for SAPs in all services. This is particularly useful to display SAP level traffic statistics when forwarding classes in a SAP ingress policy have been redirected to an ingress queue group.
In the example below, traffic is received on an ingress FP policer with a packet-byte-offset of subtract 10. It can be seen that the ingress
queueing stats and
offered forwarding engine stats are all zero as the traffic is using the FP ingress policer. The Received Valid statistic is non-zero and matches that seen on the ingress FP queue group, with the difference being that the packet-byte-offset is applied to the
queue group policer octets but not the
Received Valid octets.
A:PE1# show service id 100 sap 1/1/3 sap-stats
===============================================================================
Service Access Points(SAP)
===============================================================================
Service Id : 100
SAP : 1/1/3 Encap : null
Description : (Not Specified)
Admin State : Up Oper State : Up
Flags : None
Multi Svc Site : None
Last Status Change : 04/04/2014 11:45:25
Last Mgmt Change : 04/04/2014 11:48:01
-------------------------------------------------------------------------------
Sap Statistics
-------------------------------------------------------------------------------
Last Cleared Time : 04/04/2014 11:51:12
Packets Octets
CPM Ingress : 0 0
Forwarding Engine Stats
Dropped : 0 0
Received Valid : 5 510
Off. HiPrio : 0 0
Off. LowPrio : 0 0
Off. Uncolor : 0 0
Off. Managed : 0 0
Queueing Stats(Ingress QoS Policy 100)
Dro. HiPrio : 0 0
Dro. LowPrio : 0 0
For. InProf : 0 0
For. OutProf : 0 0
Queueing Stats(Egress QoS Policy 1)
Dro. InProf : 0 0
Dro. OutProf : 0 0
For. InProf : 0 0
For. OutProf : 0 0
===============================================================================
A:PE1#
A:PE1# show card 1 fp 1 queue-group "qg1" instance 1 mode access statistics ingress
===============================================================================
Card:1 Acc.QGrp: qg1 Instance: 1
===============================================================================
Group Name : qg1
Description : (Not Specified)
Pol Ctl Pol : None Acct Pol : None
Collect Stats : disabled
-------------------------------------------------------------------------------
Statistics
-------------------------------------------------------------------------------
Packets Octets
Ing. Policer: 1 Grp: qg1 (Stats mode: minimal)
Off. All : 5 460
Dro. All : 0 0
For. All : 5 460
===============================================================================
A:PE1#
The egress queue-group policer and/or queue counts the full label stack of the PW packet including the CW. If the user enables the packet-byte-offset {
add bytes |
subtract bytes} option under the queue-group policer and queue-group queue, then the policer and queue stats reflect the adjusted packet size.
*A:Dut-T>cfg>qos>qgrps# info
----------------------------------------------
ingress
queue-group "QG_ingress_1" create
queue 1 best-effort create
mbs 100
exit
queue 2 best-effort create
mbs 100
exit
queue 3 best-effort create
mbs 100
exit
queue 4 best-effort create
mbs 100
exit
exit
exit
----------------------------------------------
*A:Dut-T>cfg>qos>qgrps#
*A:Dut-T>cfg>qos>qgrps# info
----------------------------------------------
...
egress
queue-group "QG_egress_1" create
description "Egress queue group"
queue 1 best-effort create
mbs 100
exit
queue 2 best-effort create
mbs 100
exit
queue 3 best-effort create
mbs 100
exit
queue 4 best-effort create
mbs 100
exit
exit
exit
----------------------------------------------
*A:Dut-T>cfg>qos>qgrps#
*A:Dut-T>config>qos>sap-ingress# info
----------------------------------------------
queue 1 create
exit
queue 11 multipoint create
exit
fc "af" create
queue 2 group "QG_ingress_1"
exit
fc "be" create
queue 1 group "QG_ingress_1"
exit
fc "ef" create
queue 3 group "QG_ingress_1"
exit
fc "nc" create
queue 4 group "QG_ingress_1"
exit
dot1p 0 fc "be"
dot1p 2 fc "af"
dot1p 4 fc "ef"
dot1p 6 fc "nc"
----------------------------------------------
*A:Dut-T>config>qos>sap-ingress#
A:Dut-T>config>qos>sap-egress# info
----------------------------------------------
queue 1 create
exit
fc af create
queue 2 group "QG_egress_1"
exit
fc be create
queue 1 group "QG_egress_1"
exit
fc ef create
queue 3 group "QG_egress_1"
exit
fc nc create
queue 4 group "QG_egress_1"
exit
----------------------------------------------
A:Dut-T>config>qos>sap-egress#
*A:Dut-A# configure qos sap-egress 3
*A:Dut-A>config>qos>sap-egress# info
----------------------------------------------
queue 1 create
exit
queue 2 create
exit
policer 8 create
rate 50000
exit
fc af create
queue 3 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
fc be create
queue 3 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
fc ef create
policer 8 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
fc h1 create
queue 3 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
fc h2 create
queue 3 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
fc l1 create
queue 3 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
fc l2 create
queue 3 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
fc nc create
queue 3 port-redirect-group-queue
hsmda
queue 3 port-redirect-group-queue
exit
exit
----------------------------------------------
This is to be in-conjunction with:
*A:Dut-A# configure service vpls 1
*A:Dut-A>config>service>vpls# info
----------------------------------------------
stp
shutdown
exit
sap 9/1/2:1 create
egress
qos 3 port-redirect-group qg1 instance 101
exit
exit
*A:Dut-T>config>port# /configure port 9/2/1
*A:Dut-T>config>port# info
----------------------------------------------
ethernet
mode access
access
ingress
queue-group "QG_ingress_1" create
exit
exit
egress
queue-group "QG_egress_1" create
exit
exit
exit
exit
no shutdown
----------------------------------------------
*A:Dut-T>config>port#
*A:Dut-T>config>port# /configure port 9/2/2
*A:Dut-T>config>port# info
----------------------------------------------
ethernet
mode access
access
ingress
queue-group "QG_ingress_1" create
exit
exit
egress
queue-group "QG_egress_1" create
exit
exit
exit
exit
no shutdown
----------------------------------------------
*A:Dut-T>config>port#
*A:Dut-T>config>port>ethernet>access# /configure port 9/2/1
*A:Dut-T>config>port# info
----------------------------------------------
ethernet
mode access
access
ingress
queue-group "QG_ingress_1" create
queue-overrides
queue 2 create
rate 800000 cir 20000
exit
exit
exit
exit
egress
queue-group "QG_egress_1" create
exit
exit
exit
exit
no shutdown
----------------------------------------------
*A:Dut-T>config>port# /configure port 9/2/2
*A:Dut-T>config>port# info
----------------------------------------------
ethernet
mode access
access
ingress
queue-group "QG_ingress_1" create
exit
exit
egress
queue-group "QG_egress_1" create
queue-overrides
queue 3 create
rate 1500000 cir 2000
exit
exit
exit
exit
exit
exit
no shutdown
----------------------------------------------
*A:Dut-T>config>port#
config
qos
queue-group-templates
ingress
queue-group "Ingress_QG_1" create
policer 2 create
rate 9000
exit
exit
exit
egress
queue-group "Egress_QG_1" create
queue 1 best-effort create
exit
policer 2 create
rate 9000
exit
exit
exit
exit
network 2 create
ingress
fc be
fp-redirect-group policer 2
exit
exit
egress
fc be
port-redirect-group policer 2
exit
exit
exit
card 1
card-type xcm-x20
mda 1 mda-type cx20-10g-sfp no shutdown
exit
fp 1
ingress
network
queue-group "Ingress_QG_1" instance 550 create
exit
exit
exit
exit
no shutdown
port 1/1/3
ethernet
mtu 1514
network
egress
queue-group "Egress_QG_1" instance 550 create
exit
exit
exit
exit
no shutdown
exit
router
interface “to-D”
address 10.10.11.3/24
port 1/1/3
qos 2 egress-port-redirect-group "Egress_QG_1" egress-instance
550 ingress-fp-redirect-group "Ingress_QG_1" ingress-instance
550
no shutdown
configure
#--------------------------------------------------
echo "QoS Policy Configuration"
#--------------------------------------------------
qos
queue-group-templates
ingress
queue-group "QGIng1" create
policer 1 create
exit
policer 2 create
exit
policer 3 create
exit
policer 4 create
exit
exit
exit
egress
queue-group "QGEgr1" create
queue 1 best-effort create
exit
policer 1 create
exit
policer 2 create
exit
policer 3 create
exit
policer 4 create
exit
exit
exit
exit
exit
network 10 create
ingress
lsp-exp 0 fc be profile out
lsp-exp 1 fc be profile out
lsp-exp 2 fc be profile out
lsp-exp 3 fc be profile out
lsp-exp 4 fc be profile out
lsp-exp 5 fc be profile out
lsp-exp 6 fc be profile out
lsp-exp 7 fc be profile out
fc af
fp-redirect-group policer 4
exit
fc be
fp-redirect-group policer 1
exit
fc l1
fp-redirect-group policer 2
exit
fc l2
fp-redirect-group policer 3
exit
exit
egress
fc af
port-redirect-group policer 4
exit
fc be
port-redirect-group policer 1
exit
fc l1
port-redirect-group policer 2
exit
fc l2
port-redirect-group policer 3
exit
exit
exit
exit
#--------------------------------------------------
echo "Card Configuration"
#--------------------------------------------------
card 3
fp 1
ingress
network
queue-group "QGIng1" instance 1 create
exit
queue-group "QGIng1" instance 2 create
exit
exit
exit
exit
exit
#--------------------------------------------------
echo "Port Configuration"
#--------------------------------------------------
port 3/2/1
ethernet
encap-type dot1q
network
egress
queue-group "QGEgr1" instance 1 create
exit
queue-group "QGEgr1" instance 2 create
exit
exit
exit
exit
no shutdown
*A:Dut-T>config>service#
customer 1 create
description "Default customer"
exit
sdp 1 mpls create
description "Default sdp description"
far-end 2.2.2.2
ldp
path-mtu 9000
keep-alive
shutdown
exit
no shutdown
exit
vpls 1 customer 1 vpn 1 create
description "Default tls description for service id 1"
service-mtu 9000
stp
shutdown
exit
service-name "XYZ Vpls 1"
sap 9/2/1:1.* create
description "Default sap description for service id 1"
static-mac 00:00:1e:00:01:02 create
ingress
qos 10
exit
exit
spoke-sdp 1:101 vc-type vlan create
description "Description for Sdp Bind 1 for Svc ID 1"
ingress
qos 10 fp-redirect-group "QGIng1" instance 1
exit
egress
qos 10 port-redirect-group "QGEgr1" instance 1
exit
static-mac 00:00:28:00:01:02 create
no shutdown
exit
no shutdown
exit
router
interface "ip-12.1.1.1"
address 12.1.1.1/24
port 3/2/1:1
exit
interface "system"
address 1.1.1.1/32
exit
#---------------------------------------------
*A:Dut-T>config>service>vpls# info
----------------------------------------------
stp
shutdown
exit
sap 9/2/1 create
ingress
qos 10
exit
egress
qos 10
exit
exit
sap 9/2/2 create
ingress
qos 10
exit
egress
qos 10
exit
exit
no shutdown
----------------------------------------------
*A:Dut-T>config>service>vpls#