# US 2003/0223440 A1 · Technique for controlling selection of a write adapter from multiple adapters connected to a high speed switch

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

- Number: US 2003/0223440 A1
- Document ID: US20030223440A1
- Status: Published application
- Kind: A1
- Application number: 10/156,554
- Filed: 2002-05-28
- Published: 2003-12-04
- Earliest claimed: 2002-05-28
- Assignees: International Business Machines Corporation
- Inventors: William S. Cadden
- Web page: https://patentgrep.com/patent/US20030223440A1

## CPC

- H04L 49/253: using establishment or release of connections between ports
- H04L 49/30: {Peripheral units, e.g. input or output ports}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A technique is provided for facilitating writing of messages to multiple adapters connected to a high speed switch in a distributed computing environment. The technique employs a first, relatively quick filter to initially test whether a previously used adapter of the multiple adapters should be used to send a new message. If the first filter fails to select the previously used adapter, then the technique includes employing a second, more complicated filter to determine which adapter of the multiple adapters should be used to send the message. The first filter includes a first set of tests, and the second filter includes a second set of tests.

## Claims

### Claim 1

A method of selecting an adapter of multiple adapters of a switch node for transmission of a message, said method comprising:
employing a first filter to initially test whether a previously used adapter of the multiple adapters should be used to send a message; and
if the first filter fails to select the previously used adapter, then employing a second filter to determine which adapter of the multiple adapters should be used to send the message.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first filter comprises a first set of tests, and wherein the second filter comprises a second set of tests, and wherein the second set of tests is more time consuming than the first set of tests.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first filter includes determining whether the previously used adapter has sufficient resources to handle the message at this time.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first filter comprises ascertaining a switch count to determine whether the message should be sent through the previously used adapter or whether a different adapter of the multiple adapters should be employed.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first filter comprises confirming that the message does not comprise a first message of a group of messages.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first filter comprises determining that the previously used adapter is currently operational.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first filter comprises a first set of tests, the first set of tests comprising at least some of:
determining whether the previously used adapter has sufficient resources to handle the message at this time;
determining a switch count to ascertain whether the message should be sent through the previously used adapter;
ascertaining that the message is not a first message of a group of messages; and
determining that the previously used adapter is currently operational.

### Claim 8 (depends on 7)

The method of claim 7, wherein the first filter comprises determining that each test of the first set of tests is true, and if so, selecting the previously used adapter for transmission of the message without employing the second filter.

### Claim 9 (depends on 1)

The method of claim 1, wherein the first filter comprises selecting the previously used adapter for transmission of the message unless at least one condition of multiple predefined conditions exists which dictates that the second filter is to be employed.

### Claim 10 (depends on 1)

The method of claim 1, wherein the second filter comprises determining whether the previously used adapter is currently down, and if so, selecting another adapter of the multiple adapters which is operational, has space available, and does not have significantly less space than any other operational adapter of the multiple adapters.

### Claim 11 (depends on 10)

The method of claim 10, wherein upon selecting another adapter for transmission of the message, the method further comprises setting a switch count variable to a number of messages that should be written before switching to a new adapter of the multiple adapters.

### Claim 12 (depends on 10)

The method of claim 10, wherein the second filter further comprises determining whether there is a preferred adapter for transmission of the message, and if so, determining availability of the preferred adapter.

### Claim 13 (depends on 10)

The method of claim 10, wherein the second filter includes determining a lack of a preferred adapter, and if so, selecting the previously used adapter unless there is no available space in the previously used adapter, the switch count indicates it is time to switch to another adapter, or this is the first message in a group of messages, and there are no unflushed messages in the previously used adapter, in which case the method includes selecting another adapter which is operational, has space available, and does not have significantly less space available than any other adapter of the multiple adapters, wherein the previously used adapter is selected if it is the only adapter that fulfills these conditions.

### Claim 14 (depends on 1)

The method of claim 1, further comprising employing a send_test variable, the send_test variable being initialized when a switch is made to a new adapter as the lesser of a count of message space available in the new adapter and a switch_count variable corresponding to a defined number of messages that should be written before switching to another adapter of the multiple adapters.

### Claim 15 (depends on 14)

The method of claim 14, further comprising setting an adapter pointer to NULL whenever the send_test variable becomes less than or equal to zero, indicating that the second filter is to be employed.

