# US 2009/0154456 A1 · Dynamic buffer pool in pciexpress switches

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

- Number: US 2009/0154456 A1
- Document ID: US20090154456A1
- Status: Published application
- Kind: A1
- Application number: 12/336,402
- Filed: 2008-12-16
- Published: 2009-06-18
- Earliest claimed: 2007-12-18
- Assignees: PLX Technology, Inc.
- Inventors: Jeffrey Michael DODSON; Joe KEIROUZ
- Web page: https://patentgrep.com/patent/US20090154456A1

## CPC

- H04L 47/10: Flow control; Congestion control
- H04L 47/30: in combination with information about buffer occupancy at either end or at transit nodes
- H04L 47/39: {Credit based}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In a first embodiment of the present invention, a method for handling a Transaction Layer Packets (TLPs) from devices in a switch is provided, the method comprising: subtracting a first number of credits from a credit pool associated with a first port on which a first device is connected; determining if the amount of credits in the credit pool associated with the first port is less than a first predetermined threshold; and if the amount of credits in the credit pool associated with the first port is less than the first predetermined threshold, assigning a second number of credits from a shared credit pool to the credit pool associated with the first port.

## Claims

### Claim 1

A method for handling a Transaction Layer Packets (TLPs) from devices in a switch, the method comprising:
subtracting a first number of credits from a credit pool associated with a first port on which a first device is connected;
determining if the amount of credits in the credit pool associated with the first port is less than a first predetermined threshold; and
if the amount of credits in the credit pool associated with the first port is less than the first predetermined threshold, assigning a second number of credits from a shared credit pool to the credit pool associated with the first port.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
receiving, from the device, a request for credits for a first TLP.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first number of credits is calculated based at least partially upon the size of the first TLP.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
receiving, from a second device, a request for credits for a second TLP;
subtracting a second number of credits from a credit pool associated with a second port on which the second device is connected;
determining if the amount of credits in the credit pool associated with the second port is less than a second predetermined threshold;
if the amount of credits in the credit pool associated with the second port is less than the second predetermined threshold, assigning a second number of credits from the shared credit pool to the credit pool associated with the second port.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
determining if a TLP is dropped; and
if the TLP is dropped, crediting the first number of credits back to the credit pool associated with the first port.

### Claim 6

A method for handling Transaction Layer Packets (TLPs) from devices in a switch, wherein the TLPs have sizes and contain a header and a payload, the method comprising:
subtracting a first number of credits from a header credit pool associated with a first port on which a first device is connected;
determining if the amount of credits in the header credit pool associated with the first port is less than a first predetermined threshold;
if the amount of credits in the header credit pool associated with the first port is less than the first predetermined threshold, assigning a second number of credits from a shared credit pool to the header credit pool associated with the first port;
subtracting a third number of credits from a payload credit pool associated with the first port;
determining if the amount of credits in the payload credit pool associated with the first port is less than a second predetermined threshold; and
if the amount of credits in the payload credit pool associated with the first port is less than the second predetermined threshold, assigning a fourth number of credits from the shared credit pool to the payload credit pool associated with the first port.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
receiving, from a second device, a request for credits for a second TLP;
subtracting a fifth number of credits from a header credit pool associated with a second port on which the second device is connected;
determining if the amount of credits in the header credit pool associated with the second port is less than a third predetermined threshold;
if the amount of credits in the header credit pool associated with the first port is less than the third predetermined threshold, assigning a sixth number of credits from the shared credit pool to the header credit pool associated with the second port;
subtracting a seventh number of credits from a payload credit pool associated with the second port;
determining if the amount of credits in the payload credit pool associated with the second port is less than a fourth predetermined threshold; and
if the amount of credits in the payload credit pool associated with the second port is less than the fourth predetermined threshold, assigning an eighth number of credits from the shared credit pool to the payload credit pool associated with the second port.

### Claim 8 (depends on 6)

The method of claim 6, further comprising:
determining if the size of a TLP to be received on the first port is considered to be large or small;
if the size of the TLP to be received on the first port is small, assigning more header credits as the first number of credits and fewer payload credits as the third number of payload credits than if the size of the TLP to be received on the first port is large.

### Claim 9

