<< NARVAL_I_RouteProbChange NARVAL NARVAL_I_SendTcpInter >>

NARVAL >> NARVAL > NARVAL_I_SelectRoute

NARVAL_I_SelectRoute

Select a path in respect with a route manager.

Calling Sequence

[r] = NARVAL_I_SelectRoute(pr,k)

Parameters

pr :

route manager.

k :

path index.

r :

route index.

Description

NARVAL_I_SelectRoute selects the path r in respect with the route manager pr. The path index rates k=(ni-1)*n+nj where ni and nj are the path extremal nodes and n is the network size.

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
[probroute]=NARVAL_I_StartRouteProb(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager
k=(nd-1)*n+nf;//line index for the connection between the nodes nd and nf
[r]=NARVAL_I_SelectRoute(probroute,k);//application of SelectRoute
probroute(k,:)
r

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_RouteProbChange NARVAL NARVAL_I_SendTcpInter >>