distributed embed ed system

Upload: vidya-bagal

Post on 10-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 Distributed Embed Ed System

    1/27

    Distributed Embedded Systems

    Different task are physically distributed (location wise)

    Data reduction (Initial signal processing at event place)

    Reduces load on single processor

    Modularity is maintain

    Easier to debug

    Fault tolerance can be maintain

    Need for DES:

  • 8/8/2019 Distributed Embed Ed System

    2/27

    Distributed Embedded Architectures

    Interconnection between Processing Elements (PE)

    Communication between PE

    Physically separated PE have interaction

    One part of system can be used to diagnose problems in another part

    Reusability increases

  • 8/8/2019 Distributed Embed Ed System

    3/27

    Network Abstraction

    Application Layer

    Presentation Layer

    Session Layer

    Transport Layer

    Network Layer

    Data Link Layer

    Physical Layer

    OSI Model

    End user Interaction

    Data Formats

    Dialog controls

    Connections

    End to End Service

    Reliability

    Mech/Electrical spects

  • 8/8/2019 Distributed Embed Ed System

    4/27

    Hardware and Software Architecture

    P-P Communication

    Simplex

    Duplex Half/Full

    Buses

    Use for communication

    uses packets

    have some payload

    Arbitration Fixed priority

    Fair arbitration (Round Robin-No starvation)

    Network

    Dataflow

    Single stage/Multistage

  • 8/8/2019 Distributed Embed Ed System

    5/27

    Networks for Embedded Systems

    I2C Bus

    CAN Bus

    SHARC Link Ports

    Ethernet

    Myrinet

    Internet

  • 8/8/2019 Distributed Embed Ed System

    6/27

    I2C (Inter IC)Bus

    S Address WR-0

    RD - 1

    Data S Address WR-0

    RD - 1

    Data

    (Slave)

    P

    1 7 1 7 1 7 1 7 bits 1

    SDL: Serial Data Line

    SCL: Serial Clock line

  • 8/8/2019 Distributed Embed Ed System

    7/27

    Physical Layer

    Low cost and easy to implement

    Moderate speed (upto 100 kbps for Std)(400 kbps for

    extended)

    Uses 2 lines SDL Serial Data Line

    SCL Serial Clock Line

    Every node is connected to both lines (SDL, SCL)

    Multi master Bus: More than one master

    Master: Initiates data

    Slave: Only responds to request from master

    Master is responsible to generate SCL clocks(High)

    Slave can stretch low period of clock

  • 8/8/2019 Distributed Embed Ed System

    8/27

    Data Link Layer

    Every device is determine by unique addressAddr-7 bits long

    1 bit data direction 0:M---S and 1:S---M

    Data push programming style is used (polling method)

    S Addr W/R

    Data P

    1 7 1 1

    0-W, 1-R

  • 8/8/2019 Distributed Embed Ed System

    9/27

    An I2C Interface in a Microcontroller

  • 8/8/2019 Distributed Embed Ed System

    10/27

    CAN (Controller Area Network)Physical Layer

    Designed for Automotive Electronics

    Uses serial bit transmission

    Speed 1Mbps over twisted pair max of 40 meters

    Multi master Bus: supports multiple masters

    Logical 1-Recessive and 0-Dominant

    Synchronous Bus

  • 8/8/2019 Distributed Embed Ed System

    11/27

    Data Link Layer

    uses CSMA/AMP (Arbitration on message priority)

    S Arbitration Control DATA CRC ACK P

    1 12 6 0-64bits 16 2 7

    S-0

    P-0000000

    Remote Transmission Request (RTR) 0-Read, 1-Write

    Identifier Data

    length

  • 8/8/2019 Distributed Embed Ed System

    12/27

    Architecture of CAN Controller

  • 8/8/2019 Distributed Embed Ed System

    13/27

    SHARC link Ports

    Ceramic Quad Flat Pack (CQFP) System:

    Interconnection through serial ports

    Peak rates 120MFlops to 480 MFlops

  • 8/8/2019 Distributed Embed Ed System

    14/27

    SHARC Link Ports

  • 8/8/2019 Distributed Embed Ed System

    15/27

    Uses Multiprocessor Communication

    High Speed ports (120-480 Mflops)

    6 Link Ports are available

    Data Transfer are packed into 32/48 bit word

    Link Ports are in Half Duplex

    Token Passing between the processors

    Link Ports can target the DMA transfers

  • 8/8/2019 Distributed Embed Ed System

    16/27

    Ethernet

    Uses CSMA/CD

    Network is Not Synchronized

    Low Cost

    Bus with Single Path

    Uses Twisted Pair/ Co-Ax Cable

    Ethernet Organization

  • 8/8/2019 Distributed Embed Ed System

    17/27

    Ethernet CSMA/CD Algorithm

    Preamble Start

    frame

    Dest.

    Addr

    Source

    Addr

    Length Data Padding CRC

    Ethernet Packet format

  • 8/8/2019 Distributed Embed Ed System

    18/27

    Myrinet

    VeryH

    igh Speed Network (640 Mbps)Operates in Full Duplex Mode

    BW 1.28 Gbps

    Use parallel processing

    High performance network system

    Uses packet transmission

  • 8/8/2019 Distributed Embed Ed System

    19/27

    Application

    Presentation

    Session

    Transport

    Network

    Data Link

    Physical

    Application

    Presentation

    Session

    Transport

    Network

    Data Link

    Physical

    Network

    Data Link

    Physical

    Node A Node B

    Router

    Internet

  • 8/8/2019 Distributed Embed Ed System

    20/27

    Internet

    VersionHeader

    length

    Service

    typeTotal Length

    Identification Flags Fragment Offset

    Time to Live Protocol Header Check Sum

    Source Address

    Destination Address

    Option and Padding

    Payload Data

    IP Packet Structure

  • 8/8/2019 Distributed Embed Ed System

    21/27

    FTP HTTP SMTP Telnet SNMP

    TCP UDP

    IP

    Uses IP

    Uses Routers

    Uses Network Layer

    32 bits for IPV4 and 128 bits for IPV6

    Internet Service Pack

  • 8/8/2019 Distributed Embed Ed System

    22/27

    Network Based Design

    Communication Analysis

    System Performance Analysis

    Hardware platform Design, Allocation and Scheduling

  • 8/8/2019 Distributed Embed Ed System

    23/27

    Communication Analysis

    Message Delay

    Tm = Tx + Tn + Tr

    where Tx = Transmitter side overhead

    Tn = Network transmission time

    Tr = Receiver side overhead

    Total delay

    T = Td + Tm

    Where Td = Network availability delay

    Tm = message delay

    Td depends on the arbitration used (fixed priority or fair (RR))

  • 8/8/2019 Distributed Embed Ed System

    24/27

    PE 1 PE 1

    PE 1

    PE 1 PE 1

    Single-hop communication Networks

    Multi-hop communication networks

  • 8/8/2019 Distributed Embed Ed System

    25/27

    System Performance Analysis

    P1 P2

    Tp1 Tp2nTx

    PE 1

    PE 2

    P1

    P2

    P3

    PE 3

    P4

    Simple task graph

    Distributed system with multi-rate concurrency

  • 8/8/2019 Distributed Embed Ed System

    26/27

    Hardware platform Design, Allocation and Scheduling

    Hardware platform issues

    Number of PEs required Types of all PEs

    Number of networks used

    Type of networks

    Efficient system design issues

    I/O - intensive system design

    Computation - intensive design system

    Load Balancing is a good idea for the Design of DES

  • 8/8/2019 Distributed Embed Ed System

    27/27

    I/O - intensive system design

    Inventory the require I/O devices

    Determining the I/O to connect to network or not (local/remoteprocessing)

    Analyze communication time

    Allocate minimum required PE Design communication intensive processes

    Computation - intensive system design

    Start with task with shortest deadlines (Scheduling overheads)

    Analyze critical communication time

    Allocate lower priority tasks to shared PEs where possible