Majid Al-RaimiThe latency continuum and the birth of the fog

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
Understood
0/5 concepts

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

  1. Explain the E2C continuum as a continuum of latencies, and estimate the round-trip floor for a placement from its distance.
  2. 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.
  3. Define the fog, its mini data centers and their compute, storage and networking services, and tell fog apart from edge.
  4. 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.

TaskDeadlineData it needsLayer
Obstacle detectionA few msThis car's own sensorsEdge
Route optimizationSecondsTraffic from many cars in a regionFog
Model trainingHours to daysMonths of history from the whole fleetCloud
The car's three jobs placed by deadline and data scope
Three posts on one line from the client: the round-trip bar to each grows from microseconds to tens of milliseconds.

The floor that distance sets

Recall

From Lecture 01: what floor does distance set on RTT, and why?

At least 2d / v, because a signal cannot beat the speed of light in the medium, roughly 200,000 km/s in fiber, and a round trip covers the distance twice.

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:

RTTmin⁡=2dv,v≈2×108 m/sRTT_{\min} = \dfrac{2d}{v}, \qquad v \approx 2 \times 10^{8}\ \text{m/s}
Minimum round-trip time over fiber at distance d

Worked example

Physics floor for three placements

  1. 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.
  2. Fog site 50 km away

    One way takes 0.25 ms, so the round trip is at least 0.5 ms.
  3. 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.
  4. 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.
  5. 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?

Latency between client and server. Edge is small, fog medium and cloud large; capacity grows in the same direction.

Recall

What is the minimum RTT to a fog site 300 km away over fiber?

2 × 300 km ÷ 200,000 km/s = 3 ms, before any queuing or processing.

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.

ResourceMedium datacenterVery large datacenterRatio
Network$95 per Mbit/s per month$137.1
Storage$2.20 per GB per month$0.405.7
Administrationabout 140 servers per adminmore than 1,0007.1
Economies of scale in 2006 (Armbrust et al., Table 2): about 1,000 servers against about 50,000

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.

Client

Player, viewer or device

near
Mini data center
in the ISP

Cached content and services

Mini data center
at an IXP

Serves a whole metro area

far
Cloud
central

Authoritative data and heavy jobs

One central cloud and several mini data centers placed along the path to the client

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.

Mini racks slide out from the central cloud to fixed points on the path, then a fill arc stocks each one from the cloud.

Recall

Give two reasons the cloud cannot simply be moved next to clients, and the alternative.

It is complex and expensive, and it is centralized for economies of scale (about 5 to 7 times cheaper network, storage and administration per unit). The alternative is mini data centers placed at several points on the continuum.

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.

AspectFogEdge
StructureHierarchical, multi-layer architectureLimited to a small number of peripheral devices
ServicesComputation and networking, plus storage, control and data-processing accelerationSpecific applications in a fixed logic location, with a direct transmission service
LocationBetween smart end-devices and centralized cloud servicesThe end-device layer itself
Fog against edge, following NIST SP 500-325 Annex A

Recall

Give two differences between fog and edge according to NIST.

Fog is hierarchical and multi-layer and adds storage, control and acceleration; edge runs specific applications at a fixed location on a small number of peripheral devices.

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.

Rings around one drone draw outward: self (edge), area with nearby drones (fog), then the whole fleet (cloud).
TaskScopeLayerNeeds networking?
Low battery, return to baseOne droneEdge, on the drone itself (no network hop)No
Coordinate flight pathsSeveral drones in one areaFog ground stationYes
Improve routes from fleet historyEvery drone, everywhereCloudYes
Drone tasks classified by the scope of their data

Here the device itself plays the edge role, the NIST usage flagged in concept 1.

Worked example

Classify a function by scope

  1. Whose data does it need?

    One device, a neighborhood of devices, or everyone. This sets the scope and therefore whether networking is needed.
  2. What is its deadline?

    Milliseconds push it toward the client; minutes or days let it go far.
  3. 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.
  4. 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?

The scope of the function, meaning how many parties or how much area its data spans, not whether the layer is called edge, fog or cloud.

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.

Three columns light their service chips in turn; the edge column's networking slot stays dark.
LayerNetwork spanServices offeredPriorityTypical RTT floorExample task
EdgeLANCompute, storageAutonomy~1 µs at 100 mObstacle detection, local video analytics
FogWANCompute, storage, networkingCoordination~0.5 ms at 50 kmCollision coordination, traffic signals
CloudInternetFull data center (all services)Global connectivity~40 ms at 4,000 kmFleet-wide model training
The slide 9 map, extended with latency floors and example tasks

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.

Edge: LAN, compute and storage, autonomy. Fog: WAN, compute, storage and networking, coordination. Cloud: Internet, the full data center (all services), global connectivity.

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