SHUFFLE EXCHANGE
NETWORKS
A G A L DANUSHKA - SEU/IS/14/PS/101 - PS0722
CONTENT
• Introduction
• Perfect Shuffle Vs Inverse Perfect Shuffle
• Perfect Shuffle Interconnection Network
• Perfect Shuffle Implementation
• Examples
• Applications
• Problems
• Summary
2SHUFFLE EXCHANGE NETWORKS
INTRODUCTION
• Shuffle Exchange Network (SEN) is a unique path it has only a single
path between a particular input and output.
• These networks are frequently applied with simple modular switches,
make use of two input and two output switching elements.
• Shuffle exchange network suitable in multistage interconnection
network architecture because it can provide an alternative path for
routing procedure.
3SHUFFLE EXCHANGE NETWORKS
PERFECT SHUFFLE VS INVERSE PERFECT
SHUFFLE
perfect shuffle Inverse perfect shuffle
4SHUFFLE EXCHANGE NETWORKS
PERFECT SHUFFLE INTERCONNECTION
NETWORK
 Let N; no. of processors where; 𝑝0 , 𝑝1 , 𝑝 𝑁−1
 N is power of 2
 There are one way link between each pair of processors
𝑝𝑖 to 𝑝𝑗 ; where
2𝑖 𝑓𝑜𝑟 0 ≤ 𝑖 ≤
𝑁
2
− 1
2𝑖 + 1 − 𝑁 𝑓𝑜𝑟
𝑁
2
≤ 𝑖 ≤ 𝑁 − 1
(Basic permutation for the perfect shuffle network.)
j =
5SHUFFLE EXCHANGE NETWORKS
SHUFFLE-EXCHANGE NETWORK WITH N =
23 PROCESSORS
6SHUFFLE EXCHANGE NETWORKS
2𝑖 𝑓𝑜𝑟 0 ≤ 𝑖 ≤
𝑁
2
− 1
2𝑖 + 1 − 𝑁 𝑓𝑜𝑟
𝑁
2
≤ 𝑖 ≤ 𝑁 − 1
Solving the equation for N=8
j =
j= 2i for 0 ≤ i ≤ 3
j= 2i-7 for 4 ≤ i ≤ 7
For i=0 to 3 ; (𝑝0 , 𝑝1 , 𝑝2, 𝑝3 ;
𝑝 − 𝑝𝑟𝑜𝑐𝑒𝑠𝑠𝑜𝑟)
Links will be
• i=0  2i  0
• i=1  2i  2
• i=2  2i  4
• i=3  2i  6
𝑝0  𝑝0
𝑝1  𝑝2
𝑝2  𝑝4
𝑝3  𝑝6
For i=4 to 7 ; (𝑝4 , 𝑝5 , 𝑝6, 𝑝7 )
Links will be
• i=4  2i-7  1
• i=5  2i-7  3
• i=6  2i-7  5
• i=7  2i-7  7
𝑝4  𝑝1
𝑝5  𝑝3
𝑝6  𝑝5
𝑝7  𝑝7
Therefore the range is 0 to 7
SHUFFLE-EXCHANGE NETWORK WITH N =
23 PROCESSORS CONT..
SHUFFLE EXCHANGE NETWORKS 7
Shuffle Connections
Exchange Links
0 1 2 3 4 5 6 7
𝑝0  𝑝0
𝑝1  𝑝2 𝑝2  𝑝4
𝑝3  𝑝6
𝑝4  𝑝1 𝑝5  𝑝3 𝑝6  𝑝5
𝑝7  𝑝7
SHUFFLE EXCHANGE NETWORKS 8
 N=2 𝑘
 N = 8 ; 23
 Then k=3;
After 3 operations that
particular value will be add its
original location.…
1 2 4 3 5 6
Necklace
Short
Necklace
0 7
NECKLACES SHUFFLE-EXCHANGE NETWORK
IMPLEMENTATION OF PERFECT SHUFFLE
SHUFFLE EXCHANGE NETWORKS 9
01. Define a array of length
n and initialize processor
numbers
02. Shuffle First Half
03. Shuffle Second Half
SHUFFLE – EXCHANGE NETWORK EXAMPLES
1. Banyan Network
There are n= log2 𝑁 stages
each consisting of N/2 active
𝐸1 nodes, which successive
stages connected by passive
𝛽𝑖 permutations.
SHUFFLE EXCHANGE NETWORKS 10
SHUFFLE – EXCHANGE NETWORK EXAMPLES
2. The Omega Network
• Multistage interconnection
network.
• The outputs from each stage
are connected to the inputs of
the next stage using a perfect
shuffle connection system.
SHUFFLE EXCHANGE NETWORKS 11
SHUFFLE EXCHANGE NETWORK
APPLICATIONS
Shuffle exchange network provides suitable interconnection
patterns for implementing certain parallel algorithms such as;
SHUFFLE EXCHANGE NETWORKS 12
• Polynomial evaluation
• Fast Fourier Transform(FFT)
• Sorting
• Matrix transposition
PROBLEMS WITH SHUFFLE EXCHANGE
SHUFFLE EXCHANGE NETWORKS 13
• A large shuffle-exchange network does not decompose well
into smaller separate shuffle exchange networks.
• In a large shuffle-exchange network, a small percentage of
nodes will be hot spots
• They will encounter much heavier traffic
SUMMARY
14SHUFFLE EXCHANGE NETWORKS
Shuffle
Exchange
Processor
nodes
n=𝟐 𝒌
Switch nodes
n
Diameter
2log n – 1
Bisection
Width
(n/ log n)
Edges/nodes
2
Constant
edge length
No
THANK
YOU
15SHUFFLE EXCHANGE NETWORKS
QUESTIONS
?
16SHUFFLE EXCHANGE NETWORKS

