Cisco NCS 5000 シリーズ ルータのモジュラ QoS コンフィギュレーション ガイド、IOS XR リリース 6.0.x

Unknown

PDF preview unavailable. Download the PDF instead.

b-ncs5000-qos-configuration-guide-60x
Cisco NCS 5000   QoS   IOS XR  6.0.x
2015  12  23 

107-6227 9-7-1  http://www.cisco.com/jp   0120-092-255 PHS  10:0012:0013:0017:00 http://www.cisco.com/jp/go/contactcenter/

 www.cisco.com/jp/go/safety_warning/   /   
  
 Information Packet 
The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of the UNIX operating system.All rights reserved.Copyright © 1981, Regents of the University of California.
  
  
 IP    
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries.To view a list of Cisco trademarks, go to this URL: http:// www.cisco.com/go/trademarks.Third-party trademarks mentioned are the property of their respective owners.The use of the word partner does not imply a partnership
relationship between Cisco and any other company.(1110R)
© 2015 Cisco Systems, Inc. All rights reserved.


 v  v   v
 QoS   1  1   2    3   3   5   5   7    8   9   9 In-Place  10  QoS   11  11 IP precedence  CoS  13  IP precedence  13 IP precedence  14  14
 QoS  17  17 Modified Deficit Round Robin Queueing 18  18  18
Cisco NCS 5000   QoS  IOS XR  6.0.x iii


   22    22
  25   25
Traffic Policing 27  28  28   28  29   29   31   2  32
  QoS  35   QoS 35   35   QoS  36
Cisco NCS 5000   QoS  IOS XR  6.0.x iv



 · , v  ·  , v 



 1   1

 2015  12 

Summary 

 
Cisco Bug Search ToolBST What's New in Cisco Product Documentation http://www.cisco.com/c/en/us/td/docs/general/whatsnew/whatsnew.html 
What's New in Cisco Product Documentation RSS   RSS 

Cisco NCS 5000   QoS  IOS XR  6.0.x v

 



Cisco NCS 5000   QoS  IOS XR  6.0.x vi

1 



 QoS   
· , 1  ·  , 2  ·  , 5  ·  , 9  · In-Place , 10  ·  QoS  , 11 

  QoS  Quality of Service   CoS   QoS     IP precedence   QoS    QoS      Quality of ServiceQoS MQC    

Cisco NCS 5000   QoS  IOS XR  6.0.x 1

 

 QoS  

  

 

 class-map     3 
·  ·  match  ·  match   match 


match     QoS   

  Max Entries  NOT



 



 

 

 

IPv4 DSCP IPv6 DSCP DSCP

063 64

Yes

Yes



IPv4 Precedence
IPv6 Precedence
Precedence

07 8

Yes

Yes



MPLS

07 8

Experimental

Topmost

Yes

Yes



Access-group N/A

N/A

 N/A



QoS-group

17 7

 

Egress

CoS

07 8

Yes

Yes



 N/A

N/A

Yes

N/A



Cisco NCS 5000   QoS  IOS XR  6.0.x 2

 QoS  

  

  
          QoS   FIFO  qos-group1-7 qos-group 0   class-default  qos-group 0    
configure policy-map ingress_policy1 class class-default police rate percent 30 !
 
 class-map   match     
·   
· not  match  
·  match 1   1 
· match-any     1  match-all  
· match access-group IPv4  IPv6  TTL  QoS 
Cisco NCS 5000   QoS  IOS XR  6.0.x
3

 

 QoS  

· match access-group ACL  ACL   ACL  
· match qos-group  
·   qos-group 0  · class-default  8 qos-group

   1   2 
 , 2   
Router# configure Router(config)# class-map match-any qos-1 Router(config-cmap)# match qos-group 1 Router(config-cmap)# end-class-map Router(config-cmap)# commit
, 7   , 8  
 ·  , 2  ·  , 5 
 · class-map · match access-group · match cos · match dscp · match mpls experimental topmost · match precedence · match protocol · match qos-group

