We Are HERE! Dividing Up the Space. Addressing Background. Addressing Strategies. Requirements analysis Flow Analysis Logical Design

Similar documents
We Are HERE! Subne\ng

Future Internet Technologies

Advanced IP Addressing

IP Addressing A Simplified Tutorial

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

Internet Addresses (You should read Chapter 4 in Forouzan)

- IPv4 Addressing and Subnetting -

Introduction to IP v6

IP Addressing Introductory material.

IP Addressing. IP Addresses. Introductory material.

Savera Tanwir. Internet Protocol

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Lecture Computer Networks

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

IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

8.2 The Internet Protocol

Internetworking and Internet-1. Global Addresses

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

ICS 351: Today's plan

IP address format: Dotted decimal notation:

Network layer: Overview. Network layer functions IP Routing and forwarding

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

IP Subnetting and Addressing

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

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

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

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

Variable length subnetting

PART IV. Network Layer

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

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

The Internet/Network Layer

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Internet Peering, IPv6, and NATs. Mike Freedman V Networks

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

Classful IP Addressing (cont.)

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

The Subnet Training Guide

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

CCNA Tutorial Series SUBNETTING

Lab#2: IP Addressing and Subnetting

TCP/IP Basis. OSI Model

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

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

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

IPv6 Advantages. Yanick Pouffary.

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

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

Subnetting/Supernetting and Classless Addressing

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

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

VLSM and CIDR Malin Bornhager Halmstad University

Module 4, Assignment 3-2

Technology Brief IPv6 White Paper.

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

Internetworking and IP Address

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

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

Lecture 8. IP Fundamentals

Internet Protocol version 4 Part I

21.4 Network Address Translation (NAT) NAT concept

Chapter 9. IP Secure

Introduction to TCP/IP

Internet Protocols. Addressing & Services. Updated:

Chapter 19 Network Layer: Logical Addressing 19.1

IP Addressing and Subnetting, Including IPv6

IPv6 Fundamentals Ch t ap 1 er I : ntroducti ti t on I o P IPv6 Copyright Cisco Academy Yannis Xydas

Tutorial (03) IP addresses & Sub netting

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

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

IP Address Classes (Some are Obsolete) Computer Networking. Important Concepts. Subnetting Lecture 8 IP Addressing & Packets

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

IP Subnetting. Subnetting

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

IP addressing and forwarding Network layer

Are You Ready to Teach IPv6?

Internet Protocol: IP packet headers. vendredi 18 octobre 13

IP Addressing and Subnetting for New Users

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

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.

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

IPv6 Fundamentals: A Straightforward Approach

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Transport Layer. Chapter 4: Application Protocols.

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

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

Subnetting IPv4 and IPv6

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

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Internet Protocol Address

Understanding IP Addressing: Everything You Ever Wanted To Know

2. IP Networks, IP Hosts and IP Ports

Chapter 4 Network Layer

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

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

Interconnecting Cisco Network Devices 1 Course, Class Outline

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Ethernet. Ethernet. Network Devices

Transcription:

We Are HERE! TELE 302 Network Design Lecture 21 Addressing Strategies Source: McCabe 12.1 ~ 12.4 Jeremiah Deng TELE Programme / Info Sci University of Otago, 21/9/2015 Requirements analysis Flow Analysis Logical Design Technology choices Interconnection mechanisms Network Management and security Physical Design Addressing and Routing 2 Dividing Up the Space Addressing Background Allocation of resources is a fundamental problem in design; it includes issues like Partitioning the design space Preserving high cohesion and weak coupling Ensuring flexibility Identify boundaries for routing and addressing Work groups Functional areas (based on work groups) Physical interfaces Administrative domains 3 IPv4 Addressing based on multiple classes ~ Classful Addressing Set Bits Class (First Octet) Natural Mask Number of Addresses A 0xxxxxxx 255.0.0.0 2^24-2 B 10xxxxxx 25555.0.0 2^16-2 C 110xxxxx 2555555.0 2^8-2 Two subtracted from host addresses All 1 s is the broadcast address All zeros is the network self-address 4