Shuffle exchange networks

  • 1.
    SHUFFLE EXCHANGE NETWORKS A GA L DANUSHKA - SEU/IS/14/PS/101 - PS0722
  • 2.
    CONTENT • Introduction • PerfectShuffle Vs Inverse Perfect Shuffle • Perfect Shuffle Interconnection Network • Perfect Shuffle Implementation • Examples • Applications • Problems • Summary 2SHUFFLE EXCHANGE NETWORKS
  • 3.
    INTRODUCTION • Shuffle ExchangeNetwork (SEN) is a unique path it has only a single path between a particular input and output. • These networks are frequently applied with simple modular switches, make use of two input and two output switching elements. • Shuffle exchange network suitable in multistage interconnection network architecture because it can provide an alternative path for routing procedure. 3SHUFFLE EXCHANGE NETWORKS
  • 4.
    PERFECT SHUFFLE VSINVERSE PERFECT SHUFFLE perfect shuffle Inverse perfect shuffle 4SHUFFLE EXCHANGE NETWORKS
  • 5.
    PERFECT SHUFFLE INTERCONNECTION NETWORK Let N; no. of processors where; 𝑝0 , 𝑝1 , 𝑝 𝑁−1  N is power of 2  There are one way link between each pair of processors 𝑝𝑖 to 𝑝𝑗 ; where 2𝑖 𝑓𝑜𝑟 0 ≤ 𝑖 ≤ 𝑁 2 − 1 2𝑖 + 1 − 𝑁 𝑓𝑜𝑟 𝑁 2 ≤ 𝑖 ≤ 𝑁 − 1 (Basic permutation for the perfect shuffle network.) j = 5SHUFFLE EXCHANGE NETWORKS
  • 6.
    SHUFFLE-EXCHANGE NETWORK WITHN = 23 PROCESSORS 6SHUFFLE EXCHANGE NETWORKS 2𝑖 𝑓𝑜𝑟 0 ≤ 𝑖 ≤ 𝑁 2 − 1 2𝑖 + 1 − 𝑁 𝑓𝑜𝑟 𝑁 2 ≤ 𝑖 ≤ 𝑁 − 1 Solving the equation for N=8 j = j= 2i for 0 ≤ i ≤ 3 j= 2i-7 for 4 ≤ i ≤ 7 For i=0 to 3 ; (𝑝0 , 𝑝1 , 𝑝2, 𝑝3 ; 𝑝 − 𝑝𝑟𝑜𝑐𝑒𝑠𝑠𝑜𝑟) Links will be • i=0  2i  0 • i=1  2i  2 • i=2  2i  4 • i=3  2i  6 𝑝0  𝑝0 𝑝1  𝑝2 𝑝2  𝑝4 𝑝3  𝑝6 For i=4 to 7 ; (𝑝4 , 𝑝5 , 𝑝6, 𝑝7 ) Links will be • i=4  2i-7  1 • i=5  2i-7  3 • i=6  2i-7  5 • i=7  2i-7  7 𝑝4  𝑝1 𝑝5  𝑝3 𝑝6  𝑝5 𝑝7  𝑝7 Therefore the range is 0 to 7
  • 7.
    SHUFFLE-EXCHANGE NETWORK WITHN = 23 PROCESSORS CONT.. SHUFFLE EXCHANGE NETWORKS 7 Shuffle Connections Exchange Links 0 1 2 3 4 5 6 7 𝑝0  𝑝0 𝑝1  𝑝2 𝑝2  𝑝4 𝑝3  𝑝6 𝑝4  𝑝1 𝑝5  𝑝3 𝑝6  𝑝5 𝑝7  𝑝7
  • 8.
    SHUFFLE EXCHANGE NETWORKS8  N=2 𝑘  N = 8 ; 23  Then k=3; After 3 operations that particular value will be add its original location.… 1 2 4 3 5 6 Necklace Short Necklace 0 7 NECKLACES SHUFFLE-EXCHANGE NETWORK
  • 9.
    IMPLEMENTATION OF PERFECTSHUFFLE SHUFFLE EXCHANGE NETWORKS 9 01. Define a array of length n and initialize processor numbers 02. Shuffle First Half 03. Shuffle Second Half
  • 10.
    SHUFFLE – EXCHANGENETWORK EXAMPLES 1. Banyan Network There are n= log2 𝑁 stages each consisting of N/2 active 𝐸1 nodes, which successive stages connected by passive 𝛽𝑖 permutations. SHUFFLE EXCHANGE NETWORKS 10
  • 11.
    SHUFFLE – EXCHANGENETWORK EXAMPLES 2. The Omega Network • Multistage interconnection network. • The outputs from each stage are connected to the inputs of the next stage using a perfect shuffle connection system. SHUFFLE EXCHANGE NETWORKS 11
  • 12.
    SHUFFLE EXCHANGE NETWORK APPLICATIONS Shuffleexchange network provides suitable interconnection patterns for implementing certain parallel algorithms such as; SHUFFLE EXCHANGE NETWORKS 12 • Polynomial evaluation • Fast Fourier Transform(FFT) • Sorting • Matrix transposition
  • 13.
    PROBLEMS WITH SHUFFLEEXCHANGE SHUFFLE EXCHANGE NETWORKS 13 • A large shuffle-exchange network does not decompose well into smaller separate shuffle exchange networks. • In a large shuffle-exchange network, a small percentage of nodes will be hot spots • They will encounter much heavier traffic
  • 14.
    SUMMARY 14SHUFFLE EXCHANGE NETWORKS Shuffle Exchange Processor nodes n=𝟐𝒌 Switch nodes n Diameter 2log n – 1 Bisection Width (n/ log n) Edges/nodes 2 Constant edge length No
  • 15.
  • 16.

