We Are HERE! Subne\ng

Similar documents
Future Internet Technologies

IP Addressing Introductory material.

IP Addressing. IP Addresses. Introductory material.

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

IP Addressing A Simplified Tutorial

Internet Addresses (You should read Chapter 4 in Forouzan)

Introduction to IP v6

Classful IP Addressing (cont.)

Advanced IP Addressing

PART IV. Network Layer

Lecture Computer Networks

Internet Protocols Fall Lectures 7-8 Andreas Terzis

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

8.2 The Internet Protocol

IP address format: Dotted decimal notation:

ICS 351: Today's plan

- IPv4 Addressing and Subnetting -

Savera Tanwir. Internet Protocol

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

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

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

CCNA Tutorial Series SUBNETTING

Internetworking and IP Address

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

IP Subnetting and Addressing

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

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

TCP/IP Basis. OSI Model

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

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

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

Variable length subnetting

Internetworking and Internet-1. Global Addresses

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

Subnetting/Supernetting and Classless Addressing

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

VLSM and CIDR Malin Bornhager Halmstad University

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

Technology Brief IPv6 White Paper.

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

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

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

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

Chapter 4 Network Layer

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

The Subnet Training Guide

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

Module 4, Assignment 3-2

IP Addressing and Subnetting, Including IPv6

IPv6 Advantages. Yanick Pouffary.

Lab#2: IP Addressing and Subnetting

Chapter 9. IP Secure

Internet Protocol: IP packet headers. vendredi 18 octobre 13

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

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

IP addressing and forwarding Network layer

Subnetting IPv4 and IPv6

Internet Protocols. Addressing & Services. Updated:

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

Lecture 8. IP Fundamentals

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

Tutorial (03) IP addresses & Sub netting

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

Internet Protocol version 4 Part I

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

IP Subnetting. Subnetting

Chapter 19 Network Layer: Logical Addressing 19.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.

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

Internet Protocol Address

Lab a Basic Subnetting

Firewalls und IPv6 worauf Sie achten müssen!

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

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

2. IP Networks, IP Hosts and IP Ports

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

Types of IPv4 addresses in Internet

Security in IPv6. Basic Security Requirements and Techniques. Confidentiality. Integrity

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

IP Addressing and Subnetting for New Users

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

TCP/IP Fundamentals. Edmund Lam IT Audit Manager University of California 7/25/99 1

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

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Internet Protocol Version 6 (IPv6)

21.4 Network Address Translation (NAT) NAT concept

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

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

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

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

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

DHCP, ICMP, IPv6. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley DHCP. DHCP UDP IP Eth Phy

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

IPv6 Fundamentals: A Straightforward Approach

4m. MONITORING OF ETHERNET/IP NETWORK TRAFFIC.

Understanding IP Addressing: Everything You Ever Wanted To Know

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

Transcription:

TELE 302 Network Design Lecture 21 Addressing Strategies Source: McCabe 12.1 ~ 12.4 Jeremiah Deng TELE Programme, University of Otago, 2013 We Are HERE! Requirements analysis Flow Analysis Logical Design Technology choices InterconnecLon mechanisms Network Management and security Physical Design Addressing and RouLng Dividing Up the Space AllocaLon of resources is a fundamental problem in design it includes issues like ParLLoning the design space Preserving high cohesion and weak coupling Ensuring flexibility IdenLfy boundaries for roulng and addressing Work groups FuncLonal areas (based on work groups) Physical interfaces AdministraLve domains 2 3 Addressing Background Subne\ng Two Types of Subne\ng IPv4 Addressing based on mullple 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 An average customer May use a small fraclon of Class B address. Or uses mullple 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 How to make beder use of address space? Subne/ng involves making the address mask larger, extending by trading host bits for network addresses. Hierarchy established, but not adverlsed outside. StaLc Length Subne\ng: all the subnetworks in a single network use the same subnet mask Easy to configure but all are the same size Variable Length Subne\ng: 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 subne\ng 4 5 6

VariaLon of the Mask Length Subnet Mask Length and Subnet Size Class B Host Address AllocaLons Linear Subne\ng 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 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 16,382 8190 4094 2046 1022 hosts/subnet hosts/subnet hosts/subnet hosts/subnet hosts/subnet 8 Host Address Space Allocated Linearly 136.178.0.1 25555.0.0.3.4... Sales/Marketing.1.5 Management 136.178.0.0.6 Engineering.7 Difficult to introduce hierarchy into the network design. If a random scheme was used for allocalng addresses originally then readdressing is required to implement subne\ng..4 Operations.3.8 9 Class B Host Address AllocaLons Hierarchical Address Hierarchies Implemented with Address Mask Change Fixed (StaLc) Length Subne\ng Host Address Space Allocated Hierarchically 136.178.0.1 25555.0.0 Sales/MarkeLng 16.1-3154 Engineering 32.1-4754 Management 48.1-6354 OperaLons 64.1-7954 Sales/MarkeLng Engineering.16.1.16.32.1.48.1 Management 136.178.0.0.48.64.1 OperaLons.64.32 A hierarchical address allocalon scheme makes it much easier to introduce subnet addressing when it is needed because no host address changes are needed. 10 External Management Sales/Marketing.1 136.178.16.0 2555540.0 136.178.0.0 25555.0.0.1 136.178.48.0 2555540.0.1 Engineering 136.178.32.0 2555540.0 By applying a single subnet mask one gets a number of 136.178.0.0 all the same size. Sonetimes one wants of different sizes. 136.178.64.0 2555540.0.1 Operations 11 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 12

