analysis and design of a half hypercube interconnection network topology

30
1 Analysis and Design of a Half Hypercube Interconnection Network Shahid Rajaee Teacher Training University Faculty of Computer Engineering PRESENTED BY: Amir Masoud Sefidian

Upload: amirmasoud8

Post on 11-Feb-2017

299 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Analysis and design of a half hypercube interconnection network topology

1

Analysis and Design of a Half Hypercube Interconnection Network

Shahid Rajaee Teacher Training UniversityFaculty of Computer Engineering

PRESENTED BY:

Amir Masoud Sefidian

Page 2: Analysis and design of a half hypercube interconnection network topology

2

Today’s Lecture Content

β€’ Introduction

β€’ Definition and Properties of the Half Hypercube

β€’ Connectivity of Half Hypercube

β€’ Routing Algorithm and Diameter of Half Hypercube

β€’ Conclusion

Page 3: Analysis and design of a half hypercube interconnection network topology

3

Today’s Lecture Content

β€’ Introductionβ€’ Definition and Properties of the Half Hypercube

β€’ Connectivity of Half Hypercube

β€’ Routing Algorithm and Diameter of Half Hypercube

β€’ Conclusion

Page 4: Analysis and design of a half hypercube interconnection network topology

4

Introductionβ€’ Need to high-performance parallel processing is increasing because modern

application require real-time processing.β€’ Parallel processing system can connect thousands of processors with via an

interconnection network.β€’ The most common parameters for evaluating the performance of interconnection

networks: β€’ Connectivityβ€’ Diameter (relevant to message transmission time) β€’ Degree (relevant to hardware cost)

β€’ Typical parameter to evaluate interconnection network performance:β€’ Network cost = degree * diameter

β€’ A parallel computer design increase hardware costs of an interconnection network, because of the increased number of processor.

β€’ Lower degree can reduce hardware costs but Delay increase and throughput are degraded.

Page 5: Analysis and design of a half hypercube interconnection network topology

5

Introductionβ€’ Hypercube is a typical interconnection network topology:

β€’ Is node- and edge-symmetric with a simple routing algorithm.β€’ Simple recursive structure. β€’ Easily embedded in various types of existing interconnection networks (flexibility).

β€’ Hypercube drawback:β€’ Increasing network costs associated with the increased degree when the number of nodes increases.

β€’ Proposed variations of the hypercube to improve this shortcoming :β€’ Multiple Reduced Hypercube β€’ Twisted cube β€’ Folded hypercube β€’ Connected hypercube network β€’ Extended hypercube

β€’ New variation of the hypercube proposed in 2013 by Jong-Seok Kim, Mi-Hye Kim and Hyeong-Ok Lee:

β€’ n-dimensional Half Hypercube 𝑯𝑯𝒏

β€’ reduce the degree by approximately halfβ€’ has the same number of nodes as a hypercube.

Page 6: Analysis and design of a half hypercube interconnection network topology

6

Today’s Lecture Content

β€’ Introduction

β€’ Definition and Properties of the Half Hypercubeβ€’ Connectivity of Half Hypercube

β€’ Routing Algorithm and Diameter of Half Hypercube

β€’ Conclusion

Page 7: Analysis and design of a half hypercube interconnection network topology

7

Definition and Properties of the Half Hypercubeβ€’ Denote an n-dimensional half hypercube as 𝐻𝐻𝑛 and represent its node with n binary bits:β€’ Node S in 𝐻𝐻𝑛 denoted: π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2…𝑠𝑖 …𝑠3𝑠2𝑠1 (𝑛 β‰₯ 3).β€’ There are two types of edge:

β€’ h-edge : connects node 𝑆(= π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2…𝑠𝑖 …𝑠3𝑠2𝑠1) to a node that has the complement in exactly one h position of the bit string of node S(1 ≀ β„Ž ≀ 𝑛/2 )

β€’ sw(swap)-edge: connects node 𝑆(= π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2β€¦π‘ β„Žπ‘ β„Žβˆ’1…𝑠3𝑠2𝑠1) to a node in which the 𝑛/2 leftmost bits of the bit string of S and the 𝑛/2 bits on the right-side of S starting from the 𝑛/2 bit are swapped(h= 𝑛/2 ).

Page 8: Analysis and design of a half hypercube interconnection network topology

8

sw-edge Examplewhen n is even:

Connect to

(π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1) and (𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1𝑠 𝑛/2 βˆ’2… 𝑠3𝑠2𝑠1) of S are exchanged.

When n is odd:

Connect to

