1 Managing IP Addresses and Broadcasts Chapter 2.

Slides:



Advertisements
Similar presentations
Introduction to Classless Routing
Advertisements

Chapter 5 IPv4 Addresses TCP/IP Protocol Suite
Chapter 6: Static Routing
Top-Down Network Design Chapter Six Designing Models for Addressing and Naming Copyright 2010 Cisco Press & Priscilla Oppenheimer.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 VLSM and CIDR Routing Protocols and Concepts – Chapter 6.
Addressing the Network IPv4
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 VLSM and CIDR Routing Protocols and Concepts – Chapter 6.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
1 Introduction to Classless Routing CCNA 3/Module 1.
IP Addressing IP Subnetting Static Subnet Variable Length Subnet Masks(VLSMs)
1 CCNA 3 v3.1 Module 1. 2 CCNA 3 Module 1 Introduction to Classless Routing.
Integrated Network Services Network Design Almerindo Graziano.
CSE5803 Advanced Internet Protocols and Applications (7) Introduction The IP addressing scheme discussed in Chapter 2 are classful and can be summarised.
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
From Subnetting to VLSM
Types of Addresses in IPv4 Network Range
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
1 26-Aug-15 S Ward Abingdon and Witney College CCNA Exploration Semester 1 Addressing the network IPv4 CCNA Exploration Semester 1 Chapter 6.
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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 VLSM and CIDR Routing Protocols and Concepts – Chapter 6 Modified by.
Chapter 8 Advanced TCP/IP Network Design. Classful IP Addressing There are three basic classes of addresses known as class A, B, or C networks.
© 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.
Classless and Subnet Address Extensions (CIDR)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Planning the Addressing Structure Working at a Small-to-Medium Business or ISP – Chapter.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—3-1 Determining IP Routes Implementing Variable-Length Subnet Masks.
© 2007 Cisco Systems, Inc. All rights reserved.ICND2 v1.0—3-1 Medium-Sized Routed Network Construction Implementing VLSM.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing in an Enterprise Network Introducing Routing and Switching in the.
Switching Basics and Intermediate Routing CCNA 3 Chapter 1
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
Communication Between Networks How the Internet Got Its Name.
Chapter 6 VLSM and CIDR.
CCNA2-1 Chapter 6 Variable Length Subnet Masking (VLSM) Classless Inter-Domain Routing (CIDR)
Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College Last Updated: 3/30/2008.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 VLSM and CIDR Routing Protocols and Concepts – Chapter 6 05/07/2009.
VLSM and RIPv2 Warren Toomey GCIT. Introduction Switches deliver frames to stations. Routers deliver packets to networks. Only the final router has to.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing in an Enterprise Network Introducing Routing and Switching in the.
© 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.
Chapter 9. Implementing Scalability Features in Your Internetwork.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNP 1 v3.0 Module 2 Advanced IP Addressing Management Cisco Networking Academy.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 VLSM and CIDR Routing Protocols and Concepts – Chapter 6.
© 2002, Cisco Systems, Inc. All rights reserved..
Chapter 5 IPv4 Address.
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing and Switching Essentials.
IP Addressing.
1 © 2003 Cisco Systems, Inc. All rights reserved. Session Number Presentation_ID Classless Routing.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Static Routing Routing Protocols.
Using IP Addressing in the Network Design
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the network IPv4 CCNA Exploration Semester 1 – Chapter 6.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 9: Subnetting IP Networks Introduction to Networks.
1 © 2004, Cisco Systems, Inc. All rights reserved. Introduction to Classless Routing.
Scaling the Network: Subnetting and Other Protocols
Top-Down Network Design Chapter Six Designing Models for Addressing and Naming Copyright 2010 Cisco Press & Priscilla Oppenheimer.
Instructor Materials Chapter 8: Subnetting IP Networks
4 Network Layer Part I Computer Networks Tutun Juhana
Chapter 8: Subnetting IP Networks
Chapter 5 Working with IP Addresses
Chapter 9: Subnetting IP Networks
Chapter 8: Subnetting IP Networks
Chapter 9: Subnetting IP Networks
Routing Protocols and Concepts – Chapter 6 Modified by Tony Chen
Planning the Addressing Structure
Scaling the Network: Subnetting and Other Protocols
Routing Protocols and Concepts – Chapter 6
Presentation transcript:

1 Managing IP Addresses and Broadcasts Chapter 2

2 2 Making Networks Scalable A scalable network grows continually, yet smoothly and stably Avoid problems with growing networks by providing redundancy and designing networks for easy manageability Choice of routing protocol greatly influences scalability of network

3 3 The Growth of the Internet Initially, Internet was small and limited to researchers In 1990s, Internet grew immensely as governments, universities, corporations, and the general public began to use it Organizations and Internet now experiencing problems managing IP addresses

4 4 IP Address Exhaustion 32-bit IP addresses provide, in theory, over four billion addresses  Many allocated addresses are wasted Fear that the Internet may run out of usable IP addresses

5 5 Wasting Addresses It is acceptable to use subnet zero and the all-ones subnet with VLSM. (In the past, use of the first and last subnets was discouraged). Consider the following example: In this network a Class C address with a mask has been used for each subnet / / /24 The WAN link has enough IP addresses for 254 separate hosts, but will use only two. Each LAN has enough IP addresses for 254 separate hosts. Broadcasts would be a major issue if this address space were not further subnetted. Consider this alternative addressing scheme: / / /30 This network allows 126 different host addresses This network allows 62 different host addresses This network allows just 2 host addresses

6 6 Routing Table Growth Internet routing table increased from about 5000 routers in 1990 to more than 100,000 in 2001 Large routing tables require more CPU time and more memory  Result in slowed down table lookups  Make troubleshooting more difficult

7 7 Managing IP Addresses Administrators use many strategies to manage IP addresses Hierarchical addressing Hierarchical routing Route summarization Variable-length subnet masks Classful and classless routing

8 8 Hierarchical Addressing Layered, orderly addressing Similar to public telephone network  Local office recognizes local exchange  Local central office forwards long distance calls to central office in other area codes  Calls then treated as local call by central office in other area codes

9 9 Hierarchical Routing Router forwards packet to core layer router based on first octet IP address Core layer router forwards packet to distribution layer router based on first two octets Distribution layer router forwards packet to access layer router based on first three octets Access layer router forwards packet to final destination

10 Route Summarization Also called address aggregation Combines multiple routes that share leftmost bits into one summary route  Similar to telephone area code Reduces number of routes to a specific customer

11 Route Summarization INSERT FIGURE 2-2

12 Route Summarization If router has both summary route and ordinary route, it selects the one with the longest match  Looks at length of prefix or number of bits in subnet mask to determine path Route summarization does not make address allocation more efficient, especially point-to-point links

13 Example of Routing Table with Multiple Routes to a Destination

14 Without Route Summarization

15 With Route Summarization

16 Variable-Length Subnet Masks VLSMs, defined in RFC 1812, let you subdivide Class C Subnet mask helps router break IP address into network and host portions  Router uses network part of IP address to forward packet to correct network  Local router uses host part of IP address to deliver packet to destination

17 Example of Calculating the Network Number INSERT FIGURE 2-4

18 The Logical AND Operation Router matches bits in IP address and subnet mask Compares bits and performs logical AND operation  If both bits are ones, the result is a one  If either bit is a zero, the result is a zero Logical AND operation provides network number

19 Example of Logical AND Operation INSERT TABLE 2-1

20 Calculating Subnets Number of subnets depends on number of bits borrowed from network portion of IP address Calculate number of new subnets by 2n, where n is the number of borrowed bits  Subtract two to find number of usable host bits  First and last addresses reserved for network address and broadcast address

21 Classful and Classless Netmasks If netmask follows traditional class boundaries, it is called classful routing If netmask does not follow traditional class boundaries, it is called classless routing  Can supernet or use a smaller netmask than traditional class boundaries

22 Example: Calculating Subnets with VLSM 28 hosts 60 hosts12 hosts A class C address of /24 has been allocated. Requirement levels, listed from the largest to the smallest: Host address range Singapore to KL Sydney to KL Perth to KL 12Singapore 12Sydney 28KL LAN 60Perth LAN 4 th Octet network/host bits HostsNetwork / / / / / / / NNHHHHHH /26 (  62 hosts) NNNHHHHH /27 (  30 hosts) NNNNHHHH /28 (  14 hosts) NNNNHHHH /28 (  14 hosts) NNNNNNHH /30 (2 hosts) NNNNNNHH /30 (2 hosts) NNNNNNHH /30 (2 hosts)

23 Calculating VLSM Subnet Masks According to RFC 1812, all bits in subnet mask must be contiguous  Cisco IOS displays error message if subnet has discontiguous bits Be sure routing protocol supports VLSMs  OSPF and EIGP support VLSMs  RIP version 1 and IGRP do not support VLSMs

24 Cisco IOS Error Message for Subnet with Discontiguous Bits

