Silberschatz and Galvin Chapter 15

Similar documents
Module 15: Network Structures

Module 16: Distributed System Structures. Operating System Concepts 8 th Edition,

Module 15: Network Structures

Distributed System Chapter 16 Issues in ch 17, ch 18

Module 16: Distributed System Structures

CHAPTER 17 - NETWORK AMD DISTRIBUTED SYSTEMS

Lecture 11: Networks & Networking

Modulo II Introdução Sistemas Distribuídos

Chapter 17: Distributed Systems (DS)

Outline: Connecting Many Computers

Chapter 16 Networking

Chapter 4 NETWORK HARDWARE

Review of Topology and Access Techniques / Switching Concepts

CHAPTER 2 - NETWORK DEVICES

Chapter 6 Connecting Device

Integrating Information Systems: Technology, Strategy, and Organizational Factors

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061/1110. Lecture 8. Medium Access Control Methods & LAN

Different network topologies

Principles behind data link layer services

Introduction to Networking

Distributed Systems. Why use distributed systems? What is a distributed system? Intro to Distributed Systems and Networks.

Network.... communication system for connecting end- systems. End-systems a.k.a. hosts PCs, workstations dedicated computers network components

Principles behind data link layer services:

Principles behind data link layer services:

Introduction to LAN Protocols

ET4254 Communications and Networking 1

KIBABII UNIVERSITY COLLEGE DEPARTMENT COMPUTER SCIENCE & IT ANSWER ALL QUESTIONS IN SECTION A AND ANY TWO QUESTIONS IN SECTION B

Revision of Previous Lectures

Next Steps Spring 2011 Lecture #18. Multi-hop Networks. Network Reliability. Have: digital point-to-point. Want: many interconnected points

King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering

Networks. Distributed Systems. Philipp Kupferschmied. Universität Karlsruhe, System Architecture Group. May 6th, 2009

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

Introduction to Networking Devices

Internetwork Basic. Possible causes of LAN traffic congestion are

Introduction to LAN Protocols

ISO/OSI Model and Collision Domain NETWORK INFRASTRUCTURES NETKIT - LECTURE 1 MANUEL CAMPO, MARCO SPAZIANI

Data Communication. Introduction of Communication. Data Communication. Elements of Data Communication (Communication Model)

Internet Architecture and Protocol

CS610- Computer Network Solved Subjective From Midterm Papers

CCM 4300 Lecture 5 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

TCOM 370 NOTES 99-1 NETWORKING AND COMMUNICATIONS

Network Infrastructure

Cisco Cisco Certified Network Associate (CCNA)

Internetworking is connecting two or more computer networks with some sort of routing device to exchange traffic back and forth, and guide traffic on

Local Area Networks and the Network Protocol Stack

Networking interview questions

The Client Server Model and Software Design

IT 4504 Section 4.0. Network Architectures. 2008, University of Colombo School of Computing 1

Communicating over the Network

NETWORKING COMPONENTS

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

CARRIER SENSE MULTIPLE ACCESS (CSMA):

Overview of Networks

Chapter Topics Part 1. Network Definitions. Behind the Scenes: Networking and Security

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Introduction. The fundamental purpose of data communications is to exchange information between user's computers, terminals and applications programs.

CCNA Exploration1 Chapter 7: OSI Data Link Layer

Communication Networks - 3 general areas: data communications, networking, protocols

THE OSI MODEL. Application Presentation Session Transport Network Data-Link Physical. OSI Model. Chapter 1 Review.

Routing in packet-switching networks

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

Local Area Network Overview

Computer Networks Question Bank

Chapter 6. The Protocol TCP/IP. Introduction to Protocols

Lecture 15 Networking Fundamentals. Today s Plan

Introduction and Layered Network Architecture. EEE 538 Dr. Nail Akar Bilkent University Electrical and Electronics Engineering Department

CS-461 Internetworking. Dr. Mohamed Aboutabl

Chapter 2 Network Models 2.1

Types of Computer Networks and their Topologies Three important groups of computer networks: LAN, MAN, WAN

Chapter 10: Local Area Networks

Adaptors Communicating. Link Layer: Introduction. Parity Checking. Error Detection. Multiple Access Links and Protocols

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

OSI Model. Teran Subasinghe MBCS, Bsc.(Hons) in Computer Science - University of Greenwich, UK

Computer Network : Lecture Notes Nepal Engineering College Compiled by: Junior Professor: Daya Ram Budhathoki Nepal Engineering college, Changunarayan

Course Snapshot. The Next Few Classes. Parallel versus Distributed Systems. Distributed Systems. We have covered all the fundamental OS components:

University of Southern California EE450: Introduction to Computer Networks

