You are on page 1of 3

King Saud University

College of Computer and Information Sciences


Information Technology Department

First Semester 1436/1437


IT224: Networks 1
Sheet# 4 (chapter 19)

Multiple-Choice Questions

1. An IP address consists of ________ bits.


a. 4
b. 8
c. 32
d. Any of the above

2. Identify the class of IP address 229.1.2.3.


a. Class A
b. Class B
c. Class C
d. Class D

3. A subnet mask in class B can have _______ 1s with the remaining bits 0s.
a. Nine.
b. Fourteen.
c. Seventeen.
d. Three.

4. A subnet mask in class C has twenty-five 1s. How many subnets does it define?
a. 2
b. 8
c. 16
d. 0

5. Given the IP address 18.250.31.14 and the subnet mask 255.240.0.0, what is the subnet
address?
a. 18.0.0.14
b. 18.31.0.14
c. 18.240.0.0
d. 18.9.0.14

6. Class _______ has the greatest number of hosts per given network address.
a. A
b. B
c. C
d. D

7. On a network that uses NAT, the _______ has a translation table.

a. Router
b. Server
c. Switch
d. None of the above

Page 1 of 3
Exercises
1. Find the class of the following IP addresses.
a. 243.34.2.1 class E
b. 11000111 10010000 00000110 00001000 class C

2. Find the netid and the hostid of the following IP addresses.


a. 77.34.2.8 class A address / net id: 77 / host id: 34.2.8
b. 129.55.8.6 class B address / net id: 129.55 / host id: 8.6
c. 200.94.55.12 class C address / net id: 200.94.55 / host id: 12

3. A router receives a packet with destination classful address 100.211.33.81.


Show how it finds the network and the subnetwork address to route the packet.
Assume the subnet mask is /17. class A address / network id: 100.0.0.0
subnet mask: 255.255.128.0 / subnet address: 100.211.0.0
4. Find the range of addresses in the following classless blocks.
a. 200.17.21.128/26 2^(32-26) = 2^6 = 64 addresses /first address: 200.17.21.128 /last:200.17.21.191
b. 180.34.64.62/30 2^(32-30) = 2^2 = 4 addresses / first address: 180.34.64.60 / last: 180.34.64.63

5.In a block of addresses, we know the IP address of one host is 215.201.199.56/24.


What are the first address (network address), the last address, and the number of
address this block? first address(net id): 215.201.199.0 / last address: 215.201.199.255
number of addresses: 2^(32-24) = 2^8 = 256
6. An organization is granted a block of addresses 170.102.41.0/24, which contains
256addresses. The organization has five offices and needs to divide the addresses into
five subblocks (subnets) of 128, 64, 32, 16 and 16 addresses. Show the configuration
and addresses in this organization.
170.102.41.0 to 170.102.41.255 / 2^8 = 256 addresses

64 = 2^6 > /26


170.102.41.128 /26
to 32 = 2^5 > /27
170.102.41.191 /26 170.102.41.192
to
128=2^7 > /25 170.102.41.223
170.102.41.0/25
to
170.102.41.127/25

16 = 2^4 > /28


16 = 2^4 > /28 170.102.41.240
170.102.41.224 to to
170.102.41.239 170.102.41.255

Page 2 of 3
7. Consider the network structure shown below.

step 2
step 1
222.17.8.4 , 5000
200.24.5.8 , 80 192.168.0.2 1400
200.24.5.8 , 80

222.17.8.4 ,5001 step 4


200.24.5.8 , 80 200.24.5.8 , 80
192.168.0.2 , 1400

200.24.5.8 , 80
192.168.0.3 , 1401

step 3
200.24.5.8 , 80 200.24.5.8 , 80
192.168.0.3 , 1401
222.17.8.4 ,5000 222.17.8.4 , 5001
200.24.5.8 , 80

Suppose that the network address of the home network is 192.168.0.0/24 and that the global
address of Router is 222.17.8.4. Host A and B has one ongoing TCP connection, all to port 80
at the external host 200.24.5.8

(A) Provide the 4 corresponding entries in the NAT translation table.

Private Private External Address Private External Transport


Address Port port Port Protocol

Router

192.168.0.2
1400 5000 80
200.24.5.8 TCP

192.168.0.3 1401 200.24.5.8 5001 80 TCP

(B) If a host A and B needs to communicate with the external host 200.24.5.8. Fill the
header in the format of (IP, Port) at each stage(do that by filling the blanks in the
diagram)

Page 3 of 3

You might also like