You are on page 1of 19

Assigment 1

Code / Course :
KFC 2144 / Network Fundametal
Name :
Mohamad Nur Firdausz bin Mohd Jusmi
Sem / Class
SKN 2A

Problem 1
Total Number of Host Bits
Number of Hosts
Binary

172.30.1.33
255.255.0.0/16
172.30.0.0
172.30.255.255
16
65536 total host or 65534 usable host

Total Number of Host Bits
Number of Hosts

10101100. 00011110.00000001.00100001
11111111.11111111.00000000.00000000
10101100.11110000.00000001.00010001
10101100.00011110.00000001.11111111
2^16
65536 total host or 65534 usable host

Step : 1. Convert Host IP Address and Network Mask to Binary

172
30
1

10101100

00011110

33

00000001

00100001

00000000
0

00000000
0

x

11111111
255

11111111
255

172

10101100

30

00011110

33

00000001

00100001

00000000

00000000

00011110 00000000

00000000

x

11111111

172

11111111

30

2
2
2
2
2
2
2

2
2
2
2

2
2
2
2
2
2
2

2
2
2
2
2
2
2
2

172
172
86
43
21
10
5
2
1
30
30
15
7
3
1

1
1
1
1
1
1
1
1
1
33
33
16
8
4
2
1

1
0
1
0
1
1
0
0
0
1
1
1
1
0
0
0

0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1

172

30

10101100 00011110

00000000

00000000

11111111 11111111

00000000

00000000

10101100 00011110

11111111

11111111

Network

Host

By counting the number of host bits, we can determine the total number of
usable hosts for this network.
Host bits : 16
Total number of hosts :
216 = 65,536
65,536 2 = 65,534

Problem 2
Total Number of Host Bits
Number of Hosts

172.30.1.33
255.255.0.0/24
172.30.1.0
172.30.1.255
8
256 total host or 254 usable hosts

Binary
Total Number of Host Bits
Number of Hosts
Step : -

10101100. 00011110.00000001.00100001
11111111.11111111.11111111.00000000
10101100.00011110.00000001.00000000
10101100.00011110.11111111.11111111
8
256 total host or 254 usable hosts

172
30
1

10101100

00011110

33

00000001

00100001

11111111
255

00000000
0

x

11111111
255

11111111
255

172

10101100

30

00011110

33

00000001

00100001

x

11111111

11111111

11111111

00000000

172

00011110
30

00000001
1

00000000
0

2
2
2
2
2
2
2

2
2
2
2

2
2
2
2
2
2
2

2
2
2
2
2
2
2
2

172
172
86
43
21
10
5
2
1
30
30
15
7
3
1

1
1
1
1
1
1
1
1
1
33
33
16
8
4
2
1

1
0
1
0
1
1
0
0
0
1
1
1
1
0
0
0

0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
1

172

30

10101100 00011110

00000000

00000000

11111111 11111111

11111111

00000000

10101100 00011110

11111111

11111111

Network

Host

By counting the number of host bits, we can determine the total number of
usable hosts for this network.
Host bits : 8
Total number of hosts :
28 = 256
65,536 2 = 254

Problem 3
Total Number of Host Bits
Number of Hosts

192.168.10.234
255.255.0.0/24
192.168.10.0
192.168.10.255
8
256 total hosts or 254 usable host

Binary
Total Number of Host Bits
Number of Hosts
Step : -

11000000. 10101000. 00001010. 11101010

11111111. 11111111. 11111111. 00000000
11000000. 10101000. 00001010.00000000
11000000. 10101000. 00001010.00000000
8
256 total hosts or 254 usable host

192
168
10

11000000

10101000

234

00001010

11101010

11111111
255

11111111
255

00000000
0

168

10

234

10101000

00001010

11101010

11111111

00000000

10

x

11111111
255

192

11000000

x

11111111
192

11111111
168

2
2
2
2
2
2
2

2
2
2
2
2
2
2

2
2
2
2
2
2
2

2
2
2
2
2
2
2

192
192
86
43
21
10
2
1
168
168
84
42
21
10
5
2
1
10
10
5
2
1

234
234
117
58
29
14
7
6
0

1
1
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
1
0
1
0
1
1
1
0
1
0
1
0

