You are on page 1of 95

Operating Systems and Networking concepts

O/S and N/W concepts

Vaishali Kamat

Operating System Concepts


Definition Objectives Services Evolution

O/S and N/W concepts

Vaishali Kamat

Operating System

A program that controls the execution of application programs An interface between applications and hardware The purpose of an operating system is to provide an environment in which a user can execute programs in a convenient and efficient manner.

O/S and N/W concepts

Vaishali Kamat

Layers of Computer System

O/S and N/W concepts

Vaishali Kamat

Kernel

Portion of operating system that is in main memory Contains most frequently used functions Also called the nucleus

O/S and N/W concepts

Vaishali Kamat

Operating System Objectives

Convenience

Makes the computer more convenient to use Allows computer system resources to be used in an efficient manner Permit effective development, testing, and introduction of new system functions without interfering with service
6
Vaishali Kamat

Efficiency

Ability to evolve

O/S and N/W concepts

Operating System Objectives

Accuracy

Ensures the correct operation of the computer system

O/S and N/W concepts

Vaishali Kamat

Services Provided by the Operating System

Program development

Editors and debuggers

Program execution Access to I/O devices Controlled access to files System access

O/S and N/W concepts

Vaishali Kamat

Services Provided by the Operating System

Error detection and response

Internal and external hardware errors


Memory error Device failure

Software errors

Arithmetic overflow Access forbidden memory locations

O/S and N/W concepts

Vaishali Kamat

Services Provided by the Operating System

Accounting

Collect usage statistics Monitor performance Used to anticipate future enhancements Used for billing purposes

O/S and N/W concepts

10

Vaishali Kamat

Services Provided by the Operating System Responsible for managing resources Functions same way as ordinary computer software

It is program that is executed

O/S and N/W concepts

11

Vaishali Kamat

O/S and N/W concepts

12

Vaishali Kamat

Evolution of an Operating System

Hardware upgrades plus new types of hardware New services Fixes

O/S and N/W concepts

13

Vaishali Kamat

Evolution of Operating Systems

Serial Processing

No operating system Machines run from a console with display lights, toggle switches, input device, and printer Schedule time Setup included loading the compiler, source program, saving compiled program, and loading and linking

O/S and N/W concepts

14

Vaishali Kamat

Evolution of Operating Systems

Simple Batch Systems

Monitors

Software that controls the sequence of events Batch jobs together Program branches back to monitor when finished

O/S and N/W concepts

15

Vaishali Kamat

Hardware Features

Memory protection

Do not allow the memory area containing the monitor to be altered Prevents a job from monopolizing the system

Timer

O/S and N/W concepts

16

Vaishali Kamat

Hardware Features

Privileged instructions

Certain machine level instructions can only be executed by the monitor Early computer models did not have this capability

Interrupts

O/S and N/W concepts

17

Vaishali Kamat

Memory Protection

User program executes in user mode

Certain instructions may not be executed Kernel mode Privileged instructions are executed Protected areas of memory may be accessed

Monitor executes in system mode


O/S and N/W concepts

18

Vaishali Kamat

Uniprogramming

Processor must wait for I/O instruction to complete before preceding

O/S and N/W concepts

19

Vaishali Kamat

Multiprogramming

When one job needs to wait for I/O, the processor can switch to the other job

O/S and N/W concepts

20

Vaishali Kamat

Multiprogramming

O/S and N/W concepts

21

Vaishali Kamat

Time Sharing

Using multiprogramming to handle multiple interactive jobs Processors time is shared among multiple users Multiple users simultaneously access the system through terminals

O/S and N/W concepts

22

Vaishali Kamat

Major Achievements

Processes Memory Management Information protection and security Scheduling and resource management System structure

O/S and N/W concepts

23

Vaishali Kamat

Processes

A program in execution An instance of a program running on a computer The entity that can be assigned to and executed on a processor A unit of activity characterized by a single sequential thread of execution, a current state, and an associated set of system resources

O/S and N/W concepts

24

