be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl
Class OverlayStrategy

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadComputer
      extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy
          extended by be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.OverlayStrategy
All Implemented Interfaces:
LinkLoadComputer, LinkLoadStrategy

public class OverlayStrategy
extends AbstractLinkLoadStrategy

Implement the overlay strategy.

With this method, the traffic will be routed on a MPLS tunnel if the [source, destination] pair matches the [ingress, egress] pair of the tunnel. If several tunnels matches, the routed path is chosen arbitrarily among them.

If no tunnel matches, it is routed via SPF (eventually using ECMP).

Creation date: 28 ao�t 2006

Author:
Gaël Monfort (monfort@run.montefiore.ulg.ac.be)

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
OverlayStrategy(Domain domain, TrafficMatrix tm)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          returns true if the LinkLoadComputer uses the same parameters as the object o.
 int hashCode()
           
 void recompute()
          Compute the link load of the specified traffic matrix on the domain
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.AbstractLinkLoadStrategy
detachData, getData, getShortName, getSPFAlgo, getTrafficMatrices, isECMP, 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

OverlayStrategy

public OverlayStrategy(Domain domain,
                       TrafficMatrix tm)
Method Detail

recompute

public void recompute()
Compute the link load of the specified traffic matrix on the domain


equals

public boolean equals(java.lang.Object o)
Description copied from interface: LinkLoadComputer
returns true if the LinkLoadComputer uses the same parameters as the object o. (the computed data at a given moment are equivalent)

Specified by:
equals in interface LinkLoadComputer
Specified by:
equals in interface LinkLoadStrategy
Overrides:
equals in class AbstractLinkLoadStrategy

hashCode

public int hashCode()
Specified by:
hashCode in interface LinkLoadComputer
Specified by:
hashCode in interface LinkLoadStrategy
Overrides:
hashCode in class AbstractLinkLoadStrategy


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.