Variable Length Subne\ng Applying mullple subnet masks to a network allows more effeclve use of the available address space by crealng of different sizes called variable length subne\ng. It involves recognizing mullple subnet masks for the same network address, example 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) 13 Example: Addressing Scheme (Improved) Work Group Groups Size/Group (Hosts) Engineering 3 400 MarkeLng 1 1950 AdministraLon 1 200 Sales 15 35 ~ 90 R&D 1 150 Support 22 10 ~ 40 Address Alloca:ons 4- Bit Mask 8- Bit Mask Subnets E1-3 (Engineering) 136.178.16.0 136.178.32.0 136.178.48.0 Subnet M1 (MarkeLng) 136.178.64.0 Subnet A1 (AdministraLon) 136.178.80.0 Subnets SA1- SA15 (Sales) 136.178.97.0 Subnet R1 (R&D) 136.178.110.0 Subnets SU1- SU22 (Support) 136.178.113.0 136.178.127.0 136.178.129.0 136.178.143.0 14 Superne\ng Class A: Too big and too few Class B: Too big and too few Class C: Numerous but oqen too small The sheer number of Class C networks makes adverlsing potenlally a threat to overload the internet core routers. Subne\ng helps to manage networks by breaking things up hierarchically 15 AllocaLng and AdverLsing 16 Class C Addresses 192.9240.0 to 192.9255.0 External 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 adverlsed, the resullng influx of route adverlsements could exceed the capability of internet core routers, resullng 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 16 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 17 Classless InterDomain RouLng (CIDR) 192.9240.0 to 192.9255.0 External Advertised as 192.9240.0 Mask 2555540.0 or 192.9240.0/20 This reduces an advertising of 16 Class C to the advertising of a single CIDR block. 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 18

Rules To Observe An Example ViolaLng Rule 2 Holes in CIDR block 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 conlguous. Don t adverlse addresses not of your own! There is a workaround for this. 19 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 Bits now change in the fourth bit position. 20 A downstream network receiving mullple confliclng adverlsements will use the most specific address match based on address mask length. 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 Downstream network receives both advertisements and chooses the most specific match for each network eg. the longer mask /24 instead of /20 Use with Caution! 21 Applying Address Strategies Best Fit Strategies Private Addresses Scalability: Need to know the NUMBERS of FuncLonal Areas within the system Work Groups within each FuncLonal Area within each Work Group Hosts within each Network Establish degree of hierarchies in the network. Applying addressing not only system- wide, but also funclon areas, network groups, and networks. Supernetting (CIDR) Natural Class Subnetting Variable-Length Subnetting Enterprise- Wide Functional Areas Hierarchy Work Groups Hosts Defined in RFC 1918. Class A: 10.0.0.0-10555555 (10/8 prefix) Class B: 172.16.0.0-172.315555 (172.16/12 prefix) Class C: 192.168.0.0-192.1685555 (192.168/16 prefix) Use NAT (Network Address TranslaLon) to get greater IP savings. LAN uses private IP addresses. Masquerade IP towards WAN (Internet). Difficult for protocols such as FTP, UDP. Efficiency problem. 22 23 24

A NAT Example Local host request a conneclon 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 deslnalon address changed to 10.3.5.8, are then forwarded back. 10.3.0.0 10.3.5.8 192.8.7.4 Internet Buggy Patches? 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 slll faces the risk of running out of capacity in the global roulng tables. IPv6 is the solulon! IPv6 IPv4 uses 32- bit addresses. TheoreLcally allows 4 billion addresses. Not possible to reach 50% ullisalon. IPv6 goes to 128- bit addresses. 5f1b:df00:ce3e:e200:0020:0800:2078:e3e3 Enables other addilons to IP such as: Support for beder security (e.g. IPSEC) Support for mobile hosts. Support for real- Lme services. 10.3.5.8 NAT 65.8.3.13 25 26 27 IPv4 and IPv6 IPv6 Address Planning IPv6 TransiLon 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) MulLple address types for each host: unicast, anycast, mullcast 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, exislng IPv4 addressing schemes can be used, e.g., TranslaLng subnet numbers into IPv6 subnet IDs TranslaLng VLAN IDs into IPv6 subnet IDs Private addresses in IPv6 are unique! The Internet clearly must support IPv4 hosts for a long Lme into the future. Dual- stack operalon: 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. 28 29 30

The Long Wait, but Why? By 2004 all implementalons will adopt IPv6 as the standard (NZ e- Government Interoperability Framework e- GIF, 2002). IPv4 exhauslon: IANA and ARIN registralon exhauslon: 2011 / 2012 ISP level: 2015 NAT Too many changes: Apps and API s have to change Domain Name System (DNS) changes Border Gateway Protocol (BGP) changes RouLng protocol changes IPv4 over xxx now needs IPv6 over xxx Everything has to change (end- to- end) NAT64 Technology http://www.cisco.com/en/us/prod/collateral/iosswrel/ps6537/ps6553/ white_paper_c11-676278.html Summary Divide up design space How? Subne\ng Superne\ng Choose an addressing strategy NAT and IPv6 Refs: CISCO IPv6 Addressing Guide Coming next: RouLng 31 32 33