1 Lecture 3 Protocol Stacks and Layering Hui Zhang School of Computer Science Carnegie Mellon University 15-441 Networking, Fall 2007

Slides:



Advertisements
Similar presentations
Open System Interconnection
Advertisements

Intro (continued) and Design Principles Nick Feamster CS 3251: Computer Networking I Spring 2013.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
EEC-484/584 Computer Networks Lecture 3 Wenbing Zhao
1 Lecture 2 Protocol Stacks and Layering David Andersen School of Computer Science Carnegie Mellon University Networking, Spring 2008
Protocols and the TCP/IP Suite Chapter 4 (Stallings Book)
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.
Data Communications Architecture Models. What is a Protocol? For two entities to communicate successfully, they must “speak the same language”. What is.
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.
©Brooks/Cole, 2003 Chapter 6 Computer Networks. ©Brooks/Cole, 2003 Understand the rationale for the existence of networks. Distinguish between the three.
Lecturer: Tamanna Haque Nipa
1 Lecture 2 Protocol Stacks David Andersen School of Computer Science Carnegie Mellon University Networking, Spring 2005
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.
Chapter 1 Overview Review Overview of demonstration network
Chapter 2 Network Models
OSI Reference Model & Layered Communication Sritrusta Sukaridhoto.
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.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.
Internet Addresses. Universal Identifiers Universal Communication Service - Communication system which allows any host to communicate with any other host.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Computer Communication & Networks Lecture # 02 Nadeem Majeed Choudhary
THE OSI REFERENCE MODEL Open Systems Interconnection (OSI) International Organization for Standardization( ISO)
© McLean HIGHER COMPUTER NETWORKING Lesson 1 – Protocols and OSI What is a network protocol Description of the OSI model.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 5: Internet architecture Slides used with.
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.
Computer Networks. Introduction Computer Network2 A History Lesson of Networking 1969 – ARPANET, first packet switched network consist of UCLA, Stanford,
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.
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.
Spring 2006Computer Networks1 Chapter 2 Network Models.
OSI Model Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Network Architecture Models School of Business Eastern Illinois University © Abdou Illia, Spring 2007 (Week 2, Thursday 1/18/2007)
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:
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat.
The OSI Model A Framework for Communications David A. Abarca July 19, 2005.
Peter A. Steenkiste, SCS, CMU 1 Lecture 2 Protocol Stacks Peter Steenkiste David Eckhardt School of Computer Science Carnegie Mellon University
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.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Lecture 3 : Network Architectures 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.
Networking Using the OSI Model.
Protocols and the TCP/IP Suite
OSI LAYERS.
Computer Networks.
Chapter 1 Communication Networks and Services
Network Architecture Layered system with alternative abstractions available at a given layer.
Protocols and the TCP/IP Suite
ECEN “Internet Protocols and Modeling”
Lecture 1 Overview of Communication Networks and Services
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
Network Basics and Architectures Neil Tang 09/05/2008
Open System Interconnect (OSI).
Presentation transcript:

1 Lecture 3 Protocol Stacks and Layering Hui Zhang School of Computer Science Carnegie Mellon University Networking, Fall

2 What is a Communication Network? (from end-system point of view) l Network offers a service: move information »Bird, fire, messenger, truck, telegraph, telephone, Internet … »Another example, transportation service: move objects –Horse, train, truck, airplane... l What distinguish different types of networks? »The services they provide l What distinguish the services? »Rich of the services »Latency »Bandwidth »Loss rate »Number of end systems »Service interface »Other details –Reliability, unicast vs. multicast, real-time, message vs. byte...

3 What is a Communication Network? Infrastructure Centric View l Electrons and photons as communication medium l Links: fiber, copper, satellite, … l Switches: electronic/optic, crossbar/Banyan l Protocols: TCP/IP, ATM, MPLS, SONET, Ethernet, X.25, FrameRelay, AppleTalk, IPX, SNA l Functionalities: routing, error control, flow control, congestion control, Quality of Service (QoS) l Applications: telephony, FTP, WEB, X windows,...

4 How to Draw a Network NodeLinkNode

5 Building block: The Links l Electrical questions »Voltage, frequency, … »Wired or wireless? l Link-layer issues: How to send data? »When to talk – can everyone talk at once? »What to say – low-level format? »Stay tuned for lecture 5 l Okay… what about more nodes? NodeLinkNode

