Chapters

3 Measuring Topologies with Graph Metrics

network-topologies
analysis

A network diagram with twelve nodes may contain one fragile bridge or several alternate routes. Graph metrics turn those visible links into counts that expose reachability, path length, and concentration. The numbers matter only when tied back to the physical devices and failure being decided.

A gateway is the graph node that connects the measured topology to another network.

  1. Packet Pete watches forty shelf sensors connect during setup while future crowding, faults, and growth gather as unresolved risks.

    Will all forty sensors still connect after setup?

CP-0141 pre-concept hook: Will all forty sensors still connect after setup?

3.1 Start With the Story

Break One Link Before Trusting the Drawing

Picture forty shelf sensors that can all reach a store system during setup. The map looks like a strong web, yet most messages cross one powered relay near a loading door. If that relay fails, half the shelves disappear. The network owner needs to see that weak point before release.

Turn the drawing into nodes and links. Mark source devices, relays, border devices, power sources, channels, owners, and final receivers. Count paths, path length, shared parents, busiest links, and the groups lost when each key part is removed.

Unplug one relay, block one link, add busy traffic, move a shelf, drain a battery, and restore power. Measure delivery, delay, route change, energy cost, and recovery. Check the receiver record as well as the radio map; a path that exists but misses the decision time may still fail the job.

Graph measures describe the stated model, not every wall, radio effect, queue, software fault, or field change. Keep site measurements and the model version with the result.

Practitioner builds the topology scorecard and failure trial. Under the Hood explains degree, paths, cuts, scale, route overhead, and why several neat-looking shapes can hide the same failure domain.

Suppose two network sketches both look tidy, but one loses half the building when a parent node fails and the other only slows down. Topology analysis is the habit of proving that difference before release. You turn the drawing into graph metrics, failure-domain evidence, scale limits, and routing-overhead notes so a reviewer can see what the shape can actually survive.

3.2 Measure the Route Graph, Then Break It

Start with Figure 3.2. Read its nodes and edges before the metric labels. Degree counts a node’s direct neighbours. Path length counts the edges along a route. Density compares present links with possible links. Centrality can highlight a node that sits on many paths. None of these values alone states whether the network meets its service target.

Figure 3.1 follows traffic between named endpoints. Count each hop and note any alternate path. Figure 3.3 then groups devices that share a component or cut. A node can have several neighbours yet remain inside one power or gateway failure domain.

Figure 3.4 closes the analysis with topology version, data source, metric values, tested removals, exceptions, and decision. Read it after the diagrams because a metric without the exact graph snapshot cannot be reproduced.

Use a five-node graph with edges A-B, B-C, C-D, D-E, and B-D. Node B has degree 3, while A and E each have degree 1. The shortest route from A to E is A-B-D-E, which has three edges. Remove B and A becomes isolated, even though C, D, and E remain connected. B is therefore a critical articulation for A in this graph.

Adding edge A-C changes the failure result. After B is removed, A can still reach E by A-C-D-E. The new edge adds installation and traffic cost, so the decision record should link that cost to the required resilience. Calling the graph “more connected” is weaker than naming the protected route.

Metrics from intended drawings and discovered networks may differ. Capture actual neighbours over a stable window, handle one-way or intermittent links explicitly, and record whether edges are directed or weighted. A wireless link observed once should not automatically become a permanent symmetric edge.

Predict the calculations. Before using a tool, state B’s degree, the three-edge A-to-E shortest path, and A’s isolation after B fails. Add A-C and predict the surviving route. Then compare software output and a real fault test with those hand results. A disagreement often reveals a direction, weight, or filtering assumption in the graph model.

3.3 Overview: Topology Analysis Turns Diagrams Into Evidence

A topology diagram is a useful sketch, but analysis asks what the sketch proves. Model devices and links as a graph, measure the paths that traffic depends on, and test which nodes, links, gateways, channels, power sources, or ownership boundaries can break the service.

The goal is not to crown one topology name as good or bad. Star, tree, ring, mesh, bus, and hybrid patterns all work in the right conditions. A design is defensible when its metrics, failure behavior, and field evidence match the deployment constraints.

Consider a warehouse design where forty shelf sensors appear to form a healthy wireless layout because every sensor can reach a gateway during installation. The graph record may tell a different story: most routes still cross one relay aisle, the gateway has the highest degree, and the cold-room sensors have longer retry paths than the rest of the floor. A useful analysis records those dependencies before release. It asks which nodes become unreachable if the relay aisle loses power, whether alarms still arrive during a burst, and whether operations can see the difference between weak radio links, gateway queues, and application ingestion delays.

If you only need the intuition, this layer is enough: count the graph, identify the busiest and weakest dependencies, remove one likely failure, and record what evidence would make the topology safe to reuse.

The warehouse sketch becomes defensible only when its nodes and links pass through a repeatable analysis. Figure 3.1 previews that route so each later metric and probe has a clear place in the final decision record.

Topology analysis route from graph inventory through metrics, failure-domain review, scale pressure, routing overhead, evidence capture, and decision record.
Figure 3.1: Analysis follows a route from graph inventory through metrics and failure tests to a decision record

The numbered path in Figure 3.1 begins with Inventory, recording nodes and links, then moves through Metrics such as degree, diameter, paths, and reach. Failure Zones exposes hubs, bridge links, gateways, and power dependencies before Scale Pressure and Routing Work add state, support, discovery, and repair costs. Evidence captures counters and traces, and Decision Record binds the assumptions, limits, evidence, and recheck triggers. That sequence turns the opening warehouse example from a tidy drawing into an inspectable claim about what remains reachable under stress.

Nodes

Devices, routers, access points, gateways, brokers, cloud services, and any boundary whose failure changes reachability.

Edges

Radio links, cables, uplinks, tunnels, broker paths, or logical dependencies that carry traffic between nodes.

Paths

Hop sequences for the flows that matter: telemetry, commands, local control, diagnostics, and recovery traffic.

Failure Domains

Shared dependencies that can disconnect devices even when the diagram appears to show alternate paths.

Overview Knowledge Check

3.4 Practitioner: Build the Topology Analysis Record

A practical analysis record should fit on one review page. It names the graph boundary, the metrics that matter, the failure probe, the operations evidence, and the trigger that reopens the decision when the site changes.

Counting links alone cannot reveal whether the remaining paths are useful. The graph diagram Figure 3.2 gives the vocabulary needed to complete the one-page analysis record.

Topology metric model showing nodes, edges, degree, shortest path, diameter, bridge-link risk, articulation-node risk, and weighted links for retry rate, latency, quality, or capacity.
Figure 3.2: Graph metrics expose node degree, shortest path, diameter, bridge risk, articulation risk, and weighted links

In Figure 3.2, router R1 degree = 3 illustrates Node degree, while the strong highlighted route between sensors and the GW illustrates one Shortest path. The callout for Diameter identifies the longest shortest path, not simply the longest drawn edge. On the right, a dashed Bridge link or relay shows how one failure can split the graph, and Weighted links attach retry rate, latency, quality, or capacity to edges that would otherwise look equal. Those labels supply the record fields used below: connectivity explains possibility, while weights and failure probes explain operational fitness.

Record field
Question
Evidence to keep
Failure it prevents
Graph boundary
What is included in the model?
Devices, relays, gateways, backhaul, brokers, cloud entry points, power, and ownership boundaries.
Leaving the real dependency outside the diagram.
Metric snapshot
Which numbers expose pressure?
Edge count, degree distribution, diameter, average path length, node connectivity, and link connectivity.
Choosing from topology names instead of measured graph behavior.
Weighted links
Do all edges behave equally?
Retry counters, signal margin, latency, airtime, duty cycle, capacity, or ownership difference.
Treating a weak path as equal to a stable path.
Failure probe
What breaks when one dependency disappears?
Remove a hub, bridge link, relay, gateway, channel, power source, or service and record reachability.
Claiming resilience from a diagram without stress evidence.
Operations evidence
Can the team detect topology drift?
Neighbor tables, route traces, retry counters, gateway logs, message timestamps, and repair time.
Confusing application symptoms with unknown topology failure.
Recheck trigger
When is the record stale?
Device count, placement, traffic rate, firmware, gateway ownership, building layout, or field counters change.
Reusing a once-correct topology after its assumptions changed.

Use formulas as first-pass checks, not as deployment truth. A full mesh with `n` nodes needs `n(n - 1) / 2` links, while a partial mesh with average degree `k` has about `n * k / 2` links. Those numbers reveal maintenance pressure, but the decision still needs weighted links and failure probes.

Accept

The graph boundary, key metrics, failure probe, and operations evidence support the selected topology.

Constrain

Limit the topology decision to a named area, flow, gateway, traffic rate, device role, or ownership model.

Retest

Run a focused probe when node count, placement, relay role, traffic shape, or route behavior changes.

Hold

Do not approve when the graph hides a gateway, bridge link, power source, shared channel, or service dependency.

Practitioner Knowledge Check

3.5 Under the Hood: Failure Domains Decide Whether Metrics Matter

A topology can be connected and still be fragile. A graph has an articulation node if removing one node separates reachable groups. It has a bridge link if removing one link partitions traffic. It has a shared dependency when apparently redundant paths rely on the same gateway, switch, channel, power circuit, certificate, cloud service, or operating team.

Routing overhead also grows through the graph. Neighbor discovery, route maintenance, acknowledgements, retries, state storage, convergence, and sleep behavior can make a theoretically resilient topology expensive or unstable in the field.

This is why failure-domain evidence should be paired with weighted-link evidence. Removing a bridge link from an unweighted graph shows partition risk, but it does not show whether the alternate path is usable under battery, latency, duty-cycle, or interference constraints. A sleepy relay may be a valid backup for slow telemetry and a poor backup for command traffic. A redundant uplink may still share one power circuit or one operations team. The under-the-hood record should therefore name the assumed failure, the affected flows, the measured or observed weights, the degraded mode, and the exact condition that would require a retest.

Graph metrics matter only when they predict the service effect of a plausible loss. The comparison diagram Figure 3.3 contrasts familiar shapes by failure boundary rather than by topology reputation.

Failure-domain comparison showing star hub dependency, tree branch risk, ring break behavior, partial mesh reroute proof, shared gateway boundary, and operations evidence to capture.
Figure 3.3: Failure-domain comparison for star, tree, ring, partial mesh, and a shared gateway

The stacked cases in Figure 3.3 label Star: hub dependency and Tree: branch risk, where one shared role can isolate many leaves. Ring: break creates line shows that continuity changes after a break, while Mesh: prove reroute refuses to count a candidate alternate as a working path without observation. The final Gateway boundary: local is not enough points toward cloud service and asks for queues, uplink state, timing, and duplicates. This comparison sharpens graceful degradation: the record must say which flow persists, which slows or buffers, and which still fails beyond a surviving local graph.

Articulation Node

One node removal separates otherwise healthy devices. It needs redundancy, monitoring, or a documented acceptance decision.

Bridge Link

One link removal partitions traffic. Bridge links are common in tree branches, gateway uplinks, and under-connected meshes.

Shared Dependency

Two paths can still share one channel, breaker, uplink, credential store, or operator handoff.

Graceful Degradation

The strongest designs state what changes after failure: longer paths, buffering, alarms, local isolation, or lower sample rate.

After the failure comparison, the evidence must be consolidated without erasing its scope. Figure 3.4 shows the six inputs that make the topology decision reusable and bounded.

Topology decision record evidence map linking assumptions, graph metrics, failure tests, operations evidence, limits, and recheck triggers to one bounded topology decision.
Figure 3.4: A topology decision record joins assumptions, graph metrics, failure tests, operations evidence, limits, and recheck triggers

Around the centre of Figure 3.4, Assumptions fixes scope, environment, roles, and traffic; Graph Metrics records degree, paths, diameter, connectivity, and weak links. Failure Tests names the removed hub, router, link, gateway, channel, or power source, while Operations Evidence supplies neighbour tables, traces, logs, counters, and timestamps. Limits and Recheck Triggers prevent those observations from becoming a universal verdict. The central Topology Decision Record is therefore the running narrative’s endpoint: an accepted or constrained choice that can be reopened when placement, load, ownership, or firmware changes.

Under-the-Hood Knowledge Check

3.6 Summary

Topology analysis makes a network design defensible by turning a diagram into a graph record. Count nodes and edges, measure degree, diameter, path length, and connectivity, then test what happens when a likely dependency fails.

The strongest topology records avoid topology-name shortcuts. They include weighted links, failure domains, routing overhead, operational evidence, limits, and a clear trigger for reopening the decision when device count, placement, traffic, ownership, or field counters change.

3.7 Key Takeaway

Trust a topology decision only when the graph metrics, failure probe, operations evidence, known limits, and recheck trigger all support the deployment claim.

3.8 See Also

Network Topologies: Basic Types

Review star, tree, ring, mesh, bus, and hybrid families before analyzing trade-offs.

Topology Selection

Turn analysis evidence into a bounded topology recommendation and recheck trigger.

Topology Failures

Study the failure modes that invalidate otherwise plausible topology diagrams.

Topology Management Techniques

Connect graph evidence to operational changes, rollback choices, and retest triggers.