# US 2005/0240666 A1 · Scheduling method for polling device data

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

- Number: US 2005/0240666 A1
- Document ID: US20050240666A1
- Status: Published application
- Kind: A1
- Application number: 10/523,270
- Filed: 2003-09-22
- Published: 2005-10-27
- Earliest claimed: 2002-09-23
- Assignees: Huawei Technologies Co., Ltd.
- Inventors: Jinsong Xu; Yi Song; Hui Zhao; Qing Dong; Yuanxiang Chen
- Web page: https://patentgrep.com/patent/US20050240666A1

## CPC

- H04L 12/403: with centralised control, e.g. polling
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The invention discloses a dispatching method for polling device data. The method comprises the steps of: sorting managed devices according to their types, sorting various types of data of each device so as to form different modules, and assigning a priority attribute and a polling period attribute to each module; dividing the managed devices into two sets: one set consisting of devices to be polled and the other set consisting of devices whose connection states need to be detected; and polling each module in the set consisting of devices to be polled according to its priority and polling period periodically. With this invention, different polling periods can be set and different polling policies can be applied according to data changeability. In addition, polling policies can be changed in real time and flexibly based on the condition of devices. Furthermore, all devices in the network management system are dispatched jointly, so total system load and network load of the network management system can be controlled effectively, and the system resources can be used reasonably.

## Claims

### Claim 1

A dispatching method for polling device data, comprising the steps of:
1) sorting managed devices according to their types, sorting various types of data of each device so as to form different modules, and assigning a priority attribute and a polling period attribute to each module;
2) dividing the managed devices into two sets: one set consisting of devices to be polled and the other set consisting of devices whose connection states need to be detected; and
3) polling each module in the set consisting of devices to be polled according to its priority and polling period periodically.

### Claim 2 (depends on 1)

The method of claim 1, step 3) further comprising:
forming a current polling task queue according to said periodical polling, and dispatching the polling through the current polling task queue;
wherein the data items for describing the current polling task queue include task ID, occupied flag, module ID, device ID, activation time and priority; said activation time is the current time in the case of inserting a task and will be updated when a report about executing situation of the task sent from daemons has been received; said occupied flag is set free after a corresponding message showing the polling task has been completed is received or the polling task is overtimed.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
setting a maximum number of polling tasks;
wherein the current polling task queue is generated according to said maximum number of polling tasks.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
setting a polling initiating time for system;
wherein the periodical polling is implemented based on said polling initiating time plus a polling interval.

### Claim 5 (depends on 4)

The method of claim 4, wherein the polling period attribute of a module is a multiple of a polling interval, equaling to a multiple of the interval between the periodical system polling in step 3).

### Claim 6 (depends on 5)

The method of claim 5, step 1) further comprising the step of generating a data structure for describing device type after sorting managed devices according to their types and sorting various types of data of each device so as to form different modules, wherein the data items for describing the data structure include device type, module ID, priority, polling interval multiple and corresponding daemon ID.

### Claim 7 (depends on 6)

The method of claim 6, wherein said set of devices to be polled is a current operation device set and the data items for describing this set include device ID, module ID, device type and the last polling time;
said set of devices whose connection states need to be detected is a current display device set and the data items for describing this set include device ID and connection state.

### Claim 8 (depends on 7)

The method of claim 7, wherein the step of dispatching the polling through the current polling task queue comprises:
a. setting said polling initiating time at the summation of the current time plus a polling interval;
b. determining whether there is a free task in the current polling task queue based on the occupied flag; if so, continuing the process, otherwise returning to step b;
c. selecting the next device module to be polled from the current operation device set; and
d. determining whether the information obtained in step c is Null or not; if not, assigning a task ID to the selected device module and inserting the task ID into the current polling task queue, and simultaneously sending a message for initiating the polling of said device module to the corresponding daemon process, then returning to step b; if so, determining whether all tasks in the current polling task queue are in free state, if all tasks are in free state, ending the process, otherwise returning to step b.

### Claim 9 (depends on 8)

The method of claim 8, step c further comprising:
c1. selecting the next device module;
c2. determining whether [(the current time−the last polling time)/polling interval multiple of the module] is greater than or equal to the system polling interval, if so, continuing the process, otherwise going to step c4; and
c3. determining whether there is a module with higher priority of the same device being polled in the current polling task queue; if so, returning to step c1, otherwise returning the device module information and ending step c; or
c4. determining whether said polling interval multiple is greater than one; if so, returning to step c1, otherwise returning a message of NULL and ending step c.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
4) selecting sequentially a device from the set consisting of devices whose connection states need to be detected and making ping operation for the device; wherein the success of ping operation shows said device is connected to the network management system and failure of ping operation shows said device is not connected to the network management system; if the connection state of said device is changed, notifying other daemons and foregrounds about this condition.
