Modify a route manager in respect with an event on a pursued path.
[probroute] = NARVAL_I_RouteProbChange(probroute,closs,cack,e,ri,nd,nf,n,m)
route manager.
modification factor of the route manager after a packet loss.
modification factor of the route manager after a packet acknowledgement.
event: loss or ack.
route index.
source node.
destination node.
network size.
change mode: 0:/* or 1:+-.
NARVAL_I_RouteProbChange modifies the route manager prodroute in respect with events as packet loss (e=0) or acknowledgement (e=1) on the pursued path ri between the nodes nd and nf of the network with size n. m is the change mode (0 for multiplicatif and 1 for additif).
[path]=NARVAL_F_NARVALPath();//path to NARVAL module path=path+'/demos/';//folder path load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables load(path+'topo_100.graph','g');//loading of the network graph n=100;//network size bs=15;//constant buffer size [nd,nf]=NARVAL_F_Random_i_j(n);//generation of connection extreme nodes L=1000;//network square area side t=1;//current time closs=0.9; cack=0.1; [probroute]=NARVAL_I_StartRouteProb(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager e=1;//packet acknowledgement ri=1;//on the first route m=0;//multiplicatif mode k=(nd-1)*n+nf;//line index of the connection location inside the route manager probroute(k,:)//initial state of the path selection between nd and nf [probroute]=NARVAL_I_RouteProbChange(probroute,closs,cack,e,ri,nd,nf,n,m);//application of NARVAL_I_RouteProbChange probroute(k,:)//new state after an acknowledgement on the path ri | ![]() | ![]() |
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