• No results found

Interconnection networks

N/A
N/A
Protected

Academic year: 2022

Share "Interconnection networks"

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

22/10/03 Parimala Thulasiraman 1

Interconnection networks

! Shared-address-space computers and message- passing computers can be constructed by connecting processors and memory units using a variety of interconnection networks.

–Static Networks (direct networks)

• Point-to-point communication links among processors

• Used to construct message passing computers –Dynamic Networks(indirect networks)

• Built using switches and communication links

• Some of the switches may be connected to switches only.

• Communication links are connected to one another dynamically by the switching elements to establish paths among processors and memory banks

• Used to construct shared-address-space computers

22/10/03 Parimala Thulasiraman 2

Network interface switch Static networks

Dynamic networks

Switching elements

22/10/03 Parimala Thulasiraman 3

Evaluating Interconnection Networks

! Diameter

–Largest distance between two switch nodes

! Bisection Width

–Minimum number of edges between switch nodes that must be removed in order to divide the network into two halves.

–Proving the bisection width of a network is difficult though it may look easy.

–Higher bisection width desirable

! Edges per switch node

–If the number of edges /switch is constant independent of the network size, then the processor organizes and scales more easily

22/10/03 Parimala Thulasiraman 4

Static Interconnection Network

! Mesh Network: Extension of linear array to 2D mesh.

Communicate With Neighboring nodes

Interior node Communicates With 4 nodes

p

(2)

22/10/03 Parimala Thulasiraman 5

Static Interconnection Network

! Torus

3D mesh (wraparound) mesh : TERA, Cray T3D, J-Machine

22/10/03 Parimala Thulasiraman 6

2D Mesh

! Assume n nodes with no wraparound connections

! Diameter:

! Bisection width:

