cs111 introduction to computation
DESCRIPTION
Navpreet Singh. CS111 INTRODUCTION TO COMPUTATION. Computer Centre Indian Institute of Technology Kanpur Kanpur INDIA (Ph : 2597371, Email : [email protected]). About Myself. About Myself. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/1.jpg)
CS111 INTRODUCTION TO
COMPUTATION
Navpreet Singh
Computer CentreIndian Institute of Technology Kanpur
Kanpur INDIA
(Ph : 2597371, Email : [email protected])
![Page 2: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/2.jpg)
About Myself
About Myself
I am Principal Computer Engineer at IIT Kanpur and I manage the Campus Network and Internet Services of IITK.
IIT Kanpur has one of the largest networks in the country.
IITK Campus Network now has more than 12000 nodes providing connectivity to more than 5000 users in Academic Departments, Student Hostels and Residences.
IITK has 100 Mbps Internet Connectivity.
All application servers (Mail, DNS, Proxy Caching, Web etc.) are maintained in-house.
B.Tech (1990) and M.Tech (1996) from IIT Kanpur
Working in IIT Kanpur for more than 16 years
![Page 3: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/3.jpg)
Course Content
Course Content
The course is divided into two parts
Introduction to Computer Hardware & Software, Operating System, Computer Networks and Internet.
Programming Techniques using C/Java/Python
![Page 4: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/4.jpg)
Lecture Topics
Course Content
There will be five Lectures.
1. Basic components of a Computer System: CPU; Memory; Disk Storage; Input/Output units; function of each component.
2. Hardware and Software; Systems Software and Applications Software; Client Server Architecture; Desktops, Works Stations, Servers & Clusters; Storage and Backup.
3. Operating System; Features of a widely used operating environment such as MS WINDOWS, UNIX or LINUX; comparison of operating environments; Introduction to UNIX/LINUX.
4. Introduction to Computer Networking.
5. Architecture of Internet; How the Web works; Network Security.
![Page 5: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/5.jpg)
Lab Topics
Course Content
There will be three Lab sessions.
1. Working in Windows Environment:
2. Working in Linux Environment
3. Network and Internet
![Page 6: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/6.jpg)
Term Paper Topics
Course Content
The topics of the Term Paper can be anything related to Computers Systems and Software which excites you. Some example topics could be
1. Grid Computing
2. Microprocessor Architecture
3. Comparison between Microsoft PC and Macintosh
4. Storage Technologies
5. Processor Families
6. Embedded Systems
The Term Paper has to be done in groups of two. The presentations (PPT) will be of 15 – 20 minutes duration. These presentations will be done during two Lab session slots.
![Page 7: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/7.jpg)
Grading Guidelines
Grading
One Exam: 20%
Lab Assignment: 10%
Term Paper: 20%
![Page 8: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/8.jpg)
References
Course References
Online on the Web
The Linux Documentation Project (LDP), http://www.tldp.org/
Mirror: http://www.iitk.ac.in/LDP
Red Hat Linux, O'Reilly
The course slides will be available at http://home.iitk.ac.in/~navi/iiserbhopalcourse
![Page 9: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/9.jpg)
Computing Infrastructure Components
Components
ServersClientsLANInternet ConnectivitySoftwareStorageBackup Security
Computation
DataManagement
Network
Integration is the Key !
![Page 10: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/10.jpg)
Today’s Computer
Computer
![Page 11: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/11.jpg)
Computer Model
Computer
Input: keyboard, mouse, scanner, punch cardsProcessing: CPU executes the computer programOutput: monitor, printer, fax machineStorage: hard drive, optical media, diskettes,
magnetic tape
![Page 12: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/12.jpg)
Computer Components
Components
![Page 13: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/13.jpg)
Computer Components
Components
CPUMother BoardMemoryHard DiskDisplayKeyboardMousePower SupplyNetwork Interface
![Page 14: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/14.jpg)
CPU
CPU
CPU – Central Processing Unit (Microprocessor) consists of three parts:
Control Unit• Execute programs/instructions: the machine language• Move data from one memory location to another• Communicate between other parts of a PC
Arithmetic Logic Unit• Arithmetic operations: add, subtract, multiply, divide• Logic operations: and, or, xor• Floating point operations: real number manipulation
Registers
• CPU speed is influenced by several factors:Clock speed: Megahertz, GigahertzWord size : 32-bit or 64-bit word sizesCache: Level 1, Level 2 cachesInstruction set size
Single Core/Multi Core
![Page 15: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/15.jpg)
Processor Architecture
CPU
![Page 16: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/16.jpg)
Multi-Core Processor Architecture
CPU
![Page 17: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/17.jpg)
CPU
CPU
Desktop Processor: Intel (Pentium) Core 2 Duo/Quad, AMD Athelon (Dual/Quad Core)
Mobile Processor: Intel (Centrino 2) Core 2 Duo, AMD Turion (Dual Core)
Server Processor: Intel Xeon Quad Core, AMD Optron Quad Core, RISC (Reduced Instruction Set Computer): IBM Power PC, SUN SPARC ..
Atom Processor
![Page 18: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/18.jpg)
MEMORY
Memory
ROM: For BIOS (Basic Input Output System)
CMOS RAM: Battery-backed memory used to store system specific parameters required by the system BIOS to boot. It also stores the system clock information.
Cache: Static RAM attached to the CPU and used for storing current data. L1, L2, L3 Cache
RAM: Dynamic RAM and used for storing Data and programs which disappear after task completed or power turned off
Size: ex. 512MB, 2 GB ..Speed: ex. 533MHz, 667 MHz ..Type: ex. DDR2/3 SDRAM (Double Data Rate Synchronous RAM) Packaging: DIMM, SIMM…
![Page 19: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/19.jpg)
HARD DISK
Hard Disk
Magnetic storage device. It stores data by magnetizing particles on a disk.
Used to store operating system, application software, utilities and data.
Metal, plastic, or glass platter(s)
2 magnetic surfaces/platter 1 or more platters per
spindle 3,600 – 15,000 rpm 1 head/platter Head(s) move in and out
![Page 20: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/20.jpg)
HOW DATA IS ORGANIZED ON DISK
Hard Disk
Tracks- Circular areas of the disk Length of a track one
circumference of disk Over 1000 on a hard disk Data first written to outer
most track Sectors-
Divides tracks sections Cylinders-
Logical groupings of the same track on each disk surface in a disk unit
Clusters- Groups of sectors used by
operating system 64 sectors in one cluster
Data stored in blocks (pages) of .5 to 8 KB
![Page 21: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/21.jpg)
HARD DISK
Hard Disk
IDE: Obsolete, also called PATA (Parallel Advanced Technology Attachment ), I/O Rate: 16 MB/s originally later 33, 66, 100 and 133 MB/s ,
SATA (Serial ATA): Used in Desktops/Laptops, I/O Rate: 1.5/3 Gbps, 5400/7200 RPM
SCSI (Small Computer System Interface ): Used in Servers, 10/15K RPM, I/O Rate: 160/320 MB/s
SAS (Serial Attached SCSI ): Used in Servers, 10/15K RPM, I/O Rate: 3 Gbps
FC (Fiber Channel): I/O Rate 4 Gbps, Expensive and used in
Storage iSCSI: I/O Rate 4 Gbps, Expensive and used in Storage
Solid State Drive: non-volatile flash memory
![Page 22: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/22.jpg)
HARD DISK
Hard Disk
Low-level format- organizes both sides of each platter into tracks and sectors to define where items will be stored on the disk.
Partitioning: divide hard disk into separate areas called partitions; each partition functions as if it were a separate hard disk drive.
High-level format: defines the file allocation table (FAT) for each partition, which is a table of information used to locate files on the disk.
![Page 23: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/23.jpg)
MOTHER BOARD
Mother Board
Holds CPU, memory, PCI bays, etc
![Page 24: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/24.jpg)
CD/DVD Drive
CD/DVD
CD (Compact Disk) Capacity is 700 to 800 MBOptical storage device. Data is read from CD by a laser.Stores data as light and dark spots on the disk surface. They have an unlimited life-span.RO & RW CDsI/O Rate is Nx where 1x is 150KB/s, Read & Write speeds are not same, upto 52x speeds available
DVD (Digital Video Disk)4.7 GB RO & RW DVDsI/O Rate is Nx where 1x is 1.35MB/s, Read & Write speeds are not same, upto 20x speeds available
Blu RayUpto 50 GBUser Blue Laser
![Page 25: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/25.jpg)
Adaptors (Expansion Cards)
Adapters
Use PCI Bus - Peripheral Components Interconnect (32 /64bit, Data Transfer Rate: 133 MB/s)
Mini PCI – used in laptops, 32 Bit, 33 MHz
PCI Express – Replacing PCI, 32/64 Bit, Data Transfer Rate: 8 GB/s
Adapters (Often Integrated on Motherboard)Video
Sound
Network Interface Card (NIC)
Modem
TV Tuner
![Page 26: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/26.jpg)
Power Supply
Power Supply
SMPS (Switched Mode Power Supply)AC mains input is converted to DC voltage which feeds the Motherboard, drives and other devices.
ATX (Advanced Technology Extended) Generally 90 - 250 watts
![Page 27: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/27.jpg)
DISPAY
Display
CRT ( Cathode Ray Tube)Electron Gun & Florescent Screen
Single Gun for Monochrome and 3 Guns for Colour Screen
LCD (Liquid Crystal Display)About blocking light when not needed
TFT LCD (Thin Film Transistor LCD)
19” in Desktop and 15” in Laptops
Power ConsumptionCRT – 110 watt
LCD – 30-40 watt
Colour Depth: 65,000 colours, 24 million colours
Resolution: 1024x768, 1280x1024, 1600x1200
![Page 28: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/28.jpg)
KEYBOARD
Keyboard
101-key Enhanced keyboard
104-key Windows keyboard, 3 more keys.
Press the Key - Detect the position on the key matrix (16 bytes)
![Page 29: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/29.jpg)
MOUSE
Mouse
MechanicalUse two rollers (one vertical and one horizontal) to track motion
Rolled by the Track ball
OpticalUse a tiny camera to tracking the motion
LED (red light beamer)
IntelliMouseExtra wheel
![Page 30: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/30.jpg)
Network Interface
NIC
10/100/1000 Integrated Network Interface802.11 a/b/g/n Wireless Interface in Laptops
![Page 31: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/31.jpg)
I/O Ports
I/O Ports
Parallel port Parallel because it can move a whole byte at a time
Mainly used for connection to a printer
Serial port (Com port)One bit at a time -- Uses thin cable
Universal serial bus (USB) replaces those4 wires (2 for power & 2 for communication)
Upto 60 MB/s
USB Pen Drives, Printers, External Disks, Drives etc.
![Page 32: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/32.jpg)
Printers
Printers
LaserJet (Mono & Colour)
Inkjet
Dot MatrixLine
![Page 33: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/33.jpg)
OS & Application Software
OS & Application Software
ApplicationSoftware
Hardware
OperatingSystem
Driver Driver
![Page 34: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/34.jpg)
Software Component
Software Component
Applications
Operating System– API: application program interface– File management– I/O– Kernel
• Memory management• Resource scheduling• Program communication• Security
– Network Module
![Page 35: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/35.jpg)
What is an Operating System
Operating System
Operating System handlesMemory Addressing & Management
Interrupt & Exception Handling
Process & Task Management
File System
Timing
Process Scheduling & Synchronization
Examples of Operating SystemsSingle-user, Single-task: PalmOS
Single-user, Multi-task: MS Windows and MacOS
Multi-user, Multi-task: UNIX, Windows Server 2003/2008
![Page 36: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/36.jpg)
Application Software
Application Software
Application Software performs a task for the user
Word – letters, memos
Internet Explorer - Browser
Outlook – Mail Client
![Page 37: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/37.jpg)
OS & Application Software
OS & Software
DesktopOS: Windows (Vista/XP), Linux, Dual Boot Applications: MS Office, CAD Package, Compilers …
Application ServersOS: Windows (2000, 2003, 2008 Server), Linux, UNIX (HPUX, Solaris, AIX, IRIX etc.) Applications: NAG, Matlab, AutoCAD, Ideas, Oracle ..
Internet ServersOS: Windows, LinuxMail: Send mail/Postfix on Linux or Exchange on WindowsDNS: Windows or Linux DNS ServerWeb: Apache on Linux or IIS on WindowsProxy: Squid on Linux or ISA on WindowsAuthentication: LDAP on Linux or Active Directories on Windows
![Page 38: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/38.jpg)
Computers: Clients and ServersIn a client/server network arrangement, network services are located in a dedicated computer whose only function is to respond to the requests of clients.
The server contains the file, print, application, security, and other services in a central computer that is continuously available to respond to client requests.
Clients and Servers
![Page 39: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/39.jpg)
Servers
Servers
Desktop Server
Dual Processor (Dual/Quad Core) Server
Quad Processor (Dual/Quad Core) or higher SMP Server
Parallel Cluster using Dual/Quad Processor (Dual/Quad Core) servers clustered upto several Hundred Processors
Processor: Core 2 Duo/Athlon (Desktop), 64 Bit Intel Xeon (Quad Core), 64 Bit AMD Optron (Quad Core), Intel 64 Bit Itanium, RISC
OS: Linux, UNIX, Windows
RAM: 4 GB or Higher
Disk: Multiple 300 GB SAS
![Page 40: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/40.jpg)
Servers (contd.)
Servers
Rack & Blade Servers
![Page 41: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/41.jpg)
Server Costs (Budgetry)
Servers
Desktop Server: Rs. 40,000 – 50,000/-
Rack Servers: Rs. 2,00,000 – 10,00,000
Blade Servers: Rs, 3,00,000 for Chassis and Rs. 1,50,000/- for Blades
Cluster: Rs. 20,00,000 for 8 Quad Processor (Quad Core) Node Cluster
SMP: Rs. 40,00,000 for 8 Quad Processor (Quad Core) SMP
![Page 42: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/42.jpg)
Workstations
Workstations
Application Specific Low-End ServerDual/Quad Processor (Dual/Quad Core)
Processor: 64 Bit Intel Xeon, 64 Bit AMD Optron, Intel 64 Bit Itanium, RISC OS: Linux, UNIX, WindowsRAM: 8 GB or Higher
Disk: Multiple 300 GB SAS
![Page 43: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/43.jpg)
Clients
Clients
Desktop LaptopsHand Helds: PDA
Processor: Core 2 Duo, AthlonOS: Windows, Linux, Dual BootRAM: 2 GBDisk: 250 GB SATA
![Page 44: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/44.jpg)
Storage
Storage
DAS (Direct Attached Storage)
NAS (Network Attached Storage)
SAN (Storage Area Network)Storage can be few GBs to
several TBs
Disk TypesSATAUltra SCSISASFC Disk
Network Network Attached Attached StorageStorage
Direct Direct AttachedAttached
Storage Storage Area Area
NetworkNetwork
![Page 45: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/45.jpg)
Backup
Backup
Single DAT Tape Drive (Internal/External)
80/160 GB Tapes
Native data transfer rate of up to 24.65 GB/hr
SDLT Tape Drive (Internal/External)
Single/ Multiple Drives and Slots
300/600 GB Tapes
Native data transfer rate of up to 259 GB/hr
LTO-4 Tape Drive (Internal/External)
Single/ Multiple Drives and Slots
800/1600 GB Tapes
Native data transfer rate of up to 432 GB/hr
![Page 46: CS111 INTRODUCTION TO COMPUTATION](https://reader035.vdocuments.us/reader035/viewer/2022062422/56813fc3550346895daaa1b2/html5/thumbnails/46.jpg)
Data Centre Management
Data Centre Management
Infrastructure:Split/Precision Air ConditioningUPS, Generator, Network, Raised Floor, False Ceiling, Glass Partition Building Management System (Fire Alarms, Physical Security)
Tier 1: Very BasicTier 2: Proper Infrastructure but not enough RedundancyTier 3: N + 1 RedundancyTier 4: 1+ 1 Redundancy