IP Library Granted Patent US 7,007,071
Granted Patent B1
US 7,007,071 · App. 09/624,276 · Granted Feb 28, 2006

Method and apparatus for reducing pool starvation in a shared memory switch

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 7,007,071
App. No.
09/624,276
Granted
Feb 28, 2006
Kind
B1
Abstract

A switch includes a reserved pool of buffers in a shared memory. The reserved pool of buffers is reserved for exclusive use by an egress port. The switch includes pool select logic which selects a free buffer from the reserved pool for storing data received from an ingress port to be forwarded to the egress port. The shared memory also includes a shared pool of buffers. The shared pool of buffers is shared by a plurality of egress ports. The pool select logic selects a free buffer in the shared pool upon detecting no free buffer in the reserved pool. The shared memory may also include a multicast pool of buffers. The multicast pool of buffers is shared by a plurality of egress ports. The pool select logic selects a free buffer in the multicast pool upon detecting an IP Multicast data packet received from an ingress port.

Claims (43)

1. A switch comprising:

a plurality of reserved pools of buffers in a shared memory, each reserved pool of buffers associated with one of a plurality of egress ports and reserved for storing data to be forwarded to the egress port;

a shared pool of buffers in the shared memory, the shared pool of buffers for storing data to be forwarded to any of the plurality of egress ports;

a multicast pool of buffers in the shared memory reserved for only storing IP Multicast packets received from any ingress port to be forwarded to at least one egress port to members of the IP Multicast group; and

a pool select logic which selects a free buffer to allocate from the reserved pool for storing data received from an ingress port to be forwarded to the egress port, and deallocates the selected buffer after the data has been forwarded to the egress port.

2. A switch as claimed in claim 1 wherein the pool select logic selects a free buffer in the shared pool upon detecting no free buffer in the reserved pool.

3. A switch as claimed in claim 1 wherein the pool select logic selects a free buffer from the multicast pool upon detecting an IP Multicast data packet received from an ingress port.

4. A switch as claimed in claim 1 further comprising:

a total free counter storing the number of free buffers in shared memory, the total free counter preset to the total number of buffers in the shared memory wherein the sum of the buffers in the multicast pool, the reserved pool and the shared pool is greater than the total number of buffers in the shared memory.

5. A switch as claimed in claim 4 wherein the pool select logic determines the availability of a free buffer in the shared memory dependent on the number of free buffers in the shared memory stored in the total free counter.

6. A switch as claimed in claim 1 further comprising:

a total free counter storing the number of free buffers in shared memory, the total free counter preset to the total number of buffers in the shared memory wherein the sum of the buffers in the multicast pool, the reserved pool and the shared pool is equal to the total number of buffers in the shared memory.

7. A switch as claimed in claim 6 wherein the pool select logic determines the availability of a free buffer in the shared memory dependent on the number of free buffers in the shared memory stored in the total free counter.

8. A switch comprising:

a plurality of reserved pools of buffers in a shared memory, each reserved pool of buffers associated with one of a plurality of egress ports and reserved for storing data to be forwarded to the egress port;

a shared pool of buffers in the shared memory, the shared pool of buffers for storing data to be forwarded to any of the plurality of egress ports;

a multicast pool of buffers in the shared memory reserved for only storing IP Multicast packets received from any ingress port to be forwarded to at least one egress port to members of the IP Multicast group;

means for selecting a free buffer to allocate from the reserved pool for storing data received from an ingress port to be forwarded to the egress port; and

means for deallocating the selected buffer after the data has been forwarded.

9. A switch as claimed in claim 8 wherein the means for selecting selects a free buffer in the shared pool upon detecting no free buffer in the reserved pool.

10. A switch as claimed in claim 8 wherein the means for selecting selects a free buffer from the multicast pool upon detecting an IP Multicast data packet received from an ingress port.

11. A switch as claimed in claim 10 further comprising:

means for counting the number of free buffers in shared memory, the means for counting preset to the total number of buffers in the shared memory wherein the sum of the buffers in the multicast pool, the reserved pool and the shared pool is greater than the total number of buffers in the shared memory.

12. A switch as claimed in claim 11 wherein the means for selecting a free buffer determines the availability of a free buffer in the shared memory dependent on the number of free buffers in the shared memory stored in the means for counting.

13. A switch as claimed in claim 10 further comprising:

means for counting the number of free buffers in shared memory, the means for counting preset to the total number of buffers in the shared memory wherein the sum of the buffers in the multicast pool, the reserved pool and the shared pool is equal to the total number of buffers in the shared memory.

14. A switch as claimed in claim 13 wherein the means for selecting a free buffer determines the availability of a free buffer in the shared memory dependent on the number of free buffers in the shared memory stored in the means for counting.

15. A method for managing a shared memory in a switch comprising the steps of:

providing a plurality of reserved pools of buffers in the shared memory, each reserved pool of buffers associated with one of a plurality of egress ports and reserved for storing data to be forwarded to the egress port;

providing a shared pool of buffers in the shared memory, the shared pool of buffers for storing data to be forwarded to any of the plurality of egress ports;

providing a multicast pool of buffers in the shared memory reserved for only storing IP Multicast packets received from any ingress port to be forwarded to at least one egress port to members of the IP Multicast group;

selecting a free buffer to allocate from the reserved pool for storing data received from an ingress port to be forwarded to the egress port; and

deallocating the selected buffer after the data has been forwarded to the egress port.

16. A method as claimed in claim 15 wherein the step of selecting selects a free buffer in the shared pool upon detecting no free buffer in the reserved pool.

17. A method as claimed in claim 15 wherein the step of selecting selects a free buffer from the multicast pool upon detecting an IP Multicast data packet received from an ingress port.

18. A switch as claimed in claim 17 further comprising:

providing a total free counter for counting the number of free buffers in shared memory, the total free counter preset to the total number of buffers in the shared memory wherein the sum of the buffers in the multicast pool, the reserved pool and the shared pool is greater than the total number of buffers in the shared memory.

19. A switch as claimed in claim 18 further comprising the step of:

determining the availability of a free buffer in the shared memory dependent on the number of free buffers in the shared memory stored in the total free counter.

20. A switch as claimed in claim 17 further comprising:

providing a total free counter for counting the number of free buffers in shared memory, the total free counter preset to the total number of buffers in the shared memory wherein the sum of the buffers in the multicast pool, the reserved pool and the shared pool is equal to the total number of buffers in the shared memory.

21. A switch as claimed in claim 20 further comprising the step of:

determining the availability of a free buffer in the shared memory dependent on the number of free buffers in the shared memory stored in the total free counter.

Assignments (11)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 11, 2022
From: MOSAID TECHNOLOGIES INCORPORATED
To: TAIWAN SEMICONDUCTOR MANUFACTURING COMPANY, LTD.
Reel/Frame 059952/0976 →
CHANGE OF NAME Recorded Sep 9, 2021
From: CONVERSANT INTELLECTUAL PROPERTY INC.
To: MOSAID TECHNOLOGIES INCORPORATED
Reel/Frame 057449/0162 →
RELEASE OF SECURITY INTEREST Recorded Nov 2, 2020
From: CPPIB CREDIT INVESTMENTS INC.
To: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.
Reel/Frame 054278/0333 →
RELEASE OF U.S. PATENT AGREEMENT (FOR NON-U.S. GRANTORS) Recorded Oct 12, 2018
From: ROYAL BANK OF CANADA, AS LENDER
To: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.
Reel/Frame 047645/0424 →
AMENDED AND RESTATED U.S. PATENT SECURITY AGREEMENT (FOR NON-U.S. GRANTORS) Recorded Aug 22, 2018
From: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.
To: CPPIB CREDIT INVESTMENTS, INC.
Reel/Frame 046900/0136 →
U.S. PATENT SECURITY AGREEMENT (FOR NON-U.S. GRANTORS) Recorded Sep 9, 2014
From: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.
To: CPPIB CREDIT INVESTMENTS INC., AS LENDER; ROYAL BANK OF CANADA, AS LENDER
Reel/Frame 033706/0367 →
CHANGE OF ADDRESS Recorded Sep 3, 2014
From: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.
To: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.
Reel/Frame 033678/0096 →
RELEASE OF SECURITY INTEREST Recorded Aug 7, 2014
From: ROYAL BANK OF CANADA
To: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.; CONVERSANT IP N.B. 868 INC.; CONVERSANT IP N.B. 276 INC.
Reel/Frame 033484/0344 →
CHANGE OF NAME Recorded Mar 13, 2014
From: MOSAID TECHNOLOGIES INCORPORATED
To: CONVERSANT INTELLECTUAL PROPERTY MANAGEMENT INC.
Reel/Frame 032439/0638 →
U.S. INTELLECTUAL PROPERTY SECURITY AGREEMENT (FOR NON-U.S. GRANTORS) - SHORT FORM Recorded Jan 10, 2012
From: 658276 N.B. LTD.; 658868 N.B. INC.; MOSAID TECHNOLOGIES INCORPORATED
To: ROYAL BANK OF CANADA
Reel/Frame 027512/0196 →
CHANGE OF ADDRESS OF ASSIGNEE Recorded Apr 15, 2009
From: MOSAID TECHNOLOGIES INCORPORATED
To: MOSAID TECHNOLOGIES INCORPORATED
Reel/Frame 022542/0876 →