<< NL_I_PacketMPTCPIntraNet NL_I: Internet NL_I_PacketTCPIntraNet >>

NARVAL >> NL_I: Internet > NL_I_PacketManagerInit

NL_I_PacketManagerInit

Initialize a packet manager.

Calling Sequence

[R] = NL_I_PacketManagerInit(M)

Arguments

M :

Maximal quantity of packets supported by each network matrix.

R :

Packet manager.

Description

NL_I_PacketManagerInit initializes the packet manager R that can support M packets. A packet is stored into a single line composed by 10 columns. The first column provides the packet presence (0 for an empty line and 1 if a packet is already defined). The second column represents the connection source node. The third column corresponds to the connection target node. The fourth column provides the connection length (quantity of packets). The fifth column corresponds to the packet index inside the connection. The sixth column represents the packet acknowledgement (initialized to 0 and 1 if the packet reaches its destination). The seventh column gives the packet arrival time on the reception network matrix. The eighth column represents the packet presence on the reception network(0 if it is not present and 1 if it is present). The ninth column is the packet type (UDP:0 TCP:1 MPTCP:2). Finally the tenth column provides the route taken by the packet (1:route 1, 2:route 2, 3:route 3, 4:route 4, 5:route 5). The route is initialized to 1 (shortest path).

Examples

n=100;//network size
rpmax=100;//constant buffer size
rp=NL_I_PacketManagerInit(rpmax);//application of NL_I_PacketManagerInit
rp(1:10,:)//first 10 line assigned to the first 10 packets

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