LECTURE # 20 IP ADDRESSING 1. Binary 2  All digital electronics use a binary method for communication.  Binary can be expressed using only two values:

Slides:



Advertisements
Similar presentations
Classifying Network Addressing
Advertisements

Chapter 19 Network Layer: Logical Addressing Stephen Kim.
1 Computer Communication & Networks Lecture 17 & 18 Network Layer: Logical Addressing Waleed Ejaz.
Logical addressing Engr.Jawad Ali.
Network Layer: Logical Addressing. 4-1 IPv4 ADDRESSES An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device.
IP Subnetting.
IP Addressing and Subnetting
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. TCP/IP addresses -Addressing in TCP/IP is specified by the Internet Protocol (IP) -Each host is assigned a 32-bit number -Called the IP.
Prepared By: Eng.Ola M. Abd El-Latif
1 IP Addressing (IPv4 ADDRESSES). 2 Universal Service Concept Any computer can communicate with any other computer in the world. Multiple independently.
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
2440: 141 Web Site Administration IP Addressing Instructor: Enoch E. Damson.
IP Addressing. Each TCP/IP host is identified by a logical IP address. –The IP address is a network layer address –No dependence on the Data-Link layer.
IP Addressing Basics LAB 8.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 19 Network Layer Logical Addressing © 2012 by McGraw-Hill Education. This is proprietary material.
NETWORK LAYER IP Addressing 1. ANNOUNCEMENT: Rescheduled  NO PRACTICAL SESSIONS ON TUESDAY 22, November 2010  Rescheduled sessions: MONDAY: November.
Functions 1.  How long is MAC address?  How is mac address used in data communication?  What is a frame?  What does an IP address look like? 2.
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),
IP-adresses and subnet masks. Figure 19.9 Dotted-decimal notation.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Chapter 4 IP Addressing.
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.
1 Chapter 24 TCP/IP. 2 An Internet According to TCP/IP.
Network Addressing IP Addresses. IP Address Space The Structure of an IP Address – Binary Representation The only thing a network device understands,
IP Addressing and Network Software. IP Addressing  A computer somewhere in the world needs to communicate with another computer somewhere else in the.
IP Addressing Basics LAB 8.
30/11/ Q & A on Networking. Question No. 1 What is Networking? Two or more computers that are linked in order to share – Resources (such as printers.
2 © 2003, Cisco Systems, Inc. All rights reserved. RST-2002 IP Addressing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Addressing Networking for Home and Small Businesses – Chapter 5.
IP Addresses & Classes Presented By: M.Usman Khan Ghauri Nauman Aslam.
ES 101. Module 2 IP Addressing & Routing. Last Lecture Wide area networking Definition of “packets”
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
SYSTEM ADMINISTRATION Chapter 8 Internet Protocol (IP) Addressing.
Universal Identifier UNIVERSAL IDENTIFIER Universal network = globally accepted method for identifying each computer. Host identifier = host is identify.
LECTURE ON IP Addressing. What is Networking? –by ‘computer network’ we mean the interconnection between different computers. Why Networking? –to share.
Chapter 4 Objectives Upon completion you will be able to: Classful Internet Addressing Understand IPv4 addresses and classes Identify the class of an.
CS4500CS4500 Dr. ClincyLecture1 Lecture #6 Chapter 5: Addressing (part 1 of 3) Address Structure Classful Addressing Number Systems (Appendix B) Mask –
Chapter 5 IPv4 Address.
Chapter 3 - Page 1 Infogem Institute of Technology CCNA Course IP Addressing & Subnetting IP ADDRESSING & SUBNETTING.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Network Layer PART IV.
Classful Internet Addresses Chapter 4. Universal Identifiers Designers of TCP/IP determined that each host on the internet would have a 32-bit identifier.
1 Network Principles FdSc Computing Technologies TCP-IP – Addressing & Sub-Netting Carl Smith – 2004 (Revised 2013)
Introduction to Computer Networking
IP Addresses: Classful Addressing IP Addresses. INTRODUCTION 4.1.
IP ADDRESSING Lecture 2: IP addressing Networks and Communication Department 1.
CS4500CS4500 Dr. ClincyLecture1 Lecture #1 Chapter 5: Addressing (part 1 of 3)
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 5 IPv4 Addresses.
INTERNET ADDRESSING Today’s topics:  What are Internet addresses?  Why do we need them?  How are they used?
IP ADDRESSES Lecture 6: Network Architectures. IP address  address (IP address) is a numerical label assigned to each device (e.g., computer, printer)
TCP/IP Protocol Suite 1 Chapter 4 Objectives Upon completion you will be able to: IP Addresses: Classful Addressing Understand IPv4 addresses and classes.
Ethernet Basics – 7 IP Addressing. Introducing IP Addressing  IP address (TCP/IP address)  Not unique (but should be), user assigned  Layer 3  4 byte.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 IP Addresses: Classful Addressing.
UNIT 4 NETWORK LAYER. Position of network layer 7/8/2016 UNIT-3 : NETWORK LAYER 2.
Internet Architecture
IP Addresses: Classful Addressing
IP Addressing and Subnetting
OSI Model IP address.
Network Layer, and Logical Addresses
Binary Lesson 4 Classful IP Addresses
Chapter-5 TCP/IP Suite.
PART IV Network Layer.
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.
The IP addresses are unique. The address space of IPv4 is 2 32 or 4,294,967,296.
Binary Lesson 5 Classful IP Addresses
כתובות IP.
Ch 3: Underlying Technologies (remainder)
Data Communications and Networking
Internet Addressing Today’s topics: What are Internet addresses?
Part IV Network layer 10. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Presentation transcript:

LECTURE # 20 IP ADDRESSING 1

Binary 2  All digital electronics use a binary method for communication.  Binary can be expressed using only two values: 0 or 1.

Converting Binary to Decimal 3  First, moving from right to left, create a chart that starts at the decimal number 1 and then double it 7 times

Converting Binary to Decimal 4  Given a binary number, place the number under the chart (right justified) Add the numbers together to arrive at a final decimal amount = 179

Converting Decimal to Binary 5  Find the largest number that is equal to or less than the number you are converting to binary. If our example number is 220, the largest number that is equal to or less than 220 is 128. Place a 1 under that space on the chart

Converting Decimal to Binary 6  Next, subtract that number from the original decimal number. Subtracting 128 from 220 gives us 92.  Repeat this process until we have a subtracted result of

Counting in Binary 7  = 1  = 10 (carry the 1)  = 11  = 100  = 101  = 110  = 111

Binary Counting Chart

Addressing Principles 9  Logical addresses in TCP/IP are 32 bits in length.  To make addressing more humanly manageable, the 32 bits are broken into four 8 bit octets.  We separate the octets by using a period symbol – This is referred to as dotted decimal notation.

Dotted-decimal notation 10

TCP/IP Host 11  A host is a device that has a network interface card connected to a network.  If a device has two network interfaces, it should be considered two separate hosts.  Each host that is attached to a TCP/IP network must have a unique TCP/IP address.

TCP/IP Addresses MARIA AVE

TCP/IP Addresses 13  IP Addresses divided into two parts (network address and host address) :  Network ID or Net ID Analogous to a street address.  Host ID Analogous to a house or building number.  TCP/IP Addresses are hierarchical addresses (combination of location ID and host ID) as opposed to flat addresses (e.g. MAC address).

Example 1 Change the following IP addresses from binary notation to dotted-decimal notation. a b Solution We replace each group of 8 bits with its equivalent decimal number and add dots for separation: a b

Example 2 Change the following IP addresses from dotted-decimal notation to binary notation. a b Solution We replace each decimal number with its binary equivalent a b

In classful addressing, the address space is divided into five classes: A, B, C, D, and E. Note: 16

Finding the class in binary notation 17

Finding the address class 18

Example 3 Find the class of each address: 0 a b Solution a.The first bit is 0; this is a class A address. b.The first 4 bits are 1s; this is a class E address. 19

Finding the Class in decimal Notation 20

Example 4 Find the class of each address: a b c Solution a.The first byte is 227 (b/w 224 and 239); the class is D. b.The first byte is 252 (b/w 240 and 255)the class is E. c.The first byte is 134 (b/w 128 and 191); the class is B. 21

Example 22  A  B  C Solution  A  B  C

Netid and Hostid 23

Class A Address 24  First bit will always be a 0.  Remaining bits can be either 0s or 1s.  Range of first octet is to  Network addresses cannot be all 0s.  127 is reserved for loopback testing.  126 valid Class A network addresses  1.x.y.z to 126.x.y.z

Host ID Portion 25  Cannot be all 0s  If host portion is all 0s, represents a network address.  Cannot be all 1s  If host portion is all 1s, represents a broadcast.

Blocks in class A 26

Class B Address 27  First two bits will always be a 10.  Remaining bits can be either 0s or 1s.  Range of first octet is to  Range of networks y.z to y.z  16,384 valid Class B network IDs.

Blocks in class B 28

Class C Address 29  First three bits will always be a 110.  Remaining bits can be either 0s or 1s.  Range of class C addresses is x.y.z to x.y.z z to z.  2,097,152 valid Class C network addresses.

Blocks in class C 30

Class D Address 31  First octet in binary is defined as 1110xxxx, replacing x’s with whatever we wish.  Range of Class D addresses is from 224.x.y.z to 239.x.y.z.  Used for multicasting – method of sending a single packet to multiple hosts.

Class E Address 32  First octet is 1111xxxx, replacing x’s with whatever we wish.  Address ranges from 240.x.y.z to 255.x.y.z.  Experimental address range that is not used in actual networks.

A network address is different from a netid. A network address has both netid and hostid, with 0s for the hostid. Note: 33

Network address 34

Example 5 Given the address , find the network address. Solution The class is A. Only the first byte defines the netid. We can find the network address by replacing the hostid bytes ( ) with 0s. Therefore, the network address is

Example 6 Given the address , find the network address. Solution The class is B. The first 2 bytes defines the netid. We can find the network address by replacing the hostid bytes (17.85) with 0s. Therefore, the network address is

Example 7 Given the network address , find the class. Solution The class is A because the netid is only 1 byte. 37

Addressing Guidelines 38  Network ID Cannot Be 127  127 is reserved for lookback functions  Network ID and Host ID Cannot Be 255 (All Bits Set to 1)  255 is a broadcast address  Network ID and Host ID Cannot Be 0 (All Bits Set to 0)  0 means “this network only”  Example: refers to Class B network  Host ID Must Be Unique to the Network

Assigning Network IDs x.y.z z y.z Router

Assigning Host IDs 40 Router x.y.z z z

Address Class Summary 41 [[Number of Networks Number ,384 2,097,152 Number of Hosts per Network Number of Hosts per Network 16,777,214 65, Class A Class B Class C Range of Network IDs (First Octet) Range of Network IDs (First Octet) 1 – – – 223

Reserved IP Addresses 42  Defined in RFC  Class A to  Class B to  Class C to  Good choice for LAN numbering.

Reserved IP Addresses 43  to  used for operating systems that automatically assign addresses when a DHCP server is unavailable.

44  Europe : –  North America: –  Central & South America: –  Asia & Pacific: – Some addresses allocated