Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AODV routing protocol source code for wireless adhoc network

730 views
Skip to first unread message

Shamsad

unread,
Mar 26, 2009, 5:48:02 AM3/26/09
to
hello everyone

I am doing some research on routing protocol for wireless mesh network. I need the matlab source code of AODV routing protocol. If any one have this source code , please send me....i nedd it urgently....please please ....help me....

sharmeen.

Ammlan Ghosh

unread,
Jun 13, 2009, 3:32:01 AM6/13/09
to
"Shamsad " <sumi...@gmail.com> wrote in message <gqfj0i$5ek$1...@fred.mathworks.com>...

> hello everyone
>
> I am doing some research on routing protocol for wireless mesh network. I need the matlab source code of AODV routing protocol. If any one have this source code , please send me....i nedd it urgently....please please ....help me....
>
> sharmeen.

Dear Sharmeen,

You can try this out. (Not yet ploted in the graph.)

%Code : AODV Routing.
x=1:20;
s1=x(1);
d1=x(20);
clc;
A=randint(20);
% Making matrix all diagonals=0 and A(i,j)=A(j,i),i.e. A(1,4)=a(4,1),
% A(6,7)=A(7,6)
for i=1:20
for j=1:20
if i==j
A(i,j)=0;
else
A(j,i)=A(i,j);
end
end
end
disp(A);
t=1:20;
disp(t);



disp(A);
status(1)='!';
dist(1)=0;
next(1)=0;

for i=2:20

status(i)='?';
dist(i)=A(i,1);
next(i)=1;
disp(['i== ' num2str(i) ' A(i,1)=' num2str(A(i,1)) ' status:=' status(i) ' dist(i)=' num2str(dist(i))]);
end

flag=0;
for i=2:20
if A(1,i)==1
disp([' node 1 sends RREQ to node ' num2str(i)])
if i==20 && A(1,i)==1
flag=1;
end
end
end
disp(['Flag= ' num2str(flag)]);
while(1)

if flag==1
break;
end

temp=0;
for i=1:20
if status(i)=='?'
min=dist(i);
vert=i;
break;
end
end

for i=1:20
if min>dist(i) && status(i)=='?'
min=dist(i);
vert=i;
end
end
status(vert)='!';

for i=1:20
if status()=='!'
temp=temp+1;
end
end

if temp==20
break;
end
end

i=20;
count=1;
route(count)=20;

while next(i) ~=1
disp([' Node ' num2str(i) 'sends RREP message to node ' num2str(next(i))])
i=next(i);
%disp(i);
count=count+1;
route(count)=i;
route(count)=i;
end

disp([ ' Node ' num2str(i) 'sends RREP to node 1'])
disp(' Node 1 ')
for i=count: -1:1
disp([ ' Sends message to node ' num2str(route(i))])
end

Rohit baliyan

unread,
Jul 24, 2009, 2:50:17 AM7/24/09
to
"Ammlan Ghosh" <amm...@yahoo.com> wrote in message <h0vklh$631$1...@fred.mathworks.com>...

I have run this aodv code but there is no simulation of aodv protocol , can any one send me code for aodv simulation

shivam gupta

unread,
May 8, 2012, 7:13:07 AM5/8/12
to
"Rohit baliyan" <baliya...@yahoo.co.in> wrote in message <h4blj9$55i$1...@fred.mathworks.com>...
CAN YOU PLEASE SEND THE COMPLETE CODE FOR AODV ALONG WITH PLOTTING OF GRAPH OR THE DOCUMENTATION OF THE ABOVE CODE. I URJENTLY NEED IT.!!!!
THANKS

ritus...@gmail.com

unread,
Feb 22, 2014, 5:30:41 AM2/22/14
to
Hye
Can you please send me the source code of AODV on matlab

pushpendra kumar

unread,
Apr 4, 2016, 1:24:10 PM4/4/16
to
ritus...@gmail.com wrote in message <4ff7768f-1fbe-4896...@googlegroups.com>...
hello all , did u get the complete code ?
0 new messages