Cisco NCS 5000   QoS  IOS XR  6.0.x 4

 QoS  

 

 

  3  ·  ·   · Quality of ServiceQoS

  QoS 
MQC  1   1   
   TCAM   
 Cisco NCS 5001  Cisco NCS 5002    

   

bandwidth-remaining



mark

, 11 

police



priority

 1

shape



 
  QoS    , 3   
policy-map      service-policy  1 

Cisco NCS 5000   QoS  IOS XR  6.0.x 5

 

 QoS  

      1   , 7 
   1 1  
 2    3   , 5  
Router# configure Router(config)# policy-map egress_policy2 Router(config-pmap)# class qos-1 /* Configure class-action ('bandwidth remaining' in this example). Repeat as required, to specify other class-actions */ Router(config-pmap-c)# bandwidth remaining ratio 50 Router(config-pmap-c)# exit /* Repeat class configuration as required, to specify other classes */ Router(config-pmap)# end-policy-map Router(config)# commit
, 7  , 8 
 ·  , 5  ·  , 2 
 · bandwidth remaining · class · police · policy-map · priority · set cos · set dscp · set qos-group · shape
Cisco NCS 5000   QoS  IOS XR  6.0.x 6

 QoS  

 

 
    
 
  
1    , 3  
2 1     , 5  
3   
4  
Router# configure Router(config)# interface TenGig 0/0/0/0 Router(config-int)# service-policy output egress_policy2 Router(config-int)# commit

/* Class-map configuration */
class-map match-any qos-1 match qos-group 1 end-class-map
! ----! class-map match-any qos-7
match qos-group 7 end-class-map
/* Policy-map configuration */ policy-map egress_policy2
class qos-1 bandwidth remaining ratio 50
! -----
class qos-7 priority level 1
! class class-default
bandwidth remaining ratio 2 ! end-policy-map
Cisco NCS 5000   QoS  IOS XR  6.0.x
7

  

 QoS  

/* Attaching traffic policy to an interface in egress direction */ interface TenGig 0/0/0/0
service-policy output egress_policy2 !



Router# show policy-map interface tenGigE 0/0/0/0

TenGigE0/0/0/0 direction input: Service Policy not installed

TenGigE0/0/0/0 output: egress_policy2

Class qos-1

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes)

(rate - kbps)

4867412/3598770345

0

2901271/2142905575

0

1966141/1455864770

0

:9

: N/A

: 10709

: N/A

: 1966141/1455864770

2901271/2142905575

0

: 0/0

-----

Class class-default

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes) 262482/237940215 97172/88070686 165310/149869529

(rate - kbps) 0 0 0

:8

: N/A

: 10714

: N/A

: 165310/149869529

97172/88070686

0

: 0/0

 ·  , 5  ·  , 2 
 · service-policy

  
  

Cisco NCS 5000   QoS  IOS XR  6.0.x 8

 QoS  

 

        QoS , 36 
 
      
· IP DiffServ  DSCP IP ToS  ·  2  CoS · IEEE 802.1Q QinQ CoS  · qos-group 
 qos-group 
, 11 
 
Cisco NCS 5001  Cisco NCS 5002    
 ·  ·  2  set  ·  8   
  

Cisco NCS 5000   QoS  IOS XR  6.0.x 9

In-Place 

 QoS  

1 1   2   3   4  
Router# configure Router(config)# policy-map policy1 Router(config-pmap)# class class1 /* Specify the marking action. Repeat the set command to specify another marking action */ Router(config-pmap-c)# set dscp 5 Router(config-pmap-c)# exit /* Repeat the above steps to configure the remaining classes of the policy-map*/ Router(config-pmap)# exit Router(config)# interface TenGigE 0/2/0/0 Router(config-if)# service-policy input policy1 Router(config-if)# no shutdown Router(config-if)# commit

