VOIP - iCONS

Download Report

Transcript VOIP - iCONS

VOIP
Packet loss, packet labeling and
packet classification
An T. Le
An T. Le - USF 2006 - VoIP Packet...
1
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 2006 - VoIP Packet...
2
OSI 7 layers model
Data flow
AH
DATA
PH AH
DATA
SH PH AH
DATA
TH SH PH AH
DATA
Network
NH TH SH PH AH
DATA
Data link
DH NH TH SH PH AH
DATA
Application
Presentation
Session
Transport
Physical
FH DH NH
TH SH PH AH
DATA
OSI model - Data flow
An T. Le - USF 2006 - VoIP Packet...
OSI
Internet Suite
Application
Application
Presentation
Session
Transport
Transport
Network
Internet
Data link
Host - to - Network
Physical
OSI vs Internet
3
IP packets
Bit:
0
4
Version
8
IHL
16
Type of Service
20 octets
Indentification
Time to live
19
32
Total lenght
Flag
Protocol
Fragment offset
64
Header checksum
96
Source address
128
Destination address
160
Options + Padding
IPv4 Header
Bit:
0
4
Version
12
16
24
Traffic class
Payload lenght
32
Flow label
Next Header
Hop limit
64
96
40 octets
128
Source address
160
192
224
256
Destination address
288
320
IPv6 Header
An T. Le - USF 2006 - VoIP Packet...
4
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 2006 - VoIP Packet...
5
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 2006 - VoIP Packet...
6
VoIP – End to End Stream
A/D
Coding
(Compressing)
Packetize
IP
Network
D/A
UnPacketize
An T. Le - USF 2006 - VoIP Packet...
DeCoding
(DeCompressing)
7
VoIP – End to End Stream with
delay
A/D
Coding
(Compressing)
Packetize
IP
Network
D/A
UnPacketize
An T. Le - USF 2006 - VoIP Packet...
DeCoding
(DeCompressing)
8
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 2006 - VoIP Packet...
9
Packet loss Ratio and QoS

Packet loss vs MOS (Mean of Opinion Score)

(source: http://www.kineto.com )
An T. Le - USF 2006 - VoIP Packet...
10
Paket loss Ratio and QoS:
Reconstruction and examples
Reconstruction:
1
2
1
3
4
5
6
2
4
5
1
2
4
1
2
4
2
7
8
9
Send
6
8
9
Received
5
6
8
9
Silent insertion
5
6
8
9
Repeat last packet
6
If packet is large, interleaving is may not used due to real time
is requested
Samples: http://www.voiptroubleshooter.com
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 2006 - VoIP Packet...
11
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 2006 - VoIP Packet...
12
Loss caused by delay


Congestion will cause delay then loss
Quality of transmission link:

Capacity=BW.log2(1+SNR)


SNR is not independently with BW
Improve SNR by repeater with amplifier
An T. Le - USF 2006 - VoIP Packet...
13
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 = 8000+320/0.1 = 11.2kbps (with G.729)
 Avg = 64000+320/0.02 = 80kbps (with G.711)
Delay threshold (max = 240ms ?)
MOS threshold (min=3 ?)
An T. Le - USF 2006 - VoIP Packet...
14
VoIP – Bandwidth request
BW (bps)
BW = R + H/l
BW: Minimum bandwidth request
R : CODEC bitrate
H: VoIP header (320 bits)
R
l (sec)
An T. Le - USF 2006 - VoIP Packet...
15
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:
R = RO - IS - ID - IE-EFF + A
where
 RO is the basic signal-to-noise ratio,
 IS
is a sum of all impairments occurring during speech transmission,
 ID
is a degradation factor representing all impairments caused by the
voice signal delay,
 IE-EFF includes packet loss,
 A
is an advantage factor (permitted range is from 0 to 20)
An T. Le - USF 2006 - VoIP Packet...
16
Acceptable MOS and R Scores for
Narrowband CODECs
(source: voicetroubeshooter.com)
User Opinion
R Factor
MOS Score
Maximum obtainable for G.711
93
4.4
Very satisfied
90-100
4.3-5.0
Satisfied
80-90
4.0-4.3
Some users satisfied
70-80
3.6-4.0
Many users dissatisfied
60-70
3.1-3.6
Nearly all users dissatisfied
50-60
2.6-3.1
Not recommended
0 - 50
1.0-2.6
An T. Le - USF 2006 - VoIP Packet...
17
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 2006 - VoIP Packet...
18
Packet labeling
Packet classification (cont)

Bit 8-15 in IP header:
TOS: Type of Service
00
01
02
Precedence
03
04
05
06
07
D
T
R
M
0
Precedence. 3 bits.
D. 1 bit. Minimize delay.
Value
Value
Description
Value
Description
Description
T. 1 bit. Maximize throughput.
0
Routine.
0
Normal delay.
0
Normal throughput.
1
Priority.
1
Low delay.
1
High throughput.
2
Immediate.
3
Flash.
4
Flash override.
5
CRITIC/ECP.
6
7
R. 1 bit. Maximize reliability.
M. 1 bit. Minimize monetary cost.
Value
Description
Value
Internetwork control.
0
Normal reliability.
0
Normal monetary cost.
Network control.
1
High reliability.
1
Minimize monetary cost.
An T. Le - USF 2006 - VoIP Packet...
Description
19
Packet labeling
Packet classification (cont)

RTP header, the use of PT
(Payload Type) bits (9-15)
PT
Name
Type
Clock rate
(Hz)
Audio
channels
References
0
PCMU
Audio
8000
1
RFC 3551
3
GSM
Audio
8000
1
RFC 3551
7
LPC
Audio
8000
1
RFC 3551
8
PCMA
Audio
8000
1
RFC 3551
12
QCELP
Audio
8000
1
18
G729
Audio
8000
1
19
reserved
Audio
20- 24
27
29- 30
35-71
77-95
An T. Le - USF 2006 - VoIP Packet...
20
Packet labeling
Packet classification (cont)

Use of UDP header
Source Port
Destination Port
Length
Checksum
Data:::
An T. Le - USF 2006 - VoIP Packet...
21
Packet labeling
Packet classification (cont)

Use of Payload ?
An T. Le - USF 2006 - VoIP Packet...
22
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 2006 - VoIP Packet...
23
Reference

1- Voice over Internet protocol (VoIP)
Goode, B.;
Proceedings of the IEEE
Volume 90, Issue 9, Sept. 2002 Page(s):1495 - 1517
Performance comparison between VBR speech coders for adaptive VoIP applications
Beritelli, F.; Casale, S.; Ruggeri, G.;
Communications Letters, IEEE Volume 5, Issue 10, Oct. 2001 Page(s):423 - 425
Congestion Avoidance Using DYnamic COdec MAnagement: A solution for ISP
Alcuri, L.; Saitta, F.; Fasciana, M.L.;
Communications, 2005 Asia-Pacific Conference on 03-05 Oct. 2005 Page(s):886 - 890
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, 2004. ICME '04. 2004 IEEE International Conference on Volume 3, 27-30 June
2004 Page(s):1667 - 1670 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, 2003. HAVE 2003. Proceedings. The 2nd
IEEE Internatioal Workshop on 20-21 Sept. 2003 Page(s):49 - 54
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. 2005 Page(s):35 - 42
Digital Object Identifier 10.1109/MIC.2005.92
…….

Others listed in this presentation






An T. Le - USF 2006 - VoIP Packet...
24

THANK YOU
An T. Le - USF 2006 - VoIP Packet...
25