← Low-latency networking

Ch 3: Network architecture and topology

Source: Sterbenz & Touch 2001, Ch 3 (pp. 79–118), read in full. Page numbers are the book’s printed pages.

Numbering note: a few principle boxes inside Ch 3 carry different IDs from Appendix A. Mesh scalability is “N-II.4” in the chapter and N-II.5 in the appendix; bandwidth aggregation is “N-5B” vs N-5Cb; administrative constraints “N-III.2” vs N-III. The chapter’s closing list also has an “N-4B Redundant Functionality in the Network” that the appendix leaves out. These notes use the Appendix A IDs, as in 01-principles-map.md.

The chapter in one paragraph

Latency along a path is the sum of its parts, bandwidth is the minimum of its parts (p. 116). Propagation is set by geography, so over long distances the only thing the network can do is offer straight paths and few hops. Large networks need hierarchy to keep routing state and diameter under control. Where to put functions (caches, multicast, active processing) is a trade-off among bandwidth, processing and memory, with latency as the constraint.

Topology: meshes beat shared media (pp. 81–82)

Latency (pp. 82–88)

Components of delay (p. 82):

Symbol Component
t_p Propagation at the speed of light over the link distance
t_r, t_s Delay through a router or switch = forwarding delay t_f + queuing delay t_q (+ t_b for store-and-forward routers)
t_b = b/r Object transmission time: from the first bit until enough has arrived to start processing

D = Σ d_i over the hops (p. 83). A path that is longer in distance and in hops can still be faster if a node on the short path has long queues (Fig. 3.4).

Speed of light (p. 84): c ≈ 3×10⁵ km/s. Fiber propagates at about 0.7c, copper at 0.6–0.95c depending on the medium. A signal needs about 200 ms to go around the Earth (40,000 km), already twice the 100 ms interactive budget.

Round-trip times from Table 3.1 (p. 84; one-way bandwidth–delay product shown at 1 Gb/s):

Scope Distance RTT BDP at 1 Gb/s
Desk / storage area network 100 m 1 µs 500 b
LAN 1 km 10 µs 5 kb
MAN 100 km 1 ms 500 kb
Transcontinental WAN 5,000 km 50 ms 25 Mb
Global WAN 20,000 km 200 ms 100 Mb
LEO satellite 2 × 1,000 km 25 ms 12 Mb
GEO satellite 2 × 36,000 km 480 ms 240 Mb

Bandwidth (pp. 88–90)

Overlays (pp. 90–94)

Scale and hierarchy (pp. 95–110)

Resource trade-offs (pp. 110–116)

Trading-network lens (my mapping)

Latency is a sum, and only t_q moves. In a colocation, model the path as NIC → switch → switch → exchange handoff and assign each term: propagation (metres of fiber), per-switch forwarding, serialization, queuing. All but the queuing term are roughly constant; queuing is where jitter and microburst loss come from. No single source.

Diameter. The book’s 10-hop target is for a WAN. For the latency-critical path in a trading site the target is one or two switch hops, with layer-1 switches for pure fan-out, and that drives flat designs. No single source.

Straight paths are the product. The book’s Boston–New York-via-Chicago example (12 ms vs 1.5 ms) is the trading-route problem in miniature: for long routes such as Chicago–New Jersey, firms pay for the straightest path they can get. Unverified (route-specific figures not checked yet).

The fastest path is not the fattest (Fig. 3.7). A low-latency radio route has less bandwidth than fiber, so trading networks split traffic: small latency-critical messages on the fast, thin path, bulk traffic on fiber. No single source.

Striping and per-flow hashing. The book’s skew argument is why ECMP and link aggregation hash per flow: all packets of one flow stay on one member link and stay in order. A single market data feed therefore uses one member link, however many there are. No single source.

Bottlenecks and fan-in. R = min(r_i) also applies in time: several feeds merged onto one 10G link make that link the bottleneck during bursts, which is where microburst drops happen. See ../multicast/02-microburst-buffer.md.

Multicast (Example 3.4). One feed to many consumers costs r per link instead of n·r, which is why market data is distributed by multicast. See ../multicast/00-glossary.md.

Overlays hide the path (N-IIo). Tunnels hide the physical route from routing and add encapsulation, so keep the latency-critical path on an underlay you can see and control. No single source.

“When is a hop not a hop?” Know what is inside each hop you pay for: a single “cross-connect” can contain patch panels, a media converter or a provider switch. No single source.

Latency gets relatively more important (p. 114). The book’s 2001 observation is the economics of the low-latency trading race: bandwidth kept getting cheaper, distance did not.

Self-check

  1. Name the delay components the book uses in Ch 3. Which one changes with load?
  2. Using the book’s 0.7c for fiber, what is the one-way propagation delay over 1,200 km?
  3. A path has nine 10G links and one 1G link. What can it deliver, and which principle says so?
  4. Why, according to the book, are links bit-serial instead of striping a flow over parallel links? Which modern feature follows the same logic?
  5. In Fig. 3.7 the lowest-latency path and the highest-bandwidth path differ. How does a trading network deal with that?
  6. Ten receivers behind one link want the same 1 Gb/s feed. What does that link carry with unicast, and with multicast?
  7. What did Example 3.3 teach about counting hops?
Answers
  1. Propagation t_p, forwarding t_f, queuing t_q, and transmission t_b = b/r (plus t_b again in store-and-forward routers). Queuing t_q changes with load.
  2. 0.7 × 300,000 km/s = 210,000 km/s; 1,200 km ÷ 210,000 km/s ≈ 5.7 ms.
  3. 1 Gb/s: R = min(r_i), the Network Bandwidth Principle (N-1Ab).
  4. Skew between parallel links reorders packets and would force lock-step switch planes or resequencing (p. 89). ECMP and LAG hashing per flow keep each flow on one link for the same reason.
  5. It sends small latency-critical traffic over the fast low-bandwidth path and bulk traffic over the high-bandwidth path.
  6. Unicast: up to 10 Gb/s (n·r). Multicast: 1 Gb/s (Example 3.4).
  7. A “hop” can hide a whole network: provider POPs built from small routers held about 10 router hops each (p. 109).

Source: knowledge base note low-latency/03-ch03-topology.md — own-words notes with sources, projected at build time.