<< NARVAL_I_DisplayNetwork NARVAL NARVAL_I_EmptyBufferNet >>

NARVAL >> NARVAL > NARVAL_I_E2R

NARVAL_I_E2R

Transfer the first packet of each emission network node towards the reception network.

Calling Sequence

[swi,rti,net,nets,rp] = NARVAL_I_E2R(swi,rti,rtmax,net,nets,n,bs,rp,t,pr)

Parameters

swi :

sliding window of each network node.

rti :

retransmission time of each network node.

rtmax :

maximal retransmission time.

net :

reception network matrix.

nets :

emission network matrix.

n :

network size.

bs :

buffer size.

rp :

packet manager.

t :

current time.

pr :

route manager.

Description

NARVAL_I_E2R transfers the first packet of each emission network node towards the reception network. swi (respectivelly rti) gathers the sliding window (respectivelly the retransmission time) of each network node. rtmax corresponds to the maximal retransmission time value. net (respectivelly nets) is the reception (respectivelly emission) network matrix. The network topology is composed by n nodes. bs is the buffer size. rp corresponds to the packet manager. t is the current time. pr represents the route manager.

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
f=NARVAL_G_ShowNodesIndex(g,1);//graph visualization
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=3;//connection type selection index: 90% TCP 10% UDP
p=0.90;//probability threshold
swmin=1;//sliding window initial value
rtmin=1;//retransmission time initial value
rtmax=50;//maximal retransmission time
[swi,rti]=NARVAL_I_TcpStartPar(n,swmin,rtmin);//initialization of the TCP parameters for each node
[networks,rp]=NARVAL_I_ConManagerNodes(nd,n,bs,cpmax,networks,rp,ct,p);//generation of connections
[swi,rti,network,networks,rp]=NARVAL_I_E2R(swi,rti,rtmax,network,networks,n,bs,rp,t,probroute);//application of NARVAL_I_E2R
networks(find(networks(:,$) <> 0),:)//emission network state
network(find(networks(:,$) <> 0),:)//reception network state
rp(network(find(network(:,$) <> 0),1),:)//information of packets that are present on the reception network

Dependency

NARVAL_I_NEBufferLoc, NARVAL_I_FirstBPacket, NARVAL_I_BufferExchange, NARVAL_I_AddPackets2Net, NARVAL_I_TcpSlidingWind, NARVAL_I_SendTcpInter, NARVAL_I_SelectRoute

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_DisplayNetwork NARVAL NARVAL_I_EmptyBufferNet >>