LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-28-2015, 07:08 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

← ref. #15.
Quote:
While trying to run my scenario file with AntHocNet
"my scenario file" : Unknown file.

Please upload the file to 'Google Docs'.
And please use a unique file name.


Which Ubuntu 12.04 ?
Please show the output from the command $ uname -m


-

Last edited by knudfl; 02-28-2015 at 07:14 AM.
 
Old 02-28-2015, 07:25 AM   #17
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
I have mailed the scenario file. Yes I am using Ubuntu 12.04
 
Old 02-28-2015, 07:32 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #17.

Repeat : Show the output from the command $ uname -m
 
Old 02-28-2015, 07:39 AM   #19
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
radhika@ubuntu:~$ cd Desktop/ns-allinone-2.34/ns-2.34
radhika@ubuntu:~/Desktop/ns-allinone-2.34/ns-2.34$ ns vanetaomdv.tcl
num_nodes is set 24
INITIALIZE THE LIST xListHead
Loading connection pattern...
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault (core dumped)


THis is the output which i get.
 
Old 02-28-2015, 07:55 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please read the above posts.

... the output from the command $ uname -m
! Must be answered.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://www.catb.org/~esr/faqs/smart-questions.html
I.e. the idea is that you use a single line for OS specs, by every question:
Ubuntu 12.04 - 32 (i686)
or : Ubuntu 12.04 - 64 (x86_64)
? So which "Ubuntu 12.04" are you using ?


-
 
Old 02-28-2015, 08:16 AM   #21
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
https://drive.google.com/file/d/0B31...phSlUtWTQ/view
here's the link
hope you can download it from here.
 
Old 02-28-2015, 08:20 AM   #22
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
radhika@ubuntu:~$ uname -m
x86_64
radhika@ubuntu:~$
 
Old 02-28-2015, 09:12 AM   #23
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
I am extremely sorry for the inconvenience. Please help out to resolve this error.
 
Old 02-28-2015, 10:37 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #21.

Your file https://drive.google.com/file/d/0B31...phSlUtWTQ/view
.. was renamed to anthocnet-wrls1.tcl .

Generally, ns2 is for a 32bits (i686) OS.
However, the most simulations will also work with a 64bits OS.

Testing with a 32bits OS :
Code:
$ ns234-anthocnet anthocnet-wrls1.tcl

num_nodes is set 300
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
ns: _o428 setdest 735.0 0.0 3.0: 
    (_o428 cmd line 1)
    invoked from within
"_o428 cmd setdest 735.0 0.0 3.0"
    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 "_o428" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o428 setdest 735.0 0.0 3.0"
The files complex-ant.tr 103MB, complex-wrls.nam 55MB, win-complex-ant.tr 106kB
... are created. ( And the empty file rtable.txt ).


Commenting line 78 with a hash mark ( # ) :
# $ns at $timer "$node_($i) setdest $x $y 3.0"

Code:
$ ns234-anthocnet Edited-anthocnet-wrls1.tcl
 
num_nodes is set 300                                           
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0
SORTING LISTS ...DONE!
Segmentation fault
Files : complex-ant.tr 264MB, complex-wrls.nam 138MB, win-complex-ant.tr 284kB
( And the empty file rtable.txt ).
$ nam complex-wrls.nam : Perfect.

If you can get files that size created :
I don't think you should worry about 'Segmentation fault'.
A solution : I have no idea.


Generally about 'Segmentation fault' in ns2 :
http://www.linuxquestions.org/questi...-4175530493/#2



-

Last edited by knudfl; 02-28-2015 at 10:42 AM.
 
Old 02-28-2015, 10:57 PM   #25
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
I dont get files of this size. This is what I get:
win-complex-ant.tr 8.2kB
complex-wrls.nam 8.9 MB
complex-ant.tr 15.9 MB
 
Old 03-01-2015, 01:05 AM   #26
beiinnovative
LQ Newbie
 
Registered: Dec 2014
Posts: 17

Rep: Reputation: Disabled
Hi
These are some other scenario files which when implemented with AntHocNet are giving the segmentation fault(core dumped) error.Please help me with it as soon as possible.THese are the links:
https://docs.google.com/file/d/0B314...E5MnRQaEE/edit
https://docs.google.com/file/d/0B314...M1emVsMkU/edit
Thank you
 
Old 03-01-2015, 05:29 AM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← ref. #26.

For better performance : Install a 32bits OS.
Recommended is : CentOS 6.6 - i686 ( The ISO name is i386 )
http://ftp.funet.fi/pub/mirrors/cent...6.6/isos/i386/
→ → http://ftp.funet.fi/pub/mirrors/cent...6-bin-DVD1.iso
→ CentOS-6.6-i386-bin-DVD1.iso

Suggest : 'VirtualBox',,, in your current Ubuntu 12.04, or in Windows©.
Then install CentOS 6.6 - i686 into 'VirtualBox'.


About your links "docs.google.com" :
They are private, you have access, nobody else.
( Shared → Advanced → Change → [tick 'Public on the web'] → Done.)


-
 
Old 03-06-2015, 02:51 AM   #28
twistedfrank
LQ Newbie
 
Registered: Mar 2015
Posts: 1

Rep: Reputation: Disabled
hi, may i ask where did you get the AntHocNet Code? I want to simulate this on Ubuntu, could you share the link? Thanks very much
 
Old 03-06-2015, 03:09 AM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Post #28, @twistedfrank : Welcome to LQ.

AntHocNet info
. http://www.linuxquestions.org/questions/tags/anthocnet/
. https://groups.google.com/forum/?fro...s/sLsEZm9Gmd0J


New "Antnet" patches.

1) anthocnet_ns234.patch.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
The patch is exactly this ....
$ svn checkout svn://svn.code.sf.net/p/anthocnet/code/ anthocnet-code
..... except for the two .jar files
ns-2.34/anthocnet/tcl/libs/{ anthocnet-tcl-1.0.jar, commons-io-2.1.jar }.
* Link, `jar`s' https://drive.google.com/file/d/0B7S...ew?usp=sharing

The patch anthocnet_ns234.patch.gz is documentation for the changes,
.. and is easier portable than the (1.7 GB) files from the $ svn checkout .

1a) anthocnet_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

2) SARA, "Simple Ant based Routing Algorithm", sara_ns234.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
2a) sara_ns231.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

3) SARA-for__Anthocnet-patched-ns234.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

Last edited by knudfl; 03-06-2015 at 03:26 AM.
 
Old 03-06-2015, 03:33 AM   #30
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
ref. #28, @twistedfrank.

As you can see from the above posts, Ubuntu is not a good choice for AntHocNet.

Post #26 : The errors. Post #27 : Recommended is CentOS 6.6 - 32bits.



-
 
  


Reply

Tags
anthocnet, ns2



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
NS2 2.35: Antnet must Linux - Software 14 05-26-2017 07:17 AM
code of CONFIDANT implemented in ns2 dorra Linux - Newbie 14 02-24-2014 12:24 PM
How the BECAN sheme is implemented using NS2 shahina Linux - Wireless Networking 1 07-20-2013 03:00 AM
[NS2] the RSS & link_events code in MIH implemented by NIST RSM_smile Linux - Newbie 0 09-26-2012 08:25 AM

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

All times are GMT -5. The time now is 10:49 AM.

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