In a block of addresses we know the IP address of one host is Roll no. Roll no. Roll no. Roll no./20.What is the first address and the last address of this block? Find the number of addresses in the block?
Hint: if your roll no is 33 then your ip address will look like this: 33.33.33.33/20

Answers

Answer 1

Answer:

If there’s one topic that trips people up (both new and experienced) in the networking industry, it is that of Subnetting.

One of the reasons this happens is that one has to perform (mental) calculations in decimal and also binary. Another reason is that many people have not had enough practice with subnetting.

In this article, we will discuss what Subnetting is, why it came about, its usefulness, and how to do subnetting the proper way. To make this article as practical as possible, we will go through many examples.

Note: While subnetting applies to both IPv4 and IPv6, this article will only focus on IPv4. The same concepts explained here can be applied to IPv6. Moreover, subnetting in IPv6 is more of a want rather than a necessity because of the large address space.

IP address network

For example, any traffic with a destination IP address of 192.168.1.101 will be delivered to PC1, while traffic addressed to 192.168.1.250 will be delivered to SERVER.

Note: This is an oversimplification of things just for understanding sake and refers to Unicast (one-to-one) IPv4 addresses. Traffic sent to Multicast (one-to-many) and Broadcast (one-to-all) IP addresses can be delivered to multiple devices. Also, features like Network Address Translation (NAT) allow one IP address to be shared by multiple devices.

To help your understanding of IP addresses and subnetting, you need to resolve the following fact in your head: Computers think in binary, that is, 0s and 1s. Therefore, even though we see an IP address represented like 192.168.1.250, it is actually just a string of bits – 32 bits in total for IPv4 addresses.

To make them more readable for humans, IPv4 addresses are represented in dotted decimal notation where the 32 bits are divided into 4 blocks of 8 bits (also known as an octet), and each block is converted to a decimal number.

For example, 01110100 in binary is 116 in decimal:

A unicast IPv4 address such as 192.168.1.250 can be divided into two parts: Network portion and Host ID. So what does this mean? Well, IPv4 addresses were originally designed based on classes: Class A to Class E. Multicast addresses are assigned from the Class D range while Class E is reserved for experimental use, leaving us with Class A to C:

Class A: Uses the first 8 bits for the Network portion leaving 24 bits for host IDs. The leftmost bit is set to “0”.

Class B: Uses the first 16 bits for the Network portion leaving 16 bits for host IDs. The two leftmost bits are set to “10”.

Class C: Uses the first 24 bits for the Network portion leaving 8 bits for host IDs. The three leftmost bits are set to “110”.

Note: The range of Class A is actually 1-126 because 0.x.x.x and 127.x.x.x are reserved.

With these classes, a computer/device can look at the first three bits of any IP address and determine what class it belongs to. For example, the 192.168.1.250 IP address clearly falls into the Class C range.

Looking at the Host ID portion of the classes, we can determine how many hosts (or number of individual IP addresses) a network in each class will support. For example, a Class C network will ideally support up to 256 host IDs i.e. from 00000000 (decimal 0) to 11111111 (decimal 255). However, two of these addresses cannot be assigned to hosts because the first (all 0s) represents the network address while the last (all 1s) represents the broadcast address. This leaves us with 254 host IDs. A simple formula to calculate the number of hosts supported

Explanation: Final answer is Start address: 192.168.58.0 + 1 = 192.168.58.1

End address: 192.168.58.16 – 2 = 192.168.58.14

Broadcast address: 192.168.58.16 – 1 = 192.168.58.15


Related Questions

Implement the ArrayMethod application containing an array that stores eight integers. The application should call the following five methods: 1. display - should display all the integers 2. displayReverse - should display all the integers in reverse order 3. displaySum - should display the sum of the integers 4. displayLessThan - should display all values less than a limiting argument 5. displayHigherThanAverage - should display all values that are higher than the calculated average value.

