Hi
I am trying to rate limit the PPPoE session on vMX18.1, here is the configuration:
family inet { filter 2Mbps { interface-specific; term 1 { then { policer p_20Mbps_limit; accept; } } } filter 1Mbps { interface-specific; term 1 { then { policer p_1Mbps_limit; accept; } } } } policer p_20Mbps_limit { logical-interface-policer; logical-bandwidth-policer; shared-bandwidth-policer; if-exceeding { bandwidth-limit 1m; burst-size-limit 1500; } then discard; } policer p_1Mbps_limit { logical-interface-policer; shared-bandwidth-policer; if-exceeding { bandwidth-limit 8k; burst-size-limit 1500; } then discard; } |
I assigned the policy via following RADIUS AVP:
ERX-Ingress-Policy-Name = 1Mbps,
ERX-Egress-Policy-Name = 2Mbps,
The policy is applied to the session successfully:
jcluser@vMX1> show subscribers extensive Type: PPPoE User Name: 217625test2 IP Address: 192.168.120.60 IP Netmask: 255.255.255.255 Primary DNS Address: 4.2.2.4 Secondary DNS Address: 8.8.8.8 Logical System: default Routing Instance: default Interface: pp0.3221225531 Interface type: Dynamic Underlying Interface: ge-0/0/0.801 Dynamic Profile Name: Virtual-Template1 MAC Address: 00:0c:29:0b:ff:59 Session Timeout (seconds): 172800 State: Active Radius Accounting ID: 186 Session ID: 186 PFE Flow ID: 105 VLAN Id: 801 Agent Circuit ID: ge-0/0/0:801 Login Time: 2020-09-20 06:49:29 UTC Service Sessions: 1 IP Address Pool: POOL1 Accounting interval: 600 Dynamic configuration: junos-input-filter: 1Mbps junos-output-filter: 2Mbps
Service Session ID: 187 Service Session Name: CLASS01 State: Active Family: inet Service Activation time: 2020-09-20 06:49:29 UTC Accounting interval service: 600
|
But the subscriber Download rate is not limited.
Is there anything Missing here?
Thank you
Alireza