Switching

Expand all | Collapse all

Bandwidth policing on ex4200

Jump to Best Answer
  • 1.  Bandwidth policing on ex4200

    Posted 05-24-2018 04:19
     

    Hi Guys,

    I have an EX4200 with an uplink to a customer.

    i would like to limit the customer incoming and outgoind traffic to 60M.

     

    the inbound working fine, configuration:

    Policer
    ======
    set firewall policer Policer_60M if-exceeding bandwidth-limit 60m
    set firewall policer Policer_60M if-exceeding burst-size-limit 1m
    set firewall policer Policer_60M then discard

    FW Filter
    =======
    set firewall family ethernet-switching filter TEST1 term 1 then accept
    set firewall family ethernet-switching filter TEST1 term 1 then policer Policer_60M

    Applying FW Filter to Interface
    =======================
    set interfaces ge-0/0/1 unit 0 family ethernet-switching filter input TEST1

     

    the outgoing limit isnt working(shaping), configuration:

     

    set class-of-service interfaces ge-0/0/1 shaping-rate 10m
    set class-of-service traffic-control-profiles output shaping-rate 60m
    set class-of-service traffic-control-profiles output shaping-rate burst-size 30k
    set class-of-service interfaces ge-0/0/1 output-traffic-control-profile output

     

    there is anything missing?

     

     

    Thanks,



  • 2.  RE: Bandwidth policing on ex4200

    Posted 05-24-2018 05:30


  • 3.  RE: Bandwidth policing on ex4200

    Posted 05-24-2018 06:39

    so how i limited the inbound traffic?

    must be soulution for outbound traffic limit.



  • 4.  RE: Bandwidth policing on ex4200

    Posted 05-24-2018 08:15

    Hello,


    @amiri wrote:

    so how i limited the inbound traffic?

     


    You limited it with a policer, according to Your own config.

     


    @amiri wrote:

     

    must be soulution for outbound traffic limit.


    https://forums.juniper.net/t5/Ethernet-Switching/RATE-LIMITING-ON-EX4200/m-p/167782#M7180

    Use a policer inbound and interface shaper outbound.

    HTH

    Thx

    Alex



  • 5.  RE: Bandwidth policing on ex4200

    Posted 05-25-2018 13:12

    Following command is enough for outgoing shaping

     

    set class-of-service interfaces ge-0/0/1 shaping-rate 60m



  • 6.  RE: Bandwidth policing on ex4200

    Posted 05-27-2018 05:11

    Hi,

    thats what i configured and still it doesent work.

     

    any other idea?



  • 7.  RE: Bandwidth policing on ex4200

    Posted 05-28-2018 06:27

    friends??



  • 8.  RE: Bandwidth policing on ex4200
    Best Answer

     
    Posted 05-28-2018 09:09

    Verify if shaping is applied by running:

     

    show class-of-service interface <int>

    Generate excessive traffic and check

     

    show interfaces <int> statistics

     

    Should show that shaping is indeed hapening.

    If for some reason that doean't work you may try this:

     

    set class-of-service schedulers sched-queue-shap-60m shaping-rate 60m
    set class-of-service scheduler-maps sched-map-be-60m forwarding-class best-effort scheduler sched-queue-shap-60m
    set class-of-service interfaces <int> scheduler-map sched-map-be-60m

    Regards, Wojtek

     

     



  • 9.  RE: Bandwidth policing on ex4200

    Posted 05-31-2018 04:24

    Hi,

     

    i dont know why but now the: 

     

    show class-of-service interface <int>

    command is working!!!

     

    thats what i configured fron the beggining, the is any time that we need to wait before the command starts wirking??

     

    anyway thank you very much!!!