The OSI & Internet layering models



Similar documents
Lecture 2: Protocols and Layering. CSE 123: Computer Networks Stefan Savage

Internet Architecture

Lecture 1: Course Introduction" CSE 222A: Computer Communication Networks Alex C. Snoeren

The OSI and TCP/IP Models. Lesson 2

Layered Architectures and Applications

Protocols. Packets. What's in an IP packet

Lecture 1: Course Introduction. CSE 123: Computer Networks Stefan Savage

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Computer Networks CS321

CSE 3461 / 5461: Computer Networking & Internet Technologies

Data Communication Networks and Converged Networks

Topics. Computer Networks. Let s Get Started! Computer Networks: Our Definition. How are Networks Used by Computers? Computer Network Components

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

Overview of Computer Networks

How To Understand The Layered Architecture Of A Network

Ethernet. Ethernet. Network Devices

Protocol Data Units and Encapsulation

ICS 153 Introduction to Computer Networks. Inst: Chris Davison

IP Networking. Overview. Networks Impact Daily Life. IP Networking - Part 1. How Networks Impact Daily Life. How Networks Impact Daily Life

Chapter 2 - The TCP/IP and OSI Networking Models

Introduction to computer networks and Cloud Computing

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

TCP/IP Protocol Suite. Marshal Miller Chris Chase

Layered protocol (service) architecture

TCIPG Reading Group. Introduction to Computer Networks. Introduction 1-1

Computer Networks III

Protocols and Architecture. Protocol Architecture.

CPS221 Lecture: Layered Network Architecture

Architecture and Performance of the Internet

Transport and Network Layer

Overview of TCP/IP. TCP/IP and Internet

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Mobile IP Network Layer Lesson 01 OSI (open systems interconnection) Seven Layer Model and Internet Protocol Layers

Internet structure: network of networks

What is CSG150 about? Fundamentals of Computer Networking. Course Outline. Lecture 1 Outline. Guevara Noubir noubir@ccs.neu.

Lecture 28: Internet Protocols

THE TCP/IP PROTOCOL SUITE

Zarządzanie sieciami telekomunikacyjnymi

Computer Networks and the Internet

How do I get to

Chapter 9. IP Secure

Link Layer. 5.6 Hubs and switches 5.7 PPP 5.8 Link Virtualization: ATM and MPLS

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

Computer Networks Vs. Distributed Systems

THE OSI REFERENCE MODEL LES M C LELLAN DEAN WHITTAKER SANDY WORKMAN

IT4405 Computer Networks (Compulsory)

How To Understand The Internet Of S (Netware)

Communications and Computer Networks

Introduction cont. Some Structure in the Chaos. Packet switching versus circuit switching. Access networks and physical media

The OSI Model and the TCP/IP Protocol Suite

an interconnected collection of autonomous computers interconnected = able to exchange information

CSCI 362 Computer and Network Security

Computer Networks - Xarxes de Computadors

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

PART OF THE PICTURE: The TCP/IP Communications Architecture

CSCI Topics: Internet Programming Fall 2008

Communication Networks. MAP-TELE 2011/12 José Ruela

Network Models OSI vs. TCP/IP

How To Design A Layered Network In A Computer Network

Data Communication Networks

Introduction Chapter 1. Uses of Computer Networks

Mathatma Gandhi University

CSCI-1680 :: Computer Networks

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Communication Networks. MAP-TELE 2011/12 José Ruela

IT Data Communication and Networks (Optional)

UPPER LAYER SWITCHING

The OSI model has seven layers. The principles that were applied to arrive at the seven layers can be briefly summarized as follows:

Chapter 5. Data Communication And Internet Technology

ESSENTIALS. Understanding Ethernet Switches and Routers. April 2011 VOLUME 3 ISSUE 1 A TECHNICAL SUPPLEMENT TO CONTROL NETWORK

Chapter 1 Computer Networks and the Internet

Strategies. Addressing and Routing

The Internet. Charging for Internet. What does 1000M and 200M mean? Dr. Hayden Kwok-Hay So

Based on Computer Networking, 4 th Edition by Kurose and Ross

Network Security. Vorlesung Kommunikation und Netze SS 10 E. Nett

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Lecture (02) Networking Model (TCP/IP) Networking Standard (OSI) (I)

Network Edge and Network Core

Computer Networks. Definition of LAN. Connection of Network. Key Points of LAN. Lecture 06 Connecting Networks

Technical Support Information Belkin internal use only

Life of a Packet CS 640,

