1. Homepage
  2. Homework
  3. COMP9334 Capacity Planning of Computer Systems and Networks Assignment
This question has been solved

COMP9334 Capacity Planning of Computer Systems and Networks Assignment

Engage in a Conversation
UNSWCOMP9334Capacity Planning of Computer Systems and NetworksMarkov chain

COMP9334 Capacity Planning of Computer Systems and Networks
Assignment (Version 1.00), Term 1, 2024
CourseNana.COM

Due 5:00pm, Fri 15 March 2024 (Friday Week 5) CourseNana.COM

Instructions CourseNana.COM

  1. (1)  There are 3 questions in this assignment. Answer all questions. CourseNana.COM

  2. (2)  The total mark for this assignment is 20 marks. CourseNana.COM

  3. (3)  The submission deadline is 5:00pm Friday 15 March 2024. Submissions made after the deadline will incur a penalty of 5% per day. Late submissions will only be accepted until 5:00pm Wednesday 20 March 2024, after which no submissions will be accepted. CourseNana.COM

  4. (4)  In answering the questions, it is important for you to show your intermediate steps and state what arguments you have made to obtain the results. You need to note that both the intermediate steps and the arguments carry marks. Please note that we are not just interested in whether you can get the final numerical answer right, we are more inter- ested to find out whether you understand the subject matter. We do that by looking at your intermediate steps and the arguments that you have made to obtain the answer. Thus, if you can show us the perfect intermediate steps and the in-between arguments but get the numerical values wrong for some reason, we will still award you marks for having understood the subject matter. CourseNana.COM

    You can take a look at the solution to revision problems to get some ideas the level of explanation that is required. CourseNana.COM

  5. (5)  If you use any computer programs to perform any part of your work, you must submit these programs or you lose marks for the steps. CourseNana.COM

  1. (6)  This is an individual assignment. CourseNana.COM

  2. (7)  Your submission should consist of: CourseNana.COM

    1. (a)  A report describing the solution to the problems. This report can be typewritten or a scan of handwritten pages. This report must be in pdf format and must be named report.pdf. The submission system will only accept the name report.pdf. CourseNana.COM

    2. (b)  One or more computer programs if you use them to solve the problems numerically. You should use zip to archive all the computer programs into one file with the name supp.zip. The submission system will only accept this name. The report must refer to the programs so that we know which program is used for which part. CourseNana.COM

  3. (8)  Submission can be made via the course website. Your submission must not be more than 20 Mbytes in size; otherwise it will not be accepted. CourseNana.COM

  4. (9)  You can submit as many times as you wish before the deadline. A later submission will over-write the earlier one. We will only mark the last submission that you make. CourseNana.COM

  5. (10)  If you want to ask questions on the assignment, you can attend a consultation (see the Timetable section of the course website for dates and times) or post your question on the forum. Please note that if your forum post shows part of your solution or code, you must mark that forum post private. CourseNana.COM

  6. (11)  Additional assignment conditions: CourseNana.COM

    • Joint work is not permitted on this assignment. CourseNana.COM

      • –  This is an individual assignment. The work you submit must be entirely your own work: submission of work even partly written by any other person is not permitted. CourseNana.COM

      • –  Do not request help from anyone other than the teaching staff of COMP9344. CourseNana.COM

      • –  Do not post your assignment work or code to the course forum. CourseNana.COM

      • –  Assignment submissions are routinely examined both automatically and man- CourseNana.COM

        ually for work written by others. CourseNana.COM

        Rationale: this assignment is designed to develop the individual skills needed to solve problems. Using work/code written by, or taken from, other people will stop you learning these skills. Other CSE courses focus on skills needed for working in a team. CourseNana.COM

    • The use of generative AI tools, such as ChatGPT, is not permitted on this assign- ment. CourseNana.COM

      Rationale: this assignment is designed to develop your understanding of basic con- cepts. Using AI tools will stop you learning these fundamental concepts, which will significantly impact your ability to complete future courses. Moreover, ChatGPT has been found to give incorrect answers for advanced problems covered in this course. CourseNana.COM

    • Sharing, publishing, or distributing your assignment work is not permitted. CourseNana.COM

      Do not provide or show your assignment work to any other person, other than the teaching staff of COMP9334. For example, do not message your work to friends. CourseNana.COM

