<< NARVAL_I_EmptyBufferNet NARVAL NARVAL_I_FirstBPacket >>

NARVAL >> NARVAL > NARVAL_I_EmptyPacketMan

NARVAL_I_EmptyPacketMan

Initialize a packet manager.

Calling Sequence

[rp]=NARVAL_I_EmptyPacketMan(rpmax)

Parameters

rpmax :

maximal quantity of packets supported by each network matrix.

rp :

packet manager.

Description

NARVAL_I_EmptyPacketMan initializes the packet manager rp that can support rpmax 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=NARVAL_I_EmptyPacketMan(rpmax);//application of NARVAL_I_EmptyPacketMan
rp

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_I_EmptyBufferNet NARVAL NARVAL_I_FirstBPacket >>