Use sum of power of 2, AND method to find the first address in a block, find the number of address in a block and find the final address in the block using calculation in base 256, Mark remaider methods. Show calculation.

To answer all these 3 questions we follow below steps :-
1. Represent IP address as 32 bit binary number.
2. Number of unmasked bit will be 32 minus number of masked bit.
3. The first address of Ip Address can be obtained by performing AND operation with masked bits will be 1 and unmasked bit will be zero. The result will be first IP address which is also called as network address.
4. Last IP address can be obtained by performing OR operation with all masked bit as 0 and unmasked bit as 1.
5. Number of IP addresses = 2n where n is number of unmasked bits. Out of 2n address the first address is network address and last address is broadcast address and hence these two addresses are not assigned to any host.
13. The address 100.8.16.0 in binary is
0110 0100. 0000 1000. 0001 0000. 0000 0000
Number of unmasked bits = 32-19 = 13
Number of address in this block = 213 = 8192 out of which only 8190 will be available for use.
First address I.e. network address can be obtained by performing AND operation with masked bit as 1 and unmasked bit as 0. So applying AND operation of above address with
1111 1111. 1111 1111. 1110 0000. 0000 0000
The result of AND operation is
0110 0100. 0000 1000. 0000 0000. 0000 0000
And hence converting to decimal the first address is
100.8.0.0
Last address can be obtained by performing OR operation with masked bit as 0 and unmasked bit as 1. So performing OR operation of above address with
0000 0000. 0000 0000. 0001 1111. 1111 1111
We get
0110 0100. 0000 0100. 1111 1111. 1111 1111
Which in decimal is 100.8. 255.255.
14. Doing the same thing here, the address 168.84.64.0 in binary is
1010 1000. 0101 0100. 0100 0000. 0000 0000
To get first address with have to perform AND operation with
1111 1111. 1111 1111. 1100 0000. 0000 0000
We get
1010 1000. 0101 0100. 0100 0000. 0000 0000
So the first address in decimal representation is 168.84.64.0
And to get last address we have to perform OR with
0000 0000. 0000 0000. 0011 1111. 1111 1111
This gives
1010 1000. 0101 0100. 0111 1111. 1111 1111
Which in decimal is
168.84. 127. 255
And number of addresses is 232-18 = 214 = 16384
15. Here number of unmasked bit is 32-20= 12
Number of addresses = 212 = 4096
Representing 4.98.64.0 in 32 bit binary is
0000 0100. 0110 0010. 0100 0000. 0000 0000
To get first address, we perform AND with
1111 1111. 1111 1111. 1111 0000. 0000 0000
Which gives 0000 0100. 0110 0010. 0100 0000. 0000 0000
Which in decimal is 4.98.64.0
To get last address we perform OR with
0000 0000. 0000 0000. 0000 1111. 1111 1111
Which gives
0000 0100. 0110 0010. 0100 1111. 1111 1111
Which in decimal representation is
4.68.79.255
Please comment for anu clarifcation.
Use sum of power of 2, AND method to find the first address in a block,...
Telecom networks and security Use sum of powers of 2, AND methods to find the first network address in a block, find the number of addreses in a block and find the last address in the block using calculation in base 256, mask remainder methods. Show calculations. 1) 4.98.64.0/20 2) 205.16.37.32/28 3) 190.16.42.44/20 4)123.45.24.52/3
A primary memory system consists of 128 address bits. Each block within the cache is 256 bytes. The total cache size is 131,072 bytes. What are the sizes of the tag and index in the cache? First, find the number of blocks. 128,000 bytes # Blocks = 256 bytes per block bort = 512 blocks Where does the 128,000 come from?? Now find the number of bits required to distinguish all the blocks. This is the index aka set size....
5. Use the assignment method (i.e., Hungarian method) to
obtain a plan that will minimize the processing costs in the
following table under the following condition (provide also the
total cost of the plan):
The combination 4-A is undesirable. (15 points)
WORKER ABCDE
1 14 18
2 14 15 Job 3 12 16 4 11 13 5 10 16
20 17 18 19 16 17 15 14 17 14 12 14 15 14 13
5. Use the assignment method...
g-2 is a primitive root modulo 19. Use the following table to assist you in the solution of the first two questions and 4(a). The most efficient solutions involve the use of the table and the application of theory; numerically correct solutions involving long computations will not receive full credit t1 2 3 4 567 89 10 11 12 13 14 151617 18 g 2 481613714918 17 15 11 36125101 Question 1. (a) Find the least positive residue of 126...
Use the telescoping series method to find the sum 4 n+2 n + 3 The sum of the series is 2 (Type an exact answer, using radicals as needed.)
Statistics Macro Assignment
Write a macro to find the number of observations, max, min, sum,
average and standard deviation for a column of numbers with any
number of observations starting in cell A1 and proceeding downward.
The number set will be of any length and include negative, zero,
and positive integers. Display the results as shown below. Use the
numbers below as an example.
You may use the key board code “Selection.End(xlDown).Select” if
you wish. Otherwise, use only VBA code...
15. Use integrability of power series to find the sum n=1 in the form of an elementary function within the radius of convergence of S(a)
15. Use integrability of power series to find the sum n=1 in the form of an elementary function within the radius of convergence of S(a)
Use a loop to find the sum of
all numbers between 0 and #mystery_int, including bounds (meaning
that if #mystery_int = 7, you add 0 + 1 + 2 + 3 + 4 + 5 + 6 +
7).
However, there's a twist: mystery_int might be negative.
#So, if mystery_int was -4, you would -4 + -3 + -2 + -1 + 0.
Coding Problem 3.3.3 (External resource) 3.0 points possible) SumLoop.py 1 mystery_int -3 loop to find the sum...
Find a set of linearly independent eigenvectors for the given
matrices.
Use the power method to locate the dominant eigenvalue
and a corresponding eigenvector for the given matrices. Stop after
five iterations.
13. 0 1 0 0 0 10 00 0 1 14 6 4 「10 001 121 11 15。 112 21 1112 1. 23 . 「3 00 7. 12 26 6 4 2 35
First, review your C language data types Learn how to use the strtok() function in C language. There are plenty of examples on the Internet. Use this function to parse both an example IP address, eg. 192.168.1.15, into four different strings. Next use the atoi() function to convert these into four unsigned char's. (Hint: you will need to typecast, eg unsigned char X-(unsigned char)atoi("234"); Now, if you view a 32 bit number in base 256, the right most column would...