Lab2 Ip Address Subnetorks
Lab2 Ip Address Subnetorks
Objectives:
Identify IPv4 addresses classes.
Identify the network and host portion of an IP address.
Determine if an address assignment is valid host address
Calculate the sunbetworks in the main nework and the subnetmasks for the subnetwork.
Design a schema of All subnetworks with its valid ranges.
Internet Protocol (IP)
In the 1970’s, the Department of Defense developed the Transmission Control Protocol (TCP),
to provide both Network and Transport layer functions. When this proved to be an inflexible
solution, those functions were separated - with the Internet Protocol (IP) providing Network
layer services, and TCP providing Transport layer services. Together, TCP and IP provide the
core functionality for the TCP/IP or Internet protocol suite. IP provides two fundamental
Network layer services:
• Logical addressing – provides a unique address that identifies both the host, and the network
that host exists on.
• Routing – determines the best path to a particular destination network, and then routes data
accordingly.
IP was originally defined in RFC 760, and has been revised several times. IP Version 4 (IPv4)
was the first version to experience widespread deployment, and is defined in RFC 791. IPv4
employs a 32-bit address, which limits the number of possible addresses to 4,294,967,296. IPv4
will eventually be replaced by IP Version 6 (IPv6), due to a shortage of available IPv4
addresses.
IPv4 Addressing
A core function of IP is to provide logical addressing for hosts. An IP address provides a
hierarchical structure to both uniquely identify a host, and what network that host exists on. An
IP address is most often represented in decimal, in the following format:
158.80.164.3
An IP address is comprised of four octets, separated by periods:
First Octet Second Octet Third Octet Fourth Octet
158 80 164 3
Each octet is an 8-bit number, resulting in a 32-bit IP address. The smallest possible value of an
octet is 0, or 00000000 in binary. The largest possible value of an octet is 255, or 11111111 in
binary.
The above IP address represented in binary would look as follows:
IP Address: 10011110.01010000.10100100.00000011
Subnet Mask: 11111111.11111111.00000000.00000000
The first 16 bits of the subnet mask are set to 1. Thus, the first 16 bits of the address (158.80)
identify the network. The last 16 bits of the subnet mask are set to 0. Thus, the last 16 bits of the
address (164.3) identify the unique host on that network. The network portion of the subnet mask
must be contiguous. For example, a subnet mask of 255.0.0.255 is not valid.
Hosts on the same logical network will have identical network addresses, and can communicate
freely. For example, the following two hosts are on the same network:
IP Address Classes:
The IPv4 address space has been structured into several classes. The value of the first octet of
an address determines the class of the network:
Class First Octet Range Default Subnet Mask
Class A 1 - 127 255.0.0.0
Class B 128 - 191 255.255.0.0
Class C 192 - 223 255.255.255.0
Class D 224 – 239 ---