Top Banner
Telecom Big Data Processing Billions of SMS Records Daily with Cassandra NoSQL Ivelin Ivanov CEO, co-founder Athar Rafiq Sr Manager - IT, UFone, Etisalat Group
21

TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Jan 27, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Telecom Big Data Processing Billions of SMS Records Daily with

Cassandra NoSQL

Ivelin IvanovCEO, co-founder

Athar Rafiq Sr Manager - IT, UFone, Etisalat Group

Page 2: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

About Ufone

● Ufone is a wholly owned subsidiary of Pakistan Telecommunication Company Limited (PTCL).

● Started operations in January 2001● Built a subscriber base of over 24 million in less

than a decade● As a result of PTCL's privatization, Ufone became

a part of the Etisalat in 2006.● Ufone offers Pakistan's fastest growing 3G

network services

Page 3: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

The Business Challenge

● New business use case for SMS marketing● Requires processing of hundreds of millions of

SMS per day and billions of CDR records● Too expensive to purchase additional legacy

infrastructure for SMS

Page 4: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

The Technical Challenge

● Legacy telecom infrastructure● Black boxes that cannot be extended● Legacy inflexible and very very expensive vendor

Page 5: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Objective

To deploy a cost effective, highly robust and carrier proven SMSC that can be integrated with Ufone’s Campaign Management Solution.

Page 6: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Telestax SMSC in Ufone

● Very Robust handling 40-50 M SMS/day● Cost Effective/virtual Infrastructure● Highly Reliable● Store & Forward● Integrated with IBM’s Omni Channel Marketing

(formerly known as UNICA)● Handling Multiple LA (short codes)

Page 7: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Future Plans

● Expansions in existing capacity● Integrating Telestax SMSC with Digital Services

Platforms● Applications access to Big Data analytics using

APIs

Page 8: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

About Telestax

The #1 Open Source Communications

Middleware

Restcomm.com

Page 9: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Worldwide customers

9

Telestax Customers

Direct paying customers in over 50 countries. Not counting sales via channel partners.

Page 10: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Powered by the TeleStax Communications Platform based on Mobicents

RestComm allows Service Providers and Enterprises to

improve end user experience and optimize business workflows

via Real Time Communications

Page 11: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

The Road From Blag Box to Big Data

Page 12: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Early failures

● Started with RDBMS, soon faced below challenges○ How to be

■ Scalable with massive writes and reads■ Distributed■ Control over performance characteristics■ High Availability■ Low Latency■ Low hardware + software cost

○ No strict ACID requirements. Doesn’t matter much if SMS is not delivered instantaneously.

Page 13: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Early failures

● Started with naive NoSQL use - Cassandra● Beginners mistake of using normalized data

structures as SQL habits advise● Inserts were super fast● Reads failed horribly● Deletes were amazingly slow

Page 14: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Final solution

● Forget normalization!● Single Table, dynamically add columns

○ One Table each for live (retry) SMS and archived (delivered or permanently failed) SMS

● Tables created for each day○ Easy management ○ Archiving○ Fast Read

DestinationNumber TimeSlot SMS1 SMS2 SMS3 ... ... ...

15129999999 t1 xxx yyy zzz ... ... ...

Dynamically add columns

Composite Primary Key

Page 15: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Final solution (cont.)

● Never Delete rows!○ SSTables are immutable. We can’t remove rows○ Cassandra creates Tombstones for deleted data

● Any SMS failed, is inserted in new row with new timeslot

● Drop Tables

DestinationNumber TimeSlot SMS3 ... ... ... ... ...

15129999999 (t1+10) zzz ... ... ... ... ...

Dynamically add columns

Composite Primary Key

Page 16: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Final solution - Architecture

Page 17: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Final solution - Architecture

Page 18: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

Lessons Learned

● Can’t ignore Cassandra’s internal workings● Read performance is heavily dependent on the

temporal patterns of your writes● Various write patterns make read performance

slowly decrease● Avoid deleting data, instead think of ways where

the whole table can be dropped

Page 19: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

● Sales. Improving web site user conversion rates via intelligent integration of web calls data into marketing funnel.

● Support. Improving customer support by replacing archaic 1-800 menus and blind transfers into contextual intelligent agent response.

● Marketing. Measuring campaigns by intelligently blending call data with web and mobile app user data.

● We are barely scratching the surface of RTC analytics

Future Opportunities in Telco Analytics

Page 20: TeleStax: Processing Billions of SMS Records Daily for a Top Tier Telecom

From Dreaded Telecom to Programmable Contextual RTC