What is Network Latency and Why Does It Matter?

CSE331: Introduction to Networks and Security. Lecture 6 Fall 2006

524 Computer Networks

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

Encapsulating Voice in IP Packets

CS101 Lecture 19: Internetworking. What You ll Learn Today

Introduction to Computer Networks

CompTIA Network+ (Exam N10-005)

Industrial Networks & Databases. Protocols and Networks - Device Bus - - Field Bus -

Lecture 3: Signaling and Clock Recovery. CSE 123: Computer Networks Stefan Savage

Using MIS 3e Chapter 6A Appendix

How To Understand The Internet From A Telephone To A Computer (For A Computer)

CCNA 1: Networking Basics. Cisco Networking Academy Program Version 3.0

architecture: what the pieces are and how they fit together names and addresses: what's your name and number?

Transcription:

CSE 123 Computer Networks Fall 2009 Lecture 2: Protocols & Layering

Today What s a protocol? Organizing protocols via layering Encoding layers in packets The OSI & Internet layering models The end-to-end d argument

There s more to networking than sending bits? Like What? Sending bits to a particular destination Sending a long message to a particular destination Detecting if there was an error Fixing the error Deciding how fast to send Making sure the message is kept private

Definitions Service: A particular networking function (e.g. message delivery) Protocol: An implementation of a service (e.g. UDP) Interface: How a protocol is manipulated (e.g. packet format) Layering Technique for organizing protocols into an ordered series of distinct abstractions The services provided by a layer depend only on the services provided by the previous, less abstract, layer

Why Layering? Application SSH FTP NFS HTTP Transmission Media Coaxial cable Fiber optic Packet radio Without layering each new application would need to be re-implemented for every network technology! Courtesy Ion Stoica

Why Layering? Solution: introduce an intermediate layer that provides a unique abstraction for various network technologies Application SSH FTP NFS HTTP Intermediate layer Transmission Media Coaxial cable Fiber optic Packet radio Courtesy Ion Stoica

Benefits of layering Encapsulation Functionality inside a layer is self-contained; one layer doesn t need to reason about other layers Modularity Can replace a layer without impacting other layers Lower layers can be reused by higher layers (e.g. TCP and UDP both are layered upon IP) One obvious ous drawback Information hiding can produce inefficient implementations Encryption layer and compression layer independent?

Who decides what goes in the layers? ISO OSI Reference Model ISO International Standard Organization OSI Open System Interconnection Designed by committee in 1978 Goal: open standard d to support a market for vendors to compete on protocol implementation and design Internet layering model Backporting of experience from ARPAnet (1969) and TCP/IP protocols (1974) Shares much of OSI design Roughly managed by the Internet Engineering Task Force (IETF)

The OSI layering Model End host Application Presentation Session Top 4 layers are end-to-end Lower 3 layers are hop-by-hop End host Application Presentation Session Transport Network node Network node Transport Network Network Network Network Datalink Datalink Datalink Datalink Physical Physical Physical Physical

Physical Layer (1) Service: move the information between two systems connected by a physical link Interface: specifies how to send a bit Protocol: coding scheme used to represent a bit, voltage levels, duration of a bit Examples: coaxial cable, optical fiber links, transmitters, receivers Courtesy Ion Stoica

Datalink Layer (2) Service: Framing: where piece of data begins and ends Local addressing and delivery: send data frames between peers attached to the same physical media Others (sometimes):» Shared media access» Reliable transmission (resend missing packets) Interface: send a data unit (packet) to a machine connected to the same physical media Protocol: MAC addresses, media access control (MAC) implementation (e.g. Ethernet) Courtesy Ion Stoica

Network Layer (3) Service: Deliver a packet to specified destination Perform segmentation/reassembly (fragmentation/defragmentation) Sometimes:» Packet scheduling: order packets are sent» Buffer management: what if there are too many packets? Interface: send a packet to a given destination Protocol: global unique addresses, construct routing tables, forward packets towards destination Courtesy Ion Stoica

Transport Layer (4) Service: Provide an error-free and flow-controlled end-toend connection Multiplex multiple transport connections to one network connection Interface: send a packet to specific destination Protocol: implement reliability and flow control (e.g. TCP and UDP) Courtesy Ion Stoica

Session Layer (5) Service Session management Synchronization, e.g., between audio/video streams Interface: depends on service Protocols: full duplex connection seutp/teardown, restart and checkpointing, inter-session synchronization (e.g. SMIL) Courtesy Ion Stoica