Vaishali Kamat

Process

Consists of three components


An executable program Associated data needed by the program Execution context of the program

All information the operating system needs to manage the process

O/S and N/W concepts

25

Vaishali Kamat

Memory Management

Process isolation Automatic allocation and management Support of modular programming Protection and access control Long-term storage

O/S and N/W concepts

26

Vaishali Kamat

Virtual Memory

Allows programmers to address memory from a logical point of view No gap between the execution of successive processes while one process was written out to secondary store and the successor process was read in

O/S and N/W concepts

27

Vaishali Kamat

Virtual Memory and File System


Implements long-term store Information stored in named objects called files

O/S and N/W concepts

28

Vaishali Kamat

Paging

Allows process to be comprised of a number of fixed-size blocks, called pages Virtual address is a page number and an offset within the page Each page may be located any where in main memory Real address or physical address in main memory

O/S and N/W concepts

29

Vaishali Kamat

Virtual Memory Addressing

O/S and N/W concepts

30

Vaishali Kamat

Information Protection and Security

Availability

Concerned with protecting the system against interruption Assuring that users cannot read data for which access is unauthorized

Confidentiality

O/S and N/W concepts

31

Vaishali Kamat

Information Protection and Security

Data integrity

Protection of data from unauthorized modification Concerned with the proper verification of the identity of users and the validity of messages or data

Authenticity

O/S and N/W concepts

32

Vaishali Kamat

Scheduling and Resource Management

Fairness

Give equal and fair access to resources


Discriminate among different classes of jobs Maximize throughput, minimize response time, and accommodate as many uses as possible
33
Vaishali Kamat

Differential responsiveness

Efficiency

O/S and N/W concepts

Key Elements of Operating System

O/S and N/W concepts

34

Vaishali Kamat

System Structure

View the system as a series of levels Each level performs a related subset of functions Each level relies on the next lower level to perform more primitive functions This decomposes a problem into a number of more manageable subproblems

O/S and N/W concepts

35

Vaishali Kamat

Process Hardware Levels

Level 1

Electronic circuits Objects are registers, memory cells, and logic gates Operations are clearing a register or reading a memory location Processors instruction set Operations such as add, subtract, load, and store

Level 2

O/S and N/W concepts

36

Vaishali Kamat

Process Hardware Levels

Level 3

Adds the concept of a procedure or subroutine, plus call/return operations Interrupts

Level 4

O/S and N/W concepts

37

Vaishali Kamat

Concepts with Multiprogramming

Level 5

Process as a program in execution Suspend and resume processes Secondary storage devices Transfer of blocks of data Creates logical address space for processes Organizes virtual address space into blocks
38
Vaishali Kamat

Level 6

Level 7

O/S and N/W concepts

Deal with External Objects

Level 8

Communication of information and messages between processes Supports long-term storage of named files Provides access to external devices using standardized interfaces

Level 9

Level 10

O/S and N/W concepts

39

Vaishali Kamat

Deal with External Objects

Level 11

Provides an interface to the operating system for the user

O/S and N/W concepts

40

Vaishali Kamat

Modern Operating Systems

Microkernel architecture

Assigns only a few essential functions to the kernel


Address spaces Interprocess communication (IPC) Basic scheduling

O/S and N/W concepts

41

Vaishali Kamat

Modern Operating Systems

Multithreading

Process is divided into threads that can run concurrently

Thread

Dispatchable unit of work executes sequentially and is interruptable

Process is a collection of one or more threads

O/S and N/W concepts

42

Vaishali Kamat

Modern Operating Systems

Symmetric multiprocessing (SMP)


There are multiple processors These processors share same main memory and I/O facilities All processors can perform the same functions

O/S and N/W concepts

43

Vaishali Kamat

Modern Operating Systems

Distributed operating systems

Provides the illusion of a single main memory space and single secondary memory space

O/S and N/W concepts

44

Vaishali Kamat

Modern Operating Systems

Object-oriented design

Used for adding modular extensions to a small kernel Enables programmers to customize an operating system without disrupting system integrity

