Claims
- 1. A method to facilitate fast network management protocol replies in large tables, comprising:
receiving a request for a next row in a network management protocol table; comparing an object identifier in the request with a pre-calculated object identifier; and if the object identifier matches the pre-calculated object identifier,
responding to the request with a pre-calculated response, otherwise
searching a management information base for the next row in the network management protocol table, calculating a response, wherein the response includes data from requested columns of the next row, and responding to the request with the response.
- 2. The method of claim 1, wherein receiving the request for the next row from the network management protocol table includes:
locating a protocol data unit in the request; and determining the object identifier within the protocol data unit.
- 3. The method of claim 2, further comprising:
before responding to the request with the pre-calculated response or responding to the request with the response,
selecting a candidate next row in the network management protocol table, creating the pre-calculated object identifier for the candidate next row, saving the pre-calculated object identifier, creating the pre-calculated response for the candidate next row, wherein the pre-calculated response includes data from requested columns of the candidate next row, and saving the pre-calculated response.
- 4. The method of claim 3, wherein determining the next row in the network management protocol table includes:
decoding the object identifier in the protocol data unit; and searching for an object related to the object identifier in the management information base.
- 5. The method of claim 3, wherein the request is one of a series of related requests.
- 6. The method of claim 5, wherein saving the pre-calculated object identifier includes saving the pre-calculated object identifier in a table of pre-calculated object identifiers, whereby pre-calculated object identifiers can be saved for more than one series of related requests.
- 7. The method of claim 5, wherein saving the pre-calculated response includes saving the pre-calculated response in a table of pre-calculated responses, whereby pre-calculated responses can be saved for more than one series of related requests.
- 8. A computer-readable storage medium storing instructions that when executed by a computer cause the computer to perform a method to facilitate fast network management protocol replies in large tables, the method comprising:
receiving a request for a next row in a network management protocol table; comparing an object identifier in the request with a pre-calculated object identifier; and if the object identifier matches the pre-calculated object identifier,
responding to the request with a pre-calculated response, otherwise
searching a management information base for the next row in the network management protocol table, calculating a response, wherein the response includes data from requested columns of the next row, and responding to the request with the response.
- 9. The computer-readable storage medium of claim 8, wherein receiving the request for the next row from the network management protocol table includes:
locating a protocol data unit in the request; and determining the object identifier within the protocol data unit.
- 10. The computer-readable storage medium of claim 9, the method further comprising:
before responding to the request with the pre-calculated response or responding to the request with the response,
selecting a candidate next row in the network management protocol table, creating the pre-calculated object identifier for the candidate next row, saving the pre-calculated object identifier, creating the pre-calculated response for the candidate next row, wherein the pre-calculated response includes data from requested columns of the candidate next row, and saving the pre-calculated response.
- 11. The computer-readable storage medium of claim 10, wherein determining the next row in the network management protocol table includes:
decoding the object identifier in the protocol data unit; and searching for an object related to the object identifier in the management information base.
- 12. The computer-readable storage medium of claim 10, wherein the request is one of a series of related requests.
- 13. The computer-readable storage medium of claim 12, wherein saving the pre-calculated object identifier includes saving the pre-calculated object identifier in a table of pre-calculated object identifiers, whereby pre-calculated object identifiers can be saved for more than one series of related requests.
- 14. The computer-readable storage medium of claim 12, wherein saving the pre-calculated response includes saving the pre-calculated response in a table of pre-calculated responses, whereby pre-calculated responses can be saved for more than one series of related requests.
- 15. An apparatus that facilitates fast network management protocol replies in large tables, comprising:
a receiving mechanism that is configured to receive a request for a next row in a network management protocol table; a comparing mechanism that is configured to compare an object identifier in the request with a pre-calculated object identifier; a responding mechanism that is configured to respond to the request with a pre-calculated response; a searching mechanism that is configured to search a management information base for the next row in the network management protocol table; a calculating mechanism that is configured to calculate a response, wherein the response includes data from requested columns of the next row; and wherein the responding mechanism is further configured to respond to the request with the response.
- 16. The apparatus of claim 15, further comprising:
a locating mechanism that is configured to locate a protocol data unit in the request; and a determining mechanism that is configured to determine the object identifier within the protocol data unit.
- 17. The apparatus of claim 16, further comprising:
a selecting mechanism that is configured to select a candidate next row in the network management protocol table; a creating mechanism that is configured to create the pre-calculated object identifier for the candidate next row; a saving mechanism that is configure to save the pre-calculated object identifier; wherein the creating mechanism is further configured to create the pre-calculated response for the candidate next row, wherein the pre-calculated response includes data from requested columns of the candidate next row; and wherein the saving mechanism is further configured to save the pre-calculated response.
- 18. The apparatus of claim 17, further comprising:
a decoding mechanism that is configured to decode the object identifier in the protocol data unit; and wherein the searching mechanism is further configured to search for an object related to the object identifier in the management information base.
- 19. The apparatus of claim 17, wherein the request is one of a series of related requests.
- 20. The apparatus of claim 19, wherein saving the pre-calculated object identifier includes saving the pre-calculated object identifier in a table of pre-calculated object identifiers, whereby pre-calculated object identifiers can be saved for more than one series of related requests.
- 21. The apparatus of claim 19, wherein saving the pre-calculated response includes saving the pre-calculated response in a table of pre-calculated responses, whereby pre-calculated responses can be saved for more than one series of related requests.
RELATED APPLICATION
[0001] The subject matter of this application is related to the subject matter in a co-pending non-provisional application by Jeffrey Y. Sternin entitled, “Method and Apparatus to Facilitate Accessing Network Management Protocol Tables,” having serial number TO BE ASSIGNED, and filing date TO BE ASSIGNED (Attorney Docket No. NA01-10801).