<< NL_I_Reception2Reception NL_I: Internet NL_I_RouteManagerUpdate >>

NARVAL >> NL_I: Internet > NL_I_RouteManagerInit

NL_I_RouteManagerInit

Initialize a route manager.

Calling Sequence

[R] = NL_I_RouteManagerInit(Rt1,Rt2,Rt3,Rt4,Rt5,P,N,L)

Arguments

:

First routing table.

:

Second routing table.

:

Third routing table.

:

Fourth routing table.

:

Fifth routing table.

P :

Presence table.

N :

Network size.

L :

Network square area side.

R :

Route manager.

Description

NL_I_RouteManagerInit initializes the route manager R. For each connection between two network nodes, R provides a set of alternative paths combined with a probability to use them in respect with their hop length and total length.

Examples

[path]=NL_F_NLPath();//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');
n=100;//network size
L=1000;//network square area side
[nd,nf]=NL_F_RandIntNiNj(n)//generation of connection extreme nodes
[r1,r2,r3,r4,r5]=NL_R_MultiPathERT(rt1,rt2,rt3,rt4,rt5,nd,nf,g)//alternative routes between nd and nf
k=(nd-1)*n+nf;//line index of the connection between nd and nf
[RM]=NL_I_RouteManagerInit(rt1,rt2,rt3,rt4,rt5,pt,n,L);//application of NL_I_RouteManagerInit
RM(k,:)

Report an issue
<< NL_I_Reception2Reception NL_I: Internet NL_I_RouteManagerUpdate >>