LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 04-10-2013, 09:09 AM   #1
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Rep: Reputation: Disabled
ns2.31 and CRCN patch


Hello everyone.
I have installed ns-allinone-2.31 and CRCN patch using information from here
http://stuweb.ee.mtu.edu/~ljialian/installation.htm
everything went smoothly(my OS environment is ubuntu12.04).When I use the test case of CRCN "test4wcett.tcl",there is such error:
"format_wcett: invalid WCETT packet type"
I tried to solve this problem ,but still can't find any idea
Can you help me ?

Thank you in advance
 
Old 04-10-2013, 12:02 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
Welcome to LQ.

A failing $ ns(-crcn) test4wcett.tcl : Means a failed CRCN build.

The latest instructions, post #5 here
http://www.linuxquestions.org/questi...rror-940388/#5

Ubuntu 12.04, 32bits : gcc / g++ version 4.1.2 must be used :
export CC=gcc41 CXX=g++41 && ./install

gcc41 / g++41 for Ubuntu 11.10 .. 12.x, post # 47 here ..
http://www.linuxquestions.org/questi...532/page4.html

CRCN examples / test results : crcn-examples-032013.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing
And https://docs.google.com/file/d/0B7S2...it?usp=sharing

All LQ crcn http://www.linuxquestions.org/questions/tags/crcn/

-

Last edited by knudfl; 04-11-2013 at 08:04 AM.
 
Old 04-11-2013, 06:37 AM   #3
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled
problem of "export CC=gcc-4.1 CXX=g++-4.1"

Thank you for reply.
However,when I export CC=gcc-4.1 CXX=g++-4.1 && make clean && make ,the process abort.here is the error:

trace/cmu-trace.o: In function `hdr_wcett::access(Packet const*)':
cmu-trace.cc.text._ZN9hdr_wcett6accessEPK6Packet[hdr_wcett::access(Packet const*)]+0x7): undefined reference to `hdr_wcett:ffset_'
collect2: ld return 1

there is something wrong with cmu-trace..
Oh,after adding the four lines to Makefile,it went smoothly,
wcett/wcett_logs.o wcett/wcett.o \
wcett/wcett_rtable.o wcett/wcett_rqueue.o \
mac/macng.o mac/maccon.o\
mac/macngenhanced.o\
but the primary problem is still here,"format_wcett: invalid WCETT packet type"..

I'm so confused.
can you help me ?
thank you in advance.
-----------------------------------------------------
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

A failing $ ns(-crcn) test4wcett.tcl : Means a failed CRCN build.

The latest instructions, post #5 here
http://www.linuxquestions.org/questi...rror-940388/#5

Ubuntu 12.04, 32bits : gcc / g++ version 4.1.2 must be used :
export CC=gcc41 CXX=g++41 && ./install

gcc41 / g++41 for Ubuntu 11.10 .. 12.x, post # 48 here ..
http://www.linuxquestions.org/questi...532/page4.html

CRCN examples / test results : crcn-examples-032013.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing
And https://docs.google.com/file/d/0B7S2...it?usp=sharing

All LQ crcn http://www.linuxquestions.org/questions/tags/crcn/

-

Last edited by buptmuye; 04-11-2013 at 06:55 AM.
 
Old 04-11-2013, 06:59 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 3 : Do not quote complete posts, please.


# 3 : Not quite clear what your question is :
"but the primary problem is still here,"format_wcett: invalid WCETT packet type"..

? A new failed build ?

-

Last edited by knudfl; 04-11-2013 at 07:16 AM.
 
Old 04-11-2013, 07:19 AM   #5
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled
export CC=gcc-4.1 CXX=g++-4.1

Sorry.
My OS environment is :ubuntu12.04 ns-allinone-2.31 gcc4.6 g++4.6.
my steps are as follows:**
1.sudo apt -get install build-essential
2.sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev
3.sudo apt-get install libxmu-dev libxmu-headers
4.sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
5.reboot
6.cd ns-allinone-2.31
7.export CC=gcc-4.1 CXX=g++-4.1*&& ./install

then the installation process abort.It said:

"checking whether the C compiler (gcc-4.1 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project."

Thank you for reply.
 
Old 04-11-2013, 07:34 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 3 .

OK, you are right, the build will fail on Ubuntu 12.04 - i686,
so far concerns test4wcett.tcl.

a) cd ns-allinone-2.31/
b) tar xvf crcn-ns2.31.tar.gz
c) export CC=gcc41 CXX=g++41 && ./install
... I.e. not gcc-4.1 and g++-4.1 : That's an old Ubuntu (10.04) compiler.

I will try to build a "crcn.deb" package : By using Ubuntu 10.10,
which makes a better ns-2.31.

-
 
Old 04-11-2013, 07:46 AM   #7
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled
installing gcc 4.1 conflicts with gcc 4.6

