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

Similar documents
Computer Networking. Introduction. Course goals. Networking lab. Contents. Course support. Overview. Prof. Andrzej Duda

Computer Networks Principles

Advanced Computer Networks

Part 1: Introduction. Goal: Review of how the Internet works Overview

Internet Architecture & Performance. What s the Internet: nuts and bolts view

Network Protocols and Architectures

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Introduction and Layered Network Architecture. EEE 538 Dr. Nail Akar Bilkent University Electrical and Electronics Engineering Department

Need For Protocol Architecture

Chapter 1. Computer Networks and the Internet

Need For Protocol Architecture

Lecture 3 Protocol Stacks and Layering

CS 204: Advanced Computer Networks

Computer Communication Networks

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

CS 428/528 Computer Networks Lecture 01. Yan Wang

TCP/IP THE TCP/IP ARCHITECTURE

Peer entities. Protocol Layering. Protocols. Example

CSE3213 Computer Network I

Announcements. CS 5565 Network Architecture and Protocols. Outline for today. The Internet: nuts and bolts view. The Internet: nuts and bolts view

Introduction to computer networking

ECE 650 Systems Programming & Engineering. Spring 2018

Part I: Introduction. 1: Introduction 1

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

Defining Networks with the OSI Model. Module 2

Lecture 2: Internet Structure

Network Architecture Models

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

Review of Important Networking Concepts

Communication Networks

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

===================================================================== Exercises =====================================================================

Introduction to Networks

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

University of Southern California EE450: Introduction to Computer Networks

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

PLEASE READ CAREFULLY BEFORE YOU START

Networking interview questions

Chapter 2 Communicating Over the Network

Chapter 2 Network Models 2.1

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

Internet Routing. Review of Networking Principles. What s the Internet: nuts and bolts view. Communication links

Internet Routing. Review of Networking Principles

cs144 Midterm Review Fall 2010

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Chapter 12 Network Protocols

CMPE 344 Computer Networks Spring Foundations. Reading: Peterson and Davie,

Cisco Cisco Certified Network Associate (CCNA)

Communicating over the Network

Networking and TCP/IP. John Kalbach November 8, 2004

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

Computer Networks and the Internet. CMPS 4750/6750: Computer Networks

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

Data Communication and Network. Introducing Networks

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

Chapter 1: Introduction

Network and Security: Introduction

Raj Jain. The Ohio State University Columbus, OH

Computer Networks (Introduction to TCP/IP Protocols)

PLEASE READ CAREFULLY BEFORE YOU START

Reti di Calcolatori I

CS3600 SYSTEMS AND NETWORKS

The TCP/IP Architecture Jean Yves Le Boudec 2014

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 11

The TCP/IP Architecture Jean Yves Le Boudec 2014

Web Protocols and Practice

Data Communications and Networks Spring Syllabus and Reading Assignments

Chapter 1. Chapter 1. Data Communications and Network Management Overview

CS1302 / Computer Networks

Chapter 7. Local Area Network Communications Protocols

Networks Overview. Dr. Yingwu Zhu

Chapter I: Introduction

The TCP/IP Architecture. Jean Yves Le Boudec 2015

The TCP/IP Architecture. Jean Yves Le Boudec 2015

The TCP/IP Architecture. Jean Yves Le Boudec 2017

Introductions. Computer Networking Lecture 01. January 16, HKU SPACE Community College. HKU SPACE CC CN Lecture 01 1/36

System Programming. Introduction to computer networks

What is a Distributed System? Module 1: Introduction to Networking & Internetworking

CSEN 503 Introduction to Communication Networks

Sirindhorn International Institute of Technology Thammasat University

end systems, access networks, links 1.3 network core

Distributed Systems. 02. Networking. Paul Krzyzanowski. Rutgers University. Fall 2017

Lecture 16: Network Layer Overview, Internet Protocol

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

The TCP/IP Architecture. Jean Yves Le Boudec 2015

ITEC 3800 Data Communication and Network. Introducing Networks

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

Part 5: Link Layer Technologies. CSE 3461: Introduction to Computer Networking Reading: Chapter 5, Kurose and Ross

Internet Architecture and Experimentation

CS321: Computer Networks Introduction to Computer Networks and Internet

The TCP/IP Architecture. Jean Yves Le Boudec 2017

