- A systematic Approach to Basics of Voice over IP : Voice over IP fundamental by Cisco Systems. Last updated : 2001
- Introuction to networking by Person Publication
- www.wikipedia.com on VoIP.
- searchunfiedocmumication.techtarget.com
Thursday, August 7, 2008
13. Reference
12. Advantage and Disadvantage of VoIP
- Packet switching allowed several telephone calls to occupy the amount of space occupied that can be done so using circuit switching.
- It save on cost
- An IP infrastructure needs fewer adds, moves, and changes than a traditional voice or data network.
- It helps employess in getting instant access to the data irrespective of the location.
- Customers are also able to deploy network with less upfront costs or with extensive in-house expertise, so it is preferred not only by business but also by an individual.
- Easy to understand and operate.
- Also it helps in making long distance calls for free and keeps a track of all the calls, which are coming, and outgoing even recording the minutes.
Disadvantage of VoIP
- VoIP is dependant on wall power. So if there is no power, means the phone cannot work and stable power source is needed for VoIP.
- VoIP is susceptible to worms, viruses and hacking.
- Another issue is that VoIP is a system that dependant on individual PCs of varying specification and power.
- Quality loss will become immediately evident
- Phone conversations can become distorted, garbled or lost because of transmission errors.
- In VoIP, all phone calls are subject to the limitations of normal computer issues.
Wednesday, August 6, 2008
11. VoIP network problem
- Defined as number of times it takes for speech to transmit from the sender to the receiver.
- There are 3 types of delay:Propogation delay, serialization delay and handling delay.
- Propagation delay is caused by spped of light in fiber or copper based network.
- Handlinh delay defines many different causes if dalay(actual packetization, compression and packet switching). It is usually caused by devices that forward frames through network.
- Sertization delay is the amount of time that it takes to place sa bit or byte onto an interface. It's influence to delay is relatively minimal.
- Delay can be controlled by assigning a higher priority for voice packets in VoIP.
2. Jitter
- Define as the variation of packets interarrival time.
- one of the issuse that exits only in packet basred network.
- In a VoIP environment, sender send voice packets at a regular interval( For e.g., sender send voice packet about 20ms).
- In order to send it in order, these packets can be delay and transmit them at the receiving end.
- Jitter can also be know as the differences between the packet expected to and when it actually received.
3. Packet loss
- It is the most common in data network.
- It has a direct result of the quencing scheme used in routers.
- The solution in reducing packet loss is to implement priority queuing, weighed fair queuing, or class-based wieghted fair queuing,whereby traffic amount are assigned to differrent to classes of data traffic.
- But, many protocols used packet loss to reduced number of packets they are sending.
- In VoIP, it is implement to control amount of packet loss in the network.
10. Voice Protocol used in VoIP
There are two types of protocol in VoIP:
- Real-time Transport Protocol(RTP)
- Real-time Transport Control Protocol(RTCP)
Real-time Transport Protocol(RTP)
- Provides the functinality to real time application
- Runs on IP over UDP
- has the capability of providing application framing by adding application-layers to datagrams.
- It uses the sequence information to detemine whether packets are arrive in order.
- It also provide time stamping to determine the packet interarrival time.
- RTP uses typically informs a source about the quality of delivery. The source then adapt its sending rate accordingly.
Types of relays used by RTP
There are two types of relay used for transmission - mixer relay and translator.
Mixer relay
- Combines data from two or more entries into single stream of data.
- It can either retain or change the data format
- Provides timming information for the combined stream of data and act as a source of timming synchronization.
- Typically used for combining audio stream in real time application and service system that is not able to handle multiple stream.
Translator
- A device that generate one or more RTP packrts for each incoming RTP packets.
- Format of outing packets may be different from the incoimg packets.
- Used in video application in which high quality siganl is converted to a lower quality in order to service receivers that support a lower data rate.
- Some time, translator can be used to transfer a multicast packet to multiple destination and the RTP entries separated by an application-layer firewall.
RTP Packet Header
The following show the RTP header :
The header fields of the RTP packet are describe below:
- Version - to indicate the version of the protocol
- Padding - Indicate the existence of a padding field at the end of the payload. It is needed in application the need the payload to be multiple of some length.
- Extension - indicate the use of an extension header for RTP
- Constributing source count (CSC) - a 4 bit field that indicate the number of contributing source identifies.
- Marker - boundaries in a stream of data traffic.
- Paylaod - indicate the specfic type of RTP payload. Alos contain information about the use of compression or encryption.
- Sequence - 16 bit field that indicates that a sender uses to identify a particular packet withihn a sequence of packets
- Time stamp - to enable the receiver to rearrange back the original data.
- Synchronization Source Identifier - randomly generated field to indicate the RTP source in an RTP session.
- Contributing Source identifier - an optional field to show the contributing source for the data.
Real-time Transport Control Protocol
- Runs on top of UDP.
- Perform multicasting to provide feedback about data quality to all the members
- The members can set an estimate of the perfromances of other members in the current active session.
- Sender can send about data rates, quality of data transmission.
- Receiver can send about packets loss rate, jitter variations and other problems encountered.
- All session members must be able to evaluate the performances of other session members.
RTCP packet limitation
- It msut be limited to less than 5%.
- If it is more than that, it would affect the voice quality and the bandwidth of the channel.
- The number of active members increased, the transmission rate of RTCP packets must be reduced
Format of RTCP packet
- Sender Report
- Receiver Report
- SEDS Source Description
- BYE
- APP - Application Specfic types
What are the reports send in RTCP session?
- There are 3 reports- sender report , receiver report and sources description (SEDS)
A receiver and sender report consists of:
- NTP timestamp - 64 bit field indicates to when a sender report was send.
- RTP tiemstamp - 32 bit field used by receiver to sequence RTP packets
- Sender packet count - 32 bit field represent number of RTP ocetets transmitted bt sender in the session.
- Sender byte count - 32 bit feild represent number of RTP octets transmitted by the sender in the current session.
The SR packets includes 0 or more RR blocks. One receiver block is included for each sender from which the members has received during the session.
9. Components of VoIP netwok and Voice Protocol
The main components of a VoIP network are describe below
- Media Gateway
- Media Gateway/Signalling Controllers
- IP network
- IP Phone
Media Gateway
They are responsible for setting up call, detect call, analog to digital conversion and creation of voice packets. It also perform compression,echo cancellation and statistics gathering.
It also forms the interface that the voice content users so that it can be transported over the IP network. Each call is a single IP session transported using RTP. Trunking gateways that interface between the telephone network and a VoIP network. Such gateways typically manage a large number of digital circuits.
Types of media gateway
Residential Gateway provide a traditional analog interface to a VoIP network. Examples of include cable modem/cable set-top boxes, xDSL devices, and broadband wireless devices.
Business Media Gateway provide a traditional digital PBX interface or an integrated soft PBX interface to a VoIP network.Network access servers that can attach a modem to a telephone circuit and provide data access to the Internet.
Media gateway/Signalling Controllers
It houses the signalling controls services that control the media gateway controllers. It can be consider to that of H.323 gateway. It has the responsibility for some or all of the call signalling coordination, phone number translations, host lookup, resource management and signalling the gateway services to PSTN.The amount of functionality is based on the particular VoIP enabling products used.
The services of these devices are defined by the protocols and software they are running. There are several protocols and implementations that any number of vendors could deploy. Knowing the details of how the devices their protocols stack is important to designing the IP backbone that is to service the VoIP parts.
The IP infrastructure ensure smooth delivery of the voice and signaling packets to the VoIP elements. Due to their dissimilarities, the IP network must treat voice and data traffic differently. If an IP network is to carry both voice and data traffic, it must be able to prioritize the different traffic types.
There are several correlations to the VoIP and circuit-switching components, however there are many differences. One is in the transport of the resulting voice traffic. Circuit-switching telecommunications can be best classified as a TDM network that dedicates channels, reserving bandwidth as it is needed out of the trunk links interconnecting the switches.
IP phone
IP phone is a device that is used to receive voice packets and convert it to analog signal to the handset. A typical IP Phone perform the digitization, comperssion and packetization of analog signal . It uses the RJ 45 connector instead of the normal telephone connector. It is connected to the gateway via a port and signal passes through gateway to the network. At the same time, user can configure the IP address and that will enable communication to the distant end.
The following shows an example of the VoIP network:
Tuesday, August 5, 2008
8. Codec - Coder/Decoder
- Voice transmission is in analog signal, whereas the data network is digital.
- So codec is help to convert analog signal into digital form and transport it to the network. There are many standards to sample an analog signal and the process is done through PCM(Pulse Code Modulation or variations.
- How the PCM works? Firstly the analog signal is input to a low pass filter. After that, the filter signal is sampled using one of the codec. Next the waveform is converted into a discrete digital signal. This sample is than represented by a code that indicate the amplitude of the waveform at the instant the sample was taken.
The following show an example of PCM:
Types of codec
- G.711 - It is a 64kps PCM voice encoding method that encode voice that is ready in PCM format for digital voice delivery in the public network or through PBX.
- G.726 - Describe ADPCM coding at 40,32,24,and 16kpbs. It allow user to interchange ADPCM voice between packet voice and public phone or PBX.
- G.728 - A 16kpbs low-delay variation of CELP voice compression.
- G.729 - A CELP compression that enale voice to be coded into 8kpbs streams. There are two types of variation of this standard(A and B) that are differ in computational complexity and both also provide good speech quality.
- G.723.1 - It compresses speech or other audio signal components of multimedia service at low bit rate, as part of the overall H.324 Standards. There are two bit rates associated with this coder : 5.3 and 6.3kpbs.
7. Media Gateway Control Protocol (MGCP)
- It is protocol used within a VoIP system
- It was developed to address the demands of carrier-based IP telephone network.
- Also a complementary protocol for H.323 and SIP, which was designed as an internal protocol between Media Gateway Controller and Media Gateway.
- It comprised o a Call Agent, one MG (media gateway) which performs the conversion of media signals between circuits and packets, and one SG (signaling gateway) when connected to the PSTN (Public Switched Telephone Network).
- MGCP is widely used between elements of a decomposed multimedia gateway. The gateway has a Call Agent, which is comprised of the call control "intelligence" and a media gateway boasting the media functions, for example conversion from TDM voice to Voice over IP.
MGCP connection can be point to point or point to multipoint. Once there is a connection, data transfer takes place between the endpoints. In multipoint connections, it is set up between endpoint and a multipoint session. In multipoint connection, it can be created over various types of bearer network.
The Architecture of MGCP
- The architecture does not involved in the frustrating work of encoding ,decoding and transfer of voice signals.
- The MGCP call agent works as a software switch for the VoIP network,.
- It does noting more than simply direct the media gateway and media signalling gateway which perform all the work.
- The main task of Call Agent is to implement numerous possibilities in the protocol.
- In every architecture, each and every components features a transaction ID, gets an anknowledgement and receives a responses.
- MGCP packets are generally found wrapped in UDP port 2427.
- An MGCP packer can either be a command or a response.
- Commands start with a four-letter verb while "responses" start with a three number response code.
Saturday, August 2, 2008
6. The Session Initiation Protocol(SIP)
SIP is an application layer signalling protocol used to establish, maintained and terminate multimedia session. It can also perform both unicast and multicast session and sipport user mobility. It can also handles signals and identifies user location , call setup , termination and busy signal.
Since 2007, SIP has become the defacto signalling standard for VoIP and multimedia communication. It has been said that SIP has been benefited by being an IETF standard, The IETF being quicker to adapt to industry forces than the ITU. SIP is supported by both standard committees, as in H.323.
SIP is a text based protocol that is part of an overall IETF multimedia architecture. The IETF also include Resource Reservation Protocol, Real-time Transport Protocol , RTSP and SAP, SPP. it in-coperate in conjunction with other signalling Protocol such as H.323.
SIP Messages
There are two kinds of SIP messages : request from client and responses returned from servers.
Every messages contain a header that describe the details of the link. It is also able to send message syntax and header fields identical to Hypertext Transfer Protocol(HTTP). Besides that, SIP messages can sent either over UDP or TCP with multiple messages carried in a single TCP connection or UDP datagram.
What are the Message header in SIP?
There are four groups of message header which are described below:
- General headers- Apply to request and responses
- Entity headers - Define information about the content in the body and the length
- Request headers - Enable user to include additional request information.
- Response headers - Enable server to include additional responses information.
There are 6 kind of message request. Theses are referred to as methods, enable user agents and network servers to locate, invite and handle calls.The six SIP message request are describe below:
1. Invite
This is used to indicate that user or service is invited to join in a session. It include session description, for two-way call, the calling party indicates the media type.The user can recognize the capabilities of the other end and open a conversation session with a limited number of messages and round trips.
2. ACK
It is a correspond to an Invite request. It also represent the final confirmation from the end system and conclude the traction initiated by the invite command. If the calling party includes a session description in the ACK request, no additional parameters are used in the session. If it is absent, the session parameters in Invite request are used as the default.
3.Options
Used to enable user to query and collect user agents and network server capabilities. However this is not used to establish session.
4.Bye
Used by calling and called parties to release a call. Before ending the call, the user agent sens this request to server to indicate that the desired to end this session.
5.Cancel
Enables user agent and server to cancel any progress request. It does not affect complete request in which the final response were already received.
6.Register
This is used by the client to register location information with SIP servers.
SIP Signalling Model
The following show the signalling model between 2 user:
The following diagram can be sumarized above:
- Firstly, the caller send a signal to establish using the INVITE message to the PBX of the callee.
- The invite message contain information such as from, to via and call-id,in addition to routing information.
- Next the proxy server will communicate with the server at the callee side.
- Once the callee received the message, it will then send a TRYING message to the caller from the proxy server, indicate the signal is being routed.It is also used to keep track of the call process.
- At the same time , a ringing signal is send form the callee to caller.
- When the callee accept the call, an OK signal is send to the caller to indicate that the called party has accept the call.
- The last signal is anknowledge by an ACK messge without any response.
- After that, both user can communicate directly through the media session.
- When the callee want to end the call, it will send a BYE message to terminate the session.
- After that, the caller will send a OK message and the call is terminate.
The components in SIP are:
1. User Agent
2.Back-to-Back User Agent
3.Proxy server
4.Redirect Server
5.Registrar server
1. User Agent
They are endpoint devices that initiate and terminate the session through a series of request/response quries. It can be an IP Phone and each devices can dind each other without the need of other entities.
2.Back-to-Back User Agent
It is an application that acts an intermediary between two endpoint. It also maintained the state of the call and responsible for call termination. It may function as a gateway representing as an endpoint on the IP side to an endpoint on the PSTN.
3.Proxy server
Translate request by passing hem to other SIP server by rewrite the message before passing it on if required. It can perform address translation within the domain by resolving the e-mail URL or telephone to IP address and use the DNS to find the SIP server outside the domain
It helps in call setup and termination, leaving call connect to the endpoints themselves.
4.Redirect Server
Maps a request from client to the URL of the party being called and send it back to the caller.
It does not pass request to other server.
5. Registrar Server
Register users into a databases as they come online. Information indicating the user identity and the devices on which they choose to be researched is stored by IP address, phone number or URL. Enable user to update their location.
Both Registrar and Redirect server are often resides on a SIP Proxy server.
Friday, July 25, 2008
5. The H.323 signaling protocol
- H.323
- Session Initiation Protocol(SIP)
- Media Gateway Control Protocol(MGCP)
H.323 components include the following:
- Terminals
- Gateway
- Gate keeper
- Multipoint control Units.
- It is an end point device such as IP telephone, softphone or a dedicated conferencing device.
- It is designed to support voice, data traffic and IP telephony.
- It mus H.245 for channel and negotiation, RAS(Registration Admission stations)
- Q931 is used for signalling and setup. It also provide setup and support RTP and RTCP on the stream of the media
- Terminals must support audio with video and data transmission.
- It perform call setup and tear down of the session between two parties
- It also help to translate audio and video signals.
- Besides that, it provide RAS for registration .
- It reflects the characteristics of a switched circuit network(SCN) endpoint and H.323 endpoint.
- Provides an interface between IP telephony system and PSTN.
- Can be implemented on a gate keeper , a MCU or on a voice enabled router and switch.
- Provides pre-call and call level control services to H.323 endpoints.
- It is separated from other network elements in H.323 environment.
- If more than one gatekeeper is used, an intercommunication is accomplished in an unspecified manner.
- Manage all the registered terminals, gateways and MCUs in a single H.323 zone.
- Services such as addressing, authorization of H.323 components , bandwidth management , accounting and billing can be configured on the gatekeeper.
- It can be implemented on a dedicated server.
- Support conferences between 3 or more endpoints in a multi point conference.
- Consists of a Multipoint controller(MC) and an optional Multipoint Processor(MP)
- The MC is responsible for H.245 functions while the optional MP handles the actual mixing of media streams to avoid bandwidth contention.
- It act as a bridge between centralized and decentralized enviornment.
- It receives audio, video and data and distribute them to endpoint participating in a multipoint conferences.
- Both MC and MP can resides on to a dedicated components , a gateway, terminals or gatekeeper. But it is recommended that MC be utilized on a gateway.
1. Call setup
2. Initial communication capability
3. Audio/video communication establishment
4. Communication
5. Call termination.
The requested bandwidth from the gateway granted the bandwidth if there are sufficient bandwidth, id not the call has to find another gatekeeper to register. This phase is handle by H.225 and H.245 protocols.
At step2, all the end point's communication are available over TCP. This phase is necessary as the type of communication service requested depends on the communication capabilities at both ends.
At Step3. it implements the establishment of a logical channel, which H.323 is unidirectional, so a logical channel must be establish in either direction in order to have a full duplex communication.But at the same time more band width is needed
Step 4 handles the communication between two user. This phases is control by using RTP over UDP. This step can be any kind of media flow depending on the size and type of the channel establish in step 4.
At step 5 , is the termination by either user and the termination is usually done by gatekeeper.
The following shows the signalling process of H.323:
The H.323 protocol suite is based on several protocols. The protocol family support admission, call setup, status ,tear-down , media streams and message in H.323 systems. These protocols are supported by both reliable and unreliable packet delivery mechanism over data networks.
Although most of the H.323 implement TCP as the transport protocols for signalling, H.323 version 2 does not implement TCP but instead use UDP as the transport protocol.
The following shows the H.323 protocol suite
Fig 5 H.323 Protocol suite
This protocol suit can be divided into three main areas of control:
- Registration, Admission , and Status(RAS) Signalling
- Call control Signalling
- Media control and Transport
4. VoIP Signalling Protocol
IP telephony signaling can either use a distributed or a centralized signaling scheme.
In distributed signaling scheme, it enable two IP Phone to communicated using a client/server model. It works well with VoIP network within a single company. In a centralized approach, it uses the conventional model and provides some level of guarantee. Signaling is usually done between two IP phones and each phones will exchange those packets to ensure there is a communication link.
In the next section, we are going to look at different types of signaling protocols used in IP telephony.
3. Packets
Another similar term to packet is called Datagram which is used in User Datagram protocol. Packet is usually transported using IP, and the re sequencing is usually done by Transmission Control Protocol.
The following diagram show the IP Packet format:
2. Differences between Packet switching and circuit switching.
Circuit switching is ideal when data must be transmitted quickly, arrive at a sequence order and at a constant rate. So, it is used for audio, video and real time application. This type of network is establish as a virtual circuit between endpoints and the single route which does not vary during connection and the nest connection may take a difference route.
The following diagram show an example of circuit switching network. In the diagram, the communication link is set by thick blue line for the conduit of data from device A to device B and a matching purple line form B to A. Once set up, all communication between devices take plcaes over the conduit , even though there are possible ways that data could be conceivably passed over the network of devices between them.
Fig 1 Circuit Switching Network
Packet switched network is a unified, integrated data between infrastructure that can provide a variety of communication services that needs a different bandwidth.. It keeps the connection long enough to send packets form one end to the other. It is used for the integration and transmission of voice and data . Besides that, it span a large geographical are and comprise a web switching nodes interconnected through transmission links. It allocate resources when required.
The following diagram show a packet switching network. In this network, no circuit is set to prior to sending data between devices. Blocks of data, even from the same file, may take any number of paths as it journey form one devices to another
Fig2 Packet Switching network
The advantage of packet switching is that both parties can transmit at different rates. But the problem is that too many packets can cause congestion and packets that cannot be stored or delivered might be discarded by the packet switching exchange.
VoIP uses packet switching as It needs to send those voice packets at a faster rate while the conventional telephone uses a circuit where it needs dedicated path between two user.
1. Introduction to VoIP - Voice over IP
In VoIP, voice are transported in packets form through the internet and usually an IP phone or software is used between two parties. These devices will convert the analog signal into digital format, followed by compression. The purpose of compression is to save bandwidth and the more it compressed, the lesser quality of the voice. After that, the binary value is input to a packetizer which consists of IP packets and transmit through the internet.
At the receiving end, the packets will input to a depacketizer that will only keep the payload. After that the payload(digital signal) is converted to analog signal using DAC and input to a standard.
In short, to transmit voice over the IP network, the three steps must be followed:
1. Digitization
2. Compression
3. Packetization
There are three methods of connecting to a VoIP network:
- Using a VoIP telephone
- Using a "normal" telephone with a VoIP adapter
- Using a computer with speakers and a microphone
VoIP telephone calls can be placed either to other VoIP devices, or to normal telephones on the PSTN (Public Switched Telephone Network).
There are two types of PSTN to VoIP services: Direct inward dialing and access numbers.
Direct Inward Dialing(DID) will connect a caller directly to the VoIP user ,while the access numbers need a caller to provide an extension number for the called VoIP user.