You are on page 1of 22

Task 1 : Problem 1

For a given IP address, Determine Network Information


Given :
Host Ip
Address
Network
Mask

172.25.114.2
50
255.255.0.0(/
16)

Network Address
Network Broadcast
Address
Total Number Of Host
Bits
Number of Host

Find :

172.25.0.0
172.25.255.255
16bit
65534 Max of Host

BINARY NUMBER:-

Step 1: Translate Host IP address and network mask into binary notation
Convert the host Ip address and network masj to binary :
I.

Number Bits
1
1
1
1
1
1
1
1

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Example : 128 + 32 + 8 + 4 = 172


II.

1 AND 1 = 1 (on)
1 AND 0 = 0 (off)
1
0
1
0
1
1
0
0

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Subnet
Host
Counting
Rang
Range
Example : 1 + 0 + 1 + 0 + 1 + 1 + 0 + 0 = 10101100 e

IP Address

Decima
l
Binary

172

25

114

250

1010110
0

0001100
1

0111001

11111010

a. Calculation of Network Mask


1x128=128 0x128=0
1x64=64
0x64=0
1x32=32
0x32=0
1x16=16 0x16=0
1x8=8
0x8=0
1x4=4
0x4=0
1x2=2
0x2=0
1x1=1
0x1=0
Then we add all those numbers,
Example :
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
b. counting to three and four blocks
Example :
0+0+0+0+0+0+0+0=0

Network
Mask

Decima
l

225

255

Binary

1111111
1

111111
11

000000
0

0000000

Step 2: Determine the Network address


Looking for Network Address , by adding binary numbers of IP Address and
Network Mask using the AND operator . Note ; 1 AND 1 = 1 , 0 AND 0 = 0 :
Example : Formula AND GATE
1 0 1 0 1 1 0 0
1 1 1 1 1 1 1 1
_______________
1 0 1 0 1 1 0 0

IP Address
Network
Mask
Network
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary

172
1010110
0
225
1111111
1
172
1010110

25
0001100
1
255
1111111
1
25
0001100

114
011100
1
0
000000
0
0
000000

250
1111101
0
0
0000000
0
0000000

Step 3: Address Broadcast find a way to replace all the numbers from 0
on the number of hosts to be number 1

IP Address
Network
Mask
Network
Address
Broadcst
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary
Decimal
Binary

172
1010110
0
225
1111111
1
172
1111111
1
172
1010110
0

25
0001100
1
255
1111111
1
25
0001100
01
25
0001100
1

114
011100
1
0
000000
0
00
000000
0
255
111111
11

250
1111101
0
0
0000000
00
0000000
255
1111111
1

16 Bits
Steap 4 : Use Possible Host formula to get the number of possible host
for this subnetmask
Possible Host = 2

Bit in the host


=
=
=

= 2 (value bit) 2
(2^16) 2
65536 2
65534 Max of Host

Task 1 : Problem 2
For a given IP address, Determine Network Information
Given :

172.30.1.33

Host Ip
Address
Network
Mask

255.255.255.
0(/24)

Network Address
Network Broadcast
Address
Total Number Of Host
Bits
Number of Host

Find :

172.25.0.0
172.255.255.0(/2
4)
18 Bits
256

Step 1: Translate Host IP


address and network mask into binary notation
Convert the host Ip address and network masj to binary :
I.

Number Bits
1
1
1
1
1
1
1
1

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Example : 128 + 32 + 8 + 4 = 172

II.

1 AND 1 = 1 (on)
1 AND 0 = 0 (off)
1
0
1
0
1
1
0
0

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Subnet
Counting
Range

Host
Rang
e

Example : 1 + 0 + 1 + 0 + 1 + 1 + 0 + 0 = 10101100

IP Address

Decima
l
Binary

172

30

33

1010110
0

0001111
0

0000001

00100001

c. Calculation of Network Mask


1x128=128 0x128=0
1x64=64
0x64=0
1x32=32
0x32=0
1x16=16 0x16=0
1x8=8
0x8=0
1x4=4
0x4=0
1x2=2
0x2=0
1x1=1
0x1=0
Then we add all those numbers,
Example :
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
d. counting to three and four blocks
Example :
0+0+0+0+0+0+0+0=0

Network
Mask

Decima
l

225

255

255

Binary

1111111
1

111111
11

111111
11

0000000

Step 2: Determine the Network address


Looking for Network Address , by adding binary numbers of IP Address and
Network Mask using the AND operator . Note ; 1 AND 1 = 1 , 0 AND 0 = 0 :
Example : Formula AND GATE
1 0 1 0 1 1 0 0
1 1 1 1 1 1 1 1
_______________
1 0 1 0 1 1 0 0

Decimal
Binary

172
30
1
IP Address
1010110 0001111 000000
0
0
01
Decimal
225
255
255
Network
Binary
1111111 1111111 111111
Mask
1
1
11
Decimal
172
25
1
Network
Binary
1010110 0001111 000000
Address
0
0
01
Step 3: Address Broadcast find a way to replace all
on the number of hosts to be number 1

IP Address
Network
Mask
Network
Address
Broadcst
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary
Decimal
Binary

172
1010110
0
225
1111111
1
172
1111111
1
172
1010110
0

30
0001111
0
255
1111111
1
25
0001111
0
25
0001111
0

1
000000
01
0
111111
11
1
000000
01
1
000000
01

33
0010000
1
0
0000000
0
0000000
the numbers from 0

33
0010000
1
0
0000000
00
0000000
255
1111111
1

8 Bits

Steap 4 : Use Possible Host formula to get the number of possible host
for this subnetmask
Possible Host = 2

Bit in the host


=
=
=

= 2 (value bit) 2
(2^8) 2
65536 2
65534 Max of Host

Task 1 : Problem 3
For a given IP address, Determine Network Information
Given :

192.168.10.2
34

Host Ip
Address
Network
Mask

255.255.255.
0(/24)

Network Address
Network Broadcast
Address
Total Number Of Host
Bits
Number of Host

Find :

192.168.10.234
192.168.10.255
18 Bits
256

Step 1: Translate Host IP


address and network mask into binary notation
Convert the host Ip address and network masj to binary :
III.

Number Bits
1
1
1
1
1
1
1
1

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Example : 128 + 32 = 192


IV.

1 AND 1 = 1 (on)
1 AND 0 = 0 (off)
1 = 128
1 = 64

0
0
0
0
0
0

=
=
=
=
=
=

32
16
8
4
2
1

Subnet
Host
Counting
Rang
Range
Example : 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 = 11000000 e

IP Address

Decima
l
Binary

192

168

10

234

1100000
0

1010100
0

00001010

11101010

e. Calculation of Network Mask


1x128=128 0x128=0
1x64=64
0x64=0
1x32=32
0x32=0
1x16=16 0x16=0
1x8=8
0x8=0
1x4=4
0x4=0
1x2=2
0x2=0
1x1=1
0x1=0
Then we add all those numbers,
Example :
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
f. counting to three and four blocks
Example :
0+0+0+0+0+0+0+0=0

Network
Mask

Decima
l

225

255

255

Binary

1111111
1

111111
11

111111
11

0000000

Step 2: Determine the Network address


Looking for Network Address , by adding binary numbers of IP Address and
Network Mask using the AND operator . Note ; 1 AND 1 = 1 , 0 AND 0 = 0 :
Example : Formula AND GATE
1 0 1 0 1 1 0 0
1 1 1 1 1 1 1 1
_______________

1 0 1 0 1 1 0 0

IP Address
Network
Mask
Network
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary

192
1100000
0
225
1111111
1
192
1100000
0

168
1010100
0
255
1111111
1
168
1010100
0

10
000010
10
255
111111
11
10
000010
10

234
1110101
0
0
0000000
0
0000000

Step 3: Address Broadcast find a way to replace all the numbers from 0
on the number of hosts to be number 1

IP Address
Network
Mask
Network
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary
Decima
l
Binary

192
1100000
0
225
1111111
1
192
1100000
0
196

168
1010100
0
255
1111111
1
168
1010100
0
168

10
0000101
0
255
1111111
1
10
0000101
0
10

234
1110101
0
0
0000000

110000
00

101010
00

0000101
0

111111
11

0
0000000
255

8 Bits
Steap 4 : Use Possible Host formula to get the number of possible host
for this subnetmask
Possible Host = 2

Bit in the host


=
=
=

= 2 (value bit) 2
(2^8) 65536
65536 2
65534 Max of Host

Task 1 : Problem 4
For a given IP address, Determine Network Information
Given :

172.17.99.7
1

Host Ip
Address
Network
Mask

255.255.0.0(/
16)

Network Address
Network Broadcast
Address
Total Number Of Host
Bits
Number of Host

Find :

172.17.0.0
172.25.255.255
16 Bits
25536

Step 1: Translate Host IP


address and network mask into binary notation
Convert the host Ip address and network masj to binary :
V.

Number Bits
1
1
1
1
1
1
1
1

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Example : 128 + 32 + 8 + 4 = 179

VI.

1 AND 1 = 1 (on)
1 AND 0 = 0 (off)
1
0
1
0
1
1
0
0

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Subnet
Host
Counting
Rang
Range
Example : 1 + 0 + 1 + 0 + 1 + 1 + 0 + 0 = 10101100 e

IP Address

Decima
l
Binary

172

17

99

71

1010110
0

0001000
1

01100011

01000111

g. Calculation of Network Mask


1x128=128 0x128=0
1x64=64
0x64=0
1x32=32
0x32=0
1x16=16 0x16=0
1x8=8
0x8=0
1x4=4
0x4=0
1x2=2
0x2=0
1x1=1
0x1=0
Then we add all those numbers,
Example :
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
h. counting to three and four blocks
Example :
0+0+0+0+0+0+0+0=0

Network
Mask

Decima
l

225

255

255

Binary

1111111
1

111111
11

111111
11

0000000

Step 2: Determine the Network address


Looking for Network Address , by adding binary numbers of IP Address and
Network Mask using the AND operator . Note ; 1 AND 1 = 1 , 0 AND 0 = 0 :

Example : Formula AND GATE


1 0 1 0 1 1 0 0
1 1 1 1 1 1 1 1
_______________
1 0 1 0 1 1 0 0

IP Address
Network
Mask
Network
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary

172
1010110
0
225
1111111
1
192
1010110
0

17
0001000
1
255
1111111
1
168
1010100
0

99
011000
11
255
111111
11
10
000010
10

71
0100011
1
0
0000000
0
0000000

Step 3: Address Broadcast find a way to replace all the numbers from 0
on the number of hosts to be number 1

IP Address
Network
Mask
Network
Address

Broadcash

Decimal
Binary
Decimal
Binary
Decimal
Binary
Decima
l
Binary

192
1100000
0
225
1111111
1
192
1010110
0
172

168
1010100
0
255
1111111
1
17
0001000
1
17

10
0000101
0
255
1111111
1
0
0000000
0
255

234
1110101
0
0
0000000

110000
00

101010
00

1111111
1

111111
11

0
0000000
255

16 Bits
Steap 4 : Use Possible Host formula to get the number of possible host
for this subnetmask
Possible Host = 2

Bit in the host = 2 (value bit) 2

= (2^16) 65536
= 65536 2
= 65534 Max of Host

Task 1 : Problem 5
For a given IP address, Determine Network Information
Given :
Host Ip
Address
Network
Mask

192.168.3.2
19
255.255.0.0(/
16)

Network Address
Network Broadcast
Address
Total Number Of Host
Bits
Number of Host

Find :

192.168.3.219
192.168.3.223
5
32

Step 1: Translate Host IP


address and network mask into binary notation
Convert the host Ip address and network masj to binary :

VII.

Number Bits
1
1
1
1

=
=
=
=

128
64
32
16

1
1
1
1

=
=
=
=

8
4
2
1

Example : 128 + 68 = 192


VIII.

1 AND 1 = 1 (on)
1 AND 0 = 0 (off)
1
1
0
0
0
0
0
0

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Subnet
Host
Counting
Rang
Range
Example : 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 = 11000000 e

IP Address

i.

Decima
l
Binary

192

168

219

11000000

1010100
0

00000011

11011011

Calculation of Network Mask


1x128=128 0x128=0
1x64=64
0x64=0
1x32=32
0x32=0
1x16=16 0x16=0
1x8=8
0x8=0
1x4=4
0x4=0
1x2=2
0x2=0
1x1=1
0x1=0
Then we add all those numbers,

Example :
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
j. counting to three and four blocks
Example :
0+0+0+0+0+0+0+0=0

Network
Mask

Decima
l

225

255

Binary

1111111
1

111111
11

000000
00

0000000

Step 2: Determine the Network address


