QOS限速

摘要:
XX涉及的QOS限速主要有两种:第一种是针对一个端口下双向IP互访;第二种是针对多个端口下双向IP互访;聚合car:是指能够对多个业务使用同一个car进行流量监控,即如果多个端口应用同一个聚合CAR,则这多个端口的流量之和必须在此聚合CAR设定的流量监管范围之内。总部与分部之间为20M专线。

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

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

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

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

QOS限速第1张

总部与分部之间为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:

QOS限速第2张

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

创建聚合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

免责声明:文章转载自《QOS限速》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇IE、火狐(Firefox)和谷歌(Google Chrome)浏览器差异【收集】css选择符的渲染效率下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

MySQL----ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes

1、问题描述 在导入同事提供的一个sql文件时候,出现了一个1071错误,总结学习一下: 2、分析问题 错误的字面意思是说mysql字段设置的值太长了,不能大于767个字节,在网上找了一些资料后才知道原理: 当我们给表建立索引时,数据库会计算key的长度是累加所有Index用到的字段的char长度后再按下面比例乘起来不能超过限定的key长度(myisam...

DNS(二)之bind的视图功能

bind视图工作原理 在我国目前的网络环境下面,多个运营商并存,运营商之间的存在一定的网络互通问题,如果把来自不同的运营商或者地域的所有用户通过简单的A记录分配到一个机房,那么就存在部分网民访问延时大或者丢包的问题。那么bind里面就提供了视图(Dns view ) 技术来解决这个问题,DNS视图就是对同一个资源记录根据的DNS请求来源IP地址不同,分配到...

ORA-01653: 表 xxxx 无法通过 8192 (在表空间 USERS 中) 扩展

Oracle中增加表空间大小的四种方法 1:给表空间增加数据文件 ALTER TABLESPACE app_data ADD DATAFILE ‘D:ORACLEPRODUCT10.2.0ORADATAEDWTESTAPP03.DBF’ SIZE 50M; 2:新增数据文件,并且允许数据文件自动增长 ALTER TABLESPACE app_data AD...

将文件以流的形式另存为下载

//【1】附件为本地磁盘路径(附件可以为图片、pdf、word等等)string strFile = Server.MapPath("/images/526763.pdf"); using (FileStream fs = new FileStream(strFile, FileMode.Open)) { byte[] bytes = new b...

python__007内置函数

本文摘自:https://docs.python.org/3/library/functions.html?highlight=built#ascii            内置功能     abs() delattr() hash() memoryview() set() all() dict() help() min() s...

查询表空间总大小(dba_data_files和dba_segments,dba_free_space区别)

1, dba_data_files,dba_segments,dba_free_space得出结论:一般情况下(没有drop表的时候):dba_data_files bytes = (dba_segments bytes + dba_free_space bytes) 实验: SQL> Select sum(bytes)/1024/1024/1024...