IP Addressing. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 Specified in 1980/81.

Slides:



Advertisements
Similar presentations
IP-Internet Protocol Addresses. Computer Engineering Department 2 Addresses for the Virtual Internet The goal of internetworking is to provide a seamless.
Advertisements

Lecturer, Department of Computer Application
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 8: Subnetting IP Networks Network Fundamentals.
IPv4 to IPv6 Network Address Translation. Introduction 4 What is the current internet addressing scheme and what limitations does it face. 4 A new addressing.
IP Address Presented by Ravi Namboori. IP Address IP Address is a numerical number assigned to each and every device which is looped in a computer network.
Review Aug-141RD-CSY3021.  Settle down  Review Qs - IP addressing _Basic  Lecture/interactive discussion  Revisit IP addressing _Basic ◦ Complete.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 EN0129 PC AND NETWORK TECHNOLOGY I IP ADDRESSING AND SUBNETS Derived From CCNA Network Fundamentals.
Chapter 9: Subnetting IP Networks
Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
IP Addressing Introductory material.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
Chapter 19 Network Layer: Logical Addressing Stephen Kim.
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 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
COMP680E by M. Hamdi1 IP Addressing and CIDR. COMP680E by M. Hamdi2 IP Addresses.
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.
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.
Fall 2006Computer Networks19-1 Chapter 19. Host-to-Host Delivery: Internetworking, Addressing, and Routing 19.1 Internetworks 19.2 Addressing 19.3 Routing.
ECE 4110 – Internetwork Programming Subnetting, Supernetting, and Classless Addressing.
1 Internet Addresses (You should read Chapter 4 in Forouzan) IP Address is 32 Bits Long Conceptually the address is the pair ( NETID, HOSTID ) Addresses.
INTRODUCTION TO IP ADDRESS Ravi Chandra Gurung. IP ADDRESSES.
CSIS 4823 Data Communications Networking – IPv6
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)
IP ADDRESSES. C ONTENTS Objectives Introduction IP Versions IPv4 Addressing Classful Addressing Class A Class B Class C Other Classes Dotted Decimal Notation.
IP Addressing Introductory material. A module devoted to IP addresses.
 An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection.
Efficient Addressing Outline Addressing Subnetting Supernetting CS 640.
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:
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
ICS 156: Lecture 2 (part 1) Today:  IP addressing  Data link protocols and ARP  Notes about lab.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
21-IP addressing Dr. John P. Abraham Professor UTPA.
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.
IP Addressing Introductory material.
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
21-IP addressing Dr. John P. Abraham Professor UTPA.
CS470 Computer Networking Protocols
1 CMPT 471 Networking II Addressing assigning networks and sub-networks © Janice Regan, 2012.
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.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Subnetting.
Subnetting and Supernetting.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
IP Addressing Introductory material. An entire module devoted to IP addresses.
IP – Subnetting and CIDR
IP Addressing Introductory material.
LESSON Networking Fundamentals Understand IPv4.
4.3 Network Layer Logical Addressing
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
Subnetting and Supernetting.
PART IV Network Layer.
4 Network Layer Part I Computer Networks Tutun Juhana
CS4470 Computer Networking Protocols
Subnetting.
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.
IP Addressing Introductory material.
IPv4 Addresses.
Dr. John P. Abraham Professor UTPA
IP Addressing Introductory material
Dr. John P. Abraham Professor UTRGV
Dr. John P. Abraham Professor UTRGV
Presentation transcript:

IP Addressing

Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 Specified in 1980/81 (RFC 760, 791) Four byte addresses Universally deployed Problem: Address space almost exhausted IPv6 Specification from 1998 (RFC 2460) Significant differences to IPv4, but not fundamental changes 16-byte addresses Problem: Not widely used (yet?) Google Study from Oct 2008: IPv6 available to 0.238% of users

IP Addresses

What is an IP Address? IP address = Internet Protocol Version 4 address 32-bit label for a network interface –Each interface has a separate IP address On the public Internet, IP address is unique global address The IP address is to used by hosts and routers for delivery of IP datagram Important special cases: –Dynamically assigned IP addresses ( DHCP) –IP addresses in private networks ( NAT)

Dotted Decimal Notation IPv4 addresses are written using dotted decimal notation Each byte is identified by a decimal number in the range [0..255] Example: st Byte = nd Byte = rd Byte = th Byte =

