Computer Networks Principles

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

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

Advanced Computer Networks

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

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

The TCP/IP Architecture. Jean Yves Le Boudec 2017

The TCP/IP Architecture. Jean Yves Le Boudec 2017

Computer Networks Principles LAN - Ethernet

The TCP/IP Architecture Jean Yves Le Boudec 2014

The TCP/IP Architecture Jean Yves Le Boudec 2014

Review of Important Networking Concepts

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 2015

Introduction to computer networking

Need For Protocol Architecture

Need For Protocol Architecture

TCP/IP THE TCP/IP ARCHITECTURE

Computer Communication Networks

Protocol Layers & Wireshark TDTS11:COMPUTER NETWORKS AND INTERNET PROTOCOLS

CS 204: Advanced Computer Networks

Just enough TCP/IP. Protocol Overview. Connection Types in TCP/IP. Control Mechanisms. Borrowed from my ITS475/575 class the ITL

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

CS 428/528 Computer Networks Lecture 01. Yan Wang

Networking Background

ECE 650 Systems Programming & Engineering. Spring 2018

Network Protocols and Architectures

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

Packet-switching: store-and-forward

cs144 Midterm Review Fall 2010

Advanced Computer Networks

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

EE 610 Part 2: Encapsulation and network utilities

Data-link. Examples of protocols. Generating polynomials. Example. Error detection in TCP/IP. Multiple Access Links and Protocols

CS164 Final Exam Winter 2013

ECE 650 Systems Programming & Engineering. Spring 2018

Internet. Organization Addresses TCP/IP Protocol stack Forwarding. 1. Use of a globally unique address space based on Internet Addresses

Chapter I: Introduction

Lecture 8. Network Layer (cont d) Network Layer 1-1

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

COMP211 Chapter 4 Network Layer: The Data Plane

Introduction to Internet. Ass. Prof. J.Y. Tigli University of Nice Sophia Antipolis

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

University of Toronto Faculty of Applied Science and Engineering. Final Exam, December ECE 461: Internetworking Examiner: J.

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

CS519: Computer Networks. Lecture 1 (part 2): Jan 28, 2004 Intro to Computer Networking

Network Layer PREPARED BY AHMED ABDEL-RAOUF

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

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

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Chapter 2 Communicating Over the Network

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

EXAM TCP/IP NETWORKING Duration: 3 hours With Solutions

CS 421: COMPUTER NETWORKS SPRING FINAL May 24, minutes. Name: Student No: TOT

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

Networking: Network layer

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

Introduction to TCP/IP networking

TCP/IP Networking Basics

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

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Sirindhorn International Institute of Technology Thammasat University

Computer Communication Networks Midterm Review

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

Chapter 1. Computer Networks and the Internet

Peer entities. Protocol Layering. Protocols. Example

ET4254 Communications and Networking 1

Network Layer (1) Networked Systems 3 Lecture 8

Network Protocols - Revision

Lecture 16: Network Layer Overview, Internet Protocol

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

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk SOLUTIONS

NET ID. CS519, Prelim (March 17, 2004) NAME: You have 50 minutes to complete the test. 1/17

Network Architecture Models

Computer Networks (Introduction to TCP/IP Protocols)

Network Management & Monitoring

CSCI-GA Operating Systems. Networking. Hubertus Franke

Internet Applications and the Application Layer Material from Kurose and Ross, Chapter 2: The Application Layer

EEC-484/584 Computer Networks

Internet II. CS10 : Beauty and Joy of Computing. cs10.berkeley.edu. !!Senior Lecturer SOE Dan Garcia!!! Garcia UCB!

II. Principles of Computer Communications Network and Transport Layer

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Reti di Calcolatori I

TCP /IP Fundamentals Mr. Cantu

The Internet. The Internet is an interconnected collection of netw orks.

Network Layer: Control/data plane, addressing, routers

L6: OSI Reference Model

Review. Some slides are in courtesy of J. Kurose and K. Ross

First Exam for ECE671 Spring /22/18

Network and Security: Introduction

Goals and topics. Verkkomedian perusteet Fundamentals of Network Media T Circuit switching networks. Topics. Packet-switching networks

Chapter 4: network layer

Internet protocol stack

STEVEN R. BAGLEY PACKETS

TCP/IP Performance ITL

Computer Networks & Security 2016/2017

Cisco Cisco Certified Network Associate (CCNA)

Introduction to Networks

Transcription:

Computer Networks Principles Introduction Prof. Andrzej Duda duda@imag.fr http://duda.imag.fr 1

Contents Introduction protocols and layered architecture encapsulation interconnection structures performance 2

host communication link router server Ethernet switch IXP: Internet Exchange Point ADSL box ADSL line ADSL multiplexer autonomous system Wi-Fi access point

Protocols 4

Protocol architecture data data SAP Protocol entity multiplexing procedures demultiplexing SAP Protocol entity layer n PDU layer n PDU Lower layer protocols layer n-1 layer n-1 5

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 6

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 7

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 8

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

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 10

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 11

