Web Science/Part1: Foundations of the web/Internet Protocol/Classful IPv4 networks

From Wikiversity
Jump to navigation Jump to search

Classful IPv4 networks

Learning goals

  1. understand that an IP network as an overlay network is an abstract thing that is not directly reflecting the hardware settings
  2. understand the notion of an IPv4 address and its components like network and host part
  3. understand why MAC addresses do not fulfill the requirements of IP addresses.
  4. get introduced to the notion of an IP router / gateway



As we have already seen with the Ethernet we can build Local Area Network and those networks will work as the autonomous systems. But there is an essential need to interconnect these networks by creating an overlay network. In order to create this overlay network we need to introduce concept that is called classfull network or classfull IP network. For them we need to introduce the concept of IP address.

For example, in one network each of the computers even thought it already has a MAC Address gets another address which is called an IP Address or IPv4 Address.
- this IP address is basically 32 bit integer, so it consists of 4 bytes an each byte is denoted as the number separated with dot ( and it’s just to make it easier to read.
- what this also means is that each of those number between the dots can be between 0 and 255.
- IP address is supposed to uniquely identify each host on the network and in global Internet.
All the IP addresses in the network start with the same number (the same prefix). It’s called network prefix. This prefix is only 1 byte but there are networks with longer prefix. This is a very simple principle of classfull network.
So now with all IP addresses in the same network starting with the same network part (67 for example) we’ve got one special IP address (e.g. This IP address will never be assigned to any host in the network. This is reserved to identify network itself. By doing this we introduce some kind of hierarchy. So even so the Internet is still decentralized we need this hierarchy for the routing algorithm to work.
Unlike the MAC addresses we can make sure that all IP addresses in the same network start with the same prefix. It will be impossible with MAC addresses due to the fact that MAC address consists of some parts identifying the vendor and just a serial number. What can happen is that similar MAC addresses of Ethernet devices will exist in networks all over the world.
Let’s move to another network. It’s has a larger network part of IP address ( So in order to interconnect this network and the previous one (, we need to introduce one further computer which will have 2 network devices. Each network device will be in one of those networks. So what can happen now? If packages are in 67-network and their destination is 141.71-network they can just go to this special computer and it could forward them to the other network. A routing table mechanism is required.
After you have connected those 2 networks you can also connect 141.71-network with the similar mechanism by introducing one other computer with 205.34.55-network. And once you have done this packages could actually travel from the 67-network over the 141.71-network to the 205.34.55-network. Those introduced computers are called routers.
--Jane Kruch (discusscontribs) 10:33, 31 October 2013 (UTC)


1 what are the two parts of an IP address called

dots and Bytes
host part and network part
IP header and IP body

2 How many IPv4 addresses do exist

More than MAC addresses
enough so we do not need to worry
about 4 billion
as many as MAC addresses

3 What is achieved by introducing IP addresses?

Uniquely identify each host on the internet
introduce an address hierarchy
building a way to guarantee the arrival of transmitted data.
be able to identify the network a computer belongs to

4 Why do we need to introduce the network part in IP

This is done to reduce the amount of entries in a routing table.
This is needed for upper layer protocols like TCP
Because one wants to represent the structure of local area networks on the internet

5 How many networks of the following class exist in IPv4

Class A Class B Class C Private networks
127 ( = 2^7-1)
128 ( = 2^7)
273 ( = 1 + 16 + 256 )
16,383 ( = 2^14-1)
16,384 ( = 2^14)
2,097,151 ( = 2^21-1)
2,097,152 ( = 2^21 )

6 How many hosts can exist in the following class of IPv4 networks

Class A Class B Class C
16,777,216 ( = 2^24)
16,777,214 ( = 2^24-2)
65,536 ( = 2^16)
65,534 ( = 2^16-2)
256 ( = 2^8)
254 (= 2^8-2)

7 A network device from network receives an IP package with the destination IP address Which of the following is true?

The network prefix of the destination address is 150
The network prefix of the destination address is 150.1
The network prefix of the destination address is 150.1.2
The destination network is a class A network.
The destination network is a class B network.
The destination network is a class C network.