TCP/IP Addressing and Subnetting. IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special.

Slides:



Advertisements
Similar presentations
IP Addressing Introductory material.
Advertisements

Chapter 19 Network Layer: Logical Addressing Stephen Kim.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Chapter 18. IP: Internet Protocol Addresses
IP Addressing Pertemuan 18 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Oct 21, 2004CS573: Network Protocols and Standards1 IP: Addressing, ARP, Routing Network Protocols and Standards Autumn
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
2440: 141 Web Site Administration IP Addressing Instructor: Enoch E. Damson.
Q and A, Ch. 21 IS333, Spring 2015 Victor Norman.
Chapter 21 IP Addressing “If we all did the things we are capable of doing, we would literally astound ourselves” - Thomas Alva Edison,
Network Addressing Issues in /err_con/crc.htm.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
1 TCOM 509 – Internet Protocols (TCP/IP) Lecture 02_b Instructor: Dr. Li-Chuan Chen Date: 09/08/2003 Based in part upon slides of Prof. J. Kurose (U Mass),
21-IP addressing Dr. John P. Abraham Professor UTPA.
IP Addressing. Dotted Decimal Notation IP addresses are written in a so-called dotted decimal notation Each byte is identified by a decimal number in.
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.
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.
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
INTRODUCTION TO IP ADDRESS Ravi Chandra Gurung. IP ADDRESSES.
IP Addressing Introductory material. An entire module devoted to IP addresses.
IP Addresses & Classes Presented By: M.Usman Khan Ghauri Nauman Aslam.
 An Internet address is made of four bytes (32 bits) that define the host connection to a network.  It is uniquely and universally defines the connection.
CSIS  We need to create some logic to the environment  We want to keep like devices together  We want to make money leasing the use of the space.
CSE5803 Advanced Internet Protocols and Applications (2) Universal Identifier In general, addressing in a network is closely linked with the issue.
Chapter 18 IP: Internet Protocol Addresses
Chapter 4, slide: 1 CS 372 – introduction to computer networks* Friday July 23, 2010 Announcements: r Midterms are graded. r Lab 4 is posted. Acknowledgement:
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
© 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.
21-IP addressing Dr. John P. Abraham Professor UTPA.
Data Communications and Networks Chapter 7 – IP Addressing ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
IP Addressing.
2010 paro, bhutan IP Basics IP/ISP Services Workshop July, 2010 Paro, Bhutan.
IP1 The Underlying Technologies. What is inside the Internet? Or What are the key underlying technologies that make it work so successfully? –Packet Switching.
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.
Chapter 5b.  Upon completion of this chapter, you should be able to:  Subnet an IPv4 address to make separate networks out of one address given  Use.
21-IP addressing Dr. John P. Abraham Professor UTPA.
CS470 Computer Networking Protocols
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
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.
Subnetting and Supernetting.
Q and A, Ch. 21 IS333, Spring 2016 Victor Norman.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Introduction to Internetworking. 2 The IP Addressing Scheme (IPv4) (psu.edu) Dotted Decimal Notation: A notation more convenient for humans.
IP Addressing, Sub-netting & VLSM
IP – Subnetting and CIDR
IP Addressing Pertemuan 06
IP Addresses: Classful Addressing IP Addresses. CONTENTS INTRODUCTION CLASSFUL ADDRESSING Different Network Classes Subnetting Classless Addressing Supernetting.
IP: Addressing, ARP, Routing
Subnetting and Supernetting.
Chapter-5 TCP/IP Suite.
PART IV Network Layer.
4 Network Layer Part I Computer Networks Tutun Juhana
CS4470 Computer Networking Protocols
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
CS 1302 Computer Networks — Unit - 3 — — Network Layer —
IP Addresses: Classful Addressing
Dr. John P. Abraham Professor UTPA
Data Communications and Networking
INTERNET PROTOCOL Presented by: Md:Faruque-A-Azam ID:1642CSE00570 Batch:42 CSE,MIU.
Dr. John P. Abraham Professor UTRGV
Planning the Addressing Structure
Dr. John P. Abraham Professor UTRGV
Dr. John P. Abraham Professor UTPA
Presentation transcript:

TCP/IP Addressing and Subnetting

IP Addressing Roadmap Format of IP Addresses Traditional Class Networks Network Masks Subnetting Supernetting Special IP Addresses

IP Addresses All IP interfaces have IP addresses Each IP interface must have its own unique IP address Internally, this is represented as a 32-bit number of 0’s and 1’s IP addresses consist of two parts – network identification – host identification

Breaking it up into network

IP routing IP routing is based on a simple “next hop” model: – Is the destination address ON my network or NOT? If it is ON my network, send it directly If it is NOT on my network, send it via a router To match network numbers, you must know what part is network and what part is host

Representing IP Addresses There are several ways the IP address can be represented – 32 bit number of 0’s and 1’s – four decimal numbers separated by dots – hexadecimal representation 9D.2C.BC.01

Network Class Addresses The first dotted quad value identifies the network class and how much of the IP address is the network identifier – Class A Networks (first number between 1-127) – Class B Networks (first number between ) – Class C Networks (first number between ) There are also some special IP addresses which are defined in a different way – Class D Networks (first number between ) for IP multicast – Class E Networks (first number between ) for Landmark routing

A B C

Network Numbers Network numbers imply some space for hosts – Network numbers are assigned by your Internet Service Provider, who got them from the InterNIC (Network Information Center) Network numbers are written as a full 32-bit quantity (and an implied network mask) Networks end with some number of contiguous zero-bits on the right These zero-bits are where customers can use one bits for host addresses

RFC 1597 (LOCAL) addresses Local Addresses – (10/8) – (172.16/12) – ( /16)

Network Mask Identifies how many bits of the IP address the host may use The mask contains a 1 bit for every bit in the “network portion” of the address The mask contains a 0 bit for every bit in the “host portion” of the address Every host on a network must have the same network mask May also be called the Subnet Mask

Default Network Masks 32 bit Network Address Class A Class B Class C

Network masks shown with slash notation Class A network number – 8 bits of network, 24 bits of host – /8 Class B network number – 16 bits of network, 16 bits of host – /16 Class C network number – 24 bits of network, 8 bits of host – /24

Prefixes and Network Masks almost the same A network mask can represent an arbitrary set of bits: – A prefix can only represent contiguous ones bits: – is the same as /22 “Subnet numbers SHOULD be contiguous...”

Translating between the two

Network Example Network address Network mask or /24 Host numbers – First 24 bits identify the network Last 8 bits are for the host EXCEPT: – Can’t use all 0’s (.0, assigned network) – Can’t use all 1’s (.255, broadcast address)

Two addresses in every network are special Host part all ones (usually “255-ish”) – This is defined as the broadcast address, and means “all systems on the current network” Host part all zeros (usually “0-ish”) – This is defined as the network number and cannot be used Example: – /24 is a network with 8 bits – is the broadcast address – is the network number – through are hosts

Network Mask Usage Host address: Network Mask: (/24) – Logical AND yields network Destination host: – Logical AND yields network Since the network 24 bits of the local host and destination host are unequal, the destination host is not on local net

IP Subnetworks Allows the “host” part of IP address to be further split Arbitrary bit position divides subnet and host Transparent outside of local network Must be agreed upon by all hosts in local network Allows additional layer of hierarchy to be built into a single IP network number Helps reduce address space waste

Originally used to break up Class B networks Organization would get a Class B network number (e.g., ) Organization would start to buy routers Organization would want to break up that network into smaller pieces

Subnet a B into Cs Original network number was Original network mask was Subnet with network mask This gives 256 networks of 254 hosts each – through – through – through

Finishing “Subnet a B into Cs” The world (everyone outside) knows of the network as (no subnet) Everyone inside must agree that the network mask is

That’s where we used to end the class... You can’t get a class B network number any more You probably get a block of class C network numbers which you need to break up yourself Address “space” is scare – Class B addresses are very scarce – Class C addresses are common, but routing table space is very scarce Major ISPs are filtering “inefficient” blocks

Subnets and Supernets In the old Internet the default network mask was based on the first few bits of the first octet In the new Internet network masks are defined for all networks – a network subdivided into smaller subnets uses subnet masks – a network comprised of a consecutive range of network numbers uses supernet masks (CIDR)

Example of Subnetting Physical topology of two physical LANs (ethernets) separated by a router The router (host) must know which interface to select – Each interface must be on a different IP network

Subnet Example We could assign each its own, like and – wastes lots of IP addresses if < 510 hosts We can take our /24, and split it into /25 networks: – [0][7 host bits] – – [1][7 host bits] – This gives us two subnetworks of 2**7 hosts each (minus 2 per subnet, of course)

Let’s do Two Subnets anyway If we assign two bits: – [00][6 host bits] – [01][6 host bits] – [10][6 host bits] – [11][6 host bits]

The Subnet Mask The subnet mask in this case must represent the part the IP kernel needs to compare when checking for whether this is on the local network – includes those extra two bits at the end 192 = mask = prefix = /26 (/ bits)

Subnetting

Further Subnetting Let’s say we have need for multiple physical networks, like 10 or so, each of which will have a few systems on it

Find the lowest power of 2 that fits

Four additional bits for network number works The original network had a 24 bit netmask – /24 prefix – mask Subnet as a /28 (/24 + /4) – /28 prefix – – mask This will leave us 16 host addresses per subnet, minus one for the network address and one for the broadcast address = 14

Example of subnetting a network to a /27

A little binary-to-decimal conversion table

Example of subnetting a network to a /27

Subnet Mask Summary A network can be split into multiple smaller logical networks Network mask or prefix indicates which bits to compare when making routing decisions – is the same as /24 Host part: All 1s and all 0s cannot be used – All host bits ones are broadcast address – All host bits zero are network address Network part: All 0s can be a problem – With non-RFC 1812 compliant routers

Supernets Supernetting takes multiple logical networks and makes one new logical network – Combine multiple Class-C networks for one physical network More than 256 hosts on a cable Supernetting makes the network mask less specific than the default mask

Supernet Example Assigned network numbers of and A supernet mask of would address both nets on the same physical wire

Special IP Addresses A number of IP addresses are considered “special” by the RFCs and most implementations These are mostly for broadcast and loopback purposes We’ll use the notation { xxx, yyy } to indicate the network and host part – xxx = network part – yyy = host part

{ 0, 0 } and { 0, } {0,0} means “this host, on this network” Written also as Never used except in testing or booting – BOOTP uses to indicate “me” {0, } means “this host, on this network” as well. Reserved – but I’ve never seen it used

{ -1, -1 } and {, -1 } {-1, -1} is the “everywhere” broadcast address Usually written as Does not go outside of your local network {, -1} is the broadcast to all hosts in your local net Very commonly used – For example, /24 broadcast is –

{ 127, } Any address with the first octet 127 Typically used as A Class A network number which is reserved for loopback purposes You may never use Net 127, even if you want to

Special Address Summary means “me” network.0 means “this network” network.255 means “broadcast” means “broadcast everywhere” means “loopback” – (actually: 127.anything)

IP Addressing Key Concepts IP Addresses are 32 bit numbers represented as a “dotted quad” Network numbers are assigned by the Internic or Internet access provider Host numbers are assigned by the network manager Network masks identify which part of the IP address is the network portion