Example 9a (default multipoint meter "11" is not used):

Example

sap-ingress 10 create
     num-qos-classifiers  154
     meter 1 create
     exit
     meter 3 create
     exit
     meter 4 create
     exit
     meter 11 create
     exit

     fc be  create
          meter 1
          broadcast-meter 11
          multicast-meter 4
     exit
     fc af  create
          meter 3
          broadcast-meter 11
          multicast-meter 4
     exit
     default-fc be

     ip-criteria  dscp-only
     entry 1  create
          match dscp cp1
          action fc af
     exit
     entry 2  create 
          match dscp cp2
          action fc af
     exit
     entry 3 create
          match dscp cp3
          action fc af
     exit
     entry 4  create
          match dscp cp4
          action fc af
     exit
     entry 5  create
          match dscp cp5
          action fc af
     exit
     entry 6  create
          match dscp cp6
          action fc af
     exit
     entry 7   create
          match dscp cp7
          action fc af
     exit
     entry 8   create
          match dscp cs1 
          action fc af
     exit
     entry 9   create
          match dscp cp9
          action fc af
     exit
     entry 10   create
          match dscp af11
          action fc af
     exit
     entry 11   create
          match dscp cp11 
          action fc af
     exit
     entry 12   create
          match dscp af12
          action fc af
     exit
     entry 13   create
          match dscp cp13
          action fc af
     exit
     entry 14   create
          match dscp af13
          action fc af
     exit
     entry 15   create
          match dscp cp15
          action  fc af
     exit
     entry 16   create
          match dscp  cs2
          action fc af
     exit
     entry 17   create
          match dscp cp17
          action fc af
     exit
     entry 18   create
          match dscp af21
          action  fc af
     exit
     entry 19   create
          match dscp cp19 
          action fc af
     exit
     entry 20  create
          match dscp af22 
          action fc af
     exit
     entry 21   create
          match dscp cp21 
          action fc af
     exit
     entry 22   create
          match dscp af23 
          action  fc af
     exit
     entry 23   create
          match dscp cp23
          action fc af
     exit
     entry 24   create
          match dscp cs3
          action  fc af
     exit
     entry 25   create
          match dscp cp25
          action fc af
     exit
     entry 26   create
          match dscp af31
          action  fc af
     exit
     entry 27   create
          match dscp cp27 
          action fc af
     exit
     entry 28   create
          match dscp af32
          action fc af
     exit
     entry 29   create
          match dscp cp29
          action fc af
     exit
     entry 30   create
          match dscp af33
          action fc af
     exit
     entry 31   create
          match dscp cp31 
          action fc af
     exit
     entry 32   create
          match dscp cs4
          action fc af
     exit
     entry 33   create
          match dscp cp33
          action fc af
     exit
     entry 34   create
          match dscp af41
          action fc af
     exit
     entry 35   create
          match dscp cp35
          action fc af
     exit
     entry 36   create
          match dscp af42
          action fc af
     exit
     entry 37   create
          match dscp cp37
          action  fc af
     exit
     entry 38   create
          match dscp af43
          action fc af
     exit
     entry 39   create
          match dscp cp39 
          action fc af
     exit 
     entry 40   create
          match dscp cs5
          action fc af
     exit
     entry 41   create
          match dscp cp41
          action  fc af
     exit
     entry 42   create
          match dscp cp42 
          action fc af
     exit
     entry 43    create
          match dscp cp43
          action  fc af
     exit
     entry 44   create
          match dscp cp44 
          action fc af
     exit
     entry 45    create
          match dscp cp45
          action fc af
     exit
     entry 46   create
          match dscp ef 
          action  fc af
     exit
     entry 47   create
          match dscp cp47 
          action  fc af
     exit
     entry 48  create
          match dscp nc1
          action fc af
     exit
     entry 49 create
          match dscp cp49 
          action fc af
     exit
     entry 50 create
          match dscp cp50 
          action fc af
     exit
     exit
exit

In the example above, assuming the policy is attached to a SAP in a VPLS service, the following number of classification entries per FC:

FCnc = 0 + 0 + 0 + 0 = 0 FCh1 = 0 + 0 + 0 + 0 = 0 FCef = 0 + 0 + 0 + 0 = 0 FCh2 = 0 + 0 + 0 + 0 = 0 FCl1 = 0 + 0 + 0 + 0 = 0 FCaf = 1 + 0 + 1 + 0 = 3

Because FCaf uses unicast, broadcast and multicast meter, three entries are required to identify these traffic types explicitly. Unknown-unicast traffic type is classified using the same entry as multicast traffic type and uses the same meter. Additionally note that meter "11" is not defined to be multipoint meter, but is used as a normal unicast meter.

FCl2 = 0 + 0 + 0 + 0 = 0 FCbe = 1 + 1 + 1 + 0 = 3

Because FCbe uses unicast, broadcast and multicast meter, three entries are needed to identify these traffic types explicitly. Unknown-unicast traffic type is classified using the same entry as multicast traffic type and uses the same meter. Additionally note that meter "11" is not defined to be multipoint meter, but is used as a normal unicast meter.

Using the equation, calculate the total classification entries used by this policy, as follows:

TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (50 * 3)af + (0 * 0)l2 + (1 * 3)be = 153

The number of meters used in this policy = 4. Hence, in this example num-qos-classifiers 154 is used (maximum of (153, (2 * 4)) = 153, rounded off to the next multiple of 2 will be 154).

Hence, in this example num-qos-classifiers 154 is used (maximum of (153, (2 * 4)) = 153, rounded off to the next multiple of 2 will be 154).

If the same policy were to be used for a SAP in an Epipe service, then because all traffic is classified to a unicast traffic type and because only unicast meters are used, the following:

FCnc = 0 + 0 + 0 + 0 = 0 FCh1 = 0 + 0 + 0 + 0 = 0 FCef = 0 + 0 + 0 + 0 = 0 FCh2 = 0 + 0 + 0 + 0 = 0 FCl1 = 0 + 0 + 0 + 0 = 0 FCaf = 1 + 0 + 0 + 0 = 1 FCl2 = 0 + 0 + 0 + 0 = 0 FCbe = 1 + 0 + 0 + 0 = 1

Using the equation, calculate the total classification entries used by this policy, as follows:

TC = (0 * 0)nc + (0 * 0)h1 + (0 * 0)ef + (0 * 0)h2 + (0 * 0)l1 + (50 * 1)af + (0 * 0)l2 + (1 * 1)be = 51

The number of meters used in this policy = 2.

Hence for Epipe SAP it is recommended to define another sap-ingress policy with num-qos-classifiers 52 is used (that is, maximum of (51, (2 * 2)) = 51, rounded off to the multiple of 2 will be 52).