Peter A. Steenkiste, SCS, CMU 1 Lecture 2 Protocol Stacks Peter Steenkiste David Eckhardt School of Computer Science Carnegie Mellon University 15-441.

Slides:



Advertisements
Similar presentations
Click to continue Network Protocols. Click to continue Networking Protocols A protocol defines the rules of procedures, which computers must obey when.
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 3: Network Protocols and Communications Introduction to Networks.
Chapter 7 Data Link Layer
Lecture 2 Protocol Layers CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.
PROTOCOLS AND ARCHITECTURE Lesson 2 NETS2150/2850.
1 Lecture 2 Protocol Stacks and Layering David Andersen School of Computer Science Carnegie Mellon University Networking, Spring 2008
1-1 Introduction to Computer Networks and Data Communications.
Communicating over the Network
Protocols and the TCP/IP Suite
Chapter 1 Read (again) chapter 1.
EE 4272Spring, 2003 EE4272: Computer Networks Instructor: Tricia Chigan Dept.: Elec. & Comp. Eng. Spring, 2003.
Protocol Reference Model of OSI
Protocol Architecture The “Common Language”. Copyright by Jorg Liebeherr 98, 99 Need for Protocols Protocols are a set of rules and conventions. By enforcing.
 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.
Lecturer: Tamanna Haque Nipa
1 Lecture 2 Protocol Stacks David Andersen School of Computer Science Carnegie Mellon University Networking, Spring 2005
Computer Networks Lecture 1 & 2 Introduction and Layer Model Approach Lahore Leads University.
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.
OSI AND TCP/IP MODELS. Outline Introduction OSI Model TCP/IP Model IPv4 vs. IPv6.
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
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.
Protocol Architectures. Simple Protocol Architecture Not an actual architecture, but a model for how they work Similar to “pseudocode,” used for teaching.
1.1 What is the Internet What is the Internet? The Internet is a shared media (coaxial cable, copper wire, fiber optics, and radio spectrum) communication.
1 CS 640: Introduction to Computer Networks Aditya Akella Lecture 2 Layering, Protocol Stacks, and Standards.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Introduction Slide 1 A Communications Model Source: generates.
Introduction to Networks CS587x Lecture 1 Department of Computer Science Iowa State University.
Chapter 1. Introduction. By Sanghyun Ahn, Deot. Of Computer Science and Statistics, University of Seoul A Brief Networking History §Internet – started.
Networking and Internet Dr. John P. Abraham Professor UT-RGV.
Computer Networks Chapter 2 – Network Models. Summer 2006Computer Networks2 Communication Tasks  The tasks given below need to be taken care of in any.
Computer Networks. Introduction Computer Network2 A History Lesson of Networking 1969 – ARPANET, first packet switched network consist of UCLA, Stanford,
Spring 2006Computer Networks1 Chapter 2 Network Models.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_b Protocol Layering Instructor: Dr. Li-Chuan Chen Date: 09/15/2003 Based in part upon slides of Prof.
Ch 1. Computer Networks and the Internet Myungchul Kim
Chapter 1 Communication Networks and Services Network Architecture and Services.
Computer Security Workshops Networking 101. Reasons To Know Networking In Regard to Computer Security To understand the flow of information on the Internet.
1 Lecture 3 Protocol Stacks and Layering Hui Zhang School of Computer Science Carnegie Mellon University Networking, Fall 2007
Spring 2006Computer Networks1 Chapter 2 Network Models.
William Stallings Data and Computer Communications
CHAPTER 4 PROTOCOLS AND THE TCP/IP SUITE Acknowledgement: The Slides Were Provided By Cory Beard, William Stallings For Their Textbook “Wireless Communication.
1 Chapters 2 & 3 Computer Networking Review – The TCP/IP Protocol Architecture.
1 Chapter 4. Protocols and the TCP/IP Suite Wen-Shyang Hwang KUAS EE.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني.
Net 221D:Computer Networks Fundamentals
1 Protocol Layering Myungchul Kim Tel:
1 Review – The Internet’s Protocol Architecture. Protocols, Internetworking & the Internet 2 Introduction Internet standards Internet standards Layered.
1 Network Architecture Section Network Architecture Challenge –Fill the gap between hardware capabilities and application expectations, and to.
Advanced Higher Computing Computer Networking Topic 1: Network Protocols and Standards.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Roadmap  Introduction to Basics  Computer Network – Components | Classification  Internet  Clients and Servers  Network Models  Protocol Layers.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Lecture 3 : Network Architectures 1.
Chapter 3: Network Protocols and Communications
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.
Networking Using the OSI Model.
Computer Networks.
Chapter 1 Communication Networks and Services
Networking and Internet
Networking and Internet
Protocols and the TCP/IP Suite
Lecture 1 Overview of Communication Networks and Services
OSI Model The Seven Layers
Network Architecture Models
Protocols and the TCP/IP Suite
Lecture 2 Protocol Stacks and Layering
OSI Reference Model Unit II
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Open System Interconnect (OSI).
Presentation transcript:

