Network layer. Assignment 3

Similar documents
IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

Classful IP Addressing (cont.)

ICS 351: Today's plan

Future Internet Technologies

IP Addressing. IP Addresses. Introductory material.

IP addressing and forwarding Network layer

IP Addressing Introductory material.

Network layer: Overview. Network layer functions IP Routing and forwarding

Tutorial (03) IP addresses & Sub netting

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

Chapter 4 Network Layer

Internet Addresses (You should read Chapter 4 in Forouzan)

Classful IP Addressing. Classless Addressing: CIDR. Routing & Forwarding: Logical View of a Router. IP Addressing: Basics

Internet Protocol Address

Computer Network Foundation. Chun-Jen (James) Chung. Arizona State University

Internetworking and Internet-1. Global Addresses

IP address format: Dotted decimal notation:

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

TCP/IP Basis. OSI Model

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

Network and Host Addresses , Cisco Systems, Inc. All rights reserved. INTRO v1.0a 6-4

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

How To Make A Network Address Prefix Smaller

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

TCP/IP Addressing and Subnetting. an excerpt from: A Technical Introduction to TCP/IP Internals. Presentation Copyright 1995 TGV Software, Inc.

Advanced IP Addressing

No need to operate a DHCP server. If a server s IP address changes, clients will lose the ability to access it!

Subnet + CIDR. Internet Networking recitation #1. 11: , Internet Networking,

Internet Protocols. Addressing & Services. Updated:

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

1. How many unique network IDs are there in class A addresses? # of unique hosts?

Guide to TCP/IP, Third Edition. Chapter 2: IP Addressing and Related Topics

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

256 4 = 4,294,967,296 ten billion = 18,446,744,073,709,551,616 ten quintillion. IP Addressing. IPv4 Address Classes

IP Networking Part 3- IP Address Management A webinar to help you prepare for the CBNE Certification

Subnetting and Network Management Omer F. Rana. Networks and Data Communications 1


WHITE PAPER. Understanding IP Addressing: Everything You Ever Wanted To Know

IP Addressing A Simplified Tutorial

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

VLSM and CIDR Malin Bornhager Halmstad University

Desirable Properties Of An Internet Addressing Scheme

Lecture Computer Networks

Lecture 10. Subnetting & Supernetting

Internetworking and IP Address

CIDR: Classless Interdomain Routing

Chapter 5. IPv4 Addresses. TCP/IP Protocol Suite 1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

One of the most important topics in any discussion of TCP/IP is IP. IP Addressing

8.2 The Internet Protocol

Introduction to IPv6 and Benefits of IPv6

Lecture 10. Subnetting & Supernetting. Supernetting. Subnetting. Outline. medium org: N x class C? Class B? Variable Length Subnet Mask (VLSM)

IPv4 Addressing Simplified. by Ken Foster B.S. IT Information; Security and Forensics Kaplan University January 23, 2011

The Subnet Training Guide

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Lab IP Addressing Overview

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

IP Subnetting and Addressing

Chapter 19 Network Layer: Logical Addressing 19.1

Types of IPv4 addresses in Internet

Lab#2: IP Addressing and Subnetting

We Are HERE! Subne\ng

IP Routing Features. Contents

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Instructor Notes for Lab 3

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

PART IV. Network Layer

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Networking Test 4 Study Guide

Business Data Communications & IT Infrastructures, 2 nd Edition

CS268 Exam Solutions. 1) End-to-End (20 pts)

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

Savera Tanwir. Internet Protocol

Introduction to LAN/WAN. Network Layer (part II)

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Are You Ready to Teach IPv6?

Computer Networks I Laboratory Exercise 1

Table of Contents. Cisco IP Addressing and Subnetting for New Users

VLSM & IP ADDRESSING EXAMPLE QUESTIONS with answers;

Variable length subnetting

IPv6 Addressing. Awareness Objective. IPv6 Address Format & Basic Rules. Understanding the IPv6 Address Components

Module 2: Assigning IP Addresses in a Multiple Subnet Network

Layer 3 Routing User s Manual

CCNA Tutorial Series SUBNETTING

OSPF Configuring Multi-Area OSPF

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

Expert Reference Series of White Papers. Binary and IP Address Basics of Subnetting

