LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2014, 07:22 AM   #1
Rashmi Narahari
LQ Newbie
 
Registered: Feb 2014
Posts: 3

Rep: Reputation: Disabled
How to assign Trust value in NS2 for simulating Blackhole attack in AODV in MANET?


Please help me....I want the tcl script file....I am a newbie to NS2...
 
Old 02-17-2014, 10:38 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by Rashmi Narahari View Post
Please help me....I want the tcl script file....I am a newbie to NS2...
So what is your question? We're not going to write the script file for you, and we're not going to do a Google search for you and give you the link. But we will be more than happy to assist you if you have problems with your script or how to implement it.
 
Old 02-17-2014, 11:00 AM   #3
Rashmi Narahari
LQ Newbie
 
Registered: Feb 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
I already tried to simulate the relevant TCL script...But it is showing lot of errors....My problem is to debug those errors and how to assign a threshold trust value for nodes based on which we can take a decision whether the node is malicious or not...If you know about this do reply....Else no issues.
 
Old 02-17-2014, 11:04 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by Rashmi Narahari View Post
I already tried to simulate the relevant TCL script...But it is showing lot of errors....My problem is to debug those errors and how to assign a threshold trust value for nodes based on which we can take a decision whether the node is malicious or not...If you know about this do reply....Else no issues.
If you'd like help, then you need to post your script and what error(s) you got, and we can help you. But just telling us you got errors gives us NO INFORMATION at all, and no one can help you until you provide details.

So, post your script and the error message(s).
 
Old 02-17-2014, 11:43 AM   #5
Rashmi Narahari
LQ Newbie
 
Registered: Feb 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
invalid command name "Agent/rtproto/blackholeAODV"
while executing
"Agent/rtproto/blackholeAODV" instproc init args {
$self next $args
}
(file "blackholeaodv.tcl" line 19)
http://www.btechnos.com/2012/05/tcl-...blackhole.html

If i use the tcl file for blackhole available at above mentioned link and generating scenario file using "./setdest" and cbr file using "ns cbrgen.tcl" then it gives following error

Code:
num_nodes is set 20
Creating nodes...
INITIALIZE THE LIST xListHead

(_o433 cmd line 1)
invoked from within
"_o433 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o433" line 2)
(SplitObject unknown line 2)
invoked from within
"_o433 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i $val(nnaodv)} {$i < $val(nn)} {incr i} {
set node_($i) [$ns_ node]
$node_($i) random-motion 0 ;#disable random motion
$ns_ at 0.01 "$node_(..."
(file "blackholesim.tcl" line 58)
Please guide me to resolve this problem.
 
  


Reply


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
[SOLVED] simulating blackhole attack and wormhole attack in ns-2 aditijigyasi Linux - Newbie 7 07-04-2016 08:50 AM
Problem in simulating Black Hole Attack in AODV Protocol through NS2 in FC8 shyan Linux - Newbie 3 02-17-2015 03:21 PM
manet in ns2-wormhole attack(modifying aodv) indumit18 Linux - Software 2 02-02-2012 03:12 AM
simulating blackhole attack in ns-29 mnazanin Linux - Newbie 2 12-15-2011 10:42 PM


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