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

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

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

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

QOS限速-LMLPHP

总部与分部之间为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限速-LMLPHP

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

 

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

05-14 07:44