Skip to main content

HA Demo

10 replies [Last post]
ivelin
Offline
Joined: 2003-07-13

We need to build a non-trivial example to make sure that HA works.

Ranga and I discussed the following scenario. Take a look and comment:

Resilent Call Billing Service:

1) Two instances of Mobicents running on different VMs and shared cluster
2) Two SIP clients register with Server1
3) Client A calls client B
4) Client B answers
5) Server1 crashes
6) Server2 takes over transparently to both clients
7) Client A hangs up to end the call
8) The management interface of Server2 should be able to present the totall bill for the call.

Notes: To make the demo easy to test on one box, we will allow both servers to run on the same laptop but different VMs. There will be a simple front end port load balancer, which sends heart beats to both servers and forwards requests only to active ones. For the demo it will suffice to have a UDP port forwarding listening on 5060 and routing requests to servers (host : port) specified in a property file.

How does it sound?

Ivelin

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jbemmel
Offline
Joined: 2005-03-01

If I understand your scenario correctly, there is a component you don't mention in points 1-8, namely a stateless proxy server, that forwards to either Server1 or Server2 depending on liveness

To me, that's not really HA - when the proxy goes down, everything still collapses

You may want to consider http://tools.ietf.org/wg/sip/draft-rosenberg-sip-outbound-discovery-mid-... instead

ivelin
Offline
Joined: 2003-07-13

jbemmel, thank you for pointing out this spec.

It seems like an important scenario that needs to be supported by Mobicents for SIP clients that have the failover capability required by this rfc. I welcome contributions in this direction.

I have to disagree however with your claim that the HA example Anil refers to is not valid. As the wiki says, the stateless proxy can be backed by a secondary standaby proxy, which takes over the IP address of the primary when it fails. This will remain transparent to the client.

Ivelin

mranga
Offline
Joined: 2003-06-06

Excellent!

This will be the driver for the things we need to get done in the near term. We hope to do a demo like this together for VON. Do we want a forwarding front end or a SIP Stack RA that does IP address ( in this case port ) takeover? A stateless forwarding proxy (like the one you have suggested) would probably be simpler to accomplish.

Ranga

ivelin
Offline
Joined: 2003-07-13

IP takeover proxy should be possible to setup on one box. It will need to continuously scan for certain IP to become available and bind to 5060 when that happens. I'll add it as an optional task.

Ivelin

ivelin
Offline
Joined: 2003-07-13
gzhhong
Offline
Joined: 2006-07-07

I really want to know if the demo is finished. I don't think it is very useful to let the two servers running on one mechine.
How to configure server1 and server2 on different mechines.

ivelin
Offline
Joined: 2003-07-13

you can certainly run the jslee servers on separate machine and you can even run the sip load balancer on a third machine. All you need to do is configure the network settings for each server.

anilh
Offline
Joined: 2006-10-25

Hi,

Is there a property file for the forwarder wherein i have to specify the JSLEE server IP addresses for the forwarder to forward SIP messages? The HADemo link mentions a forwarder but does not elaborate as to where it's located. I am trying to get the HADemo to work but when my SIP client sends a REGISTER to forwarder, the forwarder throws a SIPException: "Could not determine next Hop".

Could anyone tell me if i am missing something.

Thanks,
Anil

ivelin
Offline
Joined: 2003-07-13

Its been some time since I looked at the HADemo, but if I'm not mistaken each SLEE server pings the forwarded when it comes online, not the other way around. When you figure it out, please add some text to the setup page so the next person doesn't have to go through the same pain.

anilh
Offline
Joined: 2006-10-25

Hi,

I got the example working. The problem i had was i was using mobicentscr1.0 for the proxy and the forwarder from the mobicents cvs. I followed the steps mentioned in the HADemo link building Mobicents from source and after deploying the proxy and the server (all and node1), i got the example working.

Thanks,
Anil