Do not publish your assignment code via the Internet. For example, do not place your assignment in a public GitHub repository. CourseNana.COM

Rationale: by publishing or sharing your work, you are facilitating other students using your work. If other students find your assignment work and submit part or all of it as their own work, you may become involved in an academic integrity investigation. CourseNana.COM

Sharing, publishing, or distributing your assignment work after the completion of COMP9334 is not permitted. CourseNana.COM

For example, do not place your assignment in a public GitHub repository after this offering of COMP9334 is over. CourseNana.COM

Rationale: COMP9334 may reuse assignment themes covering similar concepts and content. If students in future terms find your assignment work and submit part or all of it as their own work, you may become involved in an academic integrity investigation. CourseNana.COM

(12) You are allowed to use or modify the sample code provided by the lecturer for your work in this assignment. You should acknowledge that in your report. CourseNana.COM

Question 1 (6 marks) CourseNana.COM

Assuming that you are the administrator of an interactive computer system. The computer system consists of a 2-core CPU1 and a disk. During an observation time of 1800 seconds, you obtained the following measurements from the system: CourseNana.COM

Busy time of Core 1
Busy time of Core 2
Disk busy time
Number of requests completed by the computer system
CourseNana.COM

1015 s 1532 s 987 s 67 CourseNana.COM

This computer system is used by 19 interactive users and the thinking time per interactive user is 45 seconds. CourseNana.COM

Answer the following questions. CourseNana.COM

  1. (a)  Determine the average service demand of Core 1. CourseNana.COM

  2. (b)  Determine the throughput upper bound on this interactive computer system. CourseNana.COM

  3. (c)  From reading the measurements above, you realise that the utilisations of the 2 cores are very different. You want to make an attempt to balance the utilisations of the 2 cores. In the ideal scenario, what is the lowest throughput upper bound that you can get from balancing the utilisation of the 2 cores? CourseNana.COM

  4. (d)  Part (c) considers the ideal scenario. Discuss one practical difficulty that can prevent you from perfectly balancing the utilisations of the 2 cores. CourseNana.COM

Reminder: If you use a computer program to derive your numerical answers, you must include your computer program in your submission. Do not forget to show us your steps to obtain your answer. CourseNana.COM

1https://en.wikipedia.org/wiki/Multi-core_processor CourseNana.COM

Question 2 (6 marks) CourseNana.COM

A call centre has 2 trainees to deal with customer enquires. The centre has a dispatcher to direct the calls automatically to one of the trainees. The dispatcher does not contain any queueing facilities. At each trainee’s terminal, there is a facility to queue up to 3 calls. The queueing network at the call centre is depicted in Figure 1. CourseNana.COM

Trainee 1 CourseNana.COM

Arriving queries CourseNana.COM

Completed queries CourseNana.COM

Dispatcher CourseNana.COM

Trainee 2 CourseNana.COM

Figure 1: Depiction of the call centre. CourseNana.COM

The centre receives on average λ queries per hour. The arrivals can be modelled by using the Poisson distribution. CourseNana.COM

When a query arrives at the dispatcher, it will send the query to Trainee 1 with a prob- ability of p and to Trainee 2 with a probability of 1 p. Note that the dispatcher does not communicate with the trainee’s terminals, so it is possible that the dispatcher sends a query to a terminal that has a full queue. You can assume that the dispatcher takes a negligible time to perform its work and no queries will be dropped at the dispatcher. CourseNana.COM

Nominally, Trainee 1 can complete or service on average μ1 queries per hour. This service rate applies when the number of customers waiting in their queue is 2 or less. However, when there are 3 customers waiting in the queue, Trainee 1 feels the pressure of the full queue and their service rate slows down to ν1μ1 where ν1 < 1. Trainee 2 performs in exactly the same way except that their service rate is μ2 and their service rate when their queue is full is ν2μ2 where ν2 < 1. You can assume all the service times are exponentially distributed and independent of each other. CourseNana.COM

When a query arrives at a staff’s terminal, it will be answered straight away if the staff is not busy. Otherwise, the terminal will place the call in its queue if the queue is not full. If a call arrives when the queue is full, then the call is rejected. CourseNana.COM

