Lecture 3 Protocol Stacks and Layering

Similar documents
Introduction to Networks

Page # Last Time. Lecture 2 Protocol Stacks and Layering. Today s Lecture. Why protocols and layering? What is a Protocol.

Lecture 2 Protocol Stacks. Last Tuesday

Announcements Computer Networking. What is the Objective of the Internet? Today s Lecture

CS4700/CS5700 Fundaments of Computer Networks

CS3600 SYSTEMS AND NETWORKS

Computer Networks

Last Time. Lecture 2 Protocol Stacks and Layering. Today s Lecture. Why protocols and layering? Protocol and Service Levels. How to Design a Network?

Need For Protocol Architecture

Need For Protocol Architecture

Network Architecture Models

Chapter 2. Communicating Over The Network. CCNA1-1 Chapter 2

EE 122: Introduction to Computer Networks Fall 2002

Chapter 2 Communicating Over the Network

Chapter 2. Communicating Over The Network

E&CE 358: Tutorial 1. Instructor: Sherman (Xuemin) Shen TA: Miao Wang

Page # Course Description. CS 552 Computer Networks. Overview. Administrative

Computer Networking. Introduction. Quintin jean-noël Grenoble university

Page 1. Goals for Today" What Is A Protocol?" CS162 Operating Systems and Systems Programming Lecture 10. Protocols, Layering and e2e Argument"

Copyleft 2005, Binnur Kurt. Objectives

Lecture 2: Internet Architecture

Communicating over the Network

CSE 123A Computer Networks

Data Communication and Network. Introducing Networks

CS 552 Computer Networks. Fall 2008 Rich Martin

ITEC 3800 Data Communication and Network. Introducing Networks

Lecture-4. TCP/IP-Overview:

Computer Networks (Introduction to TCP/IP Protocols)

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

M242 COMPUTER NETWORS AND SECURITY

Fundamentals of Networking. OSI & TCP/IP Model. Kuldeep Sonar 1

Switching Networks (Fall 2010) EE 586 Communication and. August 27, Lecture 2. (modified by Cheung for EE586; based on K&R original) 1-1

Review of Important Networking Concepts

Raj Jain. The Ohio State University Columbus, OH

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

OSI Layer OSI Name Units Implementation Description 7 Application Data PCs Network services such as file, print,

CS4700/5700: Network fundamentals

CS 268: Internet Architecture & E2E Arguments. Today s Agenda. Scott Shenker and Ion Stoica (Fall, 2010) Design goals.

EECS 228a Lecture 1 Overview: Networks. Jean Walrand

Cisco Cisco Certified Network Associate (CCNA)

Network Reference Models

Outline / Wireless Networks and Applications Lecture 1: Course Organization and Overview. Goals of the Course. Lectures.

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

Data Communication & Computer Networks MCQ S

Organizations have developed standard sets of protocols

Peer entities. Protocol Layering. Protocols. Example

Lecture Outline. Lecture 2. OSI model and networking. The OSI model and networking. The OSI model and networking. The OSI model and networking

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

416 Distributed Systems. Networks review; Day 1 of 2 Jan 5 + 8, 2018

Advanced Data Communication Networks

OSI Reference Model. Computer Networks lab ECOM Prepared By : Eng. Motaz Murtaja Eng. Ola Abd Elatief

Schedule for Today : Wireless Networks Lecture 2: Wireless Networking Challenges. Motivation: Many many Network Components. What is a Protocol

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

Announcements. Lecture 2: Wireless Networking Challenges. Motivation: Many many Network Components. Schedule for Today. Page 1

Protocol Layers & Wireshark TDTS11:COMPUTER NETWORKS AND INTERNET PROTOCOLS

Network Model. Why a Layered Model? All People Seem To Need Data Processing

Introduction to computer networking

Computer Communication & Networks / Data Communication & Computer Networks Week # 03

CS 640: Introduction to Computer Networks. Today s Lecture. Page 1

Chapter 2 Network Models 2.1

5105: BHARATHIDASAN ENGINEERING COLLEGE NATTARMPALLI UNIT I FUNDAMENTALS AND LINK LAYER PART A

L1: Introduction. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Hands-On Network Security: Practical Tools & Methods

Operating Systems and. Computer Networks. Introduction to Computer Networks. Operating Systems and

Defining Networks with the OSI Model. Module 2

CS-461 Internetworking. Dr. Mohamed Aboutabl

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

Layered Architecture

Chapter 3 Protocols and the TCP/IP Suite

Outline. Inter-Process Communication. IPC across machines: Problems. CSCI 4061 Introduction to Operating Systems

Chapter 3: Network Protocols and Communications CCENT Routing and Switching Introduction to Networks v6.0 Instructor Planning Guide

