Building for scale
WARNING: TECHNICAL POST!
At KamailioWorld 2016 on Friday afternoon there was a presentation from an engineer from 1&1 Internet who is the second largest consumer ISP in Germany. He was talking about adding media relay capabilities to their network using RTPengine.
But what struck me very much was the scale they work at. They have four million "residential line" customers, most of who get the service as part of their home internet service. And most of those home internet services are delivered over DSL.
Connection Telecom's experience delivering phone service over ADSL has been challenging. 1&1 are able to make two ATM bearers to isolate the voice from the customer's internet usage. We can't do that in South Africa. But even with that, and despite being in a first-world country, I am sure they face challenges!
Anyway - that's not really my point. My point is that with four million lines on the service they manage up to 120 000 concurrent calls with 500 calls being initiated every second. I don't think I'm giving away anything if I tell you that Connection Telecom's peak load is much much less than that. And we are likely the biggest hosted PBX provider in South Africa.
I should say that our service is a full hosted PBX service. 1&1 delivers a simple residential-style "plain old telephone service" (POTS). So there is a big difference in the requirement.
Nevertheless - there's good lessons for us to learn in respect of how to deliver a highly scalable service. Let me see if I can summarize:
- "Switching" is separate from "Control": Kamailio allows them to work at the SIP signaling level. Wherever possible they allow media to go directly from phone to phone, where its just ordinary packets which can be routed like any other. Where they can't do that, they set things up at the relay at the start of the call using Kamailio's ability to manager RTPengine.
- They use BGP with short timers to allow rapid switchover of equipment in the event of failures of servers or even data centre outage. The failover is quick enough to keep calls.
- Their RTPengine instances share state so even a call where media is being relayed will continue if the particular RTPengine crashes. The audio will be reestablished in just a second or so.
- They pay attention to the optimization of their machines - their RTPengine machines have multiple 10 gigabit interfaces and could run up to 15 000 concurrent calls on each. Much more than Asterisk could reasonably manage. Because of the high capacity they are able to do media relaying with only 6 servers.
So this is an impressive example of systems thinking to deliver high capacity. Their care and attention is also inspiring. Perhaps that comes with being German!
Listening to stories like this is a good example of the value of traveling all the way from Cape Town!
Today I'm in San Francisco doing a bit of site seeing. I claimed a computer at the Apple Store to make this post, but now I'm off to go see the sites.
Tomorrow Signal begins, which is Twilio's conference. Looking forward to it very much. I know its going to be very very different to KamailioWorld which was quite small, very technical, very European and quite understated. I'm sure the 'mericans will do it completely differently!
Cheers,
Steve















