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



Similar documents
Internetworking and IP Address

Lab#2: IP Addressing and Subnetting

8.2 The Internet Protocol

Internet Protocols. Addressing & Services. Updated:

Internet Addresses (You should read Chapter 4 in Forouzan)

IP Addressing A Simplified Tutorial

TCP/IP Basis. OSI Model

Variable length subnetting

IP Subnetting and Addressing

Subnetting,Supernetting, VLSM & CIDR

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

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

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

Tutorial (03) IP addresses & Sub netting

Savera Tanwir. Internet Protocol

Subnetting/Supernetting and Classless Addressing

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

IP address format: Dotted decimal notation:

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

Chapter 19 Network Layer: Logical Addressing 19.1

Classful IP Addressing (cont.)

Future Internet Technologies

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

Internet Protocol version 4 Part I

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

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

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

IP Addressing Introductory material.

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

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

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

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

Advanced IP Addressing

PART IV. Network Layer

Internetworking and Internet-1. Global Addresses

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

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

ICS 351: Today's plan

TCP/IP Network Essentials. Linux System Administration and IP Services

IP Addressing. IP Addresses. Introductory material.

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

IP Subnetting. Subnetting

Lecture Computer Networks

Internet Protocol Address

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

Lecture 8. IP Fundamentals

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.

Topics. Subnetting. The Basics of Subnetting Subnet Mask Computing subnets and hosts Subnet Routing Creating a Subnet Example of Subnetting 1/37

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

The Subnet Training Guide

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

TCP/IP works on 3 types of services (cont.): TCP/IP protocols are divided into three categories:

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

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

No need to operate a DHCP server. If a server s IP address changes, clients will lose the ability to access it!

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

Networking Test 4 Study Guide

RARP: Reverse Address Resolution Protocol

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

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

(Refer Slide Time: 02:17)

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

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

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Lab IP Addressing Overview

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

IP Addressing and Subnetting for New Users

CS335 Sample Questions for Exam #2

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

Efficient Addressing. Outline. Addressing Subnetting Supernetting CS 640 1

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

Desirable Properties Of An Internet Addressing Scheme

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

CONFIGURING TCP/IP ADDRESSING AND SECURITY

Advanced Internetworking

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

Module 2: Assigning IP Addresses in a Multiple Subnet Network

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

Network layer. Assignment 3

Introduction to IP v6

Interconnecting Cisco Network Devices 1 Course, Class Outline

How To Make A Network Address Prefix Smaller

Ethernet. Ethernet. Network Devices

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

Subnetting IPv4 and IPv6

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

CIDR: Classless Interdomain Routing

Introduction to TCP/IP

2. IP Networks, IP Hosts and IP Ports

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

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

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

Internetworking With TCP/IP

Lecture 10. Subnetting & Supernetting. Supernetting. Subnetting. Outline. medium org: N x class C? Class B? Variable Length Subnet Mask (VLSM)

IP Addressing and Subnetting, Including IPv6

IP - The Internet Protocol

Transcription:

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

Internetworking The concept of internetworking: we need to make different networks communicate with each other, even when they are physicall very different, in order to exchange information Network A Network C Network B

Internetworking To do this, we must add new devices called gateways or routers And a communication network Routers must be able to: Internet Network A Communicate with devices inside their own network Network C Communicate with other routers Network B host

Important (1) The Internet may be thought as a «big» network, similar to any other physical network. The big difference lies in the fact that the Internet is a virtual (logical) network, designed entirely «from scratch» and realized using exclusively software. For this reason, those who designed the Internet were perfectly free to choose packet length and format, delivery techniques, etc

Important (2) It is important to understand the Interent is not a new type of physical network. Internet is, instead, a way to interconnect the physical networks that already exist, and a set of «rules» (protocols) that permit to use such networks, in order to allow end users to interact and exchange information.

Important (3) Physical Networks Internet router hosts hosts The USER point of view: the user sees the TCP/IP network (the Internet); where each host (PC) is (or seems to be) connected to a single, big network. This is the real structure of the Internet; with physical networks and routers that guarantee their interconnection

TCP/IP Networks Packet (or datagram) Networks Technology for interconnecting different networks and devices The core is the Internet Protocol (IP) (RFC 791, 1981)

IP Communication Services Addressing: assign a universal and unique address Best-effort (hop-by-hop) Transfer: delivery and integrity are not ensured Fragmentation/De-fragmentation: if required by the local network

Transport Layer Services End To End Segments Delivery: from process to process TCP (Transport Control Protocol, RFC 793, 81) Connection Oriented Reliable Delivery Flow Control UDP (User Datagram Protocol, RFC 768 81) Connectionless Best Effort Delivery

A Sample Network Transport: end-to-end Network: hop-by-hop

Addresses in TCP/IP Networks Port Address: destination process address (16 bit) IP Address: internetworking address (32 bit) Physical Address: depends on the underlying technology

IP Addressing Each host is characterized by one or more interfaces Need: uniqueness within the network Solution: one address for each interface Source: Computer Networking, J. Kurose

IPv4 (RFC 791) 32 bits, 4 groups of 8 bits each (byte) 1 0 0 0 0 0 1 1 1 0 1 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 2 32 = 4,294,967,296 available addresses Addresses are usually represented with decimal notation (each field in the range 0-255) 131.175.123.242

IP Addressing The IP address points to an interface between a host and the network Multi-interface devices must have multiple IP addresses Net 131.175.0.0 Net 131.30.0.0 131.175.1.254 131.30.18.254 131.175.23.24 131.30.78.4

Addresses Management: Classful Way The address is divided into two fields (Hierarchical Structure) NetID HostID NetID (network ID) identifies the network HostID (host ID) identifies the host within the network All the hosts within Net the same network Host do have the same network ID

Classes First Byte Class A (0-127) 0 NetID 8 16 24 32 HostID Class B (128-191) 10 NetID HostID Class C (192-223) 110 NetID HostID Class D (224-239) 1110 Class E (240-255) 1111 Multicast Future use Not all the addresses are available

Classful Addressing The classes differentiate on the basis of the bits dedicated to the NetID and the HostID A B C D E Class Addresses # Percentage A 2 31 =2,147483648 50% B 2 30 =1,073,741,824 25% C 2 29 =536,870,912 12.5% D 2 28 =268,435,456 6.25% E 2 28 =268,435,456 6.25%

Special Addresses Same Network ID HostID field set to 0 Identifies the network in the NetID Used in the routing tables Examples: class B : 131.175.0.0 class C: 193.17.31.0 193.17.31.55 193.17.31.76 193.17.31.45 193.17.31.0

Special Addresses Direct Broadcast: HostID field set to 1 Broadcast within the network specified by the NetID used as destination field of an IP packet example: 193.17.31.255 193.17.31.55 193.17.31.76 193.17.31.45 193.17.31.0

Special Addresses Limited broadcast: An only 1s address (255.255.255.255) Broadcast within the same network of the sender The packet is filtered by the router Used as destination field of an IP packet 193.17.31.55 193.17.31.76 193.17.31.45 193.17.31.0

Special Addresses NetID field set to all 0s, points to the host within the same network of the sender whose address fills the host field Used as destination field, filtered by routers example: 0.0.21.173 (class B network) An all 0s address points the sender of the packet Used as source field when in the IP address acquisition phase example: 0.0.0.0 First byte set to 127 is the loopback address on the very same host Used in the OS to test the operation of the network stack example: 127.0.0.0

Special Addresses: summary This host All 0s Host in this network All 0s HostID Limited Broadcast All 1s Direct Broadcast NetID All 1s Loopback 127 Anything The first two addresses can be used only during startup phases, and they are NEVER a valid destination address The 3 rd e 4 th addresses are never a valid source address The 5 th address should never be seen in a network

An Addressing Plan 191.175.123.1 191.175.123.21 191.175.123.30 191.175.123.20 B R 191.175.123.254 Internet 191.175.123.51 191.175.123.60 web server 191.175.123.253 mail server R R 191.175.123.1 191.175.120.254 191.175.15.254 191.175.120. 1 191.175.120.5 191.175.15.1 191.175.15.100

Classful Addressing: Shortcomings Class A: 125 NetID 16,777,216 HostID for each network (!!Too Many!!) Class B: 16,368 NetID 65,536 HostID for each network (!!Still Too Many!!) Class C: 2,096,902 NetID 256 HostID (!!Too Few!!)

Classful Addressing Limitation Low Flexibility (intrinsic) Limited Number of Addresses (intrinsic) Growing Demand for addresses (external) Possible Solutions: Subnetting/Supernetting Classless addressing Private addressing (Intranet and NAT)

Subnetting (RFC 950) Example: private organizations with a class B address assigned (2 16-2 = 65534 host addresses) may develop Intranets with few hundreds (tens) hosts subnets net: 131.175.0.0 EG subnet IG IG IG

