LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-10-2011, 11:13 AM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509

# 30.

The command is : 'perl analyze.pl < example.trc'


If you want to do './analyze.pl < example.trc' , then change "analyze.pl"
to be executable : chmod +x analyze.pl

.

Last edited by knudfl; 11-10-2011 at 11:15 AM.
 
Old 11-10-2011, 05:52 PM   #32
stud17
Member
 
Registered: Dec 2010
Posts: 32

Original Poster
Rep: Reputation: 0
hello,

I am trying to run the simple-wireless.tcl script. But I couldn't execute it.
I get the following warnings.

chithra@ubuntu:~/ns-allinone-2.29/ns-2.29/tcl/ex$ ns simple-wireless.tcl
num_nodes is set 2
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
warning: no class variable Mac/802_11::MaxSDUSize_

see tcl-object.tcl in tclcl for info about this warning.


(_o19 cmd line 1)
invoked from within
"_o19 cmd ll _o21"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o19" line 2)
(SplitObject unknown line 2)
invoked from within
"$mac ll $ll"
(procedure "_o14" line 97)
(Node/MobileNode add-interface line 97)
invoked from within
"$node add-interface $chan $propInstance_ $llType_ $macType_ $ifqType_ $ifqlen_ $phyType_ $antType_ $topoInstance_ $inerrProc_ $outerrProc_ $FECProc_"
(procedure "_o3" line 73)
(Simulator create-wireless-node line 73)
invoked from within
"_o3 create-wireless-node"
("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"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;# disable random motion
}"
(file "simple-wireless.tcl" line 93)


How can I rectify it?? Can you please kindly let me know how to resolve this issue??

THank you
 
Old 11-11-2011, 03:21 AM   #33
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
Post #15.

To use a patch : The patch should be present or pointed to.

cd ns-allinone-2.27/tcl8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ && ./install




Quote:
Hunk #1 FAILED at 74.
1 out of 1 hunk FAILED
Not important.

.
 
Old 11-12-2011, 12:00 AM   #34
stud17
Member
 
Registered: Dec 2010
Posts: 32

Original Poster
Rep: Reputation: 0
hi,

i tried this patch and got the expected message (1 out 0f 1 hunk failed).
ran ./install at the terminal again.

Still i couldn't run the simple-wireless tcl program. i get the same error. Can you please tell me how can i solve it further?

thank you.
 
Old 11-13-2011, 08:22 AM   #35
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
"ns-allinone-2.29/ns-2.29/tcl/ex/simple-wireless.tcl" is a program
for the default 'ns' without the HCCA patch.

"simple-wireless.tcl" will not work with "ns-hcca".


Suggest : Run a new './install' on a clean ns-allinone-2.29,
and copy ns to /usr/local/bin/

You can also have a copy of the "ns hcca" in /usr/local/bin/,
with your own naming like ns-hcca or ns229-hcca.

I have up to 10 different ns-allinone-2.xx on each OS.
Example 'ns' binaries in /usr/local/bin/ :
Code:
ls /usr/local/bin/ns*
/usr/local/bin/ns*            /usr/local/bin/ns229-LTE*
/usr/local/bin/ns227*         /usr/local/bin/ns233*
/usr/local/bin/ns227-dtn*     /usr/local/bin/ns233-lte*
/usr/local/bin/ns227-leach*   /usr/local/bin/ns234*
/usr/local/bin/ns228*         /usr/local/bin/ns-234-vbr*
/usr/local/bin/ns228-mympeg*  /usr/local/bin/ns-hcca*
 
Old 11-13-2011, 01:12 PM   #36
stud17
Member
 
Registered: Dec 2010
Posts: 32

Original Poster
Rep: Reputation: 0
Thank you so much for the clarification.

i have been trying to understand the example.trc file of hcca patch(to claculate the throughput and delay). This trace looks very very different from the usual wireless trace file..

s -t 0.000000000 -Hs 1 -Hd -2 -Ni 1 -Nx 50.00 -Ny 40.00 -Nz 0.00 -Ne -1.000000 -Nl AGT -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.0 -Id 0.0 -It cbr -Il 1 -If 0 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0
r -t 0.000000000 -Hs 1 -Hd -2 -Ni 1 -Nx 50.00 -Ny 40.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.0 -Id 0.0 -It cbr -Il 1 -If 0 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0
s -t 0.000000000 -Hs 1 -Hd 0 -Ni 1 -Nx 50.00 -Ny 40.00 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 1.0 -Id 0.0 -It cbr -Il 21 -If 0 -Ii 0 -Iv 32 -Pn cbr -Pi 0 -Pf 0 -Po 0

