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

Similar documents
IP Addressing and Subnetting

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

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.

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

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

Figure 11 Two-level addressing in classful addressing

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

Network Layer/IP Protocols

LECTURE -4 IP ADDRESSES. IP Addresses: Classful Addressing

Chapter 9: Subnetting IP Networks

Lecture 8 Network Layer: Logical addressing

Internet Addresses (You should read Chapter 4 in Forouzan)

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

NETWORK LAYER: IP Addressing

Internet Fundamentals

Binary Octet to Decimal Format Conversion

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

Lab 8 (IP Addressing)

Addressing & Subnetting

Network Layer: Logical Addressing

IP Addressing - Subnetting

Linux System Administration

Network+ Guide to Networks

Chapter 6 Addressing the Network- IPv4

Address Class (Exercise) B A

Packet Tracer - Subnet Scenario 2 Topology

Chapter 06 IP Address

IP addresses and Subnetting

Note: This case study utilizes Packet Tracer. Please see the Chapter 4 Packet Tracer file located in Supplemental Materials.

x.x.x :: Notes: 128 binary bits

Networking and IP Addressing TELECOMMUNICATIONS AND NETWORKING

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

Chapter 2 Review Questions

R (2) Write a program to demonstrate Subneting & find the Subnet Mask.

Chapter 8: Subnetting IP Networks CCENT Routing and Switching Introduction to Networks v6.0

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

Chapter 19 Network Layer: Logical Addressing 19.1

Lab Calculating IPv4 Subnets

Lab Calculating IPv4 Subnets

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

Full file at

CCE1030 Computer Networking

Subnetting Questions:

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

NUMERIC SYSTEMS USED IN NETWORKING

Data Communication & Computer Networks Week # 13

Packet Tracer - Subnet Scenario 2 (Instructor Version)

Chapter 8: Subnetting IP networks. Introduction to Networks v5.1

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

Subnetting. This Hour. Subnetting. Hour 5

April 24, Copyright 2010 by World Class CAD, LLC. All Rights Reserved.

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

Chapter 8: Subnetting IP Networks

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

Network Layer: Logical Addressing

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

CS118 Discussion, Week 6. Taqi

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

CCNA 1 Chapter 9 v5.0 Exam Answers 2013

Chapter 19 Network Layer: Logical Addressing 19.1

CCNA Exploration Network Fundamentals. Chapter 06 Addressing the Network IPv4

Configuring IPv4 Addresses

Subnetting And Supernetting

Subnetting Questions with Detailed Answers: Subnetting Questions with Detailed Answers:

This talk will cover the basics of IP addressing and subnetting. Topics covered will include:

IP: Addressing, ARP, Routing

TCP /IP Fundamentals Mr. Cantu

Configuring IP addressing

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

Engr. Joseph Ronald Canedo's Note 1

OSI Data Link & Network Layer

Network+ Guide to Networks 5 th Edition. Chapter 10 In-Depth TCP/IP Networking

OSI Data Link & Network Layer

TCP/IP and the OSI Model

CENG393 Computer Networks Labwork 2

Chapter 5. Subnetting/Supernetting and Classless Addressing

Subnetting/Supernetting and Classless Addressing

Antonio Cianfrani. Fundamentals of IP Networking

Table of Contents Chapter 1 IP Addressing Configuration

Chapter 7: IP Addressing CCENT Routing and Switching Introduction to Networks v6.0

Chapter 4: VLSM and Classless Inter Domain Routing. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved.

Network Technology 1 4th - Subnet.! Mario Lombardo -

Module 4. Planning the Addressing Structure

IP subnetting exercise. By Reem Al-Kanhal

Network Layer: Logical Addressing

1/18/13. Network+ Guide to Networks 5 th Edition. Objectives. Chapter 10 In-Depth TCP/IP Networking

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

IP Addressing Week 6. Module : Computer Networks Lecturer: Lucy White Office : 324

Subnetting Study Guide

SPLITTING IPV4 NETWORKS INTO SUBNETS (CLASS, CIDR, VLSM)

Network Layer: outline

Lab - Designing and Implementing a Subnetted IPv4 Addressing Scheme

FIGURE 3. Two-Level Internet Address Structure. FIGURE 4. Principle Classful IP Address Formats

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

