SlideShare a Scribd company logo
1 of 19
Download to read offline
Message Passing
 Architecture
Introduction

• The architecture is used to communicate
  data among a set of processors without the
  need for a global memory.
• Each PE has its own local memory and
  communicates with other PEs using
  message.
Message Passing Systems
104     MESSAGE PASSING ARCHITECTURE



            P1        M1           P2          M2             Pn        Mn


                      Link 1                Link 2
                                                                   Link n

                                  Interconnection Network


                           Figure 5.1   Message passing systems.


networks have received considerable attention over the years. As shown in Chapter 2,
two important factors must be considered in designing message passing interconnec-
tion networks: link bandwidth and the network latency. The link bandwidth is defined
as the number of bits that can be transmitted per unit of time (bits/s). Network latency
is defined as the time to complete a message transfer through the network.
Message Passing Systems
104     MESSAGE PASSING ARCHITECTURE



            P1        M1           P2          M2             Pn        Mn


                      Link 1                Link 2
                                                                   Link n

                                  Interconnection Network


                           Figure 5.1   Message passing systems.


networks have received considerable attention over the years. As shown in Chapter 2,
two important factors must be considered in designing message passing interconnec-
                                                               external channel
tion networks: link bandwidth and the network latency. The link bandwidth is defined
as the number of bits that can be transmitted per unit of time (bits/s). Network latency
is defined as the time to complete a message transfer through the network.
MP Network
•   Normally, a static-type network

    •   hypercubes

    •   nearest-neighbor 2D & 3D mesh

•   Two important factors must be considered:

    •   link bandwidth - the number of bits that can
        be transmitted per unit of times (bits/s)

    •   network latency - the time to complete a
        message transfer through the network
Executing Program
•   The program is divided into concurrent
    processes; each is executed on a separate
    processor.

•   If the no. of processes is larger than the
    number of processors, then more than one
    process will have to be executed on a
    processor in a time-shared fashion.
              104     MESSAGE PASSING ARCHITECTURE



                          P1        M1           P2          M2             Pn        Mn


                                    Link 1                Link 2
                                                                                 Link n

                                                Interconnection Network


                                         Figure 5.1   Message passing systems.


              networks have received considerable attention over the years. As shown in Chapter 2,
              two important factors must be considered in designing message passing interconnec-
              tion networks: link bandwidth and the network latency. The link bandwidth is defined
              as the number of bits that can be transmitted per unit of time (bits/s). Network latency
Process Communication

• Processes running on a given processor
  use what is called internal channels to
  exchange messages among themselves.
• Processes running on different processors
  use the external channels to exchange
  messages.
Data Exchanged
• Data exchanged among processors cannot
  be shared; it is rather copied (using send/
  receive messages).
• An important advantage of this form of
  data exchange is the elimination of the
  need for synchronization constructs, such
  as semaphores, which results in
  performance improvement.
More advantages

• A message passing scheme offers flexibility
  in accommodating a large number of
  processors in addition to being readily
  scalable.
• A given node can execute more than one
  process, each at a given time.
5.2    ROUTING IN MESSAGE PASSING NETWORKS    105



                                     Outside World




        P1

                     m1
        P2

                                                                       m4
       P3

                                 m2                  m3

        P4

                Figure 5.2   An example of a message passing system.



Three types of granularity can be distinguished. These are:

  1. Coarse granularity: Each process holds a large number of sequential instruc-
Process Granularity

• It’s a parameter which describes the size of
  a process in a message passing system.

                        computation time
 Process Granularity =
                       communication time
Granularity Types
•   There are 3 types of granularity:

    •   Coarse - each process holds a large number
        of sequential instructions and takes a
        substantial amount of time to execute.

    •   Medium - a middle ground where
        communication overhead is reduced

    •   Fine - each process contains a few sequential
        instructions

•   Use mostly medium or coarse granularity
Routing in MP Networks

• Involves the identification of a set of
  permissible paths that may be used by a
  message to reach its destination, and a
  function (η) that selects one path from the
  set of permissible paths.
Routing Techniques
•   Adaptive

    •   the path taken by the message depends on
        network conditions for a given source and
        destination pair

