<< NL_G_HighlightFldLeaves NL_G: Graph NL_G_HighlightNodes >>

NARVAL >> NL_G: Graph > NL_G_HighlightNetwork

NL_G_HighlightNetwork

Highlight a network state in respect with the congestion level of each node.

Calling Sequence

[G] = NL_G_HighlightNetwork(G,L,E,B,D,M,W)

Arguments

G :

Graph.

L :

Quantity of links.

E :

Vector of links where current packets are propagated.

B :

Congestion level (buffer occupancy) of each node.

D :

Maximal node border used for the display.

M :

Maximal buffer occupancy.

W :

Window index.

Description

NL_G_HighlightNetwork highlights the graph G in respect with the congestion level (buffer occupancy) of each node stored inside the vector B. It is used to represent the network load state that consists of the current level of each router buffer at the time T. Thus if this metric is bounded by M, then nodes having this extremal value will be displayed with a border equal to D. L represents the quantity of network links. E corresponds to the vector of links where current packets are propagated. This function has been designed in order to show the congestion state of a network. When the buffer of a router is inferior to one half of the maximal value M, it is displayed in black. Moreover the node border is proportional to its buffer occupancy. When it is included into the range , it is represented in blue. Else it is displayed in red when it is greater than .

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
bo=20;//maximal node border
bum=bo;//maximal metric level
p=1;//window index
nf=length(g.node_x);//network size
gl=length(g.head);//quantity of network links
bu=int((bo+1)*rand(1,nf));//generation of a random buffer state
pl=int((gl+1)*rand());
lfo=int((gl)*rand(pl,1))+1;//generation of packets along lfo links
[g]=NL_G_HighlightNetwork(g,gl,lfo,bu,bo,bum,p);//application of NL_G_HighlightNetwork

Dependency

NL_G_ShowGraph

Report an issue
<< NL_G_HighlightFldLeaves NL_G: Graph NL_G_HighlightNodes >>