We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byTracy Shelton
Modified about 1 year ago
SIP Testing w/ FreeSWITCH ClueCon, August 2013 Moisés Silva email@example.com Manager, Software Engineering
About Sangoma Industry pioneer with over 25 years of experience in communications hardware and software Publicly traded company since 2000 – TSXV: STC One of the most financially healthy companies in our industry – Growing, Profitable, Cash on the Balance Sheet, No Debt Mid-market sized firm with just under 100 staff in all global territories – Offices in Canada (Toronto), US (CA, NJ), EU (UK & Holland), APAC (India), CALA (Miami) World wide customer base – Selling direct to carriers and OEMs – Selling to the enterprise through a network of distribution partners 2 Sangoma Technologies - © 2013
Broad Line of Great Products Voice Telephony Boards – Analog/digital/hybrid, WAN, ADSL Session border controllers Microsoft Lync VoIP Gateways – NetBorder SIP to TDM – SS7 to SIP Software Applications – NetBorder Express, Call Progress Analyzer… Transcoding (boards/appliances) Fiber connectivity (STM1) Wireless products (GSM) 3 Sangoma Technologies - © 2013
Agenda Testing Overview Functionality Tests Load Tests Security Tests 4 Sangoma Technologies - © 2013
Overview I know, SIP testing can be scary 5 Sangoma Technologies - © 2013
Overview Testing complex systems requires detailed engineering and deep knowledge of OSes, wide range of protocols, hardware, etc Not everyone likes doing it, it is not glamorous work … But … It’s developer’s responsibility to test, not customer’s … shocking! 6 Sangoma Technologies - © 2013
Overview Lots of open source tools out there that can be used for testing: Sipp Sipsak Sipvicious Voiper FreeSWITCH Asterisk 7 Sangoma Technologies - © 2013
Overview Commercial tools as well IXLoad from Ixia SIP Hammer from Empirix 8 Sangoma Technologies - © 2013
Overview FreeSWITCH can be used to test other systems Generate calls with full RTP wide array of codecs Support for IPv4/IPv6, TLS, SRTP, STUN, ICE etc Flexible programmable logic via XML, Python etc Originate/terminate T.38 faxing Originate/terminate SIP/TDM calls (and others) Easy to hook up modules to test media or signaling: Example: tone_detect, mod_bert, fs_test 9 Sangoma Technologies - © 2013
Functionality Tests 10 Sangoma Technologies - © 2013
Functionality Tests Verify expected SIP behaviors REFER actually places a new call to given destination 183 with SDP actually bridges media 4/5XX responses hang up or retry a call REGISTER creates an AOR in your DB … And you can go crazy with Presence tests … 11 Sangoma Technologies - © 2013
Functionality Tests Identify your most important functionality Execute manual tests, take traces (pcap/wireshark) Write test scenarios for them Automate them! (Python/Ruby/PERL scripting) 12 Sangoma Technologies - © 2013
SIPp 13 Sangoma Technologies - © 2013
SIPp FreeSWITCH Wiki SIPP Quote “IF YOU DO NOT UNDERSTAND HOW TO STRESS TEST PROPERLY THEN DON'T BOTHER Using SIPp is part dark art, part voodoo, part Santeria. YOU HAVE BEEN WARNED” 14 Sangoma Technologies - © 2013
SIPp Low-level SIP functionality & performance test tool Not super user-friendly, errors can go unnoticed Requires a firm grasp on SIP (requests, responses, transactions, dialogs) Flow logic is XML-based 15 Sangoma Technologies - © 2013
SIPp 16 Sangoma Technologies - © 2013
SIPp 17 Sangoma Technologies - © 2013
SIPp,,,, rinse & repeat sends raw SIP messages indicates you are expecting a SIP response or request waits some milliseconds Can be used to play a pcap (and other stuff) 18 Sangoma Technologies - © 2013
SIPp takes care of re-transmissions if “retrans” attribute is used blocks if non-optional playing a file is non-blocking (surprising if you know FreeSWITCH/Asterisk playback) 19 Sangoma Technologies - © 2013
SIPp More complex scenarios can be created with conditional branching Use statistical branching to add some variety to your scenarios can be done using different distribution models such as normal, exponential, pareto, etc 20 Sangoma Technologies - © 2013
SIPp Subtle mistakes can go unnoticed (no media) 21 Sangoma Technologies - © 2013
SIPp Use [media_port] tag, do not hard-code ports in the SDP 22 Sangoma Technologies - © 2013
SIPp Make sure you use –rtp_echo Make sure you insert a after playing a pcap and make sure the pcap is long enough For load tests raise your process limits (ulimit –a for details) 23 Sangoma Technologies - © 2013
SIPp Automating creation of SIPp scenarios out of pcap captures: Sippie http://sourceforge.net/projects/sippie/ Sniff2sipp http://svnview.digium.com/svn/sniff2sipp/ 24 Sangoma Technologies - © 2013
SIPSak Mostly useful for flood tests Much simpler/smaller than sipp, but less control Easily used for RFC4475 testing (SIP Torture) 25 Sangoma Technologies - © 2013
FreeSWITCH You can create SIP flows indirectly using FreeSWITCH applications No direct/raw SIP access, but possible through FreeSWITCH channel variables Logic programmable in XML, Python, LUA etc 26 Sangoma Technologies - © 2013
FreeSWITCH Use ESL originate to send INVITEs fs_test Python script mimics some SIPp options https://github.com/moises-silva/fs_test Control INVITE SIP headers through “sip_h_” originate variables Send REFER with “deflect” application 27 Sangoma Technologies - © 2013
FreeSWITCH Send 180 with “ring_ready” Send 183 with “pre_answer” Send 200 with “answer” Send 3XX with “redirect” Send 4XX/5XX/6XX with “respond” Send BYE with “hangup” 28 Sangoma Technologies - © 2013
FreeSWITCH G.711 media test / checking can be accomplished using mod_bert or tone_detect https://github.com/moises- silva/freeswitch/tree/mod_bert https://github.com/moises- silva/freeswitch/tree/mod_bert Calls failing the media test are hung up with MEDIA_TIMEOUT reason 29 Sangoma Technologies - © 2013
Load Tests 30 Sangoma Technologies - © 2013
Load Tests Load testing can be a fine art Be careful and define testing scope OS (Linux, Windows, 64/32 bit, OS packages versions) Media features (RTP/SRTP, UDPTL, Codec) Signaling Features (TLS, PRACK, Presence, T.38) Hardware environment (CPU, Memory, PCI/PCIx, HD) Network environment (TCP/UDP/Ethernet settings) 31 Sangoma Technologies - © 2013
Load Tests Performance can vary widely when changing just a few environment characteristics, be sure to test after each change Record your findings (ie: use Cacti) Do no underestimate non-call-related load Registrations, Presence, MWI, etc 32 Sangoma Technologies - © 2013
Load Tests Measure your network performance / throughput Use good cat6 ethernet cables! Use Iperf https://code.google.com/p/iperf/ 33 Sangoma Technologies - © 2013
Load Tests Launching iperf server 34 Sangoma Technologies - © 2013
Load Tests Launching iperf client 35 Sangoma Technologies - © 2013
Load Tests Do not forget to verify with bwm-ng 36 Sangoma Technologies - © 2013 Iperf server bandwidth Iperf client bandwidth
Load Tests Slight payload change (iperf –l 172) causes significant performance difference 37 Sangoma Technologies - © 2013 Iperf server bandwidth Iperf client bandwidth
Security Tests 38 Sangoma Technologies - © 2013
Security Tests Sipvicious Voiper 39 Sangoma Technologies - © 2013
SipVicious Sipvicious is handy to test your fail2ban rules Use svwar.py and svcrack.py to trigger your fail2ban Verify the host was blocked 40 Sangoma Technologies - © 2013
Voiper Voiper is handy for fuzzy/vulnerability testing http://voiper.sourceforge.net/ Whatever you do, do not click on the last link at that page (UnprotectedHex) 41 Sangoma Technologies - © 2013
Voiper python fuzzer.py -f SIPInviteCommonFuzzer -i 192.168.168.1 -p 5060 -a sessions/scen1 -c 0 Tons of messages like this on FreeSWITCH: 42 Sangoma Technologies - © 2013
Voiper Note fail2ban can hardly help here (if at all) Solution is report malformed packets via events and possibly block hosts sending excess of malformed traffic 43 Sangoma Technologies - © 2013
Contact Us Sangoma Technologies 100 Renfrew Drive, Suite 100 Markham, Ontario L3R 9R6 Canada Website http://www.sangoma.com/ http://www.sangoma.com/ Telephone +1 905 474 1990 x2 (for Sales) Email firstname.lastname@example.org email@example.com Sangoma Technologies - © 2013 45
Call Control with SIP Brian Elliott, Director of Engineering, NMS.
Integration at the Edge TDM/IP and IP/IP Moisés Silva Manager, Software Engineering Technology Summit Niagara Falls, July 18, 2013.
Sangoma Partner Training Lync Express Frederic Dickey / Doug Vilim.
Media Handling in FreeSWITCH Moisés Silva Software Engineer / Manager
1 GAIA VoIP traffic generator and analyzer Presentation by Amrut Bang Ashish Deshpande Vijay Gabale Santosh Patil Sponsored by GS Lab Pvt. Ltd Pune Institute.
D100 Voice Transcoding Product Introduction November 2010.
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<<<<<
Implementation Lessons using WebRTC in Asterisk Astricon, October 2013 Moisés Silva Manager, Software Engineering.
2 Best of Breed Telephony Solutions- Open Source and Proprietary Presented by: David Mandelstam, CEO/President, Sangoma Technologies.
SIP Testing Methodology Elie Cohen ProLab PM 17/01/2003.
Building Applications with SIP Conferencing / Collaboration Alan D. Percy Director, Market Development AudioCodes.
Performance Analysis of Orb Rabin Karki and Thangam V. Seenivasan 1.
1Security for Service Providers – Dave Gladwin – Newport Networks – SIP ’04 – 22-Jan-04 Security for Service Providers Protecting Service Infrastructure.
By the end of this section, you will know and understand the hardware and software involved in making a LAN!
D100 Voice Transcoding Product Introduction August 2010.
Solutions for Microsoft Lync. AudioCodes: a Microsoft Lync Foundation Media Gateways Network Management Software Desktop IP Phones Professional Services.
Networks. Learning Objectives Understand what a network is and the advantages and disadvantages Know the difference between wired and wireless networks.
Johan Delimon 26/04/2016 BE-COM E-COMMUNICATIONS EVENT THE INNER WORKINGS OF SKYPE FOR BUSINESS: NETWORKING.
NETW-250 Troubleshooting Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Scenarios Lync-Skype Audio (v1) Add to contact list/Block users [Lync to MSA] Block Skype Connectivity Instant Messages and Presence Updates P2P Audio.
Twinkle A SIP client based on open source and open standards Michel de Boer
Enabling SIP to the Enterprise Steve Johnson, Ingate Systems Security: How SIP Improves Telephony.
Peering & Routing Designs Using Session Controllers & Media Gateways James Rafferty Voice Peering Forum March 8, 2007.
1 Copyright © 2002 ACNielsen a VNU company Why choose Data Tech and 3CX Phone System? Key Features & Unique Selling Points.
Testing SIP Services Over IP. Agenda SIP testing – advanced scenarios SIP testing - Real Life Examples.
Copyright © 2002 ACNielsen a VNU company Key Features and Benefits of the 3CX PBX for Windows Server.
3 rd Party Integration – Paxton Apr, Agenda Solution Partner Introduction Integration Introduction Product Demo Technical Issue Escalation Quick.
Maximizer CRM Chris Dauth RapidCRM. About Maximizer the Company Contact management (Maximizer) since 1987 Leader in CRM for small to med-sized enterprises.
1 Building Web-base SIP Analyzer with Ajax Approach Yan-Hsiang Wang & Dr. Quincy Wu National Chi Nan University Graduate Institute of CSIE
Click to continue Network Protocols. Click to continue Networking Protocols A protocol defines the rules of procedures, which computers must obey when.
Market Reform Introduction Electronic exchange of information Rob Campbell, MRPO 29 th March 2007.
Woomera Accelerating access to VoIP Cluecon 2009, 7 August 2009 Craig Southeren.
NETWORKING COMPONENTS AN OVERVIEW OF COMMONLY USED HARDWARE Christopher Johnson LTEC 4550.
January 23-26, 2007 Ft. Lauderdale, Florida An introduction to SIP Simon Millard Professional Services Manager Aculab.
NAT Traversal Speaker: Chin-Chang Chang Date:
SIP Trunking As a Managed Service Why an E-SBC Matters By: Alon Cohen, CTO Phone.com.
Session Initiation Protocol Team Members: Manjiri Ayyar Pallavi Murudkar Sriusha Kottalanka Vamsi Ambati Girish Satya LeeAnn Tam.
0 What Does SIP Bring to Your Customer Experience ? Extend VoIP and IP Contact Center values through support of SIP o Media and location independent support.
Microsoft ® Office PowerPoint ® 2003 Training Package to a CD Your STS, Tom Redd, presents:
Security, NATs and Firewalls Ingate Systems. Basics of SIP Security.
Simon Millard Professional Services Manager Aculab – booth 402 The State of SIP.
The Session Initiation Protocol - SIP © Internation Institute of Telecommunications inc.,
Nada Abdulla Ahmed. SmoothWall Express is an open source firewall distribution based on the GNU/Linux operating system. Designed for ease of use, SmoothWall.
Contact Center Track: CC02 Session Sept 1, 2009 Outbound Call Centers: Driving Efficiency and Regulation Compliance Frederic Dickey Director Product Management.
3. VoIP Concepts. General concept of VoIP PSTN Router IP Network PBX ① ② Voice is transported over Internet with compression of Audio data. 1. What is.
ﺑﺴﻢﺍﷲﺍﻠﺭﺣﻣﻥﺍﻠﺭﺣﻳﻡ. Group Members Nadia Malik01 Malik Fawad03.
Detection and Mitigation of Spam in IP Telephony Networks using Signaling Protocol Analysis MacIntosh, R Vinokurov, D Advances in Wired and Wireless Communication,
Communication Networks Fourth Meeting. Types of Networks What is a circuit network? Two people are connected and allocated them their own physical.
Wireshark Presented By: Hiral Chhaya, Anvita Priyam.
PIKA Technologies’ fully customizable PBX Platform.
© 2017 SlidePlayer.com Inc. All rights reserved.