THE OSI MODEL. Application Presentation Session Transport Network Data-Link Physical. OSI Model. Chapter 1 Review.

Copyleft 2005, Binnur Kurt. Objectives

Networks. Distributed Systems. Philipp Kupferschmied. Universität Karlsruhe, System Architecture Group. May 6th, 2009

COMPONENTS OF DATA COMMUNICATION

OSI Transport Layer. Network Fundamentals Chapter 4. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

IT114 NETWORK+ Learning Unit 1 Objectives: 1, 2 Time In-Class Time Out-Of-Class Hours 2-3. Lectures: Course Introduction and Overview

Data Networks. Lecture 1: Introduction. September 4, 2008

Module objectives. Integrated services. Support for real-time applications. Real-time flows and the current Internet protocols

Transcription:

Computer Networking Introduction Quintin jean-noël Jean-noel.quintin@imag.fr Grenoble university Based on the presentation of Duda http://duda.imag.fr 1

Course organization Introduction Network and architecture OSI model Performances Application Layer HTTP, SMTP, DNS protocols Transport Layer Notion de socket UDP, TCP TCP flux, congestion Network Layer IP route Tables Physical Link Layer 2

Course support Web site http://duda.imag.fr/2at J. Kurose, K. Ross Computer Networking, 4th edition, Addison Wesley, 2007 J. Kurose, K. Ross, "Analyse structurée des réseaux. Des applications de l'internet aux infrastructures des télécommunications." Pearson Education France, 2003 Others L. Toutain "Réseaux locaux et Internet", 3me édition, Hermes, 2003 W. R. Stevens TCP/IP illustrated, Volume I, Addison Wesley (Very detailed, experimental hands-on description of TCP/IP) 3

Overview Network architectures recall on the Internet protocol architectures how entities cooperate? interconnection structure which entities are connected? related protocols Performance how and where different functionalities are implemented? transmission propagation bandwidth-delay product queueing delay 4

Inside the Internet Between end systems TCP protocol for reliable transmission Inside the network core IP protocol: forwarding packets between routers Between routers or between end system and router high speed link: ATM, POS (Packet over SONET), satellite links access network: Ethernet, modem, xdsl, HFC 5

Network structure network edge: applications and hosts network core: routers network of networks access networks, physical media: communication links 6

The network edge: end systems (hosts): run application programs e.g., WWW, email at edge of network client/server model client host requests, receives service from server e.g., WWW client (browser)/ server, email client/server peer-peer model: symmetric host interaction e.g. teleconferencing 7

The Network Core mesh of interconnected routers the fundamental question: how is data transferred through net? circuit switching: dedicated circuit per call: telephone nets packet-switching: data sent thru net in discrete chunks (IP) 8

Access networks and physical media How to connect end systems to edge router? residential access nets institutional access networks (school, company) mobile access networks Characteristics: bandwidth (bits per second) of access network shared or dedicated 9

How is a communication done? 10

TCP/IP Architecture HTTP data GET / HTTP request TCP GET / TCP segment IP GET / IP packet Ethernet GET / Ethernet frame Physical 11

Application Layer Application layer supports network application applications that are distributed over the network applications that communicates through the network Many known protocols FTP: file transfer SMTP: email protocol HTTP:web protocol An application uses UDP or TCP, it is a designer s choice Interface with the transport layer use for example the socket API: a library of C functions socket also means (IP address, port number) 12

Transport Layer Why a transport layer? transport layer = makes network service available to programs is end-to-end only, not in routers In TCP/IP there are two transport protocols UDP (user datagram protocol) unreliable offers a datagram service to the application (unit of information is a message) TCP (transmission control protocol) reliable offers a stream service (unit of information is a byte) 13

Layering: logical communication E.g.: transport take data from app add addressing, reliability check info to form datagram send datagram to peer wait for peer to ack receipt analogy: post office data application transport network link physical application transport network link physical data ack application transport network link physical network link physical data application transport network link physical 14

TCP 15

Network Layer Set of functions required to transfer packets end-to-end (from host to host) hosts are not directly connected - need for intermediate systems examples: IP, Appletalk, IPX Intermediate systems routers: forward packets to the final destination interconnection devices H1 S1 H4 H2 S2 H3 router router 16