Not An Easy Fit An average customer May use a small fraction of Class B address. Or uses multiple Class C address. E.g., a network with 10,000 computers Can be supported with a Class B address with 2^16-2=65,534 host addresses Or by a minimum of 40 Class C addresses 40*(2^8-2)=10,160 Subnetting Q: How to make better use of address space? A: Subnetting involves making the address mask larger, extending by trading host bits for network addresses. Hierarchy established, but not advertised outside. 5 6 Two Types of Subnetting Static Length Subnetting: all the subnetworks in a single network use the same subnet mask Easy to configure but all are the same size Variable Length Subnetting: different subnetworks in a single network use different subnet masks Available host addresses are used more efficiently but all the routers must understand this kind of subnetting Variation of the Mask Length Subnetting by trading host bits for network bits! more smaller networks Address (Example) Natural Mask Class B (136.178.0.0) 25555.0.0 Classful Addresses Class C (198.9.9.0) 2555555.0 Address Subnet Mask Size Subnets Hosts/Subnet 136.178.0.0 2555555.0 8-bit 254 254 2555540.0 4-bit 15 4094 136.178.0.0/24--> subnet mask of 2555555.0 136.178.0.0/20--> subnet mask of 2555540.0 Classless InterDomain Routing (CIDR /xx notation) 7 8

Subnet Mask Length and Subnet Size Class B Host Address Allocations Linear Host Address Space Allocated Linearly Sales/Marketing.1 Engineering.7 Class B 25555.X.Y 2-bit 3-bit 4-bit 5-bit 6-bit x=192 x=224 x=240 x=248 x=252 3 7 15 1 net 64K hosts x = 0 31 63 136.178.0.1 25555.0.0.3.4....5 Management 136.178.0.0.6.4 Operations.3.8 16,382 8190 4094 2046 1022 hosts/subnet hosts/subnet hosts/subnet hosts/subnet hosts/subnet 9 Difficult to introduce hierarchy into the network design. If a random scheme was used for allocating addresses originally then readdressing is required to implement subnetting. 10 Class B Host Address Allocations Hierarchical Address Hierarchies Implemented with Address Mask Change Host Address Space Allocated Hierarchically 136.178.0.1 25555.0.0 Sales/Marketing 16.1-3154 Engineering 32.1-4754 Management 48.1-6354 Operations 64.1-7954 Sales/Marke3ng" Engineering".16.1$.16$.32.1$.48.1$ Management" 136.178.0.0".48$.64.1$ Opera3ons".64$.32$ A hierarchical address allocation scheme makes it much easier to introduce subnet addressing when it is needed because no host address changes are needed. 11" External Networks Management Sales/Marketing.1 136.178.16.0 2555540.0 136.178.0.0 25555.0.0.1 136.178.48.0 2555540.0 136.178.0.0 136.178.32.0 2555540.0 136.178.64.0 2555540.0.1 Engineering.1 By applying a single subnet mask one gets a number of all the same size. Sometimes one wants of different sizes. Operations 12

Fixed (Static) Length Subnetting Breaks a classful network address space down into a number of fixed length by trading host bits for networks. Usually requires a network to have a single subnet mask Variable Length Subnetting Applying multiple subnet masks to a network allows more effective use of the available address space by creating of different sizes called variable length subnetting. It involves recognizing multiple subnet masks for the same network address, example 13 Work Group Groups Size/Group (Hosts) Engineering 3 400 => /23 (510) Marketing 1 1950 => /21 (2046) Administration 1 200 => /24 (254) Sales 15 35-90 =>/25 (126) R&D 1 150 =>/24 (254) Support 22 10-40 =>/26 (62) 14 Example: Addressing Scheme (Improved) Work"Group" Groups" Size/Group"(Hosts)" Engineering" 3" 400" Marke3ng" 1" 1950" Administra3on" 1" 200" Sales" 15" 35"~"90" R&D" 1" 150" Support" 22" 10"~"40" Address$Alloca2ons$ 44Bit$Mask$ 84Bit$Mask$ Subnets"E1N3"(Engineering)" 136.178.16.0" 136.178.32.0" 136.178.48.0" Subnet"M1"(Marke3ng)" 136.178.64.0" Subnet"A1"(Administra3on)" 136.178.80.0" Subnets"SA1NSA15"(Sales)" 136.178.97.0" " Subnet"R1"(R&D)" 136.178.110.0" Subnets"SU1NSU22"(Support)" 136.178.113.0" " 136.178.127.0" 136.178.129.0" " 136.178.143.0" 15 Supernetting Class A: Too big and too few Class B: Too big and too few Class C: Numerous but often too small The sheer number of Class C networks makes advertising potentially a threat to overload the internet core routers. Subnetting helps to manage networks by breaking things up hierarchically 16

Allocating and Advertising 16 Class C Addresses 192.9240.0 to 192.9255.0 External Networks Advertised as 192.9240.0 192.9248.0 192.9241.0 192.9249.0 192.9242.0 192.9250.0 192.9243.0 192.9251.0 192.9244.0 192.9252.0 192.9245.0 192.9253.0 192.9246.0 192.9254.0 192.9247.0 192.9255.0 Mask 2555555.0 If all Class C networks classful addresses are advertised, the resulting influx of route advertisements could exceed the capability of internet core routers, resulting in performance loss or failure. 251.0 252.0 253.0 254.0 255.0 240.0 241.0 242.0 243.0 244.0 245.0 246.0 247.0 248.0 249.0 250.0 17 Modifying Address Masks to Represent Address Groups New Mask 2555540.0 or 20 bits long, i.e. /20 Original Address Mask 2555555.0.xxxx xxxx. 192.9240.0 1111 0000 192.9241.0 1111 0001 192.9242.0 1111 0010 192.9254.0 1111 1110 192.9255.0 1111 1111 Bits do not change Bits do change Address mask is reduced by 4 bits 18 Classless InterDomain Routing (CIDR) Rules To Observe 240.0 192.9240.0 to 192.9255.0 External Networks Advertised as 192.9240.0 Mask 2555540.0 or 192.9240.0/20 This reduces an advertising of 16 Class C Networks to the advertising of a single CIDR block. 251.0 252.0 253.0 254.0 255.0 241.0 242.0 243.0 244.0 245.0 246.0 247.0 248.0 249.0 250.0 For CIDR to work certain rules must be observed: 1. Number of addresses in a CIDR block is based on a power of 2 (i.e. 2, 4, 8, addresses) 2. The ends of the address block must fall on bit boundaries 3. Avoid having holes in the address space, the CIDR block should be contiguous. Don t advertise addresses not of your own! There is a workaround for this. 19 20

