# US 2003/0081552 A1 · Weighted fair queue having adjustable scaling factor

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2003/0081552 A1
- Document ID: US20030081552A1
- Status: Published application
- Kind: A1
- Application number: 10/015,760
- Filed: 2001-11-01
- Published: 2003-05-01
- Earliest claimed: 2001-11-01
- Assignees: International Business Machines Corporation
- Inventors: William John Goetzinger; Glen Howard Handlogten; James Francis Mikos; David Alan Norgaard
- Web page: https://patentgrep.com/patent/US20030081552A1

## CPC

- H04L 47/2441: relying on flow classification, e.g. using integrated services [IntServ]
- H04L 47/36: by determining packet size, e.g. maximum transfer unit [MTU]
- H04L 47/50: Queue scheduling
- H04L 47/623: {Weighted service order}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A scheduler for a network processor includes a scheduling queue in which weighted fair queuing is applied. The scheduling queue has a range R. Flows are attached to the scheduling queue at a distance D from a current pointer for the scheduling queue. The distance D is calculated for each flow according to the formula D=((WF×FS)/SF), where WF is a weighting factor applicable to a respective flow; FS is a frame size attributable to the respective flow; and SF is a scaling factor. The scaling factor SF is adjusted depending on a comparison of the distance D to the range R.

## Claims

### Claim 1

A scheduler for a network processor, the scheduler including a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
wherein the scaling factor SF is adjusted depending on a result of comparing the distance D to the range R.

### Claim 2 (depends on 1)

The scheduler of claim 1, wherein SF is increased if D>R.

### Claim 3 (depends on 2)

The scheduler of claim 2, wherein SF is increased if D exceeds R in regard to a predetermined number of calculations of D.

### Claim 4 (depends on 2)

The scheduler of claim 2, wherein SF is decreased if D<R/2.

### Claim 5 (depends on 4)

The scheduler of claim 4, wherein SF is decreased if D is less than one-half R in regard to a predetermined number of calculations of D.

### Claim 6 (depends on 1)

The scheduler of claim 1, wherein SF=2n, n being a positive integer.

### Claim 7 (depends on 6)

A scheduler of claim 6, wherein n is incremented to adjust SF.

### Claim 8 (depends on 6)

The scheduler of claim 6, wherein n is decremented to adjust SF.

### Claim 9

A method of managing a scheduling queue in a scheduler for a network processor, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the method comprising:
calculating the distance D with respect to a particular flow to be enqueued;
comparing the distance D to the range R; and
adjusting the scaling factor SF based on a result of the comparing step.

### Claim 10 (depends on 9)

The method of claim 9, wherein the scaling factor SF is increased if the comparing step determines that D>R.

### Claim 11 (depends on 9)

The method of claim 9, wherein the scaling factor SF is decreased if the comparing step determines that D<R/2.

### Claim 12 (depends on 9)

The method of claim 9, wherein SF=2n, n being a positive integer, and the adjusting step includes incrementing or decrementing n.

### Claim 13

A method of managing a scheduling queue in a scheduler for a network processor, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the method comprising:
calculating the distance D with respect to a particular flow to be enqueued;
comparing the distance D to the range R;
incrementing a counter if the comparing step determines that D>R; and
increasing SF if the incremented counter exceeds a threshold.

### Claim 14 (depends on 13)

The method of claim 13, wherein SF=2n, n being a positive integer, and the increasing step includes incrementing n.

### Claim 15

A method of managing a scheduling queue in a scheduler for a network processor, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the method comprising:
calculating the distance D with respect to a particular flow to be enqueued;
comparing the distance D to the range R;
incrementing a counter if the comparing step determines that D<R/2; and
decreasing SF if the incremented counter exceeds a threshold.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
clearing the counter if the comparing step determines that D>R/2.

### Claim 17 (depends on 15)

The method of claim 15, wherein SF=2n, n being a positive integer, and the decreasing step includes decrementing n.

### Claim 18

A method of managing a scheduling queue in a scheduler for a network processor, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the method comprising:
calculating the distance D with respect to a particular flow to be enqueued;
comparing the distance D to the range R;
incrementing a first counter if the comparing step determines that D>R;
increasing SF if the incremented first counter exceeds a first threshold;
incrementing a second counter if the comparing step determines that D<R/2; and
decreasing SF if the incremented second counter exceeds a second threshold.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
clearing the second counter if the comparing step determines that D>R/2.

