COMP347 Tutorial Week 4
COMP347 Tutorial Week 4
1. In class A, class B, and class C IP addresses, which octets represent the network
ID and which represent the host ID?
4. Which address class(es) will allow you to have more than 1,000 hosts per
network?
a) 3.3.57.0
b) 200.200.5.2
c) 191.107.2.10
d) 127.0.0.1
6. Review the following IP addresses. Circle the portion of the IP address that would
be invalid if it were assigned to a host (if assigned as a unique host id), and then
explain why it is invalid?
a) 131.107.256.80
b) 231.200.1.1
c) 0.127.4.100
d) 127.1.1.1
e) 198.121.254.255
f) 255.255.255.255
7. What is the purpose of a subnet mask? When is a default subnet mask used? When
is it necessary to define a custom subnet mask?
IP address: 193.177.73.255
Default gateway: 109.128.0.1
A B C
109.128.0.1
109.0.0.0
Router
147.103.0.1
D E F
IP address: 109.128.5.35
Default gateway: 109.128.0.2
Subnetting Procedure: An example.
j) The following table gives valid range of host IDs for this class B subnet using 3
bits for the subnet mask. Note that subnets 0 (000) and 7 (111) may be excluded.
k) To determine the number of hosts per subnet, raise 2 to the power of number of
host ID bits, and then subtract 2. This is because the host number field of an IP
address cannot contain all 0 bits or all 1 bits. In this case, 213-2=8190 hosts per
subnet.
- The all-0s host number identifies the base network (or subnetwork number),
while
- all-1s host number represents the broadcast address for the network (or
subnetwork).
l) In general, to define the address assigned to host #n of a particular subnet, simply
place the binary representation of n into the subnet’s host-number field. For
example, to define the address, assigned to host 15 on subnet 3, simply place the
binary representation of 15 (01111) into the allocated bits of subnet 3’s host
number field.
x.y.01100000.00001111
Similarly, host 8190: x.y.011 11111.11111110