主权项 |
1. A computer program product for testing a network comprised of network components including hosts and at least one switch, wherein the network components include adaptors to enable network communication among the network components, the computer program product including a non-transitory computer readable medium having computer readable program code embodied therein that executes to perform operations, the operations comprising:
sending a congestion request to a selected adaptor in a containing network component comprising one of the network components, wherein the selected adaptor is in communication with a linked adaptor in a linked network component comprising one of the network components, wherein the congestion request specifies a delay duration; setting a congestion flag to indicate to delay servicing the selected adaptor, indicate the delay duration, and initialize a delay start time; if the congestion flag indicates to delay servicing, causing a delay in servicing the selected adaptor to introduce congestion on a link between the selected adaptor and the linked adaptor to test how at least one of the network components handles errors resulting from the congestion, and determining whether the delay of servicing has exceeded the delay duration; if the delay of servicing has exceeded the delay duration, ending the delay of servicing without allocating new buffers to the selected adaptor; and if the delay of servicing has not exceeded the delay duration, resetting the delay start time, and allocating new buffers to the selected adaptor. |