LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-27-2019, 02:44 PM   #1
patelsam3233@gmail.com
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Rep: Reputation: Disabled
NS 2.30 AquaSim adding security as orthogonal codes/CDMA in underwater MAC


Hello there ,

How can i add extra security to data packets in NS2 aquasim which developed for underwater propagation. Can i add CDMA/orthogonal codes in NS2 ?

Thanks in advance.
 
Old 03-27-2019, 05:57 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Some hints ....

Google, ns2 cdma
https://www.google.com/webhp?hl=all&...=en&q=ns2+cdma
Ex 1: The second hit is http://www.krishnagudi.com/wp-conten...7/11/Exp-6.pdf

... Which you can try to include in one of the many AquaSim examples
→ aquasim-examples-12.17.tar.gz
https://drive.google.com/file/d/1xcf...ew?usp=sharing

Ex 2: https://groups.google.com/forum/#!to...rs/9xLEtdecHPU

-

Last edited by knudfl; 03-27-2019 at 06:03 PM.
 
Old 03-28-2019, 11:54 AM   #3
patelsam3233@gmail.com
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks a lot for your quick response.

Google, ns2 cdma
https://www.google.com/webhp?hl=all&...=en&q=ns2+cdma
Ex 1: The second hit is http://www.krishnagudi.com/wp-conten...7/11/Exp-6.pdf
This would be helpful. It doesn't say anything about encryption. I understood they divide the total number of bandwidth in no of users. I just don't get how it can add cdma security as well in the network. Is CDMA already defined in NS2 wireless examples ? because i understand that you have to run this example under ns 2.30/tcl/ex/wireless examples/Exp-6.tcl
I really appreciate if you would tell me there is an additional security features embedded in the system.
Trace File - https://drive.google.com/open?id=1-u...zRtfvdyU2aWR-r

... Which you can try to include in one of the many AquaSim examples
→ aquasim-examples-12.17.tar.gz
https://drive.google.com/file/d/1xcf...ew?usp=sharing
Thanks a lot for all this. If i would define underwater channel parameters in the above Exp-6.tcl and if i run the tcl file, i think something would be wrong as the generated packet are almost 4300 and received packets are 12006 if i use the awk file. I don't understand this. Is that awk file counts ACK as well ?

Ex 2: https://groups.google.com/forum/#!to...rs/9xLEtdecHPU
Attached Thumbnails
Click image for larger version

Name:	xgraph.JPG
Views:	25
Size:	94.1 KB
ID:	30204  
Attached Files
File Type: txt Exp-6.txt (2.1 KB, 25 views)
 
Old 03-28-2019, 06:03 PM   #4
patelsam3233@gmail.com
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.
Thanks.

Some hints ....

Google, ns2 cdma
https://www.google.com/webhp?hl=all&...=en&q=ns2+cdma
Ex 1: The second hit is http://www.krishnagudi.com/wp-conten...7/11/Exp-6.pdf
i tried to add one more extra layer of security in the code as well. for that i did the necessary step to add security agent to aquasim by following the steps on
https://www.nsnam.com/2015/03/securi...et-in-ns2.html
http://www.engr.iupui.edu/~dskim/tut...ns2/?section=6
http://ocw.snu.ac.kr/sites/default/files/NOTE/7924.pdf
in my case it works well for ns2.35 but could not successful in ns 2.30. (I need to patch that ns 2.30 in order to run in aquasim)

... Which you can try to include in one of the many AquaSim examples
Can you please tell me how can i check the Exp-6.tcl is using any kind of encryption or not, because from my understanding it did not use any security, please correct me if i am wrong.
→ aquasim-examples-12.17.tar.gz
https://drive.google.com/file/d/1xcf...ew?usp=sharing
Thanks.

Ex 2: https://groups.google.com/forum/#!to...rs/9xLEtdecHPU
I did follow the logic and successfully did the bandwidth allocation but i don't know how to add one more security layer at transport layer with encryption.
-
]Welcome to LQ.
Thanks.

Some hints ....

Google, ns2 cdma
https://www.google.com/webhp?hl=all&...=en&q=ns2+cdma
Ex 1: The second hit is http://www.krishnagudi.com/wp-conten...7/11/Exp-6.pdf
i tried to add one more extra layer of security in the code as well. for that i did the necessary step to add security agent to aquasim by following the steps on
https://www.nsnam.com/2015/03/securi...et-in-ns2.html
http://www.engr.iupui.edu/~dskim/tut...ns2/?section=6
http://ocw.snu.ac.kr/sites/default/files/NOTE/7924.pdf
in my case it works well for ns2.35 but could not successful in ns 2.30. (I need to patch that ns 2.30 in order to run in aquasim)

... Which you can try to include in one of the many AquaSim examples
Can you please tell me how can i check the Exp-6.tcl is using any kind of encryption or not, because from my understanding it did not use any security, please correct me if i am wrong.
→ aquasim-examples-12.17.tar.gz
https://drive.google.com/file/d/1xcf...ew?usp=sharing
Thanks.

Ex 2: https://groups.google.com/forum/#!to...rs/9xLEtdecHPU
I did follow the logic and successfully did the bandwidth allocation but i don't know how to add one more security layer at transport layer with encryption.
 
Old 03-31-2019, 12:13 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4 : Please do not quote entire posts. A "one word reference" will do.

There is no encryption for ns2 (that works), except for "Security". ("Security-ns2" is not a real encryption.)

ns3 has aquasim and encryption. ns2 was replaced by ns3 years ago.
. https://www.google.com/webhp?hl=all&...&q=ns3+aquasim
. https://www.google.com/webhp?hl=all&...ns3+encryption


Re #3

"ns 2.30/tcl/ex/wireless examples/Exp-6.tcl" :
Aquasim examples can be run from any location.
Default is like /home/name/ns2/AquaSim/uw_tcl-examples-12.17/
→ aquasim-examples-12.17.tar.gz
https://drive.google.com/file/d/1xcf...ew?usp=sharing

And you actually don't need ns-2.30/. Can be deleted when 'ns' is saved to /usr/local/bin/
... See "ns2-INFO".

CDMA : I guess I have passed all the information that I can provide.

-
Attached Files
File Type: txt ns2-INFO.txt (1.3 KB, 23 views)
 
1 members found this post helpful.
  


Reply

Tags
aquasim, 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
[SOLVED] Aquasim:How insert mac protocol to aquasim vaj-bor Linux - Software 35 03-15-2017 06:43 PM
adding new protocol to ns2 and aquasim Arktech Linux - Networking 0 07-13-2014 06:45 AM
[SOLVED] How to compile .jar Java byte-codes into native machine codes? ilgaar Linux - Software 1 08-30-2010 12:52 AM
Are the hex codes for colors in a jpg the same codes as used in html? abefroman Linux - Security 3 07-31-2005 03:21 PM

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

All times are GMT -5. The time now is 07:10 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