policy-map policy1 class class1 set dscp 5 set cos 7 ! ----! end-policy-map
interface TenGigE 0/2/0/0 service-policy input policy1
!
 ·  , 9 
 · set cos · set dscp · set qos-group
In-Place 
In-Place QoS  1   QoS  
Cisco NCS 5000   QoS  IOS XR  6.0.x 10

 QoS  

 QoS  

   
    



·  QoS  0 
·  QoS   

 In-Place      show qos inconsistency     show policy-map targets TenGigabit   0/1/0/0     QoS  
router# show policy-map targets 1) Policymap: policy1 Type: qos
Targets (applied as main policy): TenGigabitEthernet0/1/0/0 output
Total targets: 1 Targets (applied as child policy): Total targets: 0
 QoS  

  

Cisco NCS 5000   QoS  IOS XR  6.0.x 11



 QoS  

 
 Cisco NCS 5001  Cisco NCS 5002    

   

set cos

07

  





set dscp

0  63





set qos-group

07





 
  
· QoS   IP precedence   DSCP  IP precedence 
IP Precedence  DSCP   discard-class  Weighted Random Early DetectionWRED; discard-class  
· QoS  MPLS  QoS  QoS  QoS  ID  MPLS      set qos-group 



QoS  ID   QoS  

· CoS  IEEE 802.1p/ ISL CoS   2  3  2 CoS      set cos 

Cisco NCS 5000   QoS  IOS XR  6.0.x 12

 QoS  

IP precedence  CoS 



·  
·  3    

IP precedence  CoS 
IP precedence  CoS  precedence   QoS   IP precedence    QoS 
 1IPv4    

IPv4   ToS 3  precedence ToS  8   ToS   QoS  LLQ  IP precedence  
 IP precedence 
IP  ToS  3  IP precedence  CoS   8      precedence IP precedence  6  7    RFC 791  
Cisco NCS 5000   QoS  IOS XR  6.0.x 13



 QoS  

IP precedence 
 Cisco NCS 5001  Cisco NCS 5002   IP precedence   precedence    IP precedence     precedence     precedence   precedence  IP precedence  IP precedence      LLQ IP precedence  

   
·  QoS    
·       QoS    QoS  QoS       QoS 
· QoS   QoS 
Cisco NCS 5000   QoS  IOS XR  6.0.x 14

 QoS  



QoS  
show qos interface  show policy-map interface   QoS    QoS  

Cisco NCS 5000   QoS  IOS XR  6.0.x 15



 QoS  

Cisco NCS 5000   QoS  IOS XR  6.0.x 16

2 



 QoS 
· , 17  · Modified Deficit Round Robin Queueing, 18  ·   , 22  ·  , 25  · Traffic Policing, 27 

     Cisco NCS 5001  Cisco NCS 5002   
· Modified Deficit Round Robin Queueing, 18  ·   , 22  ·  , 25  · Traffic Policing, 27 
  

Cisco NCS 5000   QoS  IOS XR  6.0.x 17

Modified Deficit Round Robin Queueing

 QoS 

Modified Deficit Round Robin Queueing
Modified Deficit Round RobinMDRR 8     class-based weighted fair queueing CBWFQ  MDRR  1   

MDRR  bandwidth remaining MDRR   BWRR BWRR  1 bandwidth remaining percent  100  
[Restrictions] · bandwidth remaining  

 · Cisco NCS 5001  Cisco NCS 5002   8  qos-group  class-default 
  1 1   2   3  4  
Router# configure Router(config)# policy-map egress_policy1 Router(config-pmap)# class class1 Router(config-pmap-c)# bandwidth remaining percent 2 Router(config-pmap-c# exit Router(config-pmap)# exit
Cisco NCS 5000   QoS  IOS XR  6.0.x 18

 QoS 



Router(config)# interface TenGigE 0/0/0/0 Router(config-if)# service-policy output egress_policy1 Router(config-if)# commit
/* Bandwidth remaining can also be configured as ratio, instead of percentage */ Router(config-pmap-c)# bandwidth remaining ratio 50


