Return a two-tier datacenter topology.
This topology comprises switches organized in two tiers (core and edge) and servers connected to edge routers. Each core switch is connected to each edge switch while 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 edge switch or ‘edge_leaf’ if it connects an edge switch to a server.
Parameters : | n_core : int
n_edge : int
n_servers : int
|
---|---|
Returns : | topology : DatacenterTopology |