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

Similar documents
Chapter 3 Internetworking

Internet Addresses Reading: Chapter 4. 2/11/14 CS125-myaddressing

CS 457 Networking and the Internet. Addressing. Topics 9/15/16. Fall 2016 Indrajit Ray

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

C14b: Classless Intradomain Routing

Internetworking Part 2

Chapter 18. Introduction to Network Layer

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

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

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

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

Network Layer (Routing)

Internetworking Part 2

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

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

Network layer: Overview. Network Layer Functions

IP Addresses. IP Addresses

CSCI-1680 Network Layer: IP & Forwarding John Jannotti

CSC 4900 Computer Networks: Network Layer

CSCI-1680 Network Layer: IP & Forwarding Rodrigo Fonseca

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

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

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

Computer Networks Prof. Ashok K. Agrawala

Lecture 8 Network Layer: Logical addressing

Network Layer Protocols

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

IP Addressing & Forwarding

Basic Internetworking (IP)

IP addressing. Overview. IP addressing Issues and solution Variable Length Subnet Mask (VLSM)

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

1 Connectionless Routing

Announcements. IP Addressing & Forwarding. Designing IP s Addresses. Goals of Today s Lecture. Grouping Related Hosts. IP Addresses (IPv4)

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

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

Internet Network Protocols IPv4/ IPv6

internet technologies and standards

ECE 158A: Lecture 7. Fall 2015

Chapter 6. Variable Length Subnet Masking (VLSM) Classless Inter-Domain Routing (CIDR) CCNA2-1 Chapter 6

Introduction to Internetworking

Most important (cont d) What s most important in Project 1. Important for individuals. From from Most Important

Network Layer: Internet Protocol

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

Internet Protocol (IP)

EEC-684/584 Computer Networks

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 10: IP Routing and Addressing Extensions

Vorlesung Kommunikationsnetze

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Lecture 3: Packet Forwarding

IPv6. Internet Technologies and Applications

TCP/IP. Model and Layers Bits and Number Bases IPv4 Addressing Subnetting Classless Interdomain Routing IPv6

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

The Routing Table: A Closer Look

Chapter Motivation For Internetworking

CIDR VLSM AS. รศ.ดร. อน นต ผลเพ ม Asso. Prof. Anan Phonphoem, Ph.D.

Lecture 12: Aggregation. CSE 123: Computer Networks Alex C. Snoeren

Basics of communication. Grundlagen der Rechnernetze Introduction 31

IPv6: An Introduction

CSEP 561 Internetworking. David Wetherall

TDC 563 Protocols and Techniques for Data Networks

Using IP Addressing in the Network Design

End-to-End Communication

CSC 401 Data and Computer Communications Networks

IP - The Internet Protocol

Transport and TCP. EE122 Fall 2011 Scott Shenker

Network Layer: Control/data plane, addressing, routers

SCALABLE INTERNET ROUTING

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

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

TSIN02 - Internetworking

Computer Networking Introduction

IP Address Assignment

ECE 4450:427/527 - Computer Networks Spring 2017

IP: Addressing, ARP, Routing

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

Lecture 12: Addressing. CSE 123: Computer Networks Alex C. Snoeren

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

Computer Networks and Data Systems

ETSF10 Internet Protocols Network Layer Protocols

IP: Routing and Subnetting

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

Top-Down Network Design

COMP/ELEC 429/556 Introduction to Computer Networks

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

IPv4. Christian Grothoff.

ITTC Science of Communication Networks The University of Kansas EECS 784 Identifiers, Names, and Addressing

Campus Networking Workshop CIS 399. Core Network Design

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

Communication at the network layer is host-to-host Length of address. Total number of addresses used by the protocol. IPv4 & IPv6

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

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

CSCD 330 Network Programming Spring 2017

Computer Networks and Data Systems

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

Overview 4.2: Routing

How to deal with large numbers (millions) of entities in a system? IP devices in the internet (0.5 billion) Users in P2P network (millions)

Chapter 8: Subnetting IP Networks CCENT Routing and Switching Introduction to Networks v6.0

Chapter 4: VLSM and Classless Inter Domain Routing. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved.

Network Layer. Chapter 5 Section 5.1, 5.3, 5.5, 5.6. CS 360 Spring 2012 Pacific University

Transcription:

COMP 631: NETWORKED & DISTRIBUTED SYSTEMS IP Addressing Jasleen Kaur Fall 2016 1 How to Deal With Heterogeneity & Scale? Requirements from IP addressing: Should be globally unique Should facilitate easy mapping to link-layer addresses Should facilitate scalable assignment Should facilitate scalable routing Basic Idea: Assign addresses to interfaces (and not to hosts) Facilitates meaningful mapping to MAC addresses Use hierarchical addressing Aids both address assignment and routing 2 Copyright by Jasleen Kaur 1

Hierarchical Addressing (Network+Host) based address classes: Class A: 10.3.2.4 126 Class A networks Class B: 128.96.33.81 2 14 Class B networks Class C: 192.12.69.77 Each network can have 254 hosts Class D: multicast Class E: unused A: B: 7 24 0 Network Host 14 16 1 0 Network Host 21 8 C: 1 1 0 Network Host 3 Datagram Forwarding How does hierarchy help scale packet forwarding? Route to networks, not destinations! If connected to destination (same network-number as an interface) Directly deliver over physical network on that interface Else Find next-hop for this network-number in forwarding table Send to next-hop over physical network Else Send to default router Network 1 (Ethernet) H7 R3 H8 H1 H2 H3 Network 2 (Ethernet) R1 Network 4 (point-to-point) H4 H5 Network 3 (FDDI) H6 R2 Network # Next Hop 1 R3 2 R1 3 interface 1 4 interface 0 4 Copyright by Jasleen Kaur 2

Address Resolution: Dealing with Heterogeneity Different layer-2 protocols may use different addressing schemes How does the deliver to a host on same physical network happen? IP knows only the layer-3 address of the immediate destination How does link-layer know which layer-2 address to deliver the packet to? Solution: translate/map IP addresses to MAC addresses Address Resolution Protocol (ARP): Exploits the fact that many link-layer technologies support broadcast Broadcasts a query who has this IP address? Target node responds back with link-layer address Enough bits reserved in ARP messages to accommodate maximum possible link-layer address size (48 bits) 5 Address Assignment Class A addresses typically assigned to large ISPs Customers assigned addresses from this larger pool Class B addresses assigned to medium-sized ISPs / organizations Customers/departments assigned addresses from this large pool Class C addresses assigned to smaller organizations Individuals assigned from this pool DHCP helps recycle small pool among larger number of hosts New machines can obtain IP address from the DHCP server Self-configuring: can discover DHCP server using link-layer broadcast Hierarchical addressing and DHCP help achieve scalability of network management! 6 Copyright by Jasleen Kaur 3

IP Addressing: Summary How does IP accommodate heterogeneity? By offering a simple service model That any link-layer can help support By having a common packet format Adding a layer that everyone understands By having a global address space That can be mapped to layer-2 addresses How does it achieve scalability? Routing: By making forwarding decisions based on hierarchical addressing Manageability: By delegating the job of address assignment to administrative entities 7 Exhaustion of IPv4 Addresses IP addresses likely to run out Can address at most 4 billion hosts Allows only 16,000 class B addresses Inefficient address assignment due to class-based addressing A 2-node network will use a class C address (0.78% efficient) A 257-node network will use a class B address (0.39% efficient) Solutions: DHCP, NAT Sub-netting Super-netting IPv6 8 Copyright by Jasleen Kaur 4

Subnetting: Another Level of Hierarchy How about assigning many class C addresses per organization? L : increases forwarding table size in routers! Subnets add another level of hierarchy in IP addresses Subnet number = network part + subnet part IP address = subnet number + host part Nodes on same physical network have same subnet number Subnet masks applied to derive subnet number Define variable por]on of host part Different physical networks may share same network part Subnets visible only within a site Network number Host number Class B address 111111111111111111111111 00000000 Subnet mask (255.255.255.0) Network number Subnet ID Host ID Subnetted address 9 Subnet Masks: An Example Each host is configured with: IP address, Subnet mask Subnet number = (IP address) & (Subnet mask) Routers store subnet mask, subnet number for each attached subnet Subnet mask: 255.255.255.128 Subnet number: 128.96.34.0 128.96.34.15 128.96.34.1 H3 H1 128.96.34.130 128.96.33.14 R1 128.96.34.129 R2 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.128 128.96.33.1 Subnet mask: 255.255.255.0 Subnet number: 128.96.33.0 H2 128.96.34.139 Forwarding table at router R1: Subnet Number Subnet Mask Next Hop 128.96.34.0 255.255.255.128 interface 0 128.96.34.128 255.255.255.128 interface 1 128.96.33.0 255.255.255.0 R2 10 Copyright by Jasleen Kaur 5