•   Deterministic (oblivious)

    •   determines the path using only the source
        and destination regardless of the network
        conditions - simple but bandwidth inefficient
Routing for Broadcasting
     & Multicasting
• Communication operations: unicast and
  collective
 • Unicast - communicate to only a single
    destination
 • Collective - several routing operations
    are defined, broadcast & multicast are the
    most widely used.
Broadcast                     Multicast

one-to-all operation        one-to-many operation

distribute data during
                              uses in large-scale
  computation of a
                             multiprocessors, inc.
 distributed memory
                           parallel search algorithm
        program

    routing algorithms must be deadlock-free

      little time and short path is desirable
of these resources in a strict monotonic order. This restricted way for using network
resources prevents the occurrence of circular wait, and hence prevents the occur-
rence of deadlock. The channel dependency graph (CDG) is a technique used
to develop a deadlock-free routing algorithm. A CDG is a directed graph
D ¼ G(C, E ), where the vertex set C consists of all the unidirectional channels in
the network and the set of edges E includes all the pairs of connected channels,


                                                                             000

        110             111                    001                     010                             100

                                        011                 101 110      011             101     110


 100             101
                                  111    010         100         111         100           111     001
         010            011                                                  001
                                  110                      101                     011                 010



  000             001


               Figure 5.3     Hypercube broadcast tree-based communication.
Routing Potential Problems
•   Deadlock

    •   When two messages each hold the resources
        required by the other in order to move, both
        message will be blocked.

•   Livelock

    •   A situation in which a message keeps going around
        the network and never reaches its destination.

•   Starvation

    •   A node is said to suffer from starvation if it has a
        message to inject into the network but is never
        allowed to do so.
Message Passing vs
      Shared Memory
•   Shared memory systems may be easier to
    program, but the difficult to scale up to a large
    number of processors.

•   If scalability to larger and larger systems was to
    continue, systems had to use message passing
    techniques.

•   However, a number of problems associated with
    message passing systems: communication
    overhead and difficulty of programming.

More Related Content

What's hot

Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternativesPooja Dixit
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSKathirvel Ayyaswamy
 
Routing mee
Routing meeRouting mee
Routing meesara_3
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure callsAshish Kumar
 
Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architectureMaulik Togadiya
 
Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection NetworkHeman Pathak
 
system interconnect architectures in ACA
system interconnect architectures in ACAsystem interconnect architectures in ACA
system interconnect architectures in ACAPankaj Kumar Jain
 
Classification of routing protocols
Classification of routing protocolsClassification of routing protocols
Classification of routing protocolsMenaga Selvaraj
 
Clustering: Large Databases in data mining
Clustering: Large Databases in data miningClustering: Large Databases in data mining
Clustering: Large Databases in data miningZHAO Sam
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software conceptsPrajakta Rane
 
Comparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOSComparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOSEr. Shiva K. Shrestha
 
Client Centric Consistency Model
Client Centric Consistency ModelClient Centric Consistency Model
Client Centric Consistency ModelRajat Kumar
 
Distributed Systems Real Life Applications
Distributed Systems Real Life ApplicationsDistributed Systems Real Life Applications
Distributed Systems Real Life ApplicationsAman Srivastava
 
multiprocessors and multicomputers
 multiprocessors and multicomputers multiprocessors and multicomputers
multiprocessors and multicomputersPankaj Kumar Jain
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)vani261
 
Structure of shared memory space
Structure of shared memory spaceStructure of shared memory space
Structure of shared memory spaceCoder Tech
 

What's hot (20)

Distributed design alternatives
Distributed design alternativesDistributed design alternatives
Distributed design alternatives
 
CS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMSCS9222 ADVANCED OPERATING SYSTEMS
CS9222 ADVANCED OPERATING SYSTEMS
 
Routing mee
Routing meeRouting mee
Routing mee
 
remote procedure calls
  remote procedure calls  remote procedure calls
remote procedure calls
 
Distributed shred memory architecture
Distributed shred memory architectureDistributed shred memory architecture
Distributed shred memory architecture
 
Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection Network
 
system interconnect architectures in ACA
system interconnect architectures in ACAsystem interconnect architectures in ACA
system interconnect architectures in ACA
 
