IP Addressing and Subnetting NETWORK INFRASTRUCTURES NETKIT - LECTURE 2 MANUEL CAMPO, MARCO SPAZIANI

Similar documents
IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Static Routing NETWORK INFRASTRUCTURES NETKIT - LECTURE 4 MANUEL CAMPO, MARCO SPAZIANI

Chapter 5. Subnetting/Supernetting and Classless Addressing

VLSM and CIDR. Routing Protocols and Concepts Chapter 6. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Subnetting And Supernetting

Subnetting/Supernetting and Classless Addressing

Subnetting/Supernetting and Classless Addressing

Figure 11 Two-level addressing in classful addressing

TCP/IP and the OSI Model

Objectives. Note: An IP address is a 32-bit address. The IP addresses are unique. The address space of IPv4 is 2 32 or 4,294,967,296.

ISO/OSI Model and Collision Domain NETWORK INFRASTRUCTURES NETKIT - LECTURE 1 MANUEL CAMPO, MARCO SPAZIANI

Lecture 8 Network Layer: Logical addressing

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

Module 4. Planning the Addressing Structure

The identifier used in the IP layer of the TCP/IP protocol suite to identify each device connected to the Internet is called the Internet address or

CCE1030 Computer Networking

Computer Networks Lecture -5- IPv4 Addresses. Dr. Abbas Abdulazeez

Configuring IPv4 Addresses

TCP/IP. Model and Layers Bits and Number Bases IPv4 Addressing Subnetting Classless Interdomain Routing IPv6

Network Layer: Logical Addressing

ECE 461 Internetworking Fall Quiz 1

Network Layer/IP Protocols

Chapter 9: Subnetting IP Networks

5.7 K E Y TE R M S 5.8 SUM M A R Y

Some Subnetting Practice Problem Solutions

CSC 401 Data and Computer Communications Networks

CC231 Introduction to Networks Dr. Ayman A. Abdel-Hamid. Internet Protocol Suite

Communication at the network layer is host-to-host Length of address. Total number of addresses used by the protocol. IPv4 & IPv6

Router Architecture Overview

06/02/ Local & Metropolitan Area Networks 0. INTRODUCTION. 1. History and Future of TCP/IP ACOE322

RSC Part II: Network Layer. 3. IP addressing. II.5 Network routing. II. 1 Basic Network layer concepts II.2 Introduction to IP

Network+ Guide to Networks

Chapter 6. Variable Length Subnet Masking (VLSM) Classless Inter-Domain Routing (CIDR) CCNA2-1 Chapter 6

Brief Notes on Networks

Internet Protocol Addressing and Routing. Redes TCP/IP

Chapter 2 Review Questions

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSCD 330 Network Programming Spring 2018

LECTURE -4 IP ADDRESSES. IP Addresses: Classful Addressing

Networking and IP Addressing TELECOMMUNICATIONS AND NETWORKING

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

Subnetting. This Hour. Subnetting. Hour 5

CS 3516: Advanced Computer Networks

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

1-1. Switching Networks (Fall 2010) EE 586 Communication and. October 25, Lecture 24

IP Addressing and Subnetting

Chapter 4: Network Layer

1. IPv6 is the latest version of the TCP/IP protocol. What are some of the important IPv6 requirements?

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 10: IP Routing and Addressing Extensions

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

IP Addressing. Introductory material. An entire module devoted to IP addresses. Pedro Brandão (PhD) University of Évora

CSCI Computer Networks Fall 2016

IP Addresses. IP Addresses

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

TSIN02 - Internetworking

IP Addressing: IPv4 Addressing Configuration Guide, Cisco IOS Release 12.4

Networking Basics. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1

CSCD 330 Network Programming Spring 2017

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

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 12

Chapter 4 Network Layer: The Data Plane

NETWORK LAYER: IP Addressing

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Network layer: Overview. Network Layer Functions

Top-Down Network Design

CS 520: Network Architecture I Winter Lecture 11: IP Address Conservation

IP Addressing: IPv4 Addressing Configuration Guide, Cisco IOS Release 15S

The Internet Protocol (IP)

5. Classless and Subnet Address Extensions 최양희서울대학교컴퓨터공학부

Computer Networks and Data Systems

Subnetting and Classless Addressing

Internet Fundamentals

IP Basics Unix/IP Preparation Course June 29, 2010 Pago Pago, American Samoa

Internet Addresses (You should read Chapter 4 in Forouzan)

TCP /IP Fundamentals Mr. Cantu

Network Layer: Logical Addressing

End-to-End Communication

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

INTRODUCTORY INFORMATION TECHNOLOGY COMMUNICATING OVER NETWORKS. Faramarz Hendessi

C14b: Classless Intradomain Routing

COSC 6377 Mid-Term #2 Fall 2000

Network Layer PREPARED BY AHMED ABDEL-RAOUF

Address Class (Exercise) B A

IP - The Internet Protocol

Chapter 2 Advanced TCP/IP

OSI Network Layer. Chapter 5

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

Addressing & Subnetting

Computer Networks Principles Network Layer - IP

Basics of communication. Grundlagen der Rechnernetze Introduction 31

First the Basics Binary Arithmetic

CSE3214 Computer Network Protocols and Applications

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

Tutorial 9. SOLUTION Since the number of supported interfaces is different for each subnet, this is a Variable- Length Subnet Masking (VLSM) problem.

