be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl
Class OverlayStrategy
java.lang.Object
be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.LinkLoadStrategyAdapter
be.ac.ulg.montefiore.run.totem.trafficMatrix.model.impl.OverlayStrategy
- All Implemented Interfaces:
- LinkLoadStrategy, TmLoadComputer
public class OverlayStrategy
- extends LinkLoadStrategyAdapter
- implements LinkLoadStrategy
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)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
OverlayStrategy
public OverlayStrategy()
compute
public double[] compute(Domain domain,
TrafficMatrix tm)
throws NoRouteToHostException,
RoutingException
- Compute the link load of the specified traffic matrix on the domain
- Specified by:
compute
in interface TmLoadComputer
- Parameters:
domain
- the domaintm
- the traffic matrix to route
- Returns:
- the load of each link as an array of double
- Throws:
NoRouteToHostException
- occurs if there is no route from a source to a destination
RoutingException
- occurs if the routing algorithms encounter a error
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interface LinkLoadStrategy
- Overrides:
equals
in class LinkLoadStrategyAdapter
hashCode
public int hashCode()
- Specified by:
hashCode
in interface LinkLoadStrategy
- Overrides:
hashCode
in class LinkLoadStrategyAdapter
Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.