Perform the displacement of a TCP packet from an emission network matrix towards an reception network matrix.
[net,nets,rp,swi,rti] = NARVAL_I_SendTcpInter(ni,p,bs,net,nets,rp,t,swi,rti,rtmax)
node index.
TCP packet.
buffer size.
reception network matrix.
emission network matrix.
packet manager.
current time.
sliding window of each network node.
retransmission time of each network node.
maximum value of the retransmission time parameter.
NARVAL_I_TcpPacketIntra performs the displacement of the TCP packet already located inside the buffer of the node ni of the emission network nets towards the reception network net. swi gathers the sliding window of each network node. rti provides the retransmission time of each network node. rtmax corresponds to the maximal retransmission time. rp represents the packet manager. t is the current time.
[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 swmin=1;//initial sliding window rtmin=1;//initial retransmission time rtmax=50;//maximal retransmission time p=0.90;//probability threshold [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 ind=find(networks(:,$) <> 0);//location of nodes where connections have been created i=ind(1);//first node of ind p=networks(i,1);//its first packet [network,networks,rp,swi,rti]=NARVAL_I_SendTcpInter(i,p,bs,network,networks,rp,t,swi,rti,rtmax);//application of NARVAL_I_SendTcpInter networks(i,:) network(i,:) | ![]() | ![]() |
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