COE 558Lecture 02Part 01
The latency continuum and the birth of the fog
Why the cloud cannot simply move closer to the client, how mini data centers along the latency continuum form the fog, and which points need networking at all.
- Concepts
- 5
- Slides
- 1-9
- Reading
- 30 min
Why this part matters
Every system you design in COE 558, and in your research, starts with a placement decision: where does each piece of work run? Lecture 01 showed that latency has a floor set by physics. This part shows how the industry answered that floor without giving up the economics of the cloud. It placed small copies of the data center, the fog, along the path to the user, and it uses a simple scope rule to decide which of those points need networking at all. The classify-and-justify question (edge, fog or cloud?) is the most likely exam item from this section, so every concept below ends on that skill.
By the end you can
- Explain the E2C continuum as a continuum of latencies, and estimate the round-trip floor for a placement from its distance.
- Explain why the cloud stays centralized (economies of scale) and how mini data centers and CDNs such as Netflix Open Connect bring service closer anyway.
- Define the fog, its mini data centers and their compute, storage and networking services, and tell fog apart from edge.
- Use a function's scope to decide whether it needs networking, and place tasks on edge (LAN), fog (WAN) or cloud (Internet) with a justification.
Picture an autonomous car with three very different jobs. First, it must detect an obstacle and brake, and that answer has to arrive within milliseconds. Second, it wants a good route, which means combining traffic reports from many cars in the same region. Third, its driving model must improve over time, and that means training on months of history from the whole fleet. No single computer suits all three. The obstacle check belongs right next to the sensors. Route optimization belongs somewhere that sees the whole region. Training belongs where there is enormous storage and compute. The three places sit at small, medium and large distance from the car.
The lecture turns that intuition into a definition. The Edge-to-cloud (E2C) continuum is a continuum of latencies between a client and a server. The Edge layer, the Fog layer and the Cloud layer are not separate worlds. They are regions of one range, ordered by how long a request takes to reach them and come back. Moving away from the client adds latency, and in exchange it adds capacity: more processors, more storage, a wider view of the data.
| Task | Deadline | Data it needs | Layer |
|---|---|---|---|
| Obstacle detection | A few ms | This car's own sensors | Edge |
| Route optimization | Seconds | Traffic from many cars in a region | Fog |
| Model training | Hours to days | Months of history from the whole fleet | Cloud |
The floor that distance sets
Recall
From Lecture 01: what floor does distance set on RTT, and why?
Glass has a refractive index of about 1.4 to 1.6 (typically around 1.5), so light in fiber moves at roughly 200,000 km/s. Applied to the continuum, that floor reads:
Worked example
Physics floor for three placements
Cloud region 4,000 km away
One way takes 4,000 km ÷ 200,000 km/s = 0.02 s = 20 ms, so the round trip is at least 40 ms before any queuing, routing or processing.Fog site 50 km away
One way takes 0.25 ms, so the round trip is at least 0.5 ms.Edge on the same LAN, about 100 m away
One way takes 0.5 µs, so the round trip is at least 1 µs. Distance has effectively vanished; only processing remains.Compare with a real measurement
Satyanarayanan reports an average round trip of 74 ms from 260 vantage points to their best Amazon EC2 region, and a wireless first hop adds more on top. Real paths sit well above the floor because every hop adds queuing and routing delay.Result
Moving a server from 4,000 km to 50 km lowers the floor 80-fold. That is the whole argument for the continuum in one number.
To try your own distances and media, use the latency calculator in Lecture 01 part 07, which also explains why real round trips cost several times this bound.
Recall
What exactly is "continuous" in the E2C continuum?
Recall
What is the minimum RTT to a fog site 300 km away over fiber?
A multiplayer game hosted in a distant cloud region lags: every shot travels thousands of kilometres and back. The obvious fix is to move the cloud next to the players. The lecture's answer is a flat no, and the reason is worth understanding, because it shapes everything that follows.
A cloud data center is a very complex system, it is very expensive, and it is centralized on purpose. Building one is, in the words of the Berkeley "Above the Clouds" report, a hundred-million-dollar undertaking. The payoff of that size is Economies of scale: a very large data center buys network bandwidth, storage and administration at a fraction of the unit cost a medium one pays. Satyanarayanan puts it the same way: centralization exploits economies of scale to lower the marginal cost of system administration and operations. Split one giant site into a thousand neighborhood sites and you throw that advantage away.
| Resource | Medium datacenter | Very large datacenter | Ratio |
|---|---|---|---|
| Network | $95 per Mbit/s per month | $13 | 7.1 |
| Storage | $2.20 per GB per month | $0.40 | 5.7 |
| Administration | about 140 servers per admin | more than 1,000 | 7.1 |
So the cloud stays where it is, and something smaller goes out instead. The lecture calls it a mini cloud, or Mini data center, and the key move is that you can place several of them at different points on the latency continuum. Each one is close enough to cut latency for nearby clients, while the big data center keeps its economics.
Player, viewer or device
Cached content and services
Serves a whole metro area
Authoritative data and heavy jobs
The pattern in production: Netflix Open Connect
A Content delivery network (CDN) is the clearest working example. Netflix started its Open Connect program in 2011. It places its own caching appliances (Open Connect Appliances, OCAs) at internet exchange points and, free of charge, inside the networks of qualifying ISPs; it now works with more than a thousand ISP partners. The ISP provides power, space and connectivity. Because Netflix can predict what its members will watch, it pre-fills each appliance during off-peak "fill windows", so at peak time the popular titles are already a few hops from the viewer.
Recall
Give two reasons the cloud cannot simply be moved next to clients, and the alternative.
Quick check
Why does the lecture reject moving the whole cloud closer to clients?
In a smart city, small computers sit in cabinets at road junctions. Each one reads the cameras and sensors at its junction, notices a queue building or a pedestrian waiting, and changes the signal timing in real time, with no round trip to a distant cloud. Bonomi and colleagues at Cisco used almost the same example when they introduced the idea in 2012: a smart traffic light node that reads local sensors detecting pedestrians and bikers.
The layer of such mini data centers gets a name: the fog. A Mini data center is a scaled-down version of a big data center that bridges the gap between the edge and the cloud, and it offers all three classic services: compute, storage and networking. Bonomi defined fog computing as "a highly virtualized platform that provides compute, storage, and networking services between end devices and traditional Cloud Computing Data Centers." The name is a joke with a point: the fog is a cloud close to the ground.
Bonomi listed what makes the fog distinct from the cloud above it:
- Low latency and location awareness: a node knows where it is and serves who is near.
- Wide-spread geographic distribution and a very large number of nodes.
- Support for mobility, wireless access and real-time streaming.
- Heterogeneity: nodes come in many shapes and from many vendors.
The fog is also hierarchical. Nodes form tiers, and in Bonomi's words, "the higher the tier, the wider the geographical coverage, and the longer the time scale." The lowest tier runs control loops in milliseconds to sub-seconds; higher tiers work over seconds to minutes and even days, and the cloud keeps data for months and years. NIST SP 500-325 later made the building blocks concrete: fog nodes can be physical (gateways, switches, routers, servers) or virtual (virtualized switches, virtual machines, cloudlets). It also names mist computing, a lightweight and optional form of fog at the very edge. In 2018 IEEE adopted the OpenFog Reference Architecture as standard IEEE 1934-2018, a sign that the idea had moved from paper to practice.
| Aspect | Fog | Edge |
|---|---|---|
| Structure | Hierarchical, multi-layer architecture | Limited to a small number of peripheral devices |
| Services | Computation and networking, plus storage, control and data-processing acceleration | Specific applications in a fixed logic location, with a direct transmission service |
| Location | Between smart end-devices and centralized cloud services | The end-device layer itself |
Recall
Give two differences between fog and edge according to NIST.
Consider a fleet of autonomous delivery drones. When one drone's battery runs low it must return to base. That decision uses nothing but the drone's own state, and it must work even if every radio link is down, so it runs on the drone's own compute with no networking at all. When several drones fly in the same area, they must agree on flight paths to avoid collisions. Now the data spans several parties in one region, so the drones talk to a fog ground station, and networking is essential. Finally, the cloud combines data from every drone in the fleet to improve routes over time. That function's scope is global.
The lecture asks a sharp question: do we really need the networking service at every point on the latency continuum? The drone example answers it. Whether a function needs networking depends on its scope, meaning how many parties and how much area its data spans, not on whether the layer is called edge, fog or cloud. Walking from the cloud toward the device (the numbered points 1, 2 and 3 on the slides), more functions can run locally and depend less on remote communication, because the functions that live there have narrower scope.
| Task | Scope | Layer | Needs networking? |
|---|---|---|---|
| Low battery, return to base | One drone | Edge, on the drone itself (no network hop) | No |
| Coordinate flight paths | Several drones in one area | Fog ground station | Yes |
| Improve routes from fleet history | Every drone, everywhere | Cloud | Yes |
Here the device itself plays the edge role, the NIST usage flagged in concept 1.
Worked example
Classify a function by scope
Whose data does it need?
One device, a neighborhood of devices, or everyone. This sets the scope and therefore whether networking is needed.What is its deadline?
Milliseconds push it toward the client; minutes or days let it go far.Place it at the nearest point that covers that scope
A one-device, tight-deadline function lands on the edge. A regional, multi-party function lands in the fog. A global, slow function lands in the cloud.Result
Scope decides networking and coverage; deadline decides how near. The answer is the closest layer that satisfies both.
Research supports the same rule. Satyanarayanan shows that analyzing raw video on a nearby cloudlet means only the "(much smaller) extracted information and metadata must be transmitted to the cloud", and the cloudlet can enforce privacy policies before anything leaves. Bonomi's lowest fog tier runs machine-to-machine control loops in milliseconds and filters data before passing it up. In both cases, local functions stay local, and only results with wider scope travel.
Recall
What decides whether a function needs networking?
Quick check
A smart thermostat must cut the heater when the room overheats, even offline. Where should it run?
Take the drone tasks one last time and map them onto networks. Local work runs on the edge, on the device or inside its local area network. Collision coordination runs in the fog, across a wide area network run by an operator. Fleet-wide learning runs in the cloud, reached over the public Internet. That mapping is the lecture's summary picture, and it is the one to memorize.
The edge lives on the LAN and offers compute and storage. The fog lives on the WAN and offers compute, storage and networking. The cloud lives on the Internet and is the full data center, offering every service at global scale. Each has a priority: edge prioritizes autonomy, fog prioritizes coordination, and cloud prioritizes global connectivity. Read together with the scope rule, this is the whole Edge-to-cloud (E2C) continuum in one table.
| Layer | Network span | Services offered | Priority | Typical RTT floor | Example task |
|---|---|---|---|---|---|
| Edge | LAN | Compute, storage | Autonomy | ~1 µs at 100 m | Obstacle detection, local video analytics |
| Fog | WAN | Compute, storage, networking | Coordination | ~0.5 ms at 50 km | Collision coordination, traffic signals |
| Cloud | Internet | Full data center (all services) | Global connectivity | ~40 ms at 4,000 km | Fleet-wide model training |
Where does an edge layer meet the fog? Through an Edge gateway, a device that does local processing for the edge devices behind it and connects them upward to fog nodes. The edge box omits networking because the functions placed there have device-local scope, as slides 7 and 8 argued; the gateway's uplink gives the edge connectivity, but the edge offers no networking service to others.
Recall
Fill in slide 9: network span, services and priority for edge, fog and cloud.
Quick check
On slide 9, which layer offers compute and storage but no networking service?
Quick check
Traffic lights at twelve nearby junctions must share queue lengths to time a green wave. Which placement fits best?
Recap
If you remember nothing else
- The E2C continuum is a range of latencies: edge small, fog medium, cloud large, with capacity rising in the same direction.
- Distance sets a hard floor: RTT ≥ 2d/v, with v ≈ 200,000 km/s in fiber.
- The cloud stays centralized because scale cuts unit costs by roughly 5 to 7 times. Mini data centers bring service closer instead.
- The fog is the layer of mini data centers. It offers compute, storage and networking, is geo-distributed and hierarchical, and is "a cloud close to the ground".
- Fog is not edge: fog is hierarchical and multi-layer; edge is limited to a few peripheral devices running fixed applications.
- Networking needs follow the function's scope, not the layer's name.
- Edge (LAN) offers compute and storage and prioritizes autonomy; fog (WAN) adds networking and prioritizes coordination; cloud (Internet) prioritizes global connectivity.
Sources
- NIST SP 500-325: Fog Computing Conceptual Model (Iorga et al., March 2018)DocsNISTFog definition, fog nodes, mist, Annex A fog against edge(opens in a new tab)
- Fog Computing and Its Role in the Internet of Things (Bonomi, Milito, Zhu, Addepalli, MCC 2012)PaperACMFog definition, characteristics, tiers and time scales, traffic light example(opens in a new tab)
- The Emergence of Edge Computing (Satyanarayanan, IEEE Computer 50(1), 2017)PaperIEEE Computer Society74 ms RTT to EC2, economies of scale, edge analytics, masking outages(opens in a new tab)
- The Case for VM-Based Cloudlets in Mobile Computing (Satyanarayanan, Bahl, Cáceres, Davies, IEEE Pervasive Computing 2009)PaperIEEECloudlet as a data center in a box with cached state(opens in a new tab)
- Above the Clouds: A Berkeley View of Cloud Computing (Armbrust et al., UCB/EECS-2009-28)PaperUC BerkeleyTable 2, economies of scale in 2006(opens in a new tab)
- Netflix Open Connect OverviewDocsNetflixOCAs at IXPs and in ISPs, fill windows(opens in a new tab)
- Netflix Open ConnectDocsNetflixMore than a thousand ISP partners(opens in a new tab)
- High Performance Browser Networking: Primer on Latency and Bandwidth (Grigorik)BookO'ReillySpeed of light in fiber, refractive index(opens in a new tab)
- IEEE adopts OpenFog Consortium's reference architecture (June 2018)ArticleRCR Wireless NewsIEEE 1934-2018(opens in a new tab)