Skip to main content

OffloadDeadlineScenario

Optimization scenarios · Implementation: mlsysim/engine/scenario_definitions/optimization.py.

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

One input sent over an uplink to a remote model, against a per-frame deadline (lower bound).

Notes

Equation: Use the dimensional products, ratios, or selection rules documented on the calculated properties below.

Assumptions: Transmission, remote network time, and remote compute add in sequence; one frame period is the deadline.

Excludes: Compression compute, queueing not already in the inputs, and return-payload serialization are absent.

References

Derivation: the calculated properties below state their defining arithmetic and units. They are scenario accounting or input-selection rules, not independently measured relationships.

Examples

>>> from mlsysim import Scenarios
>>> case = Scenarios.Drone4KObstacleOffload
>>> str(case.transmit_time)
'1990.656 ms'

Attributes

Name Description
compression
deadline Per-frame time budget implied by the frame rate. Equation: 1 / frame_rate. Units:
deadline_ratio Modeled remote lower bound relative to one frame period. Equation: remote_lower_bound | | [frame_rate](#mlsysim.engine.scenario_types.OffloadDeadlineScenario.frame_rate) | | | [network_latency](#mlsysim.engine.scenario_types.OffloadDeadlineScenario.network_latency) | | | [payload](#mlsysim.engine.scenario_types.OffloadDeadlineScenario.payload) | | | [remote_compute_time](#mlsysim.engine.scenario_types.OffloadDeadlineScenario.remote_compute_time) | | | [remote_lower_bound](#mlsysim.engine.scenario_types.OffloadDeadlineScenario.remote_lower_bound) | Serial lower bound on offloaded response time. Equation:transmit_time +
remote_response Remote network-plus-compute duration after input transmission. Equation:
transmit_time Serialization of the compressed input on the uplink. Equation: ``payload / compression /
uplink_bandwidth

payload

Type: Quantity.

Declared default: required.

network_latency

Type: Quantity.

Declared default: required.

remote_compute_time

Type: Quantity.

Declared default: required.

frame_rate

Type: Quantity.

Declared default: required.

compression

Type: float.

Declared default: 1.0.

transmit_time

engine.scenario_types.OffloadDeadlineScenario.transmit_time

Serialization of the compressed input on the uplink. Equation: payload / compression / uplink_bandwidth. Units: milliseconds; compression is a size ratio and codec time is excluded.

remote_response

engine.scenario_types.OffloadDeadlineScenario.remote_response

Remote network-plus-compute duration after input transmission. Equation: network_latency + remote_compute_time. Units: milliseconds; queueing is absent unless already included in the inputs.

remote_lower_bound

engine.scenario_types.OffloadDeadlineScenario.remote_lower_bound

Serial lower bound on offloaded response time. Equation: transmit_time + remote_response. Units: milliseconds; codec, additional queueing, and output transfer are excluded.

deadline

engine.scenario_types.OffloadDeadlineScenario.deadline

Per-frame time budget implied by the frame rate. Equation: 1 / frame_rate. Units: milliseconds; frames are treated as uniformly spaced.

deadline_ratio

engine.scenario_types.OffloadDeadlineScenario.deadline_ratio

Modeled remote lower bound relative to one frame period. Equation: remote_lower_bound / deadline. Units: dimensionless; values above one already exceed the budget.

Back to top