Tipping the Scales: Measuring and Scaling Asterisk

50 %
50 %
Information about Tipping the Scales: Measuring and Scaling Asterisk
Technology

Published on October 24, 2014

Author: bklang

Source: slideshare.net

Description

In this presentation delivered at AstriCon 2014, we look at answering the question: "Does Asterisk scale?!" The answer is nuanced. The presentation includes terminology and tools, as well as some notes on methodology. In the final few slides, we look at several ways Asterisk is employed (B2BUA, transcoding, conferencing, recording) and the impact each feature has on scaling Asterisk. Using the tools and methodologies presented here, I encourage everyone to test their own voice applications and answer the question for themselves: Does It Scale?!

1. Tipping the Scales Measuring and Scaling Asterisk

2. CAN YOU SPEAK MAGIC? 2 Ben Klang

3. CAN YOU SPEAK MAGIC? “But…Does it Scale?!” 3

4. CAN YOU SPEAK MAGIC? 4 Yes!* * Probably. This is what we’re gonna talk about

5. CAN YOU SPEAK MAGIC? AGENDA: TIPPING THE SCALES •Scaling terminology •Tools of the Trade •Testing Methodology •Results 5

6. CAN YOU SPEAK MAGIC? 6 Scaling Terminology

7. CAN YOU SPEAK MAGIC? Calls Per Second (CPS) 7 Concurrent Calls (CC)

8. CAN YOU SPEAK MAGIC? CALLS PER SECOND •Rate at which new calls are started •5CPS = 5 calls started each second •Usually meaningful only where: •Average call duration is very short (dialers) •No media is handled (proxies) •For most people, this is not the bottleneck 8

9. CAN YOU SPEAK MAGIC? CONCURRENT CALLS •Number of calls active at any particular moment in time •This is what most people really care about when scaling Asterisk 9

10. CAN YOU SPEAK MAGIC? HOW CPS AND CC RELATE CPS * Avg. Call Duration = CC (peak) 5 CPS * 30s = 150 CC 10 CPS * 30s = 300 CC 10 CPS * 60s = 600 CC 10

11. CAN YOU SPEAK MAGIC? 11 Tools of the Trade

12. CAN YOU SPEAK MAGIC? SIPP •THE Open Source SIP load generating tool •High Performance •Very Flexible •XML-based configuration •Awkward command line options •Very Flexible 12

13. CAN YOU SPEAK MAGIC? The Problem with SIPp 13

14. CAN YOU SPEAK MAGIC? STEP 1: WRITE SIP 14

15. CAN YOU SPEAK MAGIC? STEP 2: RECORD A CALL 15

16. CAN YOU SPEAK MAGIC? STEP 3: DECIDE SIPP ARGS 16 sudo /usr/local/sbin/sipp -p 8836 -sf scenario.xml -l 1000 -m 20000 -fd 1 -r 5 -s 1 -no_rate_quit -rate_max 35 -rate_increase 1 -rate_interval 30 -trace_stat -stf stats_file.txt -i 10.3.18.108 -mp 20953 -trace_screen -screen_file screen_file.txt -trace_err -error_file errors.log -t u1 10.3.18.134

17. CAN YOU SPEAK MAGIC? STEP 4: TEST 17

18. CAN YOU SPEAK MAGIC? PERMUTATIONS! 18

19. CAN YOU SPEAK MAGIC? 19 The Problem with SIPp:

20. CAN YOU SPEAK MAGIC? 20

21. CAN YOU SPEAK MAGIC? SippyCup 1. Write test steps in simple syntax 2. Compile SIPp XML + PCAP audio 3. Run SIPp with correct arguments 21

22. CAN YOU SPEAK MAGIC? EXAMPLE: SIPPY CUP 22 source: 192.0.2.15 destination: 192.0.2.200 max_concurrent: 1000 calls_per_second: 5 number_of_calls: 20000 steps: - invite - wait_for_answer - sleep 3 - send_digits '4045551234' - sleep 5 - send_digits '#' - wait_for_hangup

23. CAN YOU SPEAK MAGIC? TIME TO CREATE ONE TEST 23 SIPp: ~1 hour SippyCup: ~1 minute

24. CAN YOU SPEAK MAGIC? 24 SIP Treadmill

25. CAN YOU SPEAK MAGIC? 25

26. CAN YOU SPEAK MAGIC? 26

27. CAN YOU SPEAK MAGIC? Testing Methodology 27

