Mobile cloud computing
Mobile cloud computing: how mobile devices use remote cloud and nearby edge resources (cloudlets / MEC) to run heavy tasks, save energy and meet latency needs.
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
Mobile cloud computing matters because engineers design mobile apps and systems that must meet tight energy, performance and latency requirements while using limited device CPU, battery and network links. Mobile cloud computing lets devices offload computation and storage to cloud or edge resources to improve battery life, enable heavier processing (e.g., image recognition) and meet quality-of-service targets.
Key ideas
Start with basic definitions (each bold word defined when first used):
- Mobile cloud computing (MCC): the use of remote cloud or nearby edge computing resources to perform computation, storage or services for mobile devices. It reduces device load and extends capabilities.
- Cloud: a set of large, centralized data centers providing elastic computing and storage over the Internet. Usually high compute capacity but higher network latency for mobiles.
- Edge computing / Mobile Edge Computing (MEC): computing resources placed near the mobile user (for example, at a base station, access point or a local server). MEC reduces network latency compared to cloud. Also called Multi-access Edge Computing (ETSI).
- Cloudlet: a trusted, small-scale datacenter physically close to the mobile user (e.g., in the same building or campus). A practical MEC instance intended for interactive offloading.
- Offloading: moving computation (code and/or data) from the mobile device to a remote resource. Two types: full offloading (entire task runs remotely) and partial (partitioned) offloading (only parts of the task run remotely).
- Latency: time delay experienced in communication (milliseconds, s). For offloading decisions we consider both one-way network propagation delay and transfer times.
- Bandwidth: the data rate of the communication link (bits per second). Determines how long it takes to send input/output data to/from the remote resource.
- Energy–delay tradeoff: offloading can save device energy but add network delay; the decision balances these.
Basic offloading model (common in university answers):
- A task has input data size D_up (bits), output size D_down (bits), and requires C CPU cycles to execute.
- Mobile device CPU runs at frequency f_local (Hz) and consumes energy per cycle e_cycle (J/cycle). Local execution time T_local = C / f_local and energy E_local = C * e_cycle.
- If offloaded, uplink time is D_up / B_up and downlink time is D_down / B_down (B = bandwidth in bits/s). Add network propagation delay (latency) L_oneway for each direction or use round-trip time RTT if given.
- Remote execution time T_cloud = C / f_cloud (f_cloud is remote CPU frequency). Mobile energy for offloading includes transmission energy P_tx * (D_up/B_up), receiving energy P_rx * (D_down/B_down), and small idle power during remote processing (and, if modeled, during propagation latency).
Offloading decision (energy criterion): offloading is beneficial if E_local > E_offload. Expand and compare both sides; similarly include time constraint if the application has a maximum acceptable response time.
Derivation (common problem asked in exams): find minimum uplink bandwidth B_up required so that offloading both saves energy and meets a delay bound T_max. Steps to derive a bandwidth threshold:
- Write local time:
T_local = C / f_local. - Write offload time:
T_off = D_up / B_up + L_up + T_cloud + D_down / B_down + L_down, where L_up and L_down are one-way network propagation delays. For symmetric network with RTT, you can use L_up = L_down = RTT/2. - For a delay constraint require
T_off <= T_maxand solve for B_up. - For an energy comparison, write
E_off = P_tx*(D_up/B_up) + P_rx*(D_down/B_down) + P_idle*T_cloudand requireE_off <= E_local.
Diagram you should draw for exam answers: draw a mobile device at left, a base station or access point in the centre (label it), draw a cloudlet next to the base station (label), and the remote cloud on the right with a wide-area-network link. Draw arrows from mobile to base station to cloudlet/cloud. Label the uplink and downlink bandwidths B_up, B_down, and label propagation delays L (or RTT). Also label CPU frequencies f_local and f_cloud, and task data sizes D_up and D_down. This diagram explains where latency and bandwidth are consumed.
Assumptions to state clearly in any derivation: constant bandwidth during transfer, single-user link (no contention), deterministic CPU frequencies (no dynamic DVFS unless modelled), and negligible scheduling queueing unless explicitly included.
Formulas
T_local = C / f_local — C is required CPU cycles (cycles), f_local CPU frequency (Hz). Applies for local execution time.
E_local = C * e_cycle — e_cycle is energy per cycle (Joule/cycle). Applies if energy per cycle is approximately constant.
T_upload = D_up / B_up — D_up is upload data size (bits), B_up is uplink bandwidth (bits/s). Applies for data transfer time.
T_download = D_down / B_down — D_down output size (bits), B_down downlink bandwidth (bits/s).
T_off = T_upload + L_up + T_cloud + L_down + T_download — total offload time including propagation delays L_up and L_down and remote processing time T_cloud = C / f_cloud.
E_off = P_tx * T_upload + P_rx * T_download + P_idle * T_cloud — P_tx and P_rx are transmission and reception powers (W), P_idle is mobile idle power during remote compute; optionally include + P_idle*(L_up + L_down) if modeling idle during propagation latency.
Offload beneficial (energy): E_off < E_local — inequality to decide energy advantage.
Transfer time approx. = data size / bandwidth — general relation when link is dominated by capacity, not by packetization.
Note: Units — seconds (s) for time, bits for data (or explicitly label bytes), cycles for CPU cycles, watts (W) for power, joules (J) for energy. Convert bytes to bits: 1 byte = 8 bits. In these notes, 1 MB = 10^6 bytes and 1 Mbps = 10^6 bits/s (decimal prefixes).
Worked examples
Example 1 — numeric decision whether to offload to remote cloud (slow wide-area link):
Given: C = 2×10^9 cycles, D_up = 5 MB (5×10^6 bytes), D_down = 1 MB, f_local = 1 GHz, f_cloud = 10 GHz, e_cycle = 1×10^−9 J/cycle, B_up = B_down = 5 Mbps (5×10^6 bits/s), RTT = 50 ms, P_tx = 1.0 W, P_rx = 0.5 W, P_idle = 0.1 W.
- Convert sizes to bits: D_up = 5×10^6 bytes × 8 = 40×10^6 bits. D_down = 1×10^6 × 8 = 8×10^6 bits.
- Local execution:
T_local = C / f_local = 2×10^9 / 1×10^9 = 2 s.E_local = C * e_cycle = 2×10^9 * 1×10^−9 = 2 J.
- Offload execution times:
T_upload = 40e6 / 5e6 = 8 s.T_download = 8e6 / 5e6 = 1.6 s.- One-way latency ~ RTT/2 = 0.025 s, so propagation delays sum = 0.05 s.
T_cloud = C / f_cloud = 2e9 / 1e10 = 0.2 s.T_off = 8 + 0.025 + 0.2 + 0.025 + 1.6 ≈ 9.85 s.- Offloaded response is much slower than local 2 s, so bad for latency.
- Offload energy:
E_off_transmit = P_tx * T_upload = 1.0 * 8 = 8 J.E_off_receive = P_rx * T_download = 0.5 * 1.6 = 0.8 J.E_off_idle = P_idle * T_cloud = 0.1 * 0.2 = 0.02 J.E_off ≈ 8 + 0.8 + 0.02 = 8.82 J.
- Compare: E_local = 2 J < E_off ≈ 8.82 J; T_local = 2 s < T_off ≈ 9.85 s. Conclusion: do not offload to remote cloud in this case (both slower and more energy).
Example 2 — offload to a nearby cloudlet with high bandwidth:
Same C, D_up, D_down but B_up = B_down = 100 Mbps, RTT = 10 ms, cloudlet f_cloud = 20 GHz, P_tx = 0.5 W, P_rx = 0.5 W, P_idle = 0.1 W (same as Example 1).
- Times:
T_upload = 40e6 / 100e6 = 0.4 s.T_download = 8e6 / 100e6 = 0.08 s.T_cloud = 2e9 / 2e10 = 0.1 s(if f_cloud = 20 GHz then T_cloud = 0.1 s; or use 20e9 Hz).- Prop delays ~ RTT/2 each = 0.005 s each => 0.01 s total.
T_off ≈ 0.4 + 0.005 + 0.1 + 0.005 + 0.08 = 0.59 s.- Local was 2 s, so offloading is faster.
- Energy:
E_off_transmit = 0.5 * 0.4 = 0.2 J.E_off_receive = 0.5 * 0.08 = 0.04 J.E_off_idle = 0.1 * 0.1 = 0.01 J.E_off ≈ 0.25 J.- Compare E_local = 2 J; E_off smaller, so offload to cloudlet both saves energy and time.
Example 3 — symbolic derivation sketch (exam style): solve for minimum B_up such that E_off <= E_local and T_off <= T_max. Replace T_upload = D_up / B_up and isolate B_up in the inequalities; show algebraic steps and obtain B_up >= D_up / (T_max - other terms) for delay, and B_up >= (P_tx * D_up) / (E_local - other energy terms) for energy. (Write full algebra in answer sheet; state assumptions about sign and positivity of denominators.)
Common mistakes
- Omitting receive energy (P_rx) or idle energy during remote compute; these can change the decision.
- Assuming remote compute time is always negligible; for large C and modest cloud CPU, remote processing can dominate.
- Applying single-user bandwidth values where multi-user contention would reduce effective B.
For your exam
Types of questions you will see: short definitions (MCC, cloudlet, MEC), short notes (advantages, disadvantages, security/privacy), derivations (offloading inequality, bandwidth threshold), numeric problems (compute times and energies for given C, D_up, bandwidths), and diagrams (draw mobile–edge–cloud topology and label latency/bandwidth). Common advantages: energy savings, higher performance for compute-heavy tasks, reduced device storage/updates, enablement of features like AR/VR. Common disadvantages/challenges: dependence on variable wireless bandwidth/latency and handoff, privacy/security risks (code/data off-device), monetary cost, and partitioning/profiling complexity. Full-marks answers must:
- Define terms clearly (bold defined words in your notes), state assumptions, show step-by-step algebra with units, convert bytes↔bits, and show final numerical answers with units and a concluding sentence (e.g., "offload" or "do not offload").
Quick check
- What is a cloudlet?
- Write the formula for local execution time for a task needing C cycles on a CPU of frequency f.
- Why must you convert bytes to bits when computing transfer time with bandwidth in bits/s?
Answers: 1) A nearby small datacenter for low-latency offloading. 2) T_local = C / f. 3) Because bandwidth units are bits/s; bytes must be multiplied by 8 to get bits, otherwise transfer time is off by factor 8.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?