Presentation is loading. Please wait.

Presentation is loading. Please wait.

CS 152 L17 Buses & Networks (1)Fall 2004 © UC Regents CS152 – Computer Architecture and Engineering Lecture 17 – Buses and Networks 2004-10-26 John Lazzaro.

Similar presentations


Presentation on theme: "CS 152 L17 Buses & Networks (1)Fall 2004 © UC Regents CS152 – Computer Architecture and Engineering Lecture 17 – Buses and Networks 2004-10-26 John Lazzaro."— Presentation transcript:

1 CS 152 L17 Buses & Networks (1)Fall 2004 © UC Regents CS152 – Computer Architecture and Engineering Lecture 17 – Buses and Networks 2004-10-26 John Lazzaro (www.cs.berkeley.edu/~lazzaro) Dave Patterson (www.cs.berkeley.edu/~patterson) www-inst.eecs.berkeley.edu/~cs152/

2 CS 152 L17 Buses & Networks (2)Fall 2004 © UC Regents Review VM: Uniform memory models, protection, sharing. Synchronous DRAM: flexible bus protocol for array access Operating systems manage the page table and (often) the TLB A TLB acts as a fast cache for recent address translations.

3 CS 152 L17 Buses & Networks (3)Fall 2004 © UC Regents Outline Buses Networks Buses => Networks

4 CS 152 L17 Buses & Networks (4)Fall 2004 © UC Regents A Bus Is: shared communication link single set of wires used to connect multiple subsystems A Bus is also a fundamental tool for composing large, complex systems –systematic means of abstraction Control Datapath Memory Processor Input Output What is a bus?

5 CS 152 L17 Buses & Networks (5)Fall 2004 © UC Regents Buses: PCI

6 CS 152 L17 Buses & Networks (6)Fall 2004 © UC Regents Versatility: –New devices can be added easily –Peripherals can be moved between computer systems that use the same bus standard Low Cost: –A single set of wires is shared in multiple ways Memory Processer I/O Device Advantages of Buses

7 CS 152 L17 Buses & Networks (7)Fall 2004 © UC Regents It creates a communication bottleneck –The bandwidth of that bus can limit the maximum I/O throughput The maximum bus speed is largely limited by: –The length of the bus –The number of devices on the bus –The need to support a range of devices with: Widely varying latencies Widely varying data transfer rates Memory Processer I/O Device Disadvantage of Buses

8 CS 152 L17 Buses & Networks (8)Fall 2004 © UC Regents Control lines: –Signal requests and acknowledgments –Indicate what type of information is on the data lines Data lines carry information between the source and the destination: –Data and Addresses –Complex commands Data Lines Control Lines The General Organization of a Bus

9 CS 152 L17 Buses & Networks (9)Fall 2004 © UC Regents A bus transaction includes two parts: –Issuing the command (and address) – request –Transferring the data – action Master is the one who starts the bus transaction by: –issuing the command (and address) Slave is the one who responds to the address by: –Sending data to the master if the master ask for data –Receiving data from the master if the master wants to send data Bus Master Bus Slave Master issues command Data can go either way Master versus Slave

10 CS 152 L17 Buses & Networks (10)Fall 2004 © UC Regents Types of Buses Processor-Memory Bus (design specific) –Short and high speed –Only need to match the memory system Maximize memory-to-processor bandwidth –Connects directly to the processor –Optimized for cache block transfers I/O Bus (industry standard) –Usually is lengthy and slower –Need to match a wide range of I/O devices –Connects to the processor-memory bus or backplane bus Backplane Bus (standard or proprietary) –Backplane: an interconnection structure within the chassis –Allow processors, memory, and I/O devices to coexist –Cost advantage: one bus for all components

11 CS 152 L17 Buses & Networks (11)Fall 2004 © UC Regents Wires Physical / Mechanical Characterisics – the connectors Electrical Specification Timing and Signaling Specification Transaction Protocol What defines a bus?

12 CS 152 L17 Buses & Networks (12)Fall 2004 © UC Regents Administrivia - HW 3, Lab 4 Homework 3 due 10/26 (Tuesday), 283 Soda, in CS 152 box at 5 PM Lab 4 is next: Plan by Thur for TA

13 CS 152 L17 Buses & Networks (13)Fall 2004 © UC Regents Main components of Intel Chipset: Pentium III Northbridge: a DMA controller, connecting the processor to memory, the AGP graphic bus, and the south bridge chip Southbridge: I/O –PCI bus –Disk controllers –USB controlers –Audio –Serial I/O –Interrupt controller –Timers

