( decimal – binary ) (binary – decimal)
There are 5 classes of IPClasses Ranges
A 1-126 / 127 (loopback)
B 128-191
C 192-223
D 224-239 { RESERVED }
E 240-254 { RESERVED }
- A, B, and C classes are for user only
- Class ‘D’ is for multicasting
- Class ‘C’ is for Research & Development
- Class ‘E & D’ is reserved ips
Ex:-
192.168.0.1
192 =
- for converting decimal to binary divide by ‘2’
- binary value (bottom to top)
- Base 2
- Ex:-
192
1 1 0 0 0 0 0 0
27 26 25 24 23 22 21 20
= 128 + 64 + 0 + 0 + 0+ 0
= 192
- Then base multiply with binary
- Binary with zero will be zero
- Binary will 1 got a value
- And the sum of all binary is a decimal number
- By this, we can check whether the binary number we found is correct or not
- And also used for converting binary numbers to decimal
So you must have understood this much, I am giving you some more examples, you people try and tell the binary in the comments below.
Classes Ranges
A 1-126 / 127
B 128-191
C 192-223
D 224-239
E 240-254
1. NETWORK = 1
2. HOST = 0
- Network is 1
- Host is 0
- Each octave is of 8 bits
N.H.H.H
11111111,00000000,00000000,00000000
255.0.0.0
255.255.0.0
255.255.255.0
HOW TO FIND THE NUMBER OF HOST IN CLASSES AS GIVEN BELOW
N = 8 bits
H = 24
No of host = 2 ( host bits ) -2
= 2 24
= 16,777,216 – 2
= 16,777,214 total number of host
N = 16 bits
H = 16 bits
No of host = 2 ( host bits ) -2
= 216 -2
= 65,534 -2 = 65,534
N.N.H.H
N = 24 bits
H = 8 bits
No of host = 2 ( host bits ) -2
= 28 -2
= 256-2 =254
No comments:
Post a Comment