QoS mechanisms——marking(标记)

Class-based marking 是与MQC提供一个额外的工具,它允许静态分类标记的数据包。
它可以用来标记入站或出站数据包。
它可以结合任何其它出方向的QoS 特性。
它可以结合任何其它进方向基于类的管制
先在接口上配置CEF,才能保证基于类的数​​据包标记的功能都可以使用。
MQC marking options
数据包可以打上以下标志之一:
IP precedence
IP DSCP
QoS group
MPLS experimental bits
IEEE 802.1Q or ISL CoS/priority bits
Frame Relay DE bit
ATM CLP bit
配置分类标记
在这里插入图片描述
在这里插入图片描述在这里插入图片描述
案例配置

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.

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值