(π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1) and (𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1𝑠 𝑛/2 βˆ’2… 𝑠3𝑠2) of S are exchanged.

𝑆(= π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1 𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1𝑠 𝑛/2 βˆ’2… 𝑠3𝑠2𝑠1)

𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1𝑠 𝑛/2 βˆ’2… 𝑠3𝑠2𝑠1 π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1

𝑆(= π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1 𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1𝑠 𝑛/2 βˆ’2… 𝑠3𝑠2𝑠1)

𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1𝑠 𝑛/2 βˆ’2… 𝑠3𝑠2 π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1 𝑠1

if two parts of βŒŠπ‘›/2βŒ‹ bits to exchange in the bit string of node S are the same, the node S connects to one’s complement of the binary number of node S.

Page 9: Analysis and design of a half hypercube interconnection network topology

9

Example:

Page 10: Analysis and design of a half hypercube interconnection network topology

10

Example:

Page 11: Analysis and design of a half hypercube interconnection network topology

11

Example (Wrong Figure!!):

5-dimensional half hypercube (HH5)

Page 12: Analysis and design of a half hypercube interconnection network topology

12

Degree of 𝐻𝐻𝑛:𝑛

2+ 1

number of h-edges (1 ≀ β„Ž ≀𝑛

2)

sw-edge

Page 13: Analysis and design of a half hypercube interconnection network topology

13

Lemma: An 𝐻𝐻𝑛 graph is expanded with recursive structures.

Proof An 𝐻𝐻𝑛 graph is constructed with the nodes of two (n-1)-dimensional π»π»π‘›βˆ’1

graphs by adding one sw-edge or h-edge.The address of each node in an 𝐻𝐻𝑗 graph is represented as j bit strings with binary

numbers {0, 1}(binary number of length j).

𝐻𝐻𝑗0 j +1 position of the address of a node 0

𝐻𝐻𝑗1 j +1 position of the address of a node is 1

Case 1 When expanded from an odd-dimension (j) to an even-dimension (k=j+1)

Construct an π»π»π‘˜ graph by connecting a node of 𝐻𝐻𝑗0 and a node of 𝐻𝐻𝑗

1 in 𝐻𝐻𝑗.

The sw-edges in 𝐻𝐻𝑗 will be replaced with new sw-edges in the expanded π»π»π‘˜ graph.

A node of 𝐻𝐻𝑗0 the address bit of which is binary 1 at the n/2 position, will be

connected to a node of 𝐻𝐻𝑗1 through an sw-edge in π»π»π‘˜. When the bit is binary 0,

the node will be connected to a node of 𝐻𝐻𝑗0.

Page 14: Analysis and design of a half hypercube interconnection network topology

14

Case 2: When expanded from an even-dimension (k) to an add-dimension (l=k+1):

Construct an 𝐻𝐻𝑙 graph by connecting a node of π»π»π‘˜0 and a node of π»π»π‘˜

1 in π»π»π‘˜.The sw-edges in π»π»π‘˜ will be replaced with new sw-edges in the expanded 𝐻𝐻𝑙

graph.

A node of π»π»π‘˜0 the address bit of which is binary 1 at the 𝑛/2 position, will be

connected to a node of π»π»π‘˜1 through an sw-edge in 𝐻𝐻𝑙. When the bit is binary 0,

the node will be connected to a node of π»π»π‘˜0.

Page 15: Analysis and design of a half hypercube interconnection network topology

15

Lemma : There exist 2 𝑛/2 𝑛/2 -dimensional hypercube structures in an 𝐻𝐻𝑛.

Proof: node 𝑆(= π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2β€¦π‘ β„Ž …𝑠3𝑠2𝑠1)

β€’ The h-edge of 𝐻𝐻𝑛 is equal to the edge of a hypercube.β€’ The structure of a partial graph constructed from 𝐻𝐻𝑛 via the h-edge is the same as

the structure of a 𝑛/2 -dimensional hypercube.β€’ Assume that a partial graph that has the same structure as an 𝑛/2 -dimensional

hypercube is 𝐻𝐻𝑛𝑛/2

in 𝐻𝐻𝑛 and refer it as a cluster. β€’ The address of each node in a cluster is π‘ β„Ž …𝑠3𝑠2𝑠1.

β€’ 𝐻𝐻𝑛 consist 2 𝑛/2 of clusters: β€’ because the number of bit strings that can be configured by the bit string

π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2β€¦π‘ β„Ž is 2 𝑛/2 .

Page 16: Analysis and design of a half hypercube interconnection network topology

16

Today’s Lecture Content

β€’ Introduction