IP address consists of a network prefix and a host number –Network prefix identifies a network –Host number identifies an interface on the network How do we know how long the network prefix is? –The length of the network prefix is indicated 1.by a netmask, or 2.by a suffix given the length as a number (CIDR notation) –Netmask is often called subnetmask (there are subtle differences) Structure of an IP address network prefixhost number

Example: Network address is: (or ) Host number is: Netmask is: (or ffff0000) Prefix or CIDR notation: /16 »Network prefix is 16 bits long Notation of IP address

Network Prefix and Host Number Each IP network (often called subnetwork or subnet) has an IP address: IP address of a network = Host number is set to all zeros, e.g., IP routers are devices that forward IP datagrams between IP networks Delivery of an IP datagram proceeds in 2 steps: –Use network prefix to deliver datagram to the right network –Once the network is found, use the host number to deliver to the right interface

How does one get an IP network address? IP address allocation is managed by five Regional Internet Registries (RIR) Each RIR manages ranges of addresses:

Special IP Addresses Special addresses: Loopback interfaces –all addresses are reserved for loopback interfaces –Most systems use as loopback address –loopback interface is associated with name localhost IP address of a network –Host number is set to all zeros, e.g., Broadcast address –Host number is all ones, e.g., –Broadcast goes to all hosts on the network –Often ignored due to security concerns Test / Experimental addresses Certain address ranges are reserved for experimental use. Packets should get dropped if they contain this destination address (see RFC 1918): Convention (but not a reserved address) Default gateway has host number set to 1, e.g., e.g.,

Subnetting Scenario: Organization has a large network prefix and wants to delegate management of IP addresses Subnetting: Use a portion of the host name to identify a smaller network ( subnetwork, subnet). Each subnets is a separate IP network UofT Network Faculty of A&S Library Faculty of Engineering / / / /24

Basic Idea of Subnetting Split the host number portion of an IP address into a subnet number and a (smaller) host number. Result is a 3-layer hierarchy The extended network prefix is also called subnetmask Then: Subnets can be freely assigned within the organization Internally, subnets are treated as separate networks Subnet structure is not visible outside the organization network prefixhost number subnet number network prefix host number extended network prefix

Routers and hosts use an extended network prefix (subnetmask) to identify the start of the host numbers Subnetmask

Example: Subnetmask /16 is the IP address of the network /24 is the IP address of the subnet is the IP address of the host (or ffffff00) is the subnetmask of the host When subnetting is used, one generally speaks of a subnetmask (instead of a netmask) and a subnet (instead of a network)

Advantages of Subnetting With subnetting, IP addresses use a 3-layer hierarchy: »Network »Subnet »Host Reduces router complexity. Since external routers do not need to know about subnetting, the complexity of routing tables at external routers is reduced. Note: Length of the subnet mask need not be identical at all subnetworks.

Creating and Managing Subnetting Use of subnetting or length of the subnetmask is decided by the network administrator, who acts as owner of Subnets are created by setting the subnetmask of an IP interface Important: Subnetmasks must be set consistently

No Subnetting All hosts think that the other hosts are on the same network

With Subnetting Hosts with same extended network prefix belong to the same network

Different subnetmasks lead to different views of the scope of the network With Subnetting

Classful IP Addresses and CIDR In 1993, there was a major shift for interpreting and allocating IP addresses: until 1993: Classful Addresses until 1993: Classful Addresses after 1993: CIDR = Classless Interdomain Routing after 1993: CIDR = Classless Interdomain Routing

Classful IP Addresses When Internet addresses were standardized (early 1980s), the Internet address space was divided up into classes: –Class A: Network prefix is 8 bits long –Class B: Network prefix is 16 bits long –Class C: Network prefix is 24 bits long –Class D: Used (multicast) group addresses –Class E: Reserved Each IP address contained a key which identifies the class: –Class A: IP address starts with 0 –Class B: IP address starts with 10 –Class C: IP address starts with 110 No need for netmasks (unless subnetting is used)

Classful IP Addresses

We will learn about multicast addresses later in this course.

IP Allocation with Classful IP Addresses Limited flexibility for obtaining a network address: 254 IP addresses: Class C = IP addresses:Class B = 16,772,214 IP addresses:Class A Too few network addresses for large networks 2 7 = 128 Class A networks 2 14 = 16,384 Class B networks Flat address space. Routing tables in the backbone Internet need one entry for each network address. Class C networks: up to 2 21 = 2,097,152 entries By 1993, the lookup time of routing tables had become a bottleneck for Internet performance

Allocation of Classful Addresses