Computer Networks By Bahaa Q. Al-Mussawi Subnetting Basics Reduced network traffic Optimized network performance Simplified management

Introduction to IP v6

Table of Contents 1 IP Addressing Configuration 1-1

This tutorial will help you in understanding IPv4 and its associated terminologies along with appropriate references and examples.

Transcription:

Network layer Chapter 4 in the textbook Assignment 3 UWO Abstractly, your server is essentially a simple router Maybe more of a switch than a router Your server gets messages ( packets ) These messages have target IDs ( addresses ) You have to send ( forward ) the message ( packet ) to the right ID ( address )

!ou sha" b# $a"ed Jo#!ou sha" b# $a"ed Jo#!ou sha" b# $a"ed Jan#

!ou sha" b# $a"ed Jan# (Jane, yo ) (Jane, yo ) (Joe, yo ) (Joe, yo )

Application Application Transport Transport Network Network Link Link Physical Physical Network vs Link Link layer forwards packets between hosts on the same network Network layer routes packets between networks The link layer had no hope of scaling! The forwarding table was linear in the number of hosts D: IP (IPv4) addressing Addresses are 32 bits long Typically given in quad dotted notation E.g., 129.100.16.245 Address space of ~4 billion addresses How does this help with routing? IP (IPv4) addressing

IP (IPv4) routing GE has over 24 million IP addresses Prior to 1981, the most significant 8 bits were the network number and the least significant 24 bits were the rest This would be idiotic for a global network Maximum of 255 networks in the entire world! IP (IPv4) routing In 1981, classful routing was introduced Many network numbers had already been assigned (e.g., to GE) These couldn t be reassigned! Network numbers 0 through 127 would remain as class A networks (8-bit network ID) IP Addresses given notion of network, let s re-examine IP addresses: class-full addressing: 0 network host 10 network host 110 network host 1110 multicast address 128 through 255 would be subdivided Side note: class E (240 to 255) was reserved, but CS357b 40 never defined class A B C D 32 bits 1.0.0.0 to 127.255.255.255 128.0.0.0 to 191.255.255.255 192.0.0.0 to 223.255.255.255 224.0.0.0 to 239.255.255.255 Classful address space The 1981 change added a few other things Three private network ranges were added (we ll talk about this later) Multicast ranges were added (we ll talk about this later) Loopback was added Loopback <Luigi30> someone ping flood 127.0.0.1 <Luigi30> he keeps trying to hack me <Luigi30> nm <Floach> This, folks, is why Mario always gets the Princess. 127.0.0.0 through 127.255.255.255 are loopback addressing They refer to your own computer (no matter where you are)

IPv4 classful addressing 128 class A networks (each ~16 million hosts) ~16k class B networks (each ~65000 hosts) ~2 million class C networks (each ~250 hosts) Why didn t it work? IPv4 classless addressing There was a large demand for networks of size, e.g., 300, 500, 1000, etc. Everyone snapped up class B networks (~65000 hosts) which went 99% unused In 1993, we moved from classful addressing to classless addressing (CIDR) IP addressing: CIDR! Classful addressing: " inefficient use of address space, address space exhaustion " e.g., class B net allocated enough addresses for 65K hosts, even if only 2K hosts in that network! CIDR: Classless InterDomain Routing " network portion of address of arbitrary length " address format: a.b.c.d/x, where x is # bits in network portion of address network host part part 11001000 00010111 00010000 00000000 200.23.16.0/23 Transitioning classful to classless Class A had 8-bit network identifiers Becomes /8. E.g., GE would be 3.0.0.0/8 Class B had 16-bit network identifiers E.g., 130.3.0.0/16 Class C had 24-bit network identifiers E.g., 200.278.0.0/24 CS357b 41 Prefixes and netmasks /8, /16, /12, etc., are called prefixes They are often alternatively expressed as netmasks Network (22 bits) Rest (10 bits) Prefixes and netmasks /8, /16, /12, etc., are called prefixes They are often alternatively expressed as netmasks Network (22 bits) Rest (10 bits) 11111111 11111111 11111100 00000000