Physical Layer Data Link Layer H1 frame to H3 H2 H3 hosts 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 12

Encapsulation 13

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 Hl Ht HnHt HnHt M M M M source application transport network link physical PDU SDU destination application transport network link physical Hl Ht HnHt HnHt M M M M message segment datagram frame 14

Encapsulation HTTP Request header header header data data data TCP segment IP packet Ethernet frame 15

Packet capture Frame 1 (1514 on wire, 1514 captured) Ethernet II Destination: 00:03:93:a3:83:3a (Apple_a3:83:3a) Source: 00:10:83:35:34:04 (HEWLETT-_35:34:04) Type: IP (0x0800) Internet Protocol, Src Addr: 129.88.38.94 (129.88.38.94), Dst Addr: 129.88.38.241 (129.88.38.241) Version: 4 Header length: 20 bytes Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00) Total Length: 1500 Identification: 0x624d Flags: 0x04 Fragment offset: 0 Time to live: 64 Protocol: TCP (0x06) Header checksum: 0x82cf (correct) Source: 129.88.38.94 (129.88.38.94) Destination: 129.88.38.241 (129.88.38.241) 16

Ethereal Transmission Control Protocol, Src Port: 34303 (34303), Dst Port: 6000 (6000), Seq: 4292988915, Ack: 3654747642, Len: 1448 Source port: 34303 (34303) Destination port: 6000 (6000) Sequence number: 4292988915 Next sequence number: 4292990363 Acknowledgement number: 3654747642 Header length: 32 bytes Flags: 0x0010 (ACK) Window size: 41992 Checksum: 0x9abe (correct) Options: (12 bytes) 17

Interconnection 18

Interconnection structure - layer 2 interconnection layer 2 switch (bridge) VLAN host 19

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 20

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) 21

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

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 23

Protocol architecture 5 4 3 Application Transport Network L3 PDU (IP packet) Application 5 Transport 4 Network 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) 24

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

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

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) 27

Performance 28

Performance - Motivating example 29 Consider this real-life example of a large bank with headquarters in Europe and operations in North America. Problem: a business unit with European users trying to access an important application from across the pond. Performance was horrible (response time). CIO ordered his trusted network operations manager to fix the problem. The network manager dutifully investigated, measuring the transatlantic link utilization and router queue statistics: no problems with the network, as it was only 3 percent utilized. I don t care, double the bandwidth! the CIO ordered. The network manager complied, installing a second OC-3 link. And, guess what? The network went from 3 percent to 1.5 percent utilized, and application performance was still horrible. That CIO didn t know jack about network performance.

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 OC3/STM1-155 Mb/s, OC12/STM4-622 Mb/s, and OC48/STM-16-2.5 Gb/s, OC192/STM-48 10 Gb/s Latency or Delay time interval between the beginning of a transmission and the end of the reception RTT - Round-Trip Time 30

Delay in packet-switched networks packets experience delay on end-to-end path four sources of delay at each hop A transmission nodal processing: check bit errors determine output link queuing 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 propagation B nodal processing queuing 31

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

Performance Latency Latency = Propagation + Transmission + Wait Propagation = Distance / Speed copper : Speed = 2.3x10 8 m/s glass : Speed = 2x10 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 33

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???? modem satellite LAN Hippi 34

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 35

Bandwidth-Delay Product Bandwidth Delay Bandwidth-Delay product how many bits should we send before the arrival of the first bit? good utilization - keep the pipe filled! 36

A Simple Protocol: Stop and Go Packets may be lost during transmission: bit errors due to channel imperfections, various noises. Computer A sends packets to B; B returns an acknowledgement packet immediately to confirm that B has received the packet; A waits for acknowledgement before sending a new packet; if no acknowledgement comes after a delay T1, then A retransmits 37

A Simple Protocol: Stop and Go Question: What is the maximum throughput assuming that there are no losses? notation: packet length = L, constant (in bits); acknowledgement length = l, constant channel bit rate = b; propagation = D processing time = 0 38

packet P1 sent A T=L/b Solution (1) packet P1 acknowledged 2D T =l/b time B cycle time = T + 2D + T useful bits per cycle time = L throughput = Lb / (L + l + 2Db)= b /(ω + β/l) with ω =(L+l)/L=overhead and β =2Db=bandwidth-delay product 39

packet P1 sent A T=L/b 2D Bandwidth delay packet P1 acknowledged time B window in time = T + 2D + T window in bits = (T + 2D + T)b = 2L + β 40

Solution (2) 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 reception time 800.1 ms 108 ms 0.81 ms 8.1 µs modem satellite LAN Hippi β =2Db 2 bits 200 000 bits 200 bits 200 bits throughput = bx 99.98% 3.8% 97.56% 97.56% 41

Summary Network architectures protocol architectures different protocol stacks, overlaid stacks interconnection structure switches, routers related protocols complex protocol families Performance transmission propagation bandwidth-delay product queueing delay 42