802.11e in ns2.35

700 views
Skip to first unread message

rhean

unread,
Jul 28, 2013, 10:50:47 AM7/28/13
to ns-u...@googlegroups.com, nae...@yahoo.com
 I am currently installing the 802.11e for ns2.35. the instructions I am following if from this site: http://www.tkn.tu-berlin.de/fileadmin/fg112/Hard_Software_Components/Software/Simulation%20Models/readme_EDCA.txt . The instructions are said to be for ns2.28.
Still, I tried following the instructions and run the script file multi-udpflow.tcl. I got the following error:

invalid command name "Mac/802_11e"
    while executing
"Mac/802_11e create _o54 "
    invoked from within
"catch "$className create $o $args" msg"
    invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
    (procedure "new" line 3)
    invoked from within
"new $mactype"
    (procedure "_o44" line 10)
    (Node/MobileNode add-interface line 10)
    invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_  $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_  $inerrProc_ $outerrProc_ $FECProc_"
    (procedure "_o3" line 83)
    (Simulator create-wireless-node line 83)
    invoked from within
"_o3 create-wireless-node 1.0.0"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node 1.0.0"
    invoked from within
"set BS(0) [$ns node 1.0.0]"
    (file "multi_udpflows.tcl" line 92)


how can I fix this error?

Deepti Singhal

unread,
Sep 18, 2014, 3:59:03 AM9/18/14
to ns-u...@googlegroups.com, nae...@yahoo.com
Hey Please help me to resolve this issue. Hope by now you know the solution.

sanjeev prasad

unread,
Sep 18, 2014, 8:30:15 AM9/18/14
to ns-users

Use gdb debugger

--
You received this message because you are subscribed to the Google Groups "Network Simulator 2 (NS2)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-users+u...@googlegroups.com.
To post to this group, send email to ns-u...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-users.
For more options, visit https://groups.google.com/d/optout.

knudfl

unread,
Sep 18, 2014, 10:19:39 AM9/18/14
to ns-u...@googlegroups.com, nae...@yahoo.com
@Deepti Singhal ,  Hi .

Available patches / "patch packages" :  EDCA_ns-2_28-v1-0-2.tgz ,
edca-ns233.patch , 802.11e-DCA-ns235_091814.patch .
( The last two are attached.)

The files "mac/802.11e/" are the original old files :  g++ version 4.1.2 will work.

Ns-2.35, using, Ubuntu example :  $ cd ns-allinone-2.35/
$ patch -p0 < 802.11e-DCA-ns235_091814.patch
$ export CC=gcc-4.4 CXX=g++41
... and the executable "ns -802.11e" is created.
$ cp ns ns235-EDCA
$ sudo cp ns235-EDCA  /usr/local/bin/
$ ns235-EDCA multi_udpflows.tcl : Works OK, the file `out.tr´ ~800 MB is created.

Please specify your OS : a) The output from the command $ uname -m
b) OS  name and version ,,, then I can tell you which g++ 41 to use.
( Packages.deb  are available for all versions of e.g.  Ubuntu.)

-
edca-ns233.patch
802.11e-EDCA-ns235_091814.patch

Deepti Singhal

unread,
Sep 19, 2014, 4:27:57 AM9/19/14
to ns-u...@googlegroups.com, nae...@yahoo.com
Hi,

I have added a new MAC protocol with name 802_11new usin step by step process given in http://140.116.164.80/~smallko/ns2/mac2.pdf.
"make" is successfully done but when I am trying to run this protocol below error is coming:

invalid command name "Mac/802_11new"
    while executing
"Mac/802_11new create _o48 "

Other details asked by you are : 
a) Output of uname command is : i686
b) OS  name and version : Ubuntu 12.04 LTC
c) NS version: NS2.34

Please help me.

Regards,
Deepti Singhal

knudfl

unread,
Sep 19, 2014, 12:19:55 PM9/19/14
to ns-u...@googlegroups.com, nae...@yahoo.com
@Deepti Singhal ,  Hi .

There are no traces of anybody that ever tried to use the "mac2.pdf" files,
.. please see https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=all&q=invalid+command+name+%22Mac%2F802_11new%22
.. and https://www.google.com/webhp?hl=all&gws_rd=ssl#hl=all&q=%22Mac%2F802_11new%22

So why not use the tested solution = "802.11e-DCA-ns235_091814.patch" ?

-

Tom Kurian

unread,
Feb 26, 2015, 11:56:19 AM2/26/15
to ns-u...@googlegroups.com, nae...@yahoo.com
Hi,
I am new to ns2.
I am trying to apply the EDCA patch using the steps you provided. I am using ns 2.35 in fedora 20.
i have successfully completed till $ export CC=gcc-4.4 CXX=g++41.
But when i run $ cp ns ns235-EDCA, I get the following error.

cp: cannot stat ‘ns’: No such file or directory

What am I doing wrong?


Amal Jyothi College of Engineering
B Tech, M Tech & M C A
Koovapally P.O,Kanjirapally-686518
Kottayam, Kerala, India
www.ajce.in

knudfl

unread,
Feb 26, 2015, 2:11:16 PM2/26/15
to ns-u...@googlegroups.com, nae...@yahoo.com
@Tom Kurian ,   Hi.

»» I have successfully completed till $ export CC=gcc-4.4 CXX=g++41 «« :
There is no  "gcc-4.4"  or "g++41" in Fedora (20).   
So your ns2 build would fail  →  no 'ns'  →  no 'ns' to copy.

You can do :  Edit one file to use g++-4.4.x ..... gcc-4.9.x :
Line 41 in  ns-2.35/mac/802_11e/mac-timers_802_11e.cc
Edit from :  #include <iostream.h>
To :              #include <iostream>

Then you can run plain ./install  ( No 'export  <CC= >  <CXX= > )
.... with the updated  ns-allinone-2.35 :  ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing
.... ( The old 2011 version , ns-allinone-2.35.tar.gz may work too, that I haven't tested.)

-

knudfl

unread,
Feb 26, 2015, 2:17:30 PM2/26/15
to ns-u...@googlegroups.com, nae...@yahoo.com
@Tom Kurian ,   Hi again.

EDIT :   " Edit one file to use g++-4.4.x ..... gcc-4.9.x : "
Should be :                              g++-4.x.x ..... g++-4.9.x :


-

knudfl

unread,
Feb 26, 2015, 2:34:59 PM2/26/15
to ns-u...@googlegroups.com, nae...@yahoo.com
...  And then we have a new EDCA patch ,  for all gcc4.x,  till 4.9.x :
(  mac-timers_802_11e.cc is now with :  #include <iostream> )
→ → `802.11e-EDCA_ns235_2015-gcc49.patch´
https://drive.google.com/file/d/0B7S255p3kFXNRmRUZWZyQ1FWWmM/view?usp=sharing

-

On Thursday, February 26, 2015 at 8:11:16 PM UTC+1, knudfl wrote:
Reply all
Reply to author
Forward
0 new messages