cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
649
Views
0
Helpful
4
Replies

Question on embedded service policy

prakkdangc
Level 1
Level 1

Hi,

I have a WAN QoS configuration that includes an embedded service policy for marking routing protocol traffic. I am not sure it is working. The basic config is:

class-map match-any ROUTING-PROTOCOLS

     match protocol bgp

     match protocol eigrp

policy-map MARK-ROUTING-PROTOCOLS

     class ROUTING-PROTOCOLS

     set ip dscp cs6

policy-map WAN-COS

     class Burst    (not shown here)

     bandwidth percent 40

     set ip dscp af31

     service-policy MARK-ROUTING-PROTOCOLS

interface s0/0

     service-policy output WAN-COS

When I do a show policy-map interface command, the embedded service-policy section shows no activity:

Serial0/0

  Service-policy output: WAN-COS

    queue stats for all priority classes:
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 114832397/23070163025

Class-map: Burst (match-any)
      2201 packets, 456691 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: access-group name MULTICAST_ACL
        0 packets, 0 bytes
        5 minute rate 0 bps
      Match: access-group name VTC-Codecs_acl
        2201 packets, 456691 bytes
        5 minute rate 0 bps
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 2201/456691
      bandwidth remaining 40% (380000 kbps)
      QoS Set
        dscp af31
          Packets marked 2201

      Service-policy : MARK-ROUTING-PROTOCOLS

        Class-map: ROUTING-PROTOCOLS (match-any)
          0 packets, 0 bytes
          5 minute offered rate 0 bps, drop rate 0 bps
          Match: protocol bgp
            0 packets, 0 bytes
            5 minute rate 0 bps
          Match: protocol eigrp
            0 packets, 0 bytes

Sooo.. is this normal when using an embedded service-policy?

Also, the match protocol statements in the first class-map assume that NBAR is available, right?

Thanks

Dave

4 Replies 4

Laurent Aubert
Cisco Employee
Cisco Employee

Hi Dave,

IOS already marked by default routing protocol packets with IP Prec 6. So do not worry about it ;-)

If you want to allocate a minimum bw for your control-plane, your  configuration should look like this one:

class-map match-any ROUTING-PROTOCOLS

     match ip prec 6

!

policy-map WAN-COS

     class Burst    (not shown here)

     bandwidth percent 40

     class ROUTING-PROTOCOLS

     bandwidth percent 10

!

HTH

Laurent.

Thanks Laurent. I guess I still have the question about why the default class-map under the embedded service-policy was the only part that had any matches.

Dave

Dave,

Not sure to follow you as I don't see any default class-map in your outputs.

Thanks

Laurent.

Sorry Laurent,

Here you go. This is actually another router with the same issue (question). The embedded service policy that marks routing protocol traffic has no matches, including the default class-map.

Dave

Hssi1/0

  Service-policy output: IPWAN-COS

    Class-map: RealTime (match-all)
      1654250 packets, 106460907 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: access-group name VOIP_acl
      Queueing
        Strict Priority
        Output Queue: Conversation 264
        Bandwidth 256 (kbps) Burst 6400 (Bytes)
        (pkts matched/bytes matched) 11200/995018
        (total drops/bytes drops) 0/0
      QoS Set
        dscp ef
          Packets marked 1654250

    Class-map: BurstyHi (match-any)
      0 packets, 0 bytes
      30 second offered rate 0 bps, drop rate 0 bps
      Match: access-group name IPWAN_MULTICAST_ACL
        0 packets, 0 bytes
        30 second rate 0 bps
      Match: access-group name VTC-Codecs_acl
        0 packets, 0 bytes
        30 second rate 0 bps
      Queueing
        Output Queue: Conversation 265
        Bandwidth remaining 40 (%)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0
      QoS Set
        dscp af31
          Packets marked 0

      Service-policy : MARK-ROUTING-PROTOCOLS

        Class-map: ROUTING-PROTOCOLS (match-any)
          0 packets, 0 bytes
          30 second offered rate 0 bps, drop rate 0 bps
          Match: protocol bgp
            0 packets, 0 bytes
            30 second rate 0 bps
          Match: protocol eigrp
            0 packets, 0 bytes
            30 second rate 0 bps
          QoS Set
            dscp cs6
              Packets marked 0

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

    Class-map: BurstyLo (match-any)
      7573667 packets, 397898809 bytes
      30 second offered rate 1000 bps, drop rate 0 bps
      Match: ip dscp af21 (18)
        2 packets, 96 bytes
        30 second rate 0 bps
      Match: access-group name VoIPControl_acl
        7573666 packets, 397898757 bytes
        30 second rate 1000 bps
      QoS Set
        dscp af21
          Packets marked 7573668
      Queueing
        Output Queue: Conversation 266
        Bandwidth remaining 30 (%)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 476913/29649821
        (depth/total drops/no-buffer drops) 0/0/0

    Class-map: class-default (match-any)
      58526135 packets, 19523261876 bytes
      30 second offered rate 47000 bps, drop rate 0 bps
      Match: any
      Queueing
        Output Queue: Conversation 267
        Bandwidth remaining 30 (%)
        (pkts matched/bytes matched) 5928002/6088003136
        (depth/total drops/no-buffer drops) 0/5407/0
         exponential weight: 9
         mean queue depth: 0

  class    Transmitted      Random drop      Tail drop    Minimum Maximum  Mark
           pkts/bytes       pkts/bytes       pkts/bytes    thresh  thresh  prob
      0 58520699/19517987431   4910/5063267      497/207506      20      40  1/10
      1       0/0               0/0              0/0           22      40  1/10
      2       0/0               0/0              0/0           24      40  1/10
      3       0/0               0/0              0/0           26      40  1/10
      4       0/0               0/0              0/0           28      40  1/10
      5       0/0               0/0              0/0           30      40  1/10
      6       0/0               0/0              0/0           32      40  1/10
      7       0/0               0/0              0/0           34      40  1/10
   rsvp       0/0               0/0              0/0           36      40  1/10

      QoS Set
        dscp default
          Packets marked 58317635

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