Closed MartinPJorge closed 7 years ago
Don't hurry!
The only thing needed is to create a graph equal to the NS chain, but having the real delays in the links between the VNFs. This graph can be created on search time within greedy()
, and the tabu()
method can make use of it to obtain efficiently new delays as it changes the placements.
With the NsMapping
class, you have can track the delays between VNF nodes and know the total delay of a mapped NS chain.
Mappings can make use of this class to store the found paths to place each VNF. Something like a property:
self.__mappings = {
(vnfA, vnfB): [(node1, node2), (node2, node3), ... ]
}
Commit 51b1227ad62a6877286113db426068cd1f4b8dae implements it.
This means refactoring
NsMapper
and the related classes.