LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2012, 07:09 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578

# 15.
Quote:
make[1]: Nothing to be done for `all'.
Not an error. It just means that the objects / binaries
already are present : Nothing to be done.

Please open the directories in a file manager, and see for yourself.

.
 
Old 01-16-2012, 06:14 AM   #17
R@bia
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 15.

Not an error. It just means that the objects / binaries
already are present : Nothing to be done.

Please open the directories in a file manager, and see for yourself.

.
so it means i have successfully patched the sara algorithm in ns2?
 
Old 01-16-2012, 10:05 AM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
# 17.
Quote:
So it means i have successfully patched the sara algorithm in ns2 ?
? I guess so :

The interesting thing is ...
How did you handle the issues shown in post # 4 ?
 
Old 01-16-2012, 10:50 AM   #19
R@bia
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 17.


How did you handle the issues shown in post # 4 ?
i have added the missing pts_ pid and psn_ in struct_hdr in common/packet.h . and these error vanished..

can u help me read the output of this algorithm?
 
Old 01-16-2012, 01:07 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
# 19.

Can you attach the edited file common/packet.h as packet.h.txt ?

( The paper clip tool in the "Advanced Editor" is for attatcments.)
 
Old 01-17-2012, 05:12 PM   #21
R@bia
LQ Newbie
 
Registered: Dec 2011
Posts: 8

Rep: Reputation: Disabled
struct hdr_cmn {
enum dir_t { DOWN= -1, NONE= 0, UP= 1 };
packet_t ptype_; // packet type (see above)
int size_; // simulated packet size
int uid_; // unique id
int error_; // error flag
int errbitcnt_; // # of corrupted bits jahn
int fecsize_;
int pid_;
int psn_;
int pts_;

double ts_; // timestamp: for q-delay measurement
int iface_; // receiving interface (label)
dir_t direction_; // direction: 0=none, 1=up, -1=down
// source routing
char src_rt_valid;
double ts_arr_; // Required by Marker of JOBS
 
Old 01-18-2012, 04:09 PM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Please use code tags http://www.linuxquestions.org/questi....php?do=bbcode
Code:
   459	struct hdr_cmn {
   460		enum dir_t { DOWN= -1, NONE= 0, UP= 1 };
   461		packet_t ptype_;	// packet type (see above)
   462		int	size_;		// simulated packet size
   463		int	uid_;		// unique id
   464		int	error_;		// error flag
   465		int     errbitcnt_;     // # of corrupted bits jahn
   466		int     fecsize_;
   467		int 	pid_;
   468		int 	psn_;
   469		int 	pts_;
   470		double	ts_;		// timestamp: for q-delay measurement
   471		int	iface_;		// receiving interface (label)
   472		dir_t	direction_;	// direction: 0=none, 1=up, -1=down
   473		// source routing 
   474	        char src_rt_valid;
   475		double ts_arr_; // Required by Marker of JOBS
I'm still getting a "pid error" :
Code:
sara/sara.cc: In member function `virtual void Sara::forwardData(Packet*, double)':
sara/sara.cc:2229: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2230: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2231: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2263: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2265: error: 'struct hdr_cmn' has no member named 'pid'
sara/sara.cc:2265: error: 'struct hdr_cmn' has no member named 'pid'
make: *** [sara/sara.o] Error 1

Last edited by knudfl; 01-18-2012 at 04:11 PM.
 
Old 02-03-2012, 02:32 PM   #23
rachaji
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Question

I have the same pb, but when I add this line in common/packet.h : inline int& pid() { return (pid_); }, the command make complete successfully. but I still have a pb when I try to run the script of sara run_sim.sh. this is the erreur:
./run_sim.sh: line 4: 2454 Erreur de segmentation ns manet.sara.FTP.tcl -rs 18

someone have an idea plz.
 
Old 03-03-2012, 01:36 PM   #24
rachaji
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Hi,
someone plz can help me to interpret the trace file for SARA:
M 0.00000 0 (113.78, 289.50, 0.00), (99.01, 345.99), 5.00
M 0.00000 1 (613.54, 13.69, 0.00), (452.62, 522.62), 5.00
.
s 1.000000000 _18_ AGT --- 0 tcp 40 [0 0 0 0] ------- [18:0 100:0 32 0] [0 0] 0 0
*S _18_ 40
*C _18_ 16 12 SARA_FANT -1
s 1.004319966 _18_ MAC --- 1 sara 88 [0 ffffffff 12 800] ------- [18:255 -1:255 2 0]
r 1.005024328 _21_ MAC --- 1 sara 36 [0 ffffffff 12 800] ------- [18:255 -1:255 2 0]
*C _12_ 16 53 SARA_FANT -1
.
*C _28_ 16 71 SARA_FANT -1
*C _66_ 12 15 SARA_BANT 15
.
r 1.023272881 _15_ MAC --- 0 ARP 28 [0 ffffffff 42 806] ------- [REQUEST 66/66 0/15]
s 1.023890685 _66_ MAC --- 0 CTS 38 [3c4 f 0 0]
s 1.024205489 _15_ MAC --- 0 ARP 80 [13a 42 f 806] ------- [REPLY 15/15 66/66]
r 1.025161097 _15_ MAC --- 0 ACK 38 [0 f 0 0]
s 1.025570293 _66_ MAC --- 0 RTS 44 [51e f 42 0]
.
D 1.037136752 _63_ MAC COL 0 ARP 80 [0 ffffffff 2 806] ------- [REQUEST 2/2 0/71]
.
*TD 0.053860 _18_ 1 -S 18 -D 100 1.053860
.
*MSG _100_ 18 1 OK 1.080202
*R _100_ 40 0.080202
.
*D _17_ 0 0
*P 100.000000 _18_ 26
*D _18_ 3 0
*P 100.000000 _19_ 17
*D _19_ 2 5
*P 100.000000 _20_ 67
.
Thanks in advance
 
Old 02-24-2015, 08:03 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
New SARA patches ...

( https://groups.google.com/forum/?fro...s/l-ArsQwOQ0sJ )

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

sara_ns231.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

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

-
 
Old 03-31-2017, 12:08 PM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
A new SARA patch : sara_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Using, in ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < sara_ns235.patch
./install
 
  


Reply

Tags
ns2, sara


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
Does anyone have SARA 7.9.1 or 7.9.2A available kaplan71 Linux - Software 3 04-27-2010 01:21 PM
Linux + Code Blocks + Shared Library + my Implementation = Not Working! morty346 Programming 1 04-27-2009 05:21 PM
Unable to execute code in Implementation class when a button is clicked Gnarg Programming 2 12-01-2005 07:36 AM
SARA install Crashed_Again Linux - Security 4 12-19-2002 06:37 PM
SARA and ipchains ugge Linux - Security 2 10-02-2001 01:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration