Basic Internetworking (IP)

Similar documents
IPv4 addressing, NAT. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

CS 457 Networking and the Internet. Problems. Mechanisms 9/21/16. Fall 2016 Indrajit Ray

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

Internetworking Part 2

IP - The Internet Protocol

ECE 4450:427/527 - Computer Networks Spring 2017

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Internet Protocol (IP)

COMP/ELEC 429/556 Introduction to Computer Networks

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

CH. 3 IP FORWARDING AND ROUTING

L10: Simple Internetworking. Hui Chen, Ph.D. Department of Engineering & Computer Science Virginia State University Petersburg, VA 23806

End-to-End Communication

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

TSIN02 - Internetworking

Network layer: Overview. Network Layer Functions

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Internetworking Part 2

ECE 158A: Lecture 7. Fall 2015

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca Instructor: Nicholas DeMarinis

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

Internet Protocol. Outline Introduction to Internet Protocol Header and address formats ICMP Tools CS 640 1

Introduction to Internetworking

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

CS 348 Computer Networks. IP and Routing. Indian Institute of Technology, Bombay

Last time. Network layer. Introduction. Virtual circuit vs. datagram details. IP: the Internet Protocol. forwarding vs. routing

Chapter 3 Internetworking

IPv4. Christian Grothoff.

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

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

CSE/ISE 311: Systems Administra5on Basic Network Organiza5on

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

ICS 451: Today's plan

CS 457 Lecture 11 More IP Networking. Fall 2011

EITF25 Internet- - Techniques and Applica8ons Stefan Höst. L6 Networking and IP

Network Layer: Control/data plane, addressing, routers

EPL606. Internetworking. Part 2a. 1Network Layer

2/22/2008. Outline Computer Networking Lecture 9 IP Protocol. Hop-by-Hop Packet Forwarding in the Internet. Internetworking.

CIS 551 / TCOM 401 Computer and Network Security. Spring 2006 Lecture 16

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Internet Protocol (IP)

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

Department of Computer and IT Engineering University of Kurdistan. Network Layer. By: Dr. Alireza Abdollahpouri

Network Layer: Internet Protocol

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS 9/6/16 COMP 631: NETWORKED & DISTRIBUTED SYSTEMS. IP Addressing. Jasleen Kaur. Fall 2016

Missing pieces + Putting the pieces together

Vorlesung Kommunikationsnetze

C14a: Internetworks and The Internet

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

CSC 401 Data and Computer Communications Networks

Information Network Systems The network layer. Stephan Sigg

ECE 461 Internetworking Fall Quiz 1

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

Master Course Computer Networks IN2097

Communication Systems DHCP

Position of IP and other network-layer protocols in TCP/IP protocol suite

Lecture 2: Basic routing, ARP, and basic IP

Network Layer Protocols

Introduction to Internetworking

Router Architecture Overview

UNIT III. 3.1 Circuit switching vs. packet switching / Packet switched networks. Figure 3.1.1: Switching Techniques

Chapter 4: Network Layer

TSIN02 - Internetworking

internet technologies and standards

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

Communications Software. CSE 123b. CSE 123b. Spring Lecture 2: Internet architecture and. Internetworking. Stefan Savage

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 8

CSE/EE 461 The Network Layer. Application Presentation Session Transport Network Data Link Physical

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Where we are in the Course

CSCI Computer Networks Fall 2016

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat no true in practice. administrative autonomy

Chapter Motivation For Internetworking

Network Layer Overview. Star8ng the Network Layer! Builds on the link layer. Routers send packets over mul8ple networks

Introduc3on to Computer Networks

Overview. Internetworking and Reliable Transmission. CSE 561 Lecture 3, Spring David Wetherall. Internetworking. Reliable Transmission

CS4450. Computer Networks: Architecture and Protocols. Lecture 13 THE Internet Protocol. Spring 2018 Rachit Agarwal

ECE 435 Network Engineering Lecture 12

Internet Technology 3/23/2016

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

Chapter 19 Network Layer: Logical Addressing

Network Layer PREPARED BY AHMED ABDEL-RAOUF

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Recap. Recap. Internetworking. First mile problem. Internet. End Users. Last mile problem. Direct link networks Packet switching.

Lecture 9: Internetworking

ET4254 Communications and Networking 1

CS118 Discussion, Week 6. Taqi

The Internetworking Problem. Internetworking. A Translation-based Solution

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

CIS 551 / TCOM 401 Computer and Network Security

EEC-484/584 Computer Networks

IP Addresses. IP Addresses

Transcription:

Basic Internetworking (IP) CSCI 466: Networks Keith Vertanen Fall 2011

Internetworking Service model Internet protocol (IP) History Packet format Fragmenta?on Global addressing Overview Discovering link- layer addresses Assigning IP addresses 2

internet vs. Internet internetwork / internet: A set of independent networks interconnected, could be completely walled off from world. Internet Global public network consis?ng of interconnected networks running TCP/IP. 3

Network of networks Connect heterogeneous networks Provide host- to- host packet delivery service A simple internetwork, H1-9 are hosts, R1- R3 are routers 4

Communica?on from H5 to H8 5

Internet Protocol (IP) Packet delivery model Connec?onless Best- effort (unreliable) Packets may be lost Packets may arrive out of order Duplicate packets may occur Packet may get delayed Global addressing scheme How do we iden?fy hosts on the network? 6

IP history and goals Internet Protocol (IP) 1974 Cerf and Kahn propose common layer hiding network differences Eventually split into TCP and IP IP founda?on of the modern Internet Awarded 2004 Turing Award 7

IP history and goals Connect exis?ng networks Mul?plex exis?ng links such as radio networks Mo?va?ng applica?on Remote login to servers Inherently bursty traffic, long silence periods Robust to failures Survive equipment failure or a_ack Traffic routes around trouble 8

IP history and goals Support mul?ple types of services Differing requirements for speed, latency, reliability Heterogeneous networks Minimal assump?ons about underlying network Distributed management of resources Node managed by different ins?tu?ons Cost effec?ve Packet switched, share links via mul?plexing 9

IP packet format Version "4" IPv4, "6" IPv6 HLen # of 32- bit words in header "5" for typical 20- byte IPv4 header TOS Type of service Allows for quality of service Length Total length, max size 65535 bytes Links may have small limits Ident / Flags / Offset Used when packets are split up 10

IP packet format TTL Time=to- live Iden?fy packets stuck in loop Protocol Used to demux higher- level protocol e.g. "6" Transmission Control Protocol (TCP), "17" User Datagram Protocol (UDP) Checksum One's complement IP checksum algorithm Not strong protec?on, but cheap to calculate 11

TTL Time- to- live Original plan: TTL was?me- to- live in seconds Routers today just decrement by 1 Sender sets default value (e.g. 64) If TTL reaches 0: Host sends "?me exceeded" message to source 12

Traceroute Traceroute tool exploits TTL Send packets with TTL=1, 2, 3,... Record source of "?me exceeded" message Windows "tracert www.bbc.co.uk" Unix / MacOS "traceroute www.bbc.co.uk" 13

Traceroute, London to tech kvertanen@li264-110:~$ traceroute cs.mtech.edu traceroute to cs.mtech.edu (150.131.202.136), 30 hops max, 60 byte packets 1 212.111.33.229 (212.111.33.229) 0.750 ms 0.793 ms 0.818 ms 2 212.111.33.233 (212.111.33.233) 0.449 ms 0.486 ms 0.533 ms 3 te3-1- border76-01.lon2.telecity.net (217.20.44.217) 0.705 ms * * 4 * * * 5 IPP- Tiscali.lon1.telecity.net (213.200.79.133) 0.736 ms 0.723 ms 0.709 ms 6 xe- 8-1- 0.lon11.ip4.?net.net (89.149.186.21) 0.742 ms xe- 3-2- 0.lon11.ip4.?net.net (89.149.187.126) 0.721 ms xe- 7-1- 0.lon11.ip4.?net.net (89.149.185.70) 0.747 ms 7 te7-6.mpd02.lon01.atlas.cogentco.com (130.117.15.49) 1.511 ms 0.949 ms 1.617 ms 8 te3-8.ccr01.lon01.atlas.cogentco.com (130.117.1.133) 1.335 ms 1.352 ms 1.390 ms 9 te0-1- 0-7.mpd21.ord01.atlas.cogentco.com (154.54.43.177) 92.391 ms te0-3- 0-7.mpd21.ord01.atlas.cogentco.com (154.54.24.54) 92.401 ms te0-0- 0-2.mpd21.ord01.atlas.cogentco.com (154.54.45.245) 92.413 ms 10 te3-1.ccr01.ord04.atlas.cogentco.com (154.54.24.178) 92.689 ms 92.803 ms 92.926 ms 11 te4-3.ccr01.msp01.atlas.cogentco.com (154.54.3.62) 106.209 ms 106.227 ms 106.212 ms 12 38.104.196.154 (38.104.196.154) 144.114 ms 144.199 ms 144.052 ms 13 192.73.48.129 (192.73.48.129) 144.961 ms 144.922 ms 144.994 ms 14 * * * h_p://en.dnstools.ch/visual- traceroute.html 14

Fragmenta?on Different networks support different packet sizes Maximum Transmission Unit (MTU) e.g. Ethernet 1500 bytes, 802.11 2272 bytes Occurs at router If inbound datagram > MTU of outbound network Split into fragments All fragments have same Ident field Each is self- contained datagram 15

Fragmenta?on and reassembly Reassembly can be done independent of order of arrival Fragments may also be fragmented No a_empt to recover if fragment missing Hosts can do MTU discovery Probe message to determine max packet size 16

IP service model Global addressing Assumes global addresses Why not 48- bit MAC address? flat structure, no hierarchy e.g. 01:23:45:67:89:ab IP addresses IPv4 32 bits network part host part e.g. 10.33.73.165 17

IPv4 address format Classful addressing (before 1993): Class A: 128 networks with 16 million hosts Class B: 16,384 networks with 65,536 hosts Class C: 2 million networks, 256 hosts 18

Special IP addresses Dot nota?on, each byte converted to decimal 1000 0000 1101 0000 0000 0010 1001 0111 128.208.2.151 19

IP datagram forwarding Why (network + host) address help? Routers have a forwarding table Network number - > next hop Without hierarchy: Tables in routers would be huge Machines on same network wouldn't know it Default router Where to send things if not in your table 20

Rou?ng example Message H1 - > H2 H5 - > H8 What happens H1 deduces on same network as H2 Sends Ethernet packet directly H5 deduces H8 not on same network H5 sends message to default router R1 R1 can't delivery directly, send to its default router R2 R2 has a forwarding table showing H8 available from R3, sends to R3 R3 delivery to network 4. 21

The three bears problem For most organiza?ons: Class A network too big Class C network too small Class B network... just right Actually class B too large for most Half of all class B holders had 50 or fewer hosts 16,384 class B not enough for widespread popularity of the interpipes 22

Subnesng Original intent: Network part of address uniquely iden?fies one physical network Fewer hosts - > small, faster forwarding tables Problem: waste of address space to hand out IP block for each physical network Subnesng: Split single classful network number into separate subnets Subnet must be physically near each other 23

Subnesng examples 24

Subnesng D = destination IP address for each entry <SubnetNum, SubnetMask, NextHop> D1 = SubnetMask & D if D1 = SubnetNum if NextHop is an interface deliver datagram directly to destination else deliver datagram to NextHop (a router) Datagram forwarding algorithm. Forwarding table at R1. 25

Classless addressing Classless Interdomain Rou?ng (CIDER) We want: Efficient address alloca?on Small and fast forwarding tables Compromise: Aggregate con?guous blocks of IP addresses New /X nota?on Specify how many prefix bits are network number Like subnet mask, with X 1's and front then 0's In CIDR 1's must be con?guous 26

CIDR examples 27

IP forwarding with CIDR CIDR prefixes 2-32 bits May have overlapping prefixes in forwarding table Example: Forwarding table: 171.69 (16- bit prefix) Forwarding table: 171.69.10 (24- bit) Des?na?on: 171.69.10.5, matches both Router uses longest match 28

Private IP addresses Private networks (home networks, etc.) Use specified part of IP address space Not globally routable h_p://xkcd.com/742/ 29

Problem: Address transla?on How does a host send a message to someone on their own network? Or to their default router? IP address is not the link- level address (e.g. MAC) Solu?on: Host maintains table: IP address - > link address Uses the Address Resolu?on Protocol (ARP) 30

ARP procedure If des?na?on IP in sender's ARP table: fire off link- layer packet otherwise send ARP query using broadcast address ARP query: IP address you're looking for Your own IP and hardware address Des?na?on responds with hardware address Other hosts can ignore or refresh their ARP tables 31

Assignment of host IP Each hosts needs: IP address (private or otherwise) Default router IP address Configure each host manually Tedious and error- prone Hosts aren't on network, so can't remotely config 32

DHCP Dynamic Host Configura?on Protocol (DHCP) DHCP server provides config info Gives out IP addresses and default router DHCP server has pool of available IP addresses Admin can set DHCP server to give out same IP to given hardware address Addresses leased for a given?me period How do hosts discover DHCP server? New hosts sends out broadcast DHCPDISCOVER message 33

DHCP relays If no DHCP server on a network segment Use a relay to communica?on with DHCP server 34

Internetworking Internet protocol (IP) Summary Founda?on of the Internet Runs on virtually any type of network Global IP addresses IP - > hardware address via ARP Hosts can get IP address and router via DHCP 35