O/S and N/W concepts

45

Vaishali Kamat

Windows Architecture

Modular structure for flexibility Executes on a variety of hardware platforms Supports application written for other operating system

O/S and N/W concepts

46

Vaishali Kamat

Threads and SMP

Operating system routines can run on any available processor Different routines can execute simultaneously on different processors Multiple threads of execution within a single process may execute on different processors simultaneously Server processes may use multiple threads Share data and resources between process

O/S and N/W concepts

47

Vaishali Kamat

UNIX

Hardware is surrounded by the operating system software Operating system is called the system kernel Comes with a number of user services and interfaces

Shell Components of the C compiler

O/S and N/W concepts

48

Vaishali Kamat

UNIX

O/S and N/W concepts

49

Vaishali Kamat

Modern UNIX Systems


System V Release 4 (SVR4) Solaris 9 4.4BSD Linux

O/S and N/W concepts

50

Vaishali Kamat

Types of Operating System


Real Time Multi-user / Single-User Multi-tasking / Single-tasking Distributed Embedded system

O/S and N/W concepts

51

Vaishali Kamat

Tasks of Operating System

Process Management Memory Management System Calls User Interface command-line/GUI Buffering and spooling Interrupt Handling File Management Secondary Storage Management Scheduling Computer Security Computer Networking
52
Vaishali Kamat

O/S and N/W concepts

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
53
Vaishali Kamat

O/S and N/W concepts

Networking Definition
Two or more computers are connected To Communicate with each other To Share resources and files

O/S and N/W concepts

54

Vaishali Kamat

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
55
Vaishali Kamat

O/S and N/W concepts

Parts of a Network

Servers Host Computer Clients Channels Network Circuit Interface Devices Modems / Network Interface Cards Operating System

O/S and N/W concepts

56

Vaishali Kamat

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
57
Vaishali Kamat

O/S and N/W concepts

Networking Channels

Classification dimensions:

Transmission Medium wired line, wireless

Transmission rate or bandwidth measured as bps


Transmission directional capability simplex, half-duplex, full-duplex Signal Type analog, digital
58
Vaishali Kamat

O/S and N/W concepts

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
59
Vaishali Kamat

O/S and N/W concepts

LANs, MANs, WANs, Backbone


LANs limited geographical area MANs/WANs Larger geographical area Backbones High-bandwidthed channels connecting LANs

O/S and N/W concepts

60

Vaishali Kamat

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
61
Vaishali Kamat

O/S and N/W concepts

Networking Protocols

The OSI Model supports two general types of protocols. Both are common: Connection-Oriented

Sender and receiver first establish a connection, possibly negotiate on a protocol. (virtual circuit) Transmit the stream of data. Release the connection when done. E.g. Telephone connection. No advance setup is needed. Transmit the message (datagrams) when sender is ready. E.g. surface mail. 62
Vaishali Kamat

Connectionless

O/S and N/W concepts

Networking Layer Protocols


Layer 3 Protocols Tasks


Packetizing Addressing Routing


Binary representation at senders machine Senders binary representation broken into packets Packets sent to receiver computer Packets received at receiver computer Packets assembled at receiver computer Binary representation at receiver computer

Steps

Egs TCP/IP, IPX/SPX


Vaishali Kamat

O/S and N/W concepts

63

Data-Link Layer Protocols


Layer 2 Protocols Tasks


Delineation Error Control Channel Access

Egs Ethernet, Token-ring, Slip, PPP Every Network has one Network Layer and one Data-link Layer protocol
64
Vaishali Kamat

O/S and N/W concepts

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
65
Vaishali Kamat

O/S and N/W concepts

Networking Topologies

Basic geometric layout for connecting the computers to the Network channel Determines the method of channel access Topologies :

Bus Ring Star


66
Vaishali Kamat

O/S and N/W concepts

Bus Topology

Clients, servers, resources are connected directly to a single channel Bus = single channel Runs from one end of the network to the other Networks using Ethernet, use Bus Topology

