Remove the first packet of a node buffer inside a network.
[P,Net] = NL_I_NodePacketExtract(I,Net)
Node index.
Network matrix.
Packet to send.
NL_I_NodePacketExtract extracts and removes the first buffer packet P of the node I inside the network matrix Net.
[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 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=2;//connection type selection index: creation of MPTCP connections p=0.90;//probability threshold [networks,rp]=NL_I_ConnectionManager(nd,n,bs,cpmax,networks,rp,ct,p);//generation of new connections [v]=NL_I_PacketsLocation(networks);//calculate the node locations where connections have been created networks(v(1),:)//initial state of the first node of v [p,networks]=NL_I_NodePacketExtract(v(1),networks);//application of NL_I_NodePacketExtract p networks(v(1),:) | ![]() | ![]() |