/* Class-map configuration */
class-map match-any class1 match qos-group 1 end-class-map
! class-map match-any class2
match qos-group 2 end-class-map ! class-map match-any class3 match qos-group 3 end-class-map ! class-map match-any class4 match qos-group 4 end-class-map ! class-map match-any class5 match qos-group 5 end-class-map ! class-map match-any class6 match qos-group 6 end-class-map ! class-map match-any class7 match qos-group 7 end-class-map
/* Policy-map configuration */
policy-map egress_policy1 class class1 bandwidth remaining percent 2 ! class class2 bandwidth remaining percent 3 ! class class3 priority level 1 ! class class4 bandwidth remaining percent 50 shape average 100 mbps ! class class5 bandwidth remaining percent 2 ! class class6 bandwidth remaining percent 25 ! class class7 bandwidth remaining percent 6 ! class class-default bandwidth remaining percent 12 ! end-policy-map

Cisco NCS 5000   QoS  IOS XR  6.0.x 19


interface TenGigE 0/0/0/0 service-policy output egress_policy1
!

/* Class-map configuration */
class-map match-any class1 match qos-group 1 end-class-map
! class-map match-any class2
match qos-group 2 end-class-map ! class-map match-any class3 match qos-group 3 end-class-map ! class-map match-any class4 match qos-group 4 end-class-map ! class-map match-any class5 match qos-group 5 end-class-map ! class-map match-any class6 match qos-group 6 end-class-map ! class-map match-any class7 match qos-group 7 end-class-map
/* Policy-map configuration */
policy-map egress_policy2 class class1 bandwidth remaining ratio 50 ! class class2 bandwidth remaining ratio 25 ! class class3 bandwidth remaining ratio 12 ! class class4 bandwidth remaining ratio 6 ! class class5 bandwidth remaining ratio 3 ! class class6 bandwidth remaining ratio 2 ! class class7 priority level 1 ! class class-default bandwidth remaining ratio 2 ! end-policy-map

 QoS 

Cisco NCS 5000   QoS  IOS XR  6.0.x 20

 QoS 




   
Inst-queue-len (cells)  Total Dropped 

Router# show policy-map interface tenGigE 0/0/0/0 TenGigE0/0/0/0 direction input: Service Policy not installed

TenGigE0/0/0/0 output: egress_policy1

Class class1

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes)

(rate - kbps)

17312125/12799683759

0

10774292/7953712189

0

6537833/4845971570

0

:9

: N/A

: 22981

: N/A

: 6537833/4845971570

10774292/7953712189

0

: 0/0

-----

Class class-default

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes) 941172/853166230 926830/840112420 14342/13053810

(rate - kbps) 0 0 0

:8

: N/A

:0

: N/A

: 14342/13053810

926830/840112420

0

: 0/0

 show 

Router# show policy-map interface tenGigE 0/0/0/0 TenGigE0/0/0/0 direction input: Service Policy not installed

TenGigE0/0/0/0 output: egress_policy2

Class class1

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes)

(rate - kbps)

4867412/3598770345

0

2901271/2142905575

0

1966141/1455864770

0

:9

: N/A

: 10709

: N/A

: 1966141/1455864770

2901271/2142905575

0

: 0/0

-----

Cisco NCS 5000   QoS  IOS XR  6.0.x 21

  

 QoS 

Class class-default

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes) 262482/237940215 97172/88070686 165310/149869529

(rate - kbps) 0 0 0

:8

: N/A

: 10714

: N/A

: 165310/149869529

97172/88070686

0

: 0/0

 · , 18 
 · bandwidth remaining

 
   PQ 1  PQ     PQ  
   
  PQLLQ   
·  1  ·   
 

Cisco NCS 5000   QoS  IOS XR  6.0.x 22

 QoS 

  

  
·  1  8  
· 8   1  1 

   LLQ  
