Interfaces and Buses / Networking / NODE_Master
Block Name: NODE_Master
Code File Location: VisualSim/Actor/lib/Node_Master
Block Overview
o Used to manipulate the operation of a network from a central location.
o Generate statistics and the current Routing Table
Description
- The NODE_Master block is used to manipulate the operation of a network from a central location. The block operation is triggered by a transaction arriving on either of the two input ports. The block has two purposes-
- Modify the network topology. This block can operate as: (1) Add Link, (2) Remove Link, and (3) Recompute the Routing Table.
- Output statistics and the current routing table
[1] Add Link, Specify the source node, desination node, bandwidth, and distance of the link in the Link_Src_Des_BW_Dist parameter. Distance and Bandwidth are the same units as in the Database containing the connectivity information These values can be entered as strings or can refer to the fields of the incoming data structure. This function can be used to add a link that has been previously removed or to modify the bandwidth/distance of a existing link. If the link did not exist previously, a error will be reported and the simulation will be terminated.
[2] Remove Link, Specify the source node and destination node, bandwidth, and distance of the link in the Link_Src_Des_BW_Dist parameter. Distance and Bandwidth are the same units as in the Database containing the connectivity information These values can be entered as strings or can refer to the fields of the incoming data structure. This function can be used to remove a link that is a direct connection or reachable via a set of hops.
[3] Recompute Routing Table. This requires only a trigger on 'request_input' port. The most likely use of this mode if using load-based routing.
[4] Generate Statistics. This requires integer trigger on stats_input' port. The statistics are available on the 'stats_out' port. There are three integer options: (-1) Link Statistics and Reset, (0) Link Statistics (no reset), and (1) Routing Table.
request_input
public TypedIOPort request_input
- Input port. The 'request_input' is for updating the referenced routing table in terms of recalculating the routing table, adding a node (existing), adding a link, removing a node, or removing a link. For the Routing_Table update, the input is simply a trigger. For the Add and Remove, the node parameters can be extracted from the incoming Data Structure fields. See below on Link_Src_Des_BW_Dist. The type is general data structure.
stats_input
public TypedIOPort stats_input
- Input port. 'stats_input' generates statistics reports for the referenced routing table: (-1) Link Statistics and Reset, (0) Link Statistics (no reset), and (1) Routing Table.
stats_output
public TypedIOPort stats_output
- Output port. 'stats_output' is driven by the type of 'stats_input' (see above).
Routing_Table_Name
public Parameter Routing_Table_Name
- Parameter, Routing_Table_Name, used to link to an existing 'Routing_Table'. The type is string.
Link_Src_Des_BW_Dist
public Parameter Link_Src_Des_BW_Dist
- Parameter, Link_Src_Des_BW_Dist. Corresponds to Source Node Field, Destination Node Field, Bandwidth Field, Distance Field. Each of these values can denote an incoming Data Structure Field, or can be the actual values. The type is string.
Dynamic_Routing
public StringAttribute Dynamic_Routing
- Dynamic_Routing, either Add_Link, Remove_Link, New_Routing_Table. The default is "New_Routing_Table." "New_Routing_Table" can generate dynamic routing update to existing routing table. 'Add_Link', or 'Remove_Link' can add a network link, or remove a link, based on Link_Src_Des_BW_Dist setting. One can only add or remove a link, if all of the nodes are already placed in the block diagram.
Created with the Personal Edition of HelpNDoc: Write EPub books for the iPad