Points for havman56

Posted on 2002-06-06
Last Modified: 2010-04-02

Hi havman56,

Thank for helping . I have a other 500 points-question for you . I need source code calculate the latency of array of rtp packets .

Note :

1. The array of packets can  have some lost packets .
2. Maybe, that function needs more information . You can add information as parameters

Thank for reading.

Question by:thienpnguyen
  • 6

Accepted Solution

havman56 earned 200 total points
ID: 7059600

nice to get a question pointed on me.

sure i will do for u with pleasure. i dont have any code as of now.i ned to write it!

but i have coded for RTP before 1 year. i will recollect it and i will do the needful for me.

apart from this serah the web

there is a library available for RTP from lucent website.
u can use it !it works fine...



Author Comment

ID: 7059877
Thank for reply as soon as posible .

When you have the source code, please post it at here . I will make some "dummy" questions to give points to you .


Expert Comment

ID: 7061105

i will post it! when is finished writing RTP code
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Expert Comment

ID: 7066086

i am working on it!

may be after 2 days i will post here!
This is to inform u that i have not forgoted ur queery...

Expert Comment

ID: 7066890
      Author          : Mangal Dass P
     Date          : 23rd may 2000
     Description : This gives the inter arrival jitter of RTP packets

     Description     :  An estimate of the statistical variance of the RTP data packet
        interarrival time, measured in timestamp units and expressed as
        an unsigned integer. The interarrival jitter J is defined to be
        the mean deviation (smoothed absolute value) of the difference D
        in packet spacing at the receiver compared to the sender for a
        pair of packets. As shown in the equation below, this is
        equivalent to the difference in the "relative transit time" for
        the two packets; the relative transit time is the difference
        between a packet's RTP timestamp and the receiver's clock at the
        time of arrival, measured in the same units.
     Environment : MS VCcompiler

     Recommenadtion :
                    not tested needs more improvement. initial version without timing behaviour

     Email          :


#include "rtp.h"

RTP_PACKET  s[2],r[2];

int arrival=150;

     int transit;
     int d;
     int i;

 * Initialsiing the values of timestamp but the
 * real time operation is not considered here purely
 * aribitarly values in ms. the values may be wrong too.


 * assume there are 3 packets both in sender and reciver

/* arrival is  defined as the time at which packet
 * reaches the destination.
 * reciver Time stamp is defined as the time at which
 * clock of reciver places the value at the packet
          transit = arrival - r[i].ts;

 * d is teh delay between transit delay and the initial time stamp of the sender
          d= transit- s[i].transit;

 *  for the next iteration ie fro next packet

 * jitter is calculated by using the formula here.

          s[i+1].jitter += (1./16.) * ((double)d - s[i].jitter);

          arrival= arrival + d;





Expert Comment

ID: 7066893
still not completed.. yet to be solved ...

   typedef struct _RTP_PACKET
       unsigned short int ts;               /* timestamp */
       unsigned short int transit;
        float jitter;

Expert Comment

ID: 7078134
post ur comments!!
i need ur input before proceeding...


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question