Network failure simulator
First Claim
1. In a computer system having an adapter for connecting to a network and a multiple layer network input/output system with a send handler and a receive handler for respectively sending and receiving data on the network, a computer implemented method for programmatically simulating a network failure under control of a testing program, the method comprising:
- under testing program control, directly replacing a reference to the send handler with a reference to a substitute send handler to redirect from the send handler to the substitute send handler calls for sending data outwardly directed via the network, the substitute send handler returning a first status datum indicative of a condition of the network without relaying the outwardly directed data, whereby the send handler ceases processing the outwardly directed data; and
under testing program control, directly replacing a reference to the receive handler with a reference to a substitute receive handler to redirect from the receive handler to the substitute receive handler calls for receiving data inwardly directed via the network, the substitute receive handler returning a first status datum indicative of a condition of the network without relaying the inwardly directed data, whereby the receive handler ceases processing the inwardly directed data.
2 Assignments
0 Petitions
Accused Products
Abstract
A network failure simulation tool provides simulation of a network failure suitable for automated software testing under software control. The tool intercepts packets being sent or received by a computer on a network by redirecting the packets from a network I/O architecture to substitute packet handlers. The tool also resumes normal network operation by again directing packets through actual packet handlers of the computer'"'"'s network I/O architecture. Commands are provided for controlling suspension and resumption of network operation by the tool from an automated software testing program.
-
Citations
15 Claims
-
1. In a computer system having an adapter for connecting to a network and a multiple layer network input/output system with a send handler and a receive handler for respectively sending and receiving data on the network, a computer implemented method for programmatically simulating a network failure under control of a testing program, the method comprising:
-
under testing program control, directly replacing a reference to the send handler with a reference to a substitute send handler to redirect from the send handler to the substitute send handler calls for sending data outwardly directed via the network, the substitute send handler returning a first status datum indicative of a condition of the network without relaying the outwardly directed data, whereby the send handler ceases processing the outwardly directed data; and under testing program control, directly replacing a reference to the receive handler with a reference to a substitute receive handler to redirect from the receive handler to the substitute receive handler calls for receiving data inwardly directed via the network, the substitute receive handler returning a first status datum indicative of a condition of the network without relaying the inwardly directed data, whereby the receive handler ceases processing the inwardly directed data. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A network failure simulator for a computer system having network hardware for at least one network connection, a send handler for sending outwardly directed data from the computer to the network and a receive handler for receiving inwardly directed data from the network to the computer, the network failure simulator comprising:
-
a substitute send handler for intercepting data being sent on the at least one network connection, wherein the substitute send handler is operative to return a first status datum indicative of a condition of the network and to not send the outwardly directed data from the computer to the network; a substitute receive handler for intercepting data being received on the at least one network connection, wherein the substitute send handler is operative to return a first status datum indicative of a condition of the network and to not receive inwardly directed data from the network to the computer; and a testing program operative to directly replace a reference to the send handler with a reference to the substitute send handler and to directly replace a reference to the receive handler with a reference to the substitute receive handler, whereby sending of the outwardly directed data by the send handler is prevented and receiving of the inwardly directed data by the receive handler is prevented. - View Dependent Claims (7, 8)
-
-
9. A computer implemented method for simulating a network failure to automate testing of a network application in a computer system having an adapter for connecting to a network and a multiple layer network input/output system with a send handler and a receive handler for respectively sending and receiving data on the network, the method comprising:
-
sending a suspend network command from an automated software testing application to a network failure simulation tool; with the network failure simulation tool, in response to the suspend network command, redirecting calls for sending outwardly directed data via the network from the send handler to a substitute handler returning a status datum indicative of a condition of the network and not relaying the outwardly directed data onto the network; and with the network failure simulation tool, in response to the suspend network command, redirecting calls for receiving inwardly directed data via the network from the receive handler to a substitute handler returning a status datum indicative of a condition of the network and not relaying the inwardly directed data from the network, whereby the automated software testing application controls disconnecting the network from the computer system. - View Dependent Claims (10, 11, 12)
-
-
13. In a computer system having an adapter for connecting to a network and a multiple layer network input/output system with a send handler residing in a network layer and a receive handler residing in a network layer for respectively sending and receiving packets on the network, a method for simulating a network failure, the method comprising the steps of:
-
redirecting calls for sending outwardly directed packets via the network from the send handler to a first substitute handler operative to return a first status datum indicative of a condition of the network and to not relay the outwardly directed packets to a lower layer; and redirecting calls for receiving inwardly directed packets via the network from the receive handler to a second substitute handler operative to return a second status datum indicative of a condition of the network and to not relay the inwardly directed packets to a higher layer, whereby calls for sending and receiving packets are blocked from executing the send and receive handlers and network access by the computer system is suspended. - View Dependent Claims (14, 15)
-
Specification