Looking for Network Address , by adding binary numbers of IP Address and
Network Mask using the AND operator . Note ; 1 AND 1 = 1 , 0 AND 0 = 0 :
Example : Formula AND GATE
1 0 1 0 1 1 0 0
1 1 1 1 1 1 1 1
_______________
1 0 1 0 1 1 0 0

IP Address
Network
Mask
Network
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary

192
1100000
0
225
1111111
1
192
1010110
0

168
1010100
0
255
1111111
1
168
1010100
0

3
000000
11
255
000000
00
255
111111
11

219
1101101
1
0
0000000
0
1111111
1

Step 3: Address Broadcast find a way to replace all the numbers from 0
on the number of hosts to be number 1
Decimal
IP Address
Network
Mask
Network
Address
Broadcast
Address

Binary
Decimal
Binary
Decimal
Binary
Decimal
Binary

192
1100000
0
225
1111111
1
192
1010110
0
192
1100000
0

168
1010100
0
255
1111111
1
168
1010100
0
168
1010100
0

3
000000
11
255
000000
00
255
111111
11
255
111111
1

219
1101101
1
0
0000000
0
1111111
1
255
1111111
1

Steap 4 : Use Possible Host formula to get the number of possible host
for this subnetmask
Possible Host = 2

Bit in the host


=
=
=

= 2 (value bit) 2
(2^16) 65536
65536 2
65534 Max of Host

Task 1 : Problem 6
For a given IP address, Determine Network Information
Given :
Host Ip
Address
Network
Mask

192.168.3.21
9
255.255.255.2
24(/27)

Network Address
Network Broadcast
Address
Total Number Of Host
Bits
Number of Host

Find :

192.168.3.219
192.168.255.255
16
65534

Step 1: Translate Host IP


address and network mask into binary notation
Convert the host Ip address and network masj to binary :

IX.

Number Bits
1
1
1
1
1
1
1
1

=
=
=
=
=
=
=
=

128
64
32
27
8
4
2
1

Example : 128 + 68 = 192


X.

1 AND 1 = 1 (on)
1 AND 0 = 0 (off)
1
1
0
0
0
0
0
0

=
=
=
=
=
=
=
=

128
64
32
16
8
4
2
1

Subnet
Host
Counting
Rang
Range
Example : 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 = 11000000 e

IP Address

Decima
l
Binary

192

168

219

11000000

1010100
0

00000011

11011011

k. Calculation of Network Mask


1x128=128 0x128=0
1x64=64
0x64=0
1x32=32
0x32=0
1x16=16 0x16=0
1x8=8
0x8=0
1x4=4
0x4=0
1x2=2
0x2=0
1x1=1
0x1=0
Then we add all those numbers,
Example :
128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255
l. counting to three and four blocks
Example :
0+0+0+0+0+0+0+0=0

Network
Mask

Decima
l

225

255

255

224

Binary

1111111
1

111111
11

000000
00

1110000
0

Step 2: Determine the Network address


Looking for Network Address , by adding binary numbers of IP Address and
Network Mask using the AND operator . Note ; 1 AND 1 = 1 , 0 AND 0 = 0 :
Example : Formula AND GATE
1 0 1 0 1 1 0 0
1 1 1 1 1 1 1 1
_______________
1 0 1 0 1 1 0 0

IP Address
Network
Mask
Network
Address

Decimal
Binary
Decimal
Binary
Decimal
Binary

192
1100000
0
225
1111111
1
192
1010110
0

168
1010100
0
255
1111111
1
168
1010100
0

3
000000
11
255
111111
11
3
000010
10

219
1101101
1
0
1110000
0
192
1100000
0

Step 3: Address Broadcast find a way to replace all the numbers from 0
on the number of hosts to be number 1
Decimal
IP Address
Network
Mask
Network
Address
Broadcast
Address

Binary
Decimal
Binary
Decimal
Binary
Decimal
Binary

192
1100000
0
225
1111111
1
192
1010110
0
192
1100000
0

168
1010100
0
255
1111111
1
168
1010100
0
168
1010100
0

3
000000
11
255
000000
00
255
000010
10
255
000010
10

219
1101101
1
0
0000000
0
1100000
0
255
1101111
1

Steap 4 : Use Possible Host formula to get the number of possible host
for this subnetmask
Possible Host = 2

Bit in the host


=
=
=

= 2 (value bit) 2
(2^5) 2
32 2
30 Max of Host

You might also like