How To Encrypt Data In Ns2 By Any Of Algorithm?

Hi all,

now i need to know

i) how to add encryption and decryption in any of routing-(DSDV,DSR,AODV,OLSR)?

ii) As of now in routing i am able to see only data flows, but is it possible to send some data(message) from source node and i want to retrieve(read) those messages from receiver nodes?

Since i am beginner, Quote:
i dont know whether my question is right or wrong?
Thanks

Pon


Similar Content



Encryption And Decryption At The Application Layer

Hello everyone,
i would like to encrypt & decrypt data at the application level.
This data needs to be send to another device via wireless.I found one such cipher named ceaser cipher in the internet.But it looks weak and easy to be broken. Can someone suggest me robust cipher's concepts which can be done at application layer?

How Do I Edit Mannasim Tcl File To Generate Mobile Nodes For WSN Protocols

Hi,

I intend to use mannasim script generator tool to create mobile nodes for routing protocols like aodv, leach , dsdv and dsr.

To be best of my knowledge, WSN nodes in mannasim are assumed to be static but I would like to know if there is a resource available which explains how the tcl code can be modified to achieve node mobility.

I have tried searching google but I haven't gotten satisfying search result.

It seems is better to ask an experienced ns2/mannasim user.

Be sure your kind response is valued

No Data Sent In Pegasis.out (NS2)

Hi all,

I was wondering did anyone try running PEGASIS simulation on NS-2.34? I am using Ubuntu 10.04 and I tried running it with the LEACH+PEGASIS patch from exidus, but the pegasis output does not seem right, although the leach output seems fine.
As seen there is not data sent and the nodes alive stays 10 (used only 10 nodes) with energy still intact. Any input/thoughts are appreciated, thanks!

Code:
Creating sensor nodes... - uAMPS.tcl
0 1 2 3 4 5 6 7 8 9 (10 == BS) - uAMPS.tcl
*** NOTE: no connection pattern specified. - wireless.tcl
Loading scenario file... - wireless.tcl
Node 0: (3.6149593552644173,36.078549379519444)
Node 1: (58.871299055810688,72.899243455798938)
Node 2: (66.192033079542227,78.762060347368035)
Node 3: (26.408279047537725,13.096542662520214)
Node 4: (69.871280002347788,8.1301262174407611)
Node 5: (59.175824494648644,20.065448163107714)
Node 6: (23.120326699279399,59.510628627385309)
Node 7: (35.061642916436142,75.71922716485301)
Node 8: (10.49768087011654,98.860375722339555)
Node 9: (28.928238399759049,88.984149177085683)
Max Distance for this Simulation is 113.0
Load complete... - wireless.tcl
Starting Simulation... - wireless.tcl
BS received info: (3.6149593552644173 36.078549379519444 2) from Node 0  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 1 - mit/uAMPS/ns-bsapp.tcl
BS received info: (58.871299055810688 72.899243455798938 2) from Node 1  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 2 - mit/uAMPS/ns-bsapp.tcl
BS received info: (66.192033079542227 78.762060347368035 2) from Node 2  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 3 - mit/uAMPS/ns-bsapp.tcl
BS received info: (26.408279047537725 13.096542662520214 2) from Node 3  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 4 - mit/uAMPS/ns-bsapp.tcl
BS received info: (69.871280002347788 8.1301262174407611 2) from Node 4  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 5 - mit/uAMPS/ns-bsapp.tcl
BS received info: (59.175824494648644 20.065448163107714 2) from Node 5  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 6 - mit/uAMPS/ns-bsapp.tcl
BS received info: (23.120326699279399 59.510628627385309 2) from Node 6  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 7 - mit/uAMPS/ns-bsapp.tcl
BS received info: (35.061642916436142 75.71922716485301 2) from Node 7  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 8 - mit/uAMPS/ns-bsapp.tcl
BS received info: (10.49768087011654 98.860375722339555 2) from Node 8  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 9 - mit/uAMPS/ns-bsapp.tcl
BS received info: (28.928238399759049 88.984149177085683 2) from Node 9  a nodik je 10 - mit/uAMPS/ns-bsapp.tcl
BS received: 10 - mit/uAMPS/ns-bsapp.tcl

