Return a three-tier data center topology.
This topology comprises switches organized in three tiers (core, aggregation and edge) and servers connected to edge routers. Each core switch is connected to each aggregation, each edge switch is connected to one aggregation switch and finally each server is connected to exactly one edge switch.
Each edge has an attribute type as well which can either be core_edge if it connects a core and an aggregation switch, aggregation_edge, if it connects an aggregation and a core switch or edge_leaf if it connects an edge switch to a server.
The total number of servers is
.
Parameters : | n_core : int
n_aggregation : int
n_edge : int
n_servers : int
|
---|---|
Returns : | topology : DatacenterTopology |