Example 2: VPLS using unicast and BUM meter with IES or VPRN using multicast

Example

*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
----------------------------------------------
Example
*A:dut-a# configure qos sap-ingress 23 
*A:dut-a>config>qos>sap-ingress# info 
----------------------------------------------
            description "sap-Ingress-Policy-23"
            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
            fc "af" create
                meter 11
            exit
            fc "be" create
                meter 9
            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
----------------------------------------------
Example
----------------------------------------------
vpls 7 customer 1 svc-sap-type any create
            description "Default tls for service id 7"
            
            sap 1/1/3:201 create
                description "Default sap for service id 7"
                ingress
                    qos 23  enable-table-classification
                exit
                egress
                exit
            exit
            no shutdown
        exit
----------------------------------------------

In the above example, all eight FCs are configured and eight meters are configured. In addition, multipoint meter "11" is configured for 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:

FC (nc) = 1 + 0 + 1 + 0 = 2 FC (h1) = 1 + 0 + 1 + 0 = 2 FC (ef) = 1 + 0 + 1 + 0 = 2 FC (h2) = 1 + 0 + 1 + 0 = 2 FC (l1) = 1 + 0 + 1 + 0 = 2 FC (af) = 1 + 0 + 1 + 0 = 2 FC (l2) = 1 + 0 + 1 + 0 = 2 FC (be) = 1 + 0 + 1 + 0 = 2 FC (default-fc) = 1 + 0 + 1 + 0 = 2
TC = 1*2 (FC-nc) + 1*2 (FC-h1) + 1*2 (FC-ef) + 1*2 (FC-h2) + 1*2 (FC-l1) + 1*2 (FC-af) + 1*2 (FC-l2) + 1*2 (FC-be) + 1*2 (default-fc) = 18

TP = Total meters used is 8.

Hence, in this example num-qos-classifiers is set to (maximum (18, (8*2)) = 18.

If the same policy is attached to an IES or an VPRN service with multicast enabled, then the number of resources required would be 18 (that is, num-qos-classifiers needs to be set to 18). The calculations are the same those for VPLS service (shown above).