25 Summarizing Routes Using VLSMs VLSMs allocate IP addresses more efficiently VLSMs provide more flexibility in summarizing routes  Based entirely on higher-order bits they share on the left  Routes do not have to be contiguous  Prefix of summary route based on bits shared by all routes

26 Route Summarization

27 Network Numbers with VLSM

28 Example: Route Aggregation with VLSM / / / / / / / / / / / /22 Advertise one supernet route: _______________ to RTZ Advertise one supernet route: _______________ to ISP / / / /20

29 Classes of IP Addresses Class depends on first octet of IP address  Class A addresses begin with a zero as the leftmost bit; use 8 bits for network address  Class B addresses begin with a 10 as the first two bits; use 16 bits for network address  Class C addresses begin with a 110 as the first three bits; use 24 bits for network address  Class D addresses are used for multicast  Class E addresses are used for research

30 Classful Routing Router uses classes of addresses  Can subnet along class octet boundaries Routing protocols include RIPv1 and IGRP  May use IP classless global configuration command to forward packets to a summary route Classful routing is inflexible, limited, and sometimes wasteful

31 Classful Address Distinctions

32 Classless Routing Ignores traditional class boundaries Protocols include OSPF and EIGRP  Can allocate and receive IP addresses as necessary  Previously Three Regional Internet Registries (RIRs) now Five, allocate IP classless addresses in blocks American Registry for Internet Numbers (ARIN) Réseaux IP Européens Network Coordination Centre (RIPE NCC) Asia Pacific Network Information Center (APNIC) Regional Latin-America and Caribean Address Registry (LACNIC)-2002 African Network Information Centre (AfriNIC)-2005

33 Classless Inter-Domain Routing (CIDR) RIRs assign addresses based on Classless Inter-Domain Routing (CIDR)  CIDR discussed in RFCs 1518, 1519, and 2050 Each CIDR block has a prefix or IP address and a prefix length or subnet mask

34 Allocating IP Addresses How IP addresses are allocated affects how well network performs Pitfalls of route summarization  Requires more planning  More useful with classless routing protocol  Can lead to poor path selection  Can create problem with discontiguous subnets

35 Problems with Summarization and Discontiguous Subnets Route summarization hides details of network from routers Discontiguous subnets may result in outage or inability to deliver packets

36 Discontiguous Subnets

37 Outage Created by Discontiguous Subnets

38 Allocating IP Addresses Using VLSMs Efficient allocation of IP addresses requires  Allocating enough IP addresses to each subnet for future growth  Not allocating more than necessary for each subnet Plan for route summarization  Do not assign IP addresses haphazardly  Assign IP addresses based on topology of network

39 Example of IP Address Allocation Based on Topology

40 Process of Assigning IP Addresses After finding baseline subnet, calculate the number of subnets you can use  Cisco recommends allocating addresses from the lowest to the highest for easier summarizing of routes  Put your largest networks into the lower subnets

41 Other Addressing Strategies Unnumbered interfaces Private address space Network address translation IP version 6

42 Unnumbered Interfaces Configure IP on interface without explicitly using an IP address  Use ip unnumbered command to refer to an existing interface that routers use as source address  Unnumbered interfaces often get IP address from loopback address Drawbacks include inability to get status by pinging, making troubleshooting and monitoring more difficult Some serial protocols such as X.25 and SMDS do not support unnumbered interfaces

43 Private Address Space RCF 1918 sets aside three ranges of IP addresses for private networks  /8  /16  through Do not route addresses in these blocks to the Internet

44 Network Address Translation NAT involves device such as a router that translates one set of IP addresses into another set  Can conserve IP addresses by translating a large pool of private addresses into a small pool of public addresses Disadvantages include increased latency and difficulties with protocols or applications that put IP address in data portion of IP packet

45 IP Version 6 IPv6, specified in RFC 2460, offers several advantages over current version (IPv4)  Uses 128 bit IP addresses  Provide over 3 x possible IP addresses  Includes more support for quality of service and better security Adoption of IPv6 is moving slowly

46 Managing Broadcasts Routers do not, by default, forward broadcasts If PC boots without knowing its IP address, it must contact DHCP or BOOTP server  If server not on same segment, PC cannot get an IP address  Can hard code all IP addresses if PC unable to reach server Creates administrative nightmare

47 Using a Helper Address Solution is to allow broadcasts in specific situations Cisco routers can direct a broadcast to a helper address  Can configure more than one helper address  Must use IP directed-broadcast interface configuration command with Cisco IOS 12.0 and later  Configure helper address to router closest to client  By default, helper address command turns on eight UDP ports as shown in Table 2-8

48 Default UDP Ports