β€’ Definition and Properties of the Half Hypercube

β€’Connectivity of Half Hypercubeβ€’ Routing Algorithm and Diameter of Half Hypercube

β€’ Conclusion

Page 17: Analysis and design of a half hypercube interconnection network topology

17

Connectivity of 𝐻𝐻𝑛

β€’ Node (edge) connectivity is the minimum number of nodes (edges) that must be removed to disconnect an interconnection network to two or more parts without duplicate nodes.

β€’ if degree = node connectivity said that the interconnection network has maximum fault-tolerance.

β€’ Characteristic notation of interconnection network G:

β€’ Node connectivity: π‘˜(𝐺)

β€’ Edge connectivity: πœ†(𝐺)

β€’ Degree of interconnection network: d(𝐺)

It has been proven that π‘˜(𝐺) ≀ πœ† 𝐺 ≀ d(𝐺)

Page 18: Analysis and design of a half hypercube interconnection network topology

18

Theorem 1 The connectivity of 𝐻𝐻𝑛

β€’ π‘˜(𝐻𝐻𝑛) = πœ† 𝐻𝐻𝑛 = d(𝐻𝐻𝑛)β€’ Proof:β€’ Let’s prove that 𝐻𝐻𝑛 remains connected even when n nodes are deleted from 𝐻𝐻𝑛.β€’ Characteristic notation of interconnection network G:

β€’ Node connectivity: π‘˜(𝐺)

β€’ Edge connectivity: πœ†(𝐺)

β€’ Degree of interconnection network: d(𝐺)

It has been proven that π‘˜(𝐺) ≀ πœ† 𝐺 ≀ d(𝐺)

From Lemma 2: 𝐻𝐻𝑛 is composed of clusters, all clusters in 𝐻𝐻𝑛 are hypercubes and two arbitrary nodes are connected via an sw-edge.

Assuming that X is a partial graph of 𝐻𝐻𝑛 where |X| = n, it will be proven that π‘˜ 𝐻𝐻𝑛 β‰₯𝑛

2+ 1 by

demonstrating that 𝐻𝐻𝑛 remains connected even after the removal of X:Dividing two cases in accordance with the location of X. We denote the 𝐻𝐻𝑛 in which X is deleted as 𝐻𝐻𝑛 βˆ’ 𝑋 and a node of HHn as S.

Page 19: Analysis and design of a half hypercube interconnection network topology

19

Case 1: When X is located in one cluster of 𝐻𝐻𝑛

β€’ Degree of each node in a cluster is 𝑛/2 .

If 𝑛/2 nodes adjacent to an arbitrary node S of the cluster are the same as the nodes to be deleted from X, 𝐻𝐻𝑛 is divided into two components:

β€’ an interconnection network 𝐻𝐻𝑛 βˆ’ 𝑋. β€’ a node S.

β€’ all nodes in a cluster are linked to other clusters in 𝐻𝐻𝑛 via sw-edges.

β€’ 2 𝑛/2 -1 clusters in which X is not located are also connected to other clusters via sw-edges.

β€’ Therefore, 𝐻𝐻𝑛 βˆ’ 𝑋 is always connected when X is included in only a cluster of 𝐻𝐻𝑛.

Page 20: Analysis and design of a half hypercube interconnection network topology

20

Case 1: When X is located in one cluster of 𝐻𝐻𝑛

Page 21: Analysis and design of a half hypercube interconnection network topology

21

Case 2: When X is located across two or more clusters of 𝐻𝐻𝑛

As the nodes of X to be deleted are included across two or more clusters of 𝐻𝐻𝑛 ,the number of nodes to be deleted from a cluster is at most 𝑛/2 βˆ’ 1 .

Even if 𝑛/2 βˆ’ 1 nodes adjacent to an arbitrary node S of a cluster are deleted, thenodes of the cluster in which node S is included remain connected because thedegree of a node in a cluster is 𝑛/2 .Although the other node to be removed is located in a different cluster, and not in the cluster that includes node S, it is still clear that 𝐻𝐻𝑛 remains connected.

I π‘˜ 𝐻𝐻𝑛 β‰₯ 𝑛 β‰₯𝑛

2+ 1 because 𝐻𝐻𝑛 always remains connected after removing X from any clusters in

𝐻𝐻𝑛 and

(𝐼𝐼) π‘˜(𝐻𝐻𝑛) ≀𝑛

2+ 1 because the degree of 𝐻𝐻𝑛 is

𝑛

2+ 1 .

I , (𝐼𝐼) β‡’ connectivity of 𝐻𝐻𝑛 , π‘˜(𝐻𝐻𝑛) =𝑛

