|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdrcl.DrclObj
drcl.comp.Component
drcl.net.Module
drcl.inet.tool.routing_msp
This class sets up static routes between a source node and one or more destination nodes. The routes being set up form a shortest path tree.
To use this class, simply invoke one of the setup(...) methods.
Specifically, this class uses Util.explore() to explore the topology from the source node.
And then from that topology, it builds a shortest path tree rooted at the
source node. The appropriate routing table entries are then added to
involved nodes by Node.addRTEntry().
| Nested Class Summary |
| Nested classes inherited from class drcl.comp.Component |
Component.Locks |
| Field Summary |
| Fields inherited from class drcl.net.Module |
downPort, PortGroup_DOWN, PortGroup_UP, upPort |
| Constructor Summary | |
routing_msp()
|
|
routing_msp(java.lang.String id_)
|
|
| Method Summary | |
void |
duplicate(java.lang.Object source_)
Duplicate the fields of a routing protocol object given a source routing protocol object. |
int |
mincost(drcl.inet.tool.routing_msp.NodeStruct[] nodestruct)
Method used by SPF for finding the minimum cost node. |
drcl.inet.tool.routing_msp.PathStruct[] |
mspf(int source_id,
int[] dest_id,
int[][] neighbor)
Assumes that each link costs 1, i.e., find a min hop count path tree. |
void |
reset()
Reset the routing protocol. |
void |
setup(Component src_,
Component dest_,
long destAddr_,
long destAddrMask_)
Useful for hierarchical network where dest_ could be a
network * component with (destAddr_,
destAddrMask_) as its network address. |
void |
setup(Component src_,
java.lang.Object[] dest_,
long destAddr_)
|
void |
setup(Component src_,
java.lang.Object[] dest_,
long destAddr_,
long destAddrMask_)
|
void |
setup(Component src_,
java.lang.Object[] dests_,
long srcAddr_,
long srcAddrMask_,
long destAddr_,
long destAddrMask_)
Useful for hierarchical network where comp_ could be
the set of components (networks and nodes) that constitute
the network address destAddr_/
destAddrMask_). |
void |
setup(Node src_,
Node dest_)
|
void |
setup(Node src_,
Node dest_,
java.lang.String bidirect_)
|
void |
setup2(Component src_,
java.lang.Object[] dests_,
long srcAddr_,
long srcAddrMask_,
long destAddr_,
long destAddrMask_)
Useful for hierarchical network where dest_ could be a
network component with (destAddr_,
destAddrMask_) as its network address. |
| Methods inherited from class drcl.net.Module |
cancelTimeout, setTimeout, setTimeoutAt |
| Methods inherited from class drcl.DrclObj |
clone |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public routing_msp()
public routing_msp(java.lang.String id_)
| Method Detail |
public void reset()
reset in class Componentpublic void duplicate(java.lang.Object source_)
duplicate in interface ObjectDuplicableduplicate in class Modulesource_ - an existing routing protocol object.
public void setup(Node src_,
Node dest_)
public void setup(Node src_,
Node dest_,
java.lang.String bidirect_)
public void setup(Component src_,
Component dest_,
long destAddr_,
long destAddrMask_)
dest_ could be a
network * component with (destAddr_,
destAddrMask_) as its network address.
destAddr_ - destination address, could be a multicast address.
public void setup(Component src_,
java.lang.Object[] dest_,
long destAddr_)
destAddr_ - destination address, could be a multicast address.
public void setup(Component src_,
java.lang.Object[] dest_,
long destAddr_,
long destAddrMask_)
destAddr_ - destination address, could be a multicast address.
public void setup2(Component src_,
java.lang.Object[] dests_,
long srcAddr_,
long srcAddrMask_,
long destAddr_,
long destAddrMask_)
dest_ could be a
network component with (destAddr_,
destAddrMask_) as its network address.
destAddr_ - destination address, could be a multicast address.
public drcl.inet.tool.routing_msp.PathStruct[] mspf(int source_id,
int[] dest_id,
int[][] neighbor)
public int mincost(drcl.inet.tool.routing_msp.NodeStruct[] nodestruct)
public void setup(Component src_,
java.lang.Object[] dests_,
long srcAddr_,
long srcAddrMask_,
long destAddr_,
long destAddrMask_)
comp_ could be
the set of components (networks and nodes) that constitute
the network address destAddr_/
destAddrMask_).
destAddr_ - destination address, could be a multicast address.
|
DRCL J-Sim API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||