IP R4 R2 R5 Server WWW httpd Routing Table of R3 dest router 129.88.38 R4 R3 R1 dest address: 129.88.38.10 WWW client Netscape IP Ether physical IP Ether physical IP packet router R3 17

Physical Layer Data Link Layer H1 frame to H3 H2 H3 point to point cables Ethernet switch Physical transmission = Physical function bits <-> electrical / optical signals transmit individual bits over the cable: modulation, encoding Frame transmission = Data Link function bits <-> frames bit error detection packet boundaries in some cases: error correction by retransmission (802.11) Modems, xdsl, LANs hosts 18

Protocol architectures Protocol entity provides a set of services, e.g.. connect, send data multiplexing/demultiplexing construction/analysis of PDUs execution of procedures Protocol unit (PDU) header: control functions opaque data Procedures actions to perform protocol functions: e.g. lost packet retransmission 19

Internet protocol stack Application: supporting network applications FTP, SMTP, HTTP, OSPF, RIP Transport: host-host data transfer TCP, UDP Network: routing of datagrams from source to destination IP Link: data transfer between neighboring network elements PPP, Ethernet Physical: bits on the wire Application Transport Network Link Physical 20

Layering: physical communication data application transport network link physical application transport network link physical application transport network link physical network link physical data application transport network link physical 21

Protocol layering and data Each layer takes data from above adds header information to create new data unit passes new data unit to layer below Ht HnHt Hl HnHt M M M M source application transport network link physical PDU SDU destination application transport network link physical Ht HnHt Hl HnHt M M M M message segment datagram frame 22

Encapsulation HTTP Request header header data data TCP segment IP packet Ethernet frame header data padding 23

Ethernet Frame Length of data in the data link Layer Minimal size is 46 bytes The Paddig is a feild of insignificant data to obtain the minimal size Maximal size is 1500 bytes MTU (Maximal transmission unit): is the name for the maximal size for each Layer header data padding Ethernet frame

OSI ISO Model Application Presentation Session Transport Network Data link Common functions Interchangeable formats Organizing dialog Reliable transmission Forwarding in the network Transmission between two nodes Physical Signal transmission 25

QoS (Quality of Service) Different applications need different level of QoS" 26

LAN stack Management: e.g. construct forwarding tables SNAP: Spanning Tree protocol LLC: multiplex different protocols IP, IPX, SNAP MAC: medium access 802.3 (Ethernet), 802.4 (Token Ring), 802.5 (Token Bus), 802.11 (Wi-Fi) Physical: bits on the wire Data-link Management LLC MAC Physical 27

Interconnection structure - layer 3 interconnection layer 3 router subnetwork 1 interconnection layer 2 subnet 3 subnet 2 switch (bridge) VLAN host 28

Interconnection at layer 2 Switches (bridges) interconnect hosts logically separate groups of hosts (VLANs) managed by one entity Type of the network broadcast Forwarding based on MAC address flat address space forwarding tables: one entry per host works if no loops careful management Spanning Tree protocol not scalable 29

Protocol architecture 5 Application 4 Transport 3 2 1 Network LLC MAC Physical L2 PDU (LLC Frame) L2 PDU (MAC Frame) LLC MAC Physical host switch (bridge) Switches are layer 2 intermediate systems Transparent forwarding Management protocols (Spanning Tree, VLAN) 30

Protocols data IP management SNAP network Ethernet v2 LLC 802.3 data-link Physical layer 31

Interconnection at layer 3 Routers interconnect subnetworks logically separate groups of hosts managed by one entity Forwarding based on IP address structured address space routing tables: aggregation of entries works if no loops - routing protocols (IGP - Internal Routing Protocols) scalable inside one administrative domain 32

Protocol architecture 5 Application Application 5 4 3 Transport Network L3 PDU (IP packet) Transport Network 4 3 2 1 LLC MAC Physical L2 PDU (MAC Frame) LLC MAC Physical L2 PDU (MAC Frame) LLC MAC Physical 2 1 host switch (bridge) router Routers are layer 3 intermediate systems Explicit forwarding host has to know the address of the first router Management protocols (control, routing, configuration) 33

Protocols routing OSPF naming configuration routing DNS DHCP RIP UDP TCP transport application control groups IP ICMP IGMP address resolution ARP network Ethernet v2 data-link 34

