Introduction to the development of the SIP protocol stack

Source: Internet
Author: User

We have already learned about the SIP protocol, which we will always see in the Unified Communication Platform and VOIP business. So here we will give you a brief discussion on the development of the SIP protocol and the SIP protocol stack.

1. About the SIP protocol

Currently, there are three basic communication protocols based on VOIP: H 323 protocol, SIP protocol, and MGCP protocol. The following section compares the protocol between H 323 and SIP.

H.323 was proposed by ITU. it attempts to regard IP phones as well-known traditional phones, but the transmission mode is changed from circuit switching to group switching, just like analog transmission to digital transmission, and coaxial cable transmission to optical fiber transmission.

At present, many countries, including China, adopt H.323 as the protocol between IP Phone Gateways. The whole IP phone system only uses the IP network as the transmission medium, A circuit switching system is used for user access, and the IP Telephone Gateway is used as the interface between the Circuit Switching Network and the IP network. at the same time, most telecom operators have also considered H.323 as the first choice for building a new generation of video conferencing systems, and transferred the traditional circuit-based H.320 video conferencing applications to IP-based H.323 systems. in terms of application scale, H.323 has become the dominant factor in VOIP and multimedia communication protocols in actual telecom operations.

SIP is called the Session Initiation Protocol ). SIP is a protocol proposed by the Internet Engineering Task Group IETF. It aims to replace some of the H.323 Protocols, mainly considering that in the next generation network NGN, IP Products and IP gateways will be widely used and integrated in the network, so that IP addresses can be used for end-to-end services; the pure IP-based SIP draws on HTTP and SMTP, which is simple in structure and scalable. in addition, SIP also provides excellent QoS support. for the implementation of VOIP and multimedia communication over an IP network, SIP has unique advantages in fully meeting the application requirements of NGN, and will certainly become an important solution for the next generation of network VOIP.

At present, there are more and more products that support SIP on the market, especially terminals. There are a variety of enterprise-level application solutions, such as SIP-based call centers and video conferences. therefore, it can be said that SIP will become the main force of next-generation network protocols.

SIP is an application layer signaling control protocol used to create, modify, and terminate sessions of one or more participants. these sessions can be Internet multimedia meetings, IP phones, or multimedia distribution, such as voice mailboxes ). session participants can communicate with each other through multicast, unicast, or a mixture of the two. for more details about SIP, refer to related websites and books, such as sip forum.

2. Development of the SIP protocol stack

To achieve device interconnection and network interconnection, an application layer-based SIP protocol stack needs to be developed. currently, open-source) SIP protocol stacks are commonly used in Vocal and OSIP. they are both mature and commercially available SIP protocol stacks with features listed in Table 1.

This design uses Libosip2 for program development. it is a gnu osip library. OSIP is well encapsulated and can complete function operations as long as the write point callback function is used. It is relatively simple and is compiled in C language and readable; the disadvantage is that there are many bugs and you need to pay attention to improvements during debugging.

3. Hardware Design of Voice Gateway

Currently, there are many IP voice terminals, including ARM + DSP solutions and SoCSystem on Chip Solutions. these solutions have their own characteristics. Here we use a network processor + DSP single-port gateway solution. the solution is described in detail below.

① UBICOM IP2022 network processor is used as the gateway master chip. it is a 16-bit high-performance CPU with a execution speed of 120 MIPS. The chip has 64 KB Flash, 16 kb sram (program), and 4 kb sram (data) 10-bit ADC; The in-chip duplex communication module can use software to implement various common communication interfaces, and then use the relevant integrated development environment, A powerful embedded universal communication development platform with easy software development.

The IP2022 network processor can be used to support the communication physical layer, protocol stack, application of specific devices, and peripheral software modules of specific devices, users can use pre-created software modules and configuration tools to program and re-program them, so as to create a true single-chip network application solution for communication between various devices and between humans and machines.

IP2022 contains full-duplex serializer/disserializer SER/DES). It can be directly connected to various common network interfaces to implement 10 BaseT Ethernet MAC and PHY in the chip) USB and other fast serial protocols.

IP2022 implements peripheral communication and control functions in the form of software modules, providing greater system design flexibility than traditional hardware. IP2022 also provides TCP/IP network protocol stacks and a series of additional software required for complete end-to-end connectivity solutions.

Because IP2022 contains two SER/DES components, it can be easily converted from one format to another, so it can also be used as a protocol converter. most commands are executed in a single cycle. The throughput can meet the requirements of various new network connected applications, and the program flash memory can also provide online and offline re-programming, as shown in figure 1 of the specific structure of IP2022.

② The role of DSP in network speech products is irreplaceable. it mainly completes audio and video coding and decoding. Therefore, when selecting a DSP, we must consider meeting the current basic requirements, such as session functions and future needs, such as video requirements and Voice Email functions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.