Skip to main content

HopPathScenario

Communication scenarios · Implementation: mlsysim/engine/scenario_definitions/communication.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

Named paths through hops identical switch traversals of hop_latency each.

Notes

Equation: Compose mlsysim.physics.communication.calc_hop_latency.

Assumptions: Every switch traversal contributes the same supplied latency, which adds along the named path.

Excludes: Serialization, propagation, and queueing delay are absent.

References

Derivation: this scenario binds its input fields to the referenced implementation contracts: mlsysim.physics.communication.calc_hop_latency. The methods below identify any additional arithmetic.

Examples

>>> from mlsysim import Scenarios
>>> case = Scenarios.RailVsLeafSpineHops
>>> str(next(iter(case.latencies.values())))
'1.8×10⁻⁶ s'

Attributes

Name Description
hop_latency
hops
latencies Switch-delay contribution of each named path. Equation:

hop_latency

Type: Quantity.

Declared default: required.

hops

Type: Dict[str, int].

Declared default: required.

latencies

engine.scenario_types.HopPathScenario.latencies

Switch-delay contribution of each named path. Equation: mlsysim.physics.communication.calc_hop_latency(hop_count, hop_latency). Units: time; serialization and queueing are excluded.

Back to top