SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
James F. Kurose, Keith W. Ross
Chapter:
Multimedia Networking
Exercise:
Problems
Question:17 | ISBN:9780132856201 | Edition: 6

Question

Suppose that the WFQ scheduling policy is applied to a buffer that supports three classes, and suppose the weights are 0.5, 0.25, and 0.25 for the three classes.

a. Suppose that each class has a large number of packets in the buffer. In what sequence might the three classes be served in order to achieve the WFQ weights? (For round robin scheduling, a natural sequence is 123123123 . . .).

b. Suppose that classes 1 and 2 have a large number of packets in the buffer, and there are no class 3 packets in the buffer. In what sequence might the three classes be served in to achieve the WFQ weights?

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

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.5, 0.25, and 0.25 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 …

0 0

Discussions

Post the discussion to improve the above solution.