<< 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(probroute,k)

Parameters

proberoute :

route manager.

k :

path index.

r :

route index.

Description

NARVAL_I_SelectRoute selects the path r in respect with the route manager probroute. The path index rates k=(ni-1)*n+nj ni and nj are the path extremal nodes and n 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

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_I_RouteProbChange NARVAL NARVAL_I_SendTcpInter >>