14 CS 152 L17 Buses & Networks (14)Fall 2004 © UC Regents What is DMA (Direct Memory Access)? Typical I/O devices must transfer large amounts of data to memory of processor: –Disk must transfer complete block –Large packets from network –Regions of frame buffer DMA gives external device ability to access memory directly: much lower overhead than having processor request one word at a time. Issue: Cache coherence: –What if I/O devices write data that is currently in processor Cache? The processor may never see new data! –Solutions: Flush cache on every I/O operation (expensive) Have hardware invalidate cache lines (remember “Coherence” cache misses?)

15 CS 152 L17 Buses & Networks (15)Fall 2004 © UC Regents Main components of Intel Chipset: Pentium 4 System Bus (“Front Side Bus”): 64 bits x 400, 533, 800 MHz Gbit Ethernet: 125 MB/s Hub bus: 8 bits x 266 MHz 2 Serial ATA: 150 MB/s 10/100 Mbit Ethernet: 1.25 - 12.5 MB/s Parallel ATA: 100 MB/s 8 USB: 60 MB/s 1 PCI: 32b x 33 MHz

16 CS 152 L17 Buses & Networks (16)Fall 2004 © UC Regents I/O Chip Sets Customize Processor to App 875P Chip set845GL Chip set Target SegmentPerformance PCValue PC System Bus (64 bit)800/533 MHz400 MHz Memory Controller Hub (“North bridge”) Package size, pins42.5 x 42.5 mm, 100537.5 x 37.5 mm, 760 Memory SpeedDDR 400/333/266 SDRAMDDR 266/200, PC133 SDRAM Memory buses, widths2 x 721 x 64 Maximum Memory Capacity4 GB2 GB Memory Error Correction available?YesNo AGP Graphics Bus, SpeedYes, 8X or 4XNo Graphics controllerExternalInternal (Extreme Graphics) CSA Gigabit Ethernet interfaceYesNo South bridge interface speed (8 bit)266 MHz266 MHz I/O Controller Hub (“South bridge”) Package size, pins31 x 31 mm, 46031 x 31 mm, 421 PCI bus: width, speed, masters32-bit, 33 MHz, 6 masters32-bit, 33 MHz, 6 masters Ethernet MAC controller, interface100/10 Mbit100/10 Mbit USB 2.0 ports, controllers8, 46, 3 ATA 100 ports22 Serial ATA 150 controller, portsYes, 2No RAID 0 controllerYesNo AC-97 audio controller, interfaceYesYes I/O managementSMbus 2.0, GPIOSMbus 2.0, GPIO

17 CS 152 L17 Buses & Networks (17)Fall 2004 © UC Regents Networks Networks are major medium used to communicate between computers. Key characteristics of typical networks: Distance: 0.01 to 10,000 kilometers Local Area Network (LAN) <1 km vs. Wide Area Network (WAN) to 10000 km Speed: 0.001 MB/sec to 100 MB/sec Topology: Bus, ring, star, tree Shared lines: None (switched point-to- point) or shared (multidrop)

18 CS 152 L17 Buses & Networks (18)Fall 2004 © UC Regents Protocols: HW/SW Interface Internetworking: allows computers on independent and incompatible networks to communicate reliably and efficiently; –Enabling technologies: SW standards that allow reliable communications without reliable networks –Hierarchy of SW layers, giving each layer responsibility for portion of overall communications task, called protocol families or protocol suites Transmission Control Protocol/Internet Protocol (TCP/IP) –This protocol family is the basis of the Internet –IP makes best effort to deliver; TCP guarantees delivery –TCP/IP used even when communicating locally: NFS uses IP even though communicating across homogeneous LAN

19 CS 152 L17 Buses & Networks (19)Fall 2004 © UC Regents Protocol Key to protocol families is that communication occurs logically at the same level of the protocol, called peer-to-peer, but is implemented via services at the lower level Danger is each level increases latency if implemented as hierarchy (e.g., multiple check sums)

20 CS 152 L17 Buses & Networks (20)Fall 2004 © UC Regents email WWW phone... SMTP HTTP RTP... TCP UDP… IP ethernet PPP… CSMA async sonet... copper fiber radio... From “Watching the Waist of the Protocol Hourglass,” Steve Deering, IETF 51, London, August 2001 Hourglass Architecture of Internet

21 CS 152 L17 Buses & Networks (21)Fall 2004 © UC Regents Why an internet layer? –make a bigger network –global addressing –virtualize network to isolate end-to-end protocols from network details/changes Why a single internet protocol? –maximize interoperability –minimize number of service interfaces Why a narrow internet protocol? –assumes least common network functionality to maximize number of usable networks email WWW phone... SMTP HTTP RTP... TCP UDP… IP ethernet PPP… CSMA async sonet... copper fiber radio... Why the Hourglass Architecture?