Editor's Notes

  • #4 *Multistage Interconnection Networks (MINs) are design to provide an effective communication in switching. *MINs networks consist of stages that can route the switching through the path. In this types of network the major problem occur when the switch failed to route in the stage. If these situations occur the switching need to be route to an alternative path to avoid from system failure. Shuffle-exchange networks have been widely considered as practical interconnection systems due to their size of it switching elements and uncomplicated configuration. It can helps in fault tolerance and reduce the latency. The shuffle exchange multistage interconnection network is one network in large class topologically equivalent MINs that include the omega, indirect binary, cube, baseline, and generalized cube
  • #5 Shuffle exchange network model is based on two routing functions, shuffle and exchange. A perfect shuffle cuts the deck into two halves from the center and then inter mixes them evenly. Inverse perfect shuffle does the opposite to restore the original ordering as shown in figure.
  • #6 Basic permutation for the perfect shuffle network.
  • #8 0 & 7 are connected to it self and not connected to the remaining network. So 0 is considering as the EVEN NO. PROCESSOR. Then we make above dash lines as exchange links. These links should be created with even no. processors. So 7 also would be connected with the network. Exchange link (E) between node i and node i+1 when i is even ( = node numbers differ only in LSB) • bidirectional Shuffle link (S) to node LeftCycle(i) • unidirectional
  • #9 K Shuffling operations moves are datum or data values back to the original location. As for 8; k=3; that means after the 3 operations that particular value will be add its original location. Look at particular processes These particular designs are called necklace. Remaining one is 0; which have less no. of k operations.
  • #13 FFT is an algorithm that computes the DISCRETR FOURIER TRANSFORM of a sequence, or its inverse. Converts a signal from its original domain to a representation in the frequency domain and vice versa. Sorting ; Arrange a set of keys, stored one per processor, so that the ith processor holds the ith key in ascending order
  • #14 Issues that related to the network performance ; The sizes of network using in that networks. The technique use. The network , *can cause a complexity *can increase the cost *can cause a system failure ; By using a large network size A major problem in SEN is path complexity occur when the routing procedure have been apply. A critical set of components is defined as set of switching component, each from different groups, such as that a network a network failure will occur if all the components become faulty simultaneously [3]. SEN provide more redundant paths, by adding stage to the SEN. This network allows two paths for communication between each source and destination. SENs in addition designed to provide inter process communication and developed fault tolerant architecture. SENs functionality also can reduce the cost and latency in the interconnection process
  • #15 Diameter ; The largest distance between two nodes. Bisection width ; The minimum number of edges that must be removed to divide the network into to halves (within one) Number of edges per node ; we consider this to be the best if this is constant Maximum edge length ; we consider this to be the best if this is constant (independent of number of processors, because it affects the scalability.)