37
Network Organisation and Management Lecture #11 Department of Computer Science and Technology University of Bedfordshire Written by David Goodwin, based on the lecture series of Dayou Li and the book Understanding Operating Systems 4 th ed. by I.M.Flynn and A.McIver McHoes (2006). Operating Systems, 2012

Network Organisation and Management · Network Organisation and Management TERMINOLOGY I Site, host and node I Site { a location in a networked system containing one or more computers

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Network Organisation andManagementLecture #11

Department of Computer Science and TechnologyUniversity of Bedfordshire

Written by David Goodwin,based on the lecture series of Dayou Li

and the book Understanding Operating Systems 4thed.by I.M.Flynn and A.McIver McHoes (2006).

Operating Systems, 2012

NetworkOrganisation

andManagement

TERMINOLOGY

I Types of network operating systemsI Network operating system (NOS) – a traditional

single-user operating systemI Distributed operating system (D/OS) – multi-user

system comprised ofI Memory managerI Processor managerI Device or I/O managerI File managerI Network manager

I Remote and localI Remote – a processor in a networked system regards

other processors and their resources as remoteI Local – it considers its own resources as local

NetworkOrganisation

andManagement

TERMINOLOGY

I Site, host and nodeI Site – a location in a networked system containing one

or more computersI Host – a specific computer of a site whose resources

can be used from remote locationsI Node – name assigned to a computer within a

networked systemI Typically, a host on one site called server owns resources

and a host at another site called client wants to use theresources

NetworkOrganisation

andManagement

DISTRIBUTED OPERATINGSYSTEMS

I General descriptionsI Gives users global access to resourcesI Allows network processes being managed globallyI Makes the network completely transparent to users and

their local operating systems

NetworkOrganisation

andManagement

NETWORK OPERATING SYSTEMS

I NOS typically runs on a computer called a server andperforms services for network workstations called clients

I Network management functions come into play onlywhen the system needs to use the network

I Focus is on sharing resources instead of runningprograms

I Best NOS choice depends on following factors:I Applications to be run on the serverI Technical support requiredI User’s level of training

NetworkOrganisation

andManagement

DISTRIBUTED OPERATINGSYSTEMS

I Features:I Resources owned by local nodesI Local recourses managed by local OSsI Access performed by local OSsI Requests passed from a local OS to another through

NOSI NOS handles interfacing details and coordinates remote

processingI It coordinates communications between local operating

systemsI Limitation: Doesn’t take global control over memory

management, process management, devicemanagement, or file management

NetworkOrganisation

andManagement

NOS DEVELOPMENT

I PrinciplesI To provide support for standard local area network

technologies and client desktop operating systemsI To have a robust architecture that adapts easily to new

technologiesI Must provide strong support for every operating

system in the corporate information network

I To be able to operate wide range of third-party softwareapplications and hardware devices

I To supports software for multiuser network applications

NetworkOrganisation

andManagement

NOS DEVELOPMENT

I I To blend efficiency with securityI To allows users to access hardware or software at a

remote siteI Example: Internet’s telnet command

I Security is a critical function of the NOSI To verify every attempt to log in and have policies in

place to handle unsuccessful attempts

I Throughout the telnet session, NOS handles thenetworking functions

I To let users transfer files from one computer to another

NetworkOrganisation

andManagement

DISTRIBUTED OPERATINGSYSTEMS

I DO/SI Need for global control of assets by OS led to the

development of DO/SI Provide a unified environment designed to optimize

operations for the network as a wholeI Typically constructed with replicated kernel OSI Network and intricacies are hidden from users so they

can use network as single logical system

NetworkOrganisation

andManagement

DISTRIBUTED OPERATINGSYSTEMS

I Features:I Resources owned by local OSsI Local resources managed by a global DO/SI Access performed by DO/SI Requests passed from node to node through DO/SI Advantage: Ability to support file copying, e- mail, and

remote printing without installation of special serversoftware on local machines

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Memory managementI Memory Manager uses a kernel with a paging algorithm

to track the amount of available memoryI Memory allocation and deallocation depend on

scheduling and resource-sharing schemesI Memory Manager accepts requests for memory from

both local and global sourcesI Functions of Memory Manager in DO/S:

I Allocates pages based on the local policy (on a locallevel)

I Receives requests from the Process Manager to providememory to new or expanding client or server processes(on a global level)

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I I Uses local resources to perform garbage collection inmemory, perform compaction

I Decide which are most and least active processesI Determine which processes to preempt to provide space

for othersI To control demand, it handles requests to allocate &

deallocate space based on network’s usage patternsI Automatically brings requested page into memoryI Examines the total free memory table before allocating

spaceI Manages virtual memory

I Allocates and deallocates virtual memoryI Reads and writes to virtual memoryI Swaps virtual pages to diskI Locks virtual pages in memory, and protects the pages

that need to be protected

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Process ManagementI Provides policies and mechanisms to create, delete,

abort, name, rename, find, schedule, block, run, andsynchronize processes, and to provide real-time priorityexecution if required

I Manages the states of execution: READY, RUNNING,and WAIT

I Each CPU in the network is required to have its ownrun-time kernel

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Kernel:I Each kernel assumes the role of helping the system

reach its operational goalsI Kernel’s states are dependent on the global system’s

process scheduler and dispatcherI System’s scheduling function has three parts:

I Decision mode: determines which policies to use whenscheduling a resource, such as Preemptive,nonpreemptive, round robin etc

I Priority function: gives scheduling algorithms thepolicy that’s used to assign an order to processes inthe execution cycle, for example, Most time remaining(MTR), LTR

I Arbitration rule: used to resolve conflicts between jobsof equal priority, for example, Last-in first-out (LIFO),FIFO

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I I Advances in job scheduling rely on:I Queuing theoryI Statistical decision theoryI Estimation theory:

Maximizes system’s throughput by using durations tocompute and schedule optimal way to interleaveprocess chunks

I Processes are created, located, synchronized anddeleted using specific procedures

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Process-based DO/SI Network resources are managed as a large

heterogeneous collectionI Provides for process management via client/server

processes synchronized and linked together throughmessages & ports (channels or pipes)

I Emphasizes processes and messages and how theyprovide basic features essential to process management

I Processes can be managed from single OS copy, frommultiple cooperating peers, or some combination of two

I High level of cooperation and sharing of actions & dataI Synchronization is a key issue in network process

managementI Interrupts represented as messages sent to proper

process for service

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Object-based DO/SI A system is viewed as a collection of objects

I Example: Hardware (CPUs, memory), software (files,programs), or a combination of the two

I Objects are viewed as abstract entitiesI Objects have a set of unchanging properties

I The states of objects can transformed from one toanother when operations are performed on the objects

I Process management becomes object management,with processes acting as discrete objects

I Two components of process management:I Kernel level and process manager

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I The Kernel LevelI Provides basic mechanisms for building OS by

dynamically creating, managing, scheduling,synchronizing, and deleting objects

I Maintains network’s capability listsI Responsible for process synchronization and

communication supportI Communication between distributed objects can be in

the form of shared data objects, message objects, orcontrol interactions

I Must have a scheduler with a consistent and robustmechanism for scheduling objects

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I The Process ManagerI Creates its own primitives if kernel doesn’t already have

primitives (test and set, P and V)I Responsible for:

I Creating, dispatching, and scheduling objectsI Synchronizing operations on objectsI Communicating among objects and deleting objects

I Uses kernel environment to perform above tasksI Objects contain all of their state information

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Device ManagementI Devices must be opened, read from, written to, and

closedI Device parameters must be initialized and status bits

must be set or clearedI Can be done on a global, cluster, or localized basis

I Allocates and deallocates devices to usersI Only when a process issues OPEN and CLOSE

command

I Keeps a global accounting of each network device andits availability

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Process-Based DO/SI All resources in process-based DO/S are controlled by

servers called “guardians” or “administrators”, whichare responsible for:

I Accepting requests for service on the individual devicesthey control

I Processing each request fairlyI Providing service to the requestor, and returning to

serve others

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I I Many systems have clusters of resourcesI To control these clusters as a group, most

process-based systems are configured around complexserver processes

I The administrator process is configured as a DeviceManager and includes software needed to

I Accept local and remote requests for serviceI Decipher their meaning, and act on them

I A server process is made up of one or more devicedrivers, a Device Manager, and a network servercomponent

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Object-based DO/SI Each device is managed the same way throughout the

networkI Physical device is considered as an object, surrounded

by a layer of softwareI Physical device is manipulated by a set of operations,

that mobilize the device to perform its designatedfunctions

I Objects can be assembled to communicate andsynchronize with each other

I If local device manager can’t satisfy user’s request, therequest is sent to another device manager

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I I Users don’t need to know if the network’s resources arecentralized or distributed

I Device Manager object at each site needs to maintain acurrent directory of device objects at all sites

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I File ManagementI To provide transparent mechanisms to find and open,

read, write, close, create, and delete filesI Subset of database managers; implemented as

distributed database management systems as part ofLANs

I Tasks involve:I Concurrency controlI Data redundancyI Location transparency and distributed directoryI Deadlock resolution or recoveryI Query processing

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Concurrency ControlI Gives the system the ability to perform concurrent reads

and writes, provided these actions don’t jeopardizedatabase

I Provides a serial execution view on a database

I Data RedundancyI Makes files much faster and easier to readI Allows a process to read the copy that’s closest or

easiest to accessI Read request can be split into several different requests

for a larger fileI Advantage: Disaster recovery easyI Disadvantage: Task of keeping multiple copies of the

same file up-to-date at all timesI Updates to be performed at all sites

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Location transparency and Distributed directory:I Users not concerned with physical location of their files,

deal with the network as a single systemI Provided by mechanisms and directories that map

logical data items to physical locationsI Distributed directory manages transparency of data

location and enhances data recovery for users andcontains:

I Definitions dealing with the physical and logicalstructure for the stored data

I Policies and mechanisms for mapping between the twoI Systemwide names of all resources and addressing

mechanisms for locating and accessing them

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Deadlock resolutionI Most important function is to detect and recover from a

circular waitI Complex and difficult to detect because it involves

multiple processes and multiple resources

I Detection, prevention, avoidance, and recovery are allstrategies used by a distributed system

I To recognize circular waits, system uses directedresource graphs and looks for cycles

I To prevent circular waits, system tries to delay thestart of a transaction until it has all the resources

I To avoid circular waits, system tries to allow executiononly when it knows that the transaction can run tocompletion

I To recover, system selects the best victim, kills thevictim, reallocates its resources to the waitingprocesses

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Query ProcessingI Function of processing requests for informationI Tries to increase the effectiveness of global query

execution sequences, local site processing sequences,and device processing sequences

I To ensure consistency of the entire system’s schedulingscheme

I Query processing strategy must be an integral part ofthe processing scheduling strategy

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Network ManagementI Network Manager provides policies to provide intrasite

and intersite communicationI Network Manager’s responsibilities include:

I Locate processes in the networkI Send messages throughout the network, and track

media useI Reliably transfer dataI Code and decode messages, retransmit errorsI Perform parity checking, do cyclic redundancy checks,

establish redundant linksI Acknowledge messages and replies, if necessaryI Links processes or objects together through a port

when they need to communicate with each otherI Provides routing functionsI Keeps statistics on network useI Provides mechanisms to aid process time

synchronization

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Process-based DO/S:I Interprocess communication is transparent to usersI Network Manager assumes full responsibility for:

I Allocating ports to the processesI Identifying every process in the networkI Controlling flow of messagesI Guaranteeing transmission and acceptance of messages

without errors

I Routinely acts as interfacing mechanism for everyprocess in the system

I As traffic operator, it accepts and interprets eachprocess’s commands to send and receive

NetworkOrganisation

andManagement

DO/S DEVELOPMENT

I Object-based DO/S:I Network Manager object makes both intermode and

intramode communications among cooperative objectseasy

I User doesn’t need to know the location of receiverI Only needs to know the receiver’s name

I Provides the message’s proper routing to the receiverI A process can also invoke an operation that’s part of its

local object environmentI Network Manager services are usually provided at the

kernel level

NetworkOrganisation

andManagement

DO/S DEVELOPMENT