cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
853
Views
11
Helpful
12
Replies

whats wrong with my config ? why i cant gurantee BW with policymap ?

Dr.X
Level 2
Level 2

hi ,

i want to gurantee bw of 20 Mega  to one single ip

i want to do it by policymap

here is my config below  , plz tell me wts wrong and why it didnt succed :

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

policy-map zwifi

class zwifi

   police cir 20480000 bc 3840000 be 7680000

    bandwidth 20480

class class-default

ip access-list extended zwifi

permit ip host x.x.66.246 any

class-map match-all zwifi

match access-group name zwifi

int Gi0/1

service-policy output  zwifi

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

i applied this configs to the exit router which is th bgp router towords the internet

==============BGP Router Gi0/1========================internet

i applied the policy on Gi0/1

but  the bw is not guranteed , im using router 7604 and ios of

c7200p-advipservicesk9-mz.124-24.T4.bin

plz advice , i just only want to gurantee 20 Mega to this single ip ,  note that this single ip is a PAT ( port address translation)  for many users .

1 Accepted Solution

Accepted Solutions

Hi,

yes it looks like it is working.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

View solution in original post

12 Replies 12

cadet alain
VIP Alumni
VIP Alumni

Hi,

Why don't you apply it inbound on the ingress interface  ?

Regards.

alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

hi ,

u mean to apply

serivepolicy inbound zwifi ???

hi ,

i tried to apply it inbound at the ingree interface  , here is the reuslt :

7200(config-if)#service-policy input zwifi

Weighted Fair Queueing feature not supported in input policy.

Weighted Fair Queueing feature not supported in input policy.

???

Hi,

yes sorry a CBWFQ policy can't be applied inbound. Why are you policing and doing CBWFQ at the same time ?

You want this IP to have 20 Megs when congestion or you want to limit this IP to 20 Megs max in any case ?

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

i want to gurantee 20 mega when congestion

may the command police cir  no need to be written , actually

i dont know .

again , my goal is to gurantee 20 mega when congestion .

is my config above correct ?

Hi,

then only issue the bandwidth command and you'll have to apply outbound. But CBWFQ will occur after NAT process so you'll have to match on the natted IP which in this case will not match only for this host.

So i would mark the traffic from this user in a Qos group and then apply the CBWFQ  matching this marking.

1° marking

class-map  USER

match access-group name zwifi

policy-map MARK_USER

class USER

set qos-group 1

2° cbwfq

no policy-map zwifi

class-map QOS_GROUP

match qos-group 1

policy-map zwifi

class QOS_GROUP

bandwidth 20480

3° apply these policies

int x/x( ingress)

service-policy input MARK_USER

int x/x(egress)

service-policy output zwifi

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

hi Alian ,

ive applied the config you wrote above .

now there is no congestion  , i will test it will my bw get congestion  and i will give u a reply here about the result .

another question ,

is there any verifying commands  about commands above ??? i mean can i see from the router if a gurantee was occured or qos applied ??

regards

Hi,

show policy-map interface

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

hi , plz have a look here 

is the config is giving correct result ???

7200Gateway#sh policy-map interface gigabitEthernet 0/3

GigabitEthernet0/3

  Service-policy output: zwifi

    Class-map: qosgroup (match-all)

      238791 packets, 34158779 bytes

      30 second offered rate 287000 bps, drop rate 0 bps

      Match: qos-group 1

      Queueing

      queue limit 64 packets

      (queue depth/total drops/no-buffer drops) 0/0/0

      (pkts output/bytes output) 238791/34158779

      bandwidth 20480 kbps

    Class-map: class-default (match-any)

      15861955 packets, 2589008949 bytes

      30 second offered rate 26847000 bps, drop rate 0 bps

      Match: any

      queue limit 64 packets

      (queue depth/total drops/no-buffer drops) 0/0/0

      (pkts output/bytes output) 15862121/2589038639

7200Gateway#sh policy-map interface gigabitEthernet 0/1

GigabitEthernet0/1

  Service-policy input: markuser

    Class-map: user (match-all)

      369117 packets, 43904870 bytes

      30 second offered rate 409000 bps, drop rate 0 bps

      Match: access-group name zwifi

      QoS Set

        qos-group 1

          Packets marked 369117

    Class-map: class-default (match-any)

      68909433 packets, 12116550081 bytes

      30 second offered rate 122043000 bps, drop rate 0 bps

      Match: any

Hi,

yes it looks like it is working.

Regards.

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

hi Alian ,

i will give u a reply when congestion occur

regards

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card