beautypg.com

Adding color-aware policing attribute – D-Link UNIFIED WIRED & WIRELESS ACCESS SYSTEM DWS-3000 User Manual

Page 120

background image

120

© 2001- 2008 D-Link Corporation. All Rights Reserved.

Wired Configuration Guide

queue attribute. It is presumed that the switch will forward this traffic to interface 0/5
based on a normal destination address lookup for internet traffic.

interface 0/5
cos-queue min-bandwidth 0 25 25 25 25 0 0 0
exit
exit

Adding Color-Aware Policing Attribute

Policing in the DiffServ feature uses either “color blind” or “color aware” mode. Color blind
mode ignores the coloration (marking) of the incoming packet. Color aware mode takes into
consideration the current packet marking when determining the policing outcome. An
auxiliary traffic class is used in conjunction with the policing definition to specify a value for
one of the DSCP or IP Precedence fields designating the incoming color value to be used as
the conforming color.

The following commands show how to add a color aware policing attribute to the finance_dept
class.

1. Add a new class to serve as the auxiliary traffic class. The match condition for the class

must be either IP Precedence or IP DSCP. In this example, the match condition is IP Prece-
dence with a value of 2.

class-map match-all color_class

match ip precedence 2
exit

2. Before adding the color aware mode, you must configure policing for the finance_dept

class.

The following commands first configure simple policing with a conforming data rate of
10000 Kbps, a burst size of 100, a conform action of send, and a violate action of drop.
After the policing is configured, the color aware attribute is configured. The color-aware
attribute cannot be configured before policing.

policy-map internet_access
class finance_dept

police-simple 100000 100 conform-action transmit
violate-action drop

conform-color color_class