Determine to which caches requests urls will be directed

Assignment Help Basic Computer Science
Reference no: EM13948427

Suppose an institution has four caches, referred to as cache-0, cache-1, cache-2 and cache-3. Suppose that the URL hashing scheme operates as follows:

(1) only the host name of the URL is used.

(2) all non-alphabetic characters are ignored.

(3) each alphabetic character is assigned a number corresponding to its position in the alphabet.

(4) these numbers are added modulo 4 to get the hash value of the URL.

(5) if the hash value is 0, the request is directed to cache-0; if 1, the request is directed to cache-1; if 2, the request is directed to cache-2; if 3, the request is directed to cache-3.

For example, the URL https://aaa.bbb.com has hash value 1 + 1 + 1 + 2 + 2 + 2 + 3 +15 + 13(modulo 4) = 0; a request for this URL is sent to cache-0.

[a] Determine to which caches requests for each of the following URLs will be directed:
www.ohecampus.com; www.liv.ac.uk; www.eurecom.uk; www.tiet.ac.in; www.w3c.net; www.embanet.com

[b] Suppose the institutional caches are initially empty. During the first morning of operation, the requests from users at the institution include https://www.ohecampus.com/admissions/index.phtml, https://www.ohecampus.com/programmes/msc.phtml, https://www.ohecampus.com/finance/loanscholarship.phtml, https://www.ohecampus.com/about/brochure.phtml. During the afternoon of the same day, there are seven requests to each of these URLs. Which servers (origin and cache servers) will satisfy these 32 requests?

[c] Suppose now on the second day of operation a fifth cache is added, cache-4 and the algorithm in the browsers is changed to calculate the hash value using modulo 5 rather than modulo 4. Suppose now requests are made for the same six URLs listed in Part a of this problem. What will happen?

Reference no: EM13948427

Questions Cloud

The use of the term racism : The Use of the Term Racism Words are the primary weapons on the battlefield of ideas.  This notion, central to Marxist conflict theory, is illustrated by the various ways of using the concept racism.
The initial members of a car sharing organization : The profitability of a car share organization is a function of its size. The minimum size needed to cover administrative costs, as determined through research on other projects, is approximately 43 vehicles and 480 members. As the pilot project is..
What is the pooled variance for these two groups : The student wishes to test the null hypothesis is that there is no difference in A1C levels (the alternative hypothesis that there is a difference in A1C levels between the 2 groups). What is the critical t value for a t test that is testing the d..
Plot the van der pol equation : Plot the Van der Pol equation from the initial point (x(0),y(0))= (0.5,0.5) for the following values of µ. Take dt =0.01 and t from 0 to 1500
Determine to which caches requests urls will be directed : Determine to which caches requests for each of the following URLs will be directed
Sensitive to initial conditions : In each of the following let x(0)= 0.01, x(0)= 0.0105 and t from 0 to 50. (i) Show that x(t + 1)= 2.5x(t)(1 - x(t)) is not sensitive to initial conditions.
Debt-income ratio constant : 1. A country is growing at 3% and has a debt/GDP ratio of 50%. Assuming  no   money   nancing,   what   is   the   primary   budget de cit/surplus that keeps the debt/income ratio constant when (i) The real interest rate is 2%?
Which of the following is an element of compassion : Summarizing the worksheets provided in the text and identifying gaps that exist between the present self and the future self is called what? According to Meng, which of the following is an element of compassion
Value congruence in a cross cultural context : Value congruence in a cross cultural context - Support in reviewing Report of result and Analysis to ensure the numbers that are reported in the correct academic way

Reviews

Write a Review

Basic Computer Science Questions & Answers

  More registers appears to be a good thing

More registers appears to be a good thing, in terms of reducing the total number of memory accesses a program might require. Using the arithmetic expression S = (A+B)-(C+D)

  Modify the addressing properties of workstations

Is ther a way you could modify the addressing properties of the workstations at each small office remotely, without having to visit those offices? Why or Why not?

  Exploited both network and host vulnerabilities

Several computers in your company have recently been compromised. It was discovered that your company network had been under attack for several months. However, these attacks had not been previously detected. The attackers exploited both networ..

  Describe the disadvantages of any solution employed

ABC Institute of Research has sensitive information that needs to be protected from its rivals. The Institute has collaborated with XYZ Inc. to research genetics. The information must be kept top secret at any cost.

  Input controls

Explain the function of input controls.Identify four (4) types of input control and explain the function of each.

  Determine the frequency of failure

Collect Experimental Data. Bend the provided 30 paper clips until they fail.

  Explain with a graph how sml is different from cml

Explain with a graph how SML is different from CML. Why CAPM equation might be more relevant than other equations when calculating required rate of return. (1000 words)

  Explain reasoning and support it with estimated calculations

What can you speculate regarding the time required to perform the transfer in each scenario?

  Explain standards and impact of organizations like oasis

describe the differences in these standards and impact of organizations like OASIS as a growing factor in worldwide standards setting

  Make it on platform research on hypervisors

Assignment is done already but the proposal is for a hypervisor - ie: Hyper-V, VMWare, FreeBSD Jail, etc... Which has been done but there is no supporting evidence for that platform.

  Create a pseudocode

Create a pseudocode using if instruction containing a compound condition that will satisfy the following:

  Procedural considerations

The processes and procedural considerations the organization would/will need to understand to mitigate your key points?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd