F.networking.ch6ppt
F.networking.ch6ppt
Introduction to IP
Addressing and Subnetting
Why use IP?
2
CLASSES Network No. of possible Hosts per Network Default subnet mask
networks
ranges
A 1 –126 126 16,777,214 255.0.0.0
B 128-191 16,382 65,534 255.255.0.0
C 192-223 2,097,150 254 255.255.255.0
D 224-239
E 240-255
Netid and hostid
Given the network address, we can find the class of the address,
the block, and the range of the addresses in the block
Subnet mask determines this. (all 1s represents net Id, all 0s
represents hostId)
Class A Networks (/8 Prefixes)
7
Each Class A network address has an 8-bit network-
prefix with the highest order bit set to 0 and a seven-bit
network number, followed by a 24-bit host-number.
Referred to as "/8s"
A maximum of 126 (2 -2) /8 networks can be defined
7
per network.
Since the /8 address block contains 2 (2,147,483,648)
31
Applying a mask which is larger than the default subnet mask, will divide
your network into subnets.
This is possible by borrowing bits from the host portion to network.
Three hierarchy (Network, Subnet and Host) addresses will be created.
Subneting is done by borrowing bits from the host part and add them the
network part
Example
Network address 172.16.0.0 with /16 network mask can be
subnetted as default network mask: 255.255.0.0 or /16
N.B
No of possible Networks: 2N (N is the number of bits for the
network/subnet portion)=borrowed bit
No of hosts per networks: 2H -2 (H is the number of bits for the
host portion) why we subtract 2?
Mask And IP address = Block Address
Sunbetting process
25
Given an IP address, we can find the subnet address in the same way
we found the network address. We apply the mask to the address. We
can do this in two ways: straight or short-cut.
Straight Method
26
we use binary notation for both the address and the mask and
then apply the AND operation to find the subnet address.
Example: What is the subnetwork address if the IP address is
180.45.34.56 and the subnet mask is 255.255.240.0?
10110100 00101101 00100010 00111000
If the byte in the mask is 255, copy the byte in the address.
If the byte in the mask is 0, replace the byte in the address with 0.
If the byte in the mask is neither 255 nor 0, we write the mask and
the address in binary and apply the AND operation.
Example: What is the subnetwork address if the destination
address is 19.30.84.5 and the mask is 255.255.192.0?
19.30.84.5 84= 01010100
255.255.192.0 192=11000000
19.30.64.0 subneted 64=01000000
28
the broadcast address for Subnet #n is one less than the base address for Subnet # (n+1)
Example 2
33
© Copyright 2005 – Midwest Network Services Group, LLC – all rights reserved Slide # 39
40
Any cast
An anycast address defines a group of computers that all share
a single address.
A packet with an anycast address is delivered to only one
member of the group, the most reachable one.
An anycast communication is used, for example, when there are
several servers that can respond to an inquiry,
the addresses are assigned from the unicast block.
Multicast Address
A multicast address also defines a group of computers.
In multicasting each member of the group receives a copy.
IPV6 Reserved addresses
51
Reserved Address Description
FF02::9 A multicast address to all routing information protocol (RIP) routers on a link
FF02::1:FFxx:xxxx All solicited-node multicast addresses used for host auto-configuration and neighbor discovery
(similar to ARP in IPv4)