An T. Le - USF VoIP Packet...1 VOIP Packet loss, packet labeling and packet classification An T. Le
An T. Le - USF VoIP Packet...2 VoIP Properties Real-time stream requested Typical Internet applications use TCP/IP, whereas VoIP uses RTP/UDP/IP. In VoIP, voice is sending over IP network in IP packets. Latency Packet Loss …There will be no “re-send please” in VoIP
An T. Le - USF VoIP Packet...3 OSI 7 layers model
An T. Le - USF VoIP Packet...4 IP packets
An T. Le - USF VoIP Packet...5 VoIP packet size VoIP packet size is very important. The packet size relates to the delay times that needs for sending and receiving packet The lost of packets is impacting to the quality of reconstructed voice stream. S = VoIP size = Playload + RTP header + UDP/IP header S = s+12bytes+28bytes S = s+40bytes = s + 320bits Headers size is large, payload size (s) is expected small enough to reduce delay time
An T. Le - USF VoIP Packet...6 VoIP bandwidth request R=CODEC rate (bps) n= number of packet in second n=R/s where s is a size of payload in second If s=R then n=1 (badly delay) H= Header size BW= n(R/n+H) = R(1+H/s) Examples: If R=64kbps, s=1.28kbps (n=50 or length of payload is 20ms) then R=(64k+40*8*50)=80kbps If R=64kbps, s=0.64kbps (n=100 or length of payload is 10ms) then R=(64k+40*8*100)=96kbps
An T. Le - USF VoIP Packet...7 VoIP – End to End Stream
An T. Le - USF VoIP Packet...8 VoIP – End to End Stream with delay
An T. Le - USF VoIP Packet...9 VoIP’s QoS Latency (end to end) CODE and DECODE processing delays Completed (Header + payload) transfer delays Application delays Propagation delays … Packet loss Lost in transmission Lost in congestion (jitter) …Lost a bit in header - lost a packet
An T. Le - USF VoIP Packet...10 Packet loss Ratio and QoS Packet loss vs MOS (Mean of Opinion Score) (source: )
An T. Le - USF VoIP Packet...11 Paket loss Ratio and QoS: Reconstruction and examples Reconstruction: If packet is large, interleaving is may not used due to real time is requested Samples: Silence Insertion Replay last packet G.711 Appendix 1 5% loss rate 10% loss rate 20% loss rate 40% loss rate
An T. Le - USF VoIP Packet...12 Packet loss analysis Lost by delay: As a real-time system, a long delay packet (>500ms) is considered as loss. Lost by bad receiving: Uncompleted header packet, consider as loss Uncompleted payload packet, consider as loss if using any LPC codec
An T. Le - USF VoIP Packet...13 Loss caused by delay Congestion will cause delay then loss Quality of transmission link: Capacity=BW.log 2 (1+SNR) SNR is not independently with BW Improve SNR by repeater with amplifier
An T. Le - USF VoIP Packet...14 Optimal Packetization in VoIP Optimal packet’s size to reduce end to end delay Optimal packet’s size to minimum loss ratio (usually that makes packet smaller) Three main (but not independently) parameters Bandwidth budget Min = /0.1 = 11.2kbps (with G.729) Avg = /0.02 = 80kbps (with G.711) Delay threshold (max = 240ms ?) MOS threshold (min=3 ?)
An T. Le - USF VoIP Packet...15 VoIP – Bandwidth request
An T. Le - USF VoIP Packet...16 R-factor vs MOS An IP phone monitoring application using the SNMP The R-factor is described in the ITU-T G.107 recommendation which defines a computing model known as an E-model. The R-factor is a well-tried tool for transmission planning and for determining the combined impact of various transmission parameters which influence the call quality. All appropriate transmission parameters are put together to calculate the R-factor as follows: E-EFF R = RO - IS - ID - I E-EFF + A where ROis the basic signal-to-noise ratio, ISis a sum of all impairments occurring during speech transmission, IDis a degradation factor representing all impairments caused by the voice signal delay, I E-EFF includes packet loss, A is an advantage factor (permitted range is from 0 to 20)
An T. Le - USF VoIP Packet...17 Acceptable MOS and R Scores for Narrowband CODECs (source: voicetroubeshooter.com) User OpinionR FactorMOS Score Maximum obtainable for G Very satisfied Satisfied Some users satisfied Many users dissatisfied Nearly all users dissatisfied Not recommended
An T. Le - USF VoIP Packet...18 Packet labeling Packet classification Concern about Class of Service (CoS) Fast detect Packet class Give a label to packet Use Packet classification Packet labeling can be done by HW or SW Packet classification, usually, done by HW (Programmable Logic Controller)
An T. Le - USF VoIP Packet...19 Packet labeling Packet classification (cont) Bit 8-15 in IP header: TOS: Type of Service PrecedenceDTRM0 Precedence. 3 bits. ValueDescription 0Routine. 1Priority. 2Immediate. 3Flash. 4Flash override. 5CRITIC/ECP. 6Internetwork control. 7Network control. D. 1 bit. Minimize delay. ValueDescription 0Normal delay. 1Low delay. T. 1 bit. Maximize throughput. ValueDescription 0Normal throughput. 1High throughput. R. 1 bit. Maximize reliability. ValueDescription 0Normal reliability. 1High reliability. M. 1 bit. Minimize monetary cost. ValueDescription 0Normal monetary cost. 1Minimize monetary cost.
An T. Le - USF VoIP Packet...20 Packet labeling Packet classification (cont) RTP header, the use of PT (Payload Type) bits (9-15) PTNameType Clock rate (Hz) Audio channels References 0PCMUAudio80001RFC GSMAudio80001RFC LPCAudio80001RFC PCMAAudio80001RFC QCELPAudio G729Audio reservedAudio
An T. Le - USF VoIP Packet...21 Packet labeling Packet classification (cont) Use of UDP header Source PortDestination Port LengthChecksum Data:::
An T. Le - USF VoIP Packet...22 Packet labeling Packet classification (cont) Use of Payload ?
An T. Le - USF VoIP Packet...23 Conclusion Packet loss by processing by end to end delay by congestion by bad transceiver and link Solutions for packet loss Use “good" CODEC Optimal packet (based on Bandwidth, CODEC, desire of delay and MOS Need of Real time QoS monitor and adaptive variable packet size protocol. Packet labeling and classification Fast packet class detection
An T. Le - USF VoIP Packet...24 Reference 1- Voice over Internet protocol (VoIP) Goode, B.; Proceedings of the IEEE Volume 90, Issue 9, Sept Page(s): Performance comparison between VBR speech coders for adaptive VoIP applications Beritelli, F.; Casale, S.; Ruggeri, G.; Communications Letters, IEEE Volume 5, Issue 10, Oct Page(s): Congestion Avoidance Using DYnamic COdec MAnagement: A solution for ISP Alcuri, L.; Saitta, F.; Fasciana, M.L.; Communications, 2005 Asia-Pacific Conference on Oct Page(s): On packet loss concealment artifacts and their implications for packet labeling in voice over IP Praestholm, S.; Jensen, S.S.; Andersen, S.V.; Murthi, M.N.; Multimedia and Expo, ICME ' IEEE International Conference on Volume 3, June 2004 Page(s): Vol.3 Assessment of effects of packet loss on speech quality in VoIP Ding, L.; Goubran, R.A.; Haptic, Audio and Visual Environments and Their Applications, HAVE Proceedings. The 2nd IEEE Internatioal Workshop on Sept Page(s): Voice-quality monitoring and control for VoIP Manousos, M.; Apostolacos, S.; Grammatikakis, I.; Mexis, D.; Kagklis, D.; Sykas, E.; Internet Computing, IEEE, Volume 9, Issue 4, July-Aug Page(s): Digital Object Identifier /MIC ……. Others listed in this presentation
An T. Le - USF VoIP Packet...25 THANK YOU