Tracking distributed data retrieval in a network device
First Claim
1. A method of of tracking distributed statistical data retrieval in a network device including a plurality of cards each executing at least one statistical data gathering process, comprising:
- a. registering with a central process a data type identifier corresponding to each type of statistical data to be gathered by each statistical data gathering process;
b. establishing at the central process a list for each different data type identifier, wherein each list includes a process identification corresponding to each statistical data gathering process that registered the corresponding data type identifier;
c. gathering statistical data through each of the statistical data gathering processes, wherein each of the gathered statistical data corresponds to one of the data tape identifiers registered with the central process;
d. sending the gathered statistical data and corresponding data type identifier from each statistical data gathering process to the central process;
e. combining received statistical data corresponding to each data type identifier into a common data file corresponding to each data type identifier;
f. closing the common data file for each data type identifier when each statistical data gathering process in the list corresponding to each data type identifier has sent statistical data corresponding to the data type identifier;
g. repeating steps c. through f. periodically;
h. starting a timer for each common data file;
i. detecting an expiration of one of the timers corresponding to one of the common data files if at least one of the statistical data gathering processes in the list corresponding to the common data file does not send its gathered statistical data;
j. closing the common data file;
k. incrementing a count corresponding to the common data file and the statistical data gathering process that did not send its gathered statistical data;
l. determining whether the count exceeds a predetermined threshold;
m. deleting the statistical data gathering process that did not send its gathered statistical data from the list corresponding to the common data file if the count exceeds the predetermined threshold; and
wherein repeating steps c. through f. periodically further comprises repeating steps h. through m. periodically.
7 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a method and apparatus for tracking distributed statistical data retrieval in a network device. Periodically, statistical data is gathered by processes on one or more remote cards in a network device and transferred to a central process. The distributed processes register each different type of statistical data to be gathered with the central process allowing the central process to maintain an accurate inventory of distributed processes expected to send particular statistical data. Tracking statistical data gathering processes allows the central process to consistently report data while allowing each process to remain modular. In addition, tracking increases a network device'"'"'s scalability. For example, new processes may be added to a network device without affecting existing processes. Moreover, tracking increases a network device'"'"'s availability. For instance, tracking provides fault tolerance, such that if one statistical data gathering process fails the other statistical data gathering processes are not affected and data continues to be reported. Importantly, data not reported by a registered process may be quickly detected and, where necessary, reported to a network management system. Tracking also provides for auto deregistration, for example, when hot swapping of cards out of a network device, tracking deregisters processes as necessary.
278 Citations
13 Claims
-
1. A method of of tracking distributed statistical data retrieval in a network device including a plurality of cards each executing at least one statistical data gathering process, comprising:
-
a. registering with a central process a data type identifier corresponding to each type of statistical data to be gathered by each statistical data gathering process;
b. establishing at the central process a list for each different data type identifier, wherein each list includes a process identification corresponding to each statistical data gathering process that registered the corresponding data type identifier;
c. gathering statistical data through each of the statistical data gathering processes, wherein each of the gathered statistical data corresponds to one of the data tape identifiers registered with the central process;
d. sending the gathered statistical data and corresponding data type identifier from each statistical data gathering process to the central process;
e. combining received statistical data corresponding to each data type identifier into a common data file corresponding to each data type identifier;
f. closing the common data file for each data type identifier when each statistical data gathering process in the list corresponding to each data type identifier has sent statistical data corresponding to the data type identifier;
g. repeating steps c. through f. periodically;
h. starting a timer for each common data file;
i. detecting an expiration of one of the timers corresponding to one of the common data files if at least one of the statistical data gathering processes in the list corresponding to the common data file does not send its gathered statistical data;
j. closing the common data file;
k. incrementing a count corresponding to the common data file and the statistical data gathering process that did not send its gathered statistical data;
l. determining whether the count exceeds a predetermined threshold;
m. deleting the statistical data gathering process that did not send its gathered statistical data from the list corresponding to the common data file if the count exceeds the predetermined threshold; and
wherein repeating steps c. through f. periodically further comprises repeating steps h. through m. periodically. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. The method of of tracking distributed statistical data retrieval in a network device including a plurality of cards each executing at least one statistical data gathering process, comprising:
-
a. registering with a central process a data type identifier corresponding to each type of statistical data to be gathered by each statistical data gathering process;
b. establishing at the central process a list for each different data type identifier, wherein each list includes a process identification corresponding to each statistical data gathering process that registered the corresponding data type identifier;
c. gathering statistical data through each of the statistical data gathering processes, wherein each of the gathered statistical data corresponds to one of the data type identifiers registered with the central process;
d. sending the gathered statistical data and corresponding data type identifier from each statistical data gathering process to the central process;
e. combining received statistical data corresponding to each data type identifier into a common data file corresponding to each data type identifier;
f. closing the common data file for each data type identifier when each statistical data gathering process in the list corresponding to each data type identifier has sent statistical data corresponding to the data type identifier;
g. repeating steps c. through f. periodically;
adding a statistical data gathering process to one of the plurality of cards;
registering with the central process a data type identifier corresponding to each type of statistical data to be gathered by the newly added statistical data gathering process;
adding at the central process a process identification corresponding to the newly added statistical data gathering process to any of the existing lists which correspond to any of the data type identifiers registered by the newly added statistical data gathering process;
establishing at the central process a new list for each different data type identifier registered by the newly added statistical data gathering process and not corresponding to any of the existing lists; and
wherein repeating steps c. through f. periodically includes the newly added statistical data gathering process.
-
Specification