CS519: Computer Networks. Lecture 2, part 2: Feb 4, 2004 IP (Internet Protocol)

Similar documents
CS519: Computer Networks

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

Network layer: Overview. Network Layer Functions

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

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

Top-Down Network Design

Network Layer: Control/data plane, addressing, routers

CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal

ECE 158A: Lecture 7. Fall 2015

End-to-End Communication

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

CSCD58 WINTER 2018 WEEK 6 - NETWORK LAYER PART 1. Brian Harrington. February 13, University of Toronto Scarborough

CS118 Discussion, Week 6. Taqi

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

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

IPv4. Christian Grothoff.

The Interconnection Structure of. The Internet. EECC694 - Shaaban

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

CSC 401 Data and Computer Communications Networks

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

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

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

IP Addressing and Subnetting

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

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

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Internet Technology 3/23/2016

Lecture 11: Fragmentation & Addressing. CSE 123: Computer Networks Stefan Savage

Layering and Addressing CS551. Bill Cheng. Layer Encapsulation. OSI Model: 7 Protocol Layers.

Router Architecture Overview

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

Vorlesung Kommunikationsnetze

CS118 Discussion 1A, Week 6. Zengwen Yuan Dodd Hall 78, Friday 10:00 10:50 a.m.

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

EEC-684/584 Computer Networks

Chapter 4: Network Layer

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

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

1 Connectionless Routing

CS519: Computer Networks. Lecture 4, Part 5: Mar 1, 2004 Internet Routing:

TSIN02 - Internetworking

Kent State University

Lecture 4 - Network Layer. Transport Layer. Outline. Introduction. Notes. Notes. Notes. Notes. Networks and Security. Jacob Aae Mikkelsen

Where we are in the Course

Computer Networking Introduction

Juniper Netscreen Security Device. How to Enable IPv6 Page-51

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

internet technologies and standards

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

CSCD 330 Network Programming Spring 2018

TCP/IP and the OSI Model

IP: Addressing, ARP, Routing

Network Layer (Routing)

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

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

CSCD 330 Network Programming Spring 2017

Chapter 4 Network Layer: The Data Plane

CMSC 332 Computer Networks Network Layer

The Internetworking Problem. Internetworking. A Translation-based Solution

PUCPR. Internet Protocol. Edgard Jamhour E N G L I S H S E M E S T E R

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

COMP/ELEC 429/556 Introduction to Computer Networks

Computer Networks and Data Systems

Communication Systems DHCP

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

How the Internet Works

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Chapter Motivation For Internetworking

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

ICS 451: Today's plan

Guide to TCP/IP Fourth Edition. Chapter 6: Neighbor Discovery in IPv6

Internetworking Part 2

Routing Overview. Information About Routing CHAPTER

CS519: Computer Networks. Lecture 2: Feb 2, 2004 IP (Internet Protocol)

CSEP 561 Internetworking. David Wetherall

Chapter 4: network layer

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

Lecture 3: Packet Forwarding

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

Network Layer/IP Protocols

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

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

IPv6 Configuration Commands

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

Planning for Information Network

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

Introduction to Internetworking

LOGICAL ADDRESSING. Faisal Karim Shaikh.

Computer Networks Prof. S. Ghosh Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture 28 IP Version 4

RSC Part II: Network Layer 3. IP addressing (2nd part)

IP Addresses. IP Addresses

Chapter 5 Network Layer

Veryx ATTEST TM Conformance Test Suite

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

Integrated Services. Integrated Services. RSVP Resource reservation Protocol. Expedited Forwarding. Assured Forwarding.

TCP/IP Protocol Suite and IP Addressing

Agenda. Forwarding (after a little more addressing) Follow-up from last time. Dealing with Address Scarcity. Sharing a Block of Addresses

ECE 435 Network Engineering Lecture 14

ECE 4450:427/527 - Computer Networks Spring 2017

Transcription:

: Computer Networks Lecture 2, part 2: Feb 4, 2004 IP (Internet Protocol)

More ICMP messages These were added over time RFC1191: Path MTU Discovery Added the size of the limiting MTU to the ICMP Packet Too Big message RFC1256: Router Discovery Allows a host to dynamically discover a default router Router Advertisement, Router Solicitation

Path MTU discovery (PMTU) Host tries some large MTU, sends packets with the DF (Don t Fragment) bit set If it gets an ICMP Packet Too Big, it tries the MTU in the ICMP (if there is one), or a lower MTU if not There are various well-known MTUs it can try Without PMTU, hosts default to 1500 for local Ethernet destinations, and 576 for non-local destinations

Recall new functions required by IP architecture Address resolution How to determine the subnet address of the next hop (router or host) A hard problem in the general case Fragmentation and reassembly How to accommodate different MTUs (Maximum Transmission Unit) in different subnets

Router discovery and address resolution How do hosts discover routers over subnets How do hosts and routers find each other s subnet addresses?

But first, IP addresses Now we are getting to one of the two cores of the Internet The IP address space (The other is the DNS name space) Can t understand router discovery and address resolution without understanding the IP address

The most basic basics IP address is 32 bits long They are written like this: 128.93.44.6 dotted-decimal notation Each decimal number represents 8 bits (We ll look at the slash notation later) Each host or router interface is identified by an IP address The role of IP is to get packets to their corresponding interfaces, not to boxes per se

Structure of the IP address

Host forwarding algorithm Upon receiving a packet either from an interface or from the upper layer Is the destination me? If not, is the destination on my subnet? If so, discover subnet address of destination and transmit packet If not, send the packet to my default router

This begs several questions How does the host know its own IP address? How does the host know the destination is on its own subnet? How does the host know its default router? How does the host discover the subnet address of another node?

In a nutshell...

