<< NARVAL_I_R2R NARVAL NARVAL_I_SelectRoute >>

NARVAL >> NARVAL > NARVAL_I_RouteProbChange

NARVAL_I_RouteProbChange

Modify a route manager in respect with an event on a pursued path.

Calling Sequence

[probroute] = NARVAL_I_RouteProbChange(probroute,closs,cack,e,ri,nd,nf,n,m)

Parameters

probroute :

route manager.

closs :

modification factor of the route manager after a packet loss.

cack :

modification factor of the route manager after a packet acknowledgement.

e :

event: loss or ack.

ri :

route index.

nd :

source node.

nf :

destination node.

n :

network size.

m :

change mode: 0:/* or 1:+-.

Description

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).

Examples

[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

Authors

Foued Melakessou

Contact

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

Home Page


<< NARVAL_I_R2R NARVAL NARVAL_I_SelectRoute >>