Peter A. Steenkiste, SCS, CMU 1 Lecture 2 Protocol Stacks Peter Steenkiste David Eckhardt School of Computer Science Carnegie Mellon University Networking, Spring

Peter A. Steenkiste, SCS, CMU 2 Today’s Lecture l Some history. l What is a protocol. l Protocol stacks. l Standards organizations. l Application layer.

Peter A. Steenkiste, SCS, CMU 3 Some History: The Early Days l Early packet switching networks (61-72). »Definition of packet switching »Early DARPA net: up to tens of nodes –single network –discovery of “interesting” applications »Less than 100 years after telephone (Alexander Bell, 1876) l Internetworking (72-80). »Multiple networks with inter-networking: networks are independent, but need some rules for interoperability »Key concepts: best effort service, “stateless” routers, decentralized control (very different from telephones!) »Basis for Internet: TCP, IP, congestion control, DNS, … »Rapid growth: 10 to hosts in 10 years –Driven by NSF net, research community

Peter A. Steenkiste, SCS, CMU 4 Next Step: Commercialization l Industry interest in networking encourages first commercial network deployment. »In part also encouraged by NSFNET policies l Introduction of the Web makes networks more accessible. »Killer application »Good user interface that is accessible to anybody »Network access on every desktop and in every home l Today: e-commerce. »Integral part of the economy »Part of every day life: entertainment, news,..

Peter A. Steenkiste, SCS, CMU 5 Current Trends l Access for mobile users: » is becoming ubiquitous »PDA/cellphone access l Networked sensors: »Have always existed in “embedded” networks, e.g. X10 »Integration into broader network infrastructure next l What else?

Peter A. Steenkiste, SCS, CMU 6 Alexander Bell versus the Internet l Analog voice versus digital information. l Permanent circuit versus packet switched. Analog Signal “Digital” Signal PghSF PghSF

Peter A. Steenkiste, SCS, CMU 7 Taxonomy of Communication Networks Communication Networks Broadcast Networks Switched Networks Circuit-Switched Networks Packet-Switched Networks Datagram Networks Virtual Circuit Networks

Peter A. Steenkiste, SCS, CMU 8 Different Network Views l A network is a shared infrastructure that supports communication for many users. »Sharing view: how do users share the network? l Many network technologies exist. »Technology view: how do the technologies coexist? l Networks are owned and managed by multiple organizations. »Management view: how does global communication take place? l Networks cover different geographic areas. »Geographic view: network diameter? l Networks run many protocols that are responsible for different functions. »Protocol view: how are the many protocols coordinated?

Peter A. Steenkiste, SCS, CMU 9 Protocols l An agreement between parties on who communication should take place. l Protocols may have to define many aspects of the communication. »Data encoding, language, error recovery, termination conditions,.. l Network protocols can exist between computer programs or hardware components. Can you give me some directions? Certainly, where would you like to go? Heinz Hall Go left at the next light Thank you

Peter A. Steenkiste, SCS, CMU 10 More on Protocols l Protocols are the key to interoperability. »The hardware/software of communicating parties are often not built by the same vendor –Sun workstation with PC, 3COM with Cisco bridge,.. »Yet they can communicate because they use the same protocol l Protocols exist at many levels. »Application level protocols, e.g. access to mail, distribution of bboards, web access,.. »Protocols at the hardware level allow two boxes to communicate over a link, e.g. the Ethernet protocol »Intermediate protocols can “add value” to a lower-level protocol, e.g. provide a reliable communication service over an unreliable link

Peter A. Steenkiste, SCS, CMU 11 Too Many Network Components Application Operating System Protocol Software Computer Links Router Hardware Router Software (many protocols) Bridge HW/SW Application Operating System Computer Network Interface

Peter A. Steenkiste, SCS, CMU 12 What is a Communication Network l Electrons and photons as communication medium. l Links: fiber, copper, wireless,.. l Switches: electronic, optical, crossbar, Banyan,.. l Protocols: Ethernet, X.25, SONET, Framerelay, IP, TCP, HTTP, … l Functionality: routing, error control, flow control, congestion control, QoS, security,.. l Applications: FTP, web, games, telephone, video streaming,..

Peter A. Steenkiste, SCS, CMU 13 How to Organize the Network? WebFTPVoiceTelnet Tw. PairCoaxWirelessOptical Video

Peter A. Steenkiste, SCS, CMU 14 Try Again: How to Organize the Network? WebFTPVoiceTelnet Tw. PairCoaxWirelessOptical Intermediate Layer

Peter A. Steenkiste, SCS, CMU 15 Types of Protocols l Core network: responsible for transferring data between a sending and receiving host. l End-to-end protocols: present a network service to applications and users. »May add value to the core network protocols host

Peter A. Steenkiste, SCS, CMU 16 Protocol and Service Levels Application End-to-end Core Network

Peter A. Steenkiste, SCS, CMU 17 A Layer Network Model The Open Systems Interconnection (OSI) Model. Application Presentation Session Transport Network Data link Physical Network Data link Physical Application Presentation Session Transport Network Data link Physical

