<< NL_I_PMDeletePackets NL_I: Internet NL_I_PacketMPTCPIntraNet >>

NARVAL >> NL_I: Internet > NL_I_PacketAck

NL_I_PacketAck

Acknowledge a list of packets inside a packet manager.

Calling Sequence

[R] = NL_I_PacketAck(R,V)

Arguments

R :

Packet manager.

V :

Vector of packets.

Description

NL_I_PacketAck acknowledges the vector of packets V (index) inside the packet manager R. Then the 6th field of each packet of V rates 1.

Examples

[path]=NL_F_NLPath();//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]=NL_F_RandIntNiNj(n);//generation of connection extreme nodes
L=1000;
t=1;//current time
[probroute]=NL_I_RouteManagerInit(rt1,rt2,rt3,rt4,rt5,pt,n,L);//initialization of the route manager
network=NL_I_NetworkMatrixInit(n,bs);//initialization of the reception network matrix 
networks=NL_I_NetworkMatrixInit(n,bs);//initialization of the emission network matrix
tpmax=n*bs;//maximal quantity of packets simultaneously supported by each network matrix 
rp=NL_I_PacketManagerInit(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]=NL_I_ConnectionManager(nd,n,bs,cpmax,networks,rp,ct,p);//generation of new connections
[v]=NL_I_PacketsLocation(networks);//calculate the node locations where connections have been created 
[vis,vi]=NL_I_NodeBufferExtract(v(1),networks);//extract the vector of connection packets of the first node of v
vi
rp(1:length(vi),:)//initial values
[rp]=NL_I_PacketAck(rp,vi);//application of NL_I_PacketAck 
rp(1:length(vi),:)//new values

Report an issue
<< NL_I_PMDeletePackets NL_I: Internet NL_I_PacketMPTCPIntraNet >>