Tuesday, September 28, 2021

QoS on Cisco Router (IOS/IOS-XE/IOS-XR)

 for police:



https://www.ccexpert.us/qos-implementing/available-in-cisco-ios-release-1224t.html
http://web.archive.org/web/20210928055220/https://www.ccexpert.us/qos-implementing/available-in-cisco-ios-release-1224t.html


单速率单桶:


单速率双桶:





双速率双桶:
 

https://blog.csdn.net/gongxifacai_believe/article/details/89716997

http://web.archive.org/web/20210928060201/https://blog.csdn.net/gongxifacai_believe/article/details/89716997


configuration QoS On IOS-XR router,

policy-map sdfs

 class CORE_REAL_TIME_CM

  police rate percent 10 burst 10000 bytes peak-rate percent 20 peak-burst 20000 bytes 


CIR: rate                    Committed Information Rate

BC: burst                 Burst size (BC)

BE: peak-burst        Excess Burst size (BE)

PIR: peak-rate          Peak Information Rate

https://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k-r6-2/qos/configuration/guide/b-qos-cg-asr9000-62x/b-qos-cg-asr9000-62x_chapter_0101.html




RP/0/RSP0/CPU0:ASR9001-K#sh qos interface tenGigE 0/0/2/3 output 
Sun Sep 26 16:49:23.239 UTC
Interface: TenGigE0_0_2_3 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: fanan Total number of classes: 5
----------------------------------------------------------------------
Level: 0 Policy: anan Class: dscp40
QueueID: 65577 (Priority 2)
Queue Limit: 54 kbytes Abs-Index: 17 Template: 0 Curve: 6
Shape CIR Profile: INVALID
Policer Profile: 56 (SrTCM)
Conform: 4000 kbps (4000 kbps) Burst: 500000 bytes (750 kbytes)
Peak Burst: 500000 bytes (1500 kbytes)
Child Policer Conform: TX
Child Policer Exceed: TX
Child Policer Violate: DROP
----------------------------------------------------------------------
Level: 0 Policy: anan Class: dscp41
QueueID: 65579 (Priority 3)
Queue Limit: 16 kbytes Abs-Index: 8 Template: 0 Curve: 6
Shape CIR Profile: INVALID
Policer Profile: 57 (SrTCM)
Conform: 1000 kbps (1000 kbps) Burst: 12500 bytes (0 Default)   <<<<<<<<
Peak Burst: 12500 bytes (0 Default)
Child Policer Conform: TX
Child Policer Exceed: TX
Child Policer Violate: DROP
----------------------------------------------------------------------
Level: 0 Policy: anan Class: dscp45
QueueID: 65578 (class-default)
Policer Profile: 58 (TrTCM)
Conform: 5000 kbps (5000 kbps) Burst: 62500 bytes (0 Default)
Peak: 6000 kbps (6000 kbps) Burst: 75000 bytes (0 Default)
Child Policer Conform: TX
Child Policer Exceed: TX
Child Policer Violate: DROP
----------------------------------------------------------------------
Level: 0 Policy: anan Class: dscp42
QueueID: 65578 (class-default)
Policer Profile: 59 (Single)
Conform: 2000 kbps (2000000 bps) Burst: 25000 bytes (0 Default)
Child Policer Conform: TX
Child Policer Exceed: TX
Child Policer Violate: TX
----------------------------------------------------------------------
Level: 0 Policy: anan Class: class-default
QueueID: 65578 (Priority Normal)
Queue Limit: 126976 kbytes Abs-Index: 179 Template: 0 Curve: 0
Shape CIR Profile: INVALID
WFQ Profile: 1/9 Committed Weight: 10 Excess Weight: 10
Bandwidth: 0 kbps, BW sum for Level 0: 0 kbps, Excess Ratio: 1
----------------------------------------------------------------------
policy-map anan
 class dscp40
  police rate 4000 kbps burst 750 kbytes peak-burst 1500 kbytes 
   conform-action transmit
   exceed-action transmit
   violate-action drop
  !
  priority level 2 
 !
 class dscp41
  police rate 1000 kbps 
   conform-action transmit
   exceed-action transmit
   violate-action drop
  !
  priority level 3 
 !
 class dscp45
  police rate 5000 kbps peak-rate 6000 kbps 
   conform-action transmit
   exceed-action transmit
   violate-action drop
  !
 !
 class dscp42
  police rate 2000000 bps 
   conform-action transmit
   exceed-action transmit
  !
 !
 class class-default
 !
 end-policy-map
SrTCM:Single Rate Three Color Marker
TrTCM:Two Rate Three Color Marker

No comments:

Post a Comment