vMX

 View Only
last person joined: 9 days ago 

Ask questions and share experiences about vMX.
  • 1.  BNG Rate Limiting PPPoE Session

    Posted 09-19-2020 23:41

    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



  • 2.  RE: BNG Rate Limiting PPPoE Session
    Best Answer

     
    Posted 09-29-2020 22:32

    Hi Asoltanian,

     

    Greetings

     

    Can you please go through the below document?

     

    https://www.juniper.net/documentation/en_US/design-and-architecture/service-provider-edge/information-products/topic-collections/understanding-subscriber-mgmt.pdf

     

    Please mark "Accepted Solution" if this helps you solve your query. Kudos are always appreciated.

     

    Thanks 

    Suraj 



  • 3.  RE: BNG Rate Limiting PPPoE Session

     
    Posted 09-29-2020 22:34

    Hi Asoltanian,

     

    Greetings,

     

    PPPoE Maximum Session Limit Overview

     

    The maximum session limit for PPPoE subscriber interfaces specifies the maximum number of concurrent static or dynamic PPPoE logical interfaces (sessions) that the router can activate on the PPPoE underlying interface or the maximum number of active static or dynamic PPPoE sessions that the router can establish with particular service entry in a PPPoE service name table.

    You can configure the PPPoE maximum session limit in one of two ways:

    • On a per-interface basis.

    • (Default) On a per-subscriber basis.

    This overview describes the concepts you need to understand to configure the PPPoE maximum session limit, and covers the following topics:

     

    https://www.juniper.net/documentation/en_US/junos/topics/concept/subscriber-management-pppoe-max-sessions.html

     

    Please mark "Accepted Solution" if this helps you solve your query. Kudos are always appreciated.

     

    Thanks 

    Suraj