Can you please help me how can i interpret it ??? have been looking for the solution very long time.. am not able to sort it out...
Kindly give me your inputs.. looking forward for your reply..

Thank you so much for your time..
 
Old 12-29-2011, 08:29 AM   #37
kikistr1
LQ Newbie
 
Registered: Dec 2011
Posts: 10

Rep: Reputation: Disabled
Hi,

My name is Kristina, and i have installed ns 2.31 on Fedora 7 and now i am working on qos in wlan.
I have been trying to install a patch for 802.11e, but unsuccessful

Can anybody give me some instruction what modifications should i make on ns 2 code to work it successful?

Thank You very very much, and happy holidays.

BR,
Kristina
(kristina_pelivanoska@yahoo.com)
 
Old 12-31-2011, 10:21 AM   #38
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
Post # 37, @kikistr1 / Kristina : Welcome to LQ.

Which patch is it about ? A direct download link, please.

And : Are you sure the patch is for ns-2.31 ?

.
 
Old 01-02-2012, 10:59 AM   #39
kikistr1
LQ Newbie
 
Registered: Dec 2011
Posts: 10

Rep: Reputation: Disabled
This is the download link http://sourceforge.net/projects/ieee80211e-ns2/

It is not for ns 2.31, i have made the changes from the readme file, i run again my simulation and i got a segmentation fault message. I do not what to do now. Can You help me with this?

Or if You now a better patch give me a link to install it.

Regards,
Kristina
 
Old 01-02-2012, 12:58 PM   #40
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
#39

The patch EDCA_ns-2_28-v1-0-2 : Please use ns-allinone-2.28.
(You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. Just do not add any of them to a PATH*.)


ns-allinone-2.28 : Please use the patch ns228-gcc40.patch, post #11 here
http://www.linuxquestions.org/questi...led-732164/#11
And : cd ns-allinone-2.28/ && export CC=gcc34 CXX=g++34 && ./install

..
 
Old 01-02-2012, 01:57 PM   #41
kikistr1
LQ Newbie
 
Registered: Dec 2011
Posts: 10

Rep: Reputation: Disabled
Ok, Thank You for Your time.

Now i will try to install ns 2.28. Will it work on Fedora 7?

BR,
Kristina
 
Old 01-02-2012, 03:31 PM   #42
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
#41, @kikistr1 / Kristina

Should work with all Fedora versions. Most versions have been tested OK with ns-2.28 .

# yum install compat-gcc-34-c++ : Then you'll have the gcc34, g++34 compilers.
 
Old 10-11-2012, 04:55 PM   #43
rexx
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by stud17 View Post
Hi thanks for your reply!

May I know what gcc version should I use ?
Hi , I am trying to install NS-2.29.3 on Linux 32 bits(10.04)
since now i have faced a lot problems , errors ..., could you tell me which version of gcc have you used ?
 
Old 10-12-2012, 12:16 AM   #44
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,547

Rep: Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509Reputation: 2509
Post # 43, @ rexx : Welcome to LQ.

Ubuntu 10.04 - 32, that's 'gcc / g++' version 4.1.2 for ns-2.29.3 :
sudo apt-get install g++-4.1


cd ns-allinone-2.29/ && export CC=gcc-4.1 CXX=g++-4.1 && install

.
 
Old 10-13-2012, 04:18 AM   #45
rexx
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
thank you for your help
on my ubuntu version was installed gcc 4.4.3, i downloaded g++' version 4.1.2, and installed it ,
there were some mistakes But i was able to debug it with the help of following link:
http://sertel.upc.es/~maguilar/fiche...eNS2_David.txt
 
  


Reply

Tags
hcca


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
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
need 802.11e patch for ns2 stud17 Linux - Software 1 03-09-2011 06:54 AM
ns2-802.11e patch - error: stream.h, iostream.h not found shojaru Linux - Newbie 3 06-12-2009 11:11 PM
any information ns-2 802.11e code ??????? asd309 Linux - Software 0 11-01-2006 06:08 PM
802.11e hardware kannerke Linux - Wireless Networking 0 08-10-2006 03:35 AM


All times are GMT -5. The time now is 06:13 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration