QoS mechanisms - marking (mark)

Class-based marking MQC is to provide an additional tool, which allows static classification tagged packets.
It can be used to mark the inbound or outbound packets.
It QoS characteristics may be combined in any other direction out.
It may be incorporated in any other direction into the regulated based on the
first CEF disposed on the interface, in order to ensure the function of class-based data packet marking may be used.
MQC marking options
packets can be marked with one of the following flags:
the IP precedence
the IP the DSCP
the QoS Group
the MPLS Experimental bits
the IEEE 802.1Q or the ISL the CoS / priority bits
Frame Relay DE 'bit
the ATM the CLP' bit
configuration class label
Here Insert Picture Description
Here Insert Picture DescriptionHere Insert Picture Description
case arranged

class-map Well-known-services
  match access-group 100
!
class-map Unknown-services
  match not class-map Well-known-services
!
policy-map set-DSCP
  class Well-known-services
    set DSCP AF21
  class Unknown-services
    set DSCP 0
!
access-list 100 permit tcp any any lt 1024
access-list 100 permit tcp any lt 1024 any
!
Interface ethernet 0/0
 service-policy input set-DSCP

Class-based marking can mark i***nbound or outbound packets.***
Packets can be marked by IP precedence, IP DSCP, QoS group, MPLS experimental bits, and so on.
Class-based marking requires three configuration steps: class map, policy map, service policy.
Use set cos cos-value to set (mark) the L2 cos value of an outgoing packet.
Use set ip precedence ip-precedence-value to set (mark) the precedence value in the IP header.
Use set ip dscp ip-dscp-value to set (mark) packets of a class with a DSCP value.
In order to use class-based marking, CEF must be enabled.
Use show policy-map to display the configuration of a service policy map created using the policy-map command.
Use show policy-map interface to display all service policies applied to the specified interface.

Here Insert Picture Description

Published 231 original articles · won praise 222 · views 20000 +

Guess you like

Origin blog.csdn.net/qinshangwy/article/details/104920656