1 1  
2  
3  
4  
Router# configure Router(config)# policy-map egress_policy1 Router(config-pmap)# class qos1 Router(config-pmap-c)# priority level 1 Router(config-pmap-c# exit Router(config-pmap)# exit Router(config)# interface TenGigE 0/0/0/0 Router(config-if)# service-policy output egress_policy1 Router(config-if)# no shutdown Router(config-if)# commit

/* Class-map configuration */
class-map match-any qos-1 match qos-group 1 end-class-map
! ------! class-map match-any qos-7
match qos-group 7 end-class-map
/* Policy-map configuration */
policy-map egress_policy2 class qos-1 priority level 1 ! class qos-2 bandwidth remaining ratio 1 ! class qos-3 bandwidth remaining ratio 1 ! class qos-4
Cisco NCS 5000   QoS  IOS XR  6.0.x
23

  

 QoS 

bandwidth remaining ratio 1 ! class qos-5
bandwidth remaining ratio 1 ! class qos-6
bandwidth remaining ratio 1 ! class qos-7
bandwidth remaining ratio 1 ! class class-default
bandwidth remaining ratio 2 ! end-policy-map


Inst-queue-len (cells)   0Total Dropped  

Router# show policy-map interface tenGigE 0/0/0/0 TenGigE0/0/0/0 direction input: Service Policy not installed

TenGigE0/0/0/0 output: egress_policy2

Class qos-1

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes)

(rate - kbps)

17312125/12799683759

0

17312125/12799683759

0

0/0

0

:9

: N/A

:0

: N/A

: 6537833/4845971570

10774292/7953712189

0

: 0/0

-----

Class class-default

Classification statistics

Matched

:

Transmitted

:

Total Dropped

:

Queueing statistics

Queue ID

High watermark

Inst-queue-len (cells)

Avg-queue-len

Taildropped(packets/bytes)

Queue(conform)

:

RED random drops(packets/bytes)

(packets/bytes) 941172/853166230 926830/840112420 14342/13053810

(rate - kbps) 0 0 0

:8

: N/A

:0

: N/A

: 14342/13053810

926830/840112420

0

: 0/0

 · , 17  ·  , 25  · , 18 

Cisco NCS 5000   QoS  IOS XR  6.0.x 24

 QoS 

 

 · priority
 
       
  
 
  1   1  
·   · Cisco NCS 5001  Cisco NCS 5002   8  qos-group 
class-default  · priority  shape average 
   1 1   2   3   4  
Router# configure Router(config)# policy-map egress_policy1 Router(config-pmap)# class c5 Router(config-pmap-c)# shape average 100 mbps Router(config-pmap-c# exit Router(config-pmap)# exit Router(config)# interface TenGigE 0/0/0/0 Router(config-if)# service-policy output egress_policy1

Cisco NCS 5000   QoS  IOS XR  6.0.x 25

 

 QoS 

Router(config-if)# commit

policy-map egress_policy1 class c1 bandwidth remaining percent 10 ! class c3 bandwidth remaining percent 10 ! class c5 bandwidth remaining percent 20 shape average 2 gbps ===> ! class c4 bandwidth remaining percent 5 ! class c2 priority level 1 ! class c7 bandwidth remaining percent 20 ! class c6 bandwidth remaining percent 15 ! class class-default ! end-policy-map

Router# show qos interface TenGigE 0/0/0/9 output
Mon Nov 16 15:41:15.738 UTC Interface: TenGigE0_0_0_9 output Bandwidth configured: 10000000 kbps Bandwidth programed: 10000000 kbps ANCP user configured: 0 kbps ANCP programed in HW: 0 kbps Port Shaper programed in HW: 0 kbps Policy: egress Total number of classes: 8 ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: c1 QueueID: 81 (Priority Normal) Committed Weight: 0 Excess Weight: 10 Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 10 ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: c3 QueueID: 83 (Priority Normal) Committed Weight: 0 Excess Weight: 10 Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 10 ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: c5<<<<<<<<<<< QueueID: 85 (Priority Normal) PIR: 2000128 kbps PBS: 25001875 bytes Committed Weight: 0 Excess Weight: 20 Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 20 ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: c4 QueueID: 84 (Priority Normal) Committed Weight: 0 Excess Weight: 5 Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 5 ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: c2 QueueID: 82 (Priority 1) ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: c7
Cisco NCS 5000   QoS  IOS XR  6.0.x 26

 QoS 

Traffic Policing

QueueID: 87 (Priority Normal) Committed Weight: 0 Excess Weight: 20 Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 20 ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: c6 QueueID: 86 (Priority Normal) Committed Weight: 0 Excess Weight: 15 Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 15 ---------------------------------------------------------------------Level: 0 Policy: egress_policy1 Class: class-default QueueID: 80 (Priority Normal) Committed Weight: 0 Excess Weight: 20 Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 20 ----------------------------------------------------------------------

· , 17 

· shape average
Traffic Policing
    CoS               
 CIR Bc , 28 
   , 28 
Cisco NCS 5001  Cisco NCS 5002     
·   2 SR2C , 31 
[Restrictions]
·    

Cisco NCS 5000   QoS  IOS XR  6.0.x 27



 QoS 

·  

  bc CIR  CIR  CIR     TCP    

 bc= CIR bps *1 / 8 * 0.1   100 0.1   20,00,000 bps  25,000  bc = 2000000 * 1/8 * 100/1000 bc = 25,000     CIR  show interface  bc   
 
      CoS     IP precedence  IP DSCP  

Cisco NCS 5000   QoS  IOS XR  6.0.x 28

 QoS 

 

      , 9 
  

    
· set-qos-group · set-dscp · set-cos IPMPLS 2    conform-action  exceed-action   2   
   set qos-group 
 
Cisco NCS 5001  Cisco NCS 5002    
   1 1   2   3   4  5 

Cisco NCS 5000   QoS  IOS XR  6.0.x 29

 

 QoS 

6  
Router# configure Router(config)# policy-map ingress_policy1 Router(config-pmap)# class ic1 Router(config-pmap-c)# set qos-group 5 Router(config-pmap-c)# police rate 5 gbps Router(config-pmap-c-police)# conform-action set qos-group 4 Router(config-pmap-c-police)# conform-action set dscp 3 Router(config-pmap-c-police)# exceed-action set qos-group 6 Router(config-pmap-c-police)# exit Router(config-pmap-c)# exit Router(config-pmap)# exit Router(config)# interface TenGigE 0/0/0/5 Router(config-if)# service-policy input ingress_policy1 Router(config-if)# commit

policy-map ingress class ic1 set qos-group 5 police rate 5 gbps conform-action set qos-group 4 conform-action set dscp 3 exceed-action set qos-group 6 ! ! class class-default ! end-policy-map
interface TenGigE 0/0/0/5 service-policy input ingress_policy1
!

Router# show qos interface TenGigE 0/0/0/5 input
Interface: TenGigE0_0_0_5 input Bandwidth configured: 10000000 kbps Bandwidth programed: 10000000 kbps ANCP user configured: 0 kbps ANCP programed in HW: 0 kbps Port Shaper programed in HW: 0 kbps Policy: ingress Total number of classes: 2 ---------------------------------------------------------------------Level: 0 Policy: ingress_policy1 Class: ic1 QueueID: 0 (Port Default) Policer Profile: 112 (Single) Conform: 5000000 kbps (5 gbps) Burst: 62500000 bytes (0 Default) Child Policer Conform: set qos-grp 4 set dscp 3 Child Policer Exceed: set qos-grp 6 ---------------------------------------------------------------------Level: 0 Policy: ingress_policy1 Class: class-default QueueID: 0 (Port Default)

·  , 28 

Cisco NCS 5000   QoS  IOS XR  6.0.x 30

 QoS 

 

 · conform-action · exceed-action · police rate
 
 2    2 SR2C 2 conform  exceed  
 2 2  

