Question

In: Computer Science

Given a network of Class B, how many bits should be borrowed from the HostID in...

Given a network of Class B, how many bits should be borrowed from the HostID in order to build 100 subnets with 200 host in each one of them?

Hint: this question have multiple answers, write all the possible answers and necessary calculation steps and explanation.

Solutions

Expert Solution

IP Address:

An IP address is an identifier or label used to identify a machine on the internet or a particular network. Each of the devices on the internet must have an IP address for identification.

IPv4 is the first version of Internet Protocol that uses a 32-bit address and this protocol is most widely used.

The netmask and subnet mask is used to divide the IP address as given below:

The netmask is a sequence of '1' followed by a sequence of '0' and it is used to divide an IP address into multiple subnets.

The subnet mask is a sequence of '1' followed by a sequence of '0' and it is used to separate a big network into smaller multiple networks.

Class B:

First octet range: 128 to 191

Subnet mask = 255.255.0.0

In class B network, the first 16 bits are used for the network id and the last 16 bits are used for the host id.

In order to build 100 subnets, we need at least 7 bits because by using the 6 bits, we can create 26 = 64 subnet but by using 7 bits, we can create 27 = 128 subnet.

For 200 hosts, we need at least 8 bits because by using the 7 bits, we can create 27 -2 = 126 host addresses but by using 8 bits, we can create 28 -2 = 256 - 2 = 254 host addresses.

The first and the last address in each of the subnet is used for a special purpose. So, both of these addresses can't be assigned to the host.

We need to borrow 7 + 8 = 15 bits for the given requirement.

So, we have to options to borrow the host bits:

  • the first 7 bits for subnetting and the remaining 9 bits for host addresses
  • the first 8 bits for subnetting and the remaining 8 bits for host addresses

Related Solutions

For a netmask of 255.255.128.0, tell a) how many bits are defined for network number portion...
For a netmask of 255.255.128.0, tell a) how many bits are defined for network number portion b) how many bits are defined for host number portion. (Be sure not to include any spaces in your answers. Just indicate the number for each answer.)
Write two classes Class A and Class B in class A you should read from the...
Write two classes Class A and Class B in class A you should read from the keyboard a number and you should call a public method of the class B that will print on the screen whether the number that was read from the keyboard in class A is multiple of 7 and has the last digit 5.
Consider a Class B network 180.60.0.0, subdivide this network into 4 subnets, and find A IP...
Consider a Class B network 180.60.0.0, subdivide this network into 4 subnets, and find A IP address on each Subnet B Subnet Mask for each Subnet C Broadcast address for each Subnet. D Maximum possible number of hosts in the whole network
Suppose a block cipher uses m-to-m bits S-boxes. How many bits are required to store the...
Suppose a block cipher uses m-to-m bits S-boxes. How many bits are required to store the look-up table of k different such m-to-m bits S-boxes? Give a formula in terms of k and m. Hint: A look-up table for one DES S-box requires 256 bits of storage.
In UART protocol, how many bits are NECESSARILY added into a data package for the interfacing...
In UART protocol, how many bits are NECESSARILY added into a data package for the interfacing to be successful? What is the function of those bits?
How many bits are required to address the program memory of PIC16F887? What is PCLATH? For...
How many bits are required to address the program memory of PIC16F887? What is PCLATH? For PC absolute addressing, describe how to write assembly program to jump to code located in a different program memory page.
How many bits are required to represent all the elements currently in the Periodic Table?
How many bits are required to represent all the elements currently in the Periodic Table?
1. (a) How many integers from 197 to 603 are divisible by 4? (b) How many...
1. (a) How many integers from 197 to 603 are divisible by 4? (b) How many integers from 97 to 995 are divisible by 6? (c) If the largest of 87 consecutive integers is 255 then what is the smallest? 2. Compute the following: (a)9! (b)P(15,8) (c)8! (d)P(3,6)
Consider sending a large file of F bits from Host A to Host B. There are...
Consider sending a large file of F bits from Host A to Host B. There are three links (and two switches) between A and B, and the links are uncongested (that is, no queuing delays). Host A segments the file into segments of S bits each and adds 80 bits of header to each segment, forming packets of L=80+ S bits. Each link has a transmission rate of R bps. Find the value of S that minimizes the delay of...
Consider sending a large file of F bits from Host A to Host B. There are...
Consider sending a large file of F bits from Host A to Host B. There are three links (and two switches) between A and B, and the links are uncongested (that is, no queuing delays). Host A segments the file into segments of S bits each and adds 80 bits of header to each segment, forming packets of L=80+ S bits. Each link has a transmission rate of R bps. The link propagation delay, let's call it d, was not...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT