[ns] Call AES fonction in NS2

2011-09-02 Thread Loukman NAJDI

Hello All

I work to add security in routing protocol like AES algorithm for  
exemple, i created a new agent and new packet type, after this step i  
will add the AES in this agent.
 From internet i brought the AES C++ code, but i dont know how can i  
invite it from NS2. AES code, contain the Encryption and decryption  
functions, where i want to call them from the new agent.

Cordially !



[ns] Agent creation problem

2011-08-16 Thread Loukman NAJDI

Hello

When i have created a new agent in ns2-2.34, the make depend and make  
options are passed succesfully, after that when itry to run my TCL  
code an error occur :

ns:
[code omitted because of length]
: invalid command name Agent/TCP/Fack
while executing
Agent/TCP/Fack set ss-div4_ false

any idea ?



Re: [ns] Agent creation problem

2011-08-16 Thread Loukman NAJDI

Thx Fahimeh and Nicholas

I have modified the Makefile.in, i have added tcp/tcp-fack.o, but i  
have another problem :

tcp/tcp-fack.o: In function `ScoreBoard::ScoreBoard(ScoreBoardNode*, int)':
tcp-fack.cc:(.text._ZN10ScoreBoardC1EP14ScoreBoardNodei[ScoreBoard::ScoreBoard(ScoreBoardNode*,
 int)]+0x8): undefined reference to `vtable for  
ScoreBoard'
collect2: ld returned 1 exit status
make: *** [ns] Erreur 1

And thx for the tutorial Fahimeh i will read it 2morrow.

Regards

Quoting nicholas mbonimpa nmboni...@gmail.com:

 Dear Fahimeh,

 Thanks a lot for the correction.

 Kind regards,

 Nicholas Mbonimpa


 On Tue, Aug 16, 2011 at 6:20 PM, Fahimeh Akbari fahimeh...@yahoo.comwrote:


 Dear loukman

 with thanks from Nicholas, I suggest you that modify makefile.in instead
 of makefile, according to Nicholas help. I attached you a .pdf file that is
 so usefull in creating a new agent and adding it to in NS. please read the
 needed changes  part of it that explains how to add your new agent to ns.
 be lucky.

 your sincerely: Fahimeh
 --
 *From:* nicholas mbonimpa nmboni...@gmail.com
 *To:* Fahimeh Akbari fahimeh...@yahoo.com
 *Cc:* Loukman NAJDI loukman.na...@utt.fr; ns-users@ISI.EDU 
 ns-users@isi.edu
 *Sent:* Tuesday, August 16, 2011 3:51 PM
 *Subject:* Re: [ns] Agent creation problem

 Hi there,

 As Fahimeh said, you've most probably not gone through all the necessary
 steps of adding a new agent.

 Most importantly, you need to modify the Makefile in the ns-2.34 (or your
 version of ns-2) directory and include tcp-Fack.o, then run make again to
 create an executable for your agent.

 I hope that will help.

 Kind regards,

 Nicholas Mbonimpa



 On Tue, Aug 16, 2011 at 11:20 AM, Fahimeh Akbari   
 fahimeh...@yahoo.comwrote:


 Hi
 please explain your steps for defining your new agent and adding it to NS.

 Thanks



 
 From: Loukman NAJDI loukman.na...@utt.fr
 To: ns-users@ISI.EDU
 Sent: Tuesday, August 16, 2011 6:57 AM
 Subject: [ns] Agent creation problem


 Hello

 When i have created a new agent in ns2-2.34, the make depend and make
 options are passed succesfully, after that when itry to run my TCL
 code an error occur :

 ns:
 [code omitted because of length]
 : invalid command name Agent/TCP/Fack
 while executing
 Agent/TCP/Fack set ss-div4_ false

 any idea ?












[ns] NS2 Error

2011-08-11 Thread Loukman NAJDI

Hi All

When i have installed NS2 in my VMware Fedora 10, i received this error:

[root@localhost ns-2.34]# ns
ns:
[code omitted because of length]
: invalid command name }
 while executing
}


Regards



[ns] Security in NS2

2011-08-04 Thread Loukman NAJDI

Hello,

Can anyone help me to know how can i implement the security in NS2,  
like encryption or hashing, btw i have the C++ code of AES for  
example, but i dont know how i implement it in NS2 ...
Any idea

Thank u!
Cordially



[ns] NS 2.1b5

2011-07-25 Thread Loukman NAJDI

Hello

How can i get the NS 2.1b5 version?
May i install it in the same PC where the NS 2.34 is installed?

Thx



[ns] A few issues (Routing protocols)

2011-07-15 Thread Loukman NAJDI

Hi everyone

Can anyone give me the methode to implement a routing protocol for
WSN? i have 5 nodes share informations between each other, for
example, if i have the code of AODV, DSR or SPIN protocol, how can i
implement this protocol in this scenario?

Cordiallay



[ns] SPIN Protocol

2011-07-13 Thread Loukman NAJDI

Hello

I'm a new user of NS2, i have learned the basic principles of NS2, but
the aim of my training is to implement the Protocol SPIN (used in
wireless sensor network) in NS2, can any one help me?

Cordially