CIR Tc   Bc   B  Tc   CIR   B  Tc   
Cisco NCS 5000   QoS  IOS XR  6.0.x 31

  2 

 QoS 

  2 
    CIR   

 2 SR2C  
1 1  
2  
3  
4 
5 
6  
Router# configure Router(config)# policy-map ingress_policy1 Router(config-pmap)# class class1 Router(config-pmap-c)# police rate 100 mbps burst 6000 bytes Router(config-pmap-c-police)# conform-action set qos-group 2 Router(config-pmap-c-police)# conform-action set cos 2 Router(config-pmap-c-police)# exceed-action set qos-group 3 Router(config-pmap-c-police)# exceed-action set cos 3 Router(config-pmap-c-police)# exit Router(config-pmap-c)# exit Router(config-pmap)# exit Router(config)# interface0/0/0/14 Router(config-if)# service-policy input policy1 Router(config-if)# no shutdown Router(config-if)# commit

/* class-map configuration */ class-map match-any class1
match dscp 10 end-class-map
/* Traffic policing configuration */ policy-map ingress_policy1
class class1 police rate 100 mbps burst 6000 bytes conform-action set qos-group 2 conform-action set cos 2 exceed-action set qos-group 3 exceed-action set cos 3 !
Cisco NCS 5000   QoS  IOS XR  6.0.x 32

 QoS 

  2 

! class class-default ! end-policy-map
interface TenGigE 0/0/0/14 service-policy input ingress_policy1
!



Router# show policy-map interface TenGigE 0/0/0/14 input TenGigE0/0/0/14 input: ingress_policy1

Class class1

Classification statistics

Matched

:

Transmitted

: N/A

Total Dropped

:

Policing statistics

Policed(conform) :

Policed(exceed)

:

Policed(violate) :

Policed and dropped :

Class class-default

Classification statistics

Matched

:

Transmitted

: N/A

Total Dropped

: N/A

(packets/bytes)

(rate - kbps)

410861/308109455

0

0/0 (packets/bytes)
27262/20543870 383599/287565585
0/0 0/0

0 (rate - kbps)
0 0 0

(packets/bytes) 0/0

(rate - kbps) 0

 ·  , 31 
 · conform-action · exceed-action · police rate · policy-map · service-policy

Cisco NCS 5000   QoS  IOS XR  6.0.x 33

  2 

 QoS 

Cisco NCS 5000   QoS  IOS XR  6.0.x 34

3 



  QoS 
·   QoS, 35 
  QoS
1  1  Cisco NCS 5001  Cisco NCS 5002    VLAN    QoS     QoS     L2VPN and Ethernet Services Configuration Guide for the Cisco NCS 5000 Series Routers, IOS XR Release 6.0.xConfiguring Link Bundles 
 
  3   1    Cisco NCS 5001  Cisco NCS 5002      /  / 
  3     3   IPv4    EFP 3    IPv4 

Cisco NCS 5000   QoS  IOS XR  6.0.x 35

  QoS 

  QoS 

  IPv4    MAC SA/DA 
  QoS 
QoS  

· QoS      
· QoS      
·          10 Mbps    2     10 Mbps   2     20 Mbps 
·  
   QoS  1   2    3  
 12  3   , 7   4   5   
/* Configure a class-map */ Router# configure Router(config)# class-map match-any c1 Router(config-cmap)# match dscp af11 Router(config-cmap)# match precedence 7 Router(config-cmap)# end-class-map Router(config)# commit

Cisco NCS 5000   QoS  IOS XR  6.0.x 36

  QoS 

  QoS 

