Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Load balancing weight conversion em percentage

I'm needing to understand how to convert the load balancing weight of XG Firewall to percentage of bandwidth utilization.

Thanks



This thread was automatically locked due to age.
Parents
  • Renzo, you can configure in percentage:

     

    a) Link ISP 1 Gateway, Weight 67

    b) Link ISP 2 Gateway, Weight 33

     

    67% of traffic goes to ISP 1

    33% goes to ISP 2

    Regards,

  • Luiz I think that you answer is not correct.

    Following your thinking configuring the 2 gateway in this way:

    gateway A weight 1

    gateway B weight 1

    the 2 gateway should forward 1% of traffic each.

    Instead we know that configuring the 2 gateways with the same weight, like gateway A with weight 1 and gateway B with weight 1, the load balancing will work like a perfect round robin: 50% of the traffic trough gateway A and 50% trough the gateway B.

     

    Don't you fink?

     

    Regard

  • Renzo,

    1:2 means that Gateway ! will process 33% of the traffic while 66% of the traffic is processed by gateway 2.

    If both gateway have 1, ttraffic will be load balanced.

  • Renzo,

    Think 1:1 for weight is the same to setup 50;50.

    Is only a different view.

    You give the same weight to both of links in the two cases.

    Regards,

  • Thanks. Interesting discussion.

    What if i have 3 gateways and i want to do load balance as follow:

    ISP1: 10%

    ISP2: 40%

    ISP3: 50%

    ?

     

    Thank you.

    Regards

    Anwar Gani

  • Hi Anwar Gani,

    You use exactly as you need:

    ISP1, weight = 10

    ISP2, weight = 40

    ISP3, weight = 50

    Regards,

  • In my opinion it should be like this:

     

    w1 = weight link 1
    w2 = weight link 2
    pt = proportional traffic percentage
    pt1 = traffic percentage link 1
    pt2 = traffic percentage link 2
     
    for first i calculate the proportional traffic percentage:
     
      pt = 100 / ( w1 + w2 )
     
    and after this I can calculate the singular percentage for the 2 links:
     
    pt1 = w1 x pt
    pt2 = w2 x pt
     
     
    example:
     
    w1 = 1
    w2 = 2
     
    => pt = 100 / (1+2) = 100/3 = 33,3
     
    => pt1 = 1 x 33,3 => 33%
     
    => pt2 = 2 x 33,3 => 66% 
     
     
    modifying the weight we can modify the percentages.
    for more than 2 links we can sum the weight of all the links  inside the formula   pt = 100 / ( w1 + w2 + ... + wn).
     
    Best regards.
  • Hi Renzo_Snia,

    That is exactly how the weight is calculated. But the traffic is routed to the gateway as per the number of sessions and not the data from each session. 

    e.g.

    Session 1 is media streaming:200MB data used 

    Session 2 is website browsing :150KB date used 

    Session 3 is a FTP connection. : 200KB data used 

    If the weight between 2 gateway is 2 and 1 respectively to GW1 and GW2, then Session 1 and Session 2 would go through GW1 and Session 3 will go through GW2 .

Reply
  • Hi Renzo_Snia,

    That is exactly how the weight is calculated. But the traffic is routed to the gateway as per the number of sessions and not the data from each session. 

    e.g.

    Session 1 is media streaming:200MB data used 

    Session 2 is website browsing :150KB date used 

    Session 3 is a FTP connection. : 200KB data used 

    If the weight between 2 gateway is 2 and 1 respectively to GW1 and GW2, then Session 1 and Session 2 would go through GW1 and Session 3 will go through GW2 .

Children