### Claim 20 (depends on 18)

The method of claim 18, wherein SF=2n, n being a positive integer, the increasing step includes incrementing n, and the decreasing step includes decrementing n.

### Claim 21

A method of managing a scheduling queue in a scheduler for a network processor, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the method comprising:
calculating the distance D with respect to a particular flow to be enqueued;
comparing the distance D to the range R; and
increasing SF if the distance D exceeds the range R.

### Claim 22

A method of managing a scheduling queue in a scheduler for a network processor, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the method comprising:
calculating the distance D with respect to a particular flow to be enqueued;
comparing the distance D to the range R;
increasing SF if the distance D exceeds the range R;
incrementing a counter if the comparing step determines that D<R/2; and
decreasing SF if the incremented counter exceeds a threshold.

### Claim 23

A scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
wherein the scheduler is adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increment a counter if the comparison of the distance D to the range R determines that D>R; and
increase SF if the incremented counter exceeds a threshold.

### Claim 24

A scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
wherein the scheduler is adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increment a counter if the comparison of the distance D to the range R determines that D<R/2; and
decrease SF if the incremented counter exceeds a threshold.

### Claim 25

A scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
wherein the scheduler is adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increment a first counter if the comparison of the distance D to the range R determines that D>R;
increase SF if the incremented first counter exceeds a first threshold;
increment a second counter if the comparison of the distance D to the range R determines that D<R/2; and
decrease SF if the incremented second counter exceeds a second threshold.

### Claim 26

A scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
wherein the scheduler is adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R; and
increase SF if the distance D exceeds the range R.

### Claim 27

A scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
wherein the scheduler is adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increase SF if the distance D exceeds the range R;
increment a counter if the comparison of the distance D to the range R determines that D<R/2; and
decrease SF if the incremented counter exceeds a threshold.

### Claim 28

A computer program product for use with a scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the computer program product comprising:
a medium readable by a computer, the computer readable medium having computer program code adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increment a counter if the comparison of the distance D to the range R determines that D>R; and
increase SF if the incremented counter exceeds a threshold.

### Claim 29

A computer program product for use with a scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R. flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the computer program product comprising:
a medium readable by a computer, the computer readable medium having computer program code adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increment a counter if the comparison of the distance D to the range R determines that D<R/2; and
decrease SF if the incremented counter exceeds a threshold.

### Claim 30

A computer program product for use with a scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the computer program product comprising:
a medium readable by a computer, the computer readable medium having computer program code adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increment a first counter if the comparison of the distance D to the range R determines that D>R;
increase SF if the incremented first counter exceeds a first threshold;
increment a second counter if the comparison of the distance D to the range R determines that D<R/2; and
decrease SF if the incremented second counter exceeds a second threshold.

### Claim 31

A computer program product for use with a scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the computer program product comprising:
a medium readable by a computer, the computer readable medium having computer program code adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R; and
increase SF if the distance D exceeds the range R.

### Claim 32

A computer program product for use with a scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the computer program product comprising:
a medium readable by a computer, the computer readable medium having computer program code adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R;
increase SF if the distance D exceeds the range R;
increment a counter if the comparison of the distance D to the range R determines that D<R/2; and
decrease SF if the incremented counter exceeds a threshold.

### Claim 33

A computer program product for use with a scheduler for a network processor, the scheduler including:
a scheduling queue in which weighted fair queuing is applied, the scheduling queue having a range R, flows being attached to the scheduling queue at a distance D from a current pointer for the scheduling queue, the distance D being calculated for each flow according to the formula D=((WF×FS)/SF), where:
WF is a weighting factor applicable to a respective flow;
FS is a frame size attributable to the respective flow; and
SF is a scaling factor;
the computer program product comprising:
a medium readable by a computer, the computer readable medium having computer program code adapted to:
calculate the distance D with respect to a particular flow to be enqueued;
compare the distance D to the range R; and
adjust the scaling factor SF based on a result of the comparison of the distance D to the range R.
