Mobile computing
Mobile computing is the part of computer science that studies computers people carry and use while they move, such as laptops, tablets and smartphones.[1] Most of these devices connect to other computers over wireless links, but a device does not need a network link to count as a mobile computer.[2] The field's aim is often described as computing for any allowed user, anytime and anywhere.[1]
In practice, a portable device runs on a battery and has less computing power than a desktop or a server (a computer that provides data or services to other computers). It also often has a slow or unreliable wireless link. So mobile systems must keep working as conditions get worse and adjust as they change.[3]
What mobile computing involves
George Forman and John Zahorjan traced the field's design problems to three basic features of mobile computing.[4]
- Wireless communication: the device exchanges data by radio or by infrared (invisible light) instead of cables.
- Mobility: the device changes location. Its network address (the address that identifies it on a network) and the services near it change too.
- Portability: the device must be small and light enough to carry, and it runs on a battery.
Not every mobile system feels all three pressures equally. A computer built into a car dashboard, for example, worries less about portability than a hand-held one does.[4]
Wireless links
Mobile devices use several kinds of wireless link. Each is defined by a different standards group.
| Link | What it is | Standard and origin |
|---|---|---|
| Bluetooth | Short-range radio technology | Bluetooth Special Interest Group formed on 20 May 1998[5] |
| Wi-Fi | Wireless networking based on the IEEE 802.11 standard from the Institute of Electrical and Electronics Engineers | First standard published 1997, up to 2 Mbit/s in the 2.4 GHz band, which is available without a license[6] |
| Cellular | Mobile phone systems set by the International Telecommunication Union (ITU) as International Mobile Telecommunications (IMT) | IMT-2000 (3G), IMT-Advanced (4G) and IMT-2020 (5G) standards;[7] first 3G launches around 2000[8] |
Why mobility is hard
Four limits
Mahadev Satyanarayanan described mobile computing by four limits.[3]
- Fewer resources: at a given cost and level of technology, limits on weight, power, size and ease of use cost processor speed, memory and storage. Mobile devices will get better, but they will always have fewer resources than fixed machines.
- Varying connections: mobile links vary widely in speed and reliability.
- Risk: a laptop on the street is more likely to be stolen, lost or damaged than a workstation in a locked office.
- Limited energy: batteries will improve, but power use will still matter. Saving power takes effort at many levels of hardware and software.
Satyanarayanan argued that these limits come with mobility itself, not with the technology of the day.[3]
Wireless links are weaker than wires
Wireless signals interact with their surroundings. Objects block signal paths, and the air adds noise and echoes.[4] As a result, wireless links have lower bandwidth (the amount of data a link can carry per second), more errors, and more frequent dropouts than wired ones. Resending lost data adds delay.[4]
The gap was large in the early 1990s. The latest portable wireless products then reached only 1 Mbit/s over infrared, 2 Mbit/s over radio, and 9 to 14 kbit/s over cellular telephone.[4] Wired networks were much faster: Ethernet gave 10 Mbit/s, FDDI (Fiber Distributed Data Interface) 100 Mbit/s and ATM (Asynchronous Transfer Mode) 155 Mbit/s.[4]
Moving changes the surroundings
A mobile computer has to find its place-dependent settings again in each new location. A fixed computer can simply store them.[4] Examples are its name server (a computer that looks up network addresses for named devices or services), nearby printers and time zone.[4]
The device's network address also changes as it moves.[4]
The nearest server can stop being the nearest as the user travels. A small physical move can make the network path much longer, for example when crossing into a different organization's network. A longer path means more delay and a higher risk of disconnection.[4]
Small devices
Small size brings three more limits.[4]
- Screen and input: desktop-style windows work poorly on very small displays.
- Storage: the personal digital assistants (PDAs) of the early 1990s had no disks, because disks use more power than memory chips and break more easily.
- Data loss: portable devices carry a higher risk of losing stored data.
Adaptation
Mobility creates two opposing needs. Weak resources and lower trust push a mobile device to rely on fixed servers. Unreliable networks and the need to save power push it to rely on itself.[3]
Satyanarayanan concluded that mobile clients (devices that request services from servers) must be adaptive, changing how they split work with servers as their situation changes.[3] This changes the classic client-server model. Sometimes a server does work the client would normally do, and sometimes the client stands in for an unreachable server.[3]
Who adapts
Adaptation strategies fall along a range between two extremes.[3]
- Laissez-faire: each application adapts on its own. No system support is needed, but nothing settles conflicting demands between applications, and each application is harder to write.
- Application-aware: the system and the applications work together. The system watches resources and enforces how they are shared, and each application decides how best to adapt.
- Application-transparent: the system does all the adapting. Existing applications run unchanged, but the system's choices can be poor or even harmful for some applications.
Satyanarayanan named agility as the main way to compare adaptive clients. Agility is the ability to respond quickly to changes. A client that is too agile can become unstable and spend its resources reacting to small changes.[3]
Coping with weak and missing connections
Disconnected operation lets a client keep using important data while it is cut off from its servers. The Coda file system at Carnegie Mellon University showed that this works in a distributed Unix file system.[3] Coda takes the application-transparent approach, in which the system adapts while applications run unchanged.[3]
Three states
A cache is a local copy of data kept for quick access or for use when the original cannot be reached. Coda's cache manager, called Venus, moves between three states.[9]
- Hoarding: while connected, Venus caches files that will be needed if the connection drops.
- Emulation: while disconnected, Venus serves requests from its cache alone and logs changes. A file that is not cached appears as a failure.
- Reintegration: on reconnection, Venus sends its logged changes to the servers and syncs its cache again. It then returns to hoarding.
Hoarding balances two needs: good performance now and readiness for disconnection. Venus must cache the files in current use and also the files a user has marked as important. It combines this user priority with recent use to decide what to keep.[9]
In the original version, Venus rechecked its cache every 10 minutes, a step called a hoard walk.[9]
During reintegration, servers check each logged operation for conflicts before applying it.[9]
Weak connections
Later work used slow links instead of treating them as no link at all.[3] The methods included the following.
- Transport protocols (rules for sending data between devices over a network) that adapt to the link
- Quick checks that cached data is still current
- Trickle reintegration, which sends updates gradually in the background
Adapting to changing resources
The Odyssey system took the application-aware approach.[10] Its key idea is fidelity. Fidelity is how closely the data shown on the mobile client matches the master copy on the server.[10]
Fidelity has several parts that depend on the data type.[10]
- Any data: consistency, meaning whether the copy may be out of date
- Video: frame rate (frames shown each second) and the image quality of each frame
- Maps: resolution, or the smallest feature shown
- Sensor readings: sampling rate (how often a reading is taken) and timeliness (how recent the reading is)
In Odyssey, the system monitors resources such as bandwidth and tells applications when they change. Each application then picks its own fidelity.[10] In one test, a video player stored each movie as three tracks: high-quality JPEG frames (a common compressed image format), lower-quality JPEG frames, and black-and-white frames. It switched to the track the link could carry.[10]
Saving battery
In 1999, Jason Flinn and Satyanarayanan applied the same approach to battery life.[11] In their goal-directed version, the user states how long the battery must last, such as the length of a flight or meeting.[12] Odyssey compares expected energy demand with the energy left. It tells applications to lower fidelity when demand is too high, or to raise it when energy is to spare.[12]
Staying reachable while moving
A moving device keeps changing where it attaches to the Internet. Mobile IP lets other computers keep reaching it at one fixed address.[13]
Mobile IP uses two addresses. The home address stays the same wherever the device is. The care-of address shows where the device is attached right now.[13]
- A device away from home gets a care-of address on the foreign network.[13]
- It registers that address with a home agent, either directly or through a foreign agent. The home agent is a router (a device that directs data between networks) on the device's home network. A foreign agent is a router on the visited network that serves the device while it is registered there.[13]
- The home agent catches packets (small units of data) sent to the home address and wraps them inside new packets addressed to the care-of address. This wrapping is called a tunnel.[13]
- At the end of the tunnel, a foreign agent or the device itself unwraps each packet and delivers it.[13]
Context awareness
Context-aware software adapts to its surroundings. It changes its behavior based on where it is used, who and what is nearby, and how these change over time.[14] Mobility makes this possible, because the surroundings change as the device moves.
Kinds of context
In 1994, Bill Schilit, Norman Adams and Roy Want named three key parts of context: where you are, who you are with, and what resources are nearby.[14] Context also goes beyond location.[14]
- Lighting
- Noise level
- Network connection
- Communication cost
- Bandwidth
- The social situation, such as being with a manager or a co-worker
The PARCTAB example
Their test device, the PARCTAB, was a hand-held unit on an infrared cellular network. It acted mainly as a display, and most applications ran on remote computers.[14] The authors noted that other systems might learn location by other means, such as GPS.[14]
Offloading computation
Offloading means sending work from a mobile device to a more powerful computer and getting the result back. The idea has a long research history.[11]
- 1997: Brian Noble and colleagues showed that speech recognition could run well on a weak mobile device by offloading it to a nearby server.[11]
- 2001: Satyanarayanan coined the term cyber foraging for using nearby infrastructure to boost a mobile device's abilities.[11]
The energy trade-off
Offloading saves energy only if computing remotely costs the device less than computing locally. Karthik Kumar and Yung-Hsiang Lu gave a simple model in 2010.[15] The energy saved is
- is the number of instructions in the task.
- and are the speeds of the mobile device and the server, in instructions per second.
- is the amount of data exchanged in bytes, and is the network bandwidth.
- , and are the device's power while computing, while idle, and while sending or receiving.
The model treats sending and receiving power as equal, although sending usually takes more.[15] If the server is times faster, so , the savings become
Offloading saves energy when this value is positive. That happens when is small compared with and is large enough.[15] Setting the savings to zero gives the break-even bandwidth , the minimum bandwidth for offloading to save energy:
This holds when is greater than . Otherwise offloading never saves energy in this model.
A worked example
The authors worked an example for a 400 MHz handheld, with about 0.9 W, about 0.3 W and about 1.3 W, and an assumed server speedup of about 160.[15] They set , the clock rate in MHz.[15] The model defines in instructions per second, so if each clock cycle is taken as one instruction (implied by the paper but not stated), and
Here is in bytes per second, and is the data exchanged per instruction of work. The paper itself prints the coefficient as 577.77.[15] By this page's own working, that value comes from using instead of and rounding to 0.9, since the paper writes the computing term as and .
Either way, offloading pays off when a task needs a lot of computing and little data transfer.[15]
Cloud storage (data kept on remote computers and reached over a network) lowers this cost. If the data already sits in the cloud, the device sends only a pointer, so becomes very small.[15]
For live data such as fresh camera images, is the data itself. If is large, offloading may not save energy.[15]
Cloudlets and edge computing
Cloud data centers are often far from the user, which adds delay. One study measured the round-trip time (the time for data to reach a destination and come back) from 260 points around the world. It averaged 74 ms to the best-placed Amazon EC2 data center, before adding the wireless link.[11]
Many uses need less delay than that. Virtual reality that responds to head movement needs a delay under 16 ms.[11]
In 2009, Satyanarayanan, Paramvir Bahl, Ramón Cáceres and Nigel Davies proposed a two-level design. The first level is the ordinary cloud. The second is made of cloudlets, groups of computers placed near users that keep copies of data and settings from the cloud.[11]
This idea grew into edge computing, which places computing and storage at the edge of the Internet close to mobile devices and sensors.[11] A cloudlet sits one wireless hop (one network link) from the device.[11]
Nearness also saves energy. In one test, a device used 1.1 J on average for an augmented reality operation offloaded to a cloudlet, and 3.1 J or more when the work went to more distant Amazon data centers.[11]
Related work followed.[11]
- 2012: Flavio Bonomi and colleagues introduced the term fog computing.[11]
- 2014: a standards effort on mobile edge computing began at ETSI, the European Telecommunications Standards Institute, a standards body.[11]
History
The idea of a personal mobile computer came well before the hardware. Devices then improved alongside wireless networks.
| Year | Event |
|---|---|
| 1972 | Alan Kay at Xerox PARC writes "A Personal Computer for Children of All Ages".[16] The idea, later called the Dynabook, was a compact notebook with a tablet, a keyboard, a flat screen and wireless networking.[17] |
| 1981 | The Osborne 1 goes on sale. It weighed 24 pounds and had a 5-inch screen. The Computer History Museum calls it the first commercially available portable computer.[18] |
| 1991 | Mark Weiser describes tabs, pads and boards: inch-scale, foot-scale and yard-scale computers.[19] |
| 1992 | IBM and BellSouth show the Simon at the fall COMDEX show.[20] |
| 1994 | The Simon goes on sale on 16 August. It had a touchscreen and is often called the first smartphone.[20] |
| 1997 | The first IEEE 802.11 (Wi-Fi) standard is published.[6] |
| 1998 | The Bluetooth Special Interest Group is formed.[5] |
| about 2000 | The first 3G (IMT-2000) networks start.[8] |
| 2007 | Apple introduces the iPhone, with a large multi-touch display.[21] |
| 2008 | T-Mobile announces the G1, the first phone running Android.[22] |
| 2009 | The cloudlet paper sets out the idea behind edge computing.[11] |
| about 2013 | IMT-Advanced (4G) systems start service.[7] |
Related fields
Mobile computing overlaps with several other areas.
- Ubiquitous computing, also called pervasive computing, imagines computing built into everyday objects. Mobile computing is a necessary part of it.[1]
- Mobile cloud computing and multi-access edge computing study how phones use remote and nearby servers.
- The Internet of things also drives computing toward the network edge.[11]
- Mobile interaction studies how people use small devices, and mobile apps and mobile operating systems are the software side.
- Distributed computing supplies the client-server and caching methods that mobile systems adapt.[3]
References
- Mobile and Pervasive Computing (chapter excerpt), Wiley, 2012.
- Mobile Computing Principles (Chapter 1 excerpt), R. B'Far, Cambridge University Press, 2005.
- Fundamental Challenges in Mobile Computing, M. Satyanarayanan, ACM Symposium on Principles of Distributed Computing, 1996.
- The Challenges of Mobile Computing, G. H. Forman and J. Zahorjan, University of Washington Technical Report UW-CSE-93-11-03 (published in IEEE Computer, 1994), 1993.
- 20 Years of Blue, Bluetooth SIG, 2018.
- The Evolution of Wi-Fi Technology and Standards, IEEE Standards Association.
- IMT-Advanced, International Telecommunication Union.
- Overview of ITU-T Activities on 5G/IMT-2020, International Telecommunication Union, 2017.
- Disconnected Operation in the Coda File System, J. J. Kistler and M. Satyanarayanan, ACM Transactions on Computer Systems, 1992.
- Agile Application-Aware Adaptation for Mobility, B. D. Noble et al., ACM Symposium on Operating Systems Principles, 1997.
- The Emergence of Edge Computing, M. Satyanarayanan, IEEE Computer, 2017.
- Energy-Aware Adaptation for Mobile Applications, J. Flinn and M. Satyanarayanan, ACM Symposium on Operating Systems Principles, 1999.
- RFC 5944: IP Mobility Support for IPv4, Revised, IETF, 2010.
- Context-Aware Computing Applications, B. N. Schilit, N. Adams and R. Want, IEEE Workshop on Mobile Computing Systems and Applications, 1994.
- Cloud Computing for Mobile Users: Can Offloading Computation Save Energy?, K. Kumar and Y.-H. Lu, IEEE Computer, 2010.
- A Personal Computer for Children of All Ages, A. C. Kay, Xerox Palo Alto Research Center, 1972.
- The 40th Anniversary of the Dynabook, Computer History Museum, 2008.
- Osborne Computer Corporation, Computer History Museum.
- The Computer for the 21st Century, M. Weiser, Scientific American, 1991.
- First Smartphone Turns 20: Fun Facts About Simon, TIME, 2014.
- Apple Reinvents the Phone with iPhone, Apple, 2007.
- T-Mobile Unveils the T-Mobile G1, the First Phone Powered by Android, T-Mobile, 2008.