Thanks for your reply.
I tried to install gcc4.1 on ubuntu12.04,but it seems installing gcc 4.1 conflicts with gcc 4.6 .
So I want to change the OS environment to fit ns2.31+crcn.
Is there a suitable OS environment? a low version of Fedora or ubuntu ?

Last edited by buptmuye; 04-11-2013 at 07:57 AM.
 
Old 04-11-2013, 08:02 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 7.

The only "41" compiler packages working on Ubuntu 12.04 - i686
are those linked in post # 2 :
> http://www.linuxquestions.org/questi...532/page4.html
> #47

Generally the unsupported Ubuntu 10.10 provides
the best validation result for old ns2.
( I will upload the "crcn-ns-2.31-ubuntu1010_i386.deb" package later :
Will usually work perfectly with Ubuntu 12.04 ).

-

Last edited by knudfl; 04-11-2013 at 08:03 AM.
 
Old 04-11-2013, 08:08 AM   #9
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled
That is very nice of you.
Thank you very much!
 
Old 04-11-2013, 11:17 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
Package : crcn-ns-2.31-ubuntu10_i386.deb
Download link : https://docs.google.com/file/d/0B7S2...it?usp=sharing

Ubuntu 12.04 : The package works perfect.
$ ns-crcn test4wcett.tcl : Will create test.nam 29.8MB and test.tr 21.5MB.
$ nam test.nam : A spectacular simulation, when you push the play button.

Also suggest : Use the example package crcn-examples-032013.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing
> TEST-ALL-tcl-2/, where the test outputs get different names :
1test.nam 2test.nam 3test.nam 4test.nam 5test.nam 6test.nam, etc. *.tr

-
 
Old 04-11-2013, 11:58 PM   #11
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled
Thank you very much.It works.I'm so excited.
"$ns-crcn 5-test4wcett.tcl..." is OK,the 5test.nam and 5test.tr are fine,too.
But it seems that there is no relationship between ns and ns-crcn,since "$ns 5-test4wcett.tcl..." still doesn't work.
Actually,I want to embed AOMDV routing protocol in CRCN-NS.But after installing crcn-ns-2.31-ubuntu10_i386.deb,
I suddenly have no idea of embedding a new routing protocol in the ns-crcn,because there seems to be no files such as packet.h and cmu-trace.cc to modify.
Can you help me?

Last edited by buptmuye; 04-12-2013 at 03:14 AM.
 
Old 04-12-2013, 03:11 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 11 .

Modifications like adding a new AOMDV routing protocol :
Then you will still have to build your own ns-allinone-2.31 / crcn
on an OS suitable for ns-allinone-2.31 .
( The package was built on Ubuntu 10.10 - i686.)

-
 
Old 04-12-2013, 03:36 AM   #13
buptmuye
LQ Newbie
 
Registered: Apr 2013
Location: China
Posts: 18

Original Poster
Rep: Reputation: Disabled
Sounds right.
The crcn-ns-2.31-ubuntu10_i386.deb seems to unpack those .o files that are needed.So there is no way to modify the ns-crcn that you uploaded before.Is that right?

Therefore,I want to know if there is a suitable "crcn.tar.gz" for ubuntu12.04.

By the way, "crcn-ns2.31.tar.gz" https://docs.google.com/open?id=0B7S...XEtS3ozTHpmRHM
is it suitable for ubuntu10.10 or Fedora17,or lower OS version?

Thanks for your reply.

Last edited by buptmuye; 04-12-2013 at 03:56 AM.
 
Old 04-12-2013, 04:06 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 13.

The patch crcn-ns2.31.tar.gz is simply the crcn for ns-2.31,
not OS specific.

I will make a CRCN install test on Fedora,
and let you know the validation result.
 
Old 04-12-2013, 07:58 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,385

Rep: Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601Reputation: 3601
# 13.

Fedora's have a very short supported life.
The 'Long Term Supported' versions are CentOS 6 / Scientific SL6.

The validation test is identical to Ubuntu 10.10 :
14 group tests fail some tests.
( There are 103 group tests, that run the "2000" tests.)
And $ ns test4wcett.tcl : OK on CentOS6 / SL6.

So the suggestion is to use CentOS 6.4 or Scientific Linux 6.4
for your modifications.

-
 
  


Reply

Tags
crcn, g++34-compat64, gcc34-compat64, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ns-2 CRCN patch. Testing examples problem cosdag Linux - Software 6 12-09-2015 09:07 PM
CRCN ns2 add channel GUI nam throughput problem Khaled ELmishad Linux - Software 37 12-05-2013 02:23 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
crcn ns2 add channel GUI nam throughput problem Khaled ELmishad Programming 1 05-12-2012 08:37 AM
problem in displaying throughput in crcn patch in ns2 humairaafzal73 Linux - Software 0 02-07-2012 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration