Professional Documents
Culture Documents
TMP Study Addressing Last
TMP Study Addressing Last
TMP Study Addressing Last
With IPv4, each packet uses a 32-bit source address and a 32-bit
destination address in the Layer 3 header.
These addresses are represented in the data network as binary
patterns. Inside the devices, digital logic is applied for the
interpretation of these addresses. For the human network, a string of
32 bits is difficult to interpret and even more difficult to remember. For
this reason, IPv4 addresses are represented using dotted decimal
format.
Dotted Decimal IPv4 addresses are easier to remember,
write, and verbally communicate than strings of 32 bits.
Representing IPv4 addresses as dotted decimals begins by
separating the 32 bits of the address into bytes. Each byte
of the binary pattern, called an octet, is separated with a dot.
TOTAL = 2z ……(3)
HOSTS = 2z -2 ……..(4)
Example (1)
What are the network and broadcast addresses for the host
172.0.0.125 given the subnet mask 255.255.0.0
Answer
IP = 172.0.0.125 class B
SM = 255.255.0.0
Network Address (NA) = (IP) AND (SM)
= (172.0.0.125) AND (225.255.0.0)
= 172.0.0.0.
(SM) = 255.255.0.0
Answer
1) 8.1.4.5/16
2) 130.4.102.1/24
3) 199.1.1.100/24
4) 130.4.102.1/22
5) 199.1.1.100/27
Answers
1) 8.1.4.5/16
SM = 255.255.0.0
Number of network bits = 8 (class A)
Number of host bits = 16
Number of subnet bits = 32-(Network bits + Host bits)
= 32-(8+16) = 8
Number of Hosts per subnet = 216 - 2=65534
Number of subnets = 28 =256
2) 130.4.102.1/24
SM = 255.255.255.0
Number of network bits = 16 (class B)
Number of host bits = 8
Number of subnet bits =32-(16+8) = 8
Number of Hosts per subnet = 28 -2=254
Number of subnets = 28 =256
3) 199.1.1.100/24
SM = 255.255.255.0
Number of network bits = 24 (class C)
Number of host bits = 8
Number of subnet bits =32-(24+8) = 0
Number of Hosts per subnet = 28 -2=254
Number of subnets = 20 = 1 (no subnets)
4) 130.4.102.1/22
SM = 255.255.255.0
Number of network bits = 16 (class B)
Number of host bits = 2+8=10
Number of subnet bits =32-(16+10) = 6
Number of Hosts per subnet = 210 - 2=1022
Number of subnets = 26 =64
5) 199.1.1.100/27
SM = 255.255.255.224
Number of network bits = 24 (class C)
Number of host bits = 5
Number of subnet bits =32-(24+5) = 3
Number of Hosts per subnet = 25 -2=30
Number of subnets = 23 =8