Design and Implementation of a Small VoIP System Based on Android Platform
- Author
- XuZuo
- Advisor
- SunZuo
- School
- Dalian University of Technology
- Major
- Communication and Information System
- Classification
- TN916.2 Telephone lines, telephone network
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 279
- Citations
- 4
Abstract
VoIP is a new kind of telecommunication technique which uses IP network to transmit the voice signal. One of Its many advantages is that it can greately reduce the cost of communication without undermining the quality of services. In year 2010, China has removed the network access limits through Wi-Fi. Which means the bandwidth is no longer the problem for mobile phone. Thus, VoIP businesses become more and more attractive to people. However, in these two years, the share of smart phone in market has growed up very quickly, which results in a phenomenon that the traditional VoIP business, especially the voice business, can no longer meet the requirements of people. Therefore, the integration of multi-domain business is becoming a new trend in the development of VoIP business.With such an opinion in mind, this paper design and implement a small VoIP system. This system can provide both voice and video calling services. Besides, it can also provide IM services by allowing users to send video based message. The implemention of this system is divided into three parts which are protocol, server and client. This paper chooses Android as the client OS for a very simple reason that is Android is open to everyone, anyone can use it for its own purpose. In the realm of protocol, this paper choose to use SIP as the main session control protocol. To wrap media data, this paper uses RTP because it is widely used in media streaming. Refering to the STUN protocol, this paper implement a unique method to solve the NAT traversal problem. In video codec, H.264 is chosen. To realize the video message preview, RTSP protocol is implemented on the IM server. Since in the real case, there might be hundreds of thousand clients try to connect to the server at the same time, the design of socket I/O model becomes much more important. To solve this case, this paper implements the IOCP mechanism to core layer of the server and uses lots of other techniques to optimize server’s architechture, such as BOOST library, design patterns, etc.This paper first briefly introduces the architechture of the system and some knowledge background related to the system. Then focuses on three important issues and discusses them in detail. These issuals are method to realize a high performance UDP server, NAT traversal technique and video transmitting based on H.264. At last, this paper presents the realization of each model and demonstrate the experiment results. This paper can be a reference to those who want to develop VoIP business on Android.
Table of contents
Abstract 4-5
Abstract 5-9
1 Introduction 9-12
1.1 Background and Significance of research questions 9 - 10
1.2 mobile VoIP business development status 10
1.3 the main work 10-11
1.4 the paper is organized 11-12 <br / > 2 System design Overview 12-29
2.1 system architecture and modules features 12-15
2.1.1 VoIP basic concepts 12-13 < br /> 2.1.2 this paper describes the system structure 13-14
2.1.3 system function Overview 14-15
2.2 Android development environment configuration 15 - 19
2.2.1 Android system framework outlined 15-16
2.2.2 Windows deploy Android development environment 16-17
2.2.3 Windows to configure Android network development environment 17-18
2.2.4 Windows development environment to deploy Android NDK 18-19
2.3 system uses the network communication protocol Introduction 19-25
2.3.1 session Initiation Protocol SIP 19-21
2.3.2 multimedia session description protocol SDP 21-22
2.3.3 real Time Streaming Protocol RTSP 22-23
2.3.4 real-time transport Protocol RTP 23-24
2.3.5 system internal protocol HELSON 24-25
2.4 system uses video codec protocol Introduction 25-29
2.4.1 H.264 video codec technology introduction 25-26
2.4.2 H.264 network transmission Profile 26-27
2.4.3 H.264 for RTP ??encapsulation format profile 27-29
3 concurrent logins UDP-based server design 29-39
3.1 this server design method outlined 29-34
3.1.1 Windows completion Port Profile 30-31
3.1.2 IOCP-based server kernel design 31 - 33
3.1.3 BOOST libraries based memory management design 33-34
3.3 this server business layer design 34-39
4 NAT penetration programs design 39-48
4.1 network Address Translation (NAT) Overview 39-41
4.1.1 NAT mapping behavior analysis 39-40
4.1.2 NAT filtering behavior analysis 40-41
4.2 NAT penetration algorithm brief 41-44
4.2.1 NAT Traversal protocol commonly used 42-44 <br / > 4.2.2 three kinds of traversal summary and comparison 44
4.3 NAT traversal design paper 44-48
4.3.1 UDP hole punching technique 44-45
4.3.2 NAT behavior of this article detection method 45-48
5 Android terminal key problems 48-60
5.1 Android terminal program architecture design 48-52
5.1.1 Android system Binder architecture Introduction 48-50
5.1.2 this software architecture design 50-52
5.2 Android MediaRecorder for H.264 encoding using the methods of data 52-56
5.2.1 MP4 file format H.264 data encapsulation About 53-54
5.2 Get real-time H.264 encoding .2 this method of data 54-56
5.3 Android 2.3 SIP NAT Traversal framework approach 56-60
5.3.1 Android 2.3 SIP framework Introduction 57
5.3.2 this article addresses Android 2.3 SIP framework can not penetrate the NAT method 57-60
6 design and implementation of system functions 60 - 71
6.1 login module 60-62
6.1.1 login process timing design 60
6.1.2 login module implementation 60-62
6.2 voice telephony module 62-63
6.2.1 answering the call module and module implementation 62-63
6.2.2 SIP signaling timing diagram 63
6.3 video phone module 63-66
6.3.1 RTP packet unpacking module 63-65
6.3.2 FFmpeg decoders transplant 65-66
6.3.3 decode display module 66
6.4 video messaging module 66-71
6.4.1 video message sending module 66-68
6.4.2 video messaging receiver module 68-71
7 system test 71-77
7.1 system test environment 71-72
7.2 system functional test 72-77
7.2.1 system integration testing 72-73
7.2.2 Register Login module test 73-74
7.2.3 voice Call module test 74-75
7.2.4 video transmission module test 75-76
7.2.5 video messaging module test 76-77
Conclusion 77-78
References 78-80
papers published during the master's degree case 80 -81
Thanks 81-82
Related dissertations
- Design and implementation of Android system based on mobile phone video calling software
- Design of Remote Mobile Video Monitoring System
- Remote Video Monitoring System Based on RTP and H.264Technology
- The Research of Intelligent Mobile Phone Video Surveillance System Based on3G Network
- The Design and Implementation of Screen Sharing System Based on Android Terminal
- The Design and Implementation of the Wireless Transmission System for H264Video Based on Android
- Research and Implementation of SIP Protocol Based on Android Operation System
- The design of mobile real-time monitoring system based on Android platform
- SIPTrunk--Network Address Translation Traversal for the Session Initial Protocol
- Design and Implementation of Network Video Surveillance Terminal Based on DM365
- Design and Implementation of Mobile Video Surveillance System
- Design and Realization of High-definition Video Surveillance System Based on Session Initiation Protocol
- Design and Implementation of Remote Experiment Management System for College
- Design and Implement of Client Software of Video Surveilllance Base on Android Platform
- And implementation of Inner Mongolia science and Technology Department of high-definition video conference system design
- Implementation of Device Based on Dm365Access to Network Video Surveillance System
- Design and Implementation of Voice and Video Communication System in the Elderly Community Based on Android
- Key Technologies of Things Audio and Video Communication Systems Based on the Android
- The Research and Implementation of the SIP Video Call Management Based on Android OS
- The Research and Implementation of the Network Video Transmission Protocol Based on Android OS