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

Per-Session QoS | LNS QoS | PPP session | per-vc QoS configuration Template

G'day All,

Please find the configuration template for Per-Session QoS. It is on LNS, applied on L2TP session by Radius (vendor specific attributes).

IOS version: c7301-advipservicesk9-mz.152-4.S4.bin

This did not work on:

c7301-advipservicesk9-mz.151-4.M7.bin

c7301-advipservicesk9-mz.124-24.T8.bin

=============================

Radius Attributes:

=============================

For Input/output policy:

ip:sub-policy-In=<Cust-Name>-EDGE-IN

ip:sub-policy-Out=<Cust-Name>-OUTPUT

Other attributes:

lcp:allow-subinterface=yes

lcp:interface-config=ip vrf forwarding <Cust-Name>

lcp:interface-config=ip unnumbered Loopback 149

=============================

Router Configuration:

=============================

E2-LNS-01#sh runn clas

E2-LNS-01#sh runn class-map CUST:GOLD

!

class-map match-any CUST:GOLD

match ip precedence 5

!

end

E2-LNS-01#sh runn class-map CUST:BRONZE

!

class-map match-any CUST:BRONZE

match ip precedence 0

!

end

E2-LNS-01#sh runn policy-map <Cust-Name>-EDGE-IN

!

policy-map <Cust-Name>-EDGE-IN

class CUST:GOLD

set mpls experimental imposition 5

class CUST:BRONZE

  set mpls experimental imposition 0

!

end

E2-LNS-01#sh runn policy-map <Cust-Name>-OUTPUT

!

policy-map <Cust-Name>-OUTPUT

class class-default

  shape average 10000000

   service-policy <Cust-Name>-OUTPUT-CHILD

!

end

E2-LNS-01#sh runn policy-map <Cust-Name>-OUTPUT-CHILD

!

policy-map <Cust-Name>-OUTPUT-CHILD

class CUST:GOLD

  bandwidth 2000

class CUST:BRONZE

!

end

E2-LNS-01#

=============================

Logs:

=============================

E2-LNS-01#sh subscriber session | in sws

46      Vi2.3        authen   Lterm       00:01:49 0     <Cust-Name>@hellothere.com.au

E2-LNS-01#show policy-map session

SSS session identifier 46 -

  Service-policy input: <Cust-Name>-EDGE-IN

    Class-map: CUST:GOLD (match-any)

      0 packets, 0 bytes

      30 second offered rate 0000 bps, drop rate 0000 bps

      Match: ip precedence 5

        0 packets, 0 bytes

        30 second rate 0 bps

      QoS Set

        mpls experimental imposition 5

          Packets marked 0

    Class-map: CUST:BRONZE (match-any)

      0 packets, 0 bytes

      30 second offered rate 0000 bps, drop rate 0000 bps

      Match: ip precedence 0

        0 packets, 0 bytes

        30 second rate 0 bps

      QoS Set

        mpls experimental imposition 0

          Packets marked 0

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

      7 packets, 437 bytes

      30 second offered rate 0000 bps, drop rate 0000 bps

      Match: any

SSS session identifier 46 -

  Service-policy output: <Cust-Name>-OUTPUT

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

      8 packets, 887 bytes

      30 second offered rate 0000 bps, drop rate 0000 bps

      Match: any

      Queueing

      queue limit 2500 packets

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

      (pkts output/bytes output) 5/619

      shape (average) cir 10000000, bc 40000, be 40000

      target shape rate 10000000

      Service-policy : <Cust-Name>-OUTPUT-CHILD

        Class-map: CUST:GOLD (match-any)

          0 packets, 0 bytes

          30 second offered rate 0000 bps, drop rate 0000 bps

          Match: ip precedence 5

            0 packets, 0 bytes

            30 second rate 0 bps

          Queueing

          queue limit 500 packets

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

          (pkts output/bytes output) 0/0

          bandwidth 2000 kbps

        Class-map: CUST:BRONZE (match-any)

          0 packets, 0 bytes

          30 second offered rate 0000 bps

          Match: ip precedence 0

            0 packets, 0 bytes

            30 second rate 0 bps

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

          8 packets, 887 bytes

          30 second offered rate 0000 bps, drop rate 0000 bps

          Match: any

          queue limit 2000 packets

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

          (pkts output/bytes output) 5/619

E2-LNS-01#

Ref:

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_perssn/configuration/15-s/qos-perssn-15-s-book/qos-perssn.html

Cheers,

0 REPLIES 0