Re: [ns] Fw: how i can run new mac protocol in ns
Dear Reza,Create a new folder in the ns2.xx folder and place your .cc and .h file in that folder.Go to the makefile, and add this "(folder name)/(your .cc file name, with .o postfix)\ " after OBJ_CC = \ but before $(OBJ_STL).Once thats done, save your makefile. And run the command "make clean", then "make depend", and finally "make".If no error are reported after the "make" command, then this means, your .cc and .h files have no error. And therefore a .o file will be created in your folder after you have run "make" command. Your new mac protocol is now ready to be used. Jalaluddin Qureshi Nanyang Technological University http://www.cemnet.ntu.edu.sg--Forwarded Message Attachment--From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Mon, 21 Jul 2008 19:09:23 -0700Subject: [ns] Fw: how i can run new mac protocol in nshelloi design a new mac protocol and i want to implement it in nsbut i can't.i can't use makefile command for this protocol.my problem is that i write the .h and .cc file for new protocol but i can't implement this protocol in nsplease help methanksreza mohammadi _ Easily publish your photos to your Spaces with Photo Gallery. http://get.live.com/photogallery/overview
Re: [ns] Encryption of AODV packets
Dear Deepazed, Try this link: sce.uhcl.edu/transa/Sourcecode/NS-2_Security_Node_Document.doc The title of this project is: Encryption/Decryption functions for NS-2 Which i feel is relevant to your problem. Kind Regards Jalaluddin Qureshi Research Student @ CeMNet, SCE. Nanyang Technological University www.cemnet.ntu.edu.sg . --Forwarded Message Attachment-- From: [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Wed, 23 Jul 2008 13:17:47 -0400 Subject: [ns] Encryption of AODV packets Helo NS users, Am faily new at using NS2 and was wondering if i could get some help on encryption. Am trying to add encryption to the AODV routing protocol and would like to find out how i go about doing so. i have looked us the various encryption algorithms and there benefits to my simulation but am at loss on how to add these algorithms/code to AODV so i can measure the various security parameters. I would like to add encryption as a first line of defence in securing the packets before i can go into the protocol itself and try to make it more secure. any help would be greatly appreciated. Deepazed _ Manage multiple email accounts with Windows Live Mail effortlessly. http://www.get.live.com/wl/all
Re: [ns] How to get a mobile node's current position
Dear Liceven, While I cant give you step-by-step instruction on how to solve your problem. But here is the idea. If you were to go to ns-allinone2.xx/ns2.xx/mobile/antenna.cc file you will see the function: Antenna::Antenna() { X_ = 0; Y_= 0; Z_= 0; bind("X_", &X_); bind("Y_", &Y_); bind("Z_", &Z_); } Basically this constructors binds the X_ variable in the TCL file with the X_ in the C++ file. If you were to add say: cout << "X position" << X_ << endl; cout << "Y position" << Y_ << endl; cout << "Z position" << Z_ << endl; after bind("Z_", &Z_); but before }. And then run the "make clean" and "make" command at the Linux command terminal in the ns-allinone2.xx/ns2.xx/ prompt area. Once thats done, if you were to run your .tcl file, you will see an output, which specifies the position of your node in X, Y, Z coordinate. The glitch with this approach is that it shows you the coordinates for time 0.0, mean just at the start of the simulation. For your problem, YOU need to find the .cc file which is responsible for changing the X, Y, Z coordinates. Once you locate that .cc file, then locate the function which is changing the value of X, Y, Z, and then you can add the above cout lines at the end of that function. This way, when you run the simulation, you will get live time output of the X, Y, Z coordinates. If you know C++ half-decent, then I think it will not take you more than 2-5 hours to locate the function and find the solution of your problem. PLEASE ONCE YOU SOLVE YOUR PROBLEM, DO SHARE YOUR SOLUTION WITH OTHERS ON THE NS MAILING LIST. Kind Regards Jalaluddin Qureshi Research Student @ CeMNet, SCE Nanayang Technological University N4-B2c-06, Nanyang Avenue Singapore 639798 http://www.cemnet.ntu.edu.sg --Forwarded Message Attachment-- From: [EMAIL PROTECTED] To: ns-users@ISI.EDU Date: Wed, 23 Jul 2008 00:00:36 -0700 Subject: [ns] How to get a mobile node's current position Hello,everyone: I want to simulate a wireless scenario with two access points and a mobile node. This mobile node moves randomly, the question is how to calculate it's position like(x=?,y=?,z=0) at any given time. It could be better if you could give me an example. Of course, any suggestion is welcome. Regards. Liceven -- View this message in context: http://www.nabble.com/How-to-get-a-mobile-node%27s-current-position-tp18604950p18604950.html Sent from the ns-users mailing list archive at Nabble.com. _ Check out Barclays Premier League exclusive video clips here! http://fc.sg.msn.com/index.aspx