Transfer the first packet of each emission network node towards the reception network.
[S,Rt,Net,Nets,R] = NL_I_Emission2Reception(S,Rt,M,Net,Nets,N,B,R,T,Rm)
Sliding window of each network node.
Retransmission time of each network node.
Maximal retransmission time.
Reception network matrix.
Emission network matrix.
Network size.
Buffer size.
Packet manager.
Current time.
Route manager.
NL_I_Emission2Reception transfers the first packet of each emission network node towards the reception network. S (respectivelly ) gathers the sliding window (respectivelly the retransmission time) of each network node. M corresponds to the maximal retransmission time value. Net (respectivelly Nets) is the reception (respectivelly emission) network matrix. The network topology is composed by N nodes. B is the buffer size. R corresponds to the packet manager. T is the current time.
represents the route manager.
[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 f=NL_G_ShowGraphN(g,1);//graph visualization 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 [probroute]=NL_I_RouteManagerInit(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager network=NL_I_NetworkMatrixInit(n,bs);//initialization of the reception network matrix networks=NL_I_NetworkMatrixInit(n,bs);//initialization of the emission network matrix tpmax=n*bs;//maximal quantity of packets simultaneously supported by each network matrix rp=NL_I_PacketManagerInit(tpmax);//initialization of the packet manager cpmax=5;//maximal quantity of packets per connection ct=3;//connection type selection index: 90% TCP 10% UDP p=0.90;//probability threshold swmin=1;//sliding window initial value rtmin=1;//retransmission time initial value rtmax=50;//maximal retransmission time [swi,rti]=NL_I_TCPNetworkInit(n,swmin,rtmin);//initialization of the TCP parameters for each node [networks,rp]=NL_I_ConnectionManager(nd,n,bs,cpmax,networks,rp,ct,p);//generation of connections [swi,rti,network,networks,rp]=NL_I_Emission2Reception(swi,rti,rtmax,network,networks,n,bs,rp,t,probroute);//application of NL_I_Emission2Reception networks(find(networks(:,$) <> 0),:)//emission network state network(find(networks(:,$) <> 0),:)//reception network state rp(network(find(network(:,$) <> 0),1),:)//information of packets that are present on the reception network | ![]() | ![]() |