operating systems network, communication, osi

36
Lecture 11 Operating Systems Network, Communication, OSI Lecturer: Sumaira Hussain S.M.I University

Upload: fintine

Post on 13-Apr-2017

345 views

Category:

Education


4 download

TRANSCRIPT

Page 1: Operating Systems Network, Communication, OSI

Lecture 11Operating Systems

Network, Communication, OSI

Lecturer: Sumaira Hussain

S.M.I University

Page 2: Operating Systems Network, Communication, OSI

Operating System

An operating system (OS) is software that manages computer hardware and software resources and provides common services for computer programs

Page 3: Operating Systems Network, Communication, OSI

Core Tasks of an OSProcessor managementMemory managementDevice managementStorage managementApplication InterfaceUser Interface

Page 4: Operating Systems Network, Communication, OSI
Page 5: Operating Systems Network, Communication, OSI

Processor ManagementThe CPU executes each process a bit at a time. The CPU's clock times the execution of a process, and when a time limit is reached, then the clock signals the CPU that it is time to switch to another process.

The CPU executes just one process, and the processes that are ready and waiting for their turn at execution are kept in a queue (a waiting line, like at the post office) in primary storage.

Page 6: Operating Systems Network, Communication, OSI

Memory ManagementStraight forward for a single-user, single taskingEach app must have enough private memory in which to executeApp can neither run into the private memory space of another app, nor be run into by another appDifferent types of memory (e.g. main, cache) in the system must be used properly, so that each app can run most effectively

Page 7: Operating Systems Network, Communication, OSI

Storage ManagementThe OS manages storage through one of its sub-modules, the File ManagerA file system is a collection of directories, subdirectories, and files organized in a logical order.File manager maintains an index of the filenames & where they are located on the disk.File manager make it easy to find the required file in a logical and timely fashion.

Page 8: Operating Systems Network, Communication, OSI

Device ManagementApplications talk to devices through the OS and OS talks to and manages devicesthrough Device DriversExample: When we print to a laser printer, we do not need to know its details. All wedo is to tell the printer device driver about what needs to be printed and it takes care of the details

Page 9: Operating Systems Network, Communication, OSI

Application InterfaceApp developers do not need to know much about the hardware, while they are developing their appThe OS provides all apps with a straight-forward and consistent interface to the HWExample: An app uses the OS to store data on the disk drive. For that, the app does not need to know about the exact physical characteristics of that drive; it just tells the OS to do that through the app interface, and the OS takes cares of all the details of the task

Page 10: Operating Systems Network, Communication, OSI

User InterfaceUsers communicate with the computer using a consistent user interface provided by the OSThis UI can be a command-line interface in which a user types in the commands.Example:

copy a:/file1.html c:/file1.htmlOr, it can be a graphical UI, where Windows, Icons, Menus, and a Pointing device (such as a mouse) is used to receive and display information. Example:With the help of the mouse, drag file1.html from drive a to drive c

Page 11: Operating Systems Network, Communication, OSI

Types of OS

Real-Time Operating System (RTOS)Single-User, Single TaskSingle-User, Multi-TaskingMulti-User

Page 12: Operating Systems Network, Communication, OSI

Real Time Operating SystemsUsed to run computers embedded in machinery, robots, scientific instruments and industrial systemsTypically, it has little user interaction capability, and no end-user utilities, since the system will be a "sealed box" when delivered for useExamples: Wind River, QNX, Real-time Linux, Real-time Windows NTAn important part of an RTOS is managing the resources of the computer so that a particular operation executes in precisely the same amount of time every time it occursIn a complex machine, having a part move more quickly just because system resources are available may be just as catastrophic as having it not move at all because the systemwas busy

Page 13: Operating Systems Network, Communication, OSI

Single-User, Single TaskOS are designed to manage the computer so that one user can effectively do one thing at a timeThe Palm OS used in many palmtop computers (PDA’s) is an example of a single-user, single-task OS

