RE: RE : Class-map order in a service policy?

From: Mustafa Bayramov (ICT/IT) (mustafa@azercell.com)
Date: Mon Jul 21 2003 - 15:14:30 GMT-3


Your secondary map-class won't work until you will have some congestion on
the link.

If you have no congestion on the link you wouldn't see hit count for ACL
that match telnet traffic you would see only hit count for first class map
under policy-map.

Try this

Set 1 percent for class IP
Set 1 percent for class telnet
I assume that you have clock rate 64/128 kbps.

Then send form this router ping with packet size more then 3000.
and simultaneously telnet to other end then look to you ACL you will see hit
count for both ACL ( 100 , 101 ).

Note: If you are using more then 64/128 kbps you will need traffic generator
because you should create congestion on the link.

Regards

Mustafa M Bayramov

CISSP
CCNP,CCDP,Cisco Security Specialist
Network engineer and security analyst

"I know nothing except the fact of my ignorance." Socrates

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Roberto Adjakou
Sent: Saturday, July 19, 2003 12:14 PM
To: Timothy Snow; ccielab@groupstudy.com
Subject: RE : Class-map order in a service policy?

1. Check your classes.
2. Your policy is applied for outbound traffic. So how can you test
telnet class? Try to telnet host connected via you serial interface.

Cordialement/Best regards;

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
Roberto Adjakou
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

-----Message d'origine-----
De : Timothy Snow [mailto:timsnow@cogeco.ca]
Envoyi : samedi 19 juillet 2003 05:01
@ : ccielab@groupstudy.com
Objet : Class-map order in a service policy?

I have a question regarding the order of class-maps? Does it make a
difference in a service policy. My task was to give IP traffic a
bandwith of 40% of the link while telnet gets 10%. I know that it won't
really kick in until there is contention for the link but the "show
policy-map int s 0" shows that traffic is hitting the IP class but not
the telnet class even though I have telnet sessions active.

Could anyone elaborate on if there is a structured order?

interface Serial0
 ip address 150.20.0.5 255.255.255.224
 encapsulation frame-relay
 service-policy output foo
 no arp frame-relay
 frame-relay map ip 150.20.0.2 504
 frame-relay map ip 150.20.0.4 504 broadcast
 frame-relay map ip 150.20.0.6 504
 no frame-relay inverse-arp
 frame-relay lmi-type cisco

policy-map foo
  class ip
   bandwidth percent 40
  class telnet
   bandwidth percent 10
  class class-default
   fair-queue

access-list 100 permit ip any any
access-list 101 permit tcp any any eq telnet log

r5>sh policy-map int s 0

 Serial0

  Service-policy output: foo

    Class-map: ip (match-all)
      504 packets, 210843 bytes
      5 minute offered rate 16000 bps, drop rate 0 bps
      Match: access-group 100
      Weighted Fair Queueing
        Output Queue: Conversation 265
        Bandwidth 40 (%) Max Threshold 64 (packets)
        (pkts matched/bytes matched) 427/204125
        (depth/total drops/no-buffer drops) 0/0/0

    Class-map: telnet (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: access-group 101
      Weighted Fair Queueing
        Output Queue: Conversation 266
        Bandwidth 10 (%) 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)
      35 packets, 455 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any
      Weighted Fair Queueing
        Flow Based Fair Queueing
        Maximum Number of Hashed Queues 256
        (total queued/total drops/no-buffer drops) 0/0/0



This archive was generated by hypermail 2.1.4 : Wed Aug 06 2003 - 06:52:47 GMT-3