Answers

Answer:

public static void display(int [] arr){

   System.out.print("Arrays: ");

       for(int i =0;i<arr.length;i++){

           System.out.print(arr[i]+" ");

       }

       System.out.println();

   }

   

public static void displayReverse (int [] arr){

   System.out.print("Arrays in reverse order: ");

       for(int i=arr.length-1;i>=0;i--){

           System.out.print(arr[i]+" ");

       }

       System.out.println();

   }

   

public static int displaySum (int [] arr){

   System.out.print("Sum: ");

   int sum = 0;

       for(int i =0;i<arr.length;i++){

           sum+=arr[i];

       }

       return sum;

   }

   

public static void displayLessThan (int [] arr, int num){

       System.out.print("Less than "+num+": ");

       for(int i =0;i<arr.length;i++){

           if(arr[i]<num){

               System.out.print(arr[i]+" ");

           }

       }

       System.out.println();

   }

public static void displayHigherThanAverage  (int [] arr){

       System.out.print("Higher than average: ");

       int sum = 0;

       for(int i =0;i<arr.length;i++){

           sum+=arr[i];

       }

       float average = sum/arr.length;

       for(int i =0;i<arr.length;i++){

           if(arr[i]>average){

               System.out.print(arr[i]+" ");

           }

       }

       System.out.println();

   }

Explanation:

The methods were written in Java. See attachment for explanation where I used comments to explain each lines.

Note that lines that begin with double slash (//) are comments

Other Questions
What is another term for the responding variable?O primary variabledependent variableindependent variableuncontrolled variableThe answer is DEPENDENT VARIABLE -edgy 2021 Lea con atencin el siguiente prrafo, fjese en el nmero que corresponde a cada una de las oraciones y luego responda la pregunta que aparece a continuacin. (1) Estas reuniones del condominio siempre son lo mismo. (2) Nunca llegan a nada. (3) Las horas se hacen eternas. (4) Los del 501 y los del 402 no paran de hablar. (5) Quin escoger los temas? (6) Estar callado todo el tiempo. (7) Expresar mi posicin otro da a los que me lo soliciten. (8) Por ahora, solo quiero verme el partido de la Mechita. De las siguientes opciones, cul es una oracin compuesta subordinada? Seleccione una: a. 1. b. 7. c. 8. d. 4. Parallelograms dont understand How do you conjugate "Nunca" and "A veces" in spanish? PLEASE ANSWER I WILL GIVE BRAINLIEST AND LOVE U FOREVER! If you are given 4.38g of a metal and this is reacted with air to produce a metal oxide weighing 5.18g. What is the Metal? What is the main conflict in the story killer instinct? The first quartile of a data set is 31, and the third quartile is 47. Which of these values in the data set is an outlier?A) 8B) 28C) 63D) 73 If 9x + 10=y what is y?? Which of the following is TRUE about Earths core? Select all that apply. *It is made of iron and nickel.It creates electric currents as the planet spins.It is Earths center.It does not rotate.It does not play a role in creating Earths magnetic fields. Which ordered pairs are solution(s) of y > 4x - 9? Select all that apply A (-1,3) B. (0, -9) C. (1.0) D. (2, 1) Learning about the world religions: Buddhism i need your helpppp pleaseeee what the answer to those two or do u guys know where I can find all the answers Why did Christians and Muslims fight for the Holy of Palestine? how shakespeare presents guilt in the play as a whole In the diagram below, what is the approximate length of the minor arc AB?A. 28.8 cm6030 cmB. 62.8 cmc.C. 15.7 cmD. 31.4 cm NEED HELP PLSSSSSS HELP MEEE Does anyone know the answer to this? If you do please answer! How did WW2 change the world? How could plants living in an industrial area be affected by smog? The measure of angle R is 3 degrees less than twice the measure of angle S. If the sum of the measures of the two angles is 72 degrees, find the measure of each angle.