Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.

Slides:



Advertisements
Similar presentations
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_b Subnetting,Supernetting, CIDR IPv6 Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
Advertisements

IP Addressing Introductory material.
4 IP Address (IPv4)  A unique 32-bit number  Identifies an interface (on a host, on a router, …)  Represented in dotted-quad notation
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chapter 18. IP: Internet Protocol Addresses
1 IP: Internet Protocol Addresses. 2 Internet Protocol (IP) Only protocol at Layer 3 Fundamental in suite Defines –Internet addressing –Internet packet.
Computer Networks: Global Internet Global Internet.
A supernetwork.
TCP/IP Protocol Suite 1 Chapter 5 Objectives Upon completion you will be able to: IP Addresses: Classless Addressing Understand the concept of classless.
Oct 28, 2004CS573: Network Protocols and Standards1 IP: Routing and Subnetting Network Protocols and Standards Autumn
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #1 Subnet + CIDR.
1 Internet Networking Spring 2004 Tutorial 1 Subnetting and CIDR Proxy ARP.
1 Internet Networking Spring 2006 Tutorial 1 Subnetting and CIDR.
Understanding IP Addressing Chuck Semeria Presented by Benyuan Liu for Internet Routing Seminar Sep 19, 2000.
CSE5803 Advanced Internet Protocols and Applications (7) Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised.
Subnetting and CIDR Textbook Ch 3.2.5
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Routing I.
CS 6401 Efficient Addressing Outline Addressing Subnetting Supernetting.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
Spring Ch 18 IP Addresses. 2 Internet Protocol  Only protocol at Layer 3  Defines Internet addressing Internet packet format Internet routing.
Types of Addresses in IPv4 Network Range
Subnet & Classless Address Extensions Linda Wu (CMPT )
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
Classless and Subnet Address Extensions (CIDR)
CIDR Classless Inter-Domain Routing
IP Addressing Introductory material. An entire module devoted to IP addresses.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
Network Layer (3). Node lookup in p2p networks Section in the textbook. In a p2p network, each node may provide some kind of service for other.
CSISCSIS Dr. ClincyLecture1 SUPERNETTING Although class A and B addresses are dwindling – there are plenty of class C addresses The problem with C addresses.
Spring, 2001CS 6401 Addressing and Domain Name System Outline Addressing Subnetting Supernetting Domain Name System.
Chapter 18 IP: Internet Protocol Addresses
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
Chapter 6 VLSM and CIDR.
Data Communications and Networks Chapter 7 – IP Addressing ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
IP Addressing.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
21-IP addressing Dr. John P. Abraham Professor UTPA.
Spring 2010CS 3321 Interdomain Routing. Spring 2010CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
CS470 Computer Networking Protocols
Spring 2006CS 3321 Interdomain Routing. Spring 2006CS 3322 How to Make Routing Scale Flat versus Hierarchical Addresses Inefficient use of Hierarchical.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
Spring 2008CPE Computer Networks1 Routing: Part II Outline Algorithms Scalability Reading: Section 4.3.
1 Variable Length Subnet Masks ( VLSM ) “ Classful Route” Means if a route to a network starting with is received, it is a class A => mask length.
Subnetting and Supernetting.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.
IP Addressing. A 32-bit logical naming convention A dotted-decimal notation is used: – –Each number represents 8 bits. Number is Part.
1 CS716 Advanced Computer Networks By Dr. Amir Qayyum.
IP Addressing Introductory material.
Subnetting and Supernetting.
Internet Networking recitation #1
4 Network Layer Part I Computer Networks Tutun Juhana
CS4470 Computer Networking Protocols
Objective: Classful Internet Addressing
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
IP Addressing Introductory material.
Chapter 5 Addressing Dr. Clincy Lecture.
IP Addressing Introductory material.
IPv4 Addresses.
Dr. John P. Abraham Professor UTPA
Supernetting Recall: subnetting allows an organization to share a single IP network address among multiple physical networks Supernetting (a.k.a. classless.
IP Addressing Introductory material
Dr. John P. Abraham Professor UTRGV
Classless and Subnet Address Extensions (CIDR)
Presentation transcript:

Efficient Addressing Outline Addressing Subnetting Supernetting CS 640

Global Addresses Properties Dot Notation Assigning authority IPv4 uses 32 bit address space globally unique hierarchical: network + host Dot Notation 10.3.2.4 128.96.33.81 192.12.69.77 Assigning authority Jon Postel ran IANA ‘til ‘98 Assigned by ICANN 7 24 A: Network Host 14 16 B: 1 Network Host 21 8 C: 1 1 Network Host D: 1 1 1 Multicast E: 1 1 1 1 Experimental CS 640

How to Make Routing Scale Flat (Ethernet) versus Hierarchical (Internet) Addresses All hosts attached to same network have same network address Problem: inefficient use of Hierarchical Address Space class C with 2 hosts (2/255 = 0.78% efficient) class B with 256 hosts (256/65535 = 0.39% efficient) Problem: still Too Many Networks routing tables do not scale Big tables make routers expensive route propagation protocols do not scale CS 640

Today’s Internet Consists of ISP’s (Internet Service Providers) who run AS’s (Autonomous Systems) All you need to become an ISP is some address space, an AS number and a peer or two Easier said than done Getting addresses and AS number is the tricky part There are public peering points (MAE East, Central and West) NAP’s run by MCI where peering can take place Most peering points are private Number of connections have been doubling for some time – how do we deal with this kind of scaling? CS 640

Subnetting - 1985 Original intent was for network to identify one physical network Lots of small networks are what we actually have – how do we handle this? Solution: add another level to address/routing hierarchy: subnet Allocate addresses to several physical networks Routers in other ASs route all traffic to network as if it is a single physical network Subnet masks define variable partition of host part 1’s identify subnet, 0’s identify hosts within the subnet Mechanism for sharing a single network number among multiple networks Subnets visible only within a site Network number Host number Class B address Subnet mask (255.255.255.0) Subnetted address 111111111111111111111111 00000000 Host ID Subnet ID CS 640

Subnet Example Forwarding table at router R1 Subnet mask: 255.255.255.128 Subnet number: 128.96.34.0 128.96.34.15 128.96.34.1 H1 R1 128.96.34.130 Subnet number: 128.96.34.128 128.96.34.129 128.96.34.139 R2 H2 128.96.33.1 128.96.33.14 Subnet mask: 255.255.255.0 Subnet number: 128.96.33.0 H3 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 CS 640

Forwarding Algorithm Use a default router if nothing matches 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 D else deliver datagram to NextHop Use a default router if nothing matches Not necessary for all 1s in subnet mask to be contiguous Can put multiple subnets on one physical network Subnets not visible from the rest of the Internet This is a simple, toy example!! CS 640

Subnets contd. Subnetting is not the only way to solve scalability problems Additional router support is necessary to include netmask and forwarding functionality Non-contiguous netmask numbers can be used They make administration more difficult Multiple subnets can reside on a single network Requires routers within the network Subnets help solve scalability problems Do not require us to use class B or C address for each physical network Help us to aggrigate information Chief advantage of IP addresses: routers could keep one entry per network instead of one per destination host CS 640

Continued Problems with IPv4 Addresses Potential exhaustion of IPv4 address space (due to inefficiency) Class B network numbers are highly prized Not everyone needs one Lots of class C addresses but no one wants them Growth of back bone routing tables We don’t want lots of small networks since this causes large routing tables Route calculation and management requires high computational overhead Solution: Allow addresses assigned to a single entity to span multiple classed prefixes Enhance route aggregation CS 640

Supernetting Assign block of contiguous network numbers to nearby networks Called CIDR: Classless Inter-Domain Routing Breaks rigid boundries between address classes If ISP needs 16 class C addresses, make them contiguous Eg.192.4.16 to 192.4.31 enables a 20-bit network number Idea is to enable network number to be any length Collapse multiple addresses assigned to a single AS to one address Represent blocks (number of class C networks) with a single pair (first_network_address, count) Restrict block sizes to powers of 2 Use a bit mask (CIDR mask) to identify block size All routers must understand CIDR addressing CS 640

CIDR Addresses Identifying a CIDR block requires both an address and a mask Slash notation 128.211.168.0/21 for addresses 128.211.168.0 – 128.211.175.255 Here the /21 indicates a 21 bit mask All possible CIDR masks can easily be generated /8, /16, /24 correspond to traditional class A, B, C categories IP addresses are now arbitrary integers, not classes Raises interesting questions about lookups Routers cannot determine the division between prefix and suffix just by looking at the address Hashing does not work well Interesting lookup algorithms have been developed and analyzed CS 640

CIDR – A Couple Details ISP’s can further subdivide their blocks of addresses using CIDR Some prefixes are reserved for private addresses 10/8, 172.16/12, 192.168/16, 169.254/16 These are not routable in the Internet CS 640