Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# How can calculate the jitter for VOIP ? (200 --> 400 points for this question)

Posted on 2002-04-02
Medium Priority
1,447 Views
I search on internet and find some formula for calculating the jiter buffer as following

The mean deviation of the difference in packet spacing at the receiver
Si = the RTP timestamp for packet I
Ri = the time of arrival
D(i,j) = (Rj-Sj) - (Ri- Si)
The Jitter is calculated continuously
J(i) = J(i-1) + (| D(i-1,i) | - J(i-1))/16

However, I  don't know it is correct or not .
Could some experts give me the formula and show examples in all different cases (have and don't have package lost ...)

Note : if it is a very good comment or this is a hard question,
I will give 200 points bonus ==> 400 points for this question.
0
Question by:thienpnguyen
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 4

Accepted Solution

havman56 earned 800 total points
ID: 6917373
hi
from rfc 1889

The code fragments below implement the algorithm given in Section 6.3.1 for calculating an estimate of the statistical variance of the RTP data interarrival time to be inserted in the interarrival jitter field of reception reports. The inputs are r->ts , the timestamp from the incoming packet, and arrival , the current time in the same units. Here s points to state for the source; s->transit holds the relative transit time for the previous packet, and s->jitter holds the estimated jitter. The jitter field of the reception report is measured in timestamp units and expressed as an unsigned integer, but the jitter estimate is kept in a floating point. As each data packet arrives, the jitter estimate is updated:
int transit = arrival - r->ts;
int d = transit - s->transit;
s->transit = transit;
if (d < 0) d = -d;
s->jitter += (1./16.) * ((double)d - s->jitter);
When a reception report block (to which rr points) is generated for this member, the current jitter estimate is returned:

rr->jitter = (u_int32) s->jitter;
Alternatively, the jitter estimate can be kept as an integer, but scaled to reduce round-off error. The calculation is the same except for the last line:

s->jitter += d - ((s->jitter + 8) >> 4);
In this case, the estimate is sampled for the reception report as:
rr->jitter = s->jitter >> 4;

0

LVL 11

Expert Comment

ID: 6957202
Dear thienpnguyen

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

"havman56"

If you think your question was not answered at all, you can post a request in Community support (please include this link) to refund your points. The link to the Community Support area is: http://www.experts-exchange.com/commspt/

======
Werner
0

LVL 6

Author Comment

ID: 6962008
havman56,

Your commnet is good. I need to ask you to explain more. However, I am busy at this time . Please , accept 200 points at this time . If I don't have any more question about "jitter buffer" , I will give you remain points .

Thank again.
0

LVL 4

Expert Comment

ID: 6962139
hai thienpnguyen,

thanks for points...

i worked on VOIP for 6 months . if u have any querry i will try my best to solve.
H245,q931 and RTP are some subjects i can help u.
but RAS in h.225 i dont have any idea.

that to more design oriented question i can help u.

but the answer what i have given here is from RFC 1899 .
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
###### Suggested Courses
Course of the Month5 days, 13 hours left to enroll