<< NL_I_RouteManagerUpdate NL_I: Internet NL_I_ShowTrafficChange >>

NARVAL >> NL_I: Internet > NL_I_RouteManagerUpdateC

NL_I_RouteManagerUpdateC

Update a route manager after the end of a connection.

Calling Sequence

[R] = NL_I_RouteManagerUpdateC(R,S,K)

Arguments

R :

Route manager.

S :

Initial route manager state.

K :

Line index.

Description

NL_I_RouteManagerUpdateC updates the route manager R after the end of a connection. For a connection between the nodes I and J, the line K that needs to be updated is located in (I-1)*N+J if N represents the network size.

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');//loading of the network graph
n=100;//network size
bs=15;//constant buffer size
[nd,nf]=NL_F_RandIntNiNj(n);//generation of connection extreme nodes
L=1000;//network square area side
t=1;//current time
closs=0.9;
cack=0.1;
[probroute]=NL_I_RouteManagerInit(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager
probrouteinit=probroute;//backup of the original state of the route manager
e=1;//packet acknowledgement
ri=1;//on the route 1
m=0;//multiplicatif mode
k=(nd-1)*n+nf;
probroute(k,:)//initial state of the path selection between nd and nf
[probroute]=NL_I_RouteManagerUpdate(probroute,closs,cack,e,ri,nd,nf,n,m);//modification of the route manager
probroute(k,:)//new state after an acknowledgement on the path ri
[probroute]=NL_I_RouteManagerUpdateC(probroute,probrouteinit,k);//application of NL_I_RouteManagerUpdateCE
probroute(k,:)

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