Data Comm: IPv4 - Network Class, Subnets & Hosts

  • Thread starter naspek
  • Start date
  • Tags
    Data
In summary, the IPv4 address of 166.48.13.50 and subnet mask of 255.255.255.248.0 indicate a Class B network. The subnet mask has a first non-255 number of 248, meaning that there are 5 bits used for the subnet portion of the address. This allows for a maximum of 32 (2^5) subnets to be created. The remaining 11 bits can be used for host addresses, allowing for a maximum of 2048 (2^11) hosts per subnet.
  • #1
naspek
181
0
Hey there..

Given a network IPv4 address of 166.48.13.50 and a subnet mask of 255.255.255.248.0

1)What is the network class?
i know it's class B after converting ip address to binary..

2)How many subnets are created?
i don't know what is the formula..

3)How many host are there per subnet?

For Question 2 & 3,
I've done the bitwise AND of address and mask which is;
10100110.00110000.00001101.00110000 = 166.48.13.48

i don't know which bits to take to answer question 2 & 3..

Please guide me..
 
Physics news on Phys.org
  • #2
Given a network IPv4 address of 166.48.13.50 and a subnet mask of 255.255.255.248.0

Can you confirm that the subnet mask is 255.255.248.0.

1)What is the network class?
i know it's class B after converting ip address to binary..

I believe you can also look at them in decimal and do the same.

Class A = Decimal 001 - 126 or Binary 0xxx xxxx
Class B = Decimal 128 - 191 or Binary 10xx xxxx
Class C = Decimal 192 - 223 or Binary 110x xxxx

2)How many subnets are created?
i don't know what is the formula..

You can notice from doing bitwise AND calculations that when one of the numbers is 255 (1111 1111) after the calculation you will always get the other number as your answer. For this reason, you really only need to look at the first non-255 number in the subnet mask.

In your example of 255.255.248.0 the first non-255 number is 248 or 1110 0000. In fact you will notice subnet mask's first non-255 number in general is always one of 128 (1000 0000), 192 (1100 0000), 224 (1110 0000), 240 (1111 0000), 248 (1111 1000), 252 (1111 1100) or 254 (1111 1110) [sometimes it is actually 255 (1111 1111)], and you should see a pattern in these numbers that helps you understand the purpose of subnet masks. i.e to split up a single large network into several smaller networks.

Each of these binary numbers shows you how many bits are used in the subnet, so for 128 you will see that 1 bit is used, and for 192 2 bit's are used (since there's 2 1's in the equivalent binary number) and for 224 there's 3 bit's used etc. When we get to 248 we see that there is 5 bits used, so how many binary combination's can you have with 5 bit's?

This will tell you the maximum number of allowable subnets.

3)How many host are there per subnet?

Since we have used 8 + 8 + 5 bits in the subnet mask (255.255.248.0 = 1111 1111.1111 1111.1111 1000.0000 0000) there is 3 + 8 = 11 bits left that we can use to describe the IP addresses for each host on each subnet. So how many binary combination's can you have with 11 bits?

This will tell you the maximum number of allowable hosts per subnet.
 

Related to Data Comm: IPv4 - Network Class, Subnets & Hosts

1. What is IPv4?

IPv4 stands for Internet Protocol version 4 and is a standard protocol used for communication over the internet. It is responsible for identifying and locating devices on a network through unique IP addresses.

2. What are network classes in IPv4?

Network classes in IPv4 refer to the division of IP addresses into different classes based on the number of bits used to identify the network and the host. There are five classes - A, B, C, D, and E - each with a different range of IP addresses.

3. How are subnets and hosts related in IPv4?

In IPv4, a subnet is a logical division of an IP network. It allows a single network to be divided into smaller networks, each with its own unique IP address range. Hosts are devices connected to a network, and the number of available hosts is determined by the subnet mask.

4. What is a subnet mask in IPv4?

A subnet mask is a 32-bit number that is used to divide an IP address into a network and host portion. It is represented in decimal format and is used to determine which part of an IP address is the network and which part is the host.

5. Why is IPv4 still used instead of IPv6?

IPv4 is still widely used because it is the most established and well-supported protocol for communication over the internet. However, with the increasing number of devices connecting to the internet, IPv4's limited address space has become a concern, leading to the development of IPv6, which has a significantly larger address space.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
3
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
655
  • Programming and Computer Science
Replies
1
Views
782
Replies
13
Views
1K
  • Programming and Computer Science
Replies
1
Views
777
  • Programming and Computer Science
Replies
20
Views
3K
  • Computing and Technology
Replies
4
Views
1K
Replies
16
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
8
Views
1K
  • Programming and Computer Science
Replies
1
Views
1K
Back
Top