VoIP

From Computing and Software Wiki

Revision as of 17:31, 12 April 2009 by Nisha (Talk)
Jump to: navigation, search

Voice over Internet Protocol (VoIP) is a general term for a family of technologies that convert analog audio signals (voice) to digital data that is then transmitted over IP networks such as the Internet or other packet switched networks. VoIP technology is sometimes also called IP telephone, Internet telephony, voice over broadband (VoBB), broadband telephone and broadband phone.


The major benefits arising from VoIP technology is the reduction in communication and infrastructure costs. Routing phone calls over existing data networks eliminate the need for creating separate data and voice networks. This reduces the infrastructure costs of companies. VoIP features such as conference calling and caller ID which usually cost extra with most telecommunication companies are available for free with most VoIP services. The average consumer can eliminate long distance charges altogether by using a service such as Skype to communicate with relatives.


Contents

Types of VoIP Calls

Analog Telephone Adapter

The Analog Telephone Adapter is a device used to connect a standard analog telephone to a computer network so that the user can make voice calls over the internet. ATA devices usually come in two forms. In a household setting, it usually has one or more RJ-11 jacks to connect to a telephone and a USB connector to connect to a computer, laptop or hand-held device. This type of ATA requires the service of computer software to digitize voice data and communicate with the VoIP server. In an enterprise setting, the ATA usually consists of multiple telephone jacks and an RJ-45 connector to connect to an Ethernet hub or switch. This type of ATA contains its own analog to digital converters and uses protocols such as H.323 and SIP to communicate with the VoIP server. Some internet service providers give an ATA to their customers as part of their package. A flat rate for this is typically cheaper than traditional phone service plans. Image:ATA1.gif

VoIP Phone

VoIP Phones are specialized phones that allow a direct connection to the IP Network via Ethernet of Wi-Fi technology. Therefore, they allow the use of VoIP without the use of computer. There are two types of VoIP Phones: IP Phones and Wi-Fi phones. IP Phones have a different connector than regular phones. This connector (RJ-45 connector) allows it to link directly with the router via an Ethernet cable. Wi-Fi phones allow the VoIP calls with connection from any Wi-Fi hotspot. The Cisco IP Phone is a common example of an IP Phone that is used in many companies.

Softphone

A Softphone is VoIP software installed on a computer and used in conjunction with the computers microphone, speaker, sound card and internet connection. It eliminates the need for dedicated hardware. It is important to distinguish between softphones and the services softphone technology. Skype is a common example of this service. They provide free local calls and member to member calls. This can reduce an average consumers long distance charge considerably. It also provides the advantage of having a fixed contact number regardless of the users location. Other services include GoogleTalk and Vonage

How VoIP Works

Stages of VoIP transmission

  1. First the analog voice must be converted to a digital signal via an analog-to-digital converter
  2. The digital signal must be compressed for transmission
  3. The voice packets are then inserted into data packets using a real-time protocol (RTP)
  4. A signaling protocol is then required to call a user
  5. When the packet reaches the destination it must be disassembled
  6. The data is then extracted or decompressed
  7. The digital signal is then converted back to an analog voice signal via a digital to analog converter



Analog to Digital Conversion

Two factors play an important role in the successful digitization of an analog voice signal:

  1. Quantization: This refers the number of bits used to represent each sample. Audio signals are best represented by 16 bit samples.
  2. Sampling rate: This refers to the number of samples per second used to encode the sound. 8 kHz is the most common sampling frequency used to VoIP communication.



Audio Codecs

Once the analog signal has been represented by a sequence of samples, these samples must be compressed to reduce the usage of network bandwidth required to transmit it. The compression and subsequent decompression at the destination is handled by codecs (COder - DECoder). The following codecs are the most commonly used with VoIP. Listed against it is its "Mean Opinion Score". This is the perceived quality of the audio signal after it has been compressed, transmitted and decompressed. The score ranges from 1 (bad) to 5 (excellent).

VoIP Codecs and their Quality
Codecs MOS Advantages Disadvantages
G.711 4.2 no licensing fees, simple implementation, high quality consumes more bandwidth
G.729 4.0 low bandwidth requirement, good quality licensing fees
G.723.1 3.7-3.9 allows calls over 28.8 and 33 kbit/s modem links licensing fees apply
GSM 06.10 3.7 free lower perceived quality



Real Time Protocol

VoIP Packet Encapsulation

After the data is converted into the correct format it is encapsulated in RTP Packets to be transmitted over the network. This transmission protocol needs to consider the following situations:

  1. The re-ordering of packets during the transmission
  2. The loss of packets
  3. The time between packet arrival (jitter)

For real time transmission, the re-ordering and jitter issues are more important than the loss of packets. It does not matter if a few packets are lost as long as most of them arrive continuously and in order. Therefore, the error checking and retransmission scheme of TCP is not really suitable for this purpose. UDP provides the high speeds required for real time transmission.

RTP frame header


The fields of the RTP packet relevant to VoIP transmission include:


PT (Payload Type): This is a 7 bit field that allows values between 0 and 127. The interval between 96 and 127 is reserved for dynamic payload types. These are negotiated by the signaling protocol (SIPR or H.323) used to establish the VoIP call.

Sequence Number: This is a 16 bit value that helps order the packets after transmission. The sequence number starts at a random value and is incremented with each RTP packet sent

Timestamp: This is a 32 bit value that represents the clock tick count when the first audio sample in the payload was sampled. The timestamp also starts at a random value and incremented with each RTP packet sent.

Synchronization Source Identifier (SSRC): This is a 32 bit identifier that is chosen randomly and used to detect and resolve collisions. No two synchronization sources within the same RTP session will have the same SSRC.



Signaling Protocols

H.323

H.323 is an umbrella protocol was originally developed as a recommendation made by the ITU for videoconferencing over a packet based network. It was then adopted for VoIP. Its main objective is call control and management. For this it uses two signaling protocols, H.225 for call control and H.245 for call management. When a session is initiated between two H.232 devices, the H.225 protocol performs setup and tear down functions of the call using TCP. H.245 performs call management functions, including establishing device capabilities, negotiating codecs and port selection. Once this is completed, RTP is used to sequence and time media information transported over UDP. The primary benefit of H.323 is its address resolution capabilities. H.323 can be seen in many Cisco products and Microsoft's NetMeeting. Skype supports both H.323 and SIP.

SIP

Session Initiation Protocol is a text based signaling protocol used for setup and tear down of multimedia communication sessions such as voice and video calls over the internet. It is a TCP/IP based Application Layer protocol designed to be independent of the underlying transport layer. It is much lighter that H.323 which relies heavily on centralized gateways and servers. Being text based, it is easier to integrate with other Internet applications such as email and instant messaging. It also has a modular design that allows users of multimedia conferences in different locations to use whatever capabilities their device supports. SIP development had an advantage in that it was primarily governed by the IETF unlike H.323 which was governed by the ITU since the IETF is usually quicker to adapt to industry demands. It is being used by Nokia and Ericsson. Cisco has integrate d it into most of their products. Microsoft's Office Communications Server will be based on the SIP standard. SIP is now the accepted standard for VoIP communications because of its interoperability and integration capabilities.

Advantages of VoIP

VoIP Challenges

Quality of Service (QoS)

==Emergency Calls

Power Failure

Security

Personal tools