Peter A. Steenkiste, SCS, CMU 18 OSI Motivation l Standard way of breaking up a system in a set of components, but the components are organized as a set of layers. »Only horizontal and vertical communication »Components/layers can be implemented and modified in isolation l Each layer offers a service to the higher layer, using the services of the lower layer. l “Peer” layers on different systems communicate via a protocol. »higher level protocols (e.g. TCP/IP, Appletalk) can run on multiple lower layers »multiple higher level protocols can share a single physical network

Peter A. Steenkiste, SCS, CMU 19 OSI Functions l (1) Physical: transmission of a bit stream. l (2) Data link: flow control, framing, error detection. l (3) Network: switching and routing. l (4) Transport: reliable end to end delivery. l (5) Session: managing logical connections. l (6) Presentation: data transformations. l (7) Application: specific uses, e.g. mail, file transfer, telnet, network management. Multiplexing takes place in multiple layers

Peter A. Steenkiste, SCS, CMU 20 Example: Sending a Web Page Http hdr Web page TCP header TCP header... Application payload Application payload Application Presentation Session Transport Network Data link Physical

Peter A. Steenkiste, SCS, CMU 21 Ethernet preamble A TCP / IP / Packet MAC header LLC / SNAP header IP header TCP header Data Application Presentation Session Transport Network Data link Physical

Peter A. Steenkiste, SCS, CMU 22 Multiplexing and Demultiplexing l There may be multiple implementations of each layer. »How does the receiver know what version of a layer to use? l Each header includes a demultiplexing field that is used to identify the next layer. »Filled in by the sender »Used by the receiver IP TCP IP TCP V/HL TOS Length ID Flags/Offset TTL Prot. H. Checksum Source IP address Destination IP address Options..

Peter A. Steenkiste, SCS, CMU 23 Different Sources of Components l Application: web server/browser, mail, distributed game,.. l Presentation/session. »Often part of application »Sometimes a library l Transport/network. »Typically part of the operating system l Datalink. »Often written by vendor of the network interface hardware l Physical. »Hardware: card and link Application Presentation Session Transport Network Data link Physical

Peter A. Steenkiste, SCS, CMU 24 Limitations of the Layered Model l Some layers are not always cleanly separated. »Inter-layer dependencies in implementations for performance reasons »Some dependencies in the standards (header checksums) l Higher layers not always well defined. »Session, presentation, application layers l Lower layers have “sublayers”. »Sublayers well defined in the standards l Interfaces are not really standardized. »It would be hard to mix and match layers from independent implementations »Many cross-layer assumptions, e.g. buffer management

Peter A. Steenkiste, SCS, CMU 25 The TCP/IP Model Application (plus libraries) Application (plus libraries) TCP/UDP IP/ICMP TCP/UDP IP/ICMP Data link Physical Application Presentation Session Transport Network Data link Physical

Peter A. Steenkiste, SCS, CMU 26 Local Area Network Protocols IEEE 802 standards “refine” the OSI data link layer. Application Presentation Session Transport Network Data link Physical LLC MAC Physical Upper Layer Protocols link service access points

Peter A. Steenkiste, SCS, CMU 27 The Internet Protocol Suite Application Presentation Session Transport Network Data link Physical UDPTCP Data Link Physical Applications Presentation Session The Hourglass Model

Peter A. Steenkiste, SCS, CMU 28 Standardization l Key to network interoperability. l A priori standards. »Standards are defined first by a standards committee »Risk of defining standards that are untested or unnecessary »Standard may be available before there is serious use of the technology l De facto standards. »Standards is based on an existing systems »Gives the company that developed the base system a big advantage »Often results in competing “standards” before the official standard is established

Peter A. Steenkiste, SCS, CMU 29 Relevant Standardization Bodies l ITU-TS - Telecommunications Sector of the International Telecommunications Union. »government representatives (PTTs/State Department) »responsible for international “recommendations” l T1 - telecom committee reporting to American National Standards Institute. »T1/ANSI formulate US positions »interpret/adapt ITU standards for US use, represents US in ISO l IEEE - Institute of Electrical and Electronics Engineers. »responsible for many physical layer and datalink layer standards l ISO - International Standards Organization. »covers a broad area

Peter A. Steenkiste, SCS, CMU 30 The Internet Engineering Task Force l The Internet society. »Oversees the operations of the Internet l Internet Engineering Task Force. »decides what technology will be used in the Internet »based on working groups that focus on specific issues »encourages wide participation l Request for Comments. »document that provides information or defines standard »requests feedback from the community »can be “promoted” to standard under certain conditions –consensus in the committee –interoperating implementations

Peter A. Steenkiste, SCS, CMU 31 Higher Level Standards l Many session/application level operations are relevant to networks. »encoding: MPEG, encryption,... »services: electronic mail, newsgroups, HTTP,... »electronic commerce,.... l Standards are as important as for “lower- level” networks: interoperability. »defined by some of the same bodies as the low-level standards, e.g. IETF l Interactions between layers are important. »persistent HTTP »encryption and compression »MPEG frame types