|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer
be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy
be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.BasicIGPShortcutStrategy
public class BasicIGPShortcutStrategy
Implement the basic IGP shortcut link load computation strategy.
In this model, all the packets arriving at node A with destination B will be forwarded in the LSP from A to B if exists. This model is the most simple and can be easily implement in real networks. A simple lookup in the BGP table gives the next-hop for any prefix. If an LSP exists to this next-hop, it will be used to forward the traffic. The LSP appears like a virtual interface in the forwarding table.
Note: this class does not use ECMP.
Creation date: 28-Jun-2005 18:04:30
| Field Summary |
|---|
| Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy |
|---|
data, ECMP, spf, tm |
| Fields inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer |
|---|
changeListener, domain |
| Constructor Summary | |
|---|---|
BasicIGPShortcutStrategy(Domain domain,
TrafficMatrix tm)
|
|
| Method Summary | |
|---|---|
Path |
computePath(Node srcNode,
Node dstNode)
Compute the path from source to destination. |
boolean |
equals(java.lang.Object o)
returns true if the LinkLoadComputer uses the same parameters as the object o. |
int |
hashCode()
|
boolean |
isECMP()
Get the ECMP (Equal-Cost Multi-Path) property. |
void |
recompute()
Recomputes the load data. |
| Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy |
|---|
detachData, getData, getShortName, getSPFAlgo, getTrafficMatrices, setECMP, setSPFAlgo, setTm, toString |
| Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer |
|---|
addListener, dataChanged, destroy, getDomain, invalidate, isUpToDate, removeListener, setUptoDate, startListening, stopListening, update |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface be.ac.ulg.montefiore.run.totem.trafficMatrix.model.LinkLoadComputer |
|---|
addListener, destroy, getDomain, invalidate, isUpToDate, removeListener, startListening, stopListening, update |
| Constructor Detail |
|---|
public BasicIGPShortcutStrategy(Domain domain,
TrafficMatrix tm)
| Method Detail |
|---|
public void recompute()
LinkLoadComputer
public Path computePath(Node srcNode,
Node dstNode)
throws NoRouteToHostException,
RoutingException
addTraffic(be.ac.ulg.montefiore.run.totem.domain.model.Node, be.ac.ulg.montefiore.run.totem.domain.model.Node).
srcNode - dstNode -
NoRouteToHostException
RoutingExceptionpublic boolean equals(java.lang.Object o)
LinkLoadComputer
equals in interface LinkLoadComputerequals in interface LinkLoadStrategyequals in class AbstractLinkLoadStrategypublic int hashCode()
hashCode in interface LinkLoadComputerhashCode in interface LinkLoadStrategyhashCode in class AbstractLinkLoadStrategypublic boolean isECMP()
AbstractLinkLoadStrategy
isECMP in interface LinkLoadStrategyisECMP in class AbstractLinkLoadStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||