Prepared by Agha Mohammad Haidari Network Manager ICT Directorate Ministry of Communication & IT

CPEG514 Advanced Computer Networks. Atef Abu Salim University of Nizwa Spring 2013/2014

Fundamentals of Networking Types of Topologies

Layer 3: Network Layer. 9. Mar INF-3190: Switching and Routing

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18

CMSC 611: Advanced. Interconnection Networks

Data Link Layer -2- Network Access

Course Snapshot. The Next Few Classes

EITF25 Internet Techniques and Applications L4: Network Access. Stefan Höst

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

The OSI Model. Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO).

Medium Access Protocols

Full file at

Chapter -4 OSI Reference Model

This Lecture. BUS Computer Facilities Network Management. Switching Network. Simple Switching Network

Data Link Layer, Part 3 Medium Access Control. Preface

Local Area Networks (LANs) SMU CSE 5344 /

Lecture (02) Network Protocols and Standards

Fundamental Questions to Answer About Computer Networking, Jan 2009 Prof. Ying-Dar Lin,

CS 416: Operating Systems Design April 11, 2011

Digital Communication Networks

Chapter 6: Network Communications and Protocols

Transcription:

Silberschatz and Galvin Chapter 15 Network Structures CPSC 410--Richard Furuta 3/30/99 1 Chapter Topics Background and motivation Network topologies Network types Communication issues Network design strategies CPSC 410--Richard Furuta 3/30/99 2 1

Distributed System CPSC 410--Richard Furuta 3/30/99 3 Loosely-coupled processors inter-connected by communication network Ð Processors: also called sites, nodes, computers, machines, hosts É Ð Site: a location Ð Host: a particular system at the site Ð Server: resource provider Ð Client: resource user Ð Resource: hardware and software resources Network operating system: multiplicity of machines visible to users; logging in to remote systems; transferring data Distributed operating system: multiplicity is hidden; remote resources accessed in same way as local resources CPSC 410--Richard Furuta 3/30/99 4 2

Examples of node types Mainframes (IBM 3090, etc.) Ð Example applications: airline reservations; banking systems Ð Many large attached disks Workstations (Sun, RISC6000, etc.) Ð Example applications: computer-aided design; office information systems; private databases Ð Zero, one or two medium size disks Personal computers Ð Example applications: office information systems; small private databases Ð Zero or one small disk CPSC 410--Richard Furuta 3/30/99 5 Motivations for distributed systems Resource sharing Ð Examples: sharing and printing files; processing distributed database; using remote specialized hardware devices Computation speedup Ð Concurrent processing Ð Load sharing Reliability Ð Detect and recover from site failure; function transfer; reintegrate failed site on repair Communication Ð At the low level, message passing Ð Higher level functionality implemented on this, including file transfer, login, mail, remote procedure calls CPSC 410--Richard Furuta 3/30/99 6 3

Distributed system topologies Sites in system can be physically connected in a variety of ways Comparison criteria Ð Basic cost How expensive is it to link the various sites in the system? Ð Communication cost How long does it take to send a message from site A to site B? Ð Reliability If a link or site in the system fails, can the remaining sites still communicate with each other? CPSC 410--Richard Furuta 3/30/99 7 Distributed system topologies Topologies depicted as graphs; nodes correspond to sites Edge from node A to node B corresponds to a direct connection between the two sites Canonical network topologies Ð Fully connected Ð Partially connected Ð Hierarchical Ð Star Ð Ring Ð Multiaccess bus Ð Hybrid CPSC 410--Richard Furuta 3/30/99 8 4

Fully connected network CPSC 410--Richard Furuta 3/30/99 9 Fully connected network Each site directly linked to all other sites Cost high: number of links grows as the square of the number of sites Fast communication Reliable system--many links must fail for the network to become partitioned Partitioned: split into two (or more) subsystems that lack any connection between them CPSC 410--Richard Furuta 3/30/99 10 5

Partially connected network CPSC 410--Richard Furuta 3/30/99 11 Partially connected network Direct links between some, but not all, pairs of sites Lower cost than fully connected network Slower communication, since message may have to be sent through intermediaries Not as reliable as fully connected. Cutting link between B and C partitions network, for example. Minimize possibility of partitioning by requiring that each site connect to at least two others; eliminates possibility that single link failure will partition network CPSC 410--Richard Furuta 3/30/99 12 6

Hierarchical (tree) network CPSC 410--Richard Furuta 3/30/99 13 Hierarchical (tree) network Often mirrors corporate structure Siblings communicate through parent Mirrors observation that local systems more likely to communicate more than distant systems Loss of single non-leaf node partitions network CPSC 410--Richard Furuta 3/30/99 14 7