Answer the following questions: CourseNana.COM

  1. (a)  Formulate a continuous-time Markov chain for the part of the call centre consisting of Trainee 1 and their 3 waiting slots, i.e. the part enclosed by the red dashed lines in Figure 1. Your formulation should include the definition of the states and the transition rates between states. The transition rates should be expressed in terms p, λ, μ1 and ν1. CourseNana.COM

  2. (b)  Write down the balance equations for the continuous-time Markov chain that you have formulated. CourseNana.COM

  3. (c)  Derive the expressions for the steady state probabilities of the continuous-time Markov chain that you have formulated. CourseNana.COM

  4. (d)  Assuming that p = 0.45, λ = 5.3 and μ1 = 3.9 and ν1 = 0.86, determine the probability that a call which is dispatched to Trainee 1 will be rejected. CourseNana.COM

  5. (e)  Assuming that p = 0.45, λ = 5.3, μ1 = 3.9, ν1 = 0.86, μ2 = 3.5 and ν2 = 0.8, determine the mean waiting time of the queries that have not been rejected by the call centre. Note that Part (d) considers only queries that have been dispatched to Trainee 1 but Part (e) considers the whole call centre. CourseNana.COM

Hint: CourseNana.COM

There is a mistake that some people may make regarding the calculation of the mean waiting time in Part (e). We will not tell you exactly what the mistake is but the following example of probability calculations will illustrate that. Let us assumed that you have two coins, which we will refer to as Coin 1 and Coin 2. Coin 1 is a fair coin and the mean number of heads you get is 0.5. Coin 2 is a biased coin and the mean number of heads you can get is 0.6. Let us say you do the following: CourseNana.COM

You randomly pick one of the two coins with the probabilities of picking Coins 1 and 2 being, respectively, 0.7 and 0.3. You toss the coin picked. You repeat this many times. CourseNana.COM

You want to calculate the mean number of heads that you will get. A wrong answer is 0.55. The correct answer should be 0.53. △△△ CourseNana.COM

Reminder: If you use a computer program to derive your numerical answers, you must include your computer program in your submission. Do not forget to show us your steps to obtain your answer. CourseNana.COM

Question 3 (8 marks) CourseNana.COM

This question considers a system with two processing units. There are two types of requests that can arrive at this system: CourseNana.COM

  • The Type 1 requests require only one processing unit. These requests arrive according CourseNana.COM

    to a Poisson distribution with a mean rate of λ1. These requests require a processing CourseNana.COM

    time which is exponentially distributed with a mean processing time of 1 . μ1 CourseNana.COM

  • Each Type 2 request requires two processing units simultaneously. By “simultane- ously”, we mean that a Type 2 request can only be admitted into the two processing units when both processing units are available. If admitted, both processing units will start to work on the admitted request at the same time and they will complete the request at the same time. CourseNana.COM

Type 2 requests arrive at the system according to a Poisson distribution with a mean rate of λ2. The above description says that a Type 2 request requires the same amount of processing time at each processing unit. The processing time required by a Type 2 request at each processing unit is exponentially distributed with a mean processing time of 1 . CourseNana.COM

μ2
The four inter-arrival and service time distributions are assumed to be independent. CourseNana.COM

The system has two queueing slots. One slot is reserved for Type 1 requests only and it has a capacity to hold exactly one Type 1 request. The other slot can only be used to hold Type 2 requests and it has a capacity to hold exactly one Type 2 request. CourseNana.COM

We first specify what happens when a request (either Type 1 or Type 2) departs the system upon its service completion. This departure can result in the availability of one or two processing units. We assume that the system gives a non-preemptive priority to the Type 1 request. The rules here are: CourseNana.COM

  • If the Type 1 queueing slot is empty and there is a request at the Type 2 queueing slot, then the Type 2 request is admitted to the processing units if both units are available; otherwise, the request remains in the Type 2 queueing slot. CourseNana.COM

  • If there is a request in the Type 1 queueing slot, then this request will be admitted into a newly available processing unit. CourseNana.COM

    Note that the second rule above covers the case when both Type 1 and Type 2 queueing slots have a request each. In that case, the request in Type 1 queueing slot will be admitted because the second rule above gives the priority to the Type 1 request. Note also that the Type 2 request in the queue will not be admitted because there will not be two processing units available; the Type 2 request will remain in the queue. CourseNana.COM

    Note that the above rules imply that: CourseNana.COM

  • If there is a Type 1 request is in the queue, then it is not possible to have any idle processing unit. CourseNana.COM

  • If there is a Type 2 request in the queue, then it is not possible to have two idle processing units. CourseNana.COM

