RE: question for nested service policy and bandwidth statement

From: Chris Lewis \(chrlewis\) (chrlewis@cisco.com)
Date: Tue Aug 02 2005 - 16:17:07 GMT-3


I would recommend you configure these things on a router to check them
out. With the config you have, you'll probably get an error like this
one:

Router1(config-if)#service out all
CBWFQ : Hierarchy supported only if shaping is configured in this class

My recommendation is to get used to using the show policy-map interface
command and it will tell you the bandwidth percent and rate for the
class, once the parser accepts the config for a service policy on the
interface.

Chris

Router1(config-if)#do sho policy int
 Ethernet0/0

  Service-policy output: all

    Class-map: tcp (match-any)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: access-group 100
        0 packets, 0 bytes
        5 minute rate 0 bps
      Queueing
        Output Queue: Conversation 265
        Bandwidth 50 (%)
        Bandwidth 5000 (kbps) Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
      Traffic Shaping
           Target/Average Byte Sustain Excess Interval
Increment
             Rate Limit bits/int bits/int (ms) (bytes)

          5000000/5000000 31250 125000 125000 25 15625

        Adapt Queue Packets Bytes Packets Bytes Shaping
        Active Depth Delayed Delayed Active
        - 0 0 0 0 0 no

      Service-policy : telnet

        Class-map: telnet (match-any)
          0 packets, 0 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: access-group 101
            0 packets, 0 bytes
            5 minute rate 0 bps
          Queueing
            Output Queue: Conversation 137
            Bandwidth 10 (%)
            Bandwidth 500 (kbps) Max Threshold 64 (packets)
            (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0

        Class-map: class-default (match-any)
          0 packets, 0 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: any

    Class-map: class-default (match-any)
      5 packets, 580 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Edwards, Andrew M
Sent: Tuesday, August 02, 2005 1:23 PM
To: ccielab@groupstudy.com
Subject: Re: question for nested service policy and bandwidth statement

I want to make sure I understand nested policies.
If I have a nested service policy with bandwidth allocations, and there
is congestion on the interface, does the child allocation percent become
a percentage of the parent allocation?
As an example, if there is congestion on f0/0, will telnet get 10% of
the 50% of tcp guaranteed bandwidth? Or, will tcp get 50Mbps and telnet
get 5Mbps?
-------------
Access-list 100 permit tcp any any
Class-map match-any telnet
 match protocol telnet
Class-map match-any tcp
 match access-group 100

Policy-map telnet
 class telnet
   band percent 10

Policy-map all
 Class tcp
   bandwidth percent 50
   service telnet

Int f0/0
Service-policy out all



This archive was generated by hypermail 2.1.4 : Sun Sep 04 2005 - 17:01:18 GMT-3