NETW 110 Lab 04 Handout - Subnetting IP Addresses



Similar documents
Understanding IP Addressing: Everything You Ever Wanted To Know

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

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

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

Internet Addresses (You should read Chapter 4 in Forouzan)

TCP/IP Basis. OSI Model

IP Addressing. IP Addresses. Introductory material.

IP Addressing Introductory material.

Chapter 19 Network Layer: Logical Addressing 19.1

We Are HERE! Subne\ng

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

Internet Protocol Address

Classful IP Addressing (cont.)

IP Addressing A Simplified Tutorial

How To Make A Network Address Prefix Smaller

How to Create Subnets To create subnetworks, you take bits from the host portion of the IP address and reserve them to define the subnet address.

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

IP Subnetting and Addressing

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

The Subnet Training Guide

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

Lab#2: IP Addressing and Subnetting

Future Internet Technologies

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

Variable length subnetting

CCNA Tutorial Series SUBNETTING

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

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.

Tutorial (03) IP addresses & Sub netting

You can probably work with decimal. binary numbers needed by the. Working with binary numbers is time- consuming & error-prone.

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

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

(Refer Slide Time: 02:17)


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

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

Savera Tanwir. Internet Protocol

Introduction to IP v6

ICS 351: Today's plan

Question Question Question EdTech 552: Lab 3 Answer Sheet

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

Are You Ready to Teach IPv6?

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

Objectives. Upon completing this chapter, you will be able to

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

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

IP Address Structure

Developing an IPv6 Addressing Plan Guidelines, Rules, Best Practice

Lab IP Addressing Overview

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

PART IV. Network Layer

INDIRIZZAMENTO IPv4. INDIRIZZAMENTO IPv ogni host attaccato alla rete doveva avere un indirizzo IP unico

- IPv4 Addressing and Subnetting -

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

Internet Protocol version 4 Part I

Advanced IP Addressing

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

Subnetting/Supernetting and Classless Addressing

The Internet/Network Layer

COMP 631: COMPUTER NETWORKS. IP Addressing. Jasleen Kaur. Fall How to Deal With Heterogeneity & Scale?

IP Addressing and Subnetting for New Users

Pre-lab Preparation: 1. Read thoroughly and prepare the experiment sheet. 2. You must bring a printed copy of this experiment with you to the lab.

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

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

Classless Subnetting Explained

Module 4, Assignment 3-2

Chapter 4. IP Addresses: Classful Addressing

CLASSLESS INTER DOMAIN ROUTING - CIDR

Subnetting Study Guide

2.3 IPv4 Address Subnetting Part 2

8.2 The Internet Protocol

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

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Module 10 Subnetting Class A, B and C addresses. Solutions to the Lab Exercises a, b, c and d

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

Source net: Destination net: Subnet mask: Subnet mask: Router Hub

Internet Working 5 th lecture. Chair of Communication Systems Department of Applied Sciences University of Freiburg 2004

Lab a Basic Subnetting

Activity 6.7.4: IPv4 Address Subnetting Part 2

IPV6 TECHNOLOGY AND DNS SETUP

Type of addressing in IPv4

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

Address Scheme Planning for an ISP backbone Network

Desirable Properties Of An Internet Addressing Scheme

UNDERSTANDING IP ADDRESSING

Chapter 4 IP Addresses: Classful Addressing

VLSM and CIDR Malin Bornhager Halmstad University

TCP/IP Cheat Sheet. A Free Study Guide by Boson Software, LLC

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

Neighbour Discovery in IPv6

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

SUBNETTING SCENARIO S

CONFIGURING TCP/IP ADDRESSING AND SECURITY

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

Lecture 10. Subnetting & Supernetting

IPv6 Addressing. John Rullan Cisco Certified Instructor Trainer Thomas A. Edison CTE HS

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

Subnetting IPv4 and IPv6

CCNA R&S: Introduction to Networks. Chapter 9: Subnetting IP Networks

Transcription:

