IP Library › Granted Patent US 6,944,256
Granted Patent B2
US 6,944,256 · App. 10/830,822 · Granted Sep 13, 2005

Optimizing use of statistics counters

Assignee: Alcatel IP Networks, Inc.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 6,944,256
App. No.
10/830,822
Granted
Sep 13, 2005
Kind
B2
Abstract

Optimizing statistics counter use is disclosed. A total number of counter bits to be used to track two or more statistics is determined. The total number of counter bits is allocated among the two or more statistics to provide for each statistic a counter comprising the number of bits allocated for that statistic, the allocation being such that each counter overflows at a rate desired for that counter. The overflow rates may be balanced, such that each counter overflows at approximately the same rate.

Claims (27)

1. A method for optimizing use of statistics counters comprising:

determining a total number of counter bits to be used to track two or more statistics; and

allocating the total number of counter bits among the two or more statistics to provide for each statistic a counter comprising the number of bits allocated for that statistic, the allocation being such that each counter overflows at a rate desired for that counter.

2. The method of claim 1 wherein determining a total number of counter bits to be used comprises determining the size of a standard-sized statistic counter and determining how many standard-sized statistics counters will be used to track said two or more statistics.

3. The method of claim 1 wherein allocating the total number of counter bits comprises balancing the respective overflow periods of the counters, such that each overflows in about the same period as the others.

4. The method of claim 3 wherein said two or more statistics comprise a first statistic expected to be incremented at a first rate and a second statistic expected to be incremented at a second rate that is faster than the first rate and balancing the respective overflow periods comprises allocating to the counter for the second statistic a number of bits that is k bits larger than a number of bits allocated to the counter for the first statistic, where k is equal to the integer nearest to log 2 (second rate/first rate).

5. The method of claim 3 wherein said two or more statistics comprise a first statistic expected to be incremented at a first rate and a second statistic expected to be incremented at a second rate that is faster than the first rate and balancing the respective overflow periods comprises allocating to the counter for the second statistic, from the total number of counter bits “t” to be used, a number of bits equal to the integer nearest to the quantity (t/2½ log 2 (second rate/first rate)).

6. The method of claim 1 wherein the two or more statistics comprise statistics associated with a network switch.

7. The method of claim 6 wherein the two or more statistics comprise a frame count and a byte count.

8. A system for optimizing use of statistics counters comprising:

a statistics counter split so as to provide a counter for each of two or more statistics, wherein the statistics counter comprises a total number of counter bits and the total number of counter bits are allocated among the two or more statistics to provide for each statistic a counter comprising the number of bits allocated for that statistic, the allocation being such that each counter overflows at a rate determined for that counter; and

for each of said two or more statistics an incrementor configured to increment the counter for that statistic.

9. The system of claim 8 wherein the total number of counter bits is determined by determining the size of a standard-sized statistic counter and determining how many standard-sized statistics counters will be used to track said two or more statistics.

10. The system of claim 8 wherein the total number of counter bits are allocated by balancing the respective overflow periods of the counters, such that each overflows in about the same period as the others.

11. The system of claim 10 wherein said two or more statistics comprise a first statistic expected to be incremented at a first rate and a second statistic expected to be incremented at a second rate that is faster than the first rate and balancing the respective overflow periods comprises allocating to the counter for the second statistic a number of bits that is k bits larger than a number of bits allocated to the counter for the first statistic, where k is equal to the integer nearest to log 2 (second rate/first rate).

12. The system of claim 10 wherein said two or more statistics comprise a first statistic expected to be incremented at a first rate and a second statistic expected to be incremented at a second rate that is faster than the first rate and balancing the respective overflow periods comprises allocating to the counter for the second statistic, from the total number of counter bits “t” to be used, a number of bits equal to the integer nearest to the quantity (t/2+½ log 2 (second rate/first rate)).

13. The system of claim 8 wherein the two or more statistics comprise statistics associated with a network switch.

14. The system of claim 13 wherein the two or more statistics comprise a frame count and a byte count.

15. A computer program product for optimizing use of statistics counters, the computer program product being embodied in a computer readable medium and comprising computer instructions for:

determining a total number of counter bits to be used to track two or more statistics; and

allocating the total number of counter bits among the two or more statistics to provide for each statistic a counter comprising the number of bits allocated for that statistic, the allocation being such that no counter overflows in an unacceptably short period.

16. A computer program product as recited in claim 15 wherein determining a total number of counter bits to be used comprises determining the size of a standard-sized statistic counter and determining how many standard-sized statistics counters will be used to track said two or more statistics.

17. A computer program product as recited in claim 15 wherein allocating the total number of counter bits comprises balancing the respective overflow periods of the counters, such that each overflows in about the same period as the others.

18. A computer program product as recited in claim 17 wherein said two or more statistics comprise a first statistic expected to be incremented at a first rate and a second statistic expected to be incremented at a second rate that is faster than the first rate and balancing the respective overflow periods comprises allocating to the counter for the second statistic a number of bits that is k bits larger than a number of bits allocated to the counter for the first statistic, where k is equal to the integer nearest to log 2 (second rate/first rate).

19. A computer program product as recited in claim 17 wherein said two or more statistics comprise a first statistic expected to be incremented at a first rate and a second statistic expected to be incremented at a second rate that is faster than the first rate and balancing the respective overflow periods comprises allocating to the counter for the second statistic, from the total number of counter bits “t” to be used, a number of bits equal to the integer nearest to the quantity (t/2+½ log 2 (second rate/first rate)).

20. A computer program product as recited in claim 15 wherein the two or more statistics comprise statistics associated with a network switch.

21. A computer program product as recited in claim 20 wherein the two or more statistics comprise a frame count and a byte count.

Assignments (7)
ASSIGNMENT AND ASSUMPTION AGREEMENT Recorded Feb 14, 2019
From: NOKIA USA INC.
To: NOKIA US HOLDINGS INC.
Reel/Frame 048370/0682 →
SECURITY INTEREST Recorded Sep 13, 2017
From: PROVENANCE ASSET GROUP HOLDINGS, LLC; PROVENANCE ASSET GROUP LLC
To: NOKIA USA INC.
Reel/Frame 043879/0001 →
SECURITY INTEREST Recorded Sep 13, 2017
From: PROVENANCE ASSET GROUP HOLDINGS, LLC; PROVENANCE ASSET GROUP, LLC
To: CORTLAND CAPITAL MARKET SERVICES, LLC
Reel/Frame 043967/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 13, 2017
From: NOKIA TECHNOLOGIES OY; NOKIA SOLUTIONS AND NETWORKS BV; ALCATEL LUCENT SAS
To: PROVENANCE ASSET GROUP LLC
Reel/Frame 043877/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 30, 2006
From: ALCATEL USA MARKETING, INC.
To: ALCATEL USA SOURCING, L.P.
Reel/Frame 018454/0966 →
MERGER Recorded Oct 30, 2006
From: ALCATEL IP NETWORKS
To: ALCATEL USA MARKETING, INC.
Reel/Frame 018454/0936 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 23, 2004
From: SMALLWOOD, MARK A. L.; CLARKE, MICHAEL J.; FRENCH, MARK M.; LEA, MARTIN R.
To: ALCATEL IP NETWORKS, INC.
Reel/Frame 015280/0693 →
Continuity (2)
Provisional Application 6046565300 · Apr 25, 2003
Related Publication 20040213370A1 · Oct 28, 2004