LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-30-2014, 11:57 PM   #1
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26
Blog Entries: 3

Rep: Reputation: Disabled
ns2: implementation of black hole attack in TORA protocol


hello i need necessasry things to inject black attack in Temporally Ordered routing algorithm
 
Old 07-31-2014, 05:01 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,453

Rep: Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930
Quote:
Originally Posted by venkatadri View Post
hello i need necessasry things to inject black attack in Temporally Ordered routing algorithm
We'll be glad to help with a specific problem/question, but this really isn't the place to come to have people look things up for you. And haven't you been working with/asking about TORA for TWO YEARS now???
http://www.linuxquestions.org/questi...4/#post4808772
http://www.linuxquestions.org/questi...2/#post4793681

Since you're a research scholar...research should be something you're familiar with. Have you tried to find ANYTHING on your own, or made ANY progress over the past two years?
 
Old 08-31-2014, 11:59 PM   #3
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
i am able to implement black hole attack in aodv, but the functionality of tora is different than aodv, i confused to inject blak hole attack either in recv_TORA(Packet *p) or recv_Qrypacket() functions, give me just idea , i dont need any coding
 
Old 09-01-2014, 10:05 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,453

Rep: Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930
Quote:
Originally Posted by venkatadri View Post
i am able to implement black hole attack in aodv, but the functionality of tora is different than aodv, i confused to inject blak hole attack either in recv_TORA(Packet *p) or recv_Qrypacket() functions, give me just idea , i dont need any coding
"Idea" about what??? As asked, haven't you been working with this for TWO YEARS now??? What are you having problems DOING?? We can try to help with a specific question, but there's not alot we can tell you if you don't ask.

Post the code you've written, and tell us where you're stuck.
 
Old 09-01-2014, 10:34 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Google .. black hole attack in tora ..
https://www.google.com/webhp?hl=all&...attack+in+tora

Example
. http://www.ijedr.org/papers/IJEDR1403016.pdf
 
Old 09-01-2014, 11:35 PM   #6
venkatadri
LQ Newbie
 
Registered: Aug 2011
Posts: 26

Original Poster
Blog Entries: 3

Rep: Reputation: Disabled
unable to implement Black Hole attack in TORA

I am working on TORA since three years, with the help of knudfl i am able to run basic TORA, in ns2, now i would like to implement d

black hole attack in tora, for this i tried the following code
void
toraAgent::recvQRY(Packet *p)
{
struct hdr_ip *ih = HDR_IP(p);
struct hdr_tora_qry *qh = HDR_TORA_QRY(p);
TORADest *td;
TORANeighbor *tn;
if (blackhole == true ) {
drop(p, DROP_RTR_ROUTE_LOOP);
printf("node %d Act as blackhole and dropping the packet\n", index);
}[/B]
if(qh->tq_dst == ipaddr()) {
but with this code, when calculating throughput, sending packets 0, receiveg packets 0 and dropped packets 0. how it possible.
 
Old 09-02-2014, 11:21 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,453

Rep: Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930Reputation: 7930
Quote:
Originally Posted by venkatadri View Post
I am working on TORA since three years, with the help of knudfl i am able to run basic TORA, in ns2, now i would like to implement d

black hole attack in tora, for this i tried the following code
void
toraAgent::recvQRY(Packet *p)
{
struct hdr_ip *ih = HDR_IP(p);
struct hdr_tora_qry *qh = HDR_TORA_QRY(p);
TORADest *td;
TORANeighbor *tn;
if (blackhole == true ) {
drop(p, DROP_RTR_ROUTE_LOOP);
printf("node %d Act as blackhole and dropping the packet\n", index);
}[/B]
if(qh->tq_dst == ipaddr()) {
but with this code, when calculating throughput, sending packets 0, receiveg packets 0 and dropped packets 0. how it possible.
So despite THREE YEARS of work with this, and examples that someone else had to look up, you still aren't able to do anything with NS2 or Tora on your own???

The PDF and example that knudfl sent have the information you need.
 
  


Reply

Tags
ns2


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
Problem in simulating Black Hole Attack in AODV Protocol through NS2 in FC8 shyan Linux - Newbie 3 02-17-2015 04:21 PM
Help with black hole Attack in manets using ns2 akhi_02 Linux - Wireless Networking 1 02-18-2014 08:08 AM
[SOLVED] How can I implement cooperative black hole attack in AODV protocol? eikhin Linux - Newbie 1 09-18-2013 10:03 AM
black hole attack in aodv protocol my3ram Linux - Wireless Networking 0 12-29-2011 09:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:09 PM.

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