Classification of routing protocols
Classification of routing protocolsClassification of routing protocols
Classification of routing protocols
 
Clustering: Large Databases in data mining
Clustering: Large Databases in data miningClustering: Large Databases in data mining
Clustering: Large Databases in data mining
 
2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts2. Distributed Systems Hardware & Software concepts
2. Distributed Systems Hardware & Software concepts
 
Ddbms1
Ddbms1Ddbms1
Ddbms1
 
Comparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOSComparison of Amoeba, Mach & Chorus: DOS
Comparison of Amoeba, Mach & Chorus: DOS
 
Client Centric Consistency Model
Client Centric Consistency ModelClient Centric Consistency Model
Client Centric Consistency Model
 
Distributed DBMS - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data ControlDistributed DBMS - Unit 5 - Semantic Data Control
Distributed DBMS - Unit 5 - Semantic Data Control
 
Distributed Systems Real Life Applications
Distributed Systems Real Life ApplicationsDistributed Systems Real Life Applications
Distributed Systems Real Life Applications
 
multiprocessors and multicomputers
 multiprocessors and multicomputers multiprocessors and multicomputers
multiprocessors and multicomputers
 
Cluster computing
Cluster computingCluster computing
Cluster computing
 
Multiprocessor Architecture (Advanced computer architecture)
Multiprocessor Architecture  (Advanced computer architecture)Multiprocessor Architecture  (Advanced computer architecture)
Multiprocessor Architecture (Advanced computer architecture)
 
Process Management-Process Migration
Process Management-Process MigrationProcess Management-Process Migration
Process Management-Process Migration
 
Structure of shared memory space
Structure of shared memory spaceStructure of shared memory space
Structure of shared memory space
 

Similar to Slide05 Message Passing Architecture

Computer networks unit i
Computer networks    unit iComputer networks    unit i
Computer networks unit iJAIGANESH SEKAR
 
OSI reference model
OSI reference modelOSI reference model
OSI reference modelshanthishyam
 
Dc lec-02 (networks)
Dc lec-02 (networks)Dc lec-02 (networks)
Dc lec-02 (networks)diaryinc
 
basics of computer network
basics of computer networkbasics of computer network
basics of computer networkProf Ansari
 
Computer Network Components
Computer Network  ComponentsComputer Network  Components
Computer Network ComponentsJyoti Akhter
 
Distributed Systems - Information Technology
Distributed Systems - Information TechnologyDistributed Systems - Information Technology
Distributed Systems - Information TechnologySagar Mehta
 
Chapter 1 Introduction to computer networks ppt by DMB
Chapter 1 Introduction to computer networks ppt by DMBChapter 1 Introduction to computer networks ppt by DMB
Chapter 1 Introduction to computer networks ppt by DMBdhanashrisabale1
 
Transfer reliability and congestion control strategies in opportunistic netwo...
Transfer reliability and congestion control strategies in opportunistic netwo...Transfer reliability and congestion control strategies in opportunistic netwo...
Transfer reliability and congestion control strategies in opportunistic netwo...revathiyadavb
 

Similar to Slide05 Message Passing Architecture (20)

Computer networks unit i
Computer networks    unit iComputer networks    unit i
Computer networks unit i
 
OSI reference model
OSI reference modelOSI reference model
OSI reference model
 
ch01.ppt
ch01.pptch01.ppt
ch01.ppt
 
7Multiplexing.pdf
7Multiplexing.pdf7Multiplexing.pdf
7Multiplexing.pdf
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Dc lec-02 (networks)
Dc lec-02 (networks)Dc lec-02 (networks)
Dc lec-02 (networks)
 
Computer network
Computer networkComputer network
Computer network
 
Computer network
Computer networkComputer network
Computer network
 
Introduction to Computer Networks.
Introduction to Computer Networks.Introduction to Computer Networks.
Introduction to Computer Networks.
 
basics of computer network
basics of computer networkbasics of computer network
basics of computer network
 
Dos unit1
Dos unit1Dos unit1
Dos unit1
 
Computer Network Components
Computer Network  ComponentsComputer Network  Components
Computer Network Components
 