O/S and N/W concepts

67

Vaishali Kamat

Ring Topology

All computers in the LAN connected to a close loop circuit Each computer linked to the next Networks using token ring use Ring Topology

O/S and N/W concepts

68

Vaishali Kamat

Star Topology

All clients connected individually to the server Each client uses a direct channel Was common in the Mainframe era Not commonly used in LANs Used in some WANs now

O/S and N/W concepts

69

Vaishali Kamat

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
70
Vaishali Kamat

O/S and N/W concepts

Network Architectures and Network Reference Models

Architecture versus Reference Model:

Architecture : It may be seen as a detailed generic blueprint with unambiguous definitions of services, interfaces, organization and defined protocols that helps in design and implementation of a set of relevant protocol stack / suite based network / internet work Reference Model : It is the same as the architecture minus the specifically defined readily usable protocols.

O/S and N/W concepts

71

Vaishali Kamat

ISO OSI Reference Model


Application Layer

Presentation Layer
Session Layer Transport Layer Network Layer
Application Subsystem

Data Link Layer


Physical Layer
O/S and N/W concepts

Communication Subsystem

72

Vaishali Kamat

Physical Layer
Media used for device connection (copper cables, fiber optics, wireless, etc.) Supporting hardware (repeaters, hubs and network interface cards). Also includes: connector design definition of electrical signaling and encoding time or synchronization methods.

O/S and N/W concepts

73

Vaishali Kamat

Physical Layer

The Physical Layer translates the outgoing bits received from the Data Link Layer into signals, places the signal on the media At the receiving station converts incoming signals into bits for handoff to the Data Link Layer. The Physical Layer deals only with bits on the wire and makes NO ADDRESSING DECISIONS
74
Vaishali Kamat

O/S and N/W concepts

Data-link Layer

The Data Link Layer relies on the services of the Physical Layer. It receives and interprets the bit stream as a FRAME of data. The header includes physical or hardware (MAC) addresses of the destination and source hosts. The DLL is responsible for the error and flow control between devices. CRC (cycle redundancy check) ensures that the bits sent are the bits received.
75
Vaishali Kamat

O/S and N/W concepts

Data-link Layer

Flow control ensures that data transmission is not performed until the receiving device is ready to receive. Ethernet and IEEEs 802.3 are examples of data link services. In Ethernet, the DLL is one layer facilitating both the hardware address, media access, payload identification. With 802.3 the DLL is divided into sub layers.
76
Vaishali Kamat

O/S and N/W concepts

Data-link Layer

The Logical Link Control (LLC) sub layer provides protocol (payload) and control information. The Media Access Control (MAC) implements the access method and hardware address. Hardware that operates at layer 2 includes bridges and switches. These devices make decisions based on the destination hardware address contained in the frame. The NIC also provides layer 2 service at the host.
77
Vaishali Kamat

O/S and N/W concepts

Network Layer

The Network Layer can be used to route datafrom network to network in geographically separate areas. Logical addressing is used to enable protocols operating at the Network Layer to deliver the data. When data is passed to the Network Layer it is called a packet.

O/S and N/W concepts

78

Vaishali Kamat

Network Layer

The packet is wrapped in a header specific to the protocol (IP and IPX are examples) in use. Each protocol differentiates its address scheme.
Some protocol addresses are regulated Some schemes allow the administrator total flexibility.

The logical address is divided into a Network ID and a Host ID.


79
Vaishali Kamat

O/S and N/W concepts

Network Layer

Routers:
Devices that operate at the Network Layer. Use routing protocols to pass network connectivity information and routable protocols to pass the data.

A network wishing to communicate with another network requires a gateway device. The router serves as the gateway.
80
Vaishali Kamat

O/S and N/W concepts

Communication System

Layers 1 through 3 make up the communication subsystem. They are implemented in hardware and supported by software. Each layer is independent.

O/S and N/W concepts

81

Vaishali Kamat

Transportation Layer