An Example Violating Rule 2 Holes in CIDR block 192.9239.0 to 192.9255.0 192.9239.0/20? Invalid CIDR block! Original Address Mask 2555555.0.xxxx xxxx. 192.9239.0 1110 1111 192.9240.0 1111 0000 192.9241.0 1111 0001 192.9253.0 1111 1101 192.9254.0 1111 1110 Third octet in binary Organization A advertises: 198.910.0 with natural mask (This address is also in the CIDR block advertised by Organization B Internet Organization B advertises: 198.908.0/20 A CIDR block of 16 addresses Use with Caution! Bits now change in the fourth bit position. 21 Downstream network receives both advertisements and chooses the most specific match for each network eg. the longer mask /24 instead of /20 22 Applying Address Strategies Best Fit Strategies Scalability: Need to know the NUMBERS of Hierarchy Functional Areas within the system Work Groups within each Functional Area Networks within each Work Group Supernetting (CIDR) Enterprise- Wide Functional Areas Work Groups Networks Hosts Hosts within each Network Establish degree of hierarchies in the network. Natural Class Applying addressing not only system-wide, but also function areas, network groups, and networks. Subnetting Variable-Length Subnetting 23 24

Defined in RFC 1918. Private Addresses Class"A:"10.0.0.0"N"10555555"(10/8"prefix)" Class"B:"172.16.0.0"N"172.315555"(172.16/12"prefix)"" Class"C:"192.168.0.0"N"192.1685555"(192.168/16"prefix)"" Use NAT (Network Address Translation) to get greater IP savings. LAN uses private IP addresses. Masquerade IP towards WAN (Internet). Difficult for protocols such as FTP, UDP. Efficiency problem. 25 A NAT Example Local host request a connection to 65.8.3.13. NAT allocates an external address 192.8.7.4. NAT changes source address on outgoing packets to 192.8.7.4. Reply packets arriving NAT, with destination address changed to 10.3.5.8, are then forwarded back. 10.3.0.0 10.3.5.8 10.3.5.8 192.8.7.4 NAT Internet 65.8.3.13 26 Buggy Patches? IPv6 Workarounds such as NAT, CIDR have their own problems! NATs promote reuse of private address space, but do not provide support to end-to-end packet-level security. CIDR addresses owned by ISPs. Internet still faces the risk of running out of capacity in the global routing tables. IPv6 is the solution! IPv4 uses 32-bit addresses. Theoretically allows 4 billion addresses. Not possible to reach 50% utilisation. IPv6 goes to 128-bit addresses. 5f1b:df00:ce3e:e200:0020:0800:2078:e3e3 Enables other additions to IP such as: Support for better security (e.g. IPSEC) Support for mobile hosts. Support for real-time services. 27 28

IPv4 and IPv6 IPv6 Address Planning Vers 4 IHL Type of Service IP Options Total Length Identification Flags Frag Offset Time to Live Protocol Header Checksum Source Address Destination Address v4 Header = 20 Bytes + Options v6 Header = 40 Bytes Vers 6 Traffic Class Payload Length Flow Label Next Hdr Source Address (128 bits) Hop Limit Destination Address (128 bits) Multiple address types for each host: unicast, anycast, multicast Format: 16-byte hexadecimal number fields, e.g., 2001:db8:130F:0:0:9c0:876A:130B. Normally /64 prefix used for unicast IPv6 addresses and even for point-to-point links (where /126 or / 127 can be used) Within the system, existing IPv4 addressing schemes can be used, e.g., Translating subnet numbers into IPv6 subnet IDs Translating VLAN IDs into IPv6 subnet IDs Private addresses in IPv6 are unique! 29 30 IPv6 Transition The Internet clearly must support IPv4 hosts for a long time into the future. Dual-stack operation: Some nodes and routers will have both IPv4 and IPv6 protocol stacks. The version field will be used to direct a packet to the correct stack. Tunneling IPv6 through IPv4. Each IPv6 packet is encapsulated into an IPv4 packet whose address is the address of the other end of the tunnel. 31 The Long Wait, but Why? By 2004 all implementations will adopt IPv6 as the standard (NZ e-government Interoperability Framework e-gif, 2002). IPv4 exhaustion: NAT IANA and ARIN registration exhaustion: 2011 / 2012 ISP level: 2015 Too many changes: Apps and API s have to change Domain Name System (DNS) changes Border Gateway Protocol (BGP) changes Routing protocol changes IPv4 over xxx now needs IPv6 over xxx Everything has to change (end-to-end) 32

NAT64 Technology http://www.cisco.com/en/us/prod/collateral/iosswrel/ps6537/ps6553/ white_paper_c11-676278.html Summary Divide up design space How? Subnetting Supernetting Choose an addressing strategy NAT and IPv6 Refs: CISCO IPv6 Addressing Guide Coming next: Routing 33 34