Summary of the invention
In view of this, main purpose of the present invention is the management method and the system that provide a kind of multiple network element device, when solving the multiple network element device of management, because network management service lacks scheduling to command request, network element device burden is strengthened, command request can not be effectively addressed, and operating personnel can not understand the problem of operating result targetedly.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of management method of multiple network element device, described method comprises:
Network management service is numbered the command request received, and the command request after numbering is saved in respectively in the command request queue of corresponding each network element device and waits for scheduling;
Command request in the queue of regular schedule command request, resolves and sends to corresponding network element device;
The operation of network element device fill order request, return operating result and be kept in network management service, network management service returns operating result according to the needs of NM client to it.
Wherein, described by numbering after command request be saved in command request queue, also comprise:
Receive the command request after numbering, if judge the command request do not processed, and the command request to be scheduled such as not, then the command request after numbering resolved and sent, otherwise judging whether the length of command request queue exceedes the length of regulation, if do not exceeded, then command request is saved in successively in command request queue, if exceeded, then ignore the command request after described numbering, and operating result is kept in network management service.
Wherein, in the process to be scheduled such as described, also comprise: start timer, work as timer expired, and etc. command request to be scheduled when not also being scheduled, delete described command request, and operating result be kept in network management service.
Wherein, command request in the queue of described regular schedule command request, resolves and sends to corresponding network element device, specifically according to the time cycle of presetting, regularly the command request being arranged in command request queue queue heads is recalled, resolve and send to corresponding network element device.
Wherein, described operating result comprises: the numbering of command request, corresponding network element device mark and object information.
Wherein, the described needs according to NM client return operating result to it, comprise: in the reading result request that network management service sends according to NM client, the numbering of the command request comprised, and/or network element device mark, and/or object information, retrieve and return operating result, or network management service is according to the tactful auto-returned operating result preset.
Present invention also offers a kind of management system of multiple network element device, described system comprises: NM client, network management service and network element device, wherein,
Described NM client, for command request is sent to network management service, display operating result;
Described network management service, for being numbered the command request received, command request after numbering is saved in the command request queue of corresponding each network element device respectively and waits for scheduling, command request in the queue of regular schedule command request, resolve and send to corresponding network element device, preserve operating result, the needs according to NM client return operating result to it;
Described network element device, for the operation of fill order request, returns operating result to network management service.
Wherein, described network management service, also for obtain number after command request after, if judge the command request do not processed, and the command request to be scheduled such as not, then the command request after numbering is resolved and sent, otherwise judge whether the length of command request queue exceedes the length of regulation, if do not exceeded, then command request is saved in successively in command request queue, if exceeded, then ignore the command request after described numbering, and operating result is kept in network management service.
Wherein, described network management service, also for, start timer when waiting for scheduling, work as timer expired, and etc. command request to be scheduled when not also being scheduled, delete described command request, and operating result be kept in network management service.
Wherein, command request in the queue of described network management service regular schedule command request, resolves and sends to corresponding network element device, specifically according to the time cycle of presetting, regularly the command request being arranged in command request queue queue heads is recalled, resolve and send to corresponding network element device.
The management method of multiple network element device provided by the present invention and system, be numbered the command request received by network management service, the command request after numbering is saved in respectively in the command request queue of corresponding each network element device and waits for scheduling; Command request in the queue of regular schedule command request, resolves and sends to corresponding network element device; The operation of network element device fill order request, return operating result and be kept in network management service, network management service returns operating result according to the needs of NM client to it.Make operating personnel only need shirtsleeve operation just to achieve concurrent management to multiple network element device, the command request unification for each network element device carries out automatic dispatching by network management service; And can check targetedly operating result.Wherein, method and system of the present invention breaches the thinking of single command request queue, for different network elements equipment opens up separately command request queue.When a network element device can be avoided like this to send command request obstruction, affect other network element device.
Further, the message queue quantity of each network element device is limited in method and system of the present invention, on the one hand a large amount of message can be avoided to pile up in network management service and network element device, on the other hand can alert as early as possible, avoid the wait that operating personnel are unnecessary.
Further, timing is carried out to sending command request each time in method and system of the present invention, make due to reasons such as network reason or network element device exceptions, the long-time situation about not responding caused is resolved, avoid waiting as long for of the waste of system resource and operating personnel, can also investigate as early as possible and be out of order, be conducive to operating personnel's management.
Embodiment
For a better understanding of the present invention, first introduce the basic structure of existing network element managing system, Fig. 1 is the basic structure schematic diagram of network element managing system, as shown in Figure 1, described system comprises: NM client 11, network management service 12 and network element device 13, wherein
Described NM client 11, for command request is sent to network management service 12, display operating result;
Concrete, described NM client 11 is supplied to operating personnel patterned interface.By control and the input of operating personnel, according to the action need to network element device 13, generate command request, then command request is sent to network management service 12 by described NM client 11.Described NM client 11 receives the operating result of network management service 12, is shown to operating personnel.
Described network management service 12, for command request is sent to network element device 13, returns to networking client 11 by operating result;
Concrete, command request transmitted in parallel can be given multiple network element device 13 of the same type by described network management service 12.
Described network element device 13, for operating according to described command request, returns to network service end 12 by operating result.
Basic thought of the present invention is that network management service is numbered the command request received, and the command request after numbering is saved in respectively in the command request queue of corresponding each network element device and waits for scheduling; Command request in the queue of regular schedule command request, resolves and sends to corresponding network element device; The operation of network element device fill order request, return operating result and be kept in network management service, network management service returns operating result according to the needs of NM client to it.
Below in conjunction with the drawings and specific embodiments, the technical solution of the present invention is further elaborated.
Fig. 2 is the management method schematic flow sheet of a kind of multiple network element device of the present invention, and as shown in Figure 1, the management method of described network element device comprises the following steps:
Step 201, network management service is numbered the command request received, and the command request after numbering is saved in respectively in the command request queue of corresponding each network element device and waits for scheduling;
Concrete, described in the command request that receives sent by NM client, comprising: command request for the mark of one or more network element devices, and command messages parameter.When command request is for multiple network element device of the same type, command request builds in the mode of list, i.e. a corresponding multiple network element device mark of command messages parameter.Describedly the command request specifically received for each is numbered to command request distributes a task number, and task number is added in command request, obtain the command request after numbering.Further, while being added to by task number in command request, task number is returned to NM client.In order to when operating personnel need the operating result searched for certain command request, can be searched targetedly by task number.
The described command request queue being saved in corresponding each network element device, specifically according to the network element device mark in command request, is saved in command request in the command request queue of corresponding each network element device successively.Further, described by numbering after command request be saved in the process of command request queue, also comprise:
Step 201a, receives the command request after numbering, and whether judge currently has the command request processed, if not, performs step 201b, if had, performs step 201c;
Step 201b, judges command request to be scheduled such as whether having in command request queue, if had, then performs step 201c, if do not had, then resolves the command request after numbering and sends;
Step 201c, judge whether the length of command request queue exceedes the length of regulation, if do not exceeded, then command request is saved in successively in command request queue, if exceeded, then ignore the command request after described numbering, and will ignore operation be kept in network management service as operating result.
Concrete, described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is for ignoring operation.
Further, described step 201 etc. in process to be scheduled, also comprise: start timer, work as timer expired, and etc. command request to be scheduled when not also being scheduled, delete described command request, and deletion action be kept in network management service as operating result.
Concrete described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is deletion action.
Step 202, the command request in the queue of regular schedule command request, resolves and sends to corresponding network element device;
Concrete, command request in the queue of described regular schedule command request, resolves and sends to corresponding network element device, specifically according to the time cycle of presetting, regularly the command request being arranged in command request queue queue heads is recalled, resolve and send to corresponding network element device.Wherein, the time cycle of presetting can be set as the average time that command request is resolved and sent, or sets according to the disposal ability of system.Have if current and resolving and the command request sent, then do not dispatch.Describedly send to corresponding network element device specifically by the command request transmitter transmitted in parallel of each network element device of correspondence.
Step 203, the operation of network element device fill order request, return operating result and be kept in network management service, the needs according to NM client return operating result to it.
Concrete, described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is the result of network element device.The described needs according to NM client return operating result to it, comprise: in the reading result request that network management service sends according to NM client, the numbering of the command request comprised, and/or network element device mark, and/or object information, retrieve and return operating result, or network management service is according to the tactful auto-returned operating result preset.Wherein, described default strategy is arranged network management service as required by NM client, and the strategy of setting is: according to the numbering of the command request of coupling, and/or network element device mark, and/or object information carries out retrieving and returning operating result.The described two kinds of modes returning operating result are such as: when operating personnel only need the operating result about network element device 1, the reading result request of the mark comprising network element device 1 can be sent, the all operations result that network management service then retrieves network element device 1 returns to networking client, also the mark of network element device 1 can be set to the strategy returning operating result, network management service then according to strategy by all operations result auto-returned of network element device 1 to networking client; When operating personnel need about network element device 1 for be numbered 8 the operating result of command request time, can send the mark that comprises network element device 1 and command request be numbered 8 the request of reading result, the operating result that network management service then retrieves No. 8 command request of network element device 1 returns to networking client, also the mark of network element device 1 and command request can be numbered 8, be set to the strategy returning operating result, the operating result of network element device 1 No. 8 command request is then returned to networking client according to strategy by network management service.
Fig. 3 is the management system structural representation of a kind of multiple network element device of the present invention, and as shown in Figure 3, the management system of described network element device comprises: NM client 31, network management service 32 and multiple network element device 33, wherein,
Described NM client 31, for command request is sent to network management service 32, display operating result;
Concrete, the command request that described NM client 31 sends comprises: command request for the mark of one or more network element devices 33, and command messages parameter.When command request is for multiple network element device 33 of the same type, command request builds in the mode of list, i.e. a corresponding multiple network element device mark of command messages parameter.
Described network management service 32, for being numbered the command request received, command request after numbering is saved in the command request queue of corresponding each network element device respectively and waits for scheduling, command request in the queue of regular schedule command request, resolve and send to corresponding network element device 33, preserve operating result, the needs according to NM client 31 return operating result to it;
Concrete, described network management service 32 pairs of command request are numbered the command request specifically received for each and distribute a task number, and add in command request by task number, obtain the command request after numbering.Further, while being added to by task number in command request, task number is returned to NM client 31.In order to when operating personnel need the operating result searched for certain command request, can be searched targetedly by task number.The described command request queue being saved in corresponding each network element device, specifically according to the network element device mark in command request, is saved in command request in the command request queue of corresponding each network element device 33 successively.
Further, described network management service 32, also for the command request after numbering is saved in the process of command request queue, namely after obtaining the command request after numbering, if judge the command request do not processed, and the command request to be scheduled such as not, then the command request after numbering is resolved and sent, otherwise judge whether the length of command request queue exceedes the length of regulation, if do not exceeded, then command request is saved in successively in command request queue, if exceeded, then ignore the command request after described numbering, and will ignore operation be kept in network management service 32 as operating result.Wherein, described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is for ignoring operation.Further, in the processes to be scheduled such as described network management service 32, also for, start timer, work as timer expired, and etc. command request to be scheduled when not also being scheduled, delete described command request, and deletion action is kept in network management service 32 as operating result.Wherein, described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is deletion action.
Command request in the queue of described network management service 32 regular schedule command request, resolve and send to corresponding network element device, specifically according to the time cycle of presetting, regularly the command request being arranged in command request queue queue heads is recalled, resolve and send to corresponding network element device 33.Wherein, the time cycle of presetting can be set as the average time that command request is resolved and sent, or sets according to the disposal ability of system.Have if current and resolving and the command request sent, then do not dispatch.Describedly send to corresponding network element device 33 specifically by the command request transmitter transmitted in parallel of each network element device of correspondence.
The described needs according to NM client 31 return operating result to it, comprise: in the reading result request that network management service 32 sends according to NM client 31, the numbering of the command request comprised, and/or network element device mark, and/or object information, retrieve and return operating result, or network management service 32 is according to the tactful auto-returned operating result preset.Wherein, described default strategy is arranged network management service 32 as required by NM client 31, the strategy arranged is: according to the numbering of the command request of coupling, and/or network element device mark, and/or object information carries out retrieving and returning operating result.
Described network element device 33, for the operation of fill order request, returns operating result to network management service 32.
Concrete, described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is the result of network element device.
Fig. 4 is the internal structure schematic diagram of network management service of the present invention, as shown in Figure 4, also comprise in described network management service 32: command request distributor 321, logic reader 322, command request scheduler 323, command request transmitter 324 and operating result storage pool 325, wherein
Described command request distributor 321, for being numbered the command request received, being saved in the command request after numbering respectively in the logic reader 322 of corresponding each network element device 33 and waiting for scheduling;
Concrete, described command request distributor 321 pairs of command request are numbered the command request specifically received for each and distribute a task number, and add in command request by task number, obtain the command request after numbering.Further, while being added to by task number in command request, task number is returned to NM client 31.In order to when operating personnel need the operating result searched for certain command request, can be searched targetedly by task number.Describedly be saved in the logic reader 322 of corresponding each network element device 33, specifically according to the network element device mark in command request, command request be saved in successively in the logic reader 322 of corresponding each network element device 33.
Described logic reader 322, for preserving the command request queue of corresponding each network element device 33 and currently resolving and the command request sent;
Concrete, network management service 32 comprises one or more logic reader 322, for two logic readers 322 in the present embodiment, the corresponding network element device 33 of each logic reader 322, and described logic reader 322 comprises: command request Queue module 41 and the current command request module 42.Described command request Queue module 41 possesses the length of regulation, namely can only preserve the command request of some.Current parsing and the command request sent is saved in described the current command request module 42.
Further, described logic reader 322, also for receiving the command request after numbering, if judge there is no command request in described the current command request module 42, and the command request to be scheduled such as not in described command request Queue module 41, then the command request after numbering is saved in the current command request module 42 and carries out resolving and sending, otherwise judge whether the length of the medium command request queue to be scheduled of command request Queue module 41 exceedes the length of regulation, if do not exceeded, then command request is saved in successively in command request queue, if exceeded, then ignore the command request after described numbering, and will ignore operation be saved in operating result storage pool 325 as operating result.Wherein, described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is for ignoring operation.In the processes to be scheduled such as described logic reader 322, also comprise: start timer, work as timer expired, and etc. command request to be scheduled when not also being scheduled, delete described command request, and deletion action is saved in operating result storage pool 325 as operating result.Wherein, described operating result comprises: the numbering of command request, corresponding network element device mark and object information, now object information is deletion action.
Described command request scheduler 323, for the command request in regular schedule logic reader 322, resolves command request and sends to command request transmitter 324;
Concrete, command request in described command request scheduler 323 regular schedule logic reader 322, command request is resolved and sends to command request transmitter 324, specifically according to the time cycle of presetting, regularly the command request being arranged in command request Queue module 41 queue heads is recalled, be saved in the current command request module 42 and command request scheduler 323, and command request resolved and sends to command request transmitter 324.Wherein, the time cycle of presetting can be set as the average time that command request is resolved and sent, or sets according to the disposal ability of system.Resolving and the command request sent if existing in the current command request module 42, then do not dispatching.
Described command request transmitter 324, for sending to corresponding network element device 33 by the command request after parsing;
Concrete, described in send to corresponding network element device 33 specifically by command request transmitter 324 transmitted in parallel of each network element device of correspondence.
Described operating result storage pool 325, for preserving operating result, the needs according to NM client 31 return operating result to it.
Concrete, described operating result storage pool 325 returns operating result according to the needs of NM client 31 to it, comprise: in the reading result request that described operating result storage pool 325 sends according to NM client 31, the numbering of the command request comprised, and/or network element device mark, and/or object information, retrieve and return operating result, or described operating result storage pool 325 is according to the tactful auto-returned operating result preset.Wherein, described default strategy is arranged described operating result storage pool 325 as required by NM client 31, the strategy arranged is: according to the numbering of the command request of coupling, and/or network element device mark, and/or object information carries out retrieving and returning operating result.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention, and all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.