At 10: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 20: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 30: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 40: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 50: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 60: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 70: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 80: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 90: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 100: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 110: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 120: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 130: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 140: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 150: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 160: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 170: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 180: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 190: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 200: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 210: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 220: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 230: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 240: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 250: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 260: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 270: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 280: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 290: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 300: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 310: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 320: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 330: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 340: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 350: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 360: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 370: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 380: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 390: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 400: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 410: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 420: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 430: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 440: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 450: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 460: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 470: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 480: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 490: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 500: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 510: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 520: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 530: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 540: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 550: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 560: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 570: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 580: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 590: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


At 600: - mit/uAMPS/stats.tcl
		Total Energy = 0.00020132494141871592
		Total Data = 0
		Total Alive = 10


Simulation complete. - mit/uAMPS/stats.tcl

num_nodes is set 11
mac/channel.cc: sendUp - Calc highestAntennaZ_ and distCST_
mac/channel.cc: highestAntennaZ_ = 1.5,  distCST_ = 160.8

Data Is Not Visible Which Is Mounted On /dev/sdb1

Hi All,

I have Redhat5.3 running on my machine. I have 800 GB data mounted on /dev/sdb1 partition. When I reboot my machine and after reboot the data is not available in /data folder. I have already use mount command but its not working.

Can anyone help me how to retrieve those data.

Utilizing Rsync To Backup Data But Symbolic Links To Included

Please forgive me but I'm a little new to Red Hat (RHEL 5). I'm using rysnc to backup critical data and to a second disk; here is what I'm typing at the command line rsync -rvgal /data/disk1/share /data/backup/share. It appears that the softlinks are not transfered to the backup drive and some of the links point to data not located in the source folder (/data/share). After reading the rsync man page I was a little confused about the L option (vs the l option). In order to ensure that the linked files are moved should I type the below:

rsync -rvgaL /data/disk1/share /data/backup/share

A million thanks,
Johnny Mac

Problem With Creating Malicious Node For OLSR In Ubuntu 14.10 With Ns 2.35

Experts,


I need your help to create malicious nodes for OLSR routing protocol. I completly patch OSLR in ns 2.35 in ubuntu 14.10 (32-bit) and its working but when I am try to create any malcious node by defining it "Malicious" or "hacker" it show me an error and not running that .tcl file.

for an example.

$ns_ at 0.0 "[$node_(8) set ragent_] hacker "
$ns_ at 0.0 "[$node_(14) set ragent_] hacker "
$ns_ at 0.0 "[$node_(20) set ragent_] hacker "
$ns_ at 0.0 "[$node_(26) set ragent_] hacker "



Help me to solve this problem.
I searched over internet but couldn't find any solution.

Help me to solve this.

Thank you.

Encrypting Audio Data

will encrypting my audio data and burning it on a cd/dvd be worth it since the other person can copy it onto there pc? such as audio files for court? I know it can be copied as long as the pc reads it. but can I protect or encrypt its data as not to be altered when copied? if it is possible please do tell thanks in advance.

Implementation Of Routing Protocol In Vanets

Hi all,
I am working on routing protocols in vanets. Can anyone provide me with relevant source code for implementation of routing protocols in vanets.

Regards,
Pratik Korkankar

Please Explain How This Read Command Works

Hi All,

I am new to linux and I am finding difficulties in understanding the below commands.

Please explain what is happening in the below commands.

Code:
IFS="~"
exec 4< $BCP_DIR/cnts.data
while read -ru4 TableName Count CreationDateTime Type AccessDate
do
        . /apps/rmb/prod/scripts/load_datasum.ksh
done
IFS=" "
exec 4<&-


Please explain how this commands flows especially
exec 4< $BCP_DIR/cnts.data & exec 4<&-

Watchdog & Pathrater Implementation In AODV Protocol In Ns2.35

Hi,

i wana implement the watchdog & pathrater on AODV protocol in MANETS for misbehaving nodes on NS2.35. I wana show its performance analysis via xgraph. I have added a malicious node on AODV protocol after that i couldnt figure out how can i implement watchdog and pathrater and show analysis via xgraph. I have chcked the similar threads here but it was for ns 2.34 but still i tried it and m getting errors. I downloaded the watchdog zip files and followed the instructions of text file of it. One more thing, is it necessary to set all nodes for promiscuous mode??I also need code for that. I put the watchdog-basic.zip folder in AODV folder which was inside of ns-2.35 but what should be the tcl script for watch dog i have aodv tcl file in which malicious node is added too. I am new to ns2 and linux. Please help anyone i urgently need answers.