SRX

Expand all | Collapse all

Dynamic Traffic Shaping

Jump to Best Answer
  • 1.  Dynamic Traffic Shaping

    Posted 03-26-2019 03:31

    Is it possible to dynamically allocate bandwidth from a 100Mb circuit, where ge-0/0/1 gets  a maximum of 20 and ge-0/0/2 gets a minimum of 80, but then whatever isn't utilized on ge-0/0/1 gets allocated to ge-0/0/2? 



  • 2.  RE: Dynamic Traffic Shaping

     
    Posted 03-26-2019 04:23
    On which interface do you have 100MB?


  • 3.  RE: Dynamic Traffic Shaping

    Posted 03-26-2019 04:46

    that'll be on ge-0/0/0



  • 4.  RE: Dynamic Traffic Shaping

    Posted 03-26-2019 08:09

    So I've got a 100m cct coming in ge-0/0/0 and I need to dynamically allocate 20/80 out to ge-0/0/1 & 2 - whereby ge-0/0/2 gets at least 80M (but can also be allocated whatever part of the 20m ge-0/0/1 isn't using)

    if that makes sense!



  • 5.  RE: Dynamic Traffic Shaping
    Best Answer

    Posted 03-26-2019 20:11

    Hello,

     


    @smitmail42 wrote:

    So I've got a 100m cct coming in ge-0/0/0 and I need to dynamically allocate 20/80 out to ge-0/0/1 & 2 - whereby ge-0/0/2 gets at least 80M (but can also be allocated whatever part of the 20m ge-0/0/1 isn't using)

    if that makes sense!


     

     

    Think of it this way: 100Mbps coming into ge-0/0/0 has already arrived, You cannot do anything about it.

    Now, think of what composition this traffic has:

    - if all of it (100%) needs to go out of ge-0/0/1, then put a 20M output policer/shaper on ge-0/0/1, then ge-0/0/1 will get 20%. ge-0/0/2 will get nothing but there was nothing towards ge-0/0/2 in the 1st place

    - if 50% of ge-0/0/0-received traffic needs to go out of ge-0/0/1 and another 50% of it needs to go out of ge-0/0/2, then the same ge-0/0/1 output policer/shaper will rate-limit down to 20Mbps which is Your goal as stated above, and ge-0/0/2 will get 50Mbps as offered to it.

    - if 10% of ge-0/0/0-received traffic needs to go out of ge-0/0/1 and 90% out of ge-0/0/2, then 20Mbps output policer/shaper on ge-0/0/1 will not get triggered. ge-0/0/2 will receive full 90Mbps which meets Your goal "ge-0/0/2 must be allocated whatever ge-0/0/1 isn't using" - ge-0/0/1 "will not use" 10Mbps out of "allocated" 20.

    - if 0% of ge-0/0/0-received traffic needs to go out of ge-0/0/1 and 100% out of ge-0/0/2, then 20Mbps output policer/shaper on ge-0/0/1 will not get triggered. ge-0/0/2 will receive full 100Mbps which meets Your goal "ge-0/0/2 must be allocated whatever ge-0/0/1 isn't using" - ge-0/0/1 "will not use" 20Mbps out of "allocated" 20.

    All-in-all, simple 20Mbps output policer/shaper on ge-0/0/1 will do what You asked.

    If Your ask is actually not what You have in mind, then this is another story Smiley LOL

    HTH

    Thx

    Alex



  • 6.  RE: Dynamic Traffic Shaping

     
    Posted 03-27-2019 18:57

     Do you wanna devide that 100M to 80 and 20, for traffic going out to internet or traffic coming to SRX from internet?

     

     



  • 7.  RE: Dynamic Traffic Shaping

    Posted 03-30-2019 07:27

    It's a good question Suraj, I think I'd only really thought about 80/20 for traffic coming in, I was advised by a customer to split the bandwidth 80/20, with a max 20 going one way and min 80 going the other - tbh they didn't mention shaping it for traffic going out, so I hadn't really thought about it but I suppose I need to ask the question. Thanks for the responses guys.



  • 8.  RE: Dynamic Traffic Shaping

    Posted 03-30-2019 07:19

    Yea I obviously didn't  think through how a 20Mb shaper on ge-0/0/1 would work, that's exactly  what I need, thanks



  • 9.  RE: Dynamic Traffic Shaping

    Posted 04-03-2019 02:53

    Hi Alex, 

    So in this scenario if I put a  20Mbps output policer/shaper on ge-0/0/1 - would that mean that ge-0/0/2 would be able to saturate the 100Mbps? 

     

    Chris



  • 10.  RE: Dynamic Traffic Shaping

    Posted 04-03-2019 05:04

    Hello,


    @smitmail42 wrote:

    Hi Alex, 

    So in this scenario if I put a  20Mbps output policer/shaper on ge-0/0/1 - would that mean that ge-0/0/2 would be able to saturate the 100Mbps? 

     


    Your ask was to limit the 100Mbps offered traffic coming FROM ge-0/0/0 differently, depending on where traffic is going - out of ge-0/0/1 or out of ge-0/0/2

    If You are concerned about ge-0/0/2 being able to send >100Mbps TO ge-0/0/0, then this is opposite direction and a different requirement.

    In this case, You need to enable CoS with schedulers and priorities.

    HTH

    Thx

    Alex