Subnetting Basic Idea: split up the IP address introducing a further hierarchical level The host field is split into a subnet field and a new shorter host field Network host Network subnetwork host 1 1 1 1 1 1 1. 1 1 1 1 0 0 0 0 0 0 0 0 netmask The splitting is performed through a netmask composed of a sequence of 1s (Net + Subnet) and a sequence of 0s (host)

Netmask A way to get rid of classes Represented in decimal notation 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 netmask: 255.255.255.0 network: 131.175.0.0 subnets: 131.175.0.0, 131.175.1.0,, 131.175.254.0, 131.75.255.0

Subnetting net: 131.175.0.0 EG subnet IG IG IG Routers outside the Intranet know only the network 131.175.0.0 Internalrouters (Interior Gateways, IG) must handle subnets and netmasks

Netmask The decimal representation of continuous netmasks : 255 1 1 1 1 1 1 1 1 254 1 1 1 1 1 1 1 0 252 1 1 1 1 1 1 0 0 248 1 1 1 1 1 0 0 0 240 1 1 1 1 0 0 0 0 224 1 1 1 0 0 0 0 0 192 1 1 0 0 0 0 0 0 128 1 0 0 0 0 0 0 0 Alternatively the netmask can be represented as the number of consecutive ones (prefix): 131.175.21.0/24

Ordinary Phone Network Analogy The hierarchical subdivision of the address is leveraged from the ordinary phone networks. IP Realm 141. 14 192 192.. Site Subnet host Telephone Nets (310) 824-2296 Area Code Exchange Connection

Subnetting Example (1) We are given the network address: 132.78.0.0 We must create networks with at least 500 hosts each The NetID is 16 bits long 2 9 =512, so we need 9 bits for the hostid field 16-9=7 bits are available for SubnetID field The netmask is composed of 16+7=23 bits 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 255.255.254.0

Subnetting Example (1) Number of available subnets: 2 7 =128, each of them containing up to 2 9-2=510 hosts 254 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 132.78.0.0/23 What does the address 132.78.3.0 represent? 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 132.78.2.0/23 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 132.78.4.0/23 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 132.78.6.0/23... 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 132.78.252.0/23 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 132.78.254.0/23 What is the direct broadcast address for this network? 132.78.5.255

Subnetting Example (2) We are given the address: 128.234.0.0 We must create at least 1000 «small» subnetworks The NetID is 16 bits long 2 10 =1024, so we need 10 bits for the subnetid field We still have 16-10= 6 bits fot the HostID field The netmask is therefore 16+10=26 bits long 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 255.255.255.192

Subnetting Example (2) The maximum number of hosts in each of the 1024 subnetworks is equal to 2 6-2=62 hosts 255 192 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 128.234.0.0/26 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 128.234.0.64/26 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 128.234.0.128/26 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 128.234.0.192/26... 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 128.234.255.128/26 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 128.234.255.192/26

When The Subnetting Fails.. An organization is assigned a class C address and needs to set up 3 subnets with 60 hosts and 2 subnets with 30 hosts. Classical Subnetting fails: Subnet with 2 bits: 4 nets with 64 hosts each Subnet with 3 bits: 8 nets with 32 hosts each Way Out??

Variable Length Subnet Masks (VLSM) It is possible to apply subnetting in a «recursive» (or «hierarchical») way Example:

Variable Netmask Apply two netmasks serially: The first 255.255.255.192 with 26 1s defines 4 subnets with 64 host addresses Take one of the subnets above and apply to it a netmask 255.255.255.224 dividing it into two subnets with 30 hosts each First Mask 255.255.255.192 62 hosts 62 hosts 62 hosts Second Mask 255.255.255.224 30 hosts 30 hosts

Supernetting Opposite as subnetting Problem: class A and B addresses exhaustion, class C addresses can serve few hosts Solution: group several class Cs to define a bigger network (Supernetting) Realization: use of netmask Network host 1 1 1 1 1 1 1. 1 1 1 1 0 0 0 0 0 0 0 0

Supernetting 4 contiguous class C addresses can be grouped to form a network with 1024 hosts: 193.23.136.0 193.23.137.0 193.23.138.0 193.23.139.0 193.23.136.0/22 1 1 0 0 0 0 0 1 0 0 0 1 0 1 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0

Classless Inter Domain Routing (CIDR) Netmask extension No more classes Flexible address assignment (power of two) Impact on routing

IP Addresses and Domain Names IP addresses are globally assigned The Internet uses symbolic names also, still globally assigned IANA (Internet Assigned Numbers Authority) 1998 ICANN (Internet Corporation for Assigned Names and Numbers)