<< NARVAL_I_PacketAck NARVAL NARVAL_I_R2R >>

NARVAL >> NARVAL > NARVAL_I_PacketExtract

NARVAL_I_PacketExtract

Remove the first packet of a node buffer inside a network.

Calling Sequence

[p,net] = NARVAL_I_PacketExtract(ni,net)

Parameters

ni :

node index.

net :

network matrix.

p :

packet to send.

Description

NARVAL_I_PacketExtract extracts and removes the first buffer packet p of the node ni inside the network matrix net.

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
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=2;//connection type selection index: creation of MPTCP connections
p=0.90;//probability threshold
[networks,rp]=NARVAL_I_ConManagerNodes(nd,n,bs,cpmax,networks,rp,ct,p);//generation of new connections
[v]=NARVAL_I_NEBufferLoc(networks);//calculate the node locations where connections have been created 
networks(v(1),:)//initial state of the first node of v
[p,networks]=NARVAL_I_PacketExtract(v(1),networks);//application of NARVAL_I_PacketExtract
p
networks(v(1),:)

Dependency

NARVAL_I_BufferExchange

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_I_PacketAck NARVAL NARVAL_I_R2R >>