Packet Forwarding with Subnet Masks Nodes: if destinationip & selfsubnetmask = selfsubnetnumber, deliver packet directly over physical network else send to router Routers: D = destination IP address for each entry (SubnetNum, SubnetMask, NextHop) S = SubnetMask & D if S = SubnetNum if NextHop is an interface deliver datagram directly to D else deliver datagram to NextHop 11 Subnetting: Summary What table entries do routers outside the organization keep? Only one for the entire network! Only routers inside see subnets Not everyone has same routing view / information How does subnetting help address scalability? Improves address assignment Don t have to assign a Class B/C for every new physical network Improves forwarding efficiency for outside routers By aggregating routing information Multiple subnets can also be defined on same physical network Forced to talk through router Helps provide isolation between different departments sharing a LAN 12 Copyright by Jasleen Kaur 6

Supernetting: Why Do We Need More? Subnetting does not solve: Exhaustion problem of Class B addresses Any organization with more than 255 nodes would still need a Class B address Growth in routing table sizes State in forwarding tables still grows in proportion to the number of networks Supernetting: Goal: Help scale assignment efficiency as well as routing table sizes Approach: Aggregate routes! 13 Supernetting / CIDR: Basic Idea Breaks the rigid boundaries between address classes Address space efficiency: Prefixes can be of arbitrary length (and not just 8, 16, or 24) Forwarding table control: Allow routing state aggregation at several levels And not just at subnets-within-a-network level Assign contiguous network numbers (Class C addresses) to nearby networks eg: consider 16 nearby networks: 192.2.16 192.4.31 Top 20 bits are common in these prefixes Create a 20-bit network prefix to represent all of thse Use a single routing table entry at routers far away How? Assign regional address space to service providers, which distribute among regional customers Supernetting also known as Classless Interdomain Routing (CIDR) 14 Copyright by Jasleen Kaur 7

Supernetting vs. Subnetting Subnetting Shares one address among multiple physical networks Prevents wastage of Class C addresses CIDR: By re-using same network address among several smaller networks Collapses multiple addresses that would be assigned to a single AS onto one address Prevents wastage of Class B addresses By assigning multiple Class C addresses instead 15 Forwarding Algo: Use of Network Prefixes Same as before, but prefix-length included in order to identify network number Network number is not class-based, but an aggregated prefix eg: 192.4.16/20 Caveat: Some networks can interfere with the process of aggregation eg: if a customer changes service providers (but retains IP addresses) Has to be routed through new service provider Has different routing treatment than nearby networks Therefore, need to store exceptions in addition to aggregated routes eg: 2 routing table entries: 208.12.16/20 and 208.12.21/24 Router needs to find the longest matching prefix when forwarding packets Finding the longest match makes forwarding a complicated task! 16 Copyright by Jasleen Kaur 8

Exceptions: Impact on Routing Tables Exponen]al growth before CIDR Linear growth ]ll excep]ons take over 17 18 Copyright by Jasleen Kaur 9

Exceptions: Impact on Routing Tables Smaller prefixes would imply greater aggrega]on Class C addresses s]ll dominate rou]ng tables! Can geographic addressing help reduce excep]ons? 19 IPv6: 128-bit Address Space IP version 6 uses 128-bit address spaces Enough to assign 1500 addresses per square foot of earth s surface Hosts and routers need to understand new packet format A feasible transition plan a must! Facilitating transitions: Dual-stack operation: IPv6 nodes that can process both IPv4 and IPv6 packets Tunneling: Tunnels used to send an IPv6 packet over an IPv4-only network 20 Copyright by Jasleen Kaur 10