28. CAN YOU SPEAK MAGIC? BAD QUESTIONS •How many calls can Asterisk handle? •I heard “X” is faster than “Y”? •How much CPU/Memory do I need? •Does it scale?! 28

29. CAN YOU SPEAK MAGIC? GOOD QUESTIONS •What is my average call duration? •Am I touching the media? •What if I enable recording? •Can I optimize out transcoding? •Do I need mixing/conferencing? 29

30. CAN YOU SPEAK MAGIC? 30 How much does each Asterisk feature impact the capacity of a given system?

31. CAN YOU SPEAK MAGIC? THE PERFORMANCE QUADUMVIRATE 31

32. CAN YOU SPEAK MAGIC? 32 Results

33. CAN YOU SPEAK MAGIC? BASELINE: B2BUA 33

34. CAN YOU SPEAK MAGIC? BASELINE: B2BUA 33

35. CAN YOU SPEAK MAGIC? BASELINE: B2BUA 33 Saturation Point

36. CAN YOU SPEAK MAGIC? FILE PLAYBACK (NATIVE) 34

37. CAN YOU SPEAK MAGIC? FILE PLAYBACK (NATIVE) 34

38. CAN YOU SPEAK MAGIC? FILE PLAYBACK (NATIVE) 34

39. CAN YOU SPEAK MAGIC? FILE PLAYBACK (TRANSCODED) 35

40. CAN YOU SPEAK MAGIC? FILE PLAYBACK (TRANSCODED) 35

41. CAN YOU SPEAK MAGIC? FILE PLAYBACK (TRANSCODED) 35

42. CAN YOU SPEAK MAGIC? CONFERENCES (~10 CALLS/ROOM) 36

43. CAN YOU SPEAK MAGIC? CONFERENCES (~10 CALLS/ROOM) 36

44. CAN YOU SPEAK MAGIC? CONFERENCES (~10 CALLS/ROOM) 36

45. CAN YOU SPEAK MAGIC? RECORDED CALL 37

46. CAN YOU SPEAK MAGIC? RECORDED CALL 37

47. CAN YOU SPEAK MAGIC? RECORDED CALL 37

48. CAN YOU SPEAK MAGIC? THE RESULTS 49% 38 Baseline Playback (xcode) Playback (native) Split Conf Recorded 66% 75% 71% 100%

49. CAN YOU SPEAK MAGIC? IF YOU HEAR NOTHING ELSE… •Test for yourself! •Open Source tools make this not as hard as it used to be •Sippy Cup •SIP Treadmill •SIPp 39

50. CAN YOU SPEAK MAGIC? 40 @bklang bklang@mojolingo.com @MojoLingo sipp.sf.net mojolingo.github.io/sippy_cup github.com/att-innovate/SIPTreadmill

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

CMM has absolute measuring scales - Documents

UK CMM has absolute measuring scales For improved positional ... Tipping the Scales: Measuring and Scaling Asterisk ... "Does Asterisk scale?!"
Read more

Upcoming Events | AstriCon 2014: Measuring VoIP ...

Tipping The Scales: Predicting and Measuring VoIP Application Performance ... Tipping the Scales: Measuring and Scaling Asterisk from Mojo Lingo. Share this:
Read more

The tipping point[1] - Education - documents.mx

The Tipping Point Julián Sánchez Cardona ... Tipping the Scales: Measuring and Scaling Asterisk A profession at the tipping point Comments. RECOMMENDED.
Read more

Scaling and Measuring Agile Success - Technology

Scaling and Measuring Agile Success© 2012 ... Measuring Success • Profits • Net Promoter Score ... Tipping the Scales: Measuring and Scaling Asterisk.
Read more

Rank Order scale - Changing Minds

Rank Order scale . Explanations > Social Research > Measurement > Rank Order scale. ... * Tipping * Using humor * Willpower. Principles * Principles ...
Read more

PDF Book - Mediafile File Sharing - dloadvad.ru

How it works: 1. Register a free 1 month Trial Account. 2. Download as many books as you like (Personal use) 3. Cancel the membership at any time if not ...
Read more

Google

Advertising Programmes Business Solutions +Google About Google Google.com © 2016 - Privacy - Terms. Search; Images; Maps; Play; YouTube; News; Gmail ...
Read more

DOWNLOAD Search Inside Yourself - bookalltt.ru

DOWNLOAD Search Inside Yourself - bookalltt.ru
Read more