Distributed System Structures 16: Distributed Structures

Slides:



Advertisements
Similar presentations
COMPUTER NETWORK TOPOLOGIES
Advertisements

OSes: 14. Dist. System Structures 1 Operating Systems v Objectives –introduce the basic notions behind a networked/distributed system Certificate Program.
Review of Topology and Access Techniques / Switching Concepts BSAD 141 Dave Novak Sources: Network+ Guide to Networks, Dean 2013.
Silberschatz, Galvin and Gagne  Operating System Concepts Chap15: Distributed System Structures Background Topology Network Types Communication.
U NIVERSITY OF M ASSACHUSETTS, A MHERST Department of Computer Science Emery Berger University of Massachusetts Amherst Operating Systems CMPSCI 377 Lecture.
NETWORK STRUCTURES This chapter sets the foundation for our discussion about networks and distributed OS. VOCABULARY   Tightly coupled systems Same clock,
Network Operating Systems Users are aware of multiplicity of machines. Access to resources of various machines is done explicitly by: –Logging into the.
Distributed System Structures CS 3100 Distributed System Structures1.
Computers Are Your Future © 2008 Prentice-Hall, Inc.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Module 16: Distributed System Structures.
Networks Types. Spring 2002Computer Network Applications Data Transfer During the ’70s: Minicomputers became affordable; Need to communicate information;
1 Chapter 9 Computer Networks. 2 Chapter Topics OSI network layers Network Topology Media access control Addressing and routing Network hardware Network.
LAN Risanuri Hidayat. LAN-Local Area Network A LAN is a high-speed data network that covers a relatively small geographic area. It typically connects.
16: Distributed Systems1 DISTRIBUTED SYSTEM STRUCTURES NETWORK OPERATING SYSTEMS The users are aware of the physical structure of the network. Each site.
Modified from Silberschatz, Galvin and Gagne Principles of Computer Operating Systems Lecture 23 Chapter 16/18: Distributed Systems.
Chapter 2 Network Models.
COMPUTER NETWORKS.
The OSI Model A layered framework for the design of network systems that allows communication across all types of computer systems regardless of their.
Connecting LANs, Backbone Networks, and Virtual LANs
Network Topologies.
This is the way an organisation distributes the data across its network. It uses different types of networks to communicate the information across it.
1 Wide Area Network. 2 What is a WAN? A wide area network (WAN ) is a data communications network that covers a relatively broad geographic area and that.
Networks CSCI-N 100 Dept. of Computer and Information Science.
CS 149: Operating Systems April 23 Class Meeting Department of Computer Science San Jose State University Spring 2015 Instructor: Ron Mak
Chapter 4.  Understand network connectivity.  Peer-to-Peer network & Client-Server network  Understand network topology  Star, Bus & Ring topology.
Chapter Five Network Architecture. Chapter Objectives  Describe the basic and hybrid LAN technologies  Describe a variety of enterprise-wide and WAN.
Chapter 2 The Infrastructure. Copyright © 2003, Addison Wesley Understand the structure & elements As a business student, it is important that you understand.
LECTURE 9 CT1303 LAN. LAN DEVICES Network: Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Module 17: Distributed Systems.
CSCI-235 Micro-Computer in Science The Network. © Prentice-Hall, Inc Communications  Communication is the process of sending and receiving messages 
Networks for Distributed Systems n network types n Connection-oriented and connectionless communication n switching technologies l circuit l packet.
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
1 Module 15: Network Structures n Topology n Network Types n Communication.
1 Next Few Classes Networking basics Protection & Security.
The OSI Model.
Chapter 2 Network Topology
William Stallings Data and Computer Communications 7 th Edition Chapter 1 Data Communications and Networks Overview.
Overview of computer communication and Networking Communication VS transmission Computer Network Types of networks Network Needs Standards.
Multiprossesors Systems.. What are Distributed Databases ? “ A Logically interrelated collection of shared data ( and a description of this data) physically.
Module 16: Distributed System Structures
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
William Stallings Data and Computer Communications
Chapter2 Networking Fundamentals
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
Chapter 5 Network Architecture. Physical Topologies Bus Ring Star.
Silberschatz and Galvin  Operating System Concepts Module 15: Network Structures Background Motivation Topology Network Types Communication.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 16: Distributed System Structures.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Module 16: Distributed System Structures.
Rehab AlFallaj.  Network:  Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and do specific task.
Chapter 14: Distributed Operating Systems Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Apr 4, 2005 Outline n Motivation.
THE NETWORKS Theo Chakkapark. Open System Interconnection  The tower of power!  The source of this power comes from the model’s flexibility.
Module 16: Distributed System Structures Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Apr 4, 2005 Distributed.
Operating Systems Network Structures. Topics –Background –Motivation –Topology –Network Types –Communication –Design Strategies Topics –Background –Motivation.
CS307 Operating Systems Distributed System Structures Guihai Chen Department of Computer Science and Engineering Shanghai Jiao Tong University Spring 2012.
Intro to Distributed Systems Hank Levy. 23/20/2016 Distributed Systems Nearly all systems today are distributed in some way, e.g.: –they use –they.
CSE Operating System Principles Distributed Systems & Networking Fundamentals.
Operating Systems Distributed-System Structures. Topics –Network-Operating Systems –Distributed-Operating Systems –Remote Services –Robustness –Design.
Network types Point-to-Point (Direct) Connection Dedicated circuit boards connected by cable; To transfer data from A to B: – A writes on its circuit board;
Chapter 19: Distributed Systems
Chapter 15: Distributed Structures
LAN Risanuri Hidayat.
Module 16: Distributed System Structures
Chapter 16: Distributed System Structures
Module 15: Network Structures
Chapter 5 Networks Communicating and Sharing Resources
Distributed System Structures 16: Distributed Structures
Chapter 3: Open Systems Interconnection (OSI) Model
Presentation transcript:

Distributed System Structures 16: Distributed Structures OPERATING SYSTEMS Distributed System Structures Jerry Breecher 16: Distributed Structures

DISTRIBUTED STRUCTURES This chapter sets the foundation for our discussion about networks and distributed OS. VOCABULARY   Tightly coupled systems Same clock, usually shared memory. Multiprocessors. Communication is via this shared memory. Loosely coupled systems Different clock, use communication links. Distributed systems. sites = nodes = computers = machines = hosts Local The resources on your "home" host. Remote The resources NOT on your "home" host. Server A host at a site that has a resource used by a Client. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Vocabulary Network Operating Systems Users are aware of multiplicity of machines. Access to resources of various machines is done explicitly by: Remote logging into the appropriate remote machine (ssh, browser) Transferring data from remote machines to local machines (browser, ssh) Distributed Operating Systems Users not aware of multiplicity of machines Access to remote resources similar to access to local resources Data Migration – transfer data by transferring entire file, or transferring only those portions of the file necessary for the immediate task Computation Migration – transfer the computation, rather than the data, across the system 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Vocabulary  Clusters The hardware on which distributed systems run. A current buzzword. It allows more compute power, compared to a mainframe, by running on many inexpensive small machines.  Chapter 17 talks in great deal about distributed systems as a whole; meanwhile we'll discuss the components of these systems. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Why Distributed OS? Advantages of distributed systems:   Resource Sharing Items such as printers, specialized processors, disk farms, files can be shared among various sites. Computation Speedup Load balancing - dividing up all the work evenly between sites. Making use of parallelism. Reliability Redundancy. With proper configuration, when one site goes down, the others can continue. But this doesn't happen automatically. Communications Messaging can be accomplished very efficiently. Messages between nodes are akin to IPCs within a UniProcessor. Easier to talk/mail between users. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Why Distributed OS? Advantages of distributed systems:   Process Migration – Execute an entire process, or parts of it, at different sites Load balancing – distribute processes across network to even the workload Computation speedup – subprocesses can run concurrently on different sites Hardware preference – process execution may require specialized processor Software preference – required software may be available at only a particular site Data access – run process remotely, rather than transfer all data locally 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Why Distributed OS? Advantages of distributed systems: 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Topology Methods of connecting sites together can be evaluated as follows:   Basic cost: This is the price of wiring, which is proportional to the number of connections. Communication cost: The time required to send a message. This is proportional to the amount of wire and the number of nodes traversed. Reliability: If one site fails, can others continue to communicate. Let's look at a number of connection mechanisms using these criteria: FULLY CONNECTED   All sites are connected to all other sites. Expensive( proportional to N squared ), fast communication, reliable. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Topology  PARTIALLY CONNECTED   Direct links exist between some, but not all, sites. Cheaper, slower, an error can partition system.  HIERARCHICAL   Links are formed in a tree structure. Cheaper than partially connected; slower; children of failed components can't communicate.  STAR   All sites connected through a central site. Basic cost low; bottleneck and reliability are low at hub. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Topology  RING   Uni or bi-directional, single, double link.   Cost is linear with number of sites; communication cost is high; failure of any site partitions ring. MULTIACCESS BUS Nodes hang off a ring rather than being part of it. Cost is linear; communication cost is low; site failure doesn't affect partitioning. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Network Types LOCAL AREA NETWORKS (LAN): Designed to cover small geographical area. Multiaccess bus, ring or star network. Speed around 1 gigabit / second or higher. Broadcast is fast and cheap. usually workstations or personal computers with few mainframes.   WIDE AREA NETWORK (WAN): Links geographically separated sites. Point to point connections over long-haul lines (often leased from a phone company.) Speed around 1 megabits / second. (T1 is 1.544 megabits/second.) T-3 - 43.232 megabits per second (28 T-1s) Ave. cost $4,000.-$16,000./mo. (2011) Broadcast usually requires multiple messages. Nodes usually contain a high percentage of mainframes. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Design Issues When designing a communication network, numerous issues must be addressed:   Naming and name resolution How do two processes locate each other in order to communicate? Routing Strategies How are messages sent through the network? Connection Strategies How do two processes send a sequence of messages? Contention Since the network is a shared resource, how do we resolve conflicting demands for its use? 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Name Resolution  NAMING AND NAME RESOLUTION   Naming systems in the network. Address messages with the process-id. Identify processes on remote systems by < hostname, identifier > pair. Domain name service -- specifies the naming structure of the hosts, as well as name to address resolution ( internet ). 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Routing Strategies  FIXED ROUTING A path from A to B is specified in advance and does not change unless a hardware failure disables this path. Since the shortest path is usually chosen, communication costs are minimized. Fixed routing cannot adapt to load changes. Ensures that messages will be delivered in the order in which they were sent. VIRTUAL CIRCUIT A path from A to B is fixed for the duration of one session. Different sessions involving messages from A to B may have different paths. A partial remedy to adapting to load changes. DYNAMIC ROUTING The path used to send a message from site A to site B is chosen only when a message is sent. Usually a site sends a message to another site on the link least used at that particular time. Adapts to load changes by avoiding routing messages on heavily used path. Messages may arrive out of order. This problem can be remedied by appending a sequence number to each message. 16: Distributed Structures

16: Distributed Structures Connection Strategies NETWORK STRUCTURES Processes institute communications sessions to exchange information. There are a number of ways to connect pairs of processes that want to communicate over the network.   Circuit Switching A permanent physical link is established for the duration of the communication (i.e. telephone system.) Message Switching A temporary link is established for the duration of one message transfer (i.e., post-office mailing system.) Packet Switching Messages of variable length are divided into fixed-length packets that are sent to the destination. Each packet may take a different path through the network. The packets must be reassembled into messages at they arrive. Circuit switching requires setup time, but incurs less overhead for shipping each message, and may waste network bandwidth. Message and packet switching require less setup time, but incur more overhead per message. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Contention Several sites may want to transmit information over a link simultaneously. Techniques to avoid repeated collisions include:   CSMA/CD. Carrier sense with multiple access (CSMA) collision detection (CD) A site determines whether another message is currently being transmitted over that link. If two or more sites begin transmitting at exactly the same time, then they will register a CD and will stop transmitting. When the system is very busy, many collisions may occur, and thus performance may be degraded. (CSMA/CD) is used successfully in the Ethernet system, the most common network system. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Contention Token passing. A unique message type, known as a token, continuously circulates in the system (usually a ring structure). A site that wants to transmit information must wait until the token arrives. When the site completes its round of message passing, it retransmits the token.   Message slots. A number of fixed-length message slots continuously circulate in the system (usually a ring structure). Since a slot can contain only fixed-sized messages, a single logical message may have to be broken down into smaller packets, each of which is sent in a separate slot. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Design Structure The communication network is partitioned into the following multiple layers: 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Design Structure Physical layer Handles the mechanical and electrical details of the physical transmission of a bit stream.   Data-link layer Handles the frames, or fixed-length parts of packets, including any error detection and recovery that occurred in the physical layer. Network layer Provides connections and routing of packets in the communication network. Includes handling the address of outgoing packets, decoding the address of incoming packets, and maintaining routing information for proper response to changing load levels. Transport layer Responsible for low-level network access and for message transfer between clients. Includes partitioning messages into packets, maintaining packet order, controlling flow, and generating physical addresses. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Design Structure Presentation layer Resolves the differences in formats among the various sites in the network, including character conversions, and half duplex/full duplex (echoing).   Application layer Interacts directly with the users. Deals with file transfer, remote-login protocols and electronic mail, as well as schemas for distributed databases. 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Design Structure How this is really implemented can be seen in this figure: 16: Distributed Structures

16: Distributed Structures NETWORK STRUCTURES Wrap Up This was a definition chapter. The purpose was to gain an understanding of the various pieces that go into networks. We’ll use this as the basis for understanding how the distributed file system is implemented. 16: Distributed Structures