Distributed Systems - Information Technology
Distributed Systems - Information TechnologyDistributed Systems - Information Technology
Distributed Systems - Information Technology
 
Chapter4
Chapter4Chapter4
Chapter4
 
WSN Routing Protocols
WSN Routing ProtocolsWSN Routing Protocols
WSN Routing Protocols
 
Chapter 1 ppt by dmb
Chapter 1 ppt by dmbChapter 1 ppt by dmb
Chapter 1 ppt by dmb
 
Chapter 1 Introduction to computer networks ppt by DMB
Chapter 1 Introduction to computer networks ppt by DMBChapter 1 Introduction to computer networks ppt by DMB
Chapter 1 Introduction to computer networks ppt by DMB
 
Transfer reliability and congestion control strategies in opportunistic netwo...
Transfer reliability and congestion control strategies in opportunistic netwo...Transfer reliability and congestion control strategies in opportunistic netwo...
Transfer reliability and congestion control strategies in opportunistic netwo...
 
Internet
InternetInternet
Internet
 
3
33
3
 

More from อภิเษก หงษ์วิทยากร

More from อภิเษก หงษ์วิทยากร (18)

Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1
 
Slide02 digital logic operations and functions
Slide02 digital logic operations and functionsSlide02 digital logic operations and functions
Slide02 digital logic operations and functions
 
Slide01 digital fundamental
Slide01 digital fundamentalSlide01 digital fundamental
Slide01 digital fundamental
 
00 course intro
00 course intro00 course intro
00 course intro
 
08 multimedia delivering
08 multimedia delivering08 multimedia delivering
08 multimedia delivering
 
07 animation
07 animation07 animation
07 animation
 
06 vdo
06 vdo06 vdo
06 vdo
 
05 audio
05 audio05 audio
05 audio
 
04 image andgraphics
04 image andgraphics04 image andgraphics
04 image andgraphics
 
02 multimedia andinteractivity
02 multimedia andinteractivity02 multimedia andinteractivity
02 multimedia andinteractivity
 
01 fundamental of multimedia
01 fundamental of multimedia01 fundamental of multimedia
01 fundamental of multimedia
 
00 welcome slide
00 welcome slide00 welcome slide
00 welcome slide
 
03 digital mediafundamental
03 digital mediafundamental03 digital mediafundamental
03 digital mediafundamental
 
Slide06 Networked Computing
Slide06 Networked ComputingSlide06 Networked Computing
Slide06 Networked Computing
 
03 digital mediafundamental
03 digital mediafundamental03 digital mediafundamental
03 digital mediafundamental
 
03 digital media fundamental
03 digital media fundamental03 digital media fundamental
03 digital media fundamental
 
02 multimedia andinteractivity
02 multimedia andinteractivity02 multimedia andinteractivity
02 multimedia andinteractivity
 
01 fundamental of multimedia
01 fundamental of multimedia01 fundamental of multimedia
01 fundamental of multimedia
 

Recently uploaded

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 

Recently uploaded (20)

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 