CIDR - Classless Interdomain Routing Goals: –New interpretation of the IP address space –Restructure IP address assignments to increase efficiency –Enable routing table aggregation to minimize route table entries CIDR (Classless Interdomain Routing) –Abandons the notion of classes –Key Concept: The length of the network prefix in the IP addresses is kept arbitrary –Consequences: Size of the network prefix must be provided with an IP address ( CIDR notation of IP addresses) Hierarchical routing aggregation introduces dependency of IP addresses to service provider Need for new lookup algorithms for routing tables

CIDR Notation CIDR notation of an IP address: /18 "18" is the prefix length. It states that the first 18 bits are the network prefix of the address (and 14 bits are available for specific host addresses) CIDR notation can replace the use of subnetmasks (but is more general) –IP address and subnetmask becomes /24 CIDR notation allows to drop traling zeros of network addresses: /18 can be written as /18

CIDR address blocks CIDR notation can nicely express blocks of addresses Blocks are used when allocating IP addresses for a company and for routing tables (route aggregation) CIDR Block Prefix # of Host Addresses /2732 /2664 /25128 /24256 /23512 /221,024 /212,048 /204,096 /198,192 /1816,384 /1732,768 /1665,536 /15131,072 /14262,144 /13524,288

Subnetting and Supernetting CIDR is compatible with subnetting: –Subnets are created by extending the prefix CIDR can do more: –CIDR can refer to multiple networks with a single prefix: /16 and /16 can be summarized as /15 –This is called supernetting (In fact, CIDR and supernetting are often used as the same thing) –If neighboring networks have similar address blocks, supernetting reduces the size of routing tables

CIDR and Hierarchical IP address allocation Exploiting supernetting to reduce size of routing tables: –Backbone ISPs obtain blocks of IP addresses and allocate portions of their address blocks to their customers –Customers can allocate a portion of their address block to their own customers

Hierarchical Structure of IP Addresses /16 Rest of Internet ISP X owns: Company Y : ISP Z : Organization A: Organization B:

Hierarchical Structure of IP Addresses /16 Rest of Internet ISP X owns: Company Y : /24 ISP Z : /24 Organization A: /26 Organization B: /26 Obtained from ARIN Obtained from ISP X Obtained from ISP Z

Hierarchical Structure of IP Addresses /16 Rest of Internet ISP X owns: Company Y : /24 ISP Z : /24 Organization A: /26 Organization B: /26 Only one routing entry for /16 No entries needed for network addresses of Company Y, ISP Z, or Organizations A, B. Routing table entry for /24 and /24 (no entry for /26 and /26.

Drawback of Hierarchical IP Addresses IP address assignment depends on service provider /16 Rest of Internet ISP X owns: Company Y : /24 ISP Z : /24 Organization A: /26 Organization B: /26 Must change IP addresses when changing service provider /26

CIDR and Routing Tables Aggregation of routing table entries: – /16 and /16 can be represented as /15 Longest prefix match: Routing table lookup finds the routing entry that matches the the longest prefix What is the outgoing interface for /24 ? Route aggregation can be exploited when IP address blocks are assigned in an hierarchical fashion PrefixInterface /4interface # /9interface # /17interface #1 Routing table

IPv6 - IP Version 6 IP Version 6 –Is the successor to the currently used IPv4 –Specification completed in 1994 –Makes improvements to IPv4 (no revolutionary changes) One (not the only !) feature of IPv6 is a significant increase in of the IP address to 128 bits (16 bytes) IPv6 will solve – for the foreseeable future – the problems with IP addressing addresses per square inch on the surface of the Earth.

IPv6 Header

IPv6 vs. IPv4: Address Comparison IPv4 has a maximum of billion addresses IPv6 has a maximum of = (2 32 ) 4 4 billion x 4 billion x 4 billion x 4 billion addresses

Notation of IPv6 addresses Convention: The 128-bit IPv6 address is written as eight 16- bit integers (using hexadecimal digits for each integer) CEDF:BP76:3245:4464:FACE:2E50:3025:DF12 Short notation: Abbreviations of leading zeroes: CEDF:BP76:0000:0000:009E:0000:3025:DF12 CEDF:BP76:0:0:9E :0:3025:DF12 :0000:0000:0000 can be written as :: CEDF:BP76:0:0:FACE:0:3025:DF12 CEDF:BP76::FACE:0:3025:DF12 IPv6 addresses derived from IPv4 addresses have 96 leading zero bits. Convention allows to use IPv4 notation for the last 32 bits. ::80:8F:89:90 ::