<< NARVAL_I_MptcpIntra NARVAL NARVAL_I_NTS >>

NARVAL >> NARVAL > NARVAL_I_NEBufferLoc

NARVAL_I_NEBufferLoc

Extract the index vector of nodes where the buffer presents a non-empty state inside a network matrix.

Calling Sequence

[vi]=NARVAL_I_NEBufferLoc(net)

Parameters

net :

network matrix.

vi :

index of nodes.

Description

NARVAL_I_NEBufferLoc extracts the index vector vi of nodes of the network matrix net where the buffer presents a non-empty state.

Examples

[path]=NARVAL_F_NARVALPath();//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]=NARVAL_F_Random_i_j(n);//generation of connection extreme nodes
L=1000;//network square area side
t=1;//current time
[probroute]=NARVAL_I_StartRouteProb(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager
network=NARVAL_I_EmptyBufferNet(n,bs);//initialization of the reception network matrix 
networks=NARVAL_I_EmptyBufferNet(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=1;//connection type selection index: creation of TCP connections
p=0.90;//probability threshold
[networks,rp]=NARVAL_I_ConManagerNodes(nd,n,bs,cpmax,networks,rp,ct,p);//Generation of new connections
[vi]=NARVAL_I_NEBufferLoc(networks);//application of NARVAL_I_NEBufferLoc 
vi
networks(vi,:)

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_I_MptcpIntra NARVAL NARVAL_I_NTS >>