Re: [SR-Users] high availability and load balancing

2018-11-10 Thread eyas barhouk
thanks all for your kind reply,

Dear Mojtaba,

i'm confusing a little bit about the following part:
>In Registration message in ICSCF nodes, you could use HA to load
>balance traffics between SCSCF in LIR Diameter message. For example in
>LIA Diameter, you could sent a name of SCSCF thet has lower traffics.

i know that the LIA will handle the S-cscf name and capability to the i-cscf 
based on what pre-defined on the HSS (user profile part) , so how could i know 
the S-cscf which has the lower traffic and send it on the LIA message ??
if you have a tutorial or any guide i will be thankful.

thanks in advance & regards.
Eyas

From: sr-users  on behalf of Mojtaba 

Sent: Friday, November 9, 2018 9:05 PM
To: Kamailio (SER) - Users Mailing List
Subject: Re: [SR-Users] high availability and load balancing

Hi,
The concept of HA in IMS is a little different in non-IMS network.
In each node of CSCF in IMS, you could do HA separately.
For example in PCSCF, you could use DNS load balancer to select one of
your PCSCF.  Actually the UE just see one domain as PCSCF, while you
may have more than one PCSCF in your network.
In each PCSCF, you could use dispatcher module to load balance all
Registration traffics between ICSCF nodes.  All initiate traffices
(like Invite message and etc) route to specific SCSCF via
service-route header.
In Registration message in ICSCF nodes, you could use HA to load
balance traffics between SCSCF in LIR Diameter message. For example in
LIA Diameter, you could sent a name of SCSCF thet has lower traffics.
finally the HA in IMS is doning some procedure, not only one or two task.
With Regards. Mojtaba Esfandiari.S
On Fri, Nov 9, 2018 at 11:23 PM Kjeld Flarup
 wrote:
>
> Hi Eyas
>
>
> A typical HA setup has two kamailio proxies with identical setup.
>
> Use keepalived or similar to give the proxies a shared IP.
>
> Because of the shared IP, all traffic will go to one proxy only.
>
> Thus each of the proxies must be able to handle all traffic, mening the 
> functionality must be very simple - no media handling.
>
> Then use the dispatcher module to do load balancing.
>
>
>
>
>  Med Liberalistiske Hilsner --
>Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
>Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
>Den ikke akademiske hjemmeside for liberalismen - 
> www.liberalismen.dk<http://www.liberalismen.dk>
>
> On 11/9/18 5:09 PM, eyas barhouk wrote:
>
> hello dears,
>
> i'm using kamailio 5.1 as IMS , and i have the following servers:
>
> p-cscf
> i-cscf-1 ,icscf-2
> s-cscf-1,scscf-2
>
> i need to do high availability and load balancing between my servers , but i 
> have some questions like do i have to use keepalived or dispatcher module and 
> what the benefits of each one of them ,and on load balancing method should i 
> do it for the register requests or only for invite requests or just for every 
> thing ??
> if any one has an idea or any thing to guide me i will be thankful
>
> thanks in advance and regards
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



--
--Mojtaba Esfandiari.S

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] high availability and load balancing

2018-11-09 Thread Mojtaba
Hi,
The concept of HA in IMS is a little different in non-IMS network.
In each node of CSCF in IMS, you could do HA separately.
For example in PCSCF, you could use DNS load balancer to select one of
your PCSCF.  Actually the UE just see one domain as PCSCF, while you
may have more than one PCSCF in your network.
In each PCSCF, you could use dispatcher module to load balance all
Registration traffics between ICSCF nodes.  All initiate traffices
(like Invite message and etc) route to specific SCSCF via
service-route header.
In Registration message in ICSCF nodes, you could use HA to load
balance traffics between SCSCF in LIR Diameter message. For example in
LIA Diameter, you could sent a name of SCSCF thet has lower traffics.
finally the HA in IMS is doning some procedure, not only one or two task.
With Regards. Mojtaba Esfandiari.S
On Fri, Nov 9, 2018 at 11:23 PM Kjeld Flarup
 wrote:
>
> Hi Eyas
>
>
> A typical HA setup has two kamailio proxies with identical setup.
>
> Use keepalived or similar to give the proxies a shared IP.
>
> Because of the shared IP, all traffic will go to one proxy only.
>
> Thus each of the proxies must be able to handle all traffic, mening the 
> functionality must be very simple - no media handling.
>
> Then use the dispatcher module to do load balancing.
>
>
>
>
>  Med Liberalistiske Hilsner --
>Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
>Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
>Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
>
> On 11/9/18 5:09 PM, eyas barhouk wrote:
>
> hello dears,
>
> i'm using kamailio 5.1 as IMS , and i have the following servers:
>
> p-cscf
> i-cscf-1 ,icscf-2
> s-cscf-1,scscf-2
>
> i need to do high availability and load balancing between my servers , but i 
> have some questions like do i have to use keepalived or dispatcher module and 
> what the benefits of each one of them ,and on load balancing method should i 
> do it for the register requests or only for invite requests or just for every 
> thing ??
> if any one has an idea or any thing to guide me i will be thankful
>
> thanks in advance and regards
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



-- 
--Mojtaba Esfandiari.S

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] high availability and load balancing

2018-11-09 Thread Kjeld Flarup

Hi Eyas


A typical HA setup has two kamailio proxies with identical setup.

Use keepalived or similar to give the proxies a shared IP.

Because of the shared IP, all traffic will go to one proxy only.

Thus each of the proxies must be able to handle all traffic, mening the 
functionality must be very simple - no media handling.


Then use the dispatcher module to do load balancing.




 Med Liberalistiske Hilsner --
   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
   Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
   Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk

On 11/9/18 5:09 PM, eyas barhouk wrote:

hello dears,

i'm using kamailio 5.1 as IMS , and i have the following servers:

  * p-cscf
  * i-cscf-1 ,icscf-2
  * s-cscf-1,scscf-2

i need to do high availability and load balancing between my servers , 
but i have some questions like do i have to use keepalived or 
dispatcher module and what the benefits of each one of them ,and on 
load balancing method should i do it for the register requests or only 
for invite requests or just for every thing ??

if any one has an idea or any thing to guide me i will be thankful

thanks in advance and regards

___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] high availability and load balancing

2018-11-09 Thread eyas barhouk
hello dears,

i'm using kamailio 5.1 as IMS , and i have the following servers:

  *   p-cscf
  *   i-cscf-1 ,icscf-2
  *   s-cscf-1,scscf-2

i need to do high availability and load balancing between my servers , but i 
have some questions like do i have to use keepalived or dispatcher module and 
what the benefits of each one of them ,and on load balancing method should i do 
it for the register requests or only for invite requests or just for every 
thing ??
if any one has an idea or any thing to guide me i will be thankful

thanks in advance and regards
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users