Primary Address Classes In order to provide the flexibility required to support different size networks, the designers decided that the IP address space should be divided into three different address classes - Class A, Class B, and Class C. This is often referred to as classful addressing because the address space is split into three predefined classes, groupings, or categories. Each class fixes the boundary between the network-prefix and the host-number at a different point within the 32-bit address. The formats of the fundamental address classes are illustrated in Figure 1. Figure 1: Principle Classful IP Address Formats In classful IP addressing, each address contains a self-encoding key that identifies the dividing point between the network-number and the host-number. For example, if the first two bits of an IP address are 1-0, the dividing point falls between second and third byte (octet in dotted decimal). This simplified the routing system during the early years of the Internet because the original routing protocols did not supply a deciphering key or mask with each route to identify the length of the network-prefix. IPv4 address space contains a maximum of 2 32 (4,294,967,296) Class A Networks (/8 Prefixes) Class A networks are now referred to as /8s (pronounced slash eight) since they have an 8-bit networkprefix. Each Class A network address has an 8-bit network-prefix with the highest order bit set to 0 and a seven-bit network number, followed by a 24-bit host-number defines a maximum of 126 (2 7-2) /8 networks can be defined. supports a maximum of 16,777,214 (2 24-2) hosts per network. The host calculation requires that 2 is subtracted because the all-0s ( this network ) and all-1s ( broadcast ) host-numbers may not be assigned to individual hosts. the /8 address block contains 2 31 (2,147,483,648 ) individual addresses the /8 address space is 50% of the total IPv4 unicast address space. Class B Networks (/16 Prefixes) Class B networks are now referred to as /16 s since they have a 16-bit network-prefix. Each Class B network address has a 16-bit network-prefix with the two highest order bits set to 1-0 and a 14-bit network number, followed by a 16-bit host-number defies a maximum of 16,384 (2 14 ) /16 networks can be defined with up to 65,534 (2 16-2) hosts per network supports a maximum of 2 30 (1,073,741,824) addresses Page 1

represents 25% of the total IPv4 unicast address space. Class C Networks (/24 Prefixes) Class C networks are now referred to as /24s since they have a 24-bit network-prefix. Each Class C network address has a 24-bit network-prefix with the three highest order bits set to 1-1-0 and a 21-bit network number, followed by an 8-bit host-number. Defines a maximum of 2,097,152 (2 21 ) /24 networks can be defined with up to 254 (2 8-2) hosts per network Supports a maximum of 2 29 (536,870,912) addresses represents 12.5% (or 1/8th) of the total IPv4 unicast address space. Other Classes In addition to the three most popular classes, there are two additional classes. Class D addresses have their leading four-bits set to 1-1-1-0 and are used to support IP Multicasting. Class E addresses have their leading four-bits set to 1-1-1-1 and are reserved for experimental use. Dotted-Decimal Notation To make Internet addresses easier for human users to read and write, IP addresses are often expressed as four decimal numbers, each separated by a dot, which is commonly referred to as dotted-decimal notation. Dotted-decimal notation divides the 32-bit IP address space into four 8-bit (byte) fields, and specifies the value of each field independently as a decimal number with the fields separated by dots. The following shows how a typical Class B Internet address can be expressed in dotted decimal. 1001 0011 0000 1010 0010 1011 0110 0100 147 10 43 100 Figure 2: Dotted-Decimal Notation For the example above, the IP Address is 147.10.43.100 Table 1 displays the range of valid dotted-decimal addresses that can be assigned to each of the three principle address classes. Address Class Address Range Class A or /8 1.xxx.xxx.xxx 126.xxx.xxx.xxx Class B or /16 128.0.xxx.xxx 191.255.xxx.xxx Class C or /24 192.0.0.xxx 223.255.255.xxx Valid Classful IP Address Range by Class In the table above, the portion of the address represented by xxx is assigned by the network administrator. Network addresses whose first octet is 0 or 127 may not be assigned. Address 127.0.0.1 is used for loopback testing Subnetting RFC 950 defines the procedure that supports subnetting, or division, of a single Class A, B, or C network number into smaller pieces. Subnetting was introduced to overcome some of the problems that Page 2

