Friday, June 18, 2010

QOS Markings

QoS DSCP to IPP
So, I'm teaching a little QoS and a student asks me what are the various QoS markings and what do they correlate to?  So I spent sometime drawing a mapping of IPP to DSCP on the board when I realized I have this already in a spreadsheet.  It maps breaks up the bit marking, but does not necessarily dictate mapping between marking systems.  It will show CoS - IPP - PHB class and DSCP, but not ToS. Click here to get the spreadsheet.
























Other QoS notes



      128  64  32  16   8   4   2   1
 dscp  x    x   x   x   x   x
 ipp   x    x   x
 tos   x    x   x   x   x   x   x   x 


af41   1    0   0   0   1   0   0   0
      ------------  -----
          4            1


dscp34 1    0   0   0   1   0   0   0
       ----------------------
                34


tos136 1    0   0   0   1   0   0   0
       ------------------------------
                     136


ipp4   1    0   0
       ------------------------------
                                                 4


        dec    binary
 be     0 000
 cs 1 001 00 0  -cs1
 af 1 001 01 0 -af11
 af 001 10 0 -af12
af 001 11 0 -af13
 cs     2    010      00 0    -cs2
 af    010      01 0    -af21
...
 cs 3 011      00 0    -cs3
...
 cs     4    100      00 0    -cs4
 af 4 100      01 0    -af41
...
 cs     5       101     00 0    cs5
 af     5       101     01 0    af51  <--- not used
 ef 5 101     11 0    ef
...
res 6 110
res 7 111

router(config)# class map match-any http-telnet-af21-pq-cm
router(config-cmap)#  match protocol http
router(config-cmap)#  match prococol telnet


class-map match-any http-telnet-af21-extended
 match class-map http-telnet-af21-pq-cm
 match access-group 101

router(config)#policy-map ascolta-router1-out-pm
router(config-pmap)# class http-telnet-af21-pq-cm
router(config-pmap-c)#bandwidth 200
router(config-pmap-c)#police 400000
router(config-pmap-c)#exit
router(config-pmap)# class default-class
router(config-pmap-c)#fair-queue


policy-map police-to-500
 class default-class
  police 500000
  service-policy ascolta-router1-out-pm

int gig 0/0
 service-policy police-to-500

No comments:

The Network