A method for handling a Transaction Layer Packets (TLPs) from device in a switch, wherein the TLPs have sizes and contain a header and a payload, the method comprising:
subtracting a first number of credits from a header credit pool associated with a first port on which a first device is connected;
determining if the amount of credits in the header credit pool associated with the first port is less than a first predetermined threshold;
if the amount of credits in the header credit pool associated with the first port is less than the first predetermined threshold, assigning a second number of credits from a shared header credit pool to the header credit pool associated with the first port;
subtracting a third number of credits from a payload credit pool associated with the first port;
determining if the amount of credits in the payload credit pool associated with the first port is less than a second predetermined threshold; and
if the amount of credits in the payload credit pool associated with the first port is less than the second predetermined threshold, assigning a fourth number of credits from a shared payload credit pool to the payload credit pool associated with the first port.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
receiving, from a second device, a request for credits for a second TLP;
subtracting a fifth number of credits from a header credit pool associated with a second port on which the second device is connected;
determining if the amount of credits in the header credit pool associated with the second port is less than a third predetermined threshold;
if the amount of credits in the header credit pool associated with the first port is less than the third predetermined threshold, assigning a sixth number of credits from the shared header credit pool to the header credit pool associated with the second port;
subtracting a seventh number of credits from a payload credit pool associated with the second port;
determining if the amount of credits in the payload credit pool associated with the second port is less than a fourth predetermined threshold; and
if the amount of credits in the payload credit pool associated with the second port is less than the fourth predetermined threshold, assigning an eighth number of credits from the shared payload credit pool to the payload credit pool associated with the second port.

### Claim 11 (depends on 9)

The method of claim 9, further comprising:
determining if the size of a TLP to be received on the first port is considered to be large or small;
if the size of the TLP to be received on the first port is small, assigning more header credits as the first number of credits and fewer payload credits as the third number of payload credits than if the size of the TLP to be received on the first port is large.

### Claim 12

A switch comprising:
a plurality of ports;
for each of said plurality of ports, stored in a memory, a credit pool associated with the port;
a shared credit pool stored in a memory;
a processor configured to:
subtract a first number of credits from a credit pool associated with a first port on which a first device is connected;
determine if the amount of credits in the credit pool associated with the first port is less than a first predetermined threshold; and
if the amount of credits in the credit pool associated with the first port is less than the first predetermined threshold, assign a second number of credits from a shared credit pool to the credit pool associated with the first port.

### Claim 13

A switch comprising:
a plurality of ports;
for each of said plurality of ports, stored in a memory, a header credit pool and a payload credit pool associated with the port;
a shared credit pool stored in a memory;
a processor configured to:
subtract a first number of credits from a header credit pool associated with a first port on which a first device is connected;
determine if the amount of credits in the header credit pool associated with the first port is less than a first predetermined threshold;
if the amount of credits in the header credit pool associated with the first port is less than the first predetermined threshold, assign a second number of credits from a shared credit pool to the header credit pool associated with the first port;
subtract a third number of credits from a payload credit pool associated with the first port;
determine if the amount of credits in the payload credit pool associated with the first port is less than a second predetermined threshold; and
if the amount of credits in the payload credit pool associated with the first port is less than the second predetermined threshold, assign a fourth number of credits from the shared credit pool to the payload credit pool associated with the first port.

### Claim 14

A switch comprising:
a plurality of ports;
for each of said plurality of ports, stored in a memory, a header credit pool and a payload credit pool associated with the port;
a shared header credit pool stored in a memory;
a shared payload credit pool stored in a memory;
a processor configured to:
subtract a first number of credits from a header credit pool associated with a first port on which a first device is connected;
determine if the amount of credits in the header credit pool associated with the first port is less than a first predetermined threshold;
if the amount of credits in the header credit pool associated with the first port is less than the first predetermined threshold, assign a second number of credits from a shared header credit pool to the header credit pool associated with the first port;
subtract a third number of credits from a payload credit pool associated with the first port;
determine if the amount of credits in the payload credit pool associated with the first port is less than a second predetermined threshold; and
if the amount of credits in the payload credit pool associated with the first port is less than the second predetermined threshold, assign a fourth number of credits from a shared payload credit pool to the payload credit pool associated with the first port.