6 What Is In a Network? l End system l Switch (router) »Access switch »Core switch l Access line: linking switch and end systems l Trunk line »Between switches »Multiple connections simultaneously –Multiplexing/demultiplexing

7 What Does Switch Do? l Multiplexing: multiple demands X use a shared resource Y »multiple voice circuits on a shared trunk link »Multiple applications on top of a shared protocol stack l Switching »Packet switching »Circuit switching l Tradeoffs? Line Cards Switch Fabric Control Processor Line Cards

8 Packet vs. Circuit Switching l Packet-switching: Benefits »Ability to exploit statistical multiplexing »More efficient bandwidth usage l Packet switching: Concerns »Needs to buffer and deal with congestion: »More complex switches »Harder to provide good network services (e.g., delay and bandwidth guarantees)

9 Protocol and Service Interfaces Application End-to-end Core Network

10 What is a Protocol l An agreement between parties on how communication should take place. l Protocols may have to define many aspects of the communication. l Syntax: »Data encoding, language, etc. l Semantics: »Error handling, termination, ordering of requests, etc. l Protocols at hardware, software, all levels! l Example: Buying airline ticket by typing. l Syntax: English, ascii, lines delimited by “\n” Friendly greeting Muttered reply Destination? Pittsburgh Thank you

11 Interfaces l Each protocol offers an interface to its users, and expects one from the layers on which it builds »Syntax and semantics strike again –Data formats –Interface characteristics, e.g. IP service model l Protocols build upon each other »Add value –E.g., a reliable protocol running on top of IP »Reuse –E.g., OS provides TCP, so apps don’t have to rewrite

12 Internet Protocol Architecture IP protocol Ethernet protocol ATM protocol

13 Internet Protocol Architecture MPEG Servier program UDP IP Ethernet Driver Ethernet Driver ATM Driver IP MPEG Player program UDP IP ATM Driver RTP protocol UDP protocol IP protocol Ethernet protocol ATM protocol

14 Power of Layering l Solution: Intermediate layer that provides a single abstraction for various network technologies »O(1) work to add app/media »variation on “add another level of indirection” SMTP SSHNFS LAN Coaxial cable Fiber optic Application Transmission Media HTTP Intermediate layer

15 TCP/IP Protocol Suite l The complete TCP/IP protocol suite contains many protocols. l Not even the following graph is a complete list.

16 Application Layer »Service: Handles details of application programs. »Functions: telnet, ftp, www, AFS TCP, UDP IP, ICMP, OSPF RIP, BGP Ethernet, WiFi PoS, T1 Application Layer Transport Layer Network Layer (Data) Link Layer

17 Transport Layer l Service: Controls delivery of data between hosts. l Functions: Connection Establishment, Termination, Error control, flow control. telnet, ftp, www, AFS TCP, UDP IP, ICMP, OSPF RIP, BGP Ethernet, WiFi PoS, T1 Application Layer Transport Layer Network Layer (Data) Link Layer

18 Network Layers »Service: Moves packets inside the network. »Functions: Routing, addressing, switching, congestion control. telnet, ftp, www, AFS TCP, UDP IP, ICMP, OSPF RIP, BGP Ethernet, WiFi PoS, T1 Application Layer Transport Layer Network Layer (Data) Link Layer

19 Data Link Layer »Service: Transfer of frames over a link. »Functions: Synchronization, error control, flow control telnet, ftp, www, AFS TCP, UDP IP, ICMP, OSPF RIP, BGP Ethernet, WiFi PoS, T1 Application Layer Transport Layer Network Layer (Data) Link Layer

20 Encapsulation l As data is moving down the protocol stack, each protocol is adding layer-specific control information.

21 A Finer Grain Layering 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

22 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

23 Which Protocols Are Implemented Where? Application Operating System Protocol Software Computer Links Router Hardware Router Software (many protocols) Bridge HW/SW Application Operating System Computer Network Interface

24 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

25 Ethernet preamble A TCP / IP / Packet MAC header LLC / SNAP header IP header TCP header Data Application Presentation Session Transport Network Data link Physical Homework explores tradeoffs in header sizes, etc., with different applications

26 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”. »Usually very well defined (e.g., SONET protocol) l Interfaces are not always well standardized. »It would be hard to mix and match layers from independent implementations, e.g., windows network apps on unix (w/out compatability library) »Many cross-layer assumptions, e.g. buffer management

27 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

28 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

29 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 »Project 1 will look at the Internet Relay Chat (IRC) RFC

30 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