cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
692
Views
0
Helpful
0
Replies
Highlighted
Beginner

QPPB in VRF on ASR9K

Hi everyone,

I was wondering if anyone has used QPPB on a interface that is in a VRF on the ASR9K

I have setup my BGP Policy and applied it to BGP under the vrf instance. I have confirmed in CEF that prefixes that match the community has the right classification.

0.0.0.0/0, version 9451648, proxy default, internal 0x4000021 (ptr 0xad3a0294) [1], 0x0 (0x0), 0x0 (0x0)

Updated Nov 25 22:38:10.135

Prefix Len 0, traffic index 0, precedence routine (0), priority 3

IP Precedence: 3

   via xxxxx, 3 dependencies, recursive [flags 0x0]

    path-idx 0 [0xad3c2884 0x0]

    next hop xxxxx

I am classifying traffic from the inside outbound as it enters the inside interface as follows

ipv4 bgp policy propagation input ip-precedence destination

I have applied an input shaping policy under the interface so that all traffic that matches Prec 3 is shaped down to 25M as it enters the interface but I’m not seeing any matches on the policy. If I apply the same policy as egress on the opposite side of the router as the traffic leaves I can see the matches.

This would indicate that my classification is working but the shaping is applied before qppb classifies the traffic instead of after it is classified.

Here is the config

route-policy BGP-QPPB-SET-QOS-PREC

  if community matches-any (100:103) then

    set ip-precedence 3

  else

    if community matches-any (100:102) then

      set ip-precedence 2

    else

      set ip-precedence 0

    endif

  endif

  end-policy

!

router bgp 100

  vrf Internet

  address-family ipv4 unicast

   table-policy BGP-QPPB-SET-QOS-PREC

!

interface GigabitEthernet0/3/0/2.2249

description Outside Interface

  vrf Internet

  ipv4 bgp policy propagation input ip-precedence source

!

interface TenGigE0/3/0/0.993

description Inside Interface

service-policy input CUST-25INTL-100NATL

  vrf Internet

  ipv4 mtu 1500

  ipv4 bgp policy propagation input ip-precedence destination

!

class-map match-any QOS-PREC3

match precedence 3

end-class-map

!

policy-map CUST-25INTL-100NATL

class QOS-PREC3

  shape average 25 mbps 125 ms

!

class class-default

shape average 100 mbps 125 ms

If I do the following I do see matches on the policy for Prec 3 traffic,  But I dont realy want to shape outbound as the external interface is a shared interface where many customers traffic will pass across.

interface GigabitEthernet0/3/0/2.2249

description Outside Interface

  vrf Internet

  service-policy output CUST-25INTL-100NATL

  ipv4 bgp policy propagation input ip-precedence source

!

interface TenGigE0/3/0/0.993

description Inside Interface

  vrf Internet

  ipv4 bgp policy propagation input ip-precedence destination

0 REPLIES 0