Professional Documents
Culture Documents
Ip Addressing
Ip Addressing
Contents
• IP Address Space • IPV4
• Classful addressing • IPV6
• Routing in classtype • IPV6 – Flow label
• Address conversion • IPV6 – Next Address
• CIDR • IPV6 - CIDR
• Subnet • Anycast
• Subnet mask • IPV6 Address
• Supernet • IPV6 to IPV4
• NAT • IPV6 to IPV4
• Special IP Address
IP Address Space
1
12-10-2022
IP Address Space
Classful addressing
2
12-10-2022
Address
IPv4 Addressing
3
12-10-2022
Classful addressing
4
12-10-2022
Classful addressing
5
12-10-2022
6
12-10-2022
Address conversion
Binary to Hex
a. 1000 0001 00001011
0000 1011 11101111
b. 1100 0001 1000 0011
0001 1011 11111111
7
12-10-2022
Address conversion
Decimal to Binary
a. 111.56.45.78
b. 221.34.7.82
Hex to decimal/Binary
a. C8 56 BB AA
b. 79 C9 52 DD
Error in IP Address
a. 111.56.045.78
b. 221.34.7.8.20
c. 75.45.301.14
d. 11000010.23.15.123
8
12-10-2022
In classless addressing
RFC 4632 • Variable-length address
It works with subnets blocks are assigned that
Pronounced ‘‘cider,’’ as belong to no class
in the drink. • What was the number of
addresses in class A, B?
CIDR
Entire address space (232
addresses)
• Divided into blocks of
One subnet consists of different sizes
a block of IP address • Networks with blocks of IP
address
with power of 2n.
• Address blocks in power of
n = 0, 1, 2 .. 31 2n. Such as 2,4,8 ..1024…
9
12-10-2022
CIDR
In classless addressing The
prefix defines the network –>
n bits
• n=0 … 32
A.B.C.D/n
• A small n means a larger
Classful address is possible with
block of IP address
specific rule in classless
• a large n means a small block
addressing n = 8,16,24,4,4
of IP address
The suffix defines the number of
host 32-n bit
CIDR
In classless addressing, we
• Number of addresses need to know
• Start address • One of the addresses in the
AND subnet mask with given block
IPA
• The prefix length
• End address
OR complement of subnet mask • How do we define CIDR
with given IPA (network block of IP Address?
address)
198.200.20.56/27 ??
10
12-10-2022
CIDR
Subnets
Company with 60 departments
Multiple locations,
Each having 30 – 50 hosts.
11
12-10-2022
Subnets
For class B – 16 bit host
address
Few bits are taken away to
create subnet number
• If we take 4 bits from host How do we know what is the
part, we can create 16
subnet from IP address?
subnet.
• If we take 10 bits from host What is subnet mask?
part, we can create 1024 AND subnet mask with IPA to
subnets find the network address.
Subnets
12
12-10-2022
Subnet
Subnet mask
Network Prefix can not be
derived from IP address.
Hence, network prefix should
All computer connected to be specified exclusively
one subnet must use one Network prefix number of 1’s
network address. is called subnet mask
Logical AND of subnet 141.14.0.0/16
mask with IP address gives 141.14.0.0/18
network address.
13
12-10-2022
Subnet
The IP address 230.8.24.56
can belong to many blocks
Supernet
14
12-10-2022
NAT
15
12-10-2022
NAT
A technology that can help in
these cases is NAT
• Address Translation
• Translation Table
Network address
Translation - NAT
Private IP address
172.18.x.y
Routable IP address
200.24.5.8
16
12-10-2022
Special IP address
Private address
How many addresses in 10.0.0.0/8 - 10.255.255.255
each private address? 172.16.0.0/12 - 172.16.15.255
192.168.0.0/16 – 192.168.255.255
What is the last address? 169.254.0.0/16- 169.254. 255.255
Special IP address
0.0.0.0/32
Used when I do not know my IP
address
Bootstrap server
DHCP server
Source 0.0.0.0
127.0.0.0
Destination 255.255.255.255 Loop back address
Software testing – IPv4,
Client-server
TCP IP Protocol Suite - Behrouz A. Forouzan
17
12-10-2022
Special IP address
0.0.0.0/32
Used when I do not know
my IP address
Bootstrap server
DHCP client
127.0.0.0
Loop back address
Software testing –
IPv4, Client-server
TCP IP Protocol Suite - Behrouz A. Forouzan
Special IP address
18
12-10-2022
Special IP address
Limited broadcast
address
255.255.255.255
IPV4
19
12-10-2022
IPV4
IPV6
20
12-10-2022
IPV6
IPV6
21
12-10-2022
IPV6
IPV6
22
12-10-2022
IPV6
23
12-10-2022
24
12-10-2022
IPV6 CIDR
25