parts of the Internet were beginning to experience with the classful two-level addressing hierarchy including: Internet routing tables were beginning to grow. Local administrators had to request another network number from the Internet before a new network could be installed at their site. Subnetting supports a three-level address hierarchy as demonstrated in the following graphic. It divides the standard classful host-number field into two parts - the subnet-number and the host-number on that subnet. Network Number Host Number Network Number Subnet Number Host Number Subnetting eliminated problems associated with the expanding routing table problem by ensuring that the subnet structure of a network is never visible outside of the organization s private network. The route from the Internet to any subnet of a given IP address is the same, no matter which subnet the destination host is on. It overcame the registered number issue by assigning each organization one (or at most a few) network number(s) from the IPv4 address space. The organization was then free to assign a distinct subnetwork number for each of its internal networks. This allows the organization to deploy additional subnets without needing to obtain a new network number from the Internet. Extended-Network-Prefix Internet routers use only the network-prefix of the destination address to route traffic to a subnetted environment. Routers within the subnetted environment use the extended-network- prefix to route traffic between the individual subnets. The extended-network-prefix is composed of the classful network-prefix and the subnet-number. Extended Network Prefix Network Number Subnet Number Host Number The extended-network-prefix has traditionally been called the subnet mask. For example, if you have the /16 address of 137.15.0.0 and you want to use the entire third octet to represent the subnet-number, you specify a subnet mask of 255.255.255.0. The bits in the subnet mask and the Internet address have a one-to-one correspondence. The bits of the subnet mask are set to 1 if the system examining the address should treat the corresponding bit in the IP address as part of the extended-network- prefix. The bits in the mask are set to 0 if the system should treat the bit as part of the host-number. The standards describing modern routing protocols often refer to the extended-network-prefix- length rather than the subnet mask. The prefix length is equal to the number of contiguous one-bits in the traditional subnet mask. This means that specifying the network address 137.15.5.25 with a subnet mask of 255.255.255.0 can also be expressed as 137.15.5.25/24. However, modern routing protocols still carry the subnet mask. Since there are no Internet standard routing protocols with a one-byte field in their header that contains the number of bits in the extendednetwork prefix, each routing protocol is still required to carry the complete four-octet subnet mask. Subnet Design Considerations The deployment of an addressing plan requires careful thought on the part of the network administrator. Four questions must be answered before any design should be undertaken: 1. How many total subnets does the organization need today? Page 3

2. How many total subnets will the organization need in the future? 3. How many hosts are there on the organization s largest subnet today? 4. How many hosts will there be on the organization s largest subnet in the future? Steps to create a Subnet 1. Determine the maximum number of subnets required and round up to the nearest power of two. Assume an organization needs 9 subnets. 2 3 (or 8) will not provide enough subnet addressing space, so the network administrator will need to use 2 4 (or 16). Furthermore, it is critical that the network administrator always allow adequate room for future growth. For example, if 14 subnets are required today, then 16 subnets might not be enough in two years when the 17th subnet needs to be deployed. In this case, it might be wise to allow for more growth and select 2 5 (or 32) as the maximum number of subnets. 2. The second step is to make sure that there are enough host addresses for the organization s largest subnet. If the largest subnet needs to support 50 host addresses today, 2 5 (or 32) will not provide enough host address space so the network administrator will need to round up to 2 6 (or 64). 3. The final step is to make sure that the organization s address allocation provides enough bits to deploy the required subnet addressing plan. For example, if the organization has a single /16, it could easily deploy 4-bits for the subnetnumber and 6-bits for the host number. If the organization has several /24s and it needs to deploy 9 subnets, it may be required to subnet each of its /24s into four subnets (using 2 bits) and build the Internet by combining the subnets of 3 different /24 network numbers. An alternative solution would be to deploy network numbers from the private address space (RFC 1918) for internal connectivity and use a Network Address Translator (NAT) to provide external Internet access. Private addresses are used for internal use, ones that will never be used for external IP addresses are: 10.0.0.0 10.255.255.255 172.16.0.0 172.31.255.255 192.168.0.0 192.168.255.255 Steps to Create an Extended Network Prefix Address Class Address Range Class A or /8 1.xxx.xxx.xxx 126.xxx.xxx.xxx Class B or /16 128.0.xxx.xxx 191.255.xxx.xxx Class C or /24 192.0.0.xxx 223.255.255.xxx Valid Classful IP Address Range by Class 1. Identify the IP Address Class 2. Remove the part of the address that is associated with the Network Number (the first octet for class A, the first two for class B, and the first three for class C) All bits of the network number will be assigned 1 for the subnet mask. 3. Determine the number of bits that must be borrowed from the MSB of the highest remaining octets of the host address using the equation 2 n 2 where n is the number of bits. These bits will be set to 1 in the subnet mask. Page 4

4. The remaining bits are the host address and are assigned 0 for the subnet mask. To determine which subnet a host is on, the network router will AND the IP address with the subnet mask. This is used internally on the destination network. This identifies the router and router port on which the host resides. Subnet Example #1 An organization has been assigned the network number 193.1.1.0/24 by ARIN. It needs to define six subnets, and the largest subnet is required to support 25 hosts. Defining the Subnet Mask / Extended-Prefix Length Based on the value in the first octet, this is a Class C IP Address. 1. The Extended Network Prefix and all host addresses must be contained in the last octet. The first 3 octets will be 255.255.255 2. Determine the number of bits required to define the six subnets AN 25 hosts per subnet. Since 2 3 = 8, 3 bits defines 8 subnets. So we need 3 bits for the ENP. 3. Since this is Class C, we only have 5 bits left for hosts on each subnet. 2 5 = 32 of which 30 are useable. With 3 bits in the host address space for subnetting, and five bits for host, the subnet mask for the last octet is 1110 0000 or 128 + 64 + 32 = 224. Since the octets associated with the network address are all 1 s, the ENP for this example is 255.255.255.224. Therefore, the IP address with ENP for the network is 193.1.1.0/27 or 193.1.1.0 with an ENP of 255.255.255.224 Range of IP Addresses by Subnet For 193.1.1.0/27 Subnet Number Range of IP Addresses 000 193.1.1.0 193.1.1.31 001 193.1.1.32 193.1.1.63 010 193.1.1.64 193.1.1.95 011 193.1.1.96 193.1.1.127 100 193.1.1.128 193.1.1.159 101 193.1.1.160 193.1.1.191 110 193.1.1.192 193.1.1.223 111 193.1.1.224 193.1.1.255 Note: Host addresses that are all 0 s or all 1 s may not be assigned to hosts. An example of how we find the subnet on which a host resides. 1. Assume the IP address is 193.1.1.138. Represent the IP address in binary. 1100 0001 0000 0001 0000 0001 1000 1010 2. Represent the ENP in Binary 1111 1111 1111 1111 1111 1111 1110 0000 3. AND the IP with the ENP Page 5

1100 0001 0000 0001 0000 0001 1000 1010 IP 1111 1111 1111 1111 1111 1111 1110 0000 ENP 1100 0001 0000 0001 0000 0001 1000 0000 Subnet Address Therefore, looking at the host address remaining after ANDing the IP with the ENP, we see that the host is on subnet 4 (100 for the subnet part of the last octet). This is used by the network routers to route the packet to the subnet on which the host resides. Classless Inter-Domain Routing (CIDR) By 1992, the growth of the Internet was beginning to raise serious concerns among members of the IETF (Internet Engineering Task Force) about the ability of the Internet's routing system to scale and support future growth. These problems were related to: The near-term exhaustion of the Class B network address space The rapid growth in the size of the global Internet's routing tables The eventual exhaustion of the 32-bit IPv4 address space Projected Internet growth figures made it clear that the first two problems were likely to become critical by 1994 or 1995. The response to these immediate challenges was the development of the concept of Supernetting or Classless Inter-Domain Routing (CIDR). The third problem, which is of a more long-term nature, is currently being explored by the IP Next Generation (IPng or IPv6) working group of the IETF. Without the rapid deployment of CIDR in 1994 and 1995, the Internet routing tables would have in excess of 70,000 routes instead of the current 30,000+. CIDR was officially documented in September 1993 in RFC 1517, 1518, 1519, and 1520. CIDR supports two important features that benefit the global Internet routing system: CIDR eliminates the traditional concept of Class A, Class B, and Class C network addresses. This enables the efficient allocation of the IPv4 address space that will allow the continued growth of the Internet while IPv6 is deployed. CIDR supports route aggregation where a single routing table entry can represent the address space of perhaps thousands of traditional classful routes. This allows a single routing table entry to specify how to route traffic to many individual network addresses. Route aggregation helps control the amount of routing information in the Internet's backbone routers, reduces route flapping (rapid changes in route availability), and eases the local administrative burden of updating external routing information. CIDR Promotes the Efficient Allocation of the IPv4 Address Space CIDR eliminates the traditional concept of Class A, Class B, and Class C network addresses and replaces them with the generalized concept of a network-prefix. Routers use the network-prefix, rather than the first 3 bits of the IP address, to determine the dividing point between the network number and the host number. As a result, CIDR supports the deployment of arbitrarily sized networks rather than the standard 8-bit, 16- bit, or 24-bit network numbers associated with classful addressing. In the CIDR model, routing information is advertised with a bit mask (or prefix-length). The prefixlength is a way of specifying the number of leftmost contiguous bits in the network-portion of each routing table entry. For example, a network with 20 bits of network-number and 12-bits of hostnumber would be advertised with a 20-bit prefix length (a /20). The clever thing is that the IP address advertised with the /20 prefix could be a former Class A, Class B, or Class C. Routers that support CIDR do not make assumptions based on the first 3-bits of the address, they rely on the prefix-length information provided with the route. Page 6

Global Routing Tables at Capacity A related problem was the sheer size of the Internet global routing tables. As the number of networks on the Internet increased, so did the number of routes. A few years back it was forecasted that the global backbone Internet routers were fast approaching their limit on the number of routes they could support. Even using the latest router technology, the maximum theoretical routing table size is approximately 60,000 routing table entries. If nothing was done the global routing tables would have reached capacity by mid-1994 and all Internet growth would be halted. Two solutions were developed and adopted by the global Internet community: Restructuring IP address assignments to increase efficiency Hierarchical routing aggregation to minimize route table entries Restructuring IP Address Assignments Classless Inter-Domain Routing (CIDR) is a replacement for the old process of assigning Class A, B and C addresses with a generalized network prefix. Instead of being limited to network identifiers (or prefixes) of 8, 16 or 24 bits, CIDR currently uses prefixes anywhere from 13 to 27 bits. Thus, blocks of addresses can be assigned to networks as small as 32 hosts or to those with over 500,000 hosts. This allows for address assignments that much more closely fit an organization's specific needs. A CIDR address includes the standard 32-bit IP address and information on how many bits are used for the network prefix. For example, in the CIDR address 206.13.01.48/25, the /25 indicates the first 25 bits are used to identify the unique network leaving the remaining bits to identify the specific host. CIDR Block Prefix # Equivalent Class C # of Host Addresses /27 1/8th of a Class C 32 hosts /26 1/4th of a Class C 64 hosts /25 1/2 of a Class C 128 hosts /24 1 Class C 256 hosts /23 2 Class C 512 hosts /22 4 Class C 1,024 hosts /21 8 Class C 2,048 hosts /20 16 Class C 4,096 hosts /19 32 Class C 8,192 hosts /18 64 Class C 16,384 hosts /17 128 Class C 32,768 hosts /16 256 Class C (= 1 Class B) 65,536 hosts /15 512 Class C 131,072 hosts /14 1,024 Class C 262,144 hosts /13 2,048 Class C 524,288 hosts Hierarchical Routing Aggregation to Minimize Routing Table Entries The CIDR addressing scheme also enables route aggregation in which a single high-level route entry can represent many lower-level routes in the global routing tables. The scheme is similar to the telephone network where the network is setup in a hierarchical structure. A high level, backbone network node only looks at the area code information and then routes the call Page 7