It is possible to have an empty Type 1 queue, an occupied Type 2 queue and one idle processing unit. CourseNana.COM

We now describe what happens when a Type 1 request arrives. These are the possible scenarios: CourseNana.COM

If the Type 1 queueing slot is occupied, then this request is rejected. If the Type 1 queueing slot is not occupied, then: CourseNana.COM

If at least one processing unit is idle, then this request will be admitted to an idle processing unit and its processing will begin. CourseNana.COM

If both processing units are occupied, then this request will be admitted into the Type 1 queueing slot. CourseNana.COM

Finally, we describe what happens when a Type 2 request arrives. These are the possible scenarios: CourseNana.COM

If the Type 2 queueing slot is occupied, then this request is rejected. If the Type 2 queueing slot is not occupied, then: CourseNana.COM

If both processing units are idle, then this request will be admitted to both pro- cessing units and its processing will begin. CourseNana.COM

If at least one processing unit is occupied, then this request will be admitted into the Type 2 queueing slot. CourseNana.COM

We will now use an example to illustrate the operation of the system. CourseNana.COM

Figures 2 and 3 illustrate how the state of the system changes over time for a given sequence of arrivals and departures. The state of the system consists of the following attributes: CourseNana.COM

  • The status of the 2 processing units which are depicted as circles. There are 2 possible statuses for each processing unit: idle or busy. In Figures 2 and 3, a white circle is used to denote an idle processing unit while circles of other colours are used to denote busy processing units. CourseNana.COM

  • The status of the Type 1 and Type 2 queues. Each queue has 2 possible states: empty or occupied. CourseNana.COM

    We now go through each time point in Figure 2. CourseNana.COM

Status of the 2 processing units CourseNana.COM

Type 1 queue CourseNana.COM

Type 2 queue CourseNana.COM

Arrival of a request or departure of a completed request CourseNana.COM

Time CourseNana.COM

Arrival Req. 1 CourseNana.COM

Arrival Req. 2 CourseNana.COM

Arrival Req. 3 CourseNana.COM

Arrival Req. 4 CourseNana.COM

t4 CourseNana.COM

0 t1 t2 t3 CourseNana.COM

Figure 2: Example for Question 3 (Part 1)
At time 0, the system is assumed to have idle processing units and empty queues.
CourseNana.COM

At time t1, Request 1 (Red), which is of Type 1, arrives. Since both processing units are idle, the request goes to a processing unit. So one processing unit is busy (with the red request) and the other is idle. CourseNana.COM

At time t2, Request 2 (Orange), which is of Type 2, arrives. Since one processing unit is occupied and the Type 2 queue is empty, the request goes to Type 2 queue. CourseNana.COM

At time t3, Request 3 (Green), which is of Type 1, arrives. Since one processing unit is idle, this request goes to the idle processing unit. CourseNana.COM

At time t4, Request 4 (Black), which is of Type 1, arrives. Since both processing units are busy and the Type 1 queue is empty, this request goes to Type 1 queue. CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
UNSW代写,COMP9334代写,Capacity Planning of Computer Systems and Networks代写,Markov chain代写,UNSW代编,COMP9334代编,Capacity Planning of Computer Systems and Networks代编,Markov chain代编,UNSW代考,COMP9334代考,Capacity Planning of Computer Systems and Networks代考,Markov chain代考,UNSWhelp,COMP9334help,Capacity Planning of Computer Systems and Networkshelp,Markov chainhelp,UNSW作业代写,COMP9334作业代写,Capacity Planning of Computer Systems and Networks作业代写,Markov chain作业代写,UNSW编程代写,COMP9334编程代写,Capacity Planning of Computer Systems and Networks编程代写,Markov chain编程代写,UNSWprogramming help,COMP9334programming help,Capacity Planning of Computer Systems and Networksprogramming help,Markov chainprogramming help,UNSWassignment help,COMP9334assignment help,Capacity Planning of Computer Systems and Networksassignment help,Markov chainassignment help,UNSWsolution,COMP9334solution,Capacity Planning of Computer Systems and Networkssolution,Markov chainsolution,