Network-on-Chip (NoC) topologies
Core Intuition
Traditional buses work for2-8 cores, but beyond that, contention (multiple cores fighting for the bus) and wire delay (signals take multiple cycles to cross the chip) kill performance. NoC solves this by:
- Paralelism: Multiple packets travel simultaneously on different links
- Locality: Data routes through nearby routers, reducing hops
- Scalability: Adding cores doesn't collapse the network

Fundamental Concepts
Why Packet-Switching on a Chip?
Derivation of the need:
- Wire delay dominates in modern tech nodes: A 10mm wire at 7nm takes ~20 cycles to propagate a signal.
- Shared bus bandwidth: (frequency × wire width). For 64cores sharing 128-bit bus at 2GHz: total, so 4 Gb/s per core—too little.
- Dedicated point-to-point links scale linearly: Each router-router link provides full bandwidth, and multiple links operate in parallel.
Major NoC Topologies
1. Mesh (2D Grid)
Why these formulas?
- Diameter: Worst case is corner-to-oppositecorner. In an grid, you move steps in one dimension and in the other. No diagonal moves, so .
- Bisection bandwidth: Cut the grid in half. The smaller dimension determines how many links cross the cut. For a mesh, cutting vertically severs 4 links.
Pros: Simple layout, matches 2D chip floorplan, easy routing (XY-routing).
Cons: High diameter → high latency for distant nodes. Edge nodes have lower degree → asymetric performance.
2. Torus (Wraparound Mesh)
Derivation of diameter:
In a torus, you can "wrap around." For an torus, the farthest node is at distance in each dimension (wrap if ). Example: torus, node (0,0) to (7,7). Instead of 14 hops (mesh), go (0,0) → (0, -1≡7) in 1 hop, then 4 hops to (4,7), then 3 to (7,7) = 8 hops. Actually, .
Pros: Lower diameter, higher bisection BW, symmetric (all nodes equal).
Cons: Wraparound wires are long (cross entire chip edge) → higher power, harder physical layout.
3. Hypercube
Derivation:
Label nodes 0 to in binary. Node connects to (flip bit ). Example: 4D hypercube (, 16 nodes). Node 5 = 0101 connects to:
- (flip bit 0)
- (flip bit 1)
- (flip bit 2)
- (flip bit 3)
Diameter: Any node reaches any other by flipping at most bits (Hamming distance ≤ ).
Pros: Logarithmic diameter (best scalability). High bisection BW.
Cons: Degree grows with → complex routers. Non-planar (hard to lay out in 2D silicon).
4. Fat-Tree
Why "fat"?
Traditional trees bottleneck at the root (all traffic funnels through one link). Fat-tree doubles link bandwidth at each level up. For a binary tree with leaves:
- Level 0 (leaves): Each link =
- Level 1: Links =
- Level 2: Links =
- Root: Link =
This maintains constant bisection bandwidth across all cuts.
Pros: High bandwidth, fault-tolerant (multiple paths to root).
Cons: Area/power scales poorly (root switches huge). Deep hierarchy → latency.
5. Ring
Why diameter = ?
Worst case: Opposite side of ring. In a 10-node ring, node 0 to node 5is 5 hops (clockwise or counter-clockwise). For nodes, max = .
Pros: Simplest layout, lowest wiring cost, low power.
Cons: Awful bisection BW (major bottleneck), high average latency.
Comparative Analysis
| Topology | Diameter | Bisection BW | Degree | Best For |
|---|---|---|---|---|
| Mesh | 4 | 2D chips, balanced cost | ||
| Torus | 4 | Lower latency, uniform traffic | ||
| Hypercube | High performance, non-planar OK | |||
| Fat-Tree | Varies | Datacenters, bandwidth-critical | ||
| Ring | 2 | Low-cost, light traffic |
Common Mistakes
Design Trade-Offs
Latency vs. Throughput
- Low latency: Hypercube, torus (low diameter).
- High throughput: Fat-tree, hypercube (high bisection BW).
- Mesh: Compromise—moderate both.
Power vs. Performance
Where ( = wire capacitance, = activity factor).
Why this matters: Long links (torus wraparound, fat-tree root) have high → high . Hypercube has more routers → high . Mesh minimizes both.
Scalability
- Mesh/Torus: Scale to 100s of nodes (Intel's 72-core Xeon Phi uses 2D mesh).
- Hypercube: Hard limit ~1024 nodes (10-port routers are impractical).
- Ring: Dead beyond 8-10 nodes (bisection BW collapse).
Real-World Examples
- Intel Xeon Phi (Knights Landing): 72 cores, 2D mesh NoC. Each tile = core + L2 cache slice + router. Chose mesh for 2D layout, reasonable diameter (18 hops max), 4-port routers.
- Tilera TILE-Gx: 64 cores, 8×8 mesh. XY-routing (go X then Y) for deadlock-free deterministic paths.
- AMD Ryzen (Infinity Fabric): Not pure NoC, but uses mesh-inspired topology for die-to-die links in chiplet designs.
- Nvidia GPUs: Internal interconnect resembles torus for SM (streaming multiprocessor) clusters—wraparound for symmetric latency.
Active Recall Practice
Recall Explain to a 12-Year-Old
Imagine your chip is a city with 64 neighborhoods (cores). You need to send letters (data) between them. A bus is one road everyone shares—traffic jam! A NoC is a whole road network. The topology is the map: how roads connect.
- Mesh: Roads in a grid, like city blocks. Simple, but corners to corners are far.
- Torus: Grid + secret tunnels (wraparound)—cuts distance in half!
- Hypercube: Every neighborhood has shortcuts to neighborhoods whose "address" differs by1 bit. Super fast, but needs lots of roads per place.
- Fat-Tree: Roads get wider as you go to the "downtown" hub, so downtown never jams.
- Ring: One big loop. Cheap, but opposite side of the loop is slow.
The best map depends on: How much space do you have? How much power? Do all neighborhoods talk equally, or do some talk a lot? Chip designers pick the map that fits their needs!
Connections
- Bus Architectures: NoC replaces shared buses at scale.
- Cache Coherence Protocols: NoC routes coherence messages (snoops, invalidations).
- Routing Algorithms: XY, adaptive, deadlock avoidance for NoC packet paths.
- System-on-Chip (SoC) Design: NoC is the backbone of modern SoCs.
- Power Management in SoCs: NoC links can be power-gated when idle.
- Latency and Throughput Trade-offs: NoC topology directly impacts both.
#flashcards/hardware
What is a Network-on-Chip (NoC)? :: A packet-switched on-chip interconnect where cores/memory connect via routers and links, enabling parallel data transfer and scalable communication beyond traditional buses.
What are the key metrics for NoC topologies?
What is the diameter formula for an mesh?
How does torus diameter compare to mesh?
What is the bisection bandwidth of a 4×4 mesh with 64-bit links at 2 GHz?
Why does torus have higher bisection BW than mesh?
What is the degree of a hypercube with nodes?
What is the diameter of a hypercube?
How are hypercube connections determined?
What is the main disadvantage of hypercube topology?
What makes a fat-tree "fat"?
What is the diameter of a fat-tree?
What is the bisection bandwidth of a ring?
Why is ring topology rarely used beyond 8 nodes?
What is the main advantage of mesh topology?
What is the hidden cost of torus wraparound links?
Why doesn't fat-tree eliminate all bottlenecks?
What is the NoC power equation?
What NoC topology does Intel Xeon Phi use?
What is XY-routing?
Concept Map
Hinglish (regional understanding)
Intuition Hinglish mein samjho
Hinglish (regional understanding)
Intuition Hinglish mein samjho
Dekho, jab chip mein cores ki sankhya badhti jaati hai—2-4 se lekar 100+ tak—tab purana shared bus system fail ho jaata hai. Socho ek single highway pe 100 cities ka traffic, contention ho jaata hai aur wire delay bhi problem banti hai kyunki signal ko chip ke ek kone se doosre kone tak jaane mein 20+ cycles lag jaate hain. Isliye Network-on-Chip (NoC) aaya, jisme chip ko ek chhota internet maana jaata hai—har core ek "router" ki tarah kaam karta hai, links ke through connected hota hai, aur data packets/flits ki form mein travel karta hai. Iska sabse bada faayda ye hai ki multiple packets ek saath alag-alag links pe chal sakte hain (parallelism), data nearby routers ke through jaata hai (locality), aur naye cores add karne se network collapse nahi hota (scalability).
Ab yahan topology—matlab routers aapas mein kaise connect hain—sab kuch decide karti hai: latency, bandwidth, power aur fault tolerance. Do main topologies samajhna zaroori hai. Mesh ek 2D grid hai jahan har interior node apne 4 neighbours (North/South/East/West) se juda hota hai. Iska diameter (worst-case hops) hota hai (N-1)+(M-1), kyunki corner se opposite corner tak jaane mein diagonal move nahi hota. Torus basically wahi mesh hai lekin extra wraparound links ke saath (leftmost node directly rightmost se jud jaata hai). Ye chhota sa change diameter ko aadha kar deta hai—N/2 + M/2—aur bisection bandwidth double kar deta hai, plus har node ka degree uniform 4 ho jaata hai, toh edge nodes wali asymmetric performance problem bhi khatam.
Ye topics kyun matter karte hain? Kyunki modern multi-core aur many-core processors (jaise GPUs, server chips) ki actual performance NoC design pe hi depend karti hai—chahe individual core kitna bhi tez ho, agar data ko point A se B tak jaane mein zyada hops lagenge toh latency badhegi aur overall system slow ho jaayega. Interview aur exam dono mein diameter, bisection bandwidth aur hop count ke formulas se numerical questions aate hain, isliye Mesh vs Torus ka trade-off—simplicity vs lower latency—clearly samajhna important hai.