Delay - Jitter Estimation

1,011 views
Skip to first unread message

Griffinz

unread,
May 22, 2012, 2:51:27 AM5/22/12
to ns-3-...@googlegroups.com
Dear All,

I would like to calculate the packet end to end delay and jitter without using Flow monitor.
I did see the delay-jitter estimation module in the src/tools folder but I am not sure how to use it.
Please help me.

-- Griffinz

redfirehead

unread,
Nov 5, 2013, 10:47:21 AM11/5/13
to ns-3-...@googlegroups.com
Hello Griffinz,

I have the same problem.
Do you or someone else have an example how to use the DelayJitterEstimation class?

Regards,
Rene

raju_f7

unread,
Nov 5, 2013, 11:17:17 AM11/5/13
to ns-3-...@googlegroups.com
Hi Rene,
Can you tell me why you are not interested without using Flow Monitor to check delayJitter?Because for my sumulation, i am using flow monitor?Is there any benefit for that?
BR
Raju 

redfirehead

unread,
Nov 5, 2013, 1:42:40 PM11/5/13
to ns-3-...@googlegroups.com
Hi Raju,

Because the FlowMonitor displays only the mean values for delay, jitter aso.
But I need the values of each individual packet to calculate more statistical data such MIN, MAX, AVG, varince/distribution (PDF).

cheers,
Rene

Konstantinos

unread,
Nov 5, 2013, 2:14:05 PM11/5/13
to ns-3-...@googlegroups.com
Hi Rene,

I haven't used DelayJitterEstimation class my self but from the API, I figured out that you have to create one instance of the class and call the PrepareTx() method just before the packet is send, for example embed it in one of the traffic generator applications (e.g. OnOffApplication).

Then create another instance of the DelayJitterEstimation, and call the RecordRx() every time you receive a packet.

Then you can call the GetLastJitter to get the jitter of the packet.

redfirehead

unread,
Nov 5, 2013, 3:26:33 PM11/5/13
to ns-3-...@googlegroups.com
Hi Konstantinos,

Thanks for your hint. Yes you are right, it works that way.
In the meantime I found two over threads with examples of this class:

https://groups.google.com/forum/#!searchin/ns-3-users/delay$20estimation/ns-3-users/2YKYEA9kneg/u0GcdMEBhXUJ
https://groups.google.com/forum/#!searchin/ns-3-users/delay$20estimation/ns-3-users/nx9sYYH1tSM/1ikV7S4jy90J

raven

unread,
Nov 8, 2013, 1:55:10 AM11/8/13
to ns-3-...@googlegroups.com
Hi redfirehead ,

              First of all, you can write AWK script for calculating the jitter and script will read data from trace file generated after simulation According to your requirement.

Matija Naglic

unread,
Mar 5, 2015, 11:06:33 AM3/5/15
to ns-3-...@googlegroups.com
Hi all!

Have someone managed to join the  DelayJitterEstimation.cc with the OnOffHelper?

Some simple example for start would be good as well.

Thank you!


Matija

Tommaso Pecorella

unread,
Mar 5, 2015, 12:21:55 PM3/5/15
to ns-3-...@googlegroups.com
Hi,

Kostantino's suggestion is right, and you don't have to touch the helper. It's the application that have to be modified.
Please follow Kostantinos's suggestions (especially because he already gave the right suggestion).

T.

Matheus Portillo

unread,
Dec 9, 2015, 5:20:49 PM12/9/15
to ns-3-users
Hello

Matija is right.
Konstantinos said all one have to do is call PrepareTx through some Traffic Factory as OnOffApplication.
But apparently the only way to do so is to add a Callback to the sockets create by the Factory, and no socket Callback (DataSentCallback & SendCallback) function pass the packet reference that PrepareTx needs.

Can anyone correct me if I am wrong? Is the only solution to create a custom callback function?

Thanks a lot.
-m

Konstantinos

unread,
Dec 9, 2015, 5:40:51 PM12/9/15
to ns-3-users
Hi Matheus,

what do you mean that the only way to do so is to add a callback to the sockets?
Please give more details about your scenario. You can use the Tx trace source from the OnOffApplication to have a reference to the packet for your PrepareTx. 

Regards,
K

kAZEEM HAMMED

unread,
Dec 10, 2015, 5:02:25 AM12/10/15
to ns-3-users

Hi kostantinos, how do i vary the packet size of on/off helper.i noticed that the default packet sent and received is 488k. i want to measure some qos parameters of the mpls based network i developed

Konstantinos

unread,
Dec 10, 2015, 5:19:27 AM12/10/15
to ns-3-users
Hi Kazeem,

Please do not post your questions in unrelated threads. 
Before you ask a new question, please search the list. It has been discussed in the past.

The packet size is an attribute of the OnOffApplication, not the helper.
By default, the packet size is assumed to be fixed for the duration of the simulation. 
In order to change to dynamic packet size, you should introduce a random variable for it.

Also, note the default packet size is not 488k. Please check more carefully your scenario.

Regards,
K.
Reply all
Reply to author
Forward
0 new messages