Content

| 8.4 |  | Policing and Marking |
| 8.4.6 |  | Configuring the policed DSCP map |

In order to mark down the DSCP value of nonconforming traffic, the switch uses a map to translate between the initial DSCP value and the marked down DSCP.

The global configuration command mls qos map policed-dscp is to modify the default condition of mapping the inbound DSCP value to the same outbound DSCP.

The command syntax is:

> Switch(config)#mls qos map policed-dscp dscp-list to mark-down-dscp

The dscp-list consists of up to eight DSCP values to be mapped to a single mark-down-dscp value.

The command show mls qos maps policed-dscp is used to view the current mapping and the map can be returned to its defaults with the no mls qos policed-dscp command.

This example shows how to map DSCP 50 to 57 to a marked-down DSCP value of zero:

> Switch#configure terminal
> Switch(config)#mls qos map policed-dscp 50 51 52 53 54 55 56 57 to 0
> Switch(config)#end
> Switch#show mls qos maps policed-dscp
> Policed-dscp map:

d1: | d2 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
----------------------------------------------------------
0: | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 |
1: | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
2: | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
3: | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
4: | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 |
5: | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 00 | 58 | 59 |
6: | 60 | 61 | 62 | 63 |  |  |  |  |  |  |

Note that the map is read by taking the original DSCP in the form of “d1 d2” and reading the new DSCP value from the intersection of the “d1” row and the “d2” column.