Networks 1 CS502 Spring 2006 Network Input & Output CS-502 Operating Systems Spring 2006.

Slides:



Advertisements
Similar presentations
TCP/IP MODEL Maninder Kaur
Advertisements

© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSI Transport Layer Network Fundamentals – Chapter 4.
Chapter 7: Transport Layer
OSI Model OSI MODEL.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Transport Layer Introduction to Networking.
Lecture 7 Transport Layer
CCNA 1 v3.1 Module 11 Review.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
Networks & Communications CS-4513, D-Term Networks & Communication (continued) CS-4513 Distributed Computing Systems (Slides include materials from.
Socket Programming.
1 Java Networking – Part I CS , Spring 2008/9.
Introduction to Transport Layer. Transport Layer: Motivation A B R1 R2 r Recall that NL is responsible for forwarding a packet from one HOST to another.
Semester Copyright USM EEE442 Computer Networks Introduction: Protocols En. Mohd Nazri Mahmud MPhil (Cambridge, UK) BEng (Essex, UK)
Protocols and the TCP/IP Suite
Computer Network Architecture and Programming
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
Networks and Communication CS-4513 D-term Networks and Communication CS-4513 Distributed Computing Systems (Slides include materials from Operating.
CS-3013 & CS-502, Summer 2006 Network Input & Output1 CS-3013 & CS-502, Summer 2006.
NetworksCS-4513, D-Term Introduction to Networks CS-4513 Distributed Computing Systems (Slides include materials from Operating System Concepts,
 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.
Communication Network Protocols ----Krishna Priyanka Chebrolu.
Reference Model 1. Layered network Why network are layered ?! -Easy to change -Easy to troubleshoot -Give general idea of each layer 2.
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.
Data Communications and Networks
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Hands-On Microsoft Windows Server 2003 Networking Chapter Three TCP/IP Architecture.
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 9.
Presentation on Osi & TCP/IP 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.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
SEED Infotech Pvt. Ltd. 1 Networking in Java. SEED Infotech Pvt. Ltd. 2 Objectives of This Session Describe issues related to any type of network using.
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
1 7-Oct-15 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Component 9 – Networking and Health Information Exchange Unit 1-1 ISO Open Systems Interconnection (OSI) This material was developed by Duke University,
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
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)
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
Networking Basics CCNA 1 Chapter 11.
Institute of Technology Sligo - Dept of Computing Chapter 12 The Transport Layer.
CHAPTER 4 PROTOCOLS AND THE TCP/IP SUITE Acknowledgement: The Slides Were Provided By Cory Beard, William Stallings For Their Textbook “Wireless Communication.
Advanced UNIX programming Fall 2002, lecture 16 Instructor: Ashok Srinivasan Acknowledgements: The syllabus and power point presentations are modified.
1 Chapter 4. Protocols and the TCP/IP Suite Wen-Shyang Hwang KUAS EE.
Protocol Suits and Layering Models OSI Model Dr. Abraham UTPA.
Transmission Control Protocol (TCP) Internet Protocol (IP)
Internet and Intranet Fundamentals Class 1 Sessions A & B.
Advanced Higher Computing Computer Networking Topic 1: Network Protocols and Standards.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
1 14-Jun-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 OSI transport layer CCNA Exploration Semester 1 Chapter 4.
Computer Engineering and Networks, College of Engineering, Majmaah University Protocols OSI reference MODEL TCp /ip model Mohammed Saleem Bhat
OSI Model OSI MODEL. Communication Architecture Strategy for connecting host computers and other communicating equipment. Defines necessary elements for.
OSI Model OSI MODEL.
The Transport Layer Implementation Services Functions Protocols
Chapter 9: Transport Layer
Instructor Materials Chapter 9: Transport Layer
THE OSI MODEL By: Omari Dasent.
Introduction.
Lecturer, Department of Computer Application
DEPARTMENT OF COMPUTER SCIENCE
Understanding the OSI Reference Model
Chapter 3: Open Systems Interconnection (OSI) Model
Networks & Communication (continued)
OSI Model OSI MODEL.
CSCD 330 Network Programming
Presentation transcript:

Networks 1 CS502 Spring 2006 Network Input & Output CS-502 Operating Systems Spring 2006

Networks 2 CS502 Spring 2006 Computer Networks Much more than can be covered in this course CS 513, CS 577 Outline Protocol Stack Kinds of network connections Socket interface Textbook: Networking is spread out over multiple chapters. Distributed Computing I/O Devices Memory Management –Buffer allocation Real Time OS

Networks 3 CS502 Spring 2006 Computer A Process 1 Computer B Process i Computer C Process j The Network

Networks 4 CS502 Spring 2006 Network Goal Allow activities on multiple computer systems to communicate with each other Shared memory (or data) Message passing Remote Procedure Call Create abstractions that make these (relatively) transparent

Networks 5 CS502 Spring 2006 Principal Abstraction – Socket Originally created in BSD Unix Subsequently in most OS’s Allows opening a connection between two processes across network

Networks 6 CS502 Spring 2006 Network Stack 1983 – Open System Interconnection (OSI) 7 layer Reference Model –Working group of the International Standards Organization (ISO) –Defines seven layers Describe how applications –Running upon network-aware devices Communicate with each other –Most day-to-day protocols work on a slightly modified layer system E.g. TCP/ IP uses a 6-rather than a 7-layer model

Networks 7 CS502 Spring 2006 Network Stack (continued) Arrived at 7 layer model –Software architecture –Created where a different layer of abstraction is needed –Well defined function –Layer chosen with international standards being defined –Boundaries chosen minimize information flow across interfaces –Number of layers: Large enough –Distinct functions need not be thrown together –In the same layer out of necessity Small enough –Architecture does not become unwieldy

Networks 8 CS502 Spring 2006 The OSI 7-layer model (in a nutshell) Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer

Networks 9 CS502 Spring 2006 The OSI 7-layer model (continued) Layer 1 – Physical Layer –Defines the physical and electrical characteristics of the network. Transmitting of raw bits over the communication channel Layer 2 – Data Link Layer –Take the raw transmission facility and transform it into a line that appears free of errors to layer 3. Error correcting coding (e.g. FEC) Rate Control (Slow device not overrun by high speed device) Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer

Networks 10 CS502 Spring 2006 The OSI 7-layer model (continued) Layer 3 – Network Layer –Controlling the operation of the subnet –How packets are routed –Congestion Control –Accounting function (billing) Network Statistics –Example - IP layer (IPv4, IPv6) Differences between v4, v6 source/destination addressing –V4 – 32 bit addressing –V6 – 128 bit addressing Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer

Networks 11 CS502 Spring 2006 The OSI 7-layer model (continued) Layer 4 – Transport Layer –Accept data from layer 5 Split it up into smaller units if need be Passes these to the network layer Ensures that the packets all arrive correctly at the destination Isolates layer 5 from changes in the underlying hardware –Type of service to provide Reliable or unreliable delivery –True end-to-end layer –Example - TCP or UDP Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer

Networks 12 CS502 Spring 2006 The OSI 7-layer model (continued) Layer 5 - Session Layer –Allows users on different machines to establish sessions between them –Example SSL, RTP Layer 6 – Presentation Layer –Performs certain functions that are requested sufficiently often to warrant finding a general solution for them rather than letting each user solve the problem –Example – encoding data Layer 7 – Application Layer –User layer protocol, multiple protocols required –Example – http, ftp, smtp Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer

Networks 13 CS502 Spring 2006 Example of OSI Model Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer Sending Process Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer Receiving Process Bits DHDataDT NHData THData SHData PHData AHData

Networks 14 CS502 Spring 2006 TCP/IP – a subset Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer HTTP, DNS, Telnet, SMTP, FTP, SSH, etc. TCP-UDP IP Not Defined Device Hardware

Networks 15 CS502 Spring 2006 Some Terms Packet: –A unit of communication at Data Link layer IP Address: –A four-part “number” used by Network Layer to route a packet from one computer to another Port: –A 16-bit number used within one computer to identify who/where to send packet to Well-known port: –A port with number < 1024, used by agreement for standard services (telnet, ftp, smtp, pop, etc.)

Networks 16 CS502 Spring 2006 More Terms Socket: –End point of a communication –Usually used in pairs, one for each direction –Comprises [IP Address: Port #] Connection: –A logical linkage between pairs of sockets at two endpoints for purposes of a particular communication between those endpoints

Networks 17 CS502 Spring 2006 Establishing a Connection Process a on machine m creates a socket OS assigns a new port number q to that socket Process a attempts to open a connection to machine n:p p is a well-known port Process b on machine n is listening on p Receives request from m:q Process b forks/spawns a process/thread c to talk with m:q, then resumes listening Thread/process c Creates a new socket r for this connection Replies to m:q with return address n:r a and c continue to communicate over this pair of sockets until they are finished.

Networks 18 CS502 Spring 2006 Reliable Connections Transport layer partitions messages into packets TCP – Transmission Control Protocol Sequence number of current packet Sequence number of last packet received correctly Receiver keeps track of seq. # of packets Reassembles in right order Notify sender of missing, broken packets Sender keeps copy of each packet until receipt acknowledged Retransmits packets if no acknowledgement

Networks 19 CS502 Spring 2006 Connection-less communication UDP – User Datagram Protocol –Used when a certain number of errors can be tolerated

Networks 20 CS502 Spring 2006 Next time Will assign Project 4 – a simple HTTP server and web client –Using sockets