*A:dut-a>config>qos>dscp-classification# info detail
----------------------------------------------
description "dscp-classification-23"
default-dscp-fc "be" profile in
dscp cs3 fc "be"
dscp cs4 fc "ef" profile out
dscp af31 fc "af" profile in
dscp af33 fc "l1" profile in
dscp af41 fc "nc"
dscp cp25 fc "l2"
dscp cp31 fc "h2" profile out
dscp cp33 fc "h1" profile in
----------------------------------------------
*A:dut-a# configure qos sap-ingress 24
*A:dut-a>config>qos>sap-ingress# info
----------------------------------------------
description "sap-Ingress-Policy-24"
num-qos-classifiers 26
meter 1 create
mode trtcm2
rate cir 5000 pir 7000
mbs 200 kbits
cbs 100 kbits
exit
meter 9 create
mode trtcm2
rate cir 3000 pir 5000
mbs 200 kbits
cbs 100 kbits
exit
meter 10 create
mode trtcm2
rate cir 4000 pir 6000
mbs 200 kbits
cbs 100 kbits
exit
meter 11 multipoint create
mode trtcm2
rate cir 2000 pir 5000
mbs 200 kbits
cbs 100 kbits
exit
meter 12 create
mode trtcm2
rate cir 3500 pir 6000
mbs 200 kbits
cbs 100 kbits
exit
meter 13 create
mode trtcm2
rate cir 5000 pir 7000
mbs 200 kbits
cbs 100 kbits
exit
meter 14 create
mode trtcm2
rate cir 5000 pir 6000
mbs 200 kbits
cbs 100 kbits
exit
meter 15 create
mode trtcm2
rate cir 4000 pir 5000
mbs 200 kbits
cbs 100 kbits
exit
meter 20 multipoint create
mode trtcm2
rate cir 0 pir 5
mbs 50 kbits
cbs 50 kbits
exit
meter 21 multipoint create
mode trtcm2
rate cir 0 pir 10
mbs 100 kbits
cbs 100 kbits
exit
meter 22 multipoint create
mode trtcm2
rate cir 0 pir 50
mbs 100 kbits
cbs 100 kbits
exit
fc "af" create
meter 11
broadcast-meter 22
exit
fc "be" create
meter 9
exit
fc "ef" create
meter 14
broadcast-meter 22
exit
fc "h1" create
meter 15
broadcast-meter 22
exit
fc "h2" create
meter 13
broadcast-meter 22
exit
fc "l1" create
meter 12
broadcast-meter 22
unknown-unicast 21
exit
fc "l2" create
meter 10
broadcast-meter 20
exit
fc "nc" create
meter 1
exit
dscp-classification 23
----------------------------------------------
IES service and routed VPLS service configuration is shown below.
----------------------------------------------
ies 7 customer 1 vpn 7 create
description "Default Ies service id 7"
interface "int1IES201" create
address 10.43.44.1/24
vpls "rvpls607"
ingress
enable-table-classification
routed-override-qos-policy 23
exit
exit
exit
service-name "XYZ Ies 7"
no shutdown
----------------------------------------------
----------------------------------------------
vpls 607 customer 1 r-vpls svc-sap-type any create
description "Default tls service id 607"
allow-ip-int-bind
exit
stp
shutdown
exit
service-name "rvpls607"
sap 1/1/3:201 create
description "Default sap service id 607"
ingress
qos 23 enable-table-classification
exit
egress
exit
exit
no shutdown
----------------------------------------------
The configuration for the DSCP classification policy associated with the access port that the RVPLS SAP is configured on, and which is used for classifying bridged packets is shown below:
*A:dut-a# configure port 1/1/3
*A:dut-a>config>port# info
----------------------------------------------
ethernet
mode access
enable-table-classification
access
ingress
dscp-classification 23
untagged-fc ef
exit
exit
encap-type dot1q
mtu 9212
exit
no shutdown
----------------------------------------------
For the bridged traffic in a VPLS service four traffic types are identified (unicast and BUM). Because multicast meter "11" is defined, BUM traffic type for all FCs will use meter "11". (An explicit multicast-meter for the FC has not been configured).
The number of classification entries required is as follows:
FC (nc) = 1 + 0 + 1 + 0 = 2 (one for unicast and one for all of BUM) FC (h1) = 1 + 1 + 1 + 0 = 3 (one for unicast, one for broadcast, and one for both multicast & unknown-unicast) FC (ef) = 1 + 1 + 1 + 0 = 3 (one for unicast, one for broadcast, and one for both multicast & unknown-unicast) FC (h2) = 1 + 1 + 1 + 0 = 3 (one for unicast, one for broadcast, and one for both multicast & unknown-unicast) FC (l1) = 1 + 1 + 1 + 1 = 4 (one for unicast, one for broadcast, one for unknown-unicast & one for multicast) FC (af) = 1 + 1 + 1 + 0 = 3 (one for unicast, one for broadcast, and one for both multicast and unknown- unicast) FC (l2) = 1 + 1 + 1 + 0 = 3 (one for unicast, one for broadcast, and one for both multicast and unknown- unicast) FC (be) = 1 + 0 + 1 + 0 = 2 (one for unicast and one for all of BUM) FC (default-fc) = 1 + 0 + 1 + 0 = 2 (one for unicast and one for all of BUM, because default-dscp-fc is configured to be FC 'be' in the dscp-classification policy)
TP = Total meters used is 11.
Hence, in this example num-qos-classifiers is set to (maximum (25, (11*2)) = 25, which means 26 after rounding off to the next highest even number.
For routed traffic in the routed VPLS service only the unicast traffic type is supported currently. This does not change the amount of resources needed since bridged traffic requires higher amount of resources. To reduce the amount of resources, users can dedicate a single meter for BUM traffic from all FCs, as shown in the following example (note that meter "11" is used for all FCs automatically when meter "11" is defined in the policy).
*A:dut-a# configure qos sap-ingress 34
*A:dut-a>config>qos>sap-ingress# info
----------------------------------------------
description "sap-Ingress-Policy-34"
num-qos-classifiers 18
meter 1 create
mode trtcm2
rate cir 5000 pir 7000
mbs 200 kbits
cbs 100 kbits
exit
meter 9 create
mode trtcm2
rate cir 3000 pir 5000
mbs 200 kbits
cbs 100 kbits
exit
meter 10 create
mode trtcm2
rate cir 4000 pir 6000
mbs 200 kbits
cbs 100 kbits
exit
meter 11 multipoint create
mode trtcm2
rate cir 2000 pir 5000
mbs 200 kbits
cbs 100 kbits
exit
meter 12 create
mode trtcm2
rate cir 3500 pir 6000
mbs 200 kbits
cbs 100 kbits
exit
meter 13 create
mode trtcm2
rate cir 5000 pir 7000
mbs 200 kbits
cbs 100 kbits
exit
meter 14 create
mode trtcm2
rate cir 5000 pir 6000
mbs 200 kbits
cbs 100 kbits
exit
meter 15 create
mode trtcm2
rate cir 4000 pir 5000
mbs 200 kbits
cbs 100 kbits
exit
meter 20 multipoint create
mode trtcm2
rate cir 400000 pir 1000000
mbs 5000 kbits
cbs 500 kbits
exit
fc "af" create
meter 9
exit
fc "be" create
meter 20
exit
fc "ef" create
meter 14
exit
fc "h1" create
meter 15
exit
fc "h2" create
meter 13
exit
fc "l1" create
meter 12
exit
fc "l2" create
meter 10
exit
fc "nc" create
meter 1
exit
dscp-classification 23
----------------------------------------------
In the above example, all eight FCs are configured and nine meters are configured, with multipoint meter "11" dedicated to all BUM traffic for all FCs in use. For the VPLS service four traffic-types are identified (unicast and BUM). Because multicast meter "11" is defined, BUM traffic type for all FCs will use meter "11". The number of classification entries required is as follows:
TP = Total meters used is 9.
Hence, in this example num-qos-classifiers is set to (maximum (18, (9*2)) = 18.