Chapter 4 Conventional Computer Hardware Architecture

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Computer Architecture
I/O Organization popo.
CS-334: Computer Architecture
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Chapter 8 Hardware Conventional Computer Hardware Architecture.
What's inside a router? We have yet to consider the switching function of a router - the actual transfer of datagrams from a router's incoming links to.
1 Lecture 2: Review of Computer Organization Operating System Spring 2007.
1 Interfacing Processors and Peripherals I/O Design affected by many factors (expandability, resilience) Performance: — access latency — throughput — connection.
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
ECE 526 – Network Processing Systems Design
Chapter 9 Classification And Forwarding. Outline.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
Lecture 12 Today’s topics –CPU basics Registers ALU Control Unit –The bus –Clocks –Input/output subsystem 1.
CS-334: Computer Architecture
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
Processor Structure & Operations of an Accumulator Machine
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
ECE 526 – Network Processing Systems Design Network Processor Architecture and Scalability Chapter 13,14: D. E. Comer.
1 Chapter Client-Server Interaction. 2 Functionality  Transport layer and layers below  Basic communication  Reliability  Application layer.
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Input/OUTPUT [I/O Module structure].
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
CHAPTER 3 TOP LEVEL VIEW OF COMPUTER FUNCTION AND INTERCONNECTION
Top Level View of Computer Function and Interconnection.
Chapter 1 Introduction. Objectives To explain the definition of computer architecture To discuss the history of computers To describe the von-neumann.
Interrupts By Ryan Morris. Overview ● I/O Paradigm ● Synchronization ● Polling ● Control and Status Registers ● Interrupt Driven I/O ● Importance of Interrupts.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
I/O Computer Organization II 1 Interconnecting Components Need interconnections between – CPU, memory, I/O controllers Bus: shared communication channel.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
EEE440 Computer Architecture
ECE 526 – Network Processing Systems Design Computer Architecture: traditional network processing systems implementation Chapter 4: D. E. Comer.
Input-Output Organization
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Computer Organization. This module surveys the physical resources of a computer system.  Basic components  CPU  Memory  Bus  I/O devices  CPU structure.
1 Client-Server Interaction. 2 Functionality Transport layer and layers below –Basic communication –Reliability Application layer –Abstractions Files.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
EECB 473 Data Network Architecture and Electronics Lecture 1 Conventional Computer Hardware Architecture
Dr Mohamed Menacer College of Computer Science and Engineering, Taibah University CE-321: Computer.
Lecture 1: Review of Computer Organization
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Review of Computer System Organization. Computer Startup For a computer to start running when it is first powered up, it needs to execute an initial program.
IT3002 Computer Architecture
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
Group 1 chapter 3 Alex Francisco Mario Palomino Mohammed Ur-Rehman Maria Lopez.
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Part IVI/O Systems Chapter 13: I/O Systems. I/O Hardware a typical PCI bus structure 2.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
Amdahl’s Law & I/O Control Method 1. Amdahl’s Law The overall performance of a system is a result of the interaction of all of its components. System.
CS 286 Computer Organization and Architecture
Operating Systems Chapter 5: Input/Output Management
Chapter 5 Input/Output Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
Presentation transcript:

Chapter 4 Conventional Computer Hardware Architecture

Outline Software-Based Network System Conventional Computer Hardware Bus Organization And Operations Bus Address Space Making Network I/O Fast Onboard Packet Buffering Direct Memory Access (DMA) Buffer Chaining Operation Chaining

Software-Based Network System Uses conventional hardware (e.g., PC) Software Runs the entire system Allocates memory Controls I/O devices Performs all protocol processing

Why Study Protocol Processing On Conventional Hardware? Past Employed in early IP routers Many algorithms developed / optimized for conventional hardware Present Used in low-speed network systems Easiest to create / modify Costs less than special-purpose hardware Future Processors continue to increase in speed Some conventional hardware present in all systems

Serious Question Which is growing faster? Processing power Network bandwidth Note: if network bandwidth growing faster Need special-purpose hardware Conventional hardware will become irrelevant

Growth Of Technologies

Conventional Computer Hardware Four important aspects Processor Memory I/O interfaces One or more buses

Illustration Of Conventional Computer Architecture Bus is central, shared interconnect All components contend for use

Bus Organization And Operations Parallel wires (K+N+C total) Used to pass An address of K bits A data value of N bits (width of the bus) Control information of C bits

Bus Width Wider bus Transfers more data per unit time Costs more Requires more physical space Compromise: to simulate wider bus, use hardware that multiplexes transfers

Bus Paradigm Only two basic operations Fetch Store All operations cast as forms of the above

Fetch/Store Fundamental paradigm Used throughout hardware, including network processors

Fetch Operation Place address of a device on address lines Issue fetch on control lines Wait for device that owns the address to respond If successful, extract value (response) from data lines

Store Operation Place address of a device on address lines Place value on data lines Issue store on control lines Wait for device that owns the address to respond If unsuccessful, report error

Example Of Operations Mapped Into Fetch/Store Paradigm (1/2) Imagine disk device attached to a bus Assume the hardware can perform three (nontransfer) operations: Start disk spinning Stop disk Determine current status

Example Of Operations Mapped Into Fetch/Store Paradigm (2/2) Assign the disk two contiguous bus addresses D and D+1 Arrange for store of nonzero to address D to start disk spinning Arrange for store of zero to address D to stop disk Arrange for fetch from address D+1 to return current status Note: effect of store to address D+1 can be defined as Appears to work, but has no effect Returns an error

Bus Address Space Arbitrary hardware can be attached to bus K address lines result in 2k possible bus addresses Address can refer to Memory (e.g., RAM or ROM) I/O device Arbitrary devices can be placed at arbitrary addresses Address space can contain ‘‘holes’’

Bus Address Terminology Device on bus known as memory mapped I/O Locations that correspond to nontransfer operations known as Control and Status Registers (CSRs)

Example Bus Address Space

Network I/O On Conventional Hardware Network Interface Card (NIC) Attaches between bus and network Operates like other I/O devices Handles electrical/optical details of network Handles electrical details of bus Communicates over bus with CPU or other devices

Making Network I/O Fast Key idea: migrate more functionality onto NIC Four techniques used with bus Onboard address recognition & filtering Onboard packet buffering Direct Memory Access (DMA) Operation and buffer chaining

Onboard Address Recognition And Filtering NIC given set of addresses to accept Station’s unicast address Network broadcast address Zero or more multicast addresses When packet arrives, NIC checks destination address Accept packet if address on list Discard others

Onboard Packet Buffering NIC given high-speed local memory Incoming packet placed in NIC’s memory Allows computer’s memory/bus to operate slower than network Handles small packet bursts

Direct Memory Access (DMA) CPU Allocates packet buffer in memory Passes buffer address to NIC Goes on with other computation NIC Accepts incoming packet from network Copies packet over bus to buffer in memory Informs CPU that packet has arrived

Buffer Chaining CPU NIC Advantage: a buffer can be smaller than packet Allocates multiple buffers Passes linked list to NIC NIC Receives next packet Divides into one or more buffers Advantage: a buffer can be smaller than packet

Operation Chaining CPU NIC Allocates multiple buffers Builds linked list of operations Passes list to NIC NIC Follows list and performs instructions Interrupts CPU after each operation Advantage: multiple operations proceed without CPU intervention

Illustration Of Operation Chaining Optimizes movement of data to memory

Data Flow Diagram Depicts flow of data through hardware units Used throughout the course and text

QUESTION?