192

168

10

11000000 10101000

00001010

00000000

11111111 11111111

11111111

00000000

10101100 10101000

00001010

11111111

Network

Host

By counting the number of host bits, we can determine the total number of
usable hosts for this network.
Host bits : 8
Total number of hosts :
28 = 256
65,536 2 = 254

Problem 4
Total Number of Host Bits
Number of Hosts

172.17.99.71
255.255.0.0
172.17.0.0
172.17.255.255
16
65536 total host or 254 usable host

Binary
Total Number of Host Bits
Number of Hosts
Step : -

10101100.00010001.01100011.01000111
11111111.11111111.00000000.00000000
10101100.00010001.00000000.00000000
10101100.00010001.11111111.11111111
16
65536 total host or 254 usable host

172
17
99

10101100

00010001

71

01100011

01000111

11111111
255

00000000
0

00000000
0

17
00010001

99
01100011

71
01000111

00000000

00000000

x

11111111
255

172
10101100

x

11111111
172

11111111
17

2
2
2
2
2
2
2

2
2
2
2
2
2
2

2
2
2
2
2
2
2

2
2
2
2
2
2
2

172
172
86
43
21
10
5
2
1
17
8
4
2
1

99
49
24
12
6
3
0

71
35
17
8
4
2
1

1
0
1
0
1
1
0
0
0
0
0
1
0
0
0
1
0
1
1
0
0
0
1
1
0
1
0
0
0
1
1
1

172

17

10101100 00010001

00000000

00000000

11111111 11111111

00000000

00000000

10101100 00010001

11111111

Network

11111111

Host

By counting the number of host bits, we can determine the total number of
usable hosts for this network.
Host bits : 16
Total number of hosts :
216 = 65536
65,536 2 = 65534

Problem 5
Total Number of Host Bits
Number of Hosts

192.168.3.219
255.255.0.0
192.168.0.0
192.168.255.255
16
65536 total host or 65534 usable host

Binary
Total Number of Host Bits
Number of Hosts
Step : -

11000000.10101000.00000011.11011011
11111111.11111111.00000000.00000000
11000000.10101000.00000000.00000000
11000000.10101000.11111111.11111111
16
65536 total host or 65534 usable host

192
168
3

11000000

10101000

219

00000011

11011011

11111111
255

00000000
0

00000000
0

168
10101000

3
00000011

219
11011011

00000000

00000000

x

11111111
255

192
11000000

x

11111111
192

11111111
168

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2

192
192
96
48
24
12
6
2
1
168
168
84
42
21
10
5
2
1
3
1

219
109
54
27
13
6
3
1

1
1
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
0
1
1

1
1
0
1
0
1
1
1

192

168

11000000 10101000

00000000

00000000

11111111 11111111

00000000

00000000

11000000 10101000

11111111

Network

11111111

Host

By counting the number of host bits, we can determine the total number of
usable hosts for this network.
Host bits : 16
Total number of hosts :
216 = 65536
65,536 2 = 65534

Problem 6
Total Number of Host Bits
Number of Hosts

192.168.3.219
255.255.255.245
192.168.3.192
192.168.3.223
5
32 total host or 30 usable host

Binary
Total Number of Host Bits
Number of Hosts
Step : -

11000000.10101000.00000011.11011011
11111111.11111111.11111111.11111111
11000000.10101000.00001010.11000000
11000000.10101000.00001010.11011111
5
32 total host or 30 usable host

192
168
3

11000000

10101000

219

00000011

11011011

11111111
255

11111111
255

00000000
224

168
10101000

3
00000011

219
11011011

11111111

00000000

x

11111111
255

192
11000000

x

11111111
192

11111111
168

192

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2

192
192
96
48
24
12
6
2
1
168
168
84
42
21
10
5
2
1
3
1

219
109
54
27
13
6
3
1

1
1
0
0
0
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
0
1
1

1
1
0
1
0
1
1
1

192

168

192

11000000 10101000

00001010

11000000

11111111 11111111

00000000

11000000

11000000 10101000

00001010

11011111

Network

Host

By counting the number of host bits, we can determine the total number of
usable hosts for this network.
Host bits : 5
Total number of hosts :
25 = 32
32 2 = 30