LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to patch GPSR routing protocol to ns-2.34 (https://www.linuxquestions.org/questions/linux-software-2/how-to-patch-gpsr-routing-protocol-to-ns-2-34-a-878526/)

Chakraborty 04-02-2014 12:33 AM

Quote:

# 194.

Using Xgraph examples : $ cd xgraph-12.1/examples/
.......
* The xgraph plot files are text : Please study the six examples.
Example.tcl that uses xgraph at simulation end :
....
.......
$ ns-* JoeNaoum-Sawaya.tcl
... and three times Xgraph windows will open.
* The VINT Xgraph http://www.isi.edu/nsnam/xgraph/index.html
................
..................
→ etc., 7,000 hits : I guess you'll find what you are looking for.
-
most of the links visited.
thank you for others.

Chakraborty 04-05-2014 05:38 AM

Dear knudfl,

where to find the node wise buffer information in ns2 files.
any link/suggestion will be helpful.

One thing more do you have any information about
patch EBR with ns2.34

with thanks.

knudfl 04-05-2014 08:20 AM

# 197 .
Quote:

where to find the node wise buffer information in ns2 files.
any link/suggestion will be helpful.
Sorry, don't know. Probably ask at http://network-simulator-ns-2.7690.n7.nabble.com/
.. and https://groups.google.com/forum/?fro...forum/ns-users


EBR : "Google .. ns2 EBR .." : Nothing.
https://www.google.com/webhp?hl=all#...2+EBR&start=20
"Google .. ns2 EBR protocol .." : A few ".pdf hits .
https://www.google.com/webhp?hl=all#...2+EBR+protocol
There is some code in the first hit, 9Vol57No3.pdf , page 5?
http://www.jatit.org/volumes/Vol57No3/9Vol57No3.pdf

-

Chakraborty 04-05-2014 01:48 PM

Dear Knudfl,

I have changed the code, of gpsr.
Make all done successfully.

It was working well previously
and on successful make after code modification too.
but suddenly It is now showing,

chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34$ cd gpsr && ns wireless-gpsr-25to200.tcl
.....
....
highestAntennaZ_ = 1.5, distCST_ = 220.0
SORTING LISTS ...DONE!
fatal ARP error...

& with deafult scripts

chakraborty@chakraborty-Inspiron-1545:~/ns-allinone-2.34/ns-2.34/gpsr$ ns wireless-gpsr.tcl
num_nodes is set 100
.....
.....
SORTING LISTS ...DONE!
fatal ARP error...

I reinstalled the ns2 with gpsr.
the same error.
Though trace file is generated
with information and also giving results when abstracted by awks.
I don't know from where it is giving this fatal error.

Please suggest. I am at the core of my work.
thanking you for consistent help.

Chakraborty 04-07-2014 11:12 AM

with ref. to:
Quote:

Originally Posted by Chakraborty (Post 5147223)
#198
...fatal ARP error...

Please suggest. I am at the core of my work.

knudfl 04-07-2014 12:24 PM

#199 - #200.

When you do changes in the original code, do not expect everything to work.

* Better tell what you changed in the code. With line numbers, please.

-

Chakraborty 04-07-2014 04:31 PM

#201.
Quote:

When you do changes .....
....everything to work.
-
why, even though make is sucessful. and several times it gave traces without that
"fatal error"

Quote:

* Better tell what you changed in the code. With line numbers, please.
-
I have changed only in 3 files neighbour.h neighbour.cc and gpsr.cc.
how to upload the changed files here.

with thanks.

knudfl 04-08-2014 03:20 AM

# 202 .

You will still have to tell which line numbers that are the edited ones.

Files { neighbour.h neighbour.cc and gpsr.cc } can be attached as :
neighbour.h.txt, neighbour.cc.txt, and gpsr.cc.txt .

Attachments : That's the paper clip tool in the 'Advanced Editor'.


Quote:

several times it gave traces without that "fatal error"
Random errors can happen with ns2. When you add some questionable code :
An executable "ns" that has worked OK with a simulation can suddenly fail
.. next time you run the same simulation.

Other possible change of ns2 behavior : The OS got some new updates.

-

Chakraborty 04-08-2014 05:30 AM

in gpsr_neighbour.cc:line 199 to 228
in gpsr_neighbour.h:line 120
in gpsr.cc:line 255,257-276,282-296,309-328

Chakraborty 04-08-2014 10:57 AM

with ref. to
Quote:

#200
temporarily,got rid of fatal error.
thank you for support.

Chakraborty 04-08-2014 11:09 AM

1 Attachment(s)
Dear Knudfl,
I need to see the animation window of the simulation with code modified to know/verify the behaviour, according to the code.

I default wireless-gpsr.tcl is not giving nam window.
Can I get the nam window with animation, atleast with less no of nodes.

here is the tcl script.

What additional changes do I need to make.

Please suggest.

With thanks.

Chakraborty 04-09-2014 01:21 AM

Dear knudfl,
with ref. to

Quote:

Originally Posted by Chakraborty (Post 5148813)

#206

Please suggest.
With thanks.

knudfl 04-09-2014 07:30 AM

#207, #206.

As you already know (hopefully) the only gpsr examples where nam is added
.. are two gpsr-hls examples : gpsr-hls-examples-0113.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

And I am not sure that the examples work very well with nam.

-

Chakraborty 04-09-2014 09:19 AM

Quote:

#208.

As you already know (hopefully) the only gpsr examples where nam is added
.. are two gpsr-hls examples : gpsr-hls-examples-0113.tar.gz

-
1) You know I a working with KeLiu's GPSR.
And in THAT nam animator is not coming.
How to do this?
Please suggest with respect to that.

I have to see whether the modification done in those
files are taking effect or not, with less no of nodes atleast.
So..... I need nam.

2) And what about the files that I uploaded to you.
Have you seen the files with line nos referrred ?

"Other option side-by-side I am trying to debug the existing code(GPSR)
and modified code to see the working details.
For this I have added some unrelated code of
file handling in-between so that it can signal by
writing text to another text-file in that directory(gpsr)
while entering to a particular block for execution."

But it is not writing, after successful make & thenafter
call/execution by wireless-gpsr.tcl script.

3) How to do this at least?

With thanks

knudfl 04-09-2014 10:56 AM

# 209 .
Quote:

2) And what about the files that I uploaded to you.
Have you seen the files with line nos referrred ?
The files were deleted before I had a chance to get them :
See your post #204 : No attached files.

1. Not all protocols support nam.

2. ".. trying to debug .." :
The executable 'ns' is compiled with no debug option by default :
See $ './configure --help' , the option is : --enable-debug

-


All times are GMT -5. The time now is 12:28 PM.