Question

Q2.3. (15%) Suppose that the WFQ scheduling policy is applied to a buffer that supports three classes (of priority packets),

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a)

The WFQ (Weighted Fair Queuing) scheduling is a circular order a round roubin strategy in ascending order depends on weights.

Assume the three classes weights are 0.25, 0.5, and 0.75 respectively.

If same weight have for two or more classes then give highest order is the first preference class.

The sequence order that the three classes served is :1 2 1 3 1 2 1 3….

Another possible sequence order that the three class are: 1 1 2 1 1 3 1 1 2 1 1…

b)

Consider the classes 1 and 2 have a large number of packets in the buffer, and there are no class 3 packets in the buffer.

The sequence might the three classes be served in to achieve the WFQ weights are 1 1 2 1 1 2 1 1 2….

Another sequence sequence might the three classes be served in to achieve the WFQ weights are 1 1 3 1 1 3 1 1 …

or Another solution might be-

(a) Possibility 1: 1 1 2 3 1 1 2 3 1 1 2 3 … Possibility 2: 1 2 1 3 1 2 1 3 1 2 1 3 …

(b) The new value of weights for class 1 and class 2 has to satisfy: w1new = 2*w2new w1new = 2/3 w1new + w2new = 1 w2new = 1/3 Possible solution: 1 1 2 1 1 2 1 1 2

Add a comment
Know the answer?
Add Answer to:
Q2.3. (15%) Suppose that the WFQ scheduling policy is applied to a buffer that supports three cla...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A priority queue is a collection of items each having a priority. A priority queue supports three...

    A priority queue is a collection of items each having a priority. A priority queue supports three fundamental operations. You can ask a priority queue whether it is empty. You can insert an item into the priority queue with a given priority. You can remove the item from the priority queue that has the smallest priority. For example, suppose that you start with an empty priority queue and imagine performing the following steps. Insert item "one" with priority 10. Insert...

  • 1. Suppose you are working in an airline company. Customers check baggage with various sizes and...

    1. Suppose you are working in an airline company. Customers check baggage with various sizes and weights. Each piece of baggage has its own dimensions (length, width, height) as well as weight. You will write a Java program that allows the airline staff to input baggage dimensions and weight information. The computer will determine if the baggage is allowed to be checked in. If it is allowed, the system will then calculate the price based on the size and weight....

  • Question I This question carries 20% of the marks for this assignment. You are asked to...

    Question I This question carries 20% of the marks for this assignment. You are asked to develop a set of bash shell script: Write a script that asks for the user's salary per month. If it is less or equals to 800, print a message saying that you need to get another job to increase your income, what you earn is the Minim living cost. If the user's salary is higher than 800 and below 2000, print a message telling...

  • Project: Using Java API Classes Page 3 of 5 SpaceTicket.java Requirements: The purpose of this program is accept coded...

    Project: Using Java API Classes Page 3 of 5 SpaceTicket.java Requirements: The purpose of this program is accept coded space ticket information as input that includes the ticket price, category, time, date, and seat, followed by the description of the travel. Note that the eight digits for price have an implied decimal point. The program should then print the ticket information including the actual cost, which is the price with discount applied as appropriate: 25% for a student ticket (s),...

  • FISCAL POLICY IN THEORY: March, 2020: we are on the verge of Congress and the President...

    FISCAL POLICY IN THEORY: March, 2020: we are on the verge of Congress and the President passing legislation that will empower the federal government to spend an unprecedented amount of EXTRA money not seen since World War 2 ---- in order to address the pandemic but also to help cushion the blow financially of perhaps ten or twenty million Americans --- or more --- losing their jobs, and thus suffering a drop in income. The scale of the 2020 recession...

  • This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation...

    This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...

  • In Problem Set 7 you designed and implemented a Message class. This time, let's design and...

    In Problem Set 7 you designed and implemented a Message class. This time, let's design and implement a Mailbox class in a file named Mailbox java. Do the following with this class • You may use the Message class from PS 7. You will have to add new features to the Message class from PS 7 as you work through this problem. You are welcome to start with my sample solution if you wish • Suppose there are multiple mail...

  • please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun...

    please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun 28, 2019 at 11:59 PM Please read the article titled Evolution of Operations Planning and Control: from production to supply chains In at least three paragraphs, describe how and why the focus of operations planning and control has changed over time. While one might argue that answers consisting of sentences quoted from articles do not represent plagiarism, I do not consider them acceptable, and...

  • please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun...

    please read instructions on the first picture and follow it Discussion Board: Chapter 1 Due: Jun 28, 2019 at 11:59 PM Please read the article titled Evolution of Operations Planning and Control: from production to supply chains In at least three paragraphs, describe how and why the focus of operations planning and control has changed over time. While one might argue that answers consisting of sentences quoted from articles do not represent plagiarism, I do not consider them acceptable, and...

  • A retaining wall is to be constructed in a normally consolidated clayey sand deposit in the...

    A retaining wall is to be constructed in a normally consolidated clayey sand deposit in the figure below. Ground water table is lmbelow the bottom of the excavation. A 20 kN/m2 surcharge pressure is applied over a wide area at the ground surface. Assume the wall moves into the excavation. Consider long-tem analysis (as it is usually the more critical analysis in excavation problems). Ignore capillarity as shown 20 kPa Clayey sand T17 kNm Y-20 kNm 5 m c'-10 kPa...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT