<< NARVAL_I_BufferExtract NARVAL NARVAL_I_DeletePackets >>

NARVAL >> NARVAL > NARVAL_I_ConManagerNodes

NARVAL_I_ConManagerNodes

Create new connections inside the emission network matrix.

Calling Sequence

[nets,rp]=NARVAL_I_ConManagerNodes(nd,n,bs,csmax,nets,rp,cts,p)

Parameters

nd :

emission node of the connection of interest.

n :

network size.

bs :

buffer size.

cpmax :

maximal size of new connections.

nets :

emission network matrix.

rp :

packet manager.

cts :

connection type selection index.

p :

probability threshold.

Description

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.

Examples

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

Dependency

NARVAL_F_Random_i, NARVAL_F_RandomVec, NARVAL_I_AddConnections, NARVAL_I_AddPackets2Net

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_I_BufferExtract NARVAL NARVAL_I_DeletePackets >>