Layer 2 Switching Commands 698User GuidelinesThe simple form of the police command uses a single data rate and burst size,resulting in two outcomes: conform and violate. Conforming packets arecolored green and non-conforming packets are colored red for use by theWRED mechanism. Only one style of police command (simple, single-rate ortwo-rate) is allowed for a given class instance in a particular policy. Theconform-color command can be used to pre-color packets prior to policing.Packets pre-colored red are not re-colored by the policer.ExampleThe following example configures a single rate ingress meter with packetsreceived at a rate below 1000 Kbps and 4096 byte burst size are transmittedand packets above that rate are dropped. The transmitted packets are coloredgreen should the operator desire to configure a WRED drop policy.console(config-policy-classmap)#police-simple 1000 64 conform-actiontransmit violate-action droppolice-single-rateUse the police-single-rate command to implement a single-rate Three ColorMarket (srTCM) per RFC 2697.NOTE: This command is not available on the N1500 Series switches.Syntaxpolice-single-rate datarate burstsize excess-burstsize conform-action actionexceed-action action violate-action action• datarate—Data rate in kilobits per second (Kbps). (Range 1-4294967295)• burstsize—Burst size in kilobits per seconds (Kbps). (Range 1-128)• excess-burstsize—Excess burst size in kilobits per seconds (Kbps). (Range1-128)• action—The action to take according to the color. Select one:– drop: Drop the packet.– set-prec-transmit ip-prec: Remark the IP precedence in the packet toip-prec and transmit. (Range 0-7)