The Transport Layer provides end to end data transport with a logical connection between the sender and the receiving hosts. It ensures data integrity through flow control and reliable data transport. Additionally the multiplexing of upper layer applications and session management provides for transparent data transfer.
82
Vaishali Kamat

O/S and N/W concepts

Transportation Layer

Windowing or flow control is critical in the prevention of lost data. (The window is the amount of data each side is "willing" to accept.) Preventing the sending station from overflowing the receiver buffers, congestion and data loss is reduced and reliable data transport can be achieved.
83
Vaishali Kamat

O/S and N/W concepts

Transportation Layer

Reliable transport includes:


The acknowledge of segments Retransmission of lost segments Reordering of segments into correct sequence.

For reliable transport operation, a connection between peers must be established.


Handshaking between peers is used to establish the connection (virtual circuit).

O/S and N/W concepts

84

Vaishali Kamat

Session Layer

The Session Layer sets checkpoints at specified intervals during application execution. These checkpoints break the data into grouping for error detection. In the event of a failure, both participating nodes/applications will, upon establishment of communication, use the synch points to restart and continue the application from the point of failure.
85
Vaishali Kamat

O/S and N/W concepts

Presentation Layer

Presentation Layer services include:


translation between code sets encryption of data data compression/decompression.

Through these translation services the Presentation Layer ensures that application data is readable between participating hosts.

O/S and N/W concepts

86

Vaishali Kamat

Application Layer

Network applications interface to the network through the Application Layer. Support is provided for:
file transfers messaging services data access

Layer 7 protocols examples include FTP, TELNET and HTTP. Layer 7 ensures availability of the communicating entities and resources for communication.
87
Vaishali Kamat

O/S and N/W concepts

Application Subsystem

Layers 4 thru 7 comprise the application subsystem. They are implemented in software.

O/S and N/W concepts

88

Vaishali Kamat

Networking Concepts

Definition Parts of a Network Network Channels LANs, MANS, WANs, Backbone Networking Protocols Network Topologies Network Architectures and Network Reference Models Other Terminologies
89
Vaishali Kamat

O/S and N/W concepts

Other Terminologies

Bridges :A network bridge connects multiple network segments. Hubs :A common connection point for devices in a network. Hubs are commonly used to connect segments of a LAN. NIC : Network Interface Card. Board that provides network communication capabilities to and from a computer system. Also called an adapter.s
90
Vaishali Kamat

O/S and N/W concepts

Other Terminologies

Switches :A network switch is a small hardware device that joins multiple computers together within one local area network (LAN). Technically, network switches operate at layer two (Data Link Layer) of the OSI model. Repeaters :Its a two-ports electronic device that just repeats what receives from one port to the other. A multiport repeater is called hub.
91
Vaishali Kamat

O/S and N/W concepts

Other Terminologies

Gateways :In a communications network, a network node equipped for interfacing with another network that uses different protocols - translating capability. When used for network security, it is called Firewall. Routers :is an electronic device used to connect two or more computers or other electronic devices to each other, and usually to the Internet, by wire or radio signals. This allows several computers to communicate with each other and to the Internet at the same time.
92
Vaishali Kamat

O/S and N/W concepts

Other Terminologies
Clouds :abstraction of node connectivity in the networking context Services :Functionalities provided by a layer / protocol /Entity Service Access Points: defined addresses / ports through which data / parameters are passed

O/S and N/W concepts

93

Vaishali Kamat

Other Terminologies

Interfaces: Peer-to-Peer / Layer-to-Layer / entityto-entity Interoperability - Applies to different implementations of the same specification. Each participating device must have the identical layering for interoperability. Compatibility - applies to independent implementations of the different specifications Tunneling - tunneling protocol when one network protocol (the delivery protocol) encapsulates a different payload protocol. By using tunneling one can (for example) carry a payload over an incompatible delivery-network, or provide a secure path through an untrusted network.
94
Vaishali Kamat

O/S and N/W concepts

Thank you !

O/S and N/W concepts

95

Vaishali Kamat

You might also like