Course goals and overview

CS 428/528 Computer Networks Lecture 01. Yan Wang

The Internet Protocol (IP)

BABU MADHAV INSTITUTE OF INFORMATION TECHNOLOGY, UTU 2017

EEC-484/584 Computer Networks

Question 7: What are Asynchronous links?

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

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

CS589: Advanced Computer Networks

Internet. 1) Internet basic technology (overview) 3) Quality of Service (QoS) aspects

0 TCP/IP overview. 0.1 The Internet

Additional Material. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science Information Network I/No.

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

Networking Applications

Networking and Internetworking 1

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

Course on Computer Communication and Networks. Lecture 1 Chapter 1: Introduction Part A: Internet, Protocol Layering and Data

Networking for Data Acquisition Systems. Fabrice Le Goff - 14/02/ ISOTDAQ

QUESTION BANK EVEN SEMESTER

How does the Internet Look Like?

The Data Link Layer. 32 PART I Networking Basics

03 The Internet Model and TCP/IP

ก ก Information Technology II

Lecture 3. The Network Layer (cont d) Network Layer 1-1

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

TRANSMISSION CONTROL PROTOCOL. ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

Computer Communication Networks

Transcription:

Lecture 3 Protocol Stacks and ing Hui Zhang School of Computer Science Carnegie Mellon University 15-441 Networking, Fall 2007 http://www.cs.cmu.edu/~srini/15-441/f07/ 1

What is a Communication Network? (from end-system point of view) Network offers a service: move information» Bird, fire, messenger, truck, telegraph, telephone, Internet» Another example, transportation service: move objects Horse, train, truck, airplane... What distinguish different types of networks?» The services they provide 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... 2

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

How to Draw a Network Node Link Node 4

Building block: The Links Electrical questions» Voltage, frequency,» Wired or wireless? Node Link Node 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 Okay what about more nodes? 5

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

What Does Switch Do? 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 Switching» Packet switching» Circuit switching Tradeoffs? Control Processor Switch Fabric Line Cards Line Cards 7

Packet vs. Circuit Switching Packet-switching: Benefits» Ability to exploit statistical multiplexing» More efficient bandwidth usage 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) 8

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

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

Interfaces 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 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 11

Internet Protocol Architecture FTP program FTP protocol FTP program TCP TCP protocol TCP IP IP protocol IP IP protocol IP Ethernet Driver Ethernet protocol Ethernet Driver ATM Driver ATM protocol ATM Driver 12

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

Power of ing 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 Application SMTP SSH NFS HTTP Intermediate layer Transmission Media Coaxial cable Fiber optic 802.11 LAN 14

TCP/IP Protocol Suite The complete TCP/IP protocol suite contains many protocols. Not even the following graph is a complete list. User Process User Process User Process User Process Application TCP UDP Transport ICMP IP IGMP Network ARP Hardware Interface RARP Link Media 15

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

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

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

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

Encapsulation As data is moving down the protocol stack, each protocol is adding layer-specific control information. Application User data Application Header User data TCP TCP Header Application data IP TCP segment Ethernet Driver Ethernet Header IP Header IP Header TCP Header TCP Header IP datagram Ethernet frame Application data Application data Ethernet Trailer 20

A Finer Grain ing Model The Open Systems Interconnection (OSI) Model. 7 Application Application 6 Presentation Presentation 5 Session Session 4 Transport Transport 3 Network Network Network 2 Data Data link link Data Data link link Data Data link link 1 Physical Physical Physical 21

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

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

Example: Sending a Web Page Http Http hdr hdr TCP TCP header header Web Web page page Application payload... Application Presentation Session Transport Network Data Data link link Physical 24

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

Limitations of the ed Model Some layers are not always cleanly separated.» Inter-layer dependencies in implementations for performance reasons» Some dependencies in the standards (header checksums) Higher layers not always well defined.» Session, presentation, application layers Lower layers have sublayers.» Usually very well defined (e.g., SONET protocol) 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 26

Standardization Key to network interoperability. 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 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 27

Relevant Standardization Bodies ITU-TS - Telecommunications Sector of the International Telecommunications Union.» government representatives (PTTs/State Department)» responsible for international recommendations 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 IEEE - Institute of Electrical and Electronics Engineers.» responsible for many physical layer and datalink layer standards ISO - International Standards Organization.» covers a broad area 28

The Internet Engineering Task Force The Internet society.» Oversees the operations of the Internet 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 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 29

Higher Level Standards Many session/application level operations are relevant to networks.» encoding: MPEG, encryption,...» services: electronic mail, newsgroups, HTTP,...» electronic commerce,... Standards are as important as for lowerlevel networks: interoperability.» defined by some of the same bodies as the low-level standards, e.g. IETF 30