Simple Port Shaper - ASR9K

From DocWiki

(Redirected from Simple Port Shaper)
Jump to: navigation, search

This policy map applies a 30 Mbps shaper mentioned here: Understanding ASR9K QoS

Contents

Config

Policy Maps

policy-map POLICY-MAP-100-PERCENT-BANDWIDTH-PARENT
 class class-default
  bandwidth percent 100 
 !
end-policy-map

!
policy-map POLICY-MAP-SHAPE-TO-30MB
 class class-default
  service-policy POLICY-MAP-100-PERCENT-BANDWIDTH-PARENT
  shape average 30 mbps 
!
end-policy-map

Interface

interface GigabitEthernet0/1/0/0
 service-policy output POLICY-MAP-SHAPE-TO-30MB
 ipv4 address 10.0.0.1 255.255.255.0

Verification

Interface counters

RP/0/RSP0/CPU0:ASR9000# show interfaces gigabitEthernet 0/1/0/0
GigabitEthernet0/1/0/0 is up, line protocol is up 
  Interface state transitions: 9
  Hardware is GigabitEthernet, address is 6c9c.ed19.6ee0 (bia 6c9c.ed19.6ee0)
  Internet address is 10.0.0.1/24
  MTU 1514 bytes, BW 1000000 Kbit (Max: 1000000 Kbit)
     reliability 255/255, txload 7/255, rxload 3/255
  Encapsulation ARPA,
  Full-duplex, 1000Mb/s, THD, link type is force-up
  output flow control is off, input flow control is off
  loopback not set,
  ARP type ARPA, ARP timeout 04:00:00
  Last input 00:00:00, output 00:00:00
  Last clearing of "show interface" counters never
  30 second input rate 15191000 bits/sec, 4130 packets/sec
  30 second output rate 30416000 bits/sec, 5210 packets/sec
     7779613926 packets input, 7826624235836 bytes, 8 total input drops
     463386 drops for unrecognized upper-level protocol
     Received 8 broadcast packets, 239097 multicast packets
              0 runts, 0 giants, 0 throttles, 0 parity
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
     4775150923 packets output, 3285091916710 bytes, 2900 total output drops
     Output 128 broadcast packets, 25647 multicast packets
     0 output errors, 0 underruns, 0 applique, 0 resets
     0 output buffer failures, 0 output buffers swapped out
     9 carrier transitions

Policy Map

RP/0/RSP0/CPU0:ASR9000# show policy-map interface g0/1/0/0
GigabitEthernet0/1/0/0 direction input: Service Policy not installed

GigabitEthernet0/1/0/0 output: POLICY-MAP-SHAPE-TO-30MB

Class class-default
  Classification statistics          (packets/bytes)     (rate - kbps)
    Matched             :              656126/489076642            32640
    Transmitted         :              624470/455977555            30027
    Total Dropped       :               31356/32817916             2601

  Policy POLICY-MAP-100-PERCENT-BANDWIDTH-PARENT Class class-default
    Classification statistics          (packets/bytes)     (rate - kbps)
      Matched             :              656126/489076642            32640
      Transmitted         :              624470/455977555            30027
      Total Dropped       :               31356/32817916             2601
    Queueing statistics
      Queue ID                             : 642 
      High watermark                       : N/A 
      Inst-queue-len  (packets)            : 721
      Avg-queue-len                        : N/A 
      Taildropped(packets/bytes)           : 31356/32817916
      Queue(conform)      :                1052/1001755              67
      Queue(exceed)       :              623418/454975800            29960
      RED random drops(packets/bytes)      : 0/0

Rating: 5.0/5 (2 votes cast)

Personal tools