QOS限速

 

XX涉及的QOS限速主要有兩種:app

第一種是針對一個端口下雙向IP互訪;spa

第二種是針對多個端口下雙向IP互訪;(聚合car)blog

 

聚合car:是指可以對多個業務使用同一個car進行流量監控,即若是多個端口應用同一個聚合CAR,則這多個端口的流量之和必須在此聚合CAR設定的流量監管範圍以內。ip

 

 

 

 

 

 

總部與分部之間爲20M專線。現要求:分支10.2.2.0/24和總部10.4.4.0/24爲重要業務,要保障帶寬10M;10.1.1.0/24和10.3.3.0/24互訪限制5Mci

 

分支MSR:hash

 

流定義:it

acl advanced 3000io

rule 0 permit ip source 10.1.1.0 0.0.0.255 destination 10.3.3.0 0.0.0.255class

 

acl advanced 3001dva

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

相關文章
相關標籤/搜索