22 CS 152 L17 Buses & Networks (22)Fall 2004 © UC Regents TCP/IP packet Application sends message TCP breaks into 64KB segements, adds 20B header IP adds 20B header, sends to network If Ethernet, broken into 1500B packets with headers, trailers Header, trailers have length field, destination, window number, version,... TCP data (≤ 64KB) TCP Header IP Header IP Data Ethernet

23 CS 152 L17 Buses & Networks (23)Fall 2004 © UC Regents Long Haul Networks (or WANs) 10 km to 10,000 km packet-switch: At each hop, a packet is stored (for recovery in case of failure) and then forwarded to the proper target according to the address in the packet. Destination systems reassembles packets into a message. Most networks today use packet switching, where packets are individually routed from source to destination.

24 CS 152 L17 Buses & Networks (24)Fall 2004 © UC Regents Connecting Networks Routers or Gateways: these devices connect LANs to WANs or WANs to WANs and resolve incompatible addressing. –Generally slower than bridges, they operate at the internetworking protocol (IP) leve (OSI layer 3) –Routers divide the interconnect into separate smaller subnets, which simplifies manageability and improves security Switches: connect LANs together, passing traffic from one side to another depending on the addresses in the packet –operate at the Ethernet protocol level (OSI layer 2) –usually simpler and cheaper than routers Hubs: extend multiple segments into 1 LAN. –Only transmit one message can at a time –operate at the Physical level (OSI layer 1)

25 CS 152 L17 Buses & Networks (25)Fall 2004 © UC Regents Local Area Networks: Ethernet Ethernet packets vary 64 to 1518 Bytes Ethernet link speed available at 10M, 100M, and 1000M bits/sec, with 10,000M bits/sec available soon Although 10M and 100M bits/sec can share the media with multiple devices, 1000M bits/sec and above relies on point-to-point links and switches

26 CS 152 L17 Buses & Networks (26)Fall 2004 © UC Regents Network Media Copper, 1mm think, twisted to avoid attenna effect (telephone) "Cat 5" is 4 twisted pairs in bundle Used by cable companies: high BW, good noise immunity Light: 3 parts are cable, light source, light detector. Note fiber is unidirectional; need 2 for full duplex Twisted Pair: Coaxial Cable: Copper core Insulator Braided outer conductor Plastic Covering Fiber Optics Transmitter – L.E.D – Laser Diode Receiver – Photodiode light source Silica core Total internal reflection Cladding Buffer Optical fibers offering bandwidths at 40 Gbits/sec and above

27 CS 152 L17 Buses & Networks (27)Fall 2004 © UC Regents Optical Jitter from SF to Washington DC, 2001

28 CS 152 L17 Buses & Networks (28)Fall 2004 © UC Regents Busses in Transition Ideas: transition from synchronous parallel wide bus to asynchronous narrow or serial bus –Reflection on wires, clock skew => difficult to run synchronously 16 to 64 wires in parallel at high clock rates (~ 400 MHz) –Instead, few one-way, asynchronous at high clock rates (~ 2 GHz) Parallel bus => “serial” “bus”

29 CS 152 L17 Buses & Networks (29)Fall 2004 © UC Regents Serial successors of Parallel I/O Busses PCI vs. PCI Express, ATA vs. Serial ATA PCIPCI Express ATASerial ATA Total pins12036807 Data wires32/64 (2-way) 2 x 4 (1-way) 16 (2-way) 2 x 2 (1-way) Clock (MHz)33/13362550625 Peak BW (MB/sec) 128/ 1064 300100150

30 CS 152 L17 Buses & Networks (30)Fall 2004 © UC Regents ATA cables Serial ATA, rounded parallel ATA & ribbon parallel ATA cables 40 inches max vs. 18 inch Serial ATA cables are thin

31 CS 152 L17 Buses & Networks (31)Fall 2004 © UC Regents Summary Buses are an important technique for building large-scale systems –Their speed is critically dependent on factors such as length, number of devices, etc. –Critically limited by capacitance Direct Memory Access (dma) allows fast, burst transfer into processor’s memory: –Processor’s memory acts like a slave –Probably requires some form of cache-coherence so that DMA’ed memory can be invalidated from cache. Networks and switches popular for LAN, WAN Networks and switches starting to replace buses on desktop, even inside chips


Download ppt "CS 152 L17 Buses & Networks (1)Fall 2004 © UC Regents CS152 – Computer Architecture and Engineering Lecture 17 – Buses and Networks 2004-10-26 John Lazzaro."

Similar presentations


Ads by Google