to the specific backbone node responsible for that area code. The receiving node then looks at the phone number prefix and routes the call to its subtending network node responsible for that prefix and so on. The backbone network nodes only need routing table entries for area codes, each representing huge blocks of individual telephone numbers, not for every unique telephone number. Currently, big blocks of addresses are assigned to the large Internet Service Providers (ISPs) who then re-allocate portions of their address blocks to their customers. For example, Pacific Bell Internet has been assigned a CIDR address block with a prefix of /15 (equivalent to 512 Class C addresses or 131,072 host addresses) and typically assigns its customers CIDR addresses with prefixes ranging from /27 to /19. These customers, who may be smaller ISPs themselves, in turn re-allocate portions of their address block to their users and/or customers. However, in the global routing tables all these different networks and hosts can be represented by the single Pacific Bell Internet route entry. In this way, the growth in the number of routing table entries at each level in the network hierarchy has been significantly reduced. Currently, the global routing tables have approximately 35,000 entries. User Impacts The Internet is currently a mixture of both CIDR-ized addresses and old Class A, B and C addresses. Almost all new routers support CIDR and the Internet authorities strongly encourage all users to implement the CIDR addressing scheme. The conversion to the CIDR addressing scheme and route aggregation has two major user impacts: Justifying IP Address Assignments Where To Get Address Assignments Justifying IP Address Assignments Even with the introduction of CIDR, the Internet is growing so fast that address assignments must continue to be treated as a scarce resource. As such, customers are required to document, in detail, their projected needs. Users may be required from time to time to document their internal address assignments, particularly when requesting additional addresses. The current Internet guideline is to assign addresses based on an organization's projected three month requirement with additional addresses assigned as needed. Where to Get Address Assignments In the past, you would get a Class A, B or C address assignments directly from the appropriate Internet Registry (i.e., the InterNIC). Under this scenario, you owned the address and could take it with you even if you changed Internet Service Providers (ISPs). With the introduction of CIDR address assignments and route aggregation, with a few exceptions, the recommended source for address assignments is your ISP. Under this scenario, you are only renting the address and if you change ISPs it is strongly recommended that you get a new address from your new ISP and renumber all of your network devices. While this can be a time-consuming task, it is critical for your address to be aggregated into your ISP's larger address block and routed under their network address. There are still significant global routing table issues and the smaller your network is, the greater your risk of being dropped from the global routing tables. In fact, networks smaller than 8,192 devices will very likely be dropped. Neither the InterNIC nor other ISPs have control over an individual ISP's decisions on how to manage their routing tables. As an option to physically re-numbering each network device, some organizations are using proxy servers to translate old network addresses to their new addresses. Users should be cautioned to consider all the potential impacts carefully before using this type of solution. Page 8