Prefixes and netmasks /8, /16, /12, etc., are called prefixes They are often alternatively expressed as netmasks Network (22 bits) Rest (10 bits) 11111111 11111111 11111100 00000000 255.255.252.0 Netmasks Netmasks are strictly more flexible than prefixes 254.8.255.0 11111110 00001000 11111111 00000000 Impossible to express as a prefix! In practice, it doesn t matter Hooray for classless! Much more flexible An ISP can get a /16 (~65000 addresses) It can give a /31 (2 addresses) or /32 (1 address) to most of its customers If a company has 1500 computers, the ISP can hand out a /22 (2048 addresses) IP addresses: how to get one? Q: How does host get IP address?! hard-coded by system administrator in a file " Wintel: control-panel->network->configuration- >tcp/ip->properties " UNIX: /etc/rc.config! DHCP: Dynamic Host Configuration Protocol: dynamically get address from as server " plug-and-play (more shortly) CS357b 42 IP addresses: how to get one? Q: How does a network get the network part of IP address? A: gets allocated portion of its provider ISP s address space ISP's block 11001000 00010111 00010000 00000000 200.23.16.0/20 Organization 0 11001000 00010111 00010000 00000000 200.23.16.0/23 Organization 1 11001000 00010111 00010010 00000000 200.23.18.0/23 Organization 2 11001000 00010111 00010100 00000000 200.23.20.0/23....... Organization 7 11001000 00010111 00011110 00000000 200.23.30.0/23 Routing problems Note that the smaller we make our networks, the better utilization we get An organization with 1500 computers needed a 20-bit subnet (2048 addresses) Optimally shouldn t we all just use /32s? (1- bit networks with only 1 address) CS357b 43

Hierarchical addressing: route aggregation Hierarchical addressing allows efficient advertisement of routing information: Hierarchical addressing: more specific routes ISPs-R-Us has a more specific route to Organization 1 Organization 0 Organization 0 200.23.16.0/23 Organization 1 200.23.18.0/23 Organization 2 200.23.20.0/23.... Organization 7 200.23.30.0/23 Fly-By-Night-ISP ISPs-R-Us Send me anything with addresses beginning 200.23.16.0/20 Send me anything with addresses beginning 199.31.0.0/16 I n t e r ne t 200.23.16.0/23 Organization 2 200.23.20.0/23.... Organization 7 200.23.30.0/23 Organization 1 200.23.18.0/23 Fly-By-Night-ISP ISPs-R-Us Send me anything with addresses beginning 200.23.16.0/20 Send me anything with addresses beginning 199.31.0.0/16 or 200.23.18.0/23 I n t e r ne t CS357b 44 CS357b 45 General concept behind routing The Internet wouldn t work if it weren t hierarchical Massive routing tables Loops in the routing? We route incrementally, only caring about how to get to the next hop Each router looks at only a few bits of each IP address Routers at major exchange points may have 100k entries Your home computer may have 2 entries Routing example A router gets a packet destined for 195.43.86.9 Router #1 looks at the last 7 bits and sends it to router #2 Router #2 is a backbone router and looks at the first 15 bits before sending it off to a different backbone Router #3 ignores the first 15 bits and looks at the next 7 bits Router #4 checks the next 5 bits Router #5 can now ignore the first 27 bits and just look at the last 5 bits. It then decides to route it to your house IP addressing: the last word... Q: How does an ISP get block of addresses? A: ICANN: Internet Corporation for Assigned Names and Numbers! allocates addresses! manages DNS! assigns domain names, resolves disputes More specifically, it s IANA (Internet Assigned Numbers Authority) working on behalf of ICANN Note: ICANN is a US-owned company, created by act of the US government CS357b 46 ICANN ICANN was created in 1998 to handle IP address, domain names, etc., on behalf of the US government Up until then, there wasn t a clear authority In the early days of the Internet, gentleman s agreements reigned

Dramatization only Dramatization only Hey I m setting up my routing table. I ll put you guys in as network 1. Dramatization only Dramatization only Sounds good. I ll put you guys in my routing table as network 2. Dramatization only Dramatization only Hey guys, can I join in? UWO UWO

Dramatization only The need for ICANN Guys? What network number are you going to give me? UWO It s a bigger deal with domain names than IP addresses, but a central authority started becoming more important to solve disputes There are proposals for replacing ICANN UN? No signs of it disappearing any time soon