CN113014624A - Equipment data configuration method and system - Google Patents

Equipment data configuration method and system Download PDF

Info

Publication number
CN113014624A
CN113014624A CN202110172655.7A CN202110172655A CN113014624A CN 113014624 A CN113014624 A CN 113014624A CN 202110172655 A CN202110172655 A CN 202110172655A CN 113014624 A CN113014624 A CN 113014624A
Authority
CN
China
Prior art keywords
configuration
task
tasks
sub
target configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110172655.7A
Other languages
Chinese (zh)
Other versions
CN113014624B (en
Inventor
熊瑛
刘爱玲
熊海潮
胡涛
喻辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Hongxin Technology Development Co Ltd
Original Assignee
Wuhan Hongxin Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Hongxin Technology Development Co Ltd filed Critical Wuhan Hongxin Technology Development Co Ltd
Priority to CN202110172655.7A priority Critical patent/CN113014624B/en
Publication of CN113014624A publication Critical patent/CN113014624A/en
Application granted granted Critical
Publication of CN113014624B publication Critical patent/CN113014624B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a system for configuring equipment data, wherein the method comprises the following steps: receiving configuration data of equipment sent by an operation terminal according to a submission operation of a user, and acquiring a configuration task type corresponding to the submission operation and a target configuration task corresponding to the configuration task type and comprising a plurality of sub-stages; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task; distributing the configuration data to each sub-stage according to a preset incidence relation between the configuration data and each sub-stage task of the target configuration task; and sequentially executing the tasks of each sub-stage according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage. The invention can complete the data configuration of the equipment only by configuring the data once, and can configure a plurality of pieces of equipment simultaneously, thereby improving the data configuration efficiency of the equipment.

Description

Equipment data configuration method and system
Technical Field
The present invention relates to the field of network management technologies, and in particular, to a method and a system for configuring device data.
Background
In the communication industry, equipment monitoring is an important management function of an equipment management system, and timely, reliable and detailed equipment management data can be provided for each operation department. Particularly, when data configuration, station opening, cutover, maintenance and network optimization are performed on the device, a large amount of parameters of the device and network element data need to be modified. When data is updated for a plurality of devices, the operation of the related user interface is various, and the interaction process between the user and the devices is complex and changeable, so that the updating of the configuration data of the devices is a tedious task.
At present, a common method for monitoring and managing equipment is to query configuration parameters of the equipment by using a general task mode and then set the configuration parameters, for example, by using a script task of a configuration command, querying or setting the equipment parameters in batches, and downloading or uploading a file task in batches. In some cases, in the process of configuring data for the device, the device needs to collect parameter data to the network management system first, then the system performs analysis, calculation and processing according to the data collected by the device, and finally configures the result data to the device. Such as the situation of first query and then setting in command processing, the situation of first upload and then download in file processing, the situation of query, calculation, optimization and setting in network optimization, etc. The configuration process is characterized by multiple stages, and the execution result of each stage has dependency relationship.
In a general task mode, when a multi-stage configuration task is processed, a user configures parameters for the task for one stage at a time. And after the configuration of the configuration task at the stage is successful, setting parameters for the configuration task at the next stage. The data configuration time of the equipment is long, and the efficiency is low.
Disclosure of Invention
The invention provides a device data configuration method and a device data configuration system, which are used for overcoming the defect that multiple configurations are needed when a multi-stage configuration task is processed in the prior art and realizing more efficient and faster device data configuration.
The invention provides a device data configuration method, which comprises the following steps:
receiving configuration data of equipment sent by an operation terminal according to a submission operation of a user, and acquiring a configuration task type corresponding to the submission operation and a target configuration task corresponding to the configuration task type and comprising a plurality of sub-stages; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task;
distributing the configuration data to each sub-stage according to a preset incidence relation between the configuration data and each sub-stage task of the target configuration task;
and sequentially executing the tasks of each sub-stage according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage.
According to the device data configuration method provided by the invention, the task of each sub-stage is sequentially executed according to the preset sequence, and the method comprises the following steps:
calling a plurality of threads;
distributing each target configuration task to a corresponding task processing thread according to the weight of the target configuration task corresponding to each submission operation;
and sequentially executing the tasks of the sub-stages in each target configuration task according to a preset execution sequence by using the thread distributed by each target configuration task.
According to the device data configuration method provided by the present invention, according to the weight of the target configuration task corresponding to each submission operation, each target configuration task is allocated to a corresponding task processing thread, and the method further includes:
acquiring the total number of the equipment configured by each target configuration task and the total number of the command numbers executed by all the equipment when all the equipment is configured;
and calculating the weight of each target configuration task according to the total number and the total number.
According to the device data configuration method provided by the present invention, the allocating each target configuration task to a corresponding task processing thread according to the weight of the target configuration task corresponding to each commit operation includes:
acquiring the maximum value of the number of the configuration tasks in the queues of all the threads, multiplying the maximum value by the number of the threads, and then subtracting the total number of the configuration tasks in the queues of all the threads;
and comparing the subtraction result with the number of the target configuration tasks, and distributing each target configuration task to a corresponding thread according to the comparison result and the weight of each target configuration task.
According to the device data configuration method provided by the present invention, the allocating each target configuration task to a corresponding task processing thread according to the comparison result and the weight of each target configuration task includes:
if the subtraction result is less than or equal to the number of the target configuration tasks, circularly allocating the target configuration tasks with the largest unassigned weight to the threads with the smallest number of the current configuration tasks in the queue until the number of the current configuration tasks in the queue of each thread reaches the maximum value;
and distributing the residual unallocated target configuration tasks to each thread evenly.
According to the device data configuration method provided by the present invention, the allocating each target configuration task to a corresponding task processing thread according to the comparison result and the weight of each target configuration task includes:
if the subtraction result is larger than the number of the target configuration tasks, circularly subtracting 1 from the maximum value of the number of the current configuration tasks in the queues of all threads, multiplying the maximum value by the number of the threads, and subtracting the total number of the configuration tasks in the queues of all threads until the subtraction result is smaller than or equal to the number of the target configuration tasks;
distributing the target configuration tasks with the largest unassigned weight to the threads with the least number of current configuration tasks in the queue until the number of current configuration tasks in the queue of each thread reaches the maximum value after the last iteration;
and distributing the residual unallocated target configuration tasks to each thread evenly.
According to the device data configuration method provided by the invention, each sub-stage task is executed in sequence according to a preset sequence, and the method further comprises the following steps:
and if any sub-phase task fails to be executed, jumping to a specified sub-phase task after the sub-phase task is executed.
The invention also provides a device data configuration system, comprising:
the acquisition module is used for receiving configuration data of equipment sent by an operation terminal according to submission operation of a user and acquiring a configuration task type corresponding to the submission operation and a target configuration task corresponding to the configuration task type; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the configuration task;
the distribution module is used for distributing the configuration data to the sub-stage tasks according to the preset incidence relation between the configuration data and the sub-stage tasks;
and the execution module is used for sequentially executing each sub-stage task according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage task.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of any one of the device data configuration methods.
The invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the device data configuration method as any one of the above.
According to the equipment data configuration method and system provided by the invention, the target configuration task is obtained according to the submitting operation on the operation terminal, the equipment configuration data submitted by the operation terminal is distributed to each sub-stage task of the target configuration task, each sub-stage task is automatically executed according to the service logic, the data configuration of the equipment can be completed only by configuring data once, and meanwhile, a plurality of pieces of equipment can be configured, so that the configuration efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a device data configuration method provided by the present invention;
FIG. 2 is a flow diagram illustrating a design implementation of a device data configuration method provided by the present invention;
FIG. 3 is a schematic structural diagram of a device data configuration system provided by the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes a device data configuration method according to an embodiment of the present invention with reference to fig. 1. The equipment data configuration method comprises the following steps:
step 101, receiving configuration data of equipment sent by an operation terminal according to a submitting operation of a user, and acquiring a configuration task type corresponding to the submitting operation and a target configuration task comprising a plurality of sub-stages and corresponding to the configuration task type; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task;
the device data configuration method of the embodiment relates to a network management system, which comprises background software and an operation terminal. The operation terminal provides a graphical operation interface for a user, belongs to client software of a network management system, and background software is responsible for managing various network element devices and providing various service management functions; the operation terminal operates and manages various network element devices through background software.
The background software comprises a multi-stage task definition module, a task queue, a task executor and a task self-adaption module. The network management system puts the process of configuring data by the user into the same task to process, and a uniform task driver drives the task to run.
The definition module of the task comprises each sub-phase of the task, an event queue of the sub-phase and a recycle queue of the sub-phase. The task definition module defines various different types of tasks in the network management system, such as a neighboring cell parameter configuration task, a device configuration data migration task, a mobility optimization parameter configuration task, a device License creation, deletion, revocation, uploading and downloading and other different types of tasks.
The task queue is used for storing tasks defined according to configuration data received by background software, and also provides some external operation interfaces, such as deleting a task to be executed, emptying the queue and inquiring the current execution condition of the queue.
The user can input the configuration data of the device through the parameter configuration interface of the operation terminal, and partial configuration parameters of the device can be configured while other configuration parameters are kept unchanged. The configuration data of the device can also be input by means of file import. For example, the data may be input by means of a pre-created excel data file, xml data file, or other data file that can be recognized by the operation terminal. The present invention is not limited to the form in which the configuration data is input by the user.
After a user submits the operation of the equipment configuration data through the operation terminal, the operation terminal reads the configuration data and sends the configuration data to the background software according to a certain form. The data transmission form includes a structure form, a common form, an enumeration form or a class form, and the like. The present embodiment does not limit the data transmission form.
Because the internal database stores the incidence relation between the submission operation and the task type in advance, the background software can inquire the task type corresponding to the submission operation according to the submission operation of the user and construct a target configuration task which comprises a plurality of sub-stages and corresponds to the configuration task type. The multiple sub-stages comprise a stage of processing an operation terminal request, a stage of converting configuration data into a command for equipment identification, a stage of command issuing and equipment responding, and a stage of sending a configuration result to the operation terminal. For different configuration tasks, the sub-phases can be increased or decreased as appropriate according to specific situations. The programs of all the sub-phases of each type of task are fixed, and the visualization operation can be carried out through external task configuration.
It should be noted that, the device for performing data configuration may be one or more devices, may be a network element device, and may also be another device that can be operated by using a network management system, and this embodiment is not limited to the number and the type of the devices.
102, distributing the configuration data to each sub-stage according to a preset incidence relation between the configuration data and each sub-stage of the target configuration task;
according to the incidence relation between each configuration data and the sub-stage task, the background software decomposes the configuration data sent by the operation terminal into different sub-stages, and the configuration data corresponding to each sub-stage is taken as the configuration parameter of the sub-stage and is stored in the sub-stage.
For example, the configuration data may include a device number parameter, a request serial number parameter of the operation terminal, and network element data of the device. Distributing the equipment number parameter and the request serial number parameter of the operation terminal to an operation terminal request processing stage according to the preset incidence relation between the configuration data and the sub-stage, and using the equipment number parameter and the request serial number parameter as configuration parameters of the operation terminal request processing stage; and distributing the network element data of the equipment to a command issuing and equipment responding stage as a configuration parameter of the command issuing and equipment responding stage, thereby completing the parameter configuration of each sub-stage.
And 103, sequentially executing the tasks of each sub-stage according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage.
Wherein the preset sequence of each stage comprises: the method comprises the steps of firstly executing a stage of processing an operation terminal request, then executing a stage of converting configuration data into a command identified by equipment, then executing a stage of command issuing and equipment responding, and finally executing a configuration result and sending the configuration result to an operation terminal.
And in the process of executing the task of each sub-stage, regularly detecting whether the tasks of all the sub-stages are finished by background software at intervals of preset time, and if so, sending the execution result of the target configuration task to the operation terminal. The preset time may be set according to actual conditions, and is, for example, 10 seconds, 20 seconds or 30 seconds. By detecting whether the tasks of all the sub-stages are finished or not at regular time, the management of the target configuration task can be better realized.
In the embodiment, the target configuration task is acquired according to the submitting operation on the operation terminal, the device configuration data submitted by the operation terminal is distributed to each sub-stage task of the target configuration task, each sub-stage task is automatically executed according to the service logic, the data configuration of the device can be completed only by configuring data once, and meanwhile, a plurality of devices can be configured, so that the data configuration efficiency of the device is improved.
On the basis of the foregoing embodiment, in this embodiment, the sequentially executing the tasks of each sub-phase according to a preset sequence includes: calling a plurality of threads; distributing each target configuration task to a corresponding thread according to the weight of the target configuration task corresponding to each submission operation; and sequentially executing the tasks of the sub-stages in each target configuration task according to a preset execution sequence by using the thread distributed by each target configuration task.
Specifically, background software of the network management system needs to start running and load a task engine, a thread pool and a task list in advance before receiving configuration data sent by an operation terminal.
The thread pool comprises a plurality of task processing threads; the task engine comprises an event driving thread and an event queue; the event queue is used for storing configuration data, and the event driving thread is used for acquiring and processing events from the event queue.
The event comprises an event for processing network element data sent by the operation terminal, an event for processing equipment response data and an event for processing other module responses.
When the background software is started, event-driven threads in the task engine are loaded, and meanwhile, a task executor and a task list are also loaded and initialized, wherein the task executor is responsible for initializing task processing threads in the thread pool.
The task executor generally consists of a thread pool containing a plurality of threads, each thread can be allocated to one or more tasks and execute the tasks according to a preset sequence, and after the completion of the tasks, the error of the tasks or the timeout of the tasks occur, the thread continues to execute the next task until all the tasks in the task queue of the thread are emptied. After all tasks in the task queue are emptied, the task queue starts to idle, but does not stop, and the idle continues after sleeping for a period of time.
The target configuration task may be divided into weight levels according to the importance degree of the target configuration task, and may also be divided into weight levels according to other manners.
According to the weight levels, each target configuration task is distributed to the corresponding thread according to a distribution algorithm, and the distribution algorithm can be an average distribution algorithm or other algorithms. The allocation algorithm is not particularly limited in this embodiment.
The preset execution sequence of the thread is preset by the background software, and may be according to the sequence of the task queue from front to back, or other sequences.
On the basis of the foregoing embodiment, in this embodiment, each target configuration task is assigned to a corresponding thread according to the weight of the target configuration task corresponding to each commit operation, and the method further includes: acquiring the total number of the equipment configured by each target configuration task and the total number of the command numbers executed by all the equipment when all the equipment is configured; and calculating the weight of each target configuration task according to the total quantity and the total number.
Specifically, the background software may obtain, according to the configuration data sent by the operation terminal each time, the total number of devices configured by each target configuration task and the total number of command numbers executed by all the devices when all the devices are configured.
The method for calculating the weight may be to calculate the product of the total number and the total number, or may be other calculation methods.
On the basis of the foregoing embodiment, in this embodiment, allocating each target configuration task to a corresponding thread according to the weight of the target configuration task corresponding to each commit operation includes: acquiring the maximum value of the number of the configuration tasks in the queues of all the threads, multiplying the maximum value by the number of the threads, and then subtracting the total number of the configuration tasks in the queues of all the threads; and comparing the subtraction result with the number of the target configuration tasks, and distributing each target configuration task to a corresponding thread according to the comparison result and the weight of each target configuration task.
Specifically, assuming that the number of target configuration tasks is N, the number of threads in the thread pool is M, the number of configuration tasks in a queue of a certain current thread is t (i), and the maximum value of the number of configuration tasks in the queues of all threads is Tmax, then
Tmax=Max(T(i)),i=1,2,…,M;
Taking the maximum value Tmax of the number of the configuration tasks in the queues of all the threads as a reference number of an allocation algorithm, multiplying the reference number by the number of the threads, subtracting the total number of the configuration tasks in the queues of all the threads, and marking as TC, and then obtaining the result
Figure BDA0002939281670000101
And comparing the subtraction result TC with the number N of the target configuration tasks, and distributing each target configuration task to a corresponding thread according to the comparison result and the weight of each target configuration task.
On the basis of the foregoing embodiment, in this embodiment, allocating each target configuration task to a corresponding thread according to the comparison result and the weight of each target configuration task includes: if the subtraction result is less than or equal to the number of the target configuration tasks, distributing the target configuration tasks with the largest unassigned weight to the threads with the smallest number of the current configuration tasks in the queue until the number of the current configuration tasks in the queue of each thread reaches the maximum value; and distributing the residual unallocated target configuration tasks to each thread evenly.
Specifically, if the subtraction result TC is less than or equal to the number N of the target configuration tasks, that is, TC is less than or equal to N, the target configuration tasks are sequentially allocated to the thread pool according to the first allocation policy.
Wherein the first allocation strategy comprises: and sequencing the weight of each target configuration task from high to low, sequencing the threads in the thread pool according to the sequence of the number of the configuration tasks in the queue from small to large, circularly distributing the task with the highest weight in the target configuration tasks to the thread with the least number of the configuration tasks in the queue until the number of the configuration tasks in the queue of each thread is equal to the maximum value Tmax of the number of the configuration tasks in the queue of all threads, and then distributing the rest N-TC target configuration tasks to the thread pool evenly until all the target configuration tasks are completely distributed.
According to the allocation strategy, the tasks can be adaptively allocated to the thread pool, so that the configuration tasks of each thread are allocated evenly, and meanwhile, the time consumed for each thread to execute the configuration tasks is approximately the same.
On the basis of the foregoing embodiment, in this embodiment, allocating each target configuration task to a corresponding thread according to the comparison result and the weight of each target configuration task includes: if the subtraction result is larger than the number of the target configuration tasks, circularly subtracting 1 from the maximum value of the number of the current configuration tasks in the queues of all threads, multiplying the maximum value by the number of the threads, and subtracting the total number of the configuration tasks in the queues of all the threads until the subtraction result is smaller than or equal to the number of the target configuration tasks;
specifically, if the subtraction result TC is greater than the number N of target configuration tasks, that is, TC > N, the maximum value Tmax of the number of configuration tasks in the queue of all threads is subtracted by 1 as a new reference number Tmax', that is, the subtraction result TC is greater than the number N of target configuration tasks, that is, TC > N
Tmax'=Tmax-1;
And after the new reference number is multiplied by the number of the threads, the new total number of the configuration tasks in the queues of all the threads is subtracted and is recorded as TC
Figure BDA0002939281670000111
The difference between the new subtraction result TC 'and N is calculated and compared with the new reference number Tmax'.
And the process is circulated until the difference value between the subtraction result TC 'and N is less than the new reference number Tmax'.
Distributing the target configuration tasks with the largest weight to the threads with the least number of the current configuration tasks in the queue until the number of the current configuration tasks in the queue of each thread reaches the maximum value after the last iteration; and distributing the residual unallocated target configuration tasks to each thread evenly.
And sequentially distributing the target configuration tasks to the thread pool according to the second distribution strategy. Wherein the second allocation policy includes: and sequencing the weight of each target configuration task from high to low, sequencing the threads in the thread pool according to the sequence of the number of the configuration tasks in the queue from small to large, circularly distributing the task with the highest weight in the target configuration tasks to the thread with the least number of the configuration tasks in the queue until the number of the configuration tasks in the queue of each thread is equal to the maximum value Tmax 'of the number of the configuration tasks in the queue of all threads, and randomly distributing the remaining unallocated target configuration tasks to the threads with the number of the configuration tasks in the queue being less than the maximum value Tmax'.
The tasks can be adaptively distributed into the thread pool according to the distribution strategy, so that the number of the configuration tasks of each thread is evenly distributed, and meanwhile, the time consumed for executing the configuration tasks of each thread is approximately the same.
On the basis of the foregoing embodiment, in this embodiment, each sub-phase task is sequentially executed according to a preset sequence, and the method further includes: and if any sub-phase task fails to be executed, jumping to a specified sub-phase task after the sub-phase task is executed.
Specifically, a control mode for jumping to other sub-stages is set according to an execution result of a task of any sub-stage, if the task of the sub-stage is successfully executed, the next sub-stage is continuously executed according to a preset execution sequence, and if the task of the sub-stage is failed to be executed, the specified sub-stage is jumped to. The specified sub-phases are pre-configured by the background software.
For example, in the stage of processing the request of the operation terminal, if part of the data has problems and causes the task execution failure of the sub-stage, the task execution flow directly jumps to the stage of sending the configuration result to the operation terminal, and the tasks in the command issuing and equipment responding stages are not executed any more.
The complete process of this embodiment is shown in fig. 2, and includes the following processes:
step 1, a user submits configuration operation through an operation terminal and sends configuration data;
step 2, the background software automatically searches the configuration task type corresponding to the configuration operation based on the internal database, if the configuration task type is found, the process enters step 3, otherwise, the process jumps to step 9;
step 3, the background software constructs a target configuration task comprising a plurality of sub-stages according to the searched configuration task type, and decomposes the configuration data submitted by the user into different sub-stages;
step 4, the background software adds the target configuration task to a task queue of a task executor;
step 5, the task executor searches the target configuration task from the task queue, if the target configuration task is found, the process enters step 6, otherwise, the process enters a waiting state;
step 6, the task executor allocates the target configuration task to a task processing thread in a thread pool according to an allocation algorithm, and simultaneously sends a driving event;
step 7, the task processing thread searches the tasks of each sub-stage of the target configuration task from the task queue according to the driving event, if the tasks are found, the process enters step 8, otherwise, the background software automatically detects whether the tasks of each sub-stage are completely executed and jumps to step 9;
step 8, the task processing thread executes the tasks of each sub-stage, and sends a driving event to step 7 after the completion;
and 9, finishing the task execution.
To more clearly illustrate the beneficial effects of the device data configuration method provided by the present embodiment, the following description is given by way of an example.
When the adjacent cell configuration is performed on the LTE network element device, the sib5 parameter, the common-frequency measurement parameter, the different-frequency measurement parameter, and the adjacent cell configuration parameter need to be configured. In the whole configuration process, the sib5 parameter needs to be configured first, then the pilot frequency measurement parameter is configured, then the common frequency measurement parameter is configured, and finally the addition configuration of the adjacent cell is performed. The whole process has sequential dependency relationship. If the sib5 parameter configuration fails, the subsequent parameter configuration cannot be successful, and the whole neighbor cell configuration process cannot be successful. The present invention advantageously solves these problems by making the configuration process a staged task to implement.
The device data configuration system provided by the present invention is described below, and the device data configuration system described below and the device data configuration method described above may be referred to correspondingly.
As shown in fig. 3, an embodiment of the present invention provides an apparatus data configuration system, which includes an obtaining module 301, an allocating module 302, and an executing module 303, where:
the obtaining module 301 is configured to receive configuration data of a device sent by an operation terminal according to a submission operation of a user, and obtain a configuration task type corresponding to the submission operation and a target configuration task including multiple sub-phases corresponding to the configuration task type; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task;
the user can input the configuration data of the device through the parameter configuration interface of the operation terminal, and partial configuration parameters of the device can be configured while other configuration parameters are kept unchanged. The configuration data of the device can also be input by means of file import. For example, the data file can be input by means of a pre-made excel data file, an xm1 data file or other data files that can be recognized by the operation terminal. The present invention is not limited to the form in which the configuration data is input by the user.
After a user submits the operation of the equipment configuration data through the operation terminal, the operation terminal reads the configuration data and sends the configuration data to the background software according to a certain form. The data transmission form includes a structure form, a common form, an enumeration form or a class form, and the like. The present embodiment does not limit the data transmission form.
Because the internal database stores the incidence relation between the submission operation and the task type in advance, the background software can inquire the task type corresponding to the submission operation according to the submission operation of the user and construct a target configuration task which comprises a plurality of sub-stages and corresponds to the configuration task type. The multiple sub-stages comprise a stage of processing an operation terminal request, a stage of converting configuration data into a command for equipment identification, a stage of command issuing and equipment responding, and a stage of sending a configuration result to the operation terminal. For different configuration tasks, the sub-phases can be increased or decreased as appropriate according to specific situations. The programs of all the sub-phases of each type of task are fixed, and the visualization operation can be carried out through external task configuration.
It should be noted that, the device for performing data configuration may be one or more devices, may be a network element device, and may also be another device that can be operated by using a network management system, and this embodiment is not limited to the number and the type of the devices.
The distribution module 302 is configured to distribute the configuration data to each sub-stage according to a preset association relationship between the configuration data and each sub-stage of the target configuration task;
according to the incidence relation between each configuration data and the sub-stage task, the background software decomposes the configuration data sent by the operation terminal into different sub-stages, and the configuration data corresponding to each sub-stage is taken as the configuration parameter of the sub-stage and is stored in the sub-stage.
The execution module 303 is configured to sequentially execute the tasks of each sub-phase according to a preset sequence, so as to configure the device according to the configuration data allocated to each sub-phase.
Wherein the preset sequence of each stage comprises: the method comprises the steps of firstly executing a stage of processing an operation terminal request, then executing a stage of converting configuration data into a command identified by equipment, then executing a stage of command issuing and equipment responding, and finally executing a configuration result and sending the configuration result to an operation terminal.
And in the process of executing the task of each sub-stage, regularly detecting whether the tasks of all the sub-stages are finished by background software at intervals of preset time, and if so, sending the execution result of the target configuration task to the operation terminal. The preset time can be set according to actual conditions. By detecting whether the tasks of all the sub-stages are finished or not at regular time, the management of the target configuration task can be better realized.
In the embodiment, the target configuration task is acquired according to the submitting operation on the operation terminal, the device configuration data submitted by the operation terminal is distributed to each sub-stage task of the target configuration task, each sub-stage task is automatically executed according to the service logic, the data configuration of the device can be completed only by configuring data once, and meanwhile, a plurality of devices can be configured, so that the data configuration efficiency of the device is improved.
On the basis of the above embodiment, the execution module in this embodiment includes a first sub-module, a second sub-module, and a third sub-module; the first submodule is used for calling a plurality of threads; the second sub-module is used for distributing each target configuration task to a corresponding thread according to the weight of the target configuration task corresponding to each submission operation; and the third sub-module is used for sequentially executing the tasks of the sub-stages in each target configuration task according to a preset execution sequence by using the thread distributed by each target configuration task.
On the basis of the above embodiment, the present embodiment further includes a calculation module, configured to obtain a total number of devices configured by each target configuration task and a total number of command numbers executed by all the devices when all the devices are configured; and calculating the weight of each target configuration task according to the total quantity and the total number.
On the basis of the above embodiment, the second sub-module in this embodiment includes a fourth sub-module and a fifth sub-module; the fourth submodule is used for obtaining the maximum value of the number of the configuration tasks in the queues of all the threads, multiplying the maximum value by the number of the threads and then subtracting the total number of the configuration tasks in the queues of all the threads; and the fifth submodule is used for comparing the subtraction result with the number of the target configuration tasks and distributing each target configuration task to a corresponding thread according to the comparison result and the weight of each target configuration task.
On the basis of the foregoing embodiment, in this embodiment, the fifth sub-module is specifically configured to: if the subtraction result is less than or equal to the number of the target configuration tasks, distributing the target configuration tasks with the largest unassigned weight to the threads with the smallest number of the current configuration tasks in the queue until the number of the current configuration tasks in the queue of each thread reaches the maximum value; and distributing the residual unallocated target configuration tasks to each thread evenly.
On the basis of the foregoing embodiment, in this embodiment, the fifth sub-module is specifically configured to: if the subtraction result is larger than the number of the target configuration tasks, circularly subtracting 1 from the maximum value of the number of the current configuration tasks in the queues of all threads, multiplying the maximum value by the number of the threads, and subtracting the total number of the configuration tasks in the queues of all the threads until the subtraction result is smaller than or equal to the number of the target configuration tasks;
on the basis of the foregoing embodiment, the execution module in this embodiment is further configured to: and if any sub-phase task fails to be executed, jumping to a specified sub-phase task after the sub-phase task is executed.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)410, a communication Interface 420, a memory (memory)430 and a communication bus 440, wherein the processor 410, the communication Interface 420 and the memory 430 are communicated with each other via the communication bus 440. The processor 410 may invoke logic instructions in the memory 430 to perform a device data configuration method comprising: receiving configuration data of equipment sent by an operation terminal according to a submitting operation of a user, and acquiring a configuration task type corresponding to the submitting operation and a target configuration task comprising a plurality of sub-stages corresponding to the configuration task type; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task; distributing the configuration data to each sub-stage according to a preset incidence relation between the configuration data and each sub-stage task of the target configuration task; and sequentially executing the tasks of each sub-stage according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage.
In addition, the logic instructions in the memory 430 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to perform the method for configuring device data provided by the above methods, the method comprising: receiving configuration data of equipment sent by an operation terminal according to a submitting operation of a user, and acquiring a configuration task type corresponding to the submitting operation and a target configuration task comprising a plurality of sub-stages corresponding to the configuration task type; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task; distributing the configuration data to each sub-stage according to a preset incidence relation between the configuration data and each sub-stage task of the target configuration task; and sequentially executing the tasks of each sub-stage according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the apparatus data configuration method provided above, the method including: receiving configuration data of equipment sent by an operation terminal according to a submitting operation of a user, and acquiring a configuration task type corresponding to the submitting operation and a target configuration task comprising a plurality of sub-stages corresponding to the configuration task type; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task; distributing the configuration data to each sub-stage according to a preset incidence relation between the configuration data and each sub-stage task of the target configuration task; and sequentially executing the tasks of each sub-stage according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for configuring device data, comprising:
receiving configuration data of equipment sent by an operation terminal according to a submission operation of a user, and acquiring a configuration task type corresponding to the submission operation and a target configuration task corresponding to the configuration task type and comprising a plurality of sub-stages; wherein the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the target configuration task;
distributing the configuration data to each sub-stage according to a preset incidence relation between the configuration data and each sub-stage task of the target configuration task;
and sequentially executing the tasks of each sub-stage according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage.
2. The device data configuration method according to claim 1, wherein the sequentially executing the tasks of each sub-phase according to the preset sequence comprises:
calling a plurality of threads;
distributing each target configuration task to a corresponding task processing thread according to the weight of the target configuration task corresponding to each submission operation;
and sequentially executing the tasks of the sub-stages in each target configuration task according to a preset execution sequence by using the thread distributed by each target configuration task.
3. The method according to claim 2, wherein the allocating each target configuration task to a corresponding task processing thread according to the weight of the target configuration task corresponding to each commit operation further comprises:
acquiring the total number of the equipment configured by each target configuration task and the total number of the command numbers executed by all the equipment when all the equipment is configured;
and calculating the weight of each target configuration task according to the total number and the total number.
4. The device data configuration method according to claim 2, wherein the allocating each target configuration task to a corresponding task processing thread according to the weight of the target configuration task corresponding to each commit operation includes:
acquiring the maximum value of the number of the configuration tasks in the queues of all the threads, multiplying the maximum value by the number of the threads, and then subtracting the total number of the configuration tasks in the queues of all the threads;
and comparing the subtraction result with the number of the target configuration tasks, and distributing each target configuration task to a corresponding thread according to the comparison result and the weight of each target configuration task.
5. The device data configuration method according to claim 4, wherein the allocating each target configuration task to a corresponding task processing thread according to the comparison result and the weight of each target configuration task comprises:
if the subtraction result is less than or equal to the number of the target configuration tasks, allocating the target configuration tasks with the largest unassigned weight to the threads with the smallest number of the current configuration tasks in the queue until the number of the current configuration tasks in the queue of each thread reaches the maximum value;
and distributing the residual unallocated target configuration tasks to each thread evenly.
6. The device data configuration method according to claim 4, wherein the allocating each target configuration task to a corresponding task processing thread according to the comparison result and the weight of each target configuration task comprises:
if the subtraction result is greater than the number of the target configuration tasks, subtracting 1 from the maximum value of the number of the current configuration tasks in the queues of all threads, multiplying the maximum value by the number of the threads, and subtracting the total number of the configuration tasks in the queues of all threads until the subtraction result is less than or equal to the number of the target configuration tasks;
distributing the target configuration tasks with the largest unassigned weight to the threads with the least number of current configuration tasks in the queue until the number of current configuration tasks in the queue of each thread reaches the maximum value after the last iteration;
and distributing the residual unallocated target configuration tasks to each thread evenly.
7. The device data configuration method according to any one of claims 1 to 6, wherein the executing each sub-phase task in turn according to a preset sequence further comprises:
and if any sub-phase task fails to be executed, jumping to a specified sub-phase task after the sub-phase task is executed.
8. A device data configuration system, comprising:
the acquisition module is used for receiving configuration data of equipment sent by an operation terminal according to submission operation of a user and acquiring a configuration task type corresponding to the submission operation and a target configuration task corresponding to the configuration task type; the submitting operation is pre-associated with the configuration task type, and the configuration task type is pre-associated with the configuration task;
the distribution module is used for distributing the configuration data to the sub-stage tasks according to the preset incidence relation between the configuration data and the sub-stage tasks;
and the execution module is used for sequentially executing each sub-stage task according to a preset sequence so as to configure the equipment according to the configuration data distributed by each sub-stage task.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the device data configuration method according to any one of claims 1 to 7 when executing the program.
10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the device data configuration method according to any one of claims 1 to 7.
CN202110172655.7A 2021-02-08 2021-02-08 Equipment data configuration method and system Active CN113014624B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110172655.7A CN113014624B (en) 2021-02-08 2021-02-08 Equipment data configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110172655.7A CN113014624B (en) 2021-02-08 2021-02-08 Equipment data configuration method and system

