VoIP tolerable latency and packet loss rate- configurable?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > WebserverTalk Community > Voice Over IP > Voice Over IP in UK > VoIP tolerable latency and packet loss rate- configurable?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    VoIP tolerable latency and packet loss rate- configurable?  
Vin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-07 12:11 AM

Hi All,

Got some questions about VoIP which I havent been able to figure out
yet and was hoping someone can clear it up for me.

I read about SIP and H.323 and what they do in terms of signaling and
setting up a session. Also RTP is the session protocol that actually
carries out the session in terms of transporting over UDP or TCP. What
I dont understand is who decides the quality issues about a call.

That is,

i) where is it configured that a packet should be dropped if it is
late by X seconds
ii) What is the tolerable packet loss rate and who specifies it. Based
on this the application can change the codec which provides better
packet loss concealement.

I understand that some of these decisions may be part of proprietary
code, but I do not understand where these fit in in terms of VoiP
protocol stack. Also, are there any VoiP clients out there whose above
two parameters are publicly known or can be configured by user? I want
to see how these two parameters affect quality of my call.

Vin






[ Post a follow-up to this message ]



    Re: VoIP tolerable latency and packet loss rate- configurable?  
Tim


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-07 12:11 AM

Vin wrote:
> I read about SIP and H.323 and what they do in terms of signaling and
> setting up a session. Also RTP is the session protocol that actually
> carries out the session in terms of transporting over UDP or TCP. What
> I dont understand is who decides the quality issues about a call.

RTP travels over UDP.

>
> That is,
>
> i) where is it configured that a packet should be dropped if it is
> late by X seconds

It isn't.  There are loads of places a packet could be dropped.

Most likely, a packet will get dropped if by a router on the way.  If
the routers packet buffer gets too full, it will drop the packet.
Depending on the type of router, this will be a hard limit (if buffer
full, ditch packet) or a softer limit.   Google for Random Early
Detection - this is where routers drop some packets as the buffers fill
up to avoid everything come to a hard stop.   TCP (ie not voip) sessions
will tend to slow down when the experience packet loss.

At the receiving end, the phone will buffer the incoming packets as it
receives them.  Into the incoming jitter buffer.  The buffer will have a
length of time from receiving a packet to playout out the audio.  Any
packets that arrive in this time can probably be fitted into places.  If
the packet is too late, it gets dropped - there is no point playing an
out of sequence packet.

Of course, some cheapy voip phones don't have jitter buffers.

Good devices have dynamic jitter buffers.  So if some packets are late,
then the receiver will grow the buffer to minimise the risk is missed.
A longer buffer leaves more time to receive inbound packets.

Of course there is a limit to how long the jitter buffer can grow before
the listener notices the latency on the line.



> ii) What is the tolerable packet loss rate and who specifies it. Based
> on this the application can change the codec which provides better
> packet loss concealement.

Nobody specifies it.   You can pretty much hear any loss to some degree.

Remember that almost all routers on the internet do not care what
protocol a packet is carrying.  They look up the destination IP in their
routing table and spew the packet out in the right direction.

At the moment, I don't know of any VoIP devices that will change codec
mid-call when faced with network problems.  It really would be neat.

Problem is, the phone doesn't know that packet loss is caused by a
congested network link or whether it is caused by a faulty network link.
If a 100 Mbs connection somewhere in your ISP is congested, then
changing the call to a low rate codec is not going to make enough
difference to be noticeable.


Tim







[ Post a follow-up to this message ]



    Re: VoIP tolerable latency and packet loss rate- configurable?  
Vin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-07 12:11 AM

 
>

> At the receiving end, the phone will buffer the incoming packets as it
> receives them.  Into the incoming jitter buffer.  The buffer will have a
> length of time from receiving a packet to playout out the audio.  Any
> packets that arrive in this time can probably be fitted into places.  If
> the packet is too late, it gets dropped - there is no point playing an
> out of sequence packet.
>
> Of course, some cheapy voip phones don't have jitter buffers.
>
> Good devices have dynamic jitter buffers.  So if some packets are late,
> then the receiver will grow the buffer to minimise the risk is missed.
> A longer buffer leaves more time to receive inbound packets.
>
> Of course there is a limit to how long the jitter buffer can grow before
> the listener notices the latency on the line.

Good explanation but got more questions on those when I think about
it. I believe it is the software on a device that implements jitter
buffer, so shouldnt it be more accurate to say the application's
jitter buffer? As I see it, there is a tolerable latency above which
the delay exceeds the maximum size of jitter buffer and packet is
dropped. But isn't that upto the user to decide based on the quality
of service he desires (or pays for)? So does anyone know what VoiP
applications out there use for these things and how QoS is done? Also
where does one implement it? For example, consider skype. Do the
developers of skype applications decide what is maximum size of jitter
buffer to use?

 
>
> Nobody specifies it.   You can pretty much hear any loss to some degree.
>
> At the moment, I don't know of any VoIP devices that will change codec
> mid-call when faced with network problems.  It really would be neat.

Skype does this, and it is well documented in some research papers.
But again, skype is an application not a device. Shouldnt we be
talking of applications rather than devices? Correct me if I am wrong.

So I am looking for osme application in which  I can decide how much
late the packets can be before my phone/application has to drop it.
Also, it would be neat if I can specify how much loss I would tolerate
for my calls. Isn't there anything out there for such preferences? I
looked at some Open Source VoIP clients, but was more confused after
that.

Vin






[ Post a follow-up to this message ]



    Re: VoIP tolerable latency and packet loss rate- configurable?  
Tim


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-26-07 12:11 PM

Vin wrote:
> Also, it would be neat if I can specify how much loss I would tolerate
> for my calls. Isn't there anything out there for such preferences? I
> looked at some Open Source VoIP clients, but was more confused after
> that.
>

It looks like you are thinking that you should be able to specify a
maximum packet loss/jitter from your ISP.

Nobody offers a service like this at all.


On the other hand, on any decent ISP the packet loss will be none, and
the jitter will only be around the serialisation delay as packets pass
through routers.

That it until you overload your connection.

Tim





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:15 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register