Slide05 Message Passing Architecture

  • 2. Introduction • The architecture is used to communicate data among a set of processors without the need for a global memory. • Each PE has its own local memory and communicates with other PEs using message.
  • 3. Message Passing Systems 104 MESSAGE PASSING ARCHITECTURE P1 M1 P2 M2 Pn Mn Link 1 Link 2 Link n Interconnection Network Figure 5.1 Message passing systems. networks have received considerable attention over the years. As shown in Chapter 2, two important factors must be considered in designing message passing interconnec- tion networks: link bandwidth and the network latency. The link bandwidth is defined as the number of bits that can be transmitted per unit of time (bits/s). Network latency is defined as the time to complete a message transfer through the network.
  • 4. Message Passing Systems 104 MESSAGE PASSING ARCHITECTURE P1 M1 P2 M2 Pn Mn Link 1 Link 2 Link n Interconnection Network Figure 5.1 Message passing systems. networks have received considerable attention over the years. As shown in Chapter 2, two important factors must be considered in designing message passing interconnec- external channel tion networks: link bandwidth and the network latency. The link bandwidth is defined as the number of bits that can be transmitted per unit of time (bits/s). Network latency is defined as the time to complete a message transfer through the network.
  • 5. MP Network • Normally, a static-type network • hypercubes • nearest-neighbor 2D & 3D mesh • Two important factors must be considered: • link bandwidth - the number of bits that can be transmitted per unit of times (bits/s) • network latency - the time to complete a message transfer through the network
  • 6. Executing Program • The program is divided into concurrent processes; each is executed on a separate processor. • If the no. of processes is larger than the number of processors, then more than one process will have to be executed on a processor in a time-shared fashion. 104 MESSAGE PASSING ARCHITECTURE P1 M1 P2 M2 Pn Mn Link 1 Link 2 Link n Interconnection Network Figure 5.1 Message passing systems. networks have received considerable attention over the years. As shown in Chapter 2, two important factors must be considered in designing message passing interconnec- tion networks: link bandwidth and the network latency. The link bandwidth is defined as the number of bits that can be transmitted per unit of time (bits/s). Network latency
  • 7. Process Communication • Processes running on a given processor use what is called internal channels to exchange messages among themselves. • Processes running on different processors use the external channels to exchange messages.
  • 8. Data Exchanged • Data exchanged among processors cannot be shared; it is rather copied (using send/ receive messages). • An important advantage of this form of data exchange is the elimination of the need for synchronization constructs, such as semaphores, which results in performance improvement.
  • 9. More advantages • A message passing scheme offers flexibility in accommodating a large number of processors in addition to being readily scalable. • A given node can execute more than one process, each at a given time.
  • 10. 5.2 ROUTING IN MESSAGE PASSING NETWORKS 105 Outside World P1 m1 P2 m4 P3 m2 m3 P4 Figure 5.2 An example of a message passing system. Three types of granularity can be distinguished. These are: 1. Coarse granularity: Each process holds a large number of sequential instruc-
  • 11. Process Granularity • It’s a parameter which describes the size of a process in a message passing system. computation time Process Granularity = communication time
  • 12. Granularity Types • There are 3 types of granularity: • Coarse - each process holds a large number of sequential instructions and takes a substantial amount of time to execute. • Medium - a middle ground where communication overhead is reduced • Fine - each process contains a few sequential instructions • Use mostly medium or coarse granularity
  • 13. Routing in MP Networks • Involves the identification of a set of permissible paths that may be used by a message to reach its destination, and a function (η) that selects one path from the set of permissible paths.
  • 14. Routing Techniques • Adaptive • the path taken by the message depends on network conditions for a given source and destination pair • Deterministic (oblivious) • determines the path using only the source and destination regardless of the network conditions - simple but bandwidth inefficient
  • 15. Routing for Broadcasting & Multicasting • Communication operations: unicast and collective • Unicast - communicate to only a single destination • Collective - several routing operations are defined, broadcast & multicast are the most widely used.
  • 16. Broadcast Multicast one-to-all operation one-to-many operation distribute data during uses in large-scale computation of a multiprocessors, inc. distributed memory parallel search algorithm program routing algorithms must be deadlock-free little time and short path is desirable
  • 17. of these resources in a strict monotonic order. This restricted way for using network resources prevents the occurrence of circular wait, and hence prevents the occur- rence of deadlock. The channel dependency graph (CDG) is a technique used to develop a deadlock-free routing algorithm. A CDG is a directed graph D ¼ G(C, E ), where the vertex set C consists of all the unidirectional channels in the network and the set of edges E includes all the pairs of connected channels, 000 110 111 001 010 100 011 101 110 011 101 110 100 101 111 010 100 111 100 111 001 010 011 001 110 101 011 010 000 001 Figure 5.3 Hypercube broadcast tree-based communication.
  • 18. Routing Potential Problems • Deadlock • When two messages each hold the resources required by the other in order to move, both message will be blocked. • Livelock • A situation in which a message keeps going around the network and never reaches its destination. • Starvation • A node is said to suffer from starvation if it has a message to inject into the network but is never allowed to do so.
  • 19. Message Passing vs Shared Memory • Shared memory systems may be easier to program, but the difficult to scale up to a large number of processors. • If scalability to larger and larger systems was to continue, systems had to use message passing techniques. • However, a number of problems associated with message passing systems: communication overhead and difficulty of programming.