Docsity

Interconnection Networks: Routing, Topology, Deadlock Avoidance, Adaptive Routing, Slides of Computer Science

Toggle sidebar
bg1
Objectives_template
file:///E|/parallel_com_arch/lecture38/38_1.htm[6/13/2012 12:19:23 PM]
Module 17: "Interconnection Networks"
Lecture 38: "Routing Algorithms"
Interconnection Networks
Topology
Routing algorithms
Deadlock avoidance
Adaptive routing
Alpha 21364 µP
Alpha 21364 router
Alpha 21364 router
[From Chapter 10 of Culler, Singh, Gupta]
pf3
pf4
pf5

Partial preview of the text

Download Interconnection Networks: Routing, Topology, Deadlock Avoidance, Adaptive Routing and more Slides Computer Science in PDF only on Docsity!

Module 17: "Interconnection Networks"

Lecture 38: "Routing Algorithms"

Interconnection Networks

Topology

Routing algorithms

Deadlock avoidance

Adaptive routing

Alpha 21364 μP

Alpha 21364 router

Alpha 21364 router

[From Chapter 10 of Culler, Singh, Gupta]

Module 17: "Interconnection Networks"

Lecture 38: "Routing Algorithms"

Topology

Fully connected A single large switch (could be a bus!) Complete graph Diameter? Average distance? Cost? Linear arrays A one-dimensional mesh Unidirectional or bidirectional? Diameter? Average distance? Bisection BW? Linear rings One extra connection from end to beginning of linear array Bidirectional is better Diameter? Average distance? Bisection BW? Mesh Multi-dimensional generalization of linear array A d-dimensional k-ary mesh has k nodes in each dimension: kd nodes A cube is a 3-dimensional binary mesh A popular deterministic routing algorithm is dimension order routing (DOR) where the message is routed along successive dimensions until it reaches the destination Diameter? Average distance? Torus Collection of rings in each dimension Hypercube Essentially a d-dimensional binary torus Offers efficient routing via gray codes: current node ^ destination gives you the dimensions to traverse Dimension order routing is referred to as e-cube routing for hypercube Each node connects to d other nodes By connecting 2 hypercubes of d-1 dimension each you$get a d-dimensional hypercube Trees $ Direct and indirect Increased branching factor reduces average distance Butterfliew, Benes network and fat trees Tree with many roots Basic butterfly building block

Module 17: "Interconnection Networks"

Lecture 38: "Routing Algorithms"

Deadlock avoidance

Multiple virtual channels per port Break the dependence cycle Allocate virtual channels according to source and destination of packets Up-Down routing Applies to indirect networks only Logically treat the topology as a spanning tree with processors at leaves Route up to common ancestor and then down No cycles involved Comes for free in trees, fat trees, Butterflies Turn model Attacks the fundamental problem: the turns In a 2D mesh there are eight possible turns and that form two different types of cycles (4 turns each) Restrict the use of turns Avoid one turn each from these two cycles: 16 possibilities Out of these 16, 12 are deadlock free West-first: avoids +y to –x and –y to –x turns i.e. cannot turn west North-last: avoids +y to –x and +y to +x turns i.e. cannot turn from north Negative-first: offers a set of choices Dimension order routing is inherently deadlock-free because it disallows all y to x turns (too restrictive)

Adaptive routing

For fault tolerance and better network utilization Tremendous contention in 2D mesh with DOR for transpose traffic or for accessing locks allocated on a corner node Adaptive routing can make use of other available paths and introduce more concurrency Main idea: decide the next output port dynamically based on switch state (locally or globally gathered) Fully vs. partially adaptive: allow all or some paths Minimal vs. non-minimal adaptive: allow only shortest paths (i.e. hop count goes down monotonically) or allow arbitrary paths Hot-potato routing: example of non-minimal adaptive; misroute one of the contending packets Multipath routing A special case of adaptive routing where the decision is static Source-based multipath: source chooses the entire path from the legal set of paths Table-based multipath: routing table provides multiple possible output ports programmed at boot time Deadlock avoidance Non-minimal adaptive routing is prone to deadlocks Normal trick is to have a deadlock-free virtual network called the escape route Livelock is a bigger problem: with hot-potato routing a packet may keep on moving around the same path never getting to the destination

controller), inter-processor (NEWS), I/O Depending on input and output ports of a packet it goes through one of the nine logically different routing pipelines (implemented in a single seven-stage pipe) Six additional cycles are needed to account for synchronization between router’s internal clock and external link clock (runs at 0.8 GHz), pad receiver and driver delay, transport delay from pin (inbound) to router and from router to pin (outbound) Uses table-based routing to select output port and virtual channel (one 128-entry routing table and one virtual channel table giving assignments for three output virtual channels)