2+ 1 .

Page 22: Analysis and design of a half hypercube interconnection network topology

22

Today’s Lecture Content

β€’ Introduction

β€’ Definition and Properties of the Half Hypercube

β€’ Connectivity of Half Hypercube

β€’ Routing Algorithm and Diameter of Half Hypercube

β€’ Conclusion

Page 23: Analysis and design of a half hypercube interconnection network topology

23

Routing Algorithm and Diameter of 𝐻𝐻𝑛

β€’ This section analyzes a simple routing algorithm and diameter of 𝐻𝐻𝑛.

β€’ Assume :β€’ Initial node is 𝑆 = π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2…𝑠𝑛/2…𝑠3𝑠2𝑠1β€’ Destination node is T = t𝑛 tπ‘›βˆ’1tπ‘›βˆ’2…t𝑛/2… t3t2t1

β€’ Simple routing algorithm can be considered in two cases depending on whether n is an even or an odd number.

Page 24: Analysis and design of a half hypercube interconnection network topology

24

Case 1 When n is an even number:

Denote S with two 𝑛/2 bit strings A(= π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠𝑛/2) and B(= 𝑠𝑛2βˆ’1…𝑠3𝑠2𝑠1) => S=AB

Denote T with two 𝑛/2 bit strings C(= t𝑛tπ‘›βˆ’1tπ‘›βˆ’2… t𝑛/2) and D(= t𝑛2βˆ’1…t3t2t1) => T=CD

S=(0010) => A=00,B=10T=(1101) => C=11,D=01

Corollary 1: When n is even, length of the shortest path is

2 βˆ— 𝑛/2 + 1 = 𝑛 + 1by the above algorithm.

Page 25: Analysis and design of a half hypercube interconnection network topology

25

Case 2 When n is an odd number:

initial node is 𝑆 = π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1 𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1… 𝑠3𝑠2𝑠1destination node is T = t𝑛tπ‘›βˆ’1tπ‘›βˆ’2…𝑑 𝑛/2 +1 𝑑 𝑛/2 𝑑 𝑛/2 βˆ’1… 𝑑3𝑑2𝑑1

Denote S with two 𝑛/2 bit strings: A(= π‘ π‘›π‘ π‘›βˆ’1π‘ π‘›βˆ’2… 𝑠 𝑛/2 +1) and B(𝑠 𝑛/2 𝑠 𝑛/2 βˆ’1… 𝑠3𝑠2)

=> S = AB𝑠1Denote T with two 𝑛/2 bit strings: C(= π‘‘π‘›π‘‘π‘›βˆ’1π‘‘π‘›βˆ’2… 𝑑 𝑛/2 +1) and D(𝑑 𝑛/2 𝑑 𝑛/2 βˆ’1… 𝑑3𝑑2)

=> T = CD𝑑1

Page 26: Analysis and design of a half hypercube interconnection network topology

26

Simple routing algorithm when n is odd:

S=(00000) => A=00,B=00T=(11111) => C=11,D=11

Corollary 2: When n is odd:

Length of the shortest path is 2 βˆ—π‘›

2+ 2

by the above algorithm.

Page 27: Analysis and design of a half hypercube interconnection network topology

27

Routing Algorithm and Diameter of 𝐻𝐻𝑛

Through the proposed simple routing algorithms, we can see an upper bound forthe diameter of 𝐻𝐻𝑛, thus proving Theorem 2:

Page 28: Analysis and design of a half hypercube interconnection network topology

28

Conclusion:β€’ A new variation of the hypercube (half hypercube interconnection network) that

β€’ reduced the degree by approximately halfβ€’ has the same number of nodes as a hypercube.

β€’ Evaluate the effectiveness of the proposed half hypercube.β€’ Analyzed its connectivity and diameter properties. β€’ Analyzed a simple routing algorithm of 𝐻𝐻𝑛 and presented an upper bound for the

diameter of 𝐻𝐻𝑛.β€’ These results demonstrate that the proposed half hypercube is an appropriate

interconnection network for implementation in a large-scale system.β€’ More works is available on:

β€’ β€œBroadcasting and Embedding Algorithms for a Half Hypercube Interconnection Network”

by: Mi-Hye Kim, Jong-Seok Kim and Hyeong-Ok Lee

Reference : http://link.springer.com/chapter/10.1007/978-94-007-6738-6_65

Page 29: Analysis and design of a half hypercube interconnection network topology
Page 30: Analysis and design of a half hypercube interconnection network topology

QUESTION??...