Initialize a route manager.
[R] = NL_I_RouteManagerInit(Rt1,Rt2,Rt3,Rt4,Rt5,P,N,L)
First routing table.
Second routing table.
Third routing table.
Fourth routing table.
Fifth routing table.
Presence table.
Network size.
Network square area side.
Route manager.
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.
[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,:) | ![]() | ![]() |