Publications (2)

Publication Number Publication Date
CN113014624A true CN113014624A (en) 2021-06-22
CN113014624B CN113014624B (en) 2022-07-19

Family

ID=76384296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110172655.7A Active CN113014624B (en) 2021-02-08 2021-02-08 Equipment data configuration method and system

Country Status (1)

Country Link
CN (1) CN113014624B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610173A (en) * 2009-07-14 2009-12-23 中兴通讯股份有限公司 A kind of method and NM server that many network elements is carried out data configuration
CN101908979A (en) * 2010-08-19 2010-12-08 中兴通讯股份有限公司 Method and device for managing resource by network management
CN102572896A (en) * 2012-02-23 2012-07-11 中兴通讯股份有限公司 Upgrading method and upgrading device for wireless communication system
CN103200021A (en) * 2012-01-04 2013-07-10 中兴通讯股份有限公司 Network management system, client-end, service-end and method for achieving data allocation in batches
CN104731647A (en) * 2015-03-31 2015-06-24 北京奇艺世纪科技有限公司 Task processing method and system
CN106789166A (en) * 2016-11-28 2017-05-31 上海斐讯数据通信技术有限公司 A kind of method and device of network element batch configuration
WO2018000588A1 (en) * 2016-06-28 2018-01-04 中兴通讯股份有限公司 Network element management method, device and mobile terminal
CN110058940A (en) * 2019-03-08 2019-07-26 苏宁易购集团股份有限公司 Data processing method and device under a kind of multi-thread environment
CN110569123A (en) * 2019-07-31 2019-12-13 苏宁云计算有限公司 Thread allocation method and device, computer equipment and storage medium
US20200125400A1 (en) * 2018-10-18 2020-04-23 Oracle International Corporation Selecting threads for concurrent processing of data

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610173A (en) * 2009-07-14 2009-12-23 中兴通讯股份有限公司 A kind of method and NM server that many network elements is carried out data configuration
CN101908979A (en) * 2010-08-19 2010-12-08 中兴通讯股份有限公司 Method and device for managing resource by network management
CN103200021A (en) * 2012-01-04 2013-07-10 中兴通讯股份有限公司 Network management system, client-end, service-end and method for achieving data allocation in batches
CN102572896A (en) * 2012-02-23 2012-07-11 中兴通讯股份有限公司 Upgrading method and upgrading device for wireless communication system
CN104731647A (en) * 2015-03-31 2015-06-24 北京奇艺世纪科技有限公司 Task processing method and system
WO2018000588A1 (en) * 2016-06-28 2018-01-04 中兴通讯股份有限公司 Network element management method, device and mobile terminal
CN106789166A (en) * 2016-11-28 2017-05-31 上海斐讯数据通信技术有限公司 A kind of method and device of network element batch configuration
US20200125400A1 (en) * 2018-10-18 2020-04-23 Oracle International Corporation Selecting threads for concurrent processing of data
CN110058940A (en) * 2019-03-08 2019-07-26 苏宁易购集团股份有限公司 Data processing method and device under a kind of multi-thread environment
CN110569123A (en) * 2019-07-31 2019-12-13 苏宁云计算有限公司 Thread allocation method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113014624B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
US8893133B2 (en) Dynamic test scheduling by ordering tasks for performance based on similarities between the tasks
CN110119306B (en) Method, device and equipment for balancing automatic scheduling of jobs and storage medium
CN103942034A (en) Task scheduling method and electronic device implementing method
CN109862101B (en) Cross-platform application starting method and device, computer equipment and storage medium
US20080244589A1 (en) Task manager
US9218210B2 (en) Distributed processing system
CN113569987A (en) Model training method and device
CN109062700A (en) A kind of method for managing resource and server based on distributed system
CN110611707A (en) Task scheduling method and device
US10013288B2 (en) Data staging management system
CN104615486B (en) For searching for the multi-task scheduling of Extension Software Platform and executing methods, devices and systems
CN111459631A (en) Automatic batch processing method and system for server
CN111190691A (en) Automatic migration method, system, device and storage medium suitable for virtual machine
CN105138405A (en) To-be-released resource list based MapReduce task speculation execution method and apparatus
CN110619014A (en) ETL-based data extraction method
CN113014624B (en) Equipment data configuration method and system
CN111143210A (en) Test task scheduling method and system
CN113435489B (en) Method, device, computer readable storage medium and processor for deploying system
CN114297067A (en) Script testing method and device
CN109739649B (en) Resource management method, device, equipment and computer readable storage medium
CN112181443B (en) Automatic service deployment method and device and electronic equipment
CN113703804A (en) System upgrading method, system, device and storage medium
US20200389352A1 (en) Automated upgrade of multiple hosts
CN117453376B (en) Control method, device, equipment and storage medium for high-throughput calculation
CN111552561B (en) Task processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant