Perform the path where a packet needs to be forwarded from its source in order to reach its destination (local routing table).
[p] = NARVAL_R_AodvPath(s,d)
source.
destination.
path.
NARVAL_R_AodvPath performs the path p where a packet needs to be forwarded from its source s in order to reach its destination d (local routing table). If an intermediate node does not have the information stored inside its routing table, the result is empty.
l=3;//number of lines c=4;//number of columns Lx=1000;//network area x-side Ly=1000;//network area x-side [g]=NARVAL_T_Grid(l,c,Lx,Ly);//creation of a grid topology w=1;//window index f1=NARVAL_G_ShowNodesIndex(g,w);//graph visualization for i=1:g.node_number global ('rt'+string(i));//creation of empty routing tables end bss=10;//maximum buffer size bs=bss*ones(1,g.node_number);//generation of routing tables NARVAL_R_AodvRTables(g,bs);//generation of routing tables //rti=final routing table of node i TTL=5;//research Time-To-Live ID=1;//index of the route discovery Source=1;//source node Destination=7;//destination node [mat,routemat]=NARVAL_R_AodvRreq(g,Source,Destination,TTL);//route discovery NARVAL_R_AodvRrep(g,Source,Destination,ID,routemat);//routing tables update [path]=NARVAL_R_AodvPath(Source,Destination);//application of NARVAL_R_AodvPath path | ![]() | ![]() |
Dr. Foued Melakessou
Research Associate
Interdisciplinary Centre for Security, Reliability and Trust
Room F106
University of Luxembourg
6, rue Coudenhove Kalergi
L-1359 Luxembourg-Kirchberg
E-mail: foued.melakessou@uni.lu
Tel: (+352) 46 66 44 5346