Top Banner
IP address • Universally accepted addressing method is required so that all hosts can communicate with each other • TCP/IP based network is assigned with unique addresses known as IP addresses
42

IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Mar 31, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address

• Universally accepted addressing method is required so that all hosts can communicate with each other

• TCP/IP based network is assigned with unique addresses known as IP addresses

Page 2: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address

• Network layer addresses (IP addresses) are 32 bits long.

• Presented as four octets in dotted decimal format.

• IP address has two components: Network ID and Host ID.

Page 3: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address format

Page 4: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes

• Different class addresses reserve different amounts of bits for Network and Host portions of the address

• Provide flexibility required to support different size networks

HH H

H

HH

Page 5: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes: Class A

Page 6: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes: Class A

• First bit of a Class A address is always 0.

• First 8 bits identify network part of the address.

• Possible network address from 1.0.0.0 to 127.0.0.0.

• Remaining three octets used for the host portion of the address.

• Each class A network have up to 16,777,214 possible IP addresses.

Page 7: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes: Class B

Page 8: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes: Class B• First 2 bits of Class B address is always 10.• First two octets identify network part of the

address.• Possible network address from 128.1.0.0 to

191.254.0.0.• Remaining two octets used for host portion of

the address.• Class B network have up to 65.534 possible IP

addresses.

Page 9: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes: Class C

Page 10: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes: Class C• First 3 bits of a Class C address is always 110.• First three octets identify network part of the

address.• Possible network address from 192.0.1.0 to

223.255.254.0.• Remaining last octet used for host portion of

the address.• Class C network have up to 254 possible IP

addresses.

Page 11: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Binary and decimal conversion

Page 12: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Fast conversion

Page 13: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Bits on the IP address

• Network Bits :– Identifies network ID– Identifies class of the IP address– All of bits are 0: not allowed

• Host Bits :– Identifies host ID– All of bits are 0: reserved for network address– All of bits are 1: reserved for broadcast address

Page 14: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

IP address classes: Summary

• 1.0.0.0 - 126.0.0.0 : Class A.

• 127.0.0.0 : Loopback network.

• 128.1.0.0 - 191.254.0.0 : Class B.

• 192.0.1.0 - 223.255.254.0 : Class C.

• 224.0.0.0 - 239.255.255.255: Class D, multicast.

• >= 240.0.0.0 : Class E, reserved.

Page 15: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Network address

• provide a convenient way to refer to all of the addresses on a particular network or subnetwork.

• Two hosts with differing network address require a device, typically a router, in order to communicate.

• An IP address that ends with binary 0s in all host bits is reserved for the network address.

Page 16: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Broadcast address

• Broadcast goes to every host with a particular network ID number.

• IP address that ends with binary 1s in all host bits is reserved for the directed broadcast address.

• An IP address with binary 1s in all network bits and host bits is reserved for the local broadcast address.

Page 17: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Example: 172.16.20.200

• 172.16.20.200 is Class B address

• Network portion: 172.16

• Host portion: 20.200

• Network address: 172.16.0.0

• Broadcast address: 172.16.255.255

Page 18: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Private addresses

• According to RFC-1918.• Organizations make use of the private

Internet address space for hosts that require IP connectivity within their enterprise network, but do not require external connections to the global Internet.

• Class A: 10.0.0.0.• Class B: 172.16.0.0 - 172.31.0.0.• Class C: 192.168.0.0 - 192.168.255.0.

Page 19: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Reserved addresses

• The bits that define the host portion of an IP address should not be all “1”. Any IP address with the host portion consisting of all “1” is interpreted as “all host”.

– Example : 128.1.255.255 means all hosts on network number 128.1

Page 20: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Reserved addresses

• The bits that define the host portion of an IP address should not be all “0”. Any IP address with the host portion consisting of all “0” is interpreted as network address.

– Example : 128.1.0.0 means network number.

Page 21: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Reserved addresses

• The bits used to define the network portion of an IP address should not be all “0”. A network portion address of all “0” is interpreted as “this network”.

– Example : 0.0.0.63 means Host 63 on this network.

Page 22: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Reserved addresses

• The Class A network number 127.x.x.x is assigned as “Loop-back” function. This means that a datagram sent by a higher-level protocol to a Network 127 address should loop back inside the host.

Page 23: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Review

• Classes of IP address and range of IP on each class.

• Determine network portion and host portion in a IP address.

• Understand about broadcast addresses.

• Understand about valid host address.

• Binary and Decimal conversion.

Page 24: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Introduction to Subnetworks

Page 25: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

What Is a Subnet?• Series of Networks within a Network

• Created by subdividing Host address field and creating a Subnetwork Field

• All Hosts on a Subnetwork share a common subnetwork address

Page 26: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Why Subnet a Network?• Provides Greater Organization of Large

Networks (Class A 16 Million Hosts!)

• Allows Additional Networks (subnets) without applying for additional IPs

• Gives local administrators more control

• Provides a Third Level of Hierarchy

• Reduces the Size of Broadcast Domains

Page 27: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

How Do You Create Subnets?• Bits are Borrowed from the Host Field

– This Creates a Subnet Field in the IP address

Page 28: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Class C SubnetsNetworkNetwork Network Host

S HH H H H HS

Two Bits Borrowed from the Host Field to form a third layer of hierarchy - A Subnet Field

Two Bits must always remain so a maximum of 6 Bits may be borrowed from a Class C networkHow many bits can be borrowed from a Class B network? From a Class A network?

Page 29: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Class C SubnetsNetworkNetwork Network Host

S HH H H H HS

The number of Subnets Created is calculated using the following formula:

# Subnets Created = 2# Borrowed Bits

Page 30: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Class C SubnetsS HH H H H HS

Borrow 2 Bits = 22 = 4 Subnets

S SS H H H HS

Borrow 4 Bits = 24 = 16 Subnets

S HS H H H HS

Borrow 3 Bits = 23 = 8 Subnets

Page 31: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Class C SubnetsS SS S H H HS

Borrow 5 Bits = 25 = 32 Subnets

Borrow 7 Bits = CannotTwo Host Bits Must Remain

S SS S S H HS

Borrow 6 Bits = 26 = 64 Subnets

Page 32: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

• If you Borrow 2 Host Bits you do NOT get 4 Subnets. Why?

• Remember the Network Address and Broadcast Address - Both of these addresses are Reserved, they cannot be used!

How Many Subnets?Borrow 2 Bits = 22 = 4 Subnets

Page 33: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

How Many Hosts/Subnet?NetworkNetwork Network Host

S HH H H H HS

The number of Hosts per subnet is calculated using the following formula:

# Hosts/Subnet = 2# Host Bits Remaining

# Hosts = 26 = 64 hosts/subnet

Page 34: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

• If there are 6 Host Bits remaining you do NOT get 64 Hosts/Subnet. Why?

• Each subnetwork has its own Subnetwork Address and Broadcast Address - Both of these addresses are Reserved and cannot be used!

• Thus only 62 Hosts are available.

How Many Hosts/Subnet?6 Host Bits Remain = 26 = 64 Hosts

Page 35: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

• Remember to subtract 2 for the Network Address and Broadcast Address.

• Remember to subtract 2 for the Subnetwork Address and Subnetwork Broadcast Address.

Formulas to Remember!

# Subnets Created = 2# Borrowed Bits

# Hosts/Subnet = 2# Host Bits Remaining

Page 36: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Determining Network/Host ID• Given 2 IP addresses 192.20.1.5.and

192.20.6.8. The subnet mask is 255.255.255.0. Determine the network address and the host address, also decide whether the message need to be send through the router.

Page 37: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Determining Network/Host ID192.20.1.5 = 11000000.00010100.00000001.00000101

255.255.255.0 = 11111111.11111111.11111111.00000000

Network ID = 11000000.00010100.00000001.00000000 => 192.20.1.0

Host ID = 00000000.00000000.00000000.00000101 => 0.0.0.5

192.20.6.8 = 11000000.00010100.00000110.00001000

255.255.255.0 = 11111111.11111111.11111111.00000000

Network ID = 11000000.00010100.00000110.00000000 => 192.20.6.0

Host ID = 00000000.00000000.00000000.00001000 => 0.0.0.8

Page 38: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Determining Network/Host ID• Given 2 IP addresses 192.20.1.5 and

192.20.6.8. The subnet mask is 255.255.0.0. Determine the network address and the host address, also decide whether the message need to be send through the router.

Page 39: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Determining Network/Host ID192.20.1.5 = 11000000.00010100.00000001.00000101

255.255.0.0 = 11111111.11111111.00000000.00000000

Network ID = 11000000.00010100.00000000.0000

=> 192.20.0.0

Host ID = 00000000.00000000.00000001.00000101=> 0.0.1.5

192.20.6.8 = 11000000.00010100.00000110.00001000

255.255.0.0 = 11111111.11111111.00000000.00000000

Network ID = 11000000.00010100.00000000.00000000 => 192.20.0.0

Host ID = 00000000.00000000.00000110.00001000 => 0.0.6.8

Page 40: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Determining Network/Host ID• Suppose a Class B IP address is 191.20.0.0

and the subnet mask is 255.255.224.0. Find the number of subnet available and state the subnet addresses. How many hosts can each subnet have ?

Page 41: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Determining Network/Host ID191.20.x.x = 10111111.00010100.xxxxxxxx.xxxxxxxx

255.255.224.0 = 11111111.11111111.11100000.00000000

Network ID = 10111111.00010100.xxx00000.00000000

=> 191.20.x.0

As extra 3 bits is added into the subnet mask, we have increased the bits available for the network ID. Now, we can have 6 [(2^3) – 2 ] different Network ID.

Page 42: IP address Universally accepted addressing method is required so that all hosts can communicate with each other TCP/IP based network is assigned with unique.

Determining Network/Host ID10111111.00010100.00100000.00000000 => 191.20.32.0

10111111.00010100.01000000.00000000 => 191.20.64.0

10111111.00010100.01100000.00000000 => 191.20.96.0

10111111.00010100.10000000.00000000 => 191.20.128.0

10111111.00010100.10100000.00000000 => 191.20.160.0

10111111.00010100.11000000.00000000 => 191.20.192.0

Each subnet can have [2^13 –2] = 8190 hosts.