06-09-2018 09:11 PM - edited 03-01-2019 03:24 PM
06-11-2018 02:06 AM
06-12-2018 12:37 AM
Hi Alexander,
Thanks for replying,
No, I didn't configure any 2-level hierarchical QoS policy because I don't know how to do it for PPPoE subscribers. May I ask to share some samples based on the attached configuration?
Best Regards.
Arshin
06-12-2018 01:04 AM
06-13-2018 01:00 AM
Thank you so much Alexander,
I'm going to implement that and I'll take the result.
best regards,
Arshin.
@xr-escalation wrote:
Sure, here you go:
policy-map SERVICE_A_P
class class-default
service-policy SERVICE_A
shape average 10 mbps
!
policy-map SERVICE_A
class EF
priority level 1
police rate 1 mbps
policy-map SERVICE_B_P
class class-default
service-policy SERVICE_B
shape average 10 mbps !
!
policy-map SERVICE_B
class AF4
bandwidth 2 mbps !
policy-map SERVICE_C_P
class class-default
service-policy SERVICE_C
shape average 10 mbps
!
policy-map SERVICE_C
class class-default
bandwidth 3 mbps
dynamic-template
type service SERVICE_1
service-policy output SERVICE_A_P merge 10 acct-stats
accounting aaa list AAA_ACCNT_ML type service periodic-interval 2
dynamic-template
type service SERVICE_2
service-policy output SERVICE_B_P merge 20 acct-stats
accounting aaa list AAA_ACCNT_ML type service periodic-interval 2
dynamic-template
type service SERVICE_3
service-policy output SERVICE_C_P merge 30 acct-stats
accounting aaa list AAA_ACCNT_ML type service periodic-interval 2
RADIUS server profile example:
vsa cisco generic 1 string "ip:ipv4- unnumbered=loopback2222"
vsa cisco generic 1 string "ip:addr-pool=ROY"
vsa cisco generic 1 string "subscriber:sa=SERVICE_1"
vsa cisco generic 1 string "subscriber:sa=SERVICE_2"
vsa cisco generic 1 string “subscriber:sa=SERVICE_3
What you should see when the above config is applied:
RP/0/RSP0/CPU0:ASR9K-42-BNG#sh policy-map applied int Bundle- Ether1.61.pppo$
Output policy-map applied to Bundle-Ether1.61.pppoe57:
policy-map type merge __merge_ffffff8439ffffff9a1
class class-default
service-policy type merge __merge_ffffffd8ffffffa7ffffffd6ffffffc1
shape average 10 mbps !
Child policy-map(s) of policy-map __merge_ffffff8439ffffff9a1:
policy-map type merge __merge_ffffffd8ffffffa7ffffffd6ffffffc1
class EF
priority level 1
police rate 1 mbps
!
!
class AF4
bandwidth 2 mbps
!
class class-default
bandwidth 3 mbps
/Aleksandar
06-13-2018 04:11 AM
Hello again Aleksandar
That configuration didn't solve my problem, let me explain more and please let me know if I have misunderstanding in each step:
1) USER1 sends authentication requests to the BNG and it forwards the request to the AAA.
2) AAA checks the user information and it finds that USER1 assigned to 3 different services
named Service-1, Service-2 and Service-3. So, AAA sends back a message (ACCESS-ACCEPT) to the BNG which contains the name of these services in the AAA-Attributes.
3) BNG finds that it already has configuration for these services, so it accept the list from AAA and begins to send 4 different accounting-start requests corresponding to these 3
services plus one more for total accounting to the AAA.
Also in this step BNG establish the PPPoE connection for USER1 and assigns the following speeds for each service:
3-1) Service-1 = 10 Mbps
3-2) Service-2 = 5 Mbps
3-3) Service-3 = 15 Mbps
So the total speed for that user in each direction becomes (10+5+15) = 30 Mbps
4) In a live session and at the Interim-Intervals, BNG sends 4 accounting records consecutively to the AAA for usage calculation and AAA checks that if one (or more than one) of these services counts to zero credit, then it sends a COA message to the BNG to disconnect that service.
5) If all of the services counts to zero credit, then user-session will be terminated by COA or may be redirected to a Web-Portal for further processing.
My question is about speed-limit for all of the services in each direction to some value less than (10+5+15=40). For example to 60% of this number which is 60% * 40 = 24 Mbps.
In a sample 2-level policer which is presented kindly, still I can not find a force-limit for speed of (Service1 + Service2 + Service3),
it only shows me how can I control speed internally inside a service using a child policy, but I need an speed control externally outside of all of these 3 services.
06-13-2018 04:55 AM
06-15-2018 12:31 AM
Sure, here it is:
06-15-2018 12:51 AM
what I want is that if a subscriber uses all of 3 services together, then the bandwidth should be limit something less than 30 Mbps (10+5+15), for example I need to set the bandwidth to 24 Mbps.
06-18-2018 06:11 AM
The configuration that you have shared doesn't match what I have suggested. Note that in my proposed config each of the 3 services uses a 2-level policy. The parent level is merged into a single parent shaper, as you can see in the "show" command output that I have shared. Can you try with that kind of config?
06-18-2018 09:56 AM
Well, If I try your suggested configuration, still I have the same problem, because there is no any speed limitation over all of the parent services. We should push a limit over 3 parent services together so that they doesn't exceed 24 Mbps for each subscriber.
Any Idea?
06-24-2018 10:25 PM
Dear Alexandar,
I'm still waiting for kindly response,
As I explained, I lose control over services if put them in a child policy.
In this case, I can't activate or deactivate the child, because actually they are parent and should be controlled in dynamic templates and AAA in the parent level, so they can not be moved to a child policy.
Best regards,
Arshin
07-09-2018 04:47 AM
hi Arshin,
I was on PTO, hence the delay. The configuration you shared didn't follow what I suggested earlier because in your config I still see a single level QoS policy instead of a hierarchical two-level QoS policy. Can you try that again?
Aleksandar
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide