IP address and IP class - Computer Networking

Shohel_Ahmed 393 views 25 slides Jul 07, 2024
Slide 1
Slide 1 of 25
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25

About This Presentation


ee classes of TCP/IP networks. Each class uses the 32-bit IP address space differently, providing more or fewer bits for the network part of the address. These classes are class A, class B, and class C.


Class A Network

This IP address class is used when there are a large number of hosts. In a Cl...


Slide Content

IP Address and IP class Presented By Md. Shohel Rana M.Sc in CSE KUET Head of CST - NUBNGPI

Five Different Classes Class First Octet decimal (range) First Octet binary (range) IP range default Subnet mask Number of Hosts Per Network ID Number of networks Class A - 127 xxxxxxx 0.0.0.0 – 127.255.255.255 255.0.0.0 - 2 Class B 128 - 191 10 xxxxxx 128.0.0.0 – 191.255.255.255 255.255.0.0 - 2 Class C 192 - 223 110 xxxxx 192.0.0.0 – 223.255.255.255 255.255.255.0 - 2 Class D 224 - 239 1110 xxxx 224.0.0.0 – 239.255.255.255 Class E 240 - 255 1111 xxxx 240.0.0.0 – 255.255.255.255 Class First Octet decimal (range) First Octet binary (range) IP range default Subnet mask Number of Hosts Per Network ID Number of networks Class A - 127 xxxxxxx 0.0.0.0 – 127.255.255.255 255.0.0.0 Class B 128 - 191 10 xxxxxx 128.0.0.0 – 191.255.255.255 255.255.0.0 Class C 192 - 223 110 xxxxx 192.0.0.0 – 223.255.255.255 255.255.255.0 Class D 224 - 239 1110 xxxx 224.0.0.0 – 239.255.255.255 Class E 240 - 255 1111 xxxx 240.0.0.0 – 255.255.255.255

Five Different Classes Class First Octet decimal (range) First Octet binary (range) IP range default Subnet mask Hosts Per Network ID (Usable Addresses) Number of Networks Class A - 127 xxxxxxx 0.0.0.0 – 127.255.255.255 255.0.0.0 - 2 (16777214) -2 (126) Class B 128 - 191 10 xxxxxx 128.0.0.0 – 191.255.255.255 255.255.0.0 - 2 (65534) -2 (16382) Class C 192 - 223 110 xxxxx 192.0.0.0 – 223.255.255.255 255.255.255.0 - 2 (254) -2 (2097150) Class D 224 - 239 1110 xxxx 224.0.0.0 – 239.255.255.255 Class E 240 - 255 1111 xxxx 240.0.0.0 – 255.255.255.255 Class First Octet decimal (range) First Octet binary (range) IP range default Subnet mask Hosts Per Network ID (Usable Addresses) Number of Networks Class A - 127 xxxxxxx 0.0.0.0 – 127.255.255.255 255.0.0.0 Class B 128 - 191 10 xxxxxx 128.0.0.0 – 191.255.255.255 255.255.0.0 Class C 192 - 223 110 xxxxx 192.0.0.0 – 223.255.255.255 255.255.255.0 Class D 224 - 239 1110 xxxx 224.0.0.0 – 239.255.255.255 Class E 240 - 255 1111 xxxx 240.0.0.0 – 255.255.255.255

Class D is reserved for Multicasting Class E is Reserved for future use, or Research and Development Purposes. Note: Class A addresses 127.0.0.0 to 127.255.255.255 cannot be used and is reserved for loopback and diagnostic functions.

Priority Bit Concept • 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 • CLASS A priority bit is • CLASS B priority bit is 10 • CLASS C priority bit is 110 • CLASS D priority bit is 1110 • CLASS E priority bit is 1111

CLASS A Range For Class A range : First bit of the first octet should be reserved for the priority bit.

CLASS B Range For Class B range : First two bits of the first octet should be reserved for the priority bit.

CLASS C Range For Class C range : First Three bits of the first octet should be reserved for the priority bit.

CLASS D Range For Class D range : First four bits of the first octet should be reserved for the priority bit .

CLASS E Range For Class E range : First four bits of the first octet should be reserved for the priority bit.

Octet Format

Octet Format and subnet mask

No. Networks and Host formula

CLASS A – No. Networks and Host • Class A Octet Format is N . H . H . H • Network bits : 8 Host bits : 24 No. of Networks = -1 (-1 is Priority Bit for Class A) = = 128 – 2 (-2 is for 0 & 127 Network ) = 126 Networks • No. of Host = – 2 (-2 is for Network ID & Broadcast ID) = 16777216 - 2 = 16777214 Hosts/Network   CLASS A 126 Networks & 16777214 Hosts/ Nw CLASS A 126 Networks & 16777214 Hosts/ Nw

CLASS B – No. Networks & Host • Class A Octet Format is N . N . H . H • Network bits : 16 Host bits : 16 • No. of Networks = -2 (-2 is Priority Bit for Class B) = = 16384 Networks • No. of Host = – 2 (-2 is for Network ID & Broadcast ID) = 65536 - 2 = 65534 Hosts/Network   CLASS B 16384 Networks & 65534 Hosts/ Nw CLASS B 16384 Networks & 65534 Hosts/ Nw

CLASS C – No. Networks & Host • Class A Octet Format is N . N . N . H • Network bits : 24 Host bits : 8 • No. of Networks = -3 (-3 is Priority Bit for Class C) = = 2097152 Networks • No. of Host = – 2 (-2 is for Network ID & Broadcast ID) = 256 - 2 = 254 Hosts/Network   CLASS C 2097152 Networks & 254 Hosts/ Nw CLASS C 2097152 Networks & 254 Hosts/ Nw

Network & Broadcast Address • The network address is represented with all bits as ZERO in the host portion of the address • The broadcast address is represented with all bits as ONES in the host portion of the address • Valid IP Addresses lie between the Network Address and the Broadcast Address. • Only Valid IP Addresses are assigned to hosts/clients

Example and explanation- Class A

Example and explanation- Class B

Example and explanation- Class C

Private IP Addresses Class Private Networks Subnet Mask Address Range A 10.0.0.0 255.0.0.0 10.0.0.0 - 10.255.255.255 B 172.16.0.0 - 172.31.0.0 255.240.0.0 172.16.0.0 - 172.31.255.255 C 192.168.0.0 255.255.0.0 192.168.0.0 - 192.168.255.255

Every host on a network has IP address and subnet mask

Subnet mask Subnet mask is used by a computer to determine if another (target) computer is on the same network or on a different network. The function of a subnet mask is to determine whether an IP address exists on the local network or whether it must be routed outside the local network. Subnet mask is a 32-bit long string of 1’s followed by 0’s. Subnet mask looks like IP address .It is 32-bit long ,same length as IPv4 address.But they are different.

example Class c default subnet mask :255.255.255.0 in binary : 11111111.11111111.11111111.00000000 in shorthand : /24 Class B default subnet mask : 255.255.0.0 in binary : 11111111.11111111.00000000.00000000 in shorthand : /16 Class A default subnet mask : 255.0.0.0 in binary : 11111111.00000000.00000000.00000000 in shorthand : /8

/5 = 11111000.00000000.00000000.00000000 = 248.0.0.0 /20 = 11111111.11111111.11110000.00000000= 255.255.240.0 /25 = 11111111.11111111.11111111.10000000=255.255.255.128