/* Configure a policy-map and specify the police rate */ Router(config)# policy-map p1 Router(config-pmap)# class c1 Router(config-pmap-c)# set qos-group 5 Router(config-pmap-c)# police rate percent 50 burst 1600 bytes Router(config-pmap-c-police)# exit Router(config-pmap-c)# exit Router(config-pmap)# class class-default Router(config-pmap)# end-policy-map Router(config)# commit
/* Configure Ether-Bundle and apply traffic policy */ Router(config)# interface Bundle-Ether1 Router(config-if)# service-policy input p1 Router(config-if)# ipv4 address 192.1.1.1 255.255.255.0 Router(config-if)# mac-address 1212.1212.1212 (optional) Router(config-if)# bundle minimum-active links 1 Router(config-if)# commit


     

/* Class-map */ configure
class-map match-any c1 match dscp af11 match precedence 7 end-class-map
!
/* Policy-map */ policy-map p1
class c1 set qos-group 5 police rate percent 50 burst 1600 bytes !
! class class-default ! end-policy-map !
/* Ether Bundle */ interface Bundle-Ether1
service-policy input p1 ipv4 address 192.1.1.1 255.255.255.0 mac-address 1212.1212.1212 bundle minimum-active links 1 !

 ·  UP 

router# show bundle bundle-ether 1
Bundle-Ether1 Status: Local links <active/standby/configured>: Local bandwidth <effective/available>:

Up 2/0/3 20000000 (20000000) kbps

Cisco NCS 5000   QoS  IOS XR  6.0.x 37

  QoS 

  QoS 

MAC address (source): Inter-chassis link: Minimum active links / bandwidth: Maximum active links: Wait while timer: Load balancing: LACP:
Flap suppression timer: Cisco extensions: Non-revertive: mLACP: IPv4 BFD:

1212.1212.1212 (Configured) No 1 / 1 kbps 32 2000 ms Default Not operational Off Disabled Disabled Not configured Not configured

Port -------------------Te0/0/0/1
Link is Active Te0/0/0/2
Link is down Te0/0/0/7

Device --------------Local
Local
Local

State ----------Active
Configured
Active

Port ID -------------0x8000, 0x0000
0x8000, 0x0000
0x8000, 0x0000

B/W, kbps ----------
10000000
10000000
10000000

·   

router# show policy-map interface Bundle-Ether 1 input member TenGigE0/0/0/7

Interface:Bundle-Ether1 Member:TenGigE0/0/0/7 input: p1

Class c1

Classification statistics

Matched

:

Transmitted

: N/A

Total Dropped

:

Policing statistics

Policed(conform) :

Policed(exceed)

:

Policed(violate) :

Policed and dropped :

Class class-default

Classification statistics

Matched

:

Transmitted

: N/A

Total Dropped

: N/A

(packets/bytes) 2759/176576
0/0 (packets/bytes)
2759/176576 0/0 0/0 0/0
(packets/bytes) 255/16372

(rate - kbps) 0
0 (rate - kbps)
0 0 0
(rate - kbps) 0

·   1  2 

router# show policy-map interface bundle-ether 1

Tue Feb 11 11:57:22.532 UTC

Bundle-Ether1 input: p1

Class c1

Classification statistics

(packets/bytes)

(rate - kbps)

Matched

:

7588/485632

0

Transmitted

: N/A

Total Dropped

:

0/0

0

Policing statistics

(packets/bytes)

(rate - kbps)

Policed(conform) :

7588/485632

0

Policed(exceed)

:

0/0

0

Policed(violate) :

0/0

0

Policed and dropped :

0/0

Class class-default

Classification statistics

(packets/bytes)

(rate - kbps)

Matched

:

257/16552

0

Transmitted

: N/A

Total Dropped

: N/A

Bundle-Ether1 direction output: Service Policy not installed

Cisco NCS 5000   QoS  IOS XR  6.0.x 38

  QoS 
 ·   QoS, 35 
 · bundle maximu-active links · interface Bundle-Ether

  QoS 

Cisco NCS 5000   QoS  IOS XR  6.0.x 39

  QoS 

  QoS 

Cisco NCS 5000   QoS  IOS XR  6.0.x 40


XEP 4.9 build 20070312; modified using iText 2.1.7 by 1T3XT