IPv6 There is a new standard that has been defined, but only marginally implemented It is called IPv6 or Next Generation Internet Addresses. Although IPv6 will not be used in this course, you should know they exist, what format the addresses use, and how they handle IPv4 IP Addresses. What do IPv6 addresses look like? IPv6 addresses are 128 bits long. This number of bits generates very high decimal numbers with up to 39 digits: 2 128-1: 340282366920938463463374607431768211455 Such numbers are not really addresses that can be memorized. Also the IPv6 address schema is bitwise orientated (just like IPv4, but that's not often recognized). Therefore a better notation of such big numbers is hexadecimal. In hexadecimal, 4 bits (also known as "nibble") are represented by a digit or character from 0-9 and a-f (10-15). This format reduces the length of the IPv6 address to 32 characters. 2 128-1: 0xffffffffffffffffffffffffffffffff This representation is still not very convenient (possible mix-up or loss of single hexadecimal digits), so the designers of IPv6 chose a hexadecimal format with a colon as separator after each block of 16 bits. In addition, the leading "0x" (a signifier for hexadecimal values used in programming languages) is removed: 2 128-1: ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff A usable address (see address types later) is e.g.: 3ffe:ffff:0100:f101:0210:a4ff:fee3:9566 For simplifications, leading zeros of each 16 bit block can be omitted: 3ffe:ffff:0100:f101:0210:a4ff:fee3:9566 -> 3ffe:ffff:100:f101:210:a4ff:fee3:9566 One sequence of 16 bit blocks containing only zeroes can be replaced with "::". But not more than one at a time, otherwise it is no longer a unique representation. 3ffe:ffff:100:f101:0:0:0:1 -> 3ffe:ffff:100:f101::1 The biggest reduction is seen by the IPv6 localhost address: 0000:0000:0000:0000:0000:0000:0000:0001 -> ::1 Like IPv4, IPv6 addresses can be split into network and host parts using subnet masks. IPv4 has shown that sometimes it would be nice, if more than one IP address can be assigned to an interface, each for a different purpose (aliases, multi-cast). To remain extensible in the future, IPv6 is going further and allows more than one IPv6 address to be assigned to an interface. There is currently no limit defined by an RFC, only in the implementation of the IPv6 stack (to prevent DoS attacks). Using this large number of bits for addresses, IPv6 defines address types based on some leading bits, which are hopefully never going to be broken in the future (unlike IPv4 today and the history of class A, B, and C). Localhost Address This is a special address for the loopback interface, similar to IPv4 with its 127.0.0.1. Packets with this address as source or destination should never leave the sending host. Under IPv6, the localhost address is: 0000:0000:0000:0000:0000:0000:0000:0001 Page 9

or compressed: ::1 Unspecified address This is a special address like "any" or "0.0.0.0" in IPv4. These addresses are mostly used/seen in socket binding (to any IPv6 address) or routing tables. Note: the unspecified address cannot be used as destination address.for IPv6 it's: 0000:0000:0000:0000:0000:0000:0000:0000 or: :: IPv6 address with embedded IPv4 address There are two addresses that contain an IPv4 address. IPv4-mapped IPv6 address IPv4-only IPv6-compatible addresses are sometimes used/shown for sockets created by an IPv6- enabled daemon, but only binding to an IPv4 address. These addresses are defined with a special prefix of length 96 (a.b.c.d is the IPv4 address): 0:0:0:0:0:ffff:a.b.c.d/96 or in compressed format ::ffff:a.b.c.d/96 For example, the IPv4 address 1.2.3.4 looks like this: ::ffff:1.2.3.4 IPv4-compatible IPv6 address Used for automatic tunneling (RFC 2893 / Transition Mechanisms for IPv6 Hosts and Routers), which is being replaced by 6to4 tunneling. 0:0:0:0:0:0:a.b.c.d/96 or in compressed format ::a.b.c.d/96 Page 10

IP Addressing Questions 1. Given the IP network address 148.25.0.0, what subnet mask(s) will provide for a minimum of 100 subnets, each supporting at least 200 PC's? Using the subnet mask of your choice, what are the subnet addresses, the ranges of host addresses for each subnet, and the broadcast addresses of your subnets? 2. Comrade Network Engineer, of the Chernobyl nuclear-electric generating station has five nuclear reactors (that have not, as of yet, melted down). In each reactor, seventeen independently addressable Control Rod Drive Mechanisms move seventeen zirconium-clad hafnium control rods (one rod per CRDM), to control the reactor. Given that Chernobyl Power & Light has an assigned IP network address of 199.28.7.0, if each reactor needs its own subnet, and each CRDM requires its own IP host address, what subnet mask(s) will meet CP&L's requirements? Based on your recommendation for a subnet mask, what is the SCRAM (emergency shutdown) IP broadcast address for each reactor, comrade? 3. Exponential Growth, Inc., has an IP network address of 145.94.0.0/28, with 47 subnets. The maximum number of hosts they have on any one subnet is eleven. They plan to double the number of hosts per subnet by the year 2008, and they are worried about running out of IP addresses. They just called you in to analyze their IP network. Can you help them? 4. Given the following host addresses and subnet masks, find each subnet and its range of host addresses and write the subnet mask in dotted decimal notation: a. 209.86.254.114/28 b. 10.15.17.22/13 c. 192.63.83.105/26 d. 134.72.29.55/20 e. 25.0.0.99/29 f. 223.16.38.101/27 g. 176.17.123.209/30 h. 205.195.23.95/24 5. Given the following networks, numbers of subnets, and hosts per subnet, specify all possible subnet masks in both dotted-decimal and CIDR notation: Network Subnets Hosts/Subnet ----------- ------- ------------ a. 194.26.84.0 5 20 b. 137.10.0.0 100 200 c. 172.16.0.0 105 66 d. 206.99.1.0 3 15 e. 64.0.0.0 2000 300 f. 206.14.72.0 2 115 g. 198.25.82.0 60 2 h. 187.53.0.0 515 290 Page 11