Our recent tests showed that latest enterprise gradeÂ 802.11 AC access pointsÂ are capable of delivering cumulative throughput of the order of up toÂ 300 Mbps, with 100 concurrent usersÂ in real life situations. So what would you expect if we do aÂ concurrent VoIP call testÂ which needs a cumulative throughput of just 150 Mbps.Â This should be a cake walk for the access point, right??
The reality may be far away from expectation!!!Â Throughput may not be a good indicator of access point performance when the application is VoIP.
Letâ€™s see whatâ€™s so special with VoIP!
Voice over Internet Protocol (VoIP)Â is a technology that allows you to make voice/telephone calls using a broadband Internet connection instead of a regular phone line, which has been the method used for the last hundred years or so.
Early VoIP deployments started in 2004. VoIP picked up for the primary reason that it is low cost to the end user as it rides on existing multi-purpose IP networks. Businesses are migrating from traditional telephone systems to VoIP systems to reduce their monthly phone costs. In 2008,Â 80% of all newÂ (PBX) linesÂ installed internationally wereÂ VoIP!
At a high level, what is needed to implement VoIP protocol is similar to traditional telephony. It involves signaling, channel setup, digitization of the analog voice signals, and encoding. They transport audio streams using special media delivery protocols that encode audio with audio codecs. Various codecs exist that optimize the media stream based on application requirements and network bandwidth
VoIP as a protocol has multiple implementations. In the early 2000s, while I was working on implementing VoIP over 3G Phone, H.323 standard was used. Then technology moved on and players like Skype implemented their own methods. Among the standard protocols today, SIP is the most popular method of implementing VoIP.
Session Initiation ProtocolÂ (SIP)Â is a text-based, application-layer control protocol that can be used to establish, maintain, and terminate calls between two or more endpoints.
- DoesÂ necessary signalingÂ to locate and invite the target endpoint based on address
- Determines the lowest level of common services between the endpoints through Session Description Protocol (SDP) and then establishes a two-way voice path viaÂ Real-time Transport Protocol (RTP).
- Handles theÂ terminationÂ of the call.
So it looks all awesome. We engineers have figured out everything and at low cost !! Is there a catch?
Yes, there is a catch and it is in theÂ reliability!
Communication on the IP network is less reliable because it does not provide a network-based mechanism to ensure that data packets are not lost, and are delivered in sequential order. It is a best-effort network without fundamentalÂ Quality of Service (QoS)Â guarantees. Voice, and all other data, travel in packets over IP networks with fixed maximum capacity. A circuit switched system of insufficient capacity will refuse new connections while carrying the remainder without impairment, while the quality of real-time data such as telephone conversations on packet-switched networks degrades dramatically. Network routers on high volume traffic links may introduce latency that exceeds permissible thresholds for VoIP. Also, this latency is dynamic and may be different over time leading to Jitter in voice. Also when the load on a link grows so quickly that the queues in the network routers overflow, data packets are lost.
Therefore, VoIP implementations may face problems which are measured as follows
- Packet Loss percentageÂ â€“ This is the percentage of packets that never made it from the sender, to the target server (or intermediate hop).
- Average LatencyÂ â€“ The average latency is the average (mean) time it takes a packet to get from your computer to the target server, and then back again.
- JitterÂ â€“Â Jitter is a measurement of how much latency changes, from sample to sample. A low jitter number indicates a solid, good connection.
All these problems are further accelerated when the network is Wireless. In Wireless, the effective bandwidth is lower. Further, it is carrier sense based shared medium and all VoIP calls in the vicinity will compete for the same resources causing further contention. One can not solve that problem by putting more access points as deployment experience has proven that it can worsen the situation due to interference.
Nothing you run on your wireless is more demanding than real-time applications.
So since it is established that reliability is an issue and we want to improve it, various questions arise.
- What is the target for this reliability?
- How do we measure the performance?
- How do we quantitatively benchmark?
- How do we ensure/improve it?
Letâ€™s shift our focus for once from networking guys to the end user. In theÂ end user perspective, he/she does not want to be bothered with these details. As per user, the call is good if it is as good as standard PSTN calls. So I guess we have our reliability target!
How do we measure it?
MOS (Mean Opinion Score)Â is a voice call quality metric. It is used by the VoIP industry to put a number on voice quality. In reality, this number is a subjective â€˜opinionâ€™ rating of call quality given by someone who was just on a voice call.
The user should make a call and rate it from 1 to 5. When many such calls are rated in a system and averaged by different people we arrive at a score, which will be somewhere between 1 and 5. This is calledÂ Mean Opinion Score.
5 â€“ Excellent
4 â€“ Good
3 â€“ Fair
2 â€“ Poor
1 â€“ Bad
However, it may be cumbersome to evaluate with this method as we will need to test a large number of concurrent calls. This will need a lot of trained resources to subjectively score. To handle this issue, the specification body has come up withÂ quantitative MOS measures.
The ITU P.861 (PSQM) and P.862 standards explain how to estimate MOS scores based onÂ Latency, Jitter and Packet Loss. Following steps are involved
effectiveLatency = latency + jitter *Â latencyImpactÂ +Â compTime
Jitter has more impact than latency, so the jitter is scaled up by latencyImpact (e.g. doubled) and then summed up with latency. A defined value for computation time is added (e.g., 10ms).The resulting number is called â€œeffective latencyâ€.
Quality Measure R = 100 â€“ (effectiveLatencyÂ /Â factorLatencyBased)
Arrive at an overall Quality Measure R, which in theory ranges from 0 to 100.
There is some loss at codec level itself so the starting number is typically not 100 and is smaller (e.g. 93 for G.711 Audio Codec).
Then need to subtract the quality loss due to latency. Factor LatencyBased may be slab based. R gets a much more aggressive deduction if latency exceeds a certain time.
R = R â€“Â (lostPackets*Â packetLossImpact)
Depending on what impact packet loss should have, it is multiplied with a certain factor (e.g. 2.5)
MOS = ( (R â€“ 60) * (100 â€“ R) * 0.000007R) + 0.035R + 1
Finally, the reduced R is converted into an MOS value by applying a widely used formula for this purpose.
The scaling factors used in above formulas i.e. latency Impact, compTime, factorLatencyBased, packetLossImpact need to be arrived by training the above model with subjective scores for a given system under measurement.
Now we know that we need to chase MOS and how to measure it objectively.
Now the quest remains, how do we getÂ better MOS for VoIP?
- Better deployment Planning
- Usage of Survey tools
- Usage of monitoring tools
ANDÂ There is a strong need to do thorough testing and standard throughput, radio signal tests are not sufficient.
We are in the process of conducting such tests and will share our test framework, rating method and the test results in our next blog.