Single-User, Multi-TaskingMost popular OSUsed by most all PC’s and LaptopsExamples: Windows, Mac OS, LinuxLets a single user interact with several programs, simultaneously

Page 14: Operating Systems Network, Communication, OSI

Multi-UserA multi-user OS allows many users to take advantage of the computer's resources, simultaneouslyThe OS must make sure that the requirements of the various users are balanced, and that the programs they are using each have sufficient and separate resources so that a problem with one user doesn't affect any of the other usersExamples: Linux, Unix, VMS and mainframe OS, such as MVS

Page 15: Operating Systems Network, Communication, OSI

Computer Communications Process in which two or more computers or devices transfer data, instructions, and information

Page 16: Operating Systems Network, Communication, OSI

Uses of Computing Communication

Internet E-Mail Instant Messaging FTP Newsgroups Chat Rooms Web Folders Fax Machine or Computer Fax/Modem Video Conferencing Internet telephony (enables you to talk to other people over the

Internet Sometimes called Voice over IP ) Internet printing (allows you to print to network printer from

anywhere in the world )

Page 17: Operating Systems Network, Communication, OSI

Computer NetworkMultiple computers that are connected together to share information and other resources

Page 18: Operating Systems Network, Communication, OSI

Components of Computer Networks

1. Computers2. Network Interface Cards (NIC)3. Hub4. Cables5. Routers6. Protocol

Page 19: Operating Systems Network, Communication, OSI

Network Interface Card

I/O device that plugs into the computerEnables it to communicate over a network

Page 20: Operating Systems Network, Communication, OSI

Hub

The network traffic controllerDevice that provides central point for cables in network Components of Conventional Computer Networks

Page 21: Operating Systems Network, Communication, OSI

CablesAre either electrical or opticalNot required at all for wireless networksWire, cable, and other tangible materials used to send communications signals

Page 22: Operating Systems Network, Communication, OSI

RoutersConnects computers and transmits data to correct destination on network Routers forward data on Internet using fastest available path

Page 23: Operating Systems Network, Communication, OSI

Protocol

Rules governing communications over the networkExample:OSI Model

Page 24: Operating Systems Network, Communication, OSI

OSI Model1)Application Layer

2)Presentation Layer

3)Session Layer

4)Transport Layer

5)Network Layer

6)Data Link Layer

7)Physical Layer

Page 25: Operating Systems Network, Communication, OSI
Page 26: Operating Systems Network, Communication, OSI
Page 27: Operating Systems Network, Communication, OSI

Type of Computer Networksaccording to the distance between nodes

LAN

MAN

WAN

Page 28: Operating Systems Network, Communication, OSI

LANNetwork in limited geographical area such as home or office building

Page 29: Operating Systems Network, Communication, OSI

MANconnects LANs in city or town

Page 30: Operating Systems Network, Communication, OSI

WANNetwork that covers large geographic area using many types of media

Internet is world’s largest WAN

Page 31: Operating Systems Network, Communication, OSI

Network Topologies

Client-ServerPoint to PointStarBusRing

Page 32: Operating Systems Network, Communication, OSI

Client-ServerOne or more computers act as server and other computers, or clients, access server

Page 33: Operating Systems Network, Communication, OSI

Point to PointSimple network that connects fewer than 10 computers

Each computer, or peer, has equal capabilities

Page 34: Operating Systems Network, Communication, OSI

BusAll computers and devices connect to central cable, or bus No server is requiredOne computer sends data to another by broadcasting the address of the receiver and the data over the busAll the computers in the network look at the address simultaneously, and the intended recipient accepts the data

Page 35: Operating Systems Network, Communication, OSI

RingCable forms closed ring, or loop, with all computers and devices arranged along ring

Data travels from device to device around entire ring, in one direction

No server is required

Page 36: Operating Systems Network, Communication, OSI

StarAll devices connect to a central device, called hub

All data transferred from one computer to another passes through hub

This topology allows multiple messages to be sent simultaneously