1 l14 guilin wang school of computer science the university of birmingham [adapted from ata kaban]...
TRANSCRIPT
![Page 1: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/1.jpg)
1
L14
Guilin Wang
School of Computer Science
The University of Birmingham
[adapted from Ata Kaban]
Memories, I/O devices and Networks
![Page 2: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/2.jpg)
2
Topics for This Lecture
• Internal (Primary/Main) Memories– Main memory, cache
• External (Secondary) Memories– disks, CD-ROMs,…
• Input/Output Devices– terminals, mice, printers, ...
• Computer Networks– LANs, WANs, MANs, WLANs
![Page 3: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/3.jpg)
3
CommunicationNetwork
Typical Computing Environment
A number of computers interconnected by a computer network, communicating with file servers, shared databases, printers, etc.
![Page 4: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/4.jpg)
4
Memory Hierarchy
• Memory is used to store data and programs
• Memory is organized into a hierarchy: • Internal memory
- registers in CPU (closest to the processor)
- cache (faster than main memory)
- main memory (usually RAM, not ROM)External memory
- magnetic disk (direct access) - optical disk, such as CD-ROM, CD-RW, DVD, … - magnetic tape
http://www.maximumpc.com/files/u69/Memory.jpg
![Page 5: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/5.jpg)
5
Memory Hierarchy
• d High speed & cost, small size
Low speed & cost, large size
![Page 6: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/6.jpg)
6
Memory
• The basic unit of memory is the binary digit, a bit. • Memories consist of a number of cells (or locations)• Each cell stores k bits (a word) • Each cell has its address, by which programs can refer to it. • Adjacent cells have consecutive addresses. • Some recent computers (e.g. IBM PC) use 8-bit cells. • A cell is the smallest addressable unit, though data can be
transferred in much larger units (blocks of words).
http://www.treehugger.com/files/2007/10/home_energy_usa.php
![Page 7: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/7.jpg)
7
Primary Memory
Example:
3 Ways of organising 96 bit memory
• N cells• Addresses
0…N-1
![Page 8: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/8.jpg)
8
Error-correcting Codes
• To avoid possible errors in memories, error-detecting or error-correcting codes are used.
(a) Encoding of 1100
(b) Even parity added
(c) Error in AC
![Page 9: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/9.jpg)
9
Cache Memory
• fast memory• more expensive• usually small
Stores most heavily used memory words. Logically, between CPU and main memory. First look in the cache, then main memory.
RegistersRegisters
![Page 10: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/10.jpg)
10
Magnetic Disks
http://www.ptdd.com/datarecovery/hard-drive.htm
![Page 11: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/11.jpg)
11
Magnetic Disks
• A disk consists of a few aluminum platters.• Each platter rotates under a head; magnetic coating reacts.• Bits stored in tracks (concentric circles), split into sectors.• Disks can be hard or flexible (floppy disk, diskette).• SCSI (scuzzy) disks have high transfer rates (5~320
MB/sec), though IDE disks are also popular.
![Page 12: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/12.jpg)
12
Magnetic Disks
Cylinder: The set of tracks at a given radial position.
A disk with four platters
![Page 13: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/13.jpg)
13
Optical disks
• CD-ROM (Compact Disk - Read Only Memory)• CD-Rs (Compact Disk - Recordables)• DVD (Digital Video/Versatile Disk); higher capacity.
Higher capacity than magnetic disks. High power infrared laser burns holes in master. Copy made with bumps (pits) where the laser holes were.
![Page 14: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/14.jpg)
14
A computer with I/O devices
• A single bus (often there are two or more).• A bus arbiter, to resolve conflicts over simultaneous
access.• A controller for each device.• Various I/O devices (keyboard/mouse, monitor, printer,
modem, camera, mike, CD, DVD, etc).
![Page 15: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/15.jpg)
15
Computer Networks
• Computer network: many connected computers for exchanging information.
• Essence: packet-switching• Topology architecture:
http://en.wikipedia.org/wiki/File:NetworkTopologies.png
![Page 16: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/16.jpg)
16
Internet
WiFi
computer
RouterLaptop RouterRouter
WiFi
Computer Networks
AP
Router
AP
• Network Protocols: rules to guarantee that packets transmission can be conducted properly.
• Combining networks: connect via repeater, bridge, switch and router.
• Routing information
![Page 17: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/17.jpg)
17
Types of Computer Networks
• LANs (Local Area Networks)– technology suitable for small area, usually
wire/fibre
• WANs (Wide Area Networks)– large distances, inter-city/country/continental– the Internet
• MANs (Metropolitan Area Networks)– intra-city, cable based, multimedia
• Wireless networks– WLANs, WPANs
![Page 18: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/18.jpg)
18
LANs
• Local Area Networks– within an institution, home, etc
• High bandwith(total amount of data per unit of time)
• Low latency(time taken for the first bit to reach destination)
• Technology– predominantly Ethernet, now 100~1000Mbps
![Page 19: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/19.jpg)
19
WANs
• Low bandwith, high latency• Satellite/wire/cable • Routers introduce delays
MANs• Wire/cable• Range of technologies (ATM, Ethernet)
![Page 20: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/20.jpg)
20
The Internet & WWW
• The Internet – large, heterogeneous and open-ended WAN– connects home users and businesses
• World-wide Web: resource sharing over the Internet
• Based on technologies:– HTML (HyperText Markup Language)– URL (Uniform Resource Locator)– client-server architecture
![Page 21: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/21.jpg)
21
Internet
Home intranetWAP gateway
Host siteLaptop
Mobile
PrinterCamera
Host intranetWireless LAN
phone
The future is mobile...
![Page 22: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/22.jpg)
22
The future is home intranet...
• Wireless LANs (WLANs)– connectivity for portable devices (laptops,
PDAs, mobile phones, video/dig. cameras, …)
• Home intranet– devices embedded in home appliances (hi-fi,
washing machines, …)– universal ‘remote control’ + communication
![Page 23: 1 L14 Guilin Wang School of Computer Science The University of Birmingham [adapted from Ata Kaban] Memories, I/O devices and Networks](https://reader036.vdocuments.net/reader036/viewer/2022062511/5517a4835503460e6e8b5eb2/html5/thumbnails/23.jpg)
23
Summary
• Conventional I/O devices– memory and external storage– increasing variety of I/O devices
(multimedia - sound, video, etc)• Networks for sharing and communication• Current & future developments
– increasing of personal & mobile devices– growth of home intranets