Example 1: Epipe, IES, and VPRN services using unicast traffic type

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
----------------------------------------------
*A:dut-a# configure qos sap-ingress 23 
Example
*A:dut-a>config>qos>sap-ingress# info 
----------------------------------------------
            description "sap-Ingress-Policy-23"
            num-qos-classifiers 16
            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
*A:dut-a# configure service epipe 7 
*A:dut-a>config>service>epipe# info 
----------------------------------------------
            description "Default epipe 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
----------------------------------------------

In the above example, all eight FCs are configured and eight meters are configured. For Epipe service only unicast traffic-type is identified. This requires one classification entry per FC configured and an additional one for the default-fc assignment, for a total of 9 classification entries.

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

TP = Total meters used is 8.

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

If the same policy was going to be attached to an IES or VPRN SAP without multicast enabled (VPRN example shown below, IES is similar), the num-qos-classifiers required would be the same as that for am Epipe service (that is, 16). The calculations are the same as that for Epipe service.

Example
----------------------------------------------
vprn 7 customer 1 create
            description "Default VPRN ID 7"
            route-distinguisher 3:7
            interface "int1VPRN201" create
                address 10.43.44.1/24
                sap 1/1/3:201 create
                    description "sap-7-10.43.44.1"
                    ingress
                        qos 23 enable-table-classification
                    exit
                    egress
                    exit
                exit
            exit
            service-name "XYZ Vprn 7"
            no shutdown
        exit
----------------------------------------------