Skip to main content

solvers.TopologyModel

solvers.TopologyModel()

Models bisection bandwidth for different network topologies (Wall 10).

This model calculates the effective bandwidth available to collective communication operations based on the physical network topology. Different topologies trade cost against bisection bandwidth — the minimum bandwidth across any cut that divides the network in half.

Literature Source: 1. Leiserson (1985), “Fat-Trees: Universal Networks for Hardware-Efficient Supercomputing.” (Fat-tree bisection bandwidth.) 2. Kim et al. (2008), “Technology-Driven, Highly-Scalable Dragonfly Topology.” (Dragonfly topology model.) 3. Dally & Towles (2003), “Principles and Practices of Interconnection Networks.” (Torus and ring analysis.)

Methods

Name Description
solve Solve for effective network bandwidth under a given topology.

solve

solvers.TopologyModel.solve(fabric, topology='fat_tree', num_nodes=64)

Solve for effective network bandwidth under a given topology.

Parameters

Name Type Description Default
fabric NetworkFabric The network fabric specification (link bandwidth, oversubscription). required
topology str Network topology (‘fat_tree’, ‘dragonfly’, ‘torus_3d’, ‘ring’). 'fat_tree'
num_nodes int Number of nodes in the network. 64

Returns

Name Type Description
TopologyResult Effective bandwidth, bisection fraction, and average hops.

Notes

Equation: effective bandwidth is link_bandwidth * beta / oversubscription; the reported bisection bandwidth multiplies it by num_nodes / 2. Ring beta is 2/N; three-dimensional torus beta is 2*N**(-1/3). Assumptions: positive node count and oversubscription, homogeneous links, and an aggregate bisection approximation. Other supported topologies use class-level beta and hop conventions; unknown names fall back to beta one. Excludes: routing simulation, packet contention, and physical cut-link counts. The absolute bisection output is normalized to a fat-tree reference cut; for a ring it counts one link-equivalent rather than two physical cut links.

References

Derivation: normalize cross-section link capacity by fleet size, then apply the declared oversubscription ratio to the shared capacity.

Examples

>>> from mlsysim import Systems
>>> result = TopologyModel().solve(Systems.Fabrics.InfiniBand_HDR,
...     topology="ring", num_nodes=8)
>>> result.bisection_bw_fraction == 2 / 8
True
Back to top