Presentation Layer (6) Service: data format conversion Interface: depends on service Protocol: define data formats, and rules to convert from one format to another (e.g. NFS s XDR) Courtesy Ion Stoica

Application Layer (7) Service: any service provided to the end user Interface: depends on the application Protocol: depends on the application Examples: BitTorrent, SSH, HTTP, SMTP Courtesy Ion Stoica

The Internet layering model Application (Web,FTP,SMTP) Transport (TCP,UDP) Network (IP) Datalink (Ethernet,802.11) So-called hourglass model One network layer protocol Significant diversity at other layers No presentation or session layers Implementations more important than interfaces Physical (100BaseTX,1000BaseSX)

Layer encapsulation via packet headers Layer N+1 packet becomes Layer N data Data End host Application End host Application Data P Data Presentation Presentation P Data S Data Session Session S Data T Data Transport Transport T Data N Data Network Network N Data D Data Datalink Datalink D Data Ph Data Physical Physical Ph Data

Layer Encapsulation via Packet Headers Typical Web packet Ethernet Hdr IP Hdr TCP Hdr HTTP Hdr Payload (Web object) Start of packet datalink network transport application End of packet Notice that layers add overhead Space (headers), effective bandwidth Time (processing headers, peeling the onion), latency

Layering by example ROUGHLY, what happens when I click on a Web page from UCSD? My computer www.yahoo.com? Internet

Application layer (HTTP) Turn click into HTTP request GET http://www yahoo com/r/mp HTTP/1 1 GET http://www.yahoo.com/r/mp HTTP/1.1 Host: www.yahoo.com Connection:keep-alive

Application layer? Name resolution (DNS) Where is www.yahoo.com? My computer (132.239.9.64) What s the address for www.yahoo.com Local DNS server (132.239.51.18) Oh, you can find it at 64.58.76.177

Transport layer (TCP) Break message into packets (TCP segments) Should be delivered reliably & in-order GET http://www.yahoo.com/r/mp HTTP/1.1 Host: www.yahoo.com Connection:keep-alive 3 yahoo.c 2 p://www. 1 GET htt and let me know when they got there

Network layer: IP Addressing Address each packet so it can traverse network and arrive at host My computer (132.239.9.64) www.yahoo.com (64.58.76.177) Destination Source Data 64.58.76.177 132.239.9.64 1 GET htt

Network layer: IP Routing Each router forwards packet towards destination UCSD Sprint UUNet www.yahoo.com (64.58.76.177) Qwest AT&T

Datalink layer (Ethernet) Break message into frames Media Access Control (MAC) Can I send now? Can I send now? Receiverer Send frame

Physical layer 2.4Ghz Radio DS/FH Radio (1-11Mbps) 11Mbps) 802.11b Wireless Access Point Cat5 Cable (4 wires) 100Base TX Ethernet 100Mbps Ethernet switch/router To campus backbone 62.5/125um 850nm MMF 1000BaseSX Ethernet 1000Mbps

Key Design Decision How do you divide functionality across the layers? End-to-end argument [Saltzer84] Functionality should be implemented at a lower layer iff it can be correctly and completely implemented there Incomplete versions of a function can be used as a performance enhancement, but not for correctness Early, and still relevant, example ARPAnet provided reliable link transfers between switches Packets could still get corrupted on host-switch link, or inside of the switches Hence, still need reliability at higher h layers

Example: Reliable File Transfer Host A 2 Ap p Ap p Host B 3 5 6 Disk 1 OS OS 7 Disk 4 Where can data be corrected? How to tell if data has been corrupted? Is there any value in lower-layer reliability?

Violating the E2E argument for performance optimization Functionality at lower layer can enhance performance Not required for correct operation Can be required for reasonably efficient i operation Back of the envelope N hops (average hops on Internet route = 15 hops) Prob of lost packet per link = p Prob of lost packet end to end = 1-(1-p) N» p = 0.0001% -> Prob(e2e loss) = 0.0015%» p = 1% -> Prob(e2e loss) = 14%» Reasonable to implement additional reliability in the datalink layer for the 2 nd case

Optimization trade-offs Higher layers have more semantic information about service needs (e.g. video: bits comprising MPEG I frames are much more important that bits in MPEG B frames) Lower layers have more information about true capabilities (e.g. packet size, bandwidth, error rate) This tension is the subject of countless papers

Summary: layering Key technique to implement communication protocols; provides Modularity Abstraction Reuse Key design decision: what functionality to put in each layer? Read Chap 2-2.2 22 We re going to cover signaling, coding and clock recovery