6.6 Subnetting and Variable Length Subnet Masks (VLSMs)

TSIN02 - Internetworking

6 Chapter 6. Figure 1 Required Unique Addresses

BTEC Level 3 Extended Diploma Unit 9 Computer Network IP Addresses

Subnetting/Supernetting and Classless Addressing

Top-Down Network Design

Transcription:

CBCN4103

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 IP address. An IP address is a 32-bit address that uniquely and universally defines the connection of a host or a router to the Internet. IP addresses are unique. They are unique in the sense that each address defines one, and only one, connection to the Internet. Two devices on the Internet can never have the same address.

Binary patterns representing IPv4 addresses are expressed as dotted decimals by separating each byte of the binary pattern, called an octet, with a dot. It is called an octet because each decimal number represents one byte or 8 bits.

Change the following IP addresses from binary notation to dotted-decimal notation. a. 10000001 00001011 00001011 11101111 b. 11000001 10000011 00011011 11111111 c. 11100111 11011011 10001011 01101111 d. 11111001 10011011 11111011 00001111 Solution We replace each group of 8 bits with its equivalent decimal number and add dots for separation: a. 129.11.11.239 b. 193.131.27.255 c.231.219.139.111 d. 249.155.251.15

Change the following IP addresses from dotted-decimal notation to binary notation. a. 111.56.45.78 b. 221.34.7.82 c. 241.8.56.12 d. 75.45.34.78 Solution We replace each decimal number with its binary equivalent: a. 01101111 00111000 00101101 01001110 b. 11011101 00100010 00000111 01010010 c. 11110001 00001000 00111000 00001100 d. 01001011 00101101 00100010 01001110

Find the error, if any, in the following IP addresses: a. 111.56.045.78 b. 221.34.7.8.20 c. 75.45.301.14 d. 11100010.23.14.67 Solution a. There are no leading zeroes in dotted-decimal notation (045). b. We may not have more than four numbers in an IP address. c. In dotted-decimal notation, each number is less than or equal to 255; 301 is outside this range. d. A mixture of binary notation and dotted-decimal notation is not allowed.

IP addresses, when started a few decades ago, used the concept of classes. This architecture is called classful addressing. In the mid-1990s, a new architecture, called classless addressing, was introduced and will eventually supersede the original architecture. However, part of the Internet is still using classful addressing, but the migration is very fast.

How can we prove that we have 2,147,483,648 addresses in class A? Solution In class A, only 1 bit defines the class. The remaining 31 bits are available for the address. With 31 bits, we can have 2 31 or 2,147,483,648 addresses.

Find the class of each address: a. 00000001 00001011 00001011 11101111 b. 11000001 10000011 00011011 11111111 c. 10100111 11011011 10001011 01101111 d. 11110011 10011011 11111011 00001111 Solution See the procedure in Figure 4.4. a. The first bit is 0. This is a class A address. b. The first 2 bits are 1; the third bit is 0. This is a class C address. c. The first bit is 0; the second bit is 1. This is a class B address. d. The first 4 bits are 1s. This is a class E address..

Find the class of each address: a. 227.12.14.87 b.193.14.56.22 c.14.23.120.8 d. 252.5.15.111 e.134.11.78.56 Solution a. The first byte is 227 (between 224 and 239); the class is D. b. The first byte is 193 (between 192 and 223); the class is C. c. The first byte is 14 (between 0 and 127); the class is A. d. The first byte is 252 (between 240 and 255); the class is E. e. The first byte is 134 (between 128 and 191); the class is B.

Given the network address 17.0.0.0, find the class, the block, and the range of the addresses. Solution The class is A because the first byte is between 0 and 127. The block has a netid of 17. The addresses range from 17.0.0.0 to 17.255.255.255.

Given the network address 132.21.0.0, find the class, the block, and the range of the addresses. Solution The class is B because the first byte is between 128 and 191. The block has a netid of 132.21. The addresses range from 132.21.0.0 to 132.21.255.255.

Given the network address 220.34.76.0, find the class, the block, and the range of the addresses. Solution The class is C because the first byte is between 192 and 223. The block has a netid of 220.34.76. The addresses range from 220.34.76.0 to 220.34.76.255.

A mask used to determine what subnet an IP address belongs to. An IP address has two components, the network address and the host address. Subnet Mask 255.255.240.000 11111111.11111111.11110000.00000000 IP Address 150.215.017.009 10010110.11010111.00010001.00001001 Subnet Address 150.215.016.000 10010110.11010111.00010000.00000000 Packet Address 192.168.10.65 11000000.10101000.00001010.010 00001 Subnet Mask 255.255.255.224 11111111.11111111.11111111.111 00000 Subnetwork Address 192.168.10.64 11000000.10101000.00001010.010 00000

The network address is the beginning address of each block. It can be found by applying the default mask to any of the addresses in the block (including itself). It retains the netid of the block and sets the hostid to zero. Note that we must not apply the default mask of one class to an address belonging to another class.

Given the address 23.56.7.91, find the beginning address (network address). Solution The default mask is 255.0.0.0, which means that only the first byte is preserved and the other 3 bytes are set to 0s. The network address is 23.0.0.0.

Given the address 132.6.17.85, find the beginning address (network address). Solution The default mask is 255.255.0.0, which means that the first 2 bytes are preserved and the other 2 bytes are set to 0s. The network address is 132.6.0.0.

Given the address 201.180.56.5, find the beginning address (network address). Solution The default mask is 255.255.255.0, which means that the first 3 bytes are preserved and the last byte is set to 0. The network address is 201.180.56.0.

Within the address range of each IPv4 network, we have three types of addresses: Network address - The address by which we refer to the network. Broadcast address - A special address used to send data to all hosts in the network. Host addresses - The addresses assigned to the end devices in the network.

No two machines that connect to a public network can have the same IP address because public IP addresses are global and standardized. However, private networks that are not connected to the Internet may use any host addresses, as long as each host within the private network is unique. RFC 1918 sets aside three blocks of IP addresses for private, internal use. Connecting a network using private addresses to the Internet requires translation of the private addresses to public addresses using Network Address Translation (NAT).

Subnetting allows for creating multiple logical networks from a single address block. To create a subnet address, a network administrator borrows bits from the host field and designates them as the subnet field. We create the subnets by using one or more of the host bits as network bits. This is done by extending the mask to borrow some of the bits from the host portion of the address to create additional network bits. The more host bits used, the more subnets that can be defined. For each bit borrowed, we double the number of subnetworks available. For example, if we borrow 1 bit, we can define 2 subnets. If we borrow 2 bits, we can have 4 subnets. However, with each bit we borrow, fewer host addresses are available per subnet.

Formula for calculating subnets: 2^n where n = the number of bits borrowed The number of hosts: To calculate the number of hosts per network, we use the formula of 2^n - 2 where n = the number of bits left for hosts.

Host bits are reassigned (or borrowed ) as network bits. The starting point is always the leftmost host bit. 3 bits borrowed allows 2 3-2 or 6 subnets 5 bits borrowed allows 2 5-2 or 30 subnets 12 bits borrowed allows 2 12-2 or 4094 subnets

To determine the number of bits to be used, the network designer needs to calculate how many hosts the largest subnetwork requires and the number of subnetworks needed. The slash format is a shorter way of representing the subnet mask: /25 represents the 25 one bits in the subnet mask 255.255.255.128

Provides addressing flexibility for the network administrator. Each LAN must have its own network or subnetwork address. Provides broadcast containment and lowlevel security on the LAN. Provides some security since access to other subnets is only available through the services of a router.

IP version 6 (IPv6) has been defined and developed. IPv6 uses 128 bits rather than the 32 bits currently used in IPv4. IPv6 uses hexadecimal numbers to represent the 128 bits.

Question -1 We have been given the IP Address 196.24.44.121 and need to "divide" our Classful Class C network into four subnetworks. Maybe into: Marketing Sales Engineering Production Task: What is the Subnet Mask?

Question -2 Given the IP Address 196.24.44.121/29, answer these questions: Notice the /29 on this problem...what's that mean? What is the Class? What is the Default Mask? How many Bits are Borrowed for Subnetting?

Question -3 Given the IP Address 216.34.76.49 and we need to create eight usable subnets. Remember: We have only 254 available addresses that we can use. Cannot use.0 Net ID, or.255 Broadcast ID Questions: 1. What is the Default Mask? 2. What is the Subnet Mask? 3. What is the First Subnet ID? 4. How Frequently do Subnet IDs Occurs?