Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Bandwidth calendaring and data centre orchestration

Bandwidth calendaring is a method for scheduling time-slotted bandwidth reservations in data-centre networks to guarantee throughput and bound latency; it is used by SDN controllers for orchestrating bulk transfers, scheduled maintenance, and predictable tenant isolation.

Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.

Why it matters

Two or three sentences: where an engineer uses this.

Bandwidth calendaring is used when a data-centre operator or an SDN controller must guarantee that multiple tenants or applications get fixed network bandwidth at specific times (for example for bulk backups, VM live-migration windows, or predictable streaming). It helps orchestration systems plan large transfers without congesting shared links, improves flow-completion predictability, and makes admission control simple and auditable.

Key ideas

Explain concepts from first principles, with definitions bolded and exact statements.

  • Bandwidth — rate of data transfer measured in bits per second (b/s). By definition, a link with capacity C can carry at most C bits in each second.

  • Reservation — an agreement that a certain flow or traffic class will receive a specified allocated bandwidth b (b ≤ C) for a given time interval [t_start, t_end]. A reservation is valid only if all reservations active at any time do not exceed the link capacity.

  • Bandwidth calendaring — the method of representing reservations as a periodic or aperiodic sequence of time slots (a calendar) on each link, such that applications are assigned one or more slots that together provide their requested bandwidth. Exact definition: a calendar is a mapping from time to slot owners over a repeated cycle of length P (period) or over a finite horizon; a calendar is feasible if in every moment the sum of assigned slot rates ≤ link capacity.

  • Admission control — the decision rule: “Accept a new reservation if and only if, for every time t in the requested interval, Σ existing_allocations(t) + requested_b ≤ C.” This is the standard capacity constraint and is necessary and sufficient for static schedulability when allocations are strict and preemptions are not allowed. For fluid-rate reservations this condition is sufficient; for slot-based calendars you must also satisfy the per-cycle integer slot feasibility (Σ_i k_i ≤ N on every link of the path).

  • Slot-based scheduling — divide time into fixed-size slots of duration s. A flow assigned k slots per period P obtains average bandwidth b = (k·s·C)/P; if guard times or headers reduce effective rate, replace C with the effective per-slot rate C_eff. Assumptions: slot times synchronize at link endpoints and slot occupancy enforces isolation.

  • Cycle period (P) — the length of one calendar repetition. Cycle slots: N = P / s (assume P is integer multiple of s).

  • Exact statement (schedulability lemma used in exams): For strict slot scheduling with a cycle length P and slot duration s, a set of flows with required slots {k_i} is schedulable iff Σ_i k_i ≤ N (per link) in every cycle. Assumptions: slots are atomic (cannot be split), no preemption within a slot, and slot overhead is negligible or accounted for in s.

  • Relationship to SDN controllers: the controller holds the global view, computes calendars per link (or per egress port) and programs forwarding devices (using OpenFlow, Open vSwitch rules or device-specific APIs) to enforce gated egress or rate limits on scheduled slots. In practice, strict time-based gating requires hardware support such as IEEE 802.1Qbv Time-Aware Shaper with network time synchronization (IEEE 1588 PTP); OpenFlow/OVS alone typically provide rate limiting but not time-gated slots. The controller also performs admission control and can modify calendars when topology or traffic changes.

Diagrams to draw (for exam answer):

  1. Timeline calendar for one link over one cycle: draw a horizontal line labelled time 0 to P. Mark equally spaced vertical ticks for slots of duration s. Colour/label contiguous slots for Flow A, Flow B, and Free. Label P, s, N. If a packet may not fit wholly within a slot, either include a guard band so only whole frames transmit in an open gate, or note that IEEE 802.1Qbu frame preemption with MAC Merge can be used; do not imply end-host reassembly.
  2. Per-link admission diagram: draw a single link of capacity C, three boxes representing reservations b1, b2, b3 active in overlapping time windows; draw a capacity bar showing C and show sum(bi) ≤ C in the overlap region.

Formulas

Each formula on its own line, symbol meanings and SI units.

C — link capacity in bits per second (b/s).

b_i — allocated bandwidth of reservation i in bits per second (b/s).

Admission condition: for all t: Σ_i b_i(t) ≤ C — where b_i(t) is the allocation of reservation i at time t. Applies to any reservation scheme where allocations are not overcommitted. For multi-hop paths, this must hold on every traversed link (egress port) for the reservation to be admitted end-to-end.

Slot count relation: N = P / s — where P is cycle period (s), s is slot duration (s), N is number of slots (dimensionless). Applies when P is integer multiple of s.

Reservation by slots: b = (k · s · C) / P — k is number of slots assigned per period, gives average bandwidth b (b/s). Units: b/s. Assumes each slot can use full link capacity C.