! Constant number of edges per switch

) 1 ( 2 p

p

22/10/03 Parimala Thulasiraman 7

Binary Tree (Dynamic network)

P0 P7

2 2 1

n

d

processors n switches

=

22/10/03 Parimala Thulasiraman 8

Binary Tree

! Diameter:

! Bisection width : 1

! Edges per switch node is not constant

2 log n

(3)

22/10/03 Parimala Thulasiraman 9

Hypertree (Dynamic Network)

! Low diameter of a binary tree

! Improved bisection width

22/10/03 Parimala Thulasiraman 10

Degree 4, depth 2 Pi (4-ary hypertree)

processors

4

d

2 (2d d+1−1)

Switching nodes

22/10/03 Parimala Thulasiraman 11

Hypertree

! Diameter: 2d

! Bisection width:

2d+1

22/10/03 Parimala Thulasiraman 12

Butterfly Network (Dynamic Network)

2 (log 1) n dprocessors n n switchnodes

= +

0,0 0,1 0,2 0,3 0,4 0,5 0,6 0,7

1,0 1,1 1,2 1,3 1,4 1,5 1,6 1,7

2,0 2,1 2,2 2,3 2,4 2,5 2,6 2,7

3,0 3,1 3,2 3,3 3,4 3,5 3,6 3,7

0 1 2 3 4 5 6 7

Rank 0

Rank 1

Rank 2 Rank 3

110 010

110 100

110

111

(4)

22/10/03 Parimala Thulasiraman 13

Butterfly Network (Dynamic Network)

2 (log 1) n dprocessors n n switchnodes

= +

0,0 0,1 0,2 0,3 0,4 0,5 0,6 0,7

1,0 1,1 1,2 1,3 1,4 1,5 1,6 1,7

2,0 2,1 2,2 2,3 2,4 2,5 2,6 2,7

3,0 3,1 3,2 3,3 3,4 3,5 3,6 3,7

0 1 2 3 4 5 6 7

Rank 0

Rank 1

Rank 2 Rank 3

110 010

110 100

110 111 101

01

1

me ssage

22/10/03 Parimala Thulasiraman 14

Butterfly Network

! Diameter: log n

! Bisection width: n/2

22/10/03 Parimala Thulasiraman 15

Static Interconnection Network

! Hypercube Network(binary n cube)

–d-dimensional hypercube consists of –2 processors are connected by a direct link if

their binary labels differ in exactly 1 bit position.

p 2 =

d

0

1

00 01

10 11

2D

22/10/03 Parimala Thulasiraman 16

3D hypercube

Construct (d+1) dimensional hypercube by connecting the corresponding processors of 2 d-dimensional hypercubes

100 110

101 111

000 010

001 011

Prefixed with 0

Prefixed with 1

(5)

22/10/03 Parimala Thulasiraman 17

Properties of Hypercubes

! In a d-dimensional hypercube, each processor is directly connected to d other processors.

! A d-dimensional hypercube can be partitioned into 2 (d-1)-dimensional subcubes as follows:

–Select a bit position and group together all the processors whose labels have 0 at the selected position;all of these processors make up one partition, and the remaining partition comprise the second partition. Since processor labels have d bits, d such partitions exist.

22/10/03 Parimala Thulasiraman 18

Properties of Hypercubes

100 110

101 111

000 010

001 011

22/10/03 Parimala Thulasiraman 19

100 110

101 111

000 010

001 011

22/10/03 Parimala Thulasiraman 20

100 110

101 111

000 010

001 011

(6)

22/10/03 Parimala Thulasiraman 21

Properties of Hypercubes

! The processor labels in a d-dimensional hypercube contain d bits. Fixing any k of these bits, the processors that differ at the remaining d-k bit positions from a (d-k)- dimensional subcube composed of

processors.

22/10/03 Parimala Thulasiraman 22

K = 2, d = 4, , 4 subcubes of 4 processors each.

Subcubes formed by fixing the two most significant bits

22/10/03 Parimala Thulasiraman 23

Properties of Hypercubes

! Consider the labels s and t of 2 processors.

The total number of bit positions at which these two labels differ is called the Hamming distance between them. Eg.

Hamming distance between 011 and 101 is 2. Hamming distance between 101 and 010 is 3.

! The hamming distance between s and t is the number of bits that are 1 in the binary representation of , is the bitwise exclusive operator. st

22/10/03 Parimala Thulasiraman 24

Properties of Hypercubes

! The number of communication links in the shortest path between 2 processors is the Hamming distance between their labels. A

0101

1011 = 1110

nCUBE 2, Cosmic Cube

(7)

22/10/03 Parimala Thulasiraman 25

0101 – 0111 – 0011 -- 1011

22/10/03 Parimala Thulasiraman 26

Hypercube

! Diameter: logn (low diameter)

! Bisection width: n/2

22/10/03 Parimala Thulasiraman 27

Dynamic Interconnection Networks (Multistage Interconnection Networks)

0 1

P-1

0 1

b-1

Processors Memory

Banks Stage 1 Stage 2 Stage n

. . .

. .

22/10/03 Parimala Thulasiraman 28

Omega Network

! Log(P) stages (P=B)

! Each stage consists of an interconnection pattern that connects P inputs and P outputs

! A link exists between input I and output j if:

j =

2i , 0 <= i <= P/2-1 2i+1-P , P/2 <= i <= P-1 Left-rotation operation on the binary rep. Of i to j.

Interconnection pattern is Perfect Shuffle network

(8)

22/10/03 Parimala Thulasiraman 29

Perfect Shuffle

0 1 2 3 4 5 6 7

0 1 2 3

4 5 6

7

0 4 1 5 2 6 3 7

22/10/03 Parimala Thulasiraman 30

Perfect Shuffle

! 000 0 0

! 001 1 1

! 010 2 2

! 011 3 3

! 100 4 4

! 101 5 5

! 110 6 6

! 111 7 7

Shift every bit left one position but the leftmost bit Wraps around the rightmost position.

22/10/03 Parimala Thulasiraman 31

Omega Network

! Each stage, a perfect shuffle feeds into a set of P/2 switching elements

! Two switching configurations:

Pass through Connection Cross over connection

An omega network has P/2 x log(P) switching elements, And the cost of such a network grows as (P log P).

Less than complete cross bar switch

Θ ) ( p

2

Θ

22/10/03 Parimala Thulasiraman 32

Omega Network

000 001

010 011

100

101 110 111

000 001

010 011

100 101

110 111

(9)

22/10/03 Parimala Thulasiraman 33

Omega Network (Routing Messages)

! Let s and t be the binary representations of the source and destination of the message

! The message traverses to the first switching element. If the MSBs of s and t are the same, the message is routed in pass-through mode by the switch. If different the message is routed through in crossover mode.

! This scheme is repeated at the next switching stage using the next MSB.

! Traversing log(P) stages uses all log(P) bits in the binary representations of s and t.

22/10/03 Parimala Thulasiraman 34

Omega Network

000 001

010 011

100

101 110 111

000 001

010 011

100 101

110 111 A

B

22/10/03 Parimala Thulasiraman 35

Omega Network

! AB communication link is used by both communication paths.

! Access to a memory bank by a processor may disallow access to another memory bank by another processor – Blocking Networks

! BBN Butterfly, NYU Ultracomputer

22/10/03 Parimala Thulasiraman 36

Dynamic Interconnection Networks

! Crossbar Switching Networks

P processors connected to b memory banks A non-blocking network:

connection of a processor to a bank does not block connection of any other processor to any other memory bank.

b >= P, P has atleast one memory bank to access.

# of switching elements required:

As P is increased, complexity of switching network,

Not very scalable in cost Cray Y-MP, Fujitsu VP

500

! M0

) Θ( Pb

) ( P

2

P0

1

P

p

1

M

b

Switching element

(10)

22/10/03 Parimala Thulasiraman 37

Dynamic Interconnection Networks (Bus based Networks)

! Simple to construct

! Processors connected to memory by a bus

! Processor generates request over bus; data is fetched from memory over the bus

! Uniform access to shared memory

! Bus carries only limited amount of data

! Increase processors, large amount of time waiting for memory access when bus is in use-saturation level reaches faster

Bus Global memory

P0 Pn

22/10/03 Parimala Thulasiraman 38

Dynamic Interconnection Networks (Bus based Networks)

! Alleviate bus bottleneck—provide local cache

cache processors Global Memory

Bus

22/10/03 Parimala Thulasiraman 39

Dynamic Interconnection Networks (Bus based Networks)

! when a reference is made to a memory location, subsequent memory references are likely to be made to memory locations in the neighborhood of this location.

! Due to this locality of reference of data and instructions, once a block of data is fetched into a processor’s cache memory, subsequent references will be likely be to memory words in the cache.

! In the case of a cache miss, i.e., when the word accessed is not in the cache, a block of data containing the required word is brought from the global memory across the shared bus into the local cache.

! Cache coherence problem

! Symmetry and Multimax

22/10/03 Parimala Thulasiraman 40

Dynamic Interconnection Networks (Multistage Networks)

! Crossbar scalable in terms of performance, unscalable in terms of cost.

! Bus network is scalable in terms of cost, unscalable in terms of performance.

! Multistage -- In-between bus and crossbar

more scalable than the bus in terms of

performance and more scalable than the

crossbar in terms of cost.

(11)

22/10/03 Parimala Thulasiraman 41

Dynamic Interconnection Networks (Multistage Interconnection Networks)

Number of processors

cos t Bus

Multistage Crossbar

22/10/03 Parimala Thulasiraman 42

Dynamic Interconnection Networks (Multistage Interconnection Networks)

cros sb ar Multista

ge

Bus

Number of processors

P erfor m anc e

References

Related documents

Laila Marie HARAM, National Taekwon-Do Norway 2.. Irene GISKEGJERDE, National Taekwon-Do Norway

Garmisch-Partenkirchen, Lillehammer, Engelberg, Tauplitz/Bad Mitterndorf, Trondheim, 7. Zakopane, Val

Employees who are assigned schemes for machine distribution must complete manual scheme training, testing, and qualification before they begin keyboard training.. Employees who

- Fee di atas hanya untuk 1 (satu) kali penampilan di luar special event (tahun baru &amp; valentine) serta di luar biaya tranportasi, akomodasi, PPn, promosi dan biaya - biaya

Unlike other, small-sized local providers, the company offers the full range multi-lingual call center service support for inbound, general helpdesk services, phone-banking

This is followed by illustrations of the range of stories posted on their corporate websites by the selected UK banks, which prompts some critical reflections

If the CPAP machine helped you to sleep better, you feel less tired during the day, and your snoring and apneas have stopped, you may decide to buy the machine immediately from

Arrow indicates debt service obligation of borrower with outstanding debt; if hit with an asymmetric shock borrower is unable to service the debt due to the subsistence