Star network CPSC 410--Richard Furuta 3/30/99 15 Star network One of sites serves as hub; connected to all others; no other connections Cost is linear in number of sites Communications cost low: at most two transfers required Speed may be an issue: central site can be a bottleneck; may completely dedicate central site to message-switching Failure of central site completely partitions network CPSC 410--Richard Furuta 3/30/99 16 8

Ring network CPSC 410--Richard Furuta 3/30/99 17 Ring network Each site connected to exactly two other sites Either unidirectional or bidirectional Ð Unidirectional: transmit to only one neighbor; all sites send information in same direction Ð Bidirectional: transmit to either neighbor Basic cost: linear in number of sites Communication cost may be high: n-1 hops maximum for unidirectional, n/2 maximum for bidirectional One failure partitions unidirectional ring; two failures partitions bidirectional ring Example: token ring CPSC 410--Richard Furuta 3/30/99 18 9

Ring network Improve characteristics by providing double links CPSC 410--Richard Furuta 3/30/99 19 Multiaccess bus network (linear bus) CPSC 410--Richard Furuta 3/30/99 20 10

Multiaccess bus network (linear bus) Single, shared link Basic cost of network linear in number of sites Communication cost low, unless link becomes a bottleneck Unaffected by site failure, but link failure completely partitions network Example: Ethernet CPSC 410--Richard Furuta 3/30/99 21 Multiaccess bus network (ring bus) CPSC 410--Richard Furuta 3/30/99 22 11

Hybrid Networks Connecting together networks of differing types Example: Ethernet within a building; token ring on site; partially-connected (or hierarchic) network between sites CPSC 410--Richard Furuta 3/30/99 23 CPSC 410--Richard Furuta 3/30/99 24 12

Network Types Local-area networks (LAN) Ð Designed to cover small geographical area Ð Multiaccess bus, ring, or star network Ð Speed around 10 megabits/second or higher Ð Broadcast is fast and cheap Wide-area networks (WAN) Ð Links geographically separated sites Ð Point-to-point connections over long-haul lines (often leased from a phone company) Ð Speed around 100 kilobits/second Ð Broadcast usually requires multiple messages CPSC 410--Richard Furuta 3/30/99 25 Local-Area network (LAN) CPSC 410--Richard Furuta 3/30/99 26 13

Communication issues Naming and name resolution Ð How do two processes locate each other to communicate? Routing strategies Ð How are messages sent through the network? Connection strategies Ð How do two processes send a sequence of messages? Contention Ð How are conflicting demands for use of the network resolved? CPSC 410--Richard Furuta 3/30/99 27 Naming and name resolution Processes on remote systems represented by tuple: <hostname, identifier> Ð Host-name: systems on network are named Ð Identifier: designates process on host; for example, process-id Host-name (human-readable) to host-id (unique; numeric) translation: resolve mechanism Domain name service (DNS) specifies naming structure of the hosts as well as name to address resolution on the Internet Ð Replaces ArpanetÕs system of complete host tables residing on each host CPSC 410--Richard Furuta 3/30/99 28 14

Domain name service (DNS) Logical addresses of Internet hosts in multiple parts: dilbert.cs.tamu.edu Each component has an associated name server Queries made in reverse order: Ð edu server asked for address for tamu.edu Ð tamu.edu server asked for address for cs.tamu.edu Ð cs.tamu.edu server asked for address for dilbert.cs.tamu.edu Ð IP address returned Caches allow steps to be skipped CPSC 410--Richard Furuta 3/30/99 29 Routing strategies Fixed routing Ð Path from A to B is specified in advance; the path changes only if a hardware failure disables it. Ð Shortest path usually chosen. Minimizes communication costs. Ð Cannot adapt to load changes Ð Ensures messages delivered in the order 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. Ð Session as short as file transfer; as long as remote login period Ð Partial remedy to adapting load changes Ð Ensures messages delivered in order sent. Dynamic routing CPSC 410--Richard Furuta 3/30/99 30 15

Routing strategies Dynamic routing Ð The path used to send a message from site A to site B is chosen only when a message is sent Ð Separate messages may be assigned different paths Usually select the link that is least used at the particular time Hence can adapt to load changes by avoiding using heavily used paths Ð Messages may arrive out of order Include sequence number with each message Question: what do we do if out of sequence? CPSC 410--Richard Furuta 3/30/99 31 Routing strategies Mixing static and dynamic routing Ð Static route to gateway Ð Gateway dynamically routes messages to other locations on the network Router: entity responsible for routing messages; either host computer with appropriate software or special-purpose device Ð Determines if message needs to be passed from network on which it is received to another network connected to the router Ð Routing protocol used between routers to inform them of network changes; allow them to update routing tables CPSC 410--Richard Furuta 3/30/99 32 16

Packet strategies Messages generally are of variable length Simpler design is fixed-length messages Ð Called packets, frames, datagrams Transfers can be reliable or unreliable Ð TCP is an example of a reliable protocol (implies ACK) Question: how to limit effects of network latency on reliable transfer? Ð UDP is an example of an unreliable protocol Message within single packet: connectionless Message larger than a single packet Ð Packetized (i.e., split up into packet-sized pieces) Ð Connection established and the pieces are sent reliably CPSC 410--Richard Furuta 3/30/99 33 Connection strategies Circuit switching Ð Permanent physical link established for the duration of the communication Ð Unavailable to other processes, even if no active communication Ð Example: telephone system Message switching Ð Temporary link established for duration of one message transfer Ð Message is block of data with system information (e.g., source, destination, error correction codes) Ð Example: post-office mailing system Packet switching Ð Messages of variable length divided into fixed length packets Ð Each packet may take a different path to destination Ð Packets must be reassembled into messages as they arrive CPSC 410--Richard Furuta 3/30/99 34 17

Connection strategies Tradeoffs Circuit switching Ð Requires setup time Ð May waste network bandwidth Ð ButÉ incurs less overhead for shipping each message Message and packet switching Ð Less setup time Ð More overhead per message Packet switching most common method on data networks Ð Makes best use of network bandwidth Ð Not harmful to data to break it up/reassemble it (compare to video or audio stream) CPSC 410--Richard Furuta 3/30/99 35 Network contention Several sites may want to transmit information over a link simultaneously. Techniques to avoid repeated collisions include Ð CSMA/CD Ð Token passing Ð Message slots CPSC 410--Richard Furuta 3/30/99 36 18

CSMA/CD Carrier sense with multiple access (CSMA); Collision detection (CD) Ð Before transmitting, listen to determine if another message is being transmitted (CSMA) Ð If link is free, can begin transmitting Ð If two or more sites begin transmitting at the same time, then they will register a collision detection (CD) and stop transmitting Ð On CD, try again after a random time interval When network is busy, many collisions occur, and thus performance may be degraded CSMA/CD is the basic idea behind Ethernet CPSC 410--Richard Furuta 3/30/99 37 Token passing Token: a unique message type Token continuously circulates in the network (ring structure) Site wishing to transmit waits for token On tokenõs arrival, site removes token and begins transmitting After transmitting, retransmits token Issue: what happens if token lost? Ð Election to pick site to regenerate token Characteristic: constant performance Ð Advantage for heavily loaded networks Ð Disadvantage, vs Ethernet for lightly loaded networks CPSC 410--Richard Furuta 3/30/99 38 19

Message slots A number of fixed-length message slots circulate around the network (ring structure) Site ready to transmit waits for an empty message slot to arrive, inserts its (fixed-length) information into the slot Receiving slot removes message, reuses the message slot for its own message or recirculates empty message slot onto the network CPSC 410--Richard Furuta 3/30/99 39 Network design strategies ISO 7-layer network model Communication network partitioned into multiple layers Each layer (logically) communicates with corresponding layer on remote system Systems agree on protocols for each of the layers Physically, a message starts at (or above) the toplevel layer and is passed through each lower level in turn CPSC 410--Richard Furuta 3/30/99 40 20

ISO 7-layer network model Physical layer Data-link layer Network layer Transport layer Session layer Presentation layer Application layer CPSC 410--Richard Furuta 3/30/99 41 ISO 7-layer network model Physical layer Ð Handle mechanical and electrical details of the physical transmission of a bit stream Data-link layer Ð Handles frames (fixed-length parts of packets), including any error detection and recovery that occurred in the physical layer Network layer Ð Provides connections and routes packets in the communication network, including handling the address of outgoing packets, decoding the address of incoming packets, and maintaining routing information for proper response to changing load levels CPSC 410--Richard Furuta 3/30/99 42 21

ISO 7-layer network model Transport layer Ð Responsible for low-level network access and for message transfer between clients, including partitioning messages into packets, maintaining packet order (or not), controlling flow, and generating physical addresses CPSC 410--Richard Furuta 3/30/99 43 ISO 7-layer network model Session layer Ð Implements sessions, or process-to-process communication protocols Presentation layer Ð Resolves the difference in formats among the various sites in the network, including character conversions, and half duplex/full duplex (echoing) Application layer Ð Interacts directly with users; deals with file transfer, remote-login protocols and electronic mail, as well as schemas for distributed databases CPSC 410--Richard Furuta 3/30/99 44 22