Transfer completion time (scheduled slot allocation): T_complete = transmission_time + scheduling_delay + propagation_delay — transmission_time = data_size / b (s), scheduling_delay depends on time until next assigned slot (≤ P), propagation_delay depends on path length (s). Applies when a transfer uses reserved bandwidth b.

Utilisation: U = (Σ_i b_i) / C — dimensionless (≤ 1 for feasible calendars).

Note: Where precise constants or hardware overheads (guard times, header overhead) matter, add them to s or as extra terms in scheduling_delay.

Worked examples

Two exam-standard examples with steps and units.

Example 1 — Admission check and slot assignment Problem: A 10 Gbps (10 × 10^9 b/s) link has cycle period P = 100 ms. Slot duration s = 1 ms. Three tenants request bandwidths b1 = 2 Gbps, b2 = 3 Gbps, b3 = 1.5 Gbps. Can you admit all three strictly by slots? If yes, give k_i (slots per cycle) for each; round k_i up to nearest integer.

Steps:

  1. Compute N = P / s = 0.1 s / 0.001 s = 100 slots per cycle.
  2. For each tenant, compute required slots k_i = ceil(b_i · P / (s · C)). Using formula b = (k·s·C)/P ⇒ k = b·P/(s·C).
    • For b1 = 2×10^9 b/s: k1 = ceil(2e9 · 0.1 / (0.001 · 10e9)) = ceil(2e8 / 1e7) = ceil(20) = 20 slots.
    • For b2 = 3×10^9 b/s: k2 = ceil(3e9 · 0.1 / (0.001 · 10e9)) = ceil(30) = 30 slots.
    • For b3 = 1.5×10^9 b/s: k3 = ceil(1.5e9 · 0.1 / (0.001 · 10e9)) = ceil(15) = 15 slots.
  3. Total slots required = 20 + 30 + 15 = 65 ≤ N = 100 — feasible.

Final answer: Yes. Assign k1=20, k2=30, k3=15. Remaining free slots = 35.

Example 2 — Scheduled transfer completion time Problem: A VM migration of size 40 GiB (40 × 2^30 bytes) is scheduled with a reserved bandwidth b = 5 Gbps on a path with propagation delay 0.5 ms. Cycle period P = 200 ms; worst-case time to next slot for the migration is up to P. Compute worst-case completion time assuming no other delays except slot wait, transmission, and propagation.

Steps:

  1. Convert data size to bits: 40 GiB = 40 × 2^30 bytes = 40 × 1,073,741,824 B = 42,949,672,960 B. In bits = ×8 = 343,597,383,680 bits.
  2. Transmission time = data_size / b = 3.4359738368e11 bits / (5e9 b/s) = 68.719476736 s.
  3. Worst-case scheduling delay = P = 0.2 s.
  4. Propagation delay = 0.5 ms = 0.0005 s.
  5. Total worst-case completion = 68.719476736 + 0.2 + 0.0005 = 68.919976736 s.

Final answer: 68.919977236 s (≈ 68.92 s).

Common mistakes

  • Omitting slot guard times or header overhead; in hardware these matter and reduce effective capacity per slot.
  • Treating admission condition as Σ requested_b < C instead of ≤ C (boundary condition can matter in exams).
  • Confusing cycle period P with slot duration s (draw the timeline in the answer to avoid this).
  • Not stating or using the assumptions for atomic slots and synchronized clocks (these are required for correctness).

For your exam

Kinds of questions produced and what full-marks answers include:

  • Definition questions: define bandwidth calendaring, reservation, slot-based scheduling. Full answer: precise definition, example, and assumptions.
  • Short notes: describe admission control for calendars and how SDN controller enforces calendars. Full answer: admission condition, steps, integration with controller, and mention of protocols (OpenFlow/Open vSwitch) at high level.
  • Derivations: show N = P/s or derive k = b·P/(s·C). Full answer: step-by-step algebra with units.
  • Numericals: compute slots, check feasibility, compute transfer completion time. Full answer: unit conversions, formulas used, intermediate values, final bolded answer. For multi-hop scenarios, check feasibility on every link along the selected path.
  • Diagrams: draw timeline calendar and per-link capacity bar. Full answer: labelled drawing with P, s, slots, and annotations for flow assignments.
  • Program/algorithm: show SDN controller pseudocode for admission check (loop over active allocations and check capacity for each affected time slot). Full answer: correctness argument and time complexity.

Quick check

  1. If C = 1 Gbps, P = 100 ms, s = 2 ms, how many slots N? 2) For a requested bandwidth 200 Mbps on the same link, how many slots k are needed? 3) If three users request 200 Mbps, 300 Mbps and 400 Mbps on that link, is admission possible? Show yes/no.

Answers: N = 50; k = ceil(0.2e9·0.1/(0.002·1e9)) = ceil(10) = 10 slots; total slots required = 10 + 15 + 20 = 45 ≤ 50 so Yes, admission possible.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?