LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I add new protocol in ns-2 name "binary marking congestion protocol(bmcc )" (https://www.linuxquestions.org/questions/linux-software-2/i-add-new-protocol-in-ns-2-name-binary-marking-congestion-protocol-bmcc-4175489908/)

bhavinsorathiya 01-02-2014 10:28 AM

I add new protocol in ns-2 name "binary marking congestion protocol(bmcc )"
 
i am using fedora 12 and using ns-allinone-2.33,when i run 'make' command in terminal it give me this error,

gent.cc:(.text._ZN6hdr_nv6accessEP6Packet[hdr_nv::access(Packet*)]+0x7): undefined reference to `hdr_nv::offset_'
apps/worm.o:(.rodata._ZTV9AnWormApp[vtable for AnWormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)'
apps/worm.o:(.rodata._ZTV10DnhWormApp[vtable for DnhWormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)'
apps/worm.o:(.rodata._ZTV7WormApp[vtable for WormApp]+0x28): undefined reference to `Process::get_data(int&, AppData*)'
collect2: ld returned 1 exit status
make: *** [ns] Error 1

how i can solve this error?

padeen 01-02-2014 06:25 PM

I don't know anything about NS2, but it looks like your source is missing an include for hdr_nv.h and includes for whatever file contains the Process class. Are you sure that you are using the correct version of bmcc with the correct version of NS-2?

bhavinsorathiya 01-03-2014 10:27 AM

i use correct version of ns2

knudfl 01-03-2014 11:11 AM

#1, @bhavinsorathiya : Welcome to LQ.
Quote:

I add new protocol in ns-2 name "binary marking congestion protocol(bmcc )"
Unknown protocol for ns233 : Please supply a link to the code / documentation.

Quote:

..ZN6hdr_nv6accessEP6Packet[hdr_nv::access(Packet*)]+0x7): undefined reference to..
Are you quite sure that the bmcc code really is for ns-2.33 ?
The install command for ns-allinone-2.33/ is :
$ export CC=gcc34 CXX=g++34 && ./install

And the command for reconfiguring / rebuilding ns-2.33/ is :
$ export CC=gcc34 CXX=g++34 && ./configure && make

-

bhavinsorathiya 01-03-2014 11:17 AM

http://www.cs.pitt.edu/~ihsan/bmcc-0.1.tar.gz

knudfl 01-03-2014 12:13 PM

# 5 .

OK, no issues at building {ns-2.33 + bmccd} :
# yum install compat-gcc-34-c++
$ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install

-

knudfl 01-03-2014 01:07 PM

1 Attachment(s)
# 5 .

And ... with the Fedora 12 based CentOS 6.5 : $ ns sample.tcl
... the file `ns.trace', 107.8 MB is created.

bmcc-ns233-patching.tar.gz :
https://drive.google.com/file/d/0B7S...it?usp=sharing
-

bhavinsorathiya 01-04-2014 12:43 AM

@kundfl It is work, so thank you very much for your suggestion.
And sample.tcl.run.bz2.txt is not open ,so how can i open this file

knudfl 01-04-2014 06:46 AM

# 8 .

How to unpack an attached bzip2 compressed file :

a) $ mv sample.tcl-run.bz2.txt sample.tcl-run.bz2
b) $ bunzip2 sample.tcl-run.bz2

-

bhavinsorathiya 01-04-2014 10:22 AM

have you other tcl script of 'bmcc'protocol ?

@knudfl:thank you.

bhavinsorathiya 01-16-2014 08:18 AM

How to find link utilisation in % between two nodes node no and n1 from the trace file in ns-2.


All times are GMT -5. The time now is 05:39 AM.