Documentos de Académico
Documentos de Profesional
Documentos de Cultura
IPAddressing
It is a way to identify machines on a network It is Used to connect to another computer IP Addressing is logical addressing & works on network layer (layer3) There are two version of Addressing Scheme:
IPv4-32 bit addressing & IPv6-128 bit addressing (still in under implementation)
First Octet
Forth Octet
01010101.00000101.10111111.00000001
In IPv6, 128-bit are divided in eight 16-bit blocks
Each 16-bit block is further converted to a 4-digit HEX Number & separated by colons, known as Colon-Hex Notation. Like:
FEDC : BA98 :7654 : 3210 : FEDC : BA97 :7654 : 3210
Example for First Octet : T otal 8 bits, Value will be 0s and 1s i.e. 28 = 256 combination 27 26 25 24 23 22 21 20 Total IP Address 0 0 0 0 0 0 0 0 = 0 Range 0 0 0 0 0 0 0 1 = 1 0 0 0 0 0 0 1 0 = 2 0.0.0.0
0 0 0 0 0 0 0 1 1 = 3 0 0 0 0 1 0 0 = 4
to 255.255.255.255
= 255
IPAddress Classes
The designers of the TCP/IP suite defined five blocks of addresses, called address classes, for specific network uses and sizes
CLASS A
CLASS B LAN & WAN
CLASS C
CLASS D Research & Development CLASS E
5
Classes Range
To identify the range of each class a bit called priority bit is used. Priority Bit is the left most bits in the First Octet
0
10 110 1110
1111
0 netId*
7 bits
hostId*
24 bits
1 0
netId
14 bits
hostId
16 bits
11 0
netId
21 bits
hostId
8 bits
Classes A Range
0xxxxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 0 0 0 0 0 26 0 0 0 0 0 25 0 0 0 0 0 24 0 0 0 0 0 23 0 0 0 0 0 22 21 0 0 0 0 0 1 0 1 1 0 20 0 1 0 1 0 = = = = = 0 1 2 3 4
Class A Range
0 . 0 . 0 . 0 to 127.255.255.255
Exception 0.X.X.X and 127.X.X.X network are reserved
= 127
Classes B Range
10xxxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 1 1 1 1 1 26 0 0 0 0 0 25 0 0 0 0 0 24 0 0 0 0 0 23 0 0 0 0 0 2 2 21 0 0 0 0 0 1 0 1 1 0 20 0 1 0 1 0 = = = = = 128 129 130 131 132
Class B Range
128. 0 . 0 . 0 to 191.255.255.255
= 191
9
Classes C Range
110xxxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 1 1 1 1 1 26 1 1 1 1 1 25 0 0 0 0 0 24 0 0 0 0 0 23 0 0 0 0 0 2 2 21 0 0 0 0 0 1 0 1 1 0 20 0 1 0 1 0 = = = = = 192 193 194 195 196
Class C Range
192. 0 . 0 . 0 to 223.255.255.255
= 223
10
Classes D Range
1110xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 1 1 1 1 1 26 1 1 1 1 1 25 1 1 1 1 1 24 0 0 0 0 0 23 0 0 0 0 0 22 21 0 0 0 0 0 1 0 1 1 0 20 0 1 0 1 0 = = = = = 224 225 226 227 228
Class D Range
224. 0 . 0 . 0 to 239.255.255.255
0 1
= 239
11
Classes E Range
1111xxxx. xxxxxxxx. xxxxxxxx. xxxxxxxx
27 1 1 1 1 1 26 1 1 1 1 1 25 1 1 1 1 1 24 1 1 1 1 1 23 0 0 0 0 0 2 2 21 0 0 0 0 0 1 0 1 1 0 20 0 1 0 1 0 = = = = = 240 241 242 243 244
Class E Range
240. 0 . 0 . 0 to 255.255.255.255
1 1 1
= 255
12
CLASS C is written as
13
No. = = = = No. = = =
of Networks 28-1 (-1 is Priority Bit for Class A) 27 128 2 (-2 is for 0 & 127 Network) 126 Networks of Host 224 2 (-2 is for Network ID* & Broadcast ID*) 16777216 - 2 16777214 Hosts CLASS A
126 Networks
&
16777214 Hosts
14
16384 Networks
&
65534 Hosts/Nw
15
2097152 Networks of Host 28 2 (-2 is for Network ID & Broadcast ID) 256 - 2 254 Hosts/Network
CLASS C
2097152 Networks
&
254 Hosts/Nw
16
17
18
20
22
Subnet Mask
Subnet Mask differentiates Network portion and Host Portion Subnet Mask is been given for host Identification of Network ID Represent all Network Bit Values with 1 Represent all Host Bit Values with 0
24
25
Above Calculations is done with the Help of AND Table. The output of an AND table is only 1 if both its inputs are 1. For all other possible inputs the output is 0
26