### Claim 16 (depends on 15)

The method of claim 15, further comprising setting the adapter pointer to NULL when the previously used adapter goes down, and returning a valid pointer that can be used for a current write operation.

### Claim 17

A system for selecting an adapter of multiple adapters of a switch node for transmission of a message, said system comprising:
means for employing a first filter to initially test whether a previously used adapter of the multiple adapters should be used to send a message; and
means for employing a second filter to determine which adapter of the multiple adapters should be used to send the message when the first filter fails to select the previously used adapter.

### Claim 18 (depends on 17)

The system of claim 17, wherein the first filter comprises a first set of tests, and wherein the second filter comprises a second set of tests, and wherein the second set of tests is more time consuming than the first set of tests.

### Claim 19 (depends on 17)

The system of claim 17, wherein the first filter includes means for determining whether the previously used adapter has sufficient resources to handle the message at this time.

### Claim 20 (depends on 17)

The system of claim 17, wherein the first filter comprises means for ascertaining a switch count to determine whether the message should be sent through the previously used adapter or whether a different adapter of the multiple adapters should be employed.

### Claim 21 (depends on 17)

The system of claim 17, wherein the first filter comprises means for confirming that the message does not comprise a first message of a group of messages.

### Claim 22 (depends on 17)

The system of claim 17, wherein the first filter comprises means for determining that the previously used adapter is currently operational.

### Claim 23 (depends on 17)

The system of claim 17, wherein the first filter comprises a first set of tests, the first set of tests comprising at least some of:
means for determining whether the previously used adapter has sufficient resources to handle the message at this time;
means for determining a switch count to ascertain whether the message should be sent through the previously used adapter;
means for ascertaining that the message is not a first message of a group of messages; and
means for determining that the previously used adapter is currently operational.

### Claim 24 (depends on 23)

The system of claim 23, wherein the first filter comprises means for determining that each test of the first set of tests is true, and if so, for selecting the previously used adapter for transmission of the message without employing the second filter.

### Claim 25 (depends on 17)

The system of claim 17, wherein the first filter comprises means for selecting the previously used adapter for transmission of the message unless at least one condition of multiple predefined conditions exists which dictates that the second filter is to be employed.

### Claim 26 (depends on 17)

The system of claim 17, wherein the second filter comprises means for determining whether the previously used adapter is currently down, and if so, for selecting another adapter of the multiple adapters which is operational, has space available, and does not have significantly less space than any other operational adapter of the multiple adapters.

### Claim 27 (depends on 26)

The system of claim 26, wherein upon selecting another adapter for transmission of the message, the system further comprises means for setting a switch count variable to a number of messages that should be written before switching to a new adapter of the multiple adapters.

### Claim 28 (depends on 26)

The system of claim 26, wherein the second filter further comprises means for determining whether there is a preferred adapter for transmission of the message, and if so, for determining availability of the preferred adapter.

### Claim 29 (depends on 26)

The system of claim 26, wherein the second filter includes means for determining a lack of a preferred adapter, and if so, for selecting the previously used adapter unless there is no available space in the previously used adapter, the switch count indicates it is time to switch to another adapter, or this is the first message in a group of messages, and there are no unflushed messages in the previously used adapter, in which case the system further includes means for selecting another adapter which is operational, has space available, and does not have significantly less space available than any other adapter of the multiple adapters, wherein the previously used adapter is selected if it is the only adapter that fulfills these conditions.

### Claim 30 (depends on 17)

The system of claim 17, further comprising means for employing a send_test variable, the send test variable being initialized when a switch is made to a new adapter as the lesser of a count of message space available in the new adapter and a switch_count variable corresponding to a defined number of messages that should be written before switching to another adapter of the multiple adapters.

### Claim 31 (depends on 30)

The system of claim 30, further comprising means for setting an adapter pointer to NULL whenever the send_test variable becomes less than or equal to zero, indicating that the second filter is to be employed.

### Claim 32 (depends on 31)

The system of claim 31, further comprising means for setting the adapter pointer to NULL when the previously used adapter goes down, and for returning a valid pointer that can be used for a current write operation.

### Claim 33

A system for selecting an adapter for transmission of a message in a distributed computing environment, said system comprising:
a switch node of the distributed computing environment having multiple adapters, wherein the switch node is adapted to:
employ a first filter to initially test whether a previously used adapter of the multiple adapters should be used to send a message; and
employ a second filter to determine which adapter of the multiple adapters should be used to send the message if the first filter fails to select the previously used adapter.

### Claim 34

At least one program storage device readable by machine, tangibly embodying at least one program of instructions executable by the machine to perform a method of selecting an adapter of multiple adapters of a switch node for transmission of a message, the method comprising:
employing a first filter to initially test whether a previously used adapter of the multiple adapters should be used to send a message; and
if the first filter fails to select the previously used adapter, then employing a second filter to determine which adapter of the multiple adapters should be used to send the message.

### Claim 35 (depends on 34)

The at least one program storage device of claim 34, wherein the first filter comprises a first set of tests, and wherein the second filter comprises a second set of tests, and wherein the second set of tests is more time consuming than the first set of tests.

### Claim 36 (depends on 34)

The at least one program storage device of claim 34, wherein the first filter includes determining whether the previously used adapter has sufficient resources to handle the message at this time.

### Claim 37 (depends on 34)

The at least one program storage device of claim 34, wherein the first filter comprises ascertaining a switch count to determine whether the message should be sent through the previously used adapter or whether a different adapter of the multiple adapters should be employed.

### Claim 38 (depends on 34)

The at least one program storage device of claim 34, wherein the first filter comprises confirming that the message does not comprise a first message of a group of messages.

### Claim 39 (depends on 34)

The at least one program storage device of claim 34, wherein the first filter comprises determining that the previously used adapter is currently operational.

### Claim 40 (depends on 34)

The at least one program storage device of claim 34, wherein the first filter comprises a first set of tests, the first set of tests comprising at least some of:
determining whether the previously used adapter has sufficient resources to handle the message at this time;
determining a switch count to ascertain whether the message should be sent through the previously used adapter;
ascertaining that the message is not a first message of a group of messages; and
determining that the previously used adapter is currently operational.

### Claim 41 (depends on 40)

The at least one program storage device of claim 40, wherein the first filter comprises determining that each test of the first set of tests is true, and if so, selecting the previously used adapter for transmission of the message without employing the second filter.

### Claim 42 (depends on 34)

The at least one program storage device of claim 34, wherein the first filter comprises selecting the previously used adapter for transmission of the message unless at least one condition of multiple predefined conditions exists which dictates that the second filter is to be employed.

### Claim 43 (depends on 34)

The at least one program storage device of claim 34, wherein the second filter comprises determining whether the previously used adapter is currently down, and if so, selecting another adapter of the multiple adapters which is operational, has space available, and does not have significantly less space than any other operational adapter of the multiple adapters.

### Claim 44 (depends on 43)

The at least one program storage device of claim 43, wherein upon selecting another adapter for transmission of the message, the method further comprises setting a switch count variable to a number of messages that should be written before switching to a new adapter of the multiple adapters.

### Claim 45 (depends on 43)

The at least one program storage device of claim 43, wherein the second filter further comprises determining whether there is a preferred adapter for transmission of the message, and if so, determining availability of the preferred adapter.

### Claim 46 (depends on 43)

The at least one program storage device of claim 43, wherein the second filter includes determining a lack of a preferred adapter, and if so, selecting the previously used adapter unless there is no available space in the previously used adapter, the switch count indicates it is time to switch to another adapter, or this is the first message in a group of messages, and there are no unflushed messages in the previously used adapter, in which case the method includes selecting another adapter which is operational, has space available, and does not have significantly less space available than any other adapter of the multiple adapters, wherein the previously used adapter is selected if it is the only adapter that fulfills these conditions.

### Claim 47 (depends on 34)

The at least one program storage device of claim 34, further comprising employing a send_test variable, the send_test variable being initialized when a switch is made to a new adapter as the lesser of a count of message space available in the new adapter and a switch_count variable corresponding to a defined number of messages that should be written before switching to another adapter of the multiple adapters.

### Claim 48 (depends on 47)

The at least one program storage device of claim 47, further comprising setting an adapter pointer to NULL whenever the send_test variable becomes less than or equal to zero, indicating that the second filter is to be employed.

### Claim 49 (depends on 48)

The at least one program storage device of claim 48, further comprising setting the adapter pointer to NULL when the previously used adapter goes down, and returning a valid pointer that can be used for a current write operation.
