OS Fall’02 Introduction to Networking and Distributed Systems Operating Systems Fall 2002.

Slides:



Advertisements
Similar presentations
OSI Model OSI MODEL.
Advertisements

OSI Model OSI LAYER / MODEL.
Networks & Communications CS-4513, D-Term Networks & Communication (continued) CS-4513 Distributed Computing Systems (Slides include materials from.
CS 582 / CMPE 481 Distributed Systems Communications.
Socket Programming.
04/26/2004CSCI 315 Operating Systems Design1 Computer Networks.
Inside the Internet. INTERNET ARCHITECTURE The Internet system consists of a number of interconnected packet networks supporting communication among host.
Networks 1 CS502 Spring 2006 Network Input & Output CS-502 Operating Systems Spring 2006.
CS335 Networking & Network Administration Tuesday, April 20, 2010.
CS-3013 & CS-502, Summer 2006 Network Input & Output1 CS-3013 & CS-502, Summer 2006.
TCP: Software for Reliable Communication. Spring 2002Computer Networks Applications Internet: a Collection of Disparate Networks Different goals: Speed,
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
OIS Model TCP/IP Model.
1 Protocol Interaction (ISO’s Open Systems Interconnection (OSI model)) the 7 layers.
Protocols and the TCP/IP Suite Chapter 4. Multilayer communication. A series of layers, each built upon the one below it. The purpose of each layer is.
Process-to-Process Delivery:
Lect3..ppt - 09/12/04 CIS 4100 Systems Performance and Evaluation Lecture 3 by Zornitza Genova Prodanoff.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
Review: – computer networks – topology: pair-wise connection, point-to-point networks and broadcast networks – switching techniques packet switching and.
Chapter 2 Network Models
Presentation on Osi & TCP/IP MODEL
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Computer Communication & Networks Lecture # 02 Nadeem Majeed Choudhary
© McLean HIGHER COMPUTER NETWORKING Lesson 1 – Protocols and OSI What is a network protocol Description of the OSI model.
Layer Architecture Layer architecture simplifies the network design. It is easy to debug network applications in a layered architecture network. The network.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
1 OSI Reference Model. 2 Agenda The Layered Model Layers 1 & 2: Physical & Data Link Layers Layer 3: Network Layer Layers 4–7: Transport, Session, Presentation,
TCP/IP TCP/IP LAYERED PROTOCOL TCP/IP'S APPLICATION LAYER TRANSPORT LAYER NETWORK LAYER NETWORK ACCESS LAYER (DATA LINK LAYER)
TCP/IP Transport and Application (Topic 6)
1 The Internet and Networked Multimedia. 2 Layering  Internet protocols are designed to work in layers, with each layer building on the facilities provided.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
Internetworking Internet: A network among networks, or a network of networks Allows accommodation of multiple network technologies Universal Service Routers.
TCP/IP Honolulu Community College Cisco Academy Training Center Semester 2 Version 2.1.
Computer Security Workshops Networking 101. Reasons To Know Networking In Regard to Computer Security To understand the flow of information on the Internet.
Network Protocols n ISO OSI 7-layer model n TCP/IP suite l TCP/UDP l IP l Ethernet/Token Ring l ICMP.
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
1 Chapter Overview Network Communications The OSI Reference Model.
1 Chapter Overview Network Communications The OSI Reference Model.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني.
Protocol Suits and Layering Models OSI Model Dr. Abraham UTPA.
Net 221D:Computer Networks Fundamentals
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat.
Protocol Layering Chapter 11.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
Data Communication Network Models
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat.
Computer Engineering and Networks, College of Engineering, Majmaah University Protocols OSI reference MODEL TCp /ip model Mohammed Saleem Bhat
Roadmap  Introduction to Basics  Computer Network – Components | Classification  Internet  Clients and Servers  Network Models  Protocol Layers.
11/18/2016Basic TCP/IP Networking 1 TCP/IP Overview Basic Networking Concepts.
OSI Model OSI MODEL. Communication Architecture Strategy for connecting host computers and other communicating equipment. Defines necessary elements for.
OSI Model OSI MODEL.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
OSI Protocol Stack Given the post man exemple.
Lecturer, Department of Computer Application
Understand the OSI Model Part 2
DEPARTMENT OF COMPUTER SCIENCE
Process-to-Process Delivery:
OSI Model OSI MODEL.
OSI Reference Model Unit II
Process-to-Process Delivery: UDP, TCP
The TCP/IP Model.
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Unit – III Network Essentials
Presentation transcript:

OS Fall’02 Introduction to Networking and Distributed Systems Operating Systems Fall 2002

OS Fall’02 Overview  Intro to Networking Review of Basic principles:  layers, protocols, etc … TCP/IP and the Internet Implementation issues  Intro to Distributed systems client/server

OS Fall’02 Communication in everyday life I like rabbits Ik hou van konijnen L: Dutch J ’ aime les lapins Ik hou van konijnen L: Dutch Ik hou van konijnen L: Dutch Fax# Ik hou van konijnen L: Dutch Fax#

OS Fall’02 Computer based communication mail encode message rep

OS Fall’02 Computer based communication mail encode messagerep mail encode packets messreppktagereppkt

OS Fall’02 Computer based communication mail encode packets route messagereppktaddr

OS Fall’02 Computer based communication mail encode packets route messagereppktaddrECC error

OS Fall’02 Layered organization  Computer networks are structured as layer (protocol) stacks  Each layer provides services to the layer above  Layers communicate by protocols protocol service API

OS Fall’02 Protocols  Protocol is a collection of message formats and their interpretation needed to implement the layer service format: header+data headers convey the protocol specific information

OS Fall’02 Standards and openness  Protocols must be standardized for interoperability  Layer APIs must be standardized for portability  Existing standards: ISO OSI Layered model ( “ eight-layer model ” ) TCP/IP is a de-facto model of the Internet

OS Fall’02 ISO OSI Layered model Application Presentation Session Transport Network Data Link Physical Application Presentation Session Transport Network Data Link Physical

OS Fall’02 Lower OSI Layers  Physical layer: Voltages to represent 0/1, how many bits per second can be sent, simplex/duplex, hardware  Data Link layer: Grouping bits into frames, point-to-point reliability, error detection/correction

OS Fall’02 Network and Transport  Network layer: Getting data from one host to another  Routing, addressing, fragmentation/reassembly  Transport layer: End-to-end application connectivity Reliable transport connection:  Messages are not lost and delivered in the order they were sent  Transmission Control Protocol (TCP)

OS Fall’02 Session and Presentation  Session layer: Enhanced transport layer: session control  Presentation layer: Message structure: e.g., records Data representation compression and encryption

OS Fall’02 Application Layer  General-purpose high level services and abstractions File transfer (FTP) Hyper-text transfer (HTTP) Remote Procedure Call (RPC) Network File System (NFS) Object Request Brokers  CORBA, Java RMI Etc...

OS Fall’02 TCP/IP Protocol Suite Application Presentation Session Transport Network Datalink Physical Application TCP/UDP IP Physical OSI model TCP/IP protocol suite Network access OS Hardware

OS Fall’02 Physical Networks  Each computer is directly attached to some physical network Network Interface Cards (NIC)+cables Usually limited geographical scale (Local Area Network=LAN)  MAN, WAN supports routing, addressing, network access within its boundaries  LAN: Ethernet (10Mbit/sec, 100Mbit/sec), Token ring, Fibre channel, etc...

OS Fall’02 Physical networks characteristics  Bandwidth: Number of bits per second  Latency: The time it takes to send a single bit  Ethernet: Shared bus bandwidth: 10Mbit/sec Switched Ethernet bw: 100Mbit/sec

OS Fall’02 Ethernet LAN  Shared bus  Each NIC has a unique address  Messages are broadcast If collision occurs, wait for a randomly chosen time period and retry Maximum Transfer Unit (MTU) = 1536 Bytes

OS Fall’02 Internet protocol (IP)  Creates an illusion of a single physical network over a collection of heterogeneous LANs Global addressing, routing Fragmentation, reassembly to overcome differences in the MTU sizes  Architecture: LANs interconnected by routers (gateways)

OS Fall’02 Internet Protocol (IP)  Connectionless Each packet is routed independently based on the IP address in the header  Connections are supported by the transport layer (TCP)

OS Fall’02 The Internet

OS Fall’02 The Internet

OS Fall’02 TCP/IP transport protocols  Connectivity between application end- points Application end-point is uniquely identified by (IP address,port number)  Transmission Control Protocol (TCP) Reliable end-to-end byte stream, connection oriented  User Datagram Protocol (UDP) Unreliable, connectionless

OS Fall’02 Implementation issues  Reliability  Flow control  Routing

OS Fall’02 Reliability  Physical networks are inherently unreliable Messages can be both: corrupted and lost  Dealing with corruption Error detection, error correction  Dealing with message loss retransmission

OS Fall’02 Error detection/correction  Parity bit is the simplest error detection technique Parity bit is the binary sum of the message bits Detects corruption of a single bit  More parity bits are needed for error correction

OS Fall’02 Error correction  Forward Error Correction (FEC) A bit at position holds parity of bits whose positions includes in its binary representation  The positions of wrong parity bits yield the position of the erroneous bit Corrects a single bit error  In practice more sophisticated techniques are used (e.g., CRC)

OS Fall’02 Dealing with message loss  Timeouts Send a message, wait for an acknowledgment (ACK) If an acknowledgment does not arrive during a predefined timeout period: retransmit the message  If ack is lost a message can be sent more than once!  Negative acknowledgments

OS Fall’02 Flow control  Sender and received have limited buffer space to hold outgoing and incoming messages  Flow control is needed to avoid buffer overflow  The simplest technique: The receiver buffer size in known in advance Sender never sends a new message until it knows that the receiver has enough space to accommodate it

OS Fall’02 Routing  Each router holds a table indicating the next router (hop) on the way to each destination The next hop router must reside on the same physical network (LAN)  Routers exchange messages to update their routing tables  Protocols: Distance Vector (Bellman- Ford), Open Shortest Path First (OSPF)

OS Fall’02 Distributed Systems  A distributed system (middleware) is an implementation of an application level service  Distributed systems support high level abstractions  Remote Procedure Call (RPC): everything looks like a local function call  Network File System (NFS): everything looks like a local file  Object Based systems: Everything looks like a local object

OS Fall’02 Client/Server Paradigm  Distributed systems are usually structured according to the client/server model  A server implements a service  Clients request service from the server using a pre-defined protocol  WWW, FTP, Telnet, NFS are all client/server based

OS Fall’02 Internet Well-known services  Well-known services must be supported by all the computers connected to the Internet Ftp, telnet, rlogin, nfs  Domain Name Service (DNS) Symbolic name IP address  Uniquely identified by the port number of the server HTTP: 80, FTP: 20

OS Fall’02 RPC  A server registers a procedure implementation  A client calls a function which looks local to the client E.g., add(a,b)  The RPC implementation packs (marshals) the function name and parameter values into a message and sends it to the server

OS Fall’02 RPC  Server accepts the message, unpacks (unmarshals) parameters and calls the local function  Return values is then marshaled into a message and sent back to the client  Marshaling/unmarshaling must take into account differences in data representation

OS Fall’02 RPC  Transport: both TCP and UDP  Data types: atomic types and non- recursive structures  Pointers are not supported  Complex memory objects (e.g., linked lists) are not supported  NFS is built on top of RPC

OS Fall’02 Next:  Storage Area Networks and  Modern storage architectures