Autonomous systems autonomous system border router internal router subnetwork interconnection layer 3 interconnection layer 2 switch (bridge) VLAN host 35

Internet autonomous system NAP, GIX, IXP subnetworks border router 36

Interconnection of AS Border routers interconnect AS NAP or GIX, or IXP exchange of traffic - peering Route construction based on the path through a series of AS based on administrative policies routing tables: aggregation of entries works if no loops and at least one route - routing protocols (EGP - External Routing Protocols) 37

Protocols routing BGP TCP control transport application IP ICMP address resolution ARP network Ethernet v2 data-link 38

Performance Bit Rate (débit binaire) of a transmission system bandwidth, throughput number of bits transmitted per time unit units: b/s or bps, kb/s = 1000 b/s, Mb/s = 10e+06 b/s, Gb/ s=10e+09 b/s Latency or Delay time interval between the beginning of a transmission and the end of the reception RTT - Round-Trip Time 39

Delay in packet-switched networks packets experience delay on end-to-end path four sources of delay at each hop A transmission nodal processing: queuing propagation check bit errors determine output link time waiting at output link for transmission depends on congestion level of node transmission: depends on packet length and link bandwidth propagation: depends on distance between nodes B nodal processing queuing 40

Delay first bit last bit Transmission Propagation packet Waiting Time End-to-end delay Distance time 41

Performance Latency Latency = Propagation + Transmission + Wait Propagation = Distance / Speed copper : Speed = 2.3 10 8 m/s glass : Speed = 2 10 8 m/s Transmission = Size / BitRate 5 µs/km New York - Los Angeles in 24 ms request - 1 byte, response - 1 byte: 48 ms 25 MB file on 10 Mb/s: 20 s World tour in 0.2 s 42

Example At time 0, computer A sends a packet of size 1000 bytes to B; at what time is the packet received by B (speed = 2e+08 m/s)? distance 20 km 20000 km 2 km 20 m bit rate 10kb/s 1 Mb/s 10 Mb/s 1 Gb/s propagation???? transmission???? latency???? modem satellite LAN Hippi 43

Example At time 0, computer A sends a packet of size 1000 bytes to B; at what time is the packet received by B (speed = 2e+08 m/s)? distance 20 km 20000 km 2 km 20 m bit rate 10kb/s 1 Mb/s 10 Mb/s 1 Gb/s propagation 0.1ms 100 ms 0.01 ms 0.1µs transmission 800 ms 8 ms 0.8 ms 8 µs latency 800.1 ms 108 ms 0.81 ms 8.1 µs modem satellite LAN Hippi 44

Waiting time Queuing system M/M/1 Inter-arrival times ~ exponentially distributed service times ~ exponentially distributed arrival rate λ, service rate µ, utilization ρ= λ/µ number of packets N, waiting time T λ λ µ N = ρ ( 1 ρ ) T = 1 µ (1 ρ ) T = N λ 45

Waiting time Average packet length 1500 bytes link with 1 Mb/s bit rate (propagation = 0) transmission time 12 ms service rate 83 packet/s λ [p/s] 10 40 60 70 1/λ [ms] 100 25 16 14 T [ms] 13 23 43 76 46

Waiting time T ρ 47

Summary Network architectures protocol architectures different protocol stacks, overlaid stacks interconnection structure switches, routers related protocols Performance complex protocol families transmission propagation queuing delay 48

Problem Two hosts are connected via the Internet through 9 routers. The distance between the hosts is 10000 km. All the links in the network have 100 Mb/s bit rate. The user working on host A downloads a page of 1000 bytes from server B. What is the total time of the download (between the click and the instant when the page is downloaded)? Assume that: HTTP uses a TCP connection with the MTU of 1460 bytes. Other TCP parameters are supposed to be known. We ignore processing and waiting times, as well as the transmission time of short segments (short means that they are less than 1000 bytes), for instance connection establishment segments, ACKs, HTTP request. We also ignore the HTTP header attached to the page contents. 49

50

Hôte B Hôte A D = 50 ms Ouverture de connexion T=0.08 ms Page 51

Solution Propagation = distance / speed = 50 ms Transmission = size / bitrate = 0.08 ms délai = 3 x 50 ms + 50 ms + 10 x 0.08 = 200.8 ms débit : 1000 x 8 bits / 200.8 ms = 39 kb/s 52