Last-hop router forwarding algorithm Upon receiving a packet either from an interface or from the upper layer Is the destination me? If not, is the destination on my subnet? If so, discover subnet address of destination and transmit packet If not, send the packet to my default the next hop router

Non-Last-hop router forwarding algorithm Upon receiving a packet either from an interface or from the upper layer Is the destination me? If not, is the destination on my subnet? If so, discover subnet address of destination and transmit packet If not, send the packet to my default the next hop router

Other special IP addresses

Router discovery and address resolution We saw how routers are discovered (through configuration) Hosts on a subnet don t have to be discovered per se Because the IP address is obtained from packet reception But the host subnet address needs to be discovered This is called address resolution

Address resolution Approach differs depending on whether subnet is broadcast capable or not If broadcast capable: An Address Resolution Protocol (ARP) query is broadcast to all nodes: ARP_query(IP_addr) The node with IP_addr responds: ARP_reply(IP_addr, subnet_addr) The querying node caches this for a while

Address resolution If not broadcast capable, two choices: Embed subnet address inside IP address! This was done with the Arpanet But most subsequent non-broadcast subnets had addresses at least as big as IP s (X.25, SMDS, ATM, ) Can be done in IPv6 though Configure address resolution tables In all nodes, or in a directory that nodes can query

Address resolution Large non-broadcast subnets to which hosts attach are essentially nonexistent now---everything has gone IP Though these still support routers (manually configured)

Where are we? We ve looked down from IP: We ve examined subnet structure of the Internet and of IP addresses We ve seen how to resolve IP addresses to subnet addresses We ll look inside large Ethernet networks later Now lets look at the larger structure of the IP Internet itself From several vantage points

The firewalled Internet The Internet consists of sites interconnected by ISPs Site = enterprise network, campus network, your home!, corporate network, etc. ISP = Internet Service Provider The sites are protected by firewalls The sites often use a private address space, or IP address realm

The firewalled Internet

Firewalls Firewalls are a type of IP router They protect the site from unwanted packets (to an extent) Typically they allow flows to be initiated outgoing, but not incoming Though they may prevent some types of outgoing flows And allow some incoming flows to some hosts

Address realms and NAT Certain blocks of IP addresses have been designated private addresses RFC 1918 10/8, 172.16/12, and 192.168/16 These can be used in any sites, but are not visible in the global address space Like a one-way mirror: nodes in private networks can see the global internet, but nodes in the global internet cannot see hosts in private networks

What is this slash stuff? The slash notation (10/8, 72.16/12, etc.) denotes an address range P/B means a prefix P of length B bits 10/8 = 10.0.0.0 10.255.255.255 72.16/12 = 72.16.0.0 72.31.255.255

Address realms and NAT Two hosts in the same site cannot have the same private address, but two hosts in different sites can and do A private host can establish a flow with a public host (through a NAT box) A public host cannot generally establish a flow with a public host Two private hosts in different realms cannot generally establish flows with each other Though we now know how to do this with the help of a global host

Address realms and NAT When a private host talks to a public host, the NAT box translates its private address into a public address And remembers the private/public mapping Why do we want private addresses? This is a low-cost way to effectively increase the IP address space to way beyond 32 bits We ll examine this in detail later

Routing from a site router s point of view We saw how a host checks to see if the address prefix is my subnet, and if not forwards the packet to a default router A router in a site (kindof) checks to see if the address prefix is my site, and if not forwards the packet by default towards the global internet

Does this mean the IP address really looks like this? Yes, to a site router, in the sense that this is what the site router has to know to correctly forward the packet But, no, in a global sense this is still an incomplete picture of the address If this was the complete picture, it means that every global router would need to know explicitly of every site!

The global Internet Backbone ISP ISP Hosting Center IX Backbone ISP ISP Hosting Center IX ISP Backbone ISP Site IXs came first IXs tend to be performance bottlenecks Hosting centers and bilateral peering are a response to poor IXs S S S S S S S S S Sites

Address assignment IANA Internet (other ISPs) Regional AAAs 20.1/16 Y ISP A 20.1.1/24 20.1.2/24 20.2/16 X ISP B

Route Aggregation Basics Address hierarchy topological hierarchy Hosts 20.1.1/24 Site Y Y Internet (other ISPs) 20.1/16 20.2/16 ISP A ISP B 20.1.2/24 X Site X X1 X2 Y1 Y2 20.1.2.1 20.1.2.2 20.1.1.1 20.1.1.2

But we don t always get good aggregation in the Internet 20.1/16 Internet (other ISPs) ISP A ISP B 20.2/16 20.1.2/24 20.1.1/24 Y 20.1.2/24 X 20.1.2/24 20.1.1/24

Size of the backbone router forwarding tables (BGP) 3: Multihoming exponential growth 2: CIDR linear growth 1: Pre-CIDR exponential growth 4. Better prefix filtering Source: The CIDR Report, www.cidr-report.org

The complete structure of the IP address But this is a misleading picture Which is why I didn t show it at the start, and which is why you rarely see this picture

Why misleading? Bit-wise field boundaries aren t fixed Hosts and last-hop/site routers don t see the higher-level structure As long as they have a default route Global routers don t see the lower-level structure In fact, they don t see any structure except prefix/suffix But sometimes the prefix is pretty long (i.e. into the site level)

Why misleading? Some sites didn t in fact get their prefix from an ISP And multihomed sites advertise their site via the wrong ISP Ultimately, only humans are aware of the whole structure but routers and hosts don t care what we think!

On the other hand IPv6 does draw these kinds of complete address structure pictures Even though IPv6 nodes don t understand the structure The difference is that IPv4 addresses evolved over time bottom-up, whereas IPv6 addresses were defined topdown from the start