how i modify the original DSDV

405 views
Skip to first unread message

RaHeM

unread,
May 18, 2013, 6:18:05 AM5/18/13
to ns-3-...@googlegroups.com
hi

i want to modify the original DSDV in routing section, can i override model such as dsdv-routing-protocol.h ? 
why DSDV-example not used DSDV library such as   dsdv-routing-protocol.h ?

tnx

Konstantinos

unread,
May 19, 2013, 8:03:52 AM5/19/13
to ns-3-...@googlegroups.com
Hi 

On Saturday, May 18, 2013 11:18:05 AM UTC+1, RaHeM wrote:
hi

i want to modify the original DSDV in routing section, can i override model such as dsdv-routing-protocol.h ?
 
Yes, NS-3 is an open source project, so you can do any modification you like.

 
why DSDV-example not used DSDV library such as   dsdv-routing-protocol.h ?


What do you mean the example does not use the DSDV library? Which example? It may use other header files that include this one (e.g. dsdv-module.h).
 
tnx

RaHeM

unread,
May 20, 2013, 3:45:02 AM5/20/13
to ns-3-...@googlegroups.com
hi
tnx dear friend 

i wanna ask you more about ns3 - im new in ns3 

i wanna trace tr file for packet delivery ratio , overhead and so on , what can i do ? is there a special tool for that ? i used tracemetric but it dose not work correctly. 

i wanna create a modification of DSDV , should i create a module for that ? how can i do this ? 

Answers to these questions will help me a lot 

yours respectfully 

Konstantinos

unread,
May 20, 2013, 5:53:35 AM5/20/13
to ns-3-...@googlegroups.com


On Monday, 20 May 2013 08:45:02 UTC+1, RaHeM wrote:
hi
tnx dear friend 

i wanna ask you more about ns3 - im new in ns3 

i wanna trace tr file for packet delivery ratio , overhead and so on , what can i do ? is there a special tool for that ? i used tracemetric but it dose not work correctly. 

What did not work correctly? What was the problem? If you think that your trace file is correct and the tracemetric tool is wrong, try to create your own parser with simple scripting (e.g. awk)
Have you tried FlowMonitor class in NS-3? (http://telecom.inescporto.pt/~gjc/flowmon-presentation.pdf)
 

i wanna create a modification of DSDV , should i create a module for that ? how can i do this ? 


It is totally up to you. If you want later to compare the original DSDV with your implementation, then I would recommend to create a new module. Read the documentation on how to do that (http://www.nsnam.org/docs/manual/html/support.html). Generally creating your own module is better because you understand and you know what you have written where as if you take the code of someone else you do not know everything.

RaHeM

unread,
May 20, 2013, 6:23:36 AM5/20/13
to ns-3-...@googlegroups.com
thanks for your help

size of my tr file about 11 GB . its so big file and tracemetrics can not open this file and creates bugs.

how can i write awk script ? what is the best way to trace tr file ? is any tutorial about awk? do i exact whole information (such as packet delivery ratio , end to end delay , overhead , drops) with flowmonitor from tr file ?

Konstantinos

unread,
May 20, 2013, 7:24:24 AM5/20/13
to ns-3-...@googlegroups.com
On Monday, May 20, 2013 11:23:36 AM UTC+1, RaHeM wrote:
thanks for your help

size of my tr file about 11 GB . its so big file and tracemetrics can not open this file and creates bugs.
 
11GB trace file?? How many nodes do you have? How many seconds is your scenario running?
 

One question at a time....

how can i write awk script ?

Tutorial on AWK scripting: http://www.grymoire.com/Unix/Awk.html 
If you search online you have find hundreds of other tutorial. This was just the first that came up
 
what is the best way to trace tr file ?

Since you have such a big trace file, the best way is with some scripting (awk, python, shell etc) These tools are fast and do not consume much memory.
 
is any tutorial about awk?

See the first question
 
do i exact whole information (such as packet delivery ratio , end to end delay , overhead , drops) with flowmonitor from tr file ?

Have you read the link I forwarded you? If you use FlowMonitor you do not need to create trace files.  

RaHeM

unread,
May 20, 2013, 7:54:07 AM5/20/13
to ns-3-...@googlegroups.com
i just run original DSDV in fallowing parameters :
node               100
wifi sink node   30
speed              20
250s simulation time
8kbps cbr traffic rate default
11 mbps phy - link layer 
2 mbps cbr threshold
2 puse time
1000*1000 room size
512 packet size
15 time interval
6 setting time
50 data start (time at which nodes start to transmit data)

my tr file about 11 gb ! it is correct ? what is the cbr threshold ? is it bandwidth ?

tnx again for you help

RaHeM

unread,
May 21, 2013, 4:02:02 AM5/21/13
to ns-3-...@googlegroups.com
i studied flow monitor but i think awk scripts is better than it. but i have a problem with my tr file
format of this file is different from ns2 I dont know how i write awk code for that , its so complex but ns2's tr file is easy to trace 
thanks very much for your help 
Reply all
Reply to author
Forward
0 new messages