XX涉及的QOS限速主要有两种:

第一种是针对一个端口下双向IP互访;

第二种是针对多个端口下双向IP互访;(聚合car)

聚合car:是指能够对多个业务使用同一个car进行流量监控,即如果多个端口应用同一个聚合CAR,则这多个端口的流量之和必须在此聚合CAR设定的流量监管范围之内。

总部与分部之间为20M专线。现要求:分支10.2.2.0/24和总部10.4.4.0/24为重要业务,要保障带宽10M;10.1.1.0/24和10.3.3.0/24互访限制5M

分支MSR:

流定义:

acl advanced 3000

rule 0 permit ip source 10.1.1.0 0.0.0.255 destination 10.3.3.0 0.0.0.255

acl advanced 3001

rule 0 permit ip source 10.2.2.0 0.0.0.255 destination 10.4.4.0 0.0.0.255

traffic classifier 10M operator and

if-match acl 3001

traffic classifier 5M operator and

if-match acl 3000

流行为:

traffic behavior 10M

queue ef bandwidth 1024    --------保证带宽

traffic behavior 5M

car cir 5000   ---------限制带宽

流策略:

qos policy xiansu

classifier 10M behavior 10M

classifier 5M behavior 5M

应用:

interface GigabitEthernet0/1r

qos apply policy xiansu outbound

验证:

dis qos policy interface GigabitEthernet 0/1

Interface: GigabitEthernet0/1

Direction: Outbound

Policy: xiansu

Classifier: default-class

Matched : 0 (Packets) 0 (Bytes)

5-minute statistics:

Forwarded: 0/0 (pps/bps)

Dropped  : 0/0 (pps/bps)

Operator: AND

Rule(s) :

If-match any

Behavior: be

Default Queue:

Flow based Weighted Fair Queue:

Max number of hashed queues: 256

Matched  : 0 (Packets) 0 (Bytes)

Enqueued : 0 (Packets) 0 (Bytes)

Discarded: 0 (Packets) 0 (Bytes)

Discard Method: Tail

Classifier: 10M

Matched : 0 (Packets) 0 (Bytes)

5-minute statistics:

Forwarded: 0/0 (pps/bps)

Dropped  : 0/0 (pps/bps)

Operator: AND

Rule(s) :

If-match acl 3001

Behavior: 10M

Expedited Forwarding:

Bandwidth 1024 (kbps) CBS 25600 (Bytes)

Matched  : 0 (Packets) 0 (Bytes)

Enqueued : 0 (Packets) 0 (Bytes)

Discarded: 0 (Packets) 0 (Bytes)

Discard Method: Tail

Classifier: 5M

Matched : 0 (Packets) 0 (Bytes)

5-minute statistics:

Forwarded: 0/0 (pps/bps)

Dropped  : 0/0 (pps/bps)

Operator: AND

Rule(s) :

If-match acl 3000

Behavior: 5M

Committed Access Rate:

CIR 5000 (kbps), CBS 312500 (Bytes), EBS 0 (Bytes)

Green action  : pass

Yellow action : pass

Red action    : discard

Green packets : 0 (Packets) 0 (Bytes)

Yellow packets: 0 (Packets) 0 (Bytes)

Red packets   : 0 (Packets) 0 (Bytes)

总部MSR配置一样,把ACL的源目调反就可以了。

 

 

-------------------------------------------------------------------------------

聚合car:

这里模拟工作的环境,在一个节点做双向的限速:

 

创建聚合car:(应题目双向)

qos car xiansu-1 aggregative cir 10240 cbs 2560000 ebs 0 red  discard

qos car xiansu-2 aggregative cir 10240 cbs 2560000 ebs 0 red  discard

 

流定义:

acl advanced 3000

 rule 0 permit ip source 10.2.2.0 0.0.0.255 destination 10.4.4.0 0.0.0.255

 

acl advanced 3001

 rule 0 permit ip source 10.4.4.0 0.0.0.255 destination 10.2.2.0 0.0.0.255

 

traffic classifier 1 operator and

 if-match acl 3000

 

traffic classifier 2 operator and

 if-match acl 3001

 

流行为:

traffic behavior 1

 car name xiansu-1

 

traffic behavior 2

 car name xiansu-2

 

流策略:

qos policy xiansu-1

 classifier 1 behavior 1

 

qos policy xiansu-2

 classifier 2 behavior 2

 

应用:

interface GigabitEthernet1/0/1

qos apply policy xiansu-1 inbound

 qos apply policy xiansu-2 outbound

 

 

 

验证:

dis qos policy interface GigabitEthernet 1/0/1

Interface: GigabitEthernet1/0/1

  Direction: Inbound

  Policy: xiansu-1

   Classifier: 1

     Operator: AND

     Rule(s) :

      If-match acl 3000

     Behavior: 1

      Committed Access Rate:

        Car name: xiansu-1

 

Interface: GigabitEthernet1/0/1

  Direction: Outbound

  Policy: xiansu-2

   Classifier: 2

     Operator: AND

     Rule(s) :

      If-match acl 3001

     Behavior: 2

      Committed Access Rate:

        Car name: xiansu-2

最新文章

  1. mrjob 使用 mongoldb 数据源【转】
  2. 配置grunt进行css、js的检查、合并和压缩
  3. cxf client端借口类型找不到问题
  4. C和CPP关于条件运算符的区别
  5. Python - 素数筛
  6. HDU 2042 不容易系列之二 [补6.24] 分类: ACM 2015-06-26 20:40 9人阅读 评论(0) 收藏
  7. Android中表示尺寸的六种度量单位
  8. Six important .NET concepts 【Turn】
  9. Android Context作用
  10. ActiveX控件打包成Cab置于网页中自动下载安装(转载)
  11. statfs函数说明
  12. CDZSC_2015寒假新人(1)——基础 i
  13. Installutil.exe的位置和路径
  14. D5
  15. redis object 对象系统
  16. Git - 可视化冲突解决工具P4Merge
  17. debug网页时小问题The source attachment does not contain the source for the file
  18. MySql数据库表设计规范
  19. 零碎知识点 telnet操作IMAP查看邮件
  20. if...then

热门文章

  1. 如何从 ASH 找到消耗 PGA 和 临时表空间 较多的 Top SQL_ID (Doc ID 2610646.1)
  2. vue项目、路由
  3. win 10 命令行导出注册表
  4. 关于实现序列化接口Serializable
  5. 创建线程之三:实现Callable接口
  6. System.InvalidOperationException:This.NpgsqlTransaction has completed;it is no longer usable. at Npgsql.NpgsqlTransaction.CheckCompleted() in ...
  7. ES6 -箭头函数 ,对象的函数解构
  8. Node.js操作Mysql的简单示例
  9. JNDI学习总结(一)——JNDI数据源的配置
  10. Shell—实现DDOS攻击自动封禁IP