Create new connections inside the emission network matrix.
[nets,rp]=NARVAL_I_ConManagerNodes(nd,n,bs,csmax,nets,rp,cts,p)
emission node of the connection of interest.
network size.
buffer size.
maximal size of new connections.
emission network matrix.
packet manager.
connection type selection index.
probability threshold.
NARVAL_I_ConManagerNodes creates new connections inside the emission network matrix nets. All network nodes except the emission node nd of the connection of interest are candidates to the generation of new connections. n is the network size. bs corresponds to the buffer size of each network node. cpmax represents the maximal size of new connections. rp is the packet manager where all information about packets is stored. cts belongs to [0 1 2 3]. If ct is 0, all connections are UDP . If ct rates 1, all connections are TCP. If ct is 2, all connections are MPTCP. If ct rates 3, 90% of connections are TCP and the rest is UDP. Else each connection type is randomly selected between UDP, TCP and MPTCP.
n=100;//network size bs=15;//constant buffer size [nd,nf]=NARVAL_F_Random_i_j(n);//generation of connection extreme nodes network=NARVAL_I_EmptyBufferNet(n,bs);//initialization of the reception network matrix networks=NARVAL_I_EmptyBufferNetw(n,bs);//initialization of the emission network matrix tpmax=n*bs;//maximal quantity of packets simultaneously supported by each network matrix rp=NARVAL_I_EmptyPacketMan(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.95;//probability threshold [networks,rp]=NARVAL_I_ConManagerNodes(nd,n,bs,cpmax,networks,rp,ct,p);//application of NARVAL_I_ConManagerNodes networks(find(networks(:,$) lt gt 0),:)//new state of the emission network matrix for each starting node where connections have been created rp(1:sum(networks(:,$)),:)//route manager state | ![]() | ![]() |