IPv6: Why Do We Need A New IP? V1.2: Geoff Bennett

The Routing Table: A Closer Look

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

Computer Networks and Data Systems

TDC 563 Protocols and Techniques for Data Networks

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

Transcription:

IP Addressing and Subnetting NETWORK INFRASTRUCTURES NETKIT - LECTURE 2 MANUEL CAMPO, MARCO SPAZIANI

TCP/IP Model TCP/IP does not use all of the OSI layers, though the layers are equivalent in operation and function. The network access layer is equivalent to OSI layers 1 and 2. The Internet Protocol layer is comparable to layer 3 in the OSI model. The host-to-host layer is equivalent to OSI layer 4. These are the TCP and UDP (user datagram protocol) functions. The application layer is similar to OSI layers 5, 6, and 7 combined. 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 2

TCP/IP Protocols TCP and IP are two of the network standards that define the internet. IP defines how computers can get data to each other over a routed, interconnected set of networks. TCP defines how applications can create reliable channels of communication across a network. IP basically defines addressing and routing, while TCP defines how to have a conversation across the link without garbling or losing data. TCP/IP grew out of research by the U.S. Department of Defense (DoD) and is based on a loose, rather than strict, approach to network layering. 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 3

IP Addressing In a TCP/IP network, each PC has an IP address that works at layer 3 Each IP address is 32 bits long (equivalently, 4 bytes), and there are thus a total of 2^(32) possible IP addresses. Two ways to write an IP address: 1. Dotted Decimal Format: 192.168.0.1 2. Binary Format: 11000000.10101000.00000000.00000001 Each interface on every host and router in the global Internet must have an IP address that is globally unique 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 4

IP Address Each IP address as two different part: NETWORK_ID and HOST_ID 192.168.0.1 NETWORK_ID HOST_ID Depending by the number of networks and hosts in each network, we can allocate a certain number of bits to NETWORK_ID, and the remaining bits to HOST_ID Generally, IP addresses are divided into different classes, depending by the number of hosts for each network 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 5

IP Addressing 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 6

IP Addressing 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 7

IP Addressing 192.168.0.0/24 192.168.1.0/24 192.168.2.0/24 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 8

Subnetting To determine the subnets, detach each interface from its host or router, creating islands of isolated networks, with interfaces terminating the end points of the isolated networks. Each of these isolated networks is called a subnet. - Computer Networking - Kurose, Ross 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 9

Subnetting 1. Determine the class of the block of IP addresses. 2. Determine the number of subnetworks you need. 3. Determine the number of hosts for each subnetwork. EXAMPLE: 192.168.0.1 1. Class C -> /24 2. # of Subnet = 6 -> 3 bits 3. #MaxHosts=30 -> 5bits We have 6 different subnet, each having 30 different IP address available 20 hosts 30 hosts 10 hosts 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 10

Subnetting Two problems: 1. There is a waste of IP addresses 2. Given an IP adddress with a certain netmask, we can t assign all IP addresses to all hosts with given bits of the HOST_ID SOLUTIONS: 1. Variable Length Subnet Mask, VLSM 2. Supernetting 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 11

Variable Length Subnet Mask - VLSM A network with VLSM is a network having its subnets with different values of the netmask. EXAMPLE using fixed subnet mask: 192.168.0.1 We have 6 different subnet, each having 30 different IP address available We use only 20+30+10+2+2+2=66 IP addresses having 30 x 6 = 180 IP available addresses 180-66=114 wasted IP 20 hosts 30 hosts 10 hosts 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 12

Variable Length Subnet Mask - VLSM EXAMPLE using VLSM: 192.168.0.0 1. 20 hosts=5 bits subnetmask = 32-5 = /27 IP address block: 192.168.0.0/27-192.168.0.31/27 2. 30 hosts=5 bits subnetmask = 32-5 = /27 IP address block: 192.168.0.32/27-192.168.0.63/27 3. 10 hosts=4 bits subnetmask = 32-4 = /28 IP address block: 192.168.0.64/28-192.168.0.79/28 4. 2 hosts=2 bits subnetmask = 32-2 = /30 IP address block: Link1: 192.168.0.80/30-192.168.0.83/30 Link2: 192.168.0.84/30-192.168.0.87/30 Link3: 192.168.0.88/30-192.168.0.91/30 20 hosts 30 hosts 10 hosts 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 13

Supernetting With subnetting the HOST_ID «borrows» its bits to subnetworks With supernetting the NETWORK_ID «borrows» its bits to supernetworks EXAMPLE: #Hosts=2000 #subnets= 8 We want 8 different subnets each having 250 hosts. We need for 1. 3 bits for the NETWORK_ID 2. 8 bits for the HOST_ID IT S IMPOSSIBLE TO USE A CLASS C IP ADDRESS 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 14

Supernetting We can require 8 different Class C IP address, but there will be an overload of the routing tables in the routers. In order to resolve the problem, we assign a BLOCK of consecutive IP address called CIDR (Classless Interdomain Routing) block. EXAMPLE: 2000 hosts We have 8 different blocks of class C addresses (total:8 x 254 = 2032 hosts) between 220.78.168.0 e 220.78.175.0. Converting in binary we will have: 220.78.168.0 = 11011100 01001110 10101000 00000000 220.78.175.0 = 11011100 01001110 10101111 00000000 13/11/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 15