LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Install ns2.33 on fedora 17 (https://www.linuxquestions.org/questions/linux-software-2/install-ns2-33-on-fedora-17-a-4175440245/)

knudfl 12-17-2012 04:09 AM

# 15

http://www.tkn.tu-berlin.de/fileadmi...eadme_EDCA.txt
Quote : "This model only works with ns-2.28.
Several changes might be needed to use it in combination with other ns versions."

torjemen 12-17-2012 03:31 PM

I have see this comment in Readme file but how can I do to install this patch in ns 2.33 ?
I haven't get any information in the internet about it.
however, all command is OK . Just the last one when I type make return an error

knudfl 12-17-2012 04:56 PM

# 17

Please try with the new ( experimental ) patch "EDCA_ns233-all-v1-0-2.tar.gz" :
EDIT : changed to EDCA_ns233-v1-0-2-18Dec2012.tar.gz
providing : common/ mac/ tcl/ Makefile.in,
all as close as possible to the 'README.txt' in EDCA_ns-2_28-v1-0-2.tgz.

cd ns-allinone-2.33/ns-2.33/ && tar xvf EDCA_ns233-v1-0-2-18Dec2012.tar.gz
https://docs.google.com/open?id=0B7S...jNfUDR4OGV6eXM

Compiles OK with an unpatched ns-allinone-2.33 .


.

torjemen 12-18-2012 01:45 AM

I have donwload again ns2.33 unzip it and EDCA_ns233-all-v1-0-2.tar.gz and type the command below:
cd ns-allinone-2.33/ns-2.33/ && tar xvf EDCA_ns233-all-v1-0-2.tar.gz
then I type $ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install
it is OK and ns is installed
but when I type make install I get the following error:
Quote:

[root@localhost ns-2.33]# make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
[root@localhost ns-2.33]# ns
ns:
[code omitted because of length]
: invalid command name "..."
while executing
"..."
invoked from within
"if [TclObject is-class Mac/802_11e] {
...
copy settings of MAC/802.11
(which are contained in this file) into this section
and at an "e" at the end o..."
what is the matter ?

torjemen 12-18-2012 07:27 AM

I have fix the problem, I add the setting of MAC/802.11e into file tcl/lan/ns-mac.tcl.
now, i will try to add also WLANpatch-ns2.28-v1_0
, HWMP patch and MultiInterface patch

knudfl 12-18-2012 07:59 AM

# 20
Quote:

I have fix the problem, I add the setting of MAC/802.11e into file tcl/lan/ns-mac.tcl
Interesting. Can you attach the new file ? As ns-mac.tcl.txt.
Attaching : It's the paper clip tool in the 'Advanced Editor'.

torjemen 12-18-2012 09:00 AM

1 Attachment(s)
I have juts update the file according to EDCA patch file:
Quote:

6. add to tcl/lan/ns-mac.tcl:
if [TclObject is-class Mac/802_11e] {
...
copy settings of MAC/802.11
(which are contained in this file) into this section
and at an "e" at the end of the "Mac/802_11" terms
...

Mac/802_11e set cfb_ 0 ;# disables CFB
}
Now i'm trying to install CMU-WLAN Patch but it also for 2.28 . Have you any idea how to do it for ns 2.33
Best regards.

knudfl 12-18-2012 09:09 AM

# 22 . OK, I must have forgotten that edit.
The updated package, EDCA_ns233-v1-0-2-18Dec2012.tar.gz : I will edit post #18.


"CMU-WLAN Patch" : Please provide a link to the patch.


.

torjemen 12-18-2012 09:34 AM

2 Attachment(s)
Please find enclosed the patch (format txt)

knudfl 12-19-2012 07:10 AM

# 24

The patch CMU_WLAN_patch is meant to be installed together with "EDCA" :
In ns-2.28 . If I read the sparse information right.
* It would be nice, if you can provide a link to the site,
where you got the CMU_WLAN information and the files.

The patch CMU_WLAN_patch fits badly into
ns-2.33/mac/ mac-802_11.cc mac-802_11.h mac-timers.cc mac-timers.h .
When you apply the patch, the rejected code will be saved to :
mac-802_11.cc.rej mac-802_11.h.rej mac-timers.cc.rej mac-timers.h.rej .
Then you can see which code it is about.

The easy solution : Use ns-allinone-2.28 for EDCA and CMU_WLAN.
.

torjemen 12-19-2012 08:23 AM

I need to install all patches on ns2.33
for the link the patch can be found: http://www2.tkn.tu-berlin.de/research/802.11e_ns2/
Best regards.

torjemen 12-24-2012 02:30 PM

No reply untill now :confused:

knudfl 12-26-2012 09:45 AM

# 26.
Quote:

I need to install all patches on ns2.33
Why ? ? If it is your own decision, it may be a wrong decision ?
Please see post #11 :
You can have as many versions of ns-allinone-2.xx as you want ..

# 27
Quote:

No reply untill now
You have yet to confirm that you have read all the patches,
and to confirm that you understand the "may be conflicting
changes" that are made to the ns-2.xx/* files.

.

torjemen 12-28-2012 06:18 PM

Dear Sir,
the need of use all patches on the same ns is not my decision.
Indeed, I try now to use some tcl script written by one student during his master degree project and he has already use this all patches on the some ns with some amendement.
He don't spoke about amendment and how we can do it but he just tell that he has adjast some patches.
Best regards.

knudfl 06-22-2013 04:25 AM

HWMP, Hybrid Wireless Mesh Protocol :
New links for the patches / the patched ns-2.33, posts #7, #8 here
http://www.linuxquestions.org/questi...-4175465910/#7

( The original link is down.)

-


All times are GMT -5. The time now is 05:20 PM.