WO2017193722A1 - Detection task scheduling method and apparatus for network quality management system - Google Patents

Detection task scheduling method and apparatus for network quality management system Download PDF

Info

Publication number
WO2017193722A1
WO2017193722A1 PCT/CN2017/078455 CN2017078455W WO2017193722A1 WO 2017193722 A1 WO2017193722 A1 WO 2017193722A1 CN 2017078455 W CN2017078455 W CN 2017078455W WO 2017193722 A1 WO2017193722 A1 WO 2017193722A1
Authority
WO
WIPO (PCT)
Prior art keywords
state
task
detection task
stop
detection
Prior art date
Application number
PCT/CN2017/078455
Other languages
French (fr)
Chinese (zh)
Inventor
胡常举
孙权
刘万慧
范书田
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017193722A1 publication Critical patent/WO2017193722A1/en

Links

Images

Classifications

    • 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/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a network quality management system detection task scheduling method, apparatus, and computer storage medium.
  • PTN Packet Transport Network
  • IP network protocol
  • OAM Operation Administration and Maintenance
  • SQM Network Quality Management
  • the detection process using SQM mainly includes configuring the detection task in advance, manually configuring each detection task after configuring the detection task, and manually ending each detection task manually.
  • the staff needs to manually stop each inspection task manually, and it may take time and effort to pay attention to the operation status of each detection task.
  • a large number of detection tasks are often used to perform some detection on each device to be tested, so that the staff needs It wastes a lot of time and effort to complete the switching of inspection tasks, which is inefficient and wastes human resources.
  • An embodiment of the present invention provides a network quality management system detection task scheduling method, including:
  • the state in which the detection task is controlled is entered from the non-stop state to the stop state.
  • controlling the state of the detecting task from the non-stop state to the stopping state includes:
  • the state of the detection task is controlled to enter a stop state from the to-be-opened state;
  • non-stop state is an open state
  • the state of the detection task is controlled to enter a stop state from a state to be stopped.
  • controlling the state of the detecting task from the to-be-opened state to the stopping state includes: controlling the state of the detecting task to be switched from the to-open state to the turned-on state, and then to the to-be-stop state. , enter the stop state;
  • the controlling the state of the detecting task from the turned-on state to the stopping state includes: controlling the state of the detecting task to be switched from the turned-on state to the to-be-stop state, and entering the stop state.
  • the method before controlling the state of the detecting task to enter the stopping state from the non-stop state, the method further includes:
  • the controlling the state of the detecting task from the to-be-opened state to the stopping state includes: acquiring an opening time of the detecting task, determining whether the opening time is reached, and if so, turning on the opening Detecting a task, switching the state of the detection task to an already-on state; and acquiring an end time of the detection task in a started state, determining whether the end time is reached, and if so, determining a state of the detection task by Turning on the state to be stopped; stopping the detection task that has entered the state to be stopped, and controlling the state of the detection task to enter a stop state;
  • the controlling the state of the detecting task from the turned-on state to the stopping state includes: acquiring an end time of the detecting task, determining whether the end time is reached, and if yes, the detecting task enters a to-be-stop state, and the The state of the detection task is switched from the opened state to the to-be-stop state; the detection task that has entered the to-be-stopped state is stopped, and the state of the detection task is switched from the to-be-stopped state to the stopped state;
  • the controlling the state of the detecting task from the to-be-stopped state to the stopping state includes: stopping the detecting task, and controlling the state of the detecting task to enter a stopped state.
  • the detecting task includes at least one measurement instance
  • the stopping the in-stop state detection task includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance;
  • the stopping the detection of the in-stop state includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance;
  • stopping the state detection task includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance.
  • the method before controlling the state of the detecting task to enter the stopping state from the non-stop state, the method further includes:
  • the control instruction of the reflector wherein the direct mining platform is configured to detect the device to be detected according to the measurement instance, the reflector corresponding to the measurement instance, and the control instruction;
  • the method before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, the method further includes:
  • the embodiment of the invention further provides a network quality management system detection task scheduling device, comprising:
  • An acquiring module configured to acquire each detection task, and obtain state information corresponding to each detection task, where the state information is used to represent a current state of each detection task;
  • the processing module is configured to control the state of the detection task to enter a stop state from a non-stop state in a case where the detection task whose state is a non-stop state satisfies the stop condition.
  • the processing module includes:
  • the to-be-opened state processing module is configured to control, when the non-stop state is the to-be-opened state, to control the state of the detecting task from the to-be-opened state to the stopped state;
  • the state processing module is turned on: configured to control, when the non-stop state is the turned-on state, to control the state of the detecting task from the turned-on state to the stopped state;
  • the state to be stopped processing module is configured to control the state of the detecting task from the state to be stopped to the state of stopping when the non-stop state is the state to be stopped.
  • the detecting task includes at least one measurement instance
  • the to-be-opened state processing sub-module includes a first sub-module configured to control the state of the detecting task to be switched from the to-be-opened state to the turned-on state, and then to the to-be-stopped state to enter the stopped state;
  • the opened state processing sub-module includes a second sub-module configured to control the state of the detection task to be switched from an open state to a to-be-stop state, and to a stop state.
  • the first sub-module includes a first processing unit configured to acquire an open time of the detection task, determine whether the open time is reached, and if so, open the detection task, and The state of the detecting task is switched to the turned-on state; and the end time of the detecting task in the started state is obtained, and it is determined whether the end time is reached, and if so, the state of the detecting task is switched from the turned-on state to the waiting state. Stopping the state; stopping the detection task that has entered the state to be stopped, and controlling the state of the detection task to enter a stop state;
  • the second sub-module includes a second processing unit configured to acquire an end time of the detection task, determine whether the end time is reached, and if so, the detection task enters a to-be-stop state, and the status of the detection task Switching from the turned-on state to the state to be stopped; stopping the detecting task that has entered the state to be stopped, and switching the state of the detecting task from the state to be stopped to the state of stopping;
  • the to-be-stop state processing module includes a third processing unit configured to stop the detection task and control a state of the detection task to enter a stop state.
  • the detecting task includes at least one measurement instance
  • the first processing unit includes a first stop sub-unit, configured to query a measurement instance corresponding to the detection task, and stop the measurement instance, in a case that the non-stop state is a to-be-opened state;
  • the second processing unit includes a second stop sub-unit configured to query a measurement instance corresponding to the detection task to stop the measurement instance if the non-stop state is an open state;
  • the third processing unit includes a third stop subunit configured to query a measurement instance corresponding to the detection task when the non-stop state is a to-be-stop state, and stop the measurement instance.
  • the method further includes: an information processing module configured to acquire a measurement instance corresponding to the detection task in the open state and the measurement before controlling the state of the detection task to enter the stop state from the non-stop state
  • the reflector corresponding to the instance sends the measurement instance and the reflector corresponding to the measurement instance to the device to be detected through the direct mining platform, and sends a reflection corresponding to the measurement instance and the measurement instance to the direct mining platform Control instruction of the device, wherein the direct mining platform is configured to detect the device to be detected according to the measurement instance, the reflector corresponding to the measurement instance, and the control instruction; and receive the control by the direct mining platform
  • the detection result of the instruction saves the measurement instance, the reflector corresponding to the measurement instance, and the corresponding detection result.
  • the method further includes: determining, by the processing module, that the measurement instance of the detection task is determined before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance There is a corresponding reflector, if not, a reflector is created for the measurement instance; if it is, it is determined whether the reflector corresponding to the measurement instance is normal, and if not, a reflector is newly created for the measurement instance.
  • the determination processing module may be implemented by a central processing unit (CPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA).
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA field-programmable gate array
  • the embodiment of the invention further provides a computer storage medium, wherein the computer executable instructions are configured to execute the network quality management system detection task scheduling method.
  • the network quality management system detects the task scheduling device to obtain the detection And obtaining status information corresponding to the detection task, the status information includes the current state of the detection task; the status of each detection task can be identified according to the status information; and the detection task in the non-stop state is satisfied to stop.
  • the state in which the detection task is controlled is entered from the non-stop state to the stop state.
  • the detection tasks are directly controlled to enter the stop state from the non-stop state, and the process does not require the staff to monitor the status of each detection task.
  • the worker does not need to manually switch the working state; the corresponding state processing is directly performed according to the recognized state, and the state of the detecting task is controlled to enter the stop state, which solves the problem that the SQM system in the prior art requires a lot of time and effort to complete the switching.
  • the problem of wasted human resources and inefficient work is detected in the state of the task.
  • the staff member spends a lot of time and effort to complete the state of the handover detection task, resulting in wasted human resources and inefficient work.
  • the automatic switching of the detection task state according to the embodiment of the invention can save human resources and improve work efficiency.
  • FIG. 1 is a flowchart of a method for detecting a task of a network quality management system according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a process in which a detection task in an open state enters a state to be stopped according to the first embodiment of the present invention
  • FIG. 3 is a flowchart of a process in which a detection task to be turned on enters a state to be stopped according to the first embodiment of the present invention
  • FIG. 4 is a flowchart of a process in which a detection task to be turned on enters a stop state according to Embodiment 1 of the present invention
  • FIG. 5 is a flowchart of a process for executing a detection task in an open state according to Embodiment 1 of the present invention.
  • FIG. 6 is a flowchart of detecting completion of interaction between an SQM platform and a direct mining platform according to Embodiment 1 of the present invention
  • FIG. 7 is a flowchart of an example of sending a measurement according to Embodiment 1 of the present invention.
  • FIG. 8 is a schematic structural diagram of a set top box and a smart bracelet according to Embodiment 2 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a network quality management system detection task scheduling method. Referring to FIG. 1, the method includes:
  • step S101 is generally performed to acquire each detection task, and also obtain state information corresponding to the detection task. It includes the current status of each detection task.
  • the inspection task is usually configured by the staff, and the staff usually saves the inspection task into the database after configuration. Subsequent changes in the status of each test task may be updated in the database.
  • these detection tasks are usually stored in the detection task table. Since the task detection table stored in the database may be many, the storage method of the detection task may be stored according to the status information, or may be stored in the order of creation.
  • Obtaining the status information of the detection task may identify the current state of the detection task according to the status information, and the status information may not be stored in a directly identifiable manner, for example, a certain character may correspond to the corresponding status (for example, The stop state can be represented by 00.
  • the state of each detection task is identified according to the state information, and only the corresponding character needs to be converted into the corresponding state.
  • it can also be a very intuitive way to identify. For example, it can be a direct description, and stop is used to represent the stop state.
  • the current state of each detection task can be identified according to the state information, and the detection can be directly recognized.
  • the current state of the task is the stop state.
  • the state of the detection task is controlled to enter the stop state from the non-stop state.
  • the status of the detection task may include: a to-be-on state, an on-off state, a to-be-stop state, and a stop state.
  • the so-called open state means that the detection task is being executed; while the state to be stopped indicates that the detection task has been executed, it needs to be stopped, but has not stopped yet; and the stop state means that the detection task has been stopped; The detection task has not been opened yet, but needs to be turned on.
  • the stop condition is: the detection task enters the to-be-stop state; automatically switching the detection task from the non-stop state to the stop state includes: stopping the detection task that has entered the to-be-stop state, and detecting The status of the task is switched from the state to be stopped to the state of the stop.
  • a plurality of measurement instances and a reflector corresponding to the measurement instance may be set under one detection task according to the type of the detection task, instead of having one measurement task corresponding to one measurement instance in the prior art, so that there are as many
  • the number of detection tasks can be reduced.
  • the management of the measurement instance is facilitated, and on the other hand, the number of switching of the detection task can be reduced, so that a detection task state switching is performed without completing a measurement instance.
  • the classification can be classified according to the specific action type of the detection task. For example, a detection task is set, and voice detection is performed, and three are set for the voice aspect.
  • the measured measurement instances can then be added to the measurement task for speech detection by adding these three measurement instances for speech detection.
  • the process includes: obtaining an end time of the detection task, and determining whether the end time is reached according to a timer.
  • the detection task enters a to-be-stop state; and the state of the detection task is switched from the opened state to the to-be-stop state. .
  • the specific solution when the detection task reaches the end time, and the state of the detection task is switched to the state to be stopped.
  • step S203 determining whether the detection task has a timer, and if so, executing step S204, otherwise performing step S206;
  • step S204 determining whether the end time of the detection task arrives, if step S205 is performed, otherwise repeating step S204;
  • a timer is created when the detection task is started, and the timer is used to time the detection task, and the timer is used to determine whether the end time is reached.
  • detection tasks there may be some detection tasks that have been enabled, but no timer has been set.
  • a corresponding timer needs to be created for them.
  • the end time of the timer arrives, it will prove that the detection task can be stopped, but the execution stop often requires a process, and there may be multiple detection tasks that need to complete the stop, so the status of these detection tasks that need to be stopped will be Switching to the state to be stopped proves that it does not need to be executed again, and it needs to perform a stop action on it.
  • time setting of the timer set for different detection tasks. The duration may vary and can be flexibly set according to your needs.
  • the detection task in the to-be-opened state When the detection task in the to-be-opened state enters the stop state, it first enters the opened state; the process includes: obtaining the opening time of the detection task, and determining, according to the timer, that when the opening time arrives, the detection task is automatically turned on, and the state is switched.
  • the detection task After the switch to the open state, the detection task is the task that is in the open state, and the process of entering the state to be stopped is the same as the process in which the detection task in the opened state directly enters the state to be stopped.
  • S301 Acquire a detection task in a state to be turned on
  • S302 Acquire a start time corresponding to the detection task.
  • step S303 determining whether the detection task reaches the start time, and if so, executing step S304, otherwise, repeating step S303;
  • S304 Turn on the detection task, and switch the state of the detection task to the state to be stopped.
  • the detection task in the to-be-opened state first obtains the opening time of the detection task, and determines whether the opening time is reached according to the timer. When the opening time is reached, the detection task is automatically turned on, and the state of the detection task is switched to the enabled state. . After switching to the open state, the execution process is the same as the process in FIG. 2, and can be switched to the state to be stopped. After entering the state to be stopped, the detection task is stopped, and after the detection task is stopped, it can be switched to the stop state. .
  • the state of the detection task is switched from the state to be stopped to the stop state.
  • This embodiment provides a specific solution. Referring to FIG. 4, the method includes:
  • S401 Acquire a detection task in a state to be stopped
  • step S403 determining whether the state of the measurement instance is already stopped or stopping, if yes, proceeding to step S405, otherwise, performing step S404;
  • the stop detection task actually stops the measurement instance corresponding to the detection task.
  • the measurement task that needs to be stopped will be in the state to be stopped first.
  • one test task may correspond to one or more measurement instances. Therefore, in this embodiment, the detection task in the state to be stopped is acquired first, and the measurement instance corresponding to the detection task is also acquired.
  • the measurement instance here is usually all measurement instances corresponding to the detection task; Judging the status of these measurement instances to see if they have stopped. If they have stopped, they do not need to do any further processing. If they have not stopped, they need to stop the measurement instances that have not stopped before; When the measurement instances are all in the stopped state, the state to be stopped of the detection task can be switched to the stopped state.
  • S501 Acquire a detection task that is in an open state
  • step S503 determining whether the measurement instance is being issued or has been issued, if yes, proceeding to step S505; otherwise, performing step S504;
  • the SQM platform, the direct mining platform and the equipment to be tested are involved.
  • the SQM platform and the direct mining platform may be arranged on the same hardware device, or on different devices, or on the same system.
  • the SQM platform usually generates detection tasks, measurement instances, and corresponding reflectors of the measurement instances according to the configuration of the user, and completes the overall global control of the detection; for the generated detection tasks, the detection tasks may not be executed immediately, and may be Save it in the database first, and then get these detection tasks when you need to use it.
  • the direct mining platform is generally used to interact with the device to be tested, and the detection device or the measurement instance corresponding to the reflector is used to complete the detection of the device to be detected; the device to be detected is obviously the device to be detected,
  • the tests it performs include the detection of its performance, functions and so on.
  • the content of the measurement instance and the reflector may be a detection of a certain function of the device to be detected.
  • the measurement instance A and the reflector A corresponding to the measurement instance A may be suitable for detecting whether the voice function of the device to be detected can be performed normally.
  • the direct mining platform will interact with the device to be tested according to the information configured in the measurement instance A and the reflector A to obtain the detection result.
  • the reflector it is mainly used to cooperate with the measurement example to complete the test.
  • Figure 6 including:
  • the SQM platform sends a reflector corresponding to the measurement instance and the measurement instance to the direct mining platform;
  • the direct mining platform receives the reflector corresponding to the measurement instance and the measurement instance;
  • the SQM platform sends a control instruction for the measurement instance to the direct mining platform;
  • the direct mining platform receives the control instruction and executes the control instruction
  • the SQM platform receives the detection result, and saves the detection result and the corresponding measurement instance and the reflector.
  • the measurement instance and the reflector appear in pairs, and the reflector completes the detection according to the measurement instance, that is, one detection task corresponds to one or more measurement instances, and each measurement instance has a Corresponding reflector. Therefore, when the measurement instance is delivered, the reflector corresponding to the measurement instance is sent, and the reflector corresponding to the measurement instance needs to be checked before the measurement instance is sent. Therefore, before obtaining the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, it is determined whether the measurement instance of the detection task has a corresponding reflector, and if not, the measurement instance is created. a reflector; if present, it is determined whether the reflector corresponding to the measurement instance is normal, and if it is not normal, the test is required The quantity instance recreates the reflector.
  • the specific task of the detection task in the open state is that all the measurement instances corresponding to the detection task are sent to the direct mining platform, and the control command is also sent to the direct mining platform, and the control command usually includes Instance open command, instance stop command, etc.; the so-called instance open command means that the SQM platform needs the direct mining platform to start executing the measurement instance; the direct mining platform will start executing the measurement instance after receiving the control command, regardless of whether the startup is successful or not.
  • the startup failure will be fed back to the SQM platform for a test result; in addition, for the control command to open the measurement instance, the direct mining platform will open the measurement instance, and the direct mining platform and the device to be tested will interact with each other, using measurement examples and
  • the reflector corresponding to the measurement example completes the detection of the device to be inspected, and the detection result is usually obtained according to the configuration state of the reflector. Therefore, for the case where the control instruction is to open the measurement instance, the direct mining platform also returns a reflector message to the SQM platform, and the detection status of the device to be detected can be known according to the status message in the reflector; when the reflector is configured, the reflection The state of the device is normal. If the reflector is not configured, the state of the reflector is invalid.
  • control command may also be a stop command, that is, the stop command needs to stop the measurement instance that is in the open state, and after receiving the stop command, the direct mining platform performs the action of stopping the corresponding measurement instance, whether the stop is successful or not. If the stop fails, the stop result will be returned to the SQM platform.
  • the SQM platform After receiving the information data fed back by the direct mining platform, the SQM platform saves the corresponding measurement instance or reflector and the corresponding detection result.
  • the SQM platform sends a control instruction to stop the measurement instance A to the direct mining platform. After receiving the control command, the direct mining platform stops the measurement instance A, the measurement instance A stops successfully, and the direct mining platform sends the measurement instance A to stop the successful message transmission.
  • the SQM platform After receiving the message, the SQM platform knows that the measurement instance A has stopped successfully, so the measurement instance A and the corresponding detection result are successfully saved.
  • the measurement instance A When the measurement instance A is queried next time, the measurement instance can be known. A is now in a stopped state.
  • the update method is usually adopted, that is, the measurement instance A may be repeatedly stopped, and the previous coverage is saved. The way to save. Of course, it is also possible to save multiple times of information, and the query is based on the save time. Obviously, using the previous save method is more convenient and saves space.
  • step S702 determining whether the reflector corresponding to the measurement instance exists, and if so, executing step S703; otherwise, performing step S708;
  • S705 Delivering the delivered object to the direct mining platform
  • step S706 determining whether the delivery is successful, if yes, proceeding to step S707; otherwise, proceeding to step S709;
  • steps S701-S709 it is mainly required to determine whether a corresponding reflector exists in the measurement instance. If it already exists, the measurement instance and the corresponding reflector can be directly configured as a delivery object for transmission, and if it does not exist, it is required. Create a corresponding reflector.
  • the object to be sent needs to be constructed because the measurement instance and the reflector are specific to the device to be tested, and different devices to be tested may require different detection formats, so it is usually necessary to construct the measurement instance and the reflector into the device to be tested. Corresponding format.
  • the preset number of times it is determined whether the number of previous failures has reached the preset number of times, and is not issued until the preset number of times is reached; thus, it can prevent multiple failures due to some errors, and It is always executed and takes up resources.
  • the preset number of times it can be flexibly set according to the specific situation, 10 times, 15 times, 20 times.
  • the detection task that has been stopped is judged to see if it needs to be cleaned, and if it needs to be cleaned, a cleaning step is performed on it.
  • Delete all reflectors under the detection task delete all measurement instances, and delete the entire inspection task.
  • it can usually be flexibly selected according to specific needs during configuration.
  • it is also possible to set the detection task that has been in the stopped state to be switched on. For example, when configuring the detection task, it is possible to set the monitoring task A to perform periodically, not only to configure the start time of the detection task A, but also to set the execution period.
  • the detection task A has a start time of 10:00 and an end time of 10: 05, the execution period is 24 hours; if the detection task A is just created and the configuration phase is completed, then it can be known that the detection task A is now in the to-be-open state, and the detection task needs to be started at 10:00, and it is switched. When it reaches 10:00, it will switch from the open state to the stop state, and after entering the state to be stopped, it only needs to stop the detection task, which mainly includes stopping the corresponding measurement instance. Then you can switch the state from the state to be stopped to the stop state. Of course, when it is in the open state, it is also necessary to complete the interaction process with the direct mining platform as described above in FIG. 6 and FIG. 7 .
  • the network quality management system in this embodiment detects the task scheduling method, firstly, the manual detection and switching of the detection task state is not required to be manually performed, thereby reducing the waste of human resources; secondly, setting one or more measurement instances in one detection task, reducing The task status is switched to improve the efficiency.
  • the stopped detection task can be repeatedly executed. The process does not require manual operation, which is convenient for management and saves resources.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the method mainly includes an obtaining module 81 and a processing module 82.
  • the obtaining module 81 is configured to acquire each detection task and corresponding state information, and the so-called state information is information for characterizing the current state of each detection task;
  • the processing module 82 is configured to detect the non-stop state when the state is in the state When the task satisfies the stop condition, the state in which the detection task is controlled is entered from the non-stop state to the stop state.
  • the inspection task is usually configured by the staff, and the staff usually saves the inspection task into the database after configuration. Subsequent changes in the status of each test task may be updated in the database.
  • the processing module 82 includes a to-be-opened state processing module 822, an opened state processing module 821, and a to-be-stopped state processing module 823.
  • the to-be-opened state processing module 822 is configured to control the state of the detected task from the to-be-opened state to the stopped state in a case where the non-stop state is the to-be-opened state.
  • the turned-on state processing module 821 is configured to control the state of the detected task from the turned-on state to the stopped state in the case where the non-stop state is the turned-on state.
  • the to-be-stated state processing module 823 is configured to control the state of the detection task from the to-be-stopped state to the stopped state in the case where the non-stop state is the to-be-stopped state.
  • the detection task includes at least one measurement instance;
  • the opened state processing module 821 includes a first sub-module 8211 configured to control the state of the detection task to be switched from the to-be-opened state to the turned-on state, and then to the to-be-stopped state to enter the stopped state.
  • the to-be-opened state processing module 822 includes a second sub-module 8221 configured to control the state of the detected task to be switched from the turned-on state to the to-be-stop state, and to the stop state.
  • the first sub-module 8211 includes a first processing unit 82111 configured to acquire an open time of the detection task, determine whether the open time is reached, and if so, turn on the detection task, switch the state of the detection task to the enabled state; and obtain the started state.
  • the end time of the detection task determines whether the end time is reached. If yes, the state of the detection task is switched from the opened state to the to-be-stop state; the detection task that has entered the to-be-stop state is stopped, and the state of the detection task is controlled. Enter the stop state.
  • the second sub-module 8221 includes a second processing unit 82211 configured to acquire an end time of the detection task, determine whether the end time is reached, and if so, the detection task enters a to-be-stop state, and switches the state of the detection task from the opened state to the to-be-stopped state. a state; stopping the detection task that has entered the state to be stopped, and switching the state of the detection task from the state to be stopped to the stop state; the state to be stopped processing module 823 includes a third processing unit 8231 configured to stop the detection task and control the measurement task The state enters the stop state.
  • the first processing unit 82111 includes a first stop subunit 821111 configured to query a measurement instance corresponding to the detection task in a case where the non-stop state is a to-be-opened state, and stop the measurement instance.
  • the second processing unit 82211 includes a second stop subunit 822111 configured to query the measurement instance corresponding to the detection task in the case that the non-stop state is the on state, and stop the measurement instance.
  • the third processing unit 8231 includes a third stop subunit 82311 configured to query the measurement instance corresponding to the detection task in the case that the non-stop state is the to-be-stop state, and stop the measurement instance.
  • the network quality management system detection task scheduling apparatus further includes an information processing module 83 configured to acquire the detection task in the open state before controlling the state of the detection task from the non-stop state to the stop state.
  • Corresponding measurement instance and the reflector corresponding to the quantity instance, the measurement instance and the reflector corresponding to the quantity instance are sent to the direct mining platform, and the reflector corresponding to the measurement instance and the quantity instance is sent to the direct mining platform. Controlling the instruction, and receiving the detection result of the direct control platform for the control instruction, and saving the measurement instance and the reflector corresponding to the quantity instance and the corresponding detection result.
  • the direct mining platform is generally used to interact with the device to be tested, and the detection device or the measurement instance corresponding to the reflector is used to complete the detection of the device to be detected; the device to be detected is obviously a device that needs to be detected,
  • the tests performed include the detection of various aspects of its performance, functions and so on.
  • the network quality management system detection task scheduling apparatus further includes The determining processing module 84 is configured to determine, before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, whether the measurement instance of the detection task has a corresponding reflector, and if not, the The measurement instance creates a reflector; if it exists, it determines whether the reflector corresponding to the measurement instance is normal, and if not, recreates the reflector for the measurement instance.
  • the network quality management system detection task scheduling apparatus in this embodiment may be used to perform the network quality management system detection task scheduling method in the first embodiment. That is, for each step in the network quality management system detection task scheduling method of the above embodiment, the network quality management system detection task scheduling apparatus in this embodiment has a corresponding module to complete, although it may be in this There is no one in the examples.
  • the network quality management system detection task scheduling device is set in the SQM platform, corresponding modules are also provided to complete the steps of the network quality management system detection task scheduling method in the first embodiment.
  • the network quality management system in this embodiment detects the task scheduling device, completes the detection task, and can manually perform the detection and switching of the detection task state manually, and set one or more measurement instances in one detection task, which can be flexibly
  • the device is deployed with an SQM system and the like. It has the advantages of low manual participation rate and high execution efficiency.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer executable instructions are configured to execute the network quality management system detection task scheduling method.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in a storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases The steps shown or described may be performed in a different order than that herein, or they may be separately fabricated into individual integrated circuit modules. Alternatively, multiple modules or steps of them can be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
  • the detection task is acquired, and the state information corresponding to the task is detected.
  • the status information includes the status of the current task.
  • the current state of each detection task can be identified.
  • the state in which the detection task is controlled is entered from the non-stop state to the stop state.
  • the detection task in the non-stop state when it meets the stop condition, directly control these detection tasks from the non-stop state to the stop state. This process does not require the staff to monitor the status of each detection task, and does not require manual switching by the staff.
  • the working state directly performs the corresponding state processing according to the recognized state, and controls the state of the detecting task to enter the stopping state, which solves the waste in the prior art due to the need for the staff to spend a lot of time and effort to complete the switching detection task state.
  • Human resources low work efficiency, by automatically switching the status of detection tasks, saving human resources and improving work efficiency.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Provided are a detection task scheduling method and apparatus for a network quality management system, and a computer storage medium. The method comprises: a detection task scheduling apparatus for a network quality management system acquiring a detection task and further acquiring state information corresponding to the detection task, wherein the state information comprises a current state of the detection task; being able to identify a current state of each detection task according to the state information; and where a detection task with the state being a non-stop state meets a stop condition, controlling the state of the detection task so that the detection task enters into a stop state from the non-stop state.

Description

一种网络质量管理系统检测任务调度方法、装置Network quality management system detection task scheduling method and device 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种网络质量管理系统检测任务调度方法、装置、计算机存储介质。The present invention relates to the field of communications technologies, and in particular, to a network quality management system detection task scheduling method, apparatus, and computer storage medium.
背景技术Background technique
分组传送网(PTN,Packet Transport Network)是指在网络协议(IP,Internet Protocol)业务和底层光传输媒质之间设置了一个层面,它针对分组业务流量的突发性和统计复用传送的要求而设计,以分组业务为核心并支持多业务提供,具有更低的总体使用成本,同时秉承光传输的传统优势,包括高可用性和可靠性、高效的带宽管理机制和流量工程、便捷的操作管理维护(OAM,Operation Administration and Maintenance)、可扩展、较高的安全性等。由于PNT的优势明显,所以PTN网络应用规模越来越大,也带来的一些问题,仅监控组网的流量性能已无法满足一些需求,例如,用户体验无法了解、管道质量无法测量、故障端到端定位困难等等。PTN (Packet Transport Network) refers to setting a layer between the network protocol (IP) service and the underlying optical transmission medium, which meets the requirements for bursty and statistical multiplexing transmission of packet service traffic. Designed to focus on packet services and support multi-service provisioning, with lower overall cost of ownership, while adhering to the traditional advantages of optical transmission, including high availability and reliability, efficient bandwidth management mechanism and traffic engineering, and convenient operation management. Maintenance (OAM, Operation Administration and Maintenance), scalability, high security, etc. Due to the obvious advantages of PNT, the application scale of PTN network is getting larger and larger, and some problems are also brought. Only the traffic performance of the monitoring network can not meet some requirements. For example, the user experience cannot be understood, the quality of the pipeline cannot be measured, and the faulty end. It is difficult to locate at the end and so on.
为了解决PTN网络使用中存在的上述哪些问题,现有中提出使用网络质量管理(SQM,Supplier quality management)系统,可以通过层次化的测量系统实现对PTN网络性能的精确监测和故障定位,核心功能为在线业务质量实时性能检测、业务开通质量检测、故障快速定位。In order to solve the above problems in the use of the PTN network, it is proposed to use the Network Quality Management (SQM) system to accurately monitor and locate the PTN network performance through a hierarchical measurement system. Real-time performance detection, service provision quality detection, and rapid fault location for online service quality.
使用SQM实现检测过程主要包括,事先配置检测任务,配置好检测任务后人工将各检测任务开启,也需要人工手动结束各检测任务。这样一来,工作人员需要人工手动停止各检测任务,而且可能还要花费时间和精力来关注各检测任务的运行状况。在实际对设备进行检测时,往往会采用大量的检测任务来对各待检测设备进行某些检测,这样的话,工作人员就需要 浪费大量的时间和精力来完成对检测任务进行切换,工作效率低下,浪费人力资源。The detection process using SQM mainly includes configuring the detection task in advance, manually configuring each detection task after configuring the detection task, and manually ending each detection task manually. In this way, the staff needs to manually stop each inspection task manually, and it may take time and effort to pay attention to the operation status of each detection task. When actually detecting a device, a large number of detection tasks are often used to perform some detection on each device to be tested, so that the staff needs It wastes a lot of time and effort to complete the switching of inspection tasks, which is inefficient and wastes human resources.
发明内容Summary of the invention
本发明实施例提供一种网络质量管理系统检测任务调度方法,包括:An embodiment of the present invention provides a network quality management system detection task scheduling method, including:
获取检测任务对应的状态信息,所述状态信息用于表征所述检测任务当前所处的状态;Obtaining state information corresponding to the detection task, where the state information is used to represent a state in which the detection task is currently located;
在所处状态为非停止状态的检测任务满足停止条件的情况下,控制所述检测任务的状态由非停止状态进入停止状态。In a case where the detection task whose state is the non-stop state satisfies the stop condition, the state in which the detection task is controlled is entered from the non-stop state to the stop state.
在本发明一种实施例中,所述控制所述检测任务的状态由非停止状态进入停止状态包括:In an embodiment of the present invention, the controlling the state of the detecting task from the non-stop state to the stopping state includes:
在所述非停止状态为待开启状态的情况下,控制所述检测任务的状态由待开启状态进入停止状态;When the non-stop state is the to-be-opened state, the state of the detection task is controlled to enter a stop state from the to-be-opened state;
在所述非停止状态为已开启状态的情况下,控制所述检测任务的状态由已开启状态进入停止状态;In a case where the non-stop state is an open state, controlling a state of the detection task from an open state to a stop state;
在所述非停止状态为待停止状态的情况下,控制所述检测任务的状态由待停止状态进入停止状态。In a case where the non-stop state is a to-be-stop state, the state of the detection task is controlled to enter a stop state from a state to be stopped.
在本发明一种实施例中,所述控制所述检测任务的状态由待开启状态进入停止状态包括:控制所述检测任务的状态由待开启状态切换至已开启状态,再切换至待停止状态,进入停止状态;In an embodiment of the present invention, the controlling the state of the detecting task from the to-be-opened state to the stopping state includes: controlling the state of the detecting task to be switched from the to-open state to the turned-on state, and then to the to-be-stop state. , enter the stop state;
所述控制所述检测任务的状态由已开启状态进入停止状态包括:控制所述检测任务的状态由已开启状态切换至待停止状态,进入停止状态。The controlling the state of the detecting task from the turned-on state to the stopping state includes: controlling the state of the detecting task to be switched from the turned-on state to the to-be-stop state, and entering the stop state.
在本发明一种实施例中,在控制所述检测任务的状态由非停止状态进入停止状态之前,还包括:In an embodiment of the present invention, before controlling the state of the detecting task to enter the stopping state from the non-stop state, the method further includes:
所述控制所述检测任务的状态由待开启状态进入停止状态包括:获取所述检测任务的开启时间,判断是否到达所述开启时间,若是,开启所述 检测任务,将所述检测任务的状态切换至已开启状态;并且获取处于已开始状态的所述检测任务的结束时间,判断是否到达所述结束时间,若是,将所述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,控制所述检测任务的状态进入停止状态;The controlling the state of the detecting task from the to-be-opened state to the stopping state includes: acquiring an opening time of the detecting task, determining whether the opening time is reached, and if so, turning on the opening Detecting a task, switching the state of the detection task to an already-on state; and acquiring an end time of the detection task in a started state, determining whether the end time is reached, and if so, determining a state of the detection task by Turning on the state to be stopped; stopping the detection task that has entered the state to be stopped, and controlling the state of the detection task to enter a stop state;
所述控制所述检测任务的状态由已开启状态进入停止状态包括:获取所述检测任务的结束时间,判断是否到达所述结束时间,若是,所述检测任务进入待停止状态,并将所述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,并将所述检测任务的状态由待停止状态切换至停止状态;The controlling the state of the detecting task from the turned-on state to the stopping state includes: acquiring an end time of the detecting task, determining whether the end time is reached, and if yes, the detecting task enters a to-be-stop state, and the The state of the detection task is switched from the opened state to the to-be-stop state; the detection task that has entered the to-be-stopped state is stopped, and the state of the detection task is switched from the to-be-stopped state to the stopped state;
所述控制所述检测任务的状态由待停止状态进入停止状态包括:停止所述检测任务,控制所述检测任务的状态进入停止状态。The controlling the state of the detecting task from the to-be-stopped state to the stopping state includes: stopping the detecting task, and controlling the state of the detecting task to enter a stopped state.
在本发明一种实施例中,所述检测任务包括至少一个测量实例;In an embodiment of the invention, the detecting task includes at least one measurement instance;
在所述非停止状态为待开启状态的情况下,停止所述已进入待停止状态检测任务包括:查询所述检测任务对应的测量实例,将所述测量实例停止;If the non-stop state is the to-be-opened state, the stopping the in-stop state detection task includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance;
在所述非停止状态为已开启状态的情况下,停止所述已进入待停止状态检测任务包括:查询所述检测任务对应的测量实例,将所述测量实例停止;If the non-stop state is the enabled state, the stopping the detection of the in-stop state includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance;
在所述非停止状态为待停止状态的情况下,停止所述态检测任务包括:查询所述检测任务对应的测量实例,将所述测量实例停止。When the non-stop state is the to-be-stopped state, stopping the state detection task includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance.
在本发明一种实施例中,在控制所述检测任务的状态由非停止状态进入停止状态之前,所述方法还包括:In an embodiment of the present invention, before controlling the state of the detecting task to enter the stopping state from the non-stop state, the method further includes:
获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器,通过直采平台向待检测设备发送所述测量实例和所述测量实例对应的反射器,并向所述直采平台发送针对所述测量实例和所述测量实例对 应的反射器的控制指令,其中,所述直采平台用于根据所述测量实例、所述测量实例对应的反射器以及所述控制指令对待检测设备进行检测;Obtaining a measurement instance corresponding to the detection task in an open state and a reflector corresponding to the measurement instance, and transmitting, by the direct mining platform, the measurement instance and the reflector corresponding to the measurement instance to the device to be detected, and The platform transmits a pair of the measurement instance and the measurement instance The control instruction of the reflector, wherein the direct mining platform is configured to detect the device to be detected according to the measurement instance, the reflector corresponding to the measurement instance, and the control instruction;
接收所述直采平台对所述控制指令的检测结果,保存所述测量实例、所述测量实例对应的反射器以及对应的检测结果。Receiving a detection result of the control instruction by the direct mining platform, and saving the measurement instance, a reflector corresponding to the measurement instance, and a corresponding detection result.
在本发明一种实施例中,在获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器之前还包括:In an embodiment of the present invention, before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, the method further includes:
判断所述检测任务的测量实例是否存在对应的反射器,若不存在,则为所述测量实例创建反射器;若存在,则判断所述测量实例对应的反射器是否正常,若否,为所述测量实例重新创建反射器。Determining whether there is a corresponding reflector in the measurement instance of the detection task, and if not, creating a reflector for the measurement instance; if yes, determining whether the reflector corresponding to the measurement instance is normal, if not, The measurement example recreates the reflector.
本发明实施例还提供一种网络质量管理系统检测任务调度装置,包括:The embodiment of the invention further provides a network quality management system detection task scheduling device, comprising:
获取模块:配置为获取各检测任务,并获取所述各检测任务对应的状态信息,所述状态信息用于表征所述各检测任务当前所处的状态;An acquiring module: configured to acquire each detection task, and obtain state information corresponding to each detection task, where the state information is used to represent a current state of each detection task;
处理模块:配置为在所处状态为非停止状态的检测任务满足停止条件的情况下,控制所述检测任务的状态由非停止状态进入停止状态。The processing module is configured to control the state of the detection task to enter a stop state from a non-stop state in a case where the detection task whose state is a non-stop state satisfies the stop condition.
在本发明一种实施例中,所述处理模块包括:In an embodiment of the invention, the processing module includes:
待开启状态处理模块:配置为在所述非停止状态为待开启状态的情况下,控制所述检测任务的状态由待开启状态进入停止状态;The to-be-opened state processing module is configured to control, when the non-stop state is the to-be-opened state, to control the state of the detecting task from the to-be-opened state to the stopped state;
已开启状态处理模块:配置为在所述非停止状态为已开启状态的情况下,控制所述检测任务的状态由已开启状态进入停止状态;The state processing module is turned on: configured to control, when the non-stop state is the turned-on state, to control the state of the detecting task from the turned-on state to the stopped state;
待停止状态处理模块:配置为在所述非停止状态为待停止状态的情况下,控制所述检测任务的状态由待停止状态进入停止状态。The state to be stopped processing module is configured to control the state of the detecting task from the state to be stopped to the state of stopping when the non-stop state is the state to be stopped.
在本发明一种实施例中,所述检测任务包括至少一个测量实例;In an embodiment of the invention, the detecting task includes at least one measurement instance;
所述待开启状态处理子模块包括第一子模块,配置为控制所述检测任务的状态由待开启状态切换至已开启状态,再切换至待停止状态,进入停止状态; The to-be-opened state processing sub-module includes a first sub-module configured to control the state of the detecting task to be switched from the to-be-opened state to the turned-on state, and then to the to-be-stopped state to enter the stopped state;
所述已开启状态处理子模块包括第二子模块,配置为控制所述检测任务的状态由已开启状态切换至待停止状态,进入停止状态。The opened state processing sub-module includes a second sub-module configured to control the state of the detection task to be switched from an open state to a to-be-stop state, and to a stop state.
在本发明一种实施例中,所述第一子模块包括第一处理单元,配置为获取所述检测任务的开启时间,判断是否到达所述开启时间,若是,开启所述检测任务,将所述检测任务的状态切换至已开启状态;并且获取处于已开始状态的所述检测任务的结束时间,判断是否到达所述结束时间,若是,将所述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,控制所述检测任务的状态进入停止状态;In an embodiment of the present invention, the first sub-module includes a first processing unit configured to acquire an open time of the detection task, determine whether the open time is reached, and if so, open the detection task, and The state of the detecting task is switched to the turned-on state; and the end time of the detecting task in the started state is obtained, and it is determined whether the end time is reached, and if so, the state of the detecting task is switched from the turned-on state to the waiting state. Stopping the state; stopping the detection task that has entered the state to be stopped, and controlling the state of the detection task to enter a stop state;
所述第二子模块包括第二处理单元,配置为获取所述检测任务的结束时间,判断是否到达所述结束时间,若是,所述检测任务进入待停止状态,并将所述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,并将所述检测任务的状态由待停止状态切换至停止状态;The second sub-module includes a second processing unit configured to acquire an end time of the detection task, determine whether the end time is reached, and if so, the detection task enters a to-be-stop state, and the status of the detection task Switching from the turned-on state to the state to be stopped; stopping the detecting task that has entered the state to be stopped, and switching the state of the detecting task from the state to be stopped to the state of stopping;
所述待停止状态处理模块包括第三处理单元,配置为停止所述检测任务,控制所述检测任务的状态进入停止状态。The to-be-stop state processing module includes a third processing unit configured to stop the detection task and control a state of the detection task to enter a stop state.
在本发明一种实施例中,所述检测任务包括至少一个测量实例;In an embodiment of the invention, the detecting task includes at least one measurement instance;
所述第一处理单元包括第一停止子单元,配置为在所述非停止状态为待开启状态的情况下,查询所述检测任务对应的测量实例,将所述测量实例停止;The first processing unit includes a first stop sub-unit, configured to query a measurement instance corresponding to the detection task, and stop the measurement instance, in a case that the non-stop state is a to-be-opened state;
所述第二处理单元包括第二停止子单元,配置为在所述非停止状态为已开启状态的情况下,查询所述检测任务对应的测量实例,将所述测量实例停止;The second processing unit includes a second stop sub-unit configured to query a measurement instance corresponding to the detection task to stop the measurement instance if the non-stop state is an open state;
所述第三处理单元包括第三停止子单元,配置为在所述非停止状态为待停止状态的情况下,查询所述检测任务对应的测量实例,将所述测量实例停止。 The third processing unit includes a third stop subunit configured to query a measurement instance corresponding to the detection task when the non-stop state is a to-be-stop state, and stop the measurement instance.
在本发明一种实施例中,还包括:信息处理模块,配置为在控制所述检测任务的状态由非停止状态进入停止状态之前,获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器,通过直采平台向待检测设备发送所述测量实例和所述测量实例对应的反射器,并向所述直采平台发送针对所述测量实例和所述测量实例对应的反射器的控制指令,其中,所述直采平台用于根据所述测量实例、所述测量实例对应的反射器以及所述控制指令对待检测设备进行检测;以及接收所述直采平台对所述控制指令的检测结果,保存所述测量实例、所述测量实例对应的反射器以及对应的检测结果。In an embodiment of the present invention, the method further includes: an information processing module configured to acquire a measurement instance corresponding to the detection task in the open state and the measurement before controlling the state of the detection task to enter the stop state from the non-stop state The reflector corresponding to the instance sends the measurement instance and the reflector corresponding to the measurement instance to the device to be detected through the direct mining platform, and sends a reflection corresponding to the measurement instance and the measurement instance to the direct mining platform Control instruction of the device, wherein the direct mining platform is configured to detect the device to be detected according to the measurement instance, the reflector corresponding to the measurement instance, and the control instruction; and receive the control by the direct mining platform The detection result of the instruction saves the measurement instance, the reflector corresponding to the measurement instance, and the corresponding detection result.
在本发明一种实施例中,还包括:判断处理模块,配置为在获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器之前,判断所述检测任务的测量实例是否存在对应的反射器,若不存在,则为所述测量实例创建反射器;若存在,则判断所述测量实例对应的反射器是否正常,若否,为所述测量实例重新创建反射器。In an embodiment of the present invention, the method further includes: determining, by the processing module, that the measurement instance of the detection task is determined before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance There is a corresponding reflector, if not, a reflector is created for the measurement instance; if it is, it is determined whether the reflector corresponding to the measurement instance is normal, and if not, a reflector is newly created for the measurement instance.
所述获取模块、所述处理模块、所述待开启状态处理模块、所述已开启状态处理模块、所述待停止状态处理模块、所述第一子模块、所述第二子模块、所述第一处理单元、所述第二处理单元、所述第三处理单元、所述第一停止子单元、所述第二停止子单元、所述第三停止子单元、所述信息处理模块、所述判断处理模块在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。The acquiring module, the processing module, the to-be-opened state processing module, the opened state processing module, the to-be-stopped state processing module, the first sub-module, the second sub-module, and the a first processing unit, the second processing unit, the third processing unit, the first stopping subunit, the second stopping subunit, the third stopping subunit, the information processing module, and the The determination processing module may be implemented by a central processing unit (CPU), a digital signal processor (DSP), or a field-programmable gate array (FPGA).
本发明实施例还提供一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令配置为执行上述网络质量管理系统检测任务调度方法。The embodiment of the invention further provides a computer storage medium, wherein the computer executable instructions are configured to execute the network quality management system detection task scheduling method.
采用本发明实施例,网络质量管理系统检测任务调度装置获取检测任 务,还获取检测任务对应的状态信息,状态信息包括检测任务当前所处的状态;根据状态信息可以识别出各检测任务当前所处的状态;在所处状态为非停止状态的检测任务满足停止条件的情况下,控制该检测任务的状态由非停止状态进入停止状态。采用本发明的方案,针对处于非停止状态的检测任务,在其满足停止条件的时候,直接控制这些检测任务由非停止状态进入停止状态,这个过程不需要工作人员监测各检测任务的状态,也不需要工作人员手动切换工作状态;直接根据识别出的状态进行相应状态处理,控制检测任务的状态进入停止状态,解决了现有技术中的SQM系统需要工作人员花费大量的时间和精力来完成切换检测任务状态,从而导致的浪费人力资源,工作效率低下的问题,在现有技术中由于需要工作人员花费大量的时间和精力来完成切换检测任务状态,从而导致的浪费人力资源,工作效率低下,采用本发明实施例的检测任务状态的自动切换,能节省人力资源,提高工作效率。According to the embodiment of the present invention, the network quality management system detects the task scheduling device to obtain the detection And obtaining status information corresponding to the detection task, the status information includes the current state of the detection task; the status of each detection task can be identified according to the status information; and the detection task in the non-stop state is satisfied to stop. In the case of a condition, the state in which the detection task is controlled is entered from the non-stop state to the stop state. According to the solution of the present invention, for the detection task in the non-stop state, when the stop condition is met, the detection tasks are directly controlled to enter the stop state from the non-stop state, and the process does not require the staff to monitor the status of each detection task. The worker does not need to manually switch the working state; the corresponding state processing is directly performed according to the recognized state, and the state of the detecting task is controlled to enter the stop state, which solves the problem that the SQM system in the prior art requires a lot of time and effort to complete the switching. The problem of wasted human resources and inefficient work is detected in the state of the task. In the prior art, the staff member spends a lot of time and effort to complete the state of the handover detection task, resulting in wasted human resources and inefficient work. The automatic switching of the detection task state according to the embodiment of the invention can save human resources and improve work efficiency.
附图说明DRAWINGS
图1为本发明实施例一中的网络质量管理系统检测任务调度方法的流程图;1 is a flowchart of a method for detecting a task of a network quality management system according to Embodiment 1 of the present invention;
图2为本发明实施例一中的已开启状态的检测任务进入待停止状态过程的流程图;2 is a flowchart of a process in which a detection task in an open state enters a state to be stopped according to the first embodiment of the present invention;
图3为本发明实施例一中的待开启状态的检测任务进入待停止状态过程的流程图;3 is a flowchart of a process in which a detection task to be turned on enters a state to be stopped according to the first embodiment of the present invention;
图4为本发明实施例一中的待开启状态的检测任务进入停止状态过程的流程图;4 is a flowchart of a process in which a detection task to be turned on enters a stop state according to Embodiment 1 of the present invention;
图5为本发明实施例一中的已开启状态的检测任务执行过程的流程图;FIG. 5 is a flowchart of a process for executing a detection task in an open state according to Embodiment 1 of the present invention; FIG.
图6为本发明实施例一中的SQM平台与直采平台交互完成检测的流程图; 6 is a flowchart of detecting completion of interaction between an SQM platform and a direct mining platform according to Embodiment 1 of the present invention;
图7为本发明实施例一中的下发测量实例的流程图;FIG. 7 is a flowchart of an example of sending a measurement according to Embodiment 1 of the present invention;
图8为本发明实施例二中的机顶盒和智能手环的结构示意图。FIG. 8 is a schematic structural diagram of a set top box and a smart bracelet according to Embodiment 2 of the present invention.
具体实施方式detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
本实施例提供一种网络质量管理系统检测任务调度方法,请参考图1,该方法包括:This embodiment provides a network quality management system detection task scheduling method. Referring to FIG. 1, the method includes:
S101:获取各检测任务,并获取各检测任务对应的状态信息;S101: Acquire each detection task, and obtain state information corresponding to each detection task;
S102:在所处状态为非停止状态的检测任务满足停止条件的情况下,控制该检测任务的状态由非停止状态进入停止状态。S102: When the detection task whose state is the non-stop state satisfies the stop condition, the state of controlling the detection task enters the stop state from the non-stop state.
本发明主要处理SQM系统中,对检测任务的一些调度处理,包括对检测任务状态的切换,所以通常会执行步骤S101,获取各检测任务,并且还获取该检测任务对应的状态信息,在状态信息中包括有各检测任务当前所处的状态。检测任务通常是由工作人员配置的,工作人员在配置好后通常会将检测任务保存进数据库。后续可能各检测任务的状态会有变化,都会在数据库中进行更新。在数据库中,这些检测任务通常都是以检测任务表存储的,由于存储在数据库中任务检测表可能会很多,对于检测任务的存放方式可能是按照状态信息来进行存放,也可能按照创建顺序存放都是可以的;但是不管以何种方式存放都会存有检测任务,还有检测任务的状态信息,并且可以明确二者之间的对应关系。例如,可以采用下述存放方式,对于不同的状态,分别有对应的检测任务表;例如,有一张表的状态信息为停止,那么对应的表中的各项检测任务所处的状态都是停止状态;其他状态类似。还可以是,根据检测任务的配置时间,依次将各检测任务存储在数据库,其状态信息包括的内容就是该检测任务当前所处的状态。上述举例仅用于说明本发明的方案,并不对本发明的方案做任何限定。 The present invention mainly processes some scheduling processing of the detection task in the SQM system, including switching the status of the detection task. Therefore, step S101 is generally performed to acquire each detection task, and also obtain state information corresponding to the detection task. It includes the current status of each detection task. The inspection task is usually configured by the staff, and the staff usually saves the inspection task into the database after configuration. Subsequent changes in the status of each test task may be updated in the database. In the database, these detection tasks are usually stored in the detection task table. Since the task detection table stored in the database may be many, the storage method of the detection task may be stored according to the status information, or may be stored in the order of creation. It is ok; but no matter how it is stored, there will be detection tasks, as well as status information of the detection tasks, and the correspondence between the two can be clarified. For example, the following storage manners may be adopted. For different states, there are corresponding detection task tables; for example, if the status information of one table is stopped, the status of each detection task in the corresponding table is stopped. State; other states are similar. In addition, according to the configuration time of the detection task, each detection task is sequentially stored in the database, and the content of the status information includes the current state of the detection task. The above examples are only intended to illustrate the solution of the present invention, and are not intended to limit the scope of the present invention.
获取到检测任务的状态信息,可以根据状态信息识别出检测任务当前所处的状态,状态信息也可能不是直接的可以识别的方式存储的,例如,可能以某种字符对应相应的状态(比如说可以用00代表停止状态),此时,根据状态信息识别各检测任务当前所处的状态,只需要将对应的字符转换为相应状态。当然也可以是很直观就可以识别的方式,例如,可以是直接描述的方式,就用停止来代表停止状态,此时,根据状态信息识别各检测任务当前所处的状态可以直接识别出该检测任务当前所处的状态就是停止状态。Obtaining the status information of the detection task may identify the current state of the detection task according to the status information, and the status information may not be stored in a directly identifiable manner, for example, a certain character may correspond to the corresponding status (for example, The stop state can be represented by 00. At this time, the state of each detection task is identified according to the state information, and only the corresponding character needs to be converted into the corresponding state. Of course, it can also be a very intuitive way to identify. For example, it can be a direct description, and stop is used to represent the stop state. At this time, the current state of each detection task can be identified according to the state information, and the detection can be directly recognized. The current state of the task is the stop state.
然后执行步骤102,针对状态为非停止状态的检测任务,在其足停止条件的情况下,控制该检测任务的状态由非停止状态进入停止状态。在本实施例中,检测任务的状态可以包括:待开启状态、已开启状态,待停止状态以及停止状态。所谓已开启状态,表示检测任务正在执行;而待停止状态则表明检测任务已经执行完毕,需要将其停止,但是暂时还没有停止;而停止状态就是说明检测任务已经被停止了;待开启状态表示检测任务还没有被开启,但是需要被开启。对于处于待开启状态或者已开启状态的检测任务,停止条件为:检测任务进入待停止状态;自动将检测任务由非停止状态切换至停止状态包括:停止已进入待停止状态检测任务,并将检测任务的状态由待停止状态切换至停止状态。Then, in step 102, for the detection task whose state is non-stop state, in the case of its foot stop condition, the state of the detection task is controlled to enter the stop state from the non-stop state. In this embodiment, the status of the detection task may include: a to-be-on state, an on-off state, a to-be-stop state, and a stop state. The so-called open state means that the detection task is being executed; while the state to be stopped indicates that the detection task has been executed, it needs to be stopped, but has not stopped yet; and the stop state means that the detection task has been stopped; The detection task has not been opened yet, but needs to be turned on. For the detection task that is in the on state or the on state, the stop condition is: the detection task enters the to-be-stop state; automatically switching the detection task from the non-stop state to the stop state includes: stopping the detection task that has entered the to-be-stop state, and detecting The status of the task is switched from the state to be stopped to the state of the stop.
在本实施例中可以根据检测任务的类型在一个检测任务下设置多个测量实例,以及测量实例对应的反射器,而不是像现有技术中必须一个检测任务对应一个测量实例,这样在一样多测量实例的情况下,可以减少检测任务的数量,一方面方便测量实例的管理,另一方面也可以减少检测任务的切换次数,以免完成一个测量实例就进行一次检测任务状态切换。对于分类的准则,可以按照检测任务的具体作用类型进行分类,例如,设置了一个检测任务,是进行语音检测,同时设置了三个用于针对语音方面进行 检测的测量实例,那么可以将这三个用于针对语音方面进行检测的测量实例加入到该用于语音检测的检测任务中。当然也可以根据具体需求,灵活分类,将同类测量实例加入同一个检测任务中。In this embodiment, a plurality of measurement instances and a reflector corresponding to the measurement instance may be set under one detection task according to the type of the detection task, instead of having one measurement task corresponding to one measurement instance in the prior art, so that there are as many In the case of the measurement example, the number of detection tasks can be reduced. On the one hand, the management of the measurement instance is facilitated, and on the other hand, the number of switching of the detection task can be reduced, so that a detection task state switching is performed without completing a measurement instance. For the classification criteria, the classification can be classified according to the specific action type of the detection task. For example, a detection task is set, and voice detection is performed, and three are set for the voice aspect. The measured measurement instances can then be added to the measurement task for speech detection by adding these three measurement instances for speech detection. Of course, it is also possible to flexibly classify according to specific needs, and add similar measurement instances to the same detection task.
处于已开启状态的检测任务要进入停止状态,会先进入待停止状态。该过程包括:获取该检测任务的结束时间,并根据定时器判断是否到达结束时间,当结束时间到达时,检测任务进入待停止状态;并将检测任务的状态由已开启状态切换至待停止状态。具体如何实现在检测任务达到结束时间时,将检测任务的状态切换至待停止状态,本实施例提供一种具体方案,请参考图2,包括:When the detection task in the open state is to enter the stop state, it will enter the state to be stopped first. The process includes: obtaining an end time of the detection task, and determining whether the end time is reached according to a timer. When the end time arrives, the detection task enters a to-be-stop state; and the state of the detection task is switched from the opened state to the to-be-stop state. . Specifically, how to implement the specific solution when the detection task reaches the end time, and the state of the detection task is switched to the state to be stopped. This embodiment provides a specific solution.
S201:获取处于已开启状态的检测任务;S201: Acquire a detection task that is in an open state;
S202:获取该检测任务的结束时间;S202: Obtain an end time of the detection task.
S203:判断该检测任务是否存在定时器,若是,执行步骤S204,否则执行步骤S206;S203: determining whether the detection task has a timer, and if so, executing step S204, otherwise performing step S206;
S204:判断该检测任务的结束时间是否到达,若是执行步骤S205,否则重复执行步骤S204;S204: determining whether the end time of the detection task arrives, if step S205 is performed, otherwise repeating step S204;
S205:切换该检测任务的状态为待停止状态;S205: Switch the state of the detection task to a state to be stopped;
S206:为该检测任务创建定时器,并执行步骤S204。S206: Create a timer for the detection task, and execute step S204.
在本实施例的方案中,会在已开启检测任务的时候创建定时器,该定时器用来对检测任务进行计时,利用计时器来判断是否有达到结束时间。当然也可能存在有些检测任务已经被开启,但是还没有设置定时器,对于这些检测任务,就需要为其创建对应的定时器。当定时器的结束时间到达的时候,将证明可以停止该检测任务,但是执行停止往往会需要一个过程,而且可能有多个检测任务都需要完成停止,所以会将这些需要停止的检测任务的状态切换成待停止状态,证明其已经不需要再执行,需要对其执行停止的动作。对于定时器的具体时间的设置,对于不同的检测任务,设置 的时长可能也不相同,可以根据需求灵活设置。In the solution of this embodiment, a timer is created when the detection task is started, and the timer is used to time the detection task, and the timer is used to determine whether the end time is reached. Of course, there may be some detection tasks that have been enabled, but no timer has been set. For these detection tasks, a corresponding timer needs to be created for them. When the end time of the timer arrives, it will prove that the detection task can be stopped, but the execution stop often requires a process, and there may be multiple detection tasks that need to complete the stop, so the status of these detection tasks that need to be stopped will be Switching to the state to be stopped proves that it does not need to be executed again, and it needs to perform a stop action on it. For the specific time setting of the timer, set for different detection tasks. The duration may vary and can be flexibly set according to your needs.
对于处于待开启状态的检测任务要进入停止状态,首先会进入已开启状态;该过程包括:获取检测任务的开启时间,根据定时器判断当开启时间到达时,自动开启检测任务,并将状态切换至已开启状态;切换至已开启状态后,该检测任务就是处于已开启状态的任务了,进入待停止状态的过程就跟上述处于已开启状态的检测任务直接进入待停止状态的过程一样了。下面将具体介绍处于待开启状态的检测任务如何切换到已开启状态,请参考图3,包括:When the detection task in the to-be-opened state enters the stop state, it first enters the opened state; the process includes: obtaining the opening time of the detection task, and determining, according to the timer, that when the opening time arrives, the detection task is automatically turned on, and the state is switched. After the switch to the open state, the detection task is the task that is in the open state, and the process of entering the state to be stopped is the same as the process in which the detection task in the opened state directly enters the state to be stopped. The following describes how the detection task in the to-be-on state is switched to the enabled state. Please refer to Figure 3, including:
S301:获取处于待开启状态的检测任务;S301: Acquire a detection task in a state to be turned on;
S302:获取该检测任务对应的开始时间;S302: Acquire a start time corresponding to the detection task.
S303:判断该检测任务是否达到开始时间,若是,则执行步骤S304,否则,重复执行步骤S303;S303: determining whether the detection task reaches the start time, and if so, executing step S304, otherwise, repeating step S303;
S304:开启该检测任务,并将检测任务的状态切换至待停止状态。S304: Turn on the detection task, and switch the state of the detection task to the state to be stopped.
处于待开启状态的检测任务会先获取检测任务的开启时间,根据定时器判断有没有达到开启时间,当达到开启时间时,自动开启所述检测任务,并将检测任务的状态切换至已开启状态。在切换到已开启状态后,执行过程与图2中的过程一样,可以切换到待停止状态,进入待停止状态后,将检测任务停止,完成检测任务停止后,就可以将其切换到停止状态。The detection task in the to-be-opened state first obtains the opening time of the detection task, and determines whether the opening time is reached according to the timer. When the opening time is reached, the detection task is automatically turned on, and the state of the detection task is switched to the enabled state. . After switching to the open state, the execution process is the same as the process in FIG. 2, and can be switched to the state to be stopped. After entering the state to be stopped, the detection task is stopped, and after the detection task is stopped, it can be switched to the stop state. .
对于具体如何实现停止检测任务,将检测任务的状态由待停止状态切换至停止状态,本实施例提供一种具体方案,请参考图4,包括:For a specific implementation of the stop detection task, the state of the detection task is switched from the state to be stopped to the stop state. This embodiment provides a specific solution. Referring to FIG. 4, the method includes:
S401:获取处于待停止状态的检测任务;S401: Acquire a detection task in a state to be stopped;
S402:获取该检测任务对应的测量实例;S402: Acquire a measurement instance corresponding to the detection task.
S403:判断测量实例的状态是否处于已经停止或正在停止,若是,则执行步骤S405,否则,执行步骤S404;S403: determining whether the state of the measurement instance is already stopped or stopping, if yes, proceeding to step S405, otherwise, performing step S404;
S404:停止没有停止的测量实例,并执行步骤S405; S404: Stop the measurement instance without stopping, and perform step S405;
S405:当所有测量实例完成停止,将检测任务的状态切换至停止状态。S405: When all the measurement instances are completed, the state of the detection task is switched to the stop state.
由于真正完成检测,主要是依靠测量实例来实现的,停止检测任务事实上主要停止的是检测任务对应的测量实例,而前面也已经说过,首先,需要停止的测量任务会先处于待停止状态;其次,一个检测任务下可能对应一个或者多个测量实例。所以,在本实施例中,会先获取处获取处于待停止状态的检测任务,并且还会获取该检测任务对应的测量实例,这里的测量实例通常是该检测任务所对应的所有测量实例;然后判断这些测量实例的状态,看其是否已经停止,如果已经停止的话就不需要对其再做任何处理,而如果还没有停止的话需要先让这些还没有停止的测量实例先停止;当检测任务对应的测量实例都处于已停止状态的时候,就可以将该检测任务的由待停止状态切换成停止状态了。Since the detection is actually completed, it mainly relies on the measurement example. The stop detection task actually stops the measurement instance corresponding to the detection task. As mentioned above, firstly, the measurement task that needs to be stopped will be in the state to be stopped first. Secondly, one test task may correspond to one or more measurement instances. Therefore, in this embodiment, the detection task in the state to be stopped is acquired first, and the measurement instance corresponding to the detection task is also acquired. The measurement instance here is usually all measurement instances corresponding to the detection task; Judging the status of these measurement instances to see if they have stopped. If they have stopped, they do not need to do any further processing. If they have not stopped, they need to stop the measurement instances that have not stopped before; When the measurement instances are all in the stopped state, the state to be stopped of the detection task can be switched to the stopped state.
由于该系统的本意是用于对待检测设备的某些性能任务等进行检测的,所以,处于开启状态的检测任务的主要需要完成的事也是进行检测对于其具体检测过程可以参考图5,包括:Since the intention of the system is to detect certain performance tasks and the like of the device to be detected, the main need to complete the detection task in the open state is also to perform detection. For the specific detection process, reference may be made to FIG. 5, including:
S501:获取处于开启状态的检测任务;S501: Acquire a detection task that is in an open state;
S502:获取该检测任务对应的测量实例;S502: Acquire a measurement instance corresponding to the detection task.
S503:判断测量实例是否正在下发或者已将下发,若是,则进入步骤S505;否则,执行步骤S504;S503: determining whether the measurement instance is being issued or has been issued, if yes, proceeding to step S505; otherwise, performing step S504;
S504:将测量实例下发至直采平台,并进入步骤S505;S504: The measurement instance is sent to the direct mining platform, and proceeds to step S505;
S505:当所有测量实例完成下发,结束本次流程。S505: When all measurement instances are completed, the process ends.
对于检测任务的具体执行过程中会涉及到SQM平台,直采平台以及待检测设备。SQM平台和直采平台可能是布置在同一个硬件设备,也可能在不同设备上,也可能是在同一个系统上。SQM平台通常根据用户的配置来生成检测任务,测量实例,以及测量实例相对应的反射器等等,并完成检测的整体全局控制;对于生成的检测任务,可能不会立即执行,可以将其 先保存在数据库中,在需要使用的时候再来获取这些检测任务。而直采平台,通常用于与待检测设备进行交互,并利用测量实例或测量实例对应的反射器完成对所述待检测设备的检测;待检测设备,很明显就是需要被检测的设备,对其进行的检测包括其性能,功能等等各方面的检测。测量实例和反射器的内容可能是针对待检测设备的某个功能的检测,例如可,测量实例A以及测量实例A对应的反射器A可能适用于检测待检测设备的语音功能是否能正常执行,直采平台会在根据测量实例A以及反射器A中配置的信息与待检测设备进行交互得到检测结果。对于反射器,主要是用来与测量实例进行配合完成检测的。对于SQM平台和直采平台的交互过程请参见图6,包括:For the specific implementation process of the detection task, the SQM platform, the direct mining platform and the equipment to be tested are involved. The SQM platform and the direct mining platform may be arranged on the same hardware device, or on different devices, or on the same system. The SQM platform usually generates detection tasks, measurement instances, and corresponding reflectors of the measurement instances according to the configuration of the user, and completes the overall global control of the detection; for the generated detection tasks, the detection tasks may not be executed immediately, and may be Save it in the database first, and then get these detection tasks when you need to use it. The direct mining platform is generally used to interact with the device to be tested, and the detection device or the measurement instance corresponding to the reflector is used to complete the detection of the device to be detected; the device to be detected is obviously the device to be detected, The tests it performs include the detection of its performance, functions and so on. The content of the measurement instance and the reflector may be a detection of a certain function of the device to be detected. For example, the measurement instance A and the reflector A corresponding to the measurement instance A may be suitable for detecting whether the voice function of the device to be detected can be performed normally. The direct mining platform will interact with the device to be tested according to the information configured in the measurement instance A and the reflector A to obtain the detection result. For the reflector, it is mainly used to cooperate with the measurement example to complete the test. For the interaction process between the SQM platform and the direct mining platform, please refer to Figure 6, including:
S601:SQM平台向直采平台下发测量实例和测量实例对应的反射器;S601: The SQM platform sends a reflector corresponding to the measurement instance and the measurement instance to the direct mining platform;
S602:直采平台接收测量实例和测量实例对应的反射器;S602: The direct mining platform receives the reflector corresponding to the measurement instance and the measurement instance;
S603:SQM平台对直采平台发送针对该测量实例的控制指令;S603: The SQM platform sends a control instruction for the measurement instance to the direct mining platform;
S604:直采平台接收控制指令,并执行控制指令;S604: The direct mining platform receives the control instruction and executes the control instruction;
S605:将检测结果反馈给SQM平台;S605: feedback the detection result to the SQM platform;
S606:SQM平台接收检测结果,并将检测结果和对应的测量实例以及反射器保存。S606: The SQM platform receives the detection result, and saves the detection result and the corresponding measurement instance and the reflector.
在本实施例的一种具体实施方式中,测量实例和反射器成对出现,反射器配合测量实例完成检测,也就是一个检测任务对应一个或多个测量实例,每个测量实例都有与之对应的反射器。所以在下发测量实例的时候会下发测量实例对应的反射器,而且在下发测量实例之前还需要对测量实例对应的反射器进行检查。所以在获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器之前还会判断所述检测任务的测量实例是否存在对应的反射器,若不存在,则为该测量实例创建反射器;若存在,则判断该测量实例对应的反射器是否正常,若不正常的话,就需要为该测 量实例重新创建反射器。In a specific implementation manner of the embodiment, the measurement instance and the reflector appear in pairs, and the reflector completes the detection according to the measurement instance, that is, one detection task corresponds to one or more measurement instances, and each measurement instance has a Corresponding reflector. Therefore, when the measurement instance is delivered, the reflector corresponding to the measurement instance is sent, and the reflector corresponding to the measurement instance needs to be checked before the measurement instance is sent. Therefore, before obtaining the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, it is determined whether the measurement instance of the detection task has a corresponding reflector, and if not, the measurement instance is created. a reflector; if present, it is determined whether the reflector corresponding to the measurement instance is normal, and if it is not normal, the test is required The quantity instance recreates the reflector.
处于已开启状态的检测任务其需要做的具体的事情就是,将该检测任务对应的所有测量实例下发给直采平台,并且还向该直采平台下发控制命令,该控制命令通常会包括实例开启命令、实例停止命令等等;所谓实例开启命令也就是说SQM平台需要直采平台开始执行测量实例;直采平台在接收到这个控制命令之后就会开始执行这个测量实例,无论开启成功还是开启失败都会反馈给SQM平台一个检测结果;另外对于控制指令是开启测量实例这种情况,直采平台将测量实例开启后,直采平台和待检测设备之间就会进行交互,利用测量实例和测量实例对应的反射器完成对待检测设备的检测,而检测结果通常根据反射器的配置状况来获得。所以,对于控制指令是开启测量实例这种情况,直采平台还会向SQM平台返回反射器消息,根据反射器中的状态消息可以知道对待检测设备的检测状况;当反射器已配置,则反射器的状态为正常,若反射器未被配置,则反射器的状态为失效。另外,控制指令也可能是停止指令,所谓停止指令也就是需要将处正处于开启状态的该测量实例停止,直采平台收到该停止指令后,执行停止对应测量实例的动作,无论停止成功还是停止失败,都会将停止结果返回给SQM平台。SQM平台在收到直采平台反馈的这些信息数据后,会将对应的测量实例或反射器,以及对应的检测结果进行保存。SQM平台向直采平台发送停止测量实例A的控制指令,直采平台收到该控制指令后就会将测量实例A停止,测量实例A停止成功,直采平台将测量实例A停止成功的消息发送给SQM平台,SQM平台收到该消息后就知道测量实例A已经停止成功了,于是将测量实例A以及对应的检测结果停止成功保存,当下次查询到该测量实例A就可以知道,该测量实例A现在所处的状态是停止状态。在保存各测量实例以及对应的检测结果的时候通常采用更新的方式,也就是说可能对该测量实例A执行了多次停止操作,保存都已后一次的覆盖前一次 的方式进行保存。当然也可以保存多次的信息,查询的时候根据保存时间进行识别。很明显,采用前一种保存方式会更方便,而且节省空间。The specific task of the detection task in the open state is that all the measurement instances corresponding to the detection task are sent to the direct mining platform, and the control command is also sent to the direct mining platform, and the control command usually includes Instance open command, instance stop command, etc.; the so-called instance open command means that the SQM platform needs the direct mining platform to start executing the measurement instance; the direct mining platform will start executing the measurement instance after receiving the control command, regardless of whether the startup is successful or not. The startup failure will be fed back to the SQM platform for a test result; in addition, for the control command to open the measurement instance, the direct mining platform will open the measurement instance, and the direct mining platform and the device to be tested will interact with each other, using measurement examples and The reflector corresponding to the measurement example completes the detection of the device to be inspected, and the detection result is usually obtained according to the configuration state of the reflector. Therefore, for the case where the control instruction is to open the measurement instance, the direct mining platform also returns a reflector message to the SQM platform, and the detection status of the device to be detected can be known according to the status message in the reflector; when the reflector is configured, the reflection The state of the device is normal. If the reflector is not configured, the state of the reflector is invalid. In addition, the control command may also be a stop command, that is, the stop command needs to stop the measurement instance that is in the open state, and after receiving the stop command, the direct mining platform performs the action of stopping the corresponding measurement instance, whether the stop is successful or not. If the stop fails, the stop result will be returned to the SQM platform. After receiving the information data fed back by the direct mining platform, the SQM platform saves the corresponding measurement instance or reflector and the corresponding detection result. The SQM platform sends a control instruction to stop the measurement instance A to the direct mining platform. After receiving the control command, the direct mining platform stops the measurement instance A, the measurement instance A stops successfully, and the direct mining platform sends the measurement instance A to stop the successful message transmission. After receiving the message, the SQM platform knows that the measurement instance A has stopped successfully, so the measurement instance A and the corresponding detection result are successfully saved. When the measurement instance A is queried next time, the measurement instance can be known. A is now in a stopped state. When saving each measurement instance and the corresponding detection result, the update method is usually adopted, that is, the measurement instance A may be repeatedly stopped, and the previous coverage is saved. The way to save. Of course, it is also possible to save multiple times of information, and the query is based on the save time. Obviously, using the previous save method is more convenient and saves space.
对于SQM平台向直采平台下发测量实例以及对应的反射器的过程,可参见图7,包括:For the SQM platform to send measurement examples and corresponding reflectors to the direct mining platform, refer to Figure 7, including:
S701:获取测量实例;S701: Obtain a measurement instance.
S702:判断测量实例对应的反射器是否存在,若是,执行步骤S703;否则,执行步骤S708;S702: determining whether the reflector corresponding to the measurement instance exists, and if so, executing step S703; otherwise, performing step S708;
S703:判断测量实例次下发失败次数是否到达预设次数,若是,则执行步骤S709;否则,执行步骤S704;S703: determining whether the number of failed delivery times of the measurement instance reaches a preset number of times, if yes, executing step S709; otherwise, executing step S704;
S704:构造测量实例和反射器下发对象;S704: Constructing a measurement instance and a reflector to deliver the object;
S705:将下发对象下发至直采平台;S705: Delivering the delivered object to the direct mining platform;
S706:判断是否下发成功,若是,则进入步骤S707;否则进入步骤S709;S706: determining whether the delivery is successful, if yes, proceeding to step S707; otherwise, proceeding to step S709;
S707:测量实例下发成功;S707: The measurement instance is successfully delivered;
S708:创建并配置对应的反射器,执行步骤S703;S708: Create and configure a corresponding reflector, and perform step S703;
S709:测量实例下发失败。S709: The measurement instance fails to be delivered.
在步骤S701-S709的过程中,主要需要判断测量实例是否已经存在对应的反射器,如果已经存在的话可以直接将测量实例和对应的反射器构造成下发对象进行发送,若果不存在就需要创建对应的反射器。这里需要构造下发对象是因为,测量实例和反射器是针对具体的待检测设备的,不同的被测试设备可能需要不同的检测格式,所以通常需要将测量实例和反射器构造成与待检测设备相对应的格式。另外,在下发之前还会先判断之前已经失败的次数有没有达到预设次数,在没有达到预设次数的前提下才进行下发;这样一来可以防止由于某些错误导致多次失败,而一直执行下发,占用资源。对于预设次数可以根据具体情况灵活设置,10次、15次、20次都可以。 In the process of steps S701-S709, it is mainly required to determine whether a corresponding reflector exists in the measurement instance. If it already exists, the measurement instance and the corresponding reflector can be directly configured as a delivery object for transmission, and if it does not exist, it is required. Create a corresponding reflector. Here, the object to be sent needs to be constructed because the measurement instance and the reflector are specific to the device to be tested, and different devices to be tested may require different detection formats, so it is usually necessary to construct the measurement instance and the reflector into the device to be tested. Corresponding format. In addition, before the issuance, it is determined whether the number of previous failures has reached the preset number of times, and is not issued until the preset number of times is reached; thus, it can prevent multiple failures due to some errors, and It is always executed and takes up resources. For the preset number of times, it can be flexibly set according to the specific situation, 10 times, 15 times, 20 times.
在本发明的一种实施方式中,对于已经停止的检测任务,对其进行判断,看其是否需要清理,如果需要清理的话,就对其执行清理步骤。删除该检测任务下的所有反射器,再删除所有测量实例,最后删除整个检测任务。对于具体的检测任务,如果在其执行完成,并进入停止状态后,是否要将其删除,通常在配置的时候可以根据具体需求灵活选择。为了方便检测任务的重复使用,在一种具体实施方式中,还可以设置将已经处于停止状态的检测任务切换至待开启状态。例如,在配置检测任务时,可能设置监测任务A周期性地执行,不仅配置检测任务A的开始时间,还设置执行周期,例如设置检测任务A的开始时间为10:00,结束时间为10:05,执行周期为24小时;若现在处于刚刚创建该检测任务A,并完成配置阶段,那么可以知道,该检测任务A现在处于待开启状态,需要在10:00开启该检测任务,将其切换至已开启状态;在到达10:00时,将其从已开启状态切换至待停止状态,进入待停止状态后,只需要对该检测任务执行停止动作,主要包括将其对应的测量实例停止,然后就可以将状态由待停止状态切换至停止状态。当然在其处于已开启状态的时候,还需要完成上述如图6,图7所述的与直采平台的交互过程。如此,便算完成了一个检测过程,会等待下一个执行周期的到达,由于这里设置的执行周期是24小时,那么在24小时后,会重复执行上述步骤,完成自动检测。对于这种情况,还可以事先设置,需要执行几个固定周期,然后进行任务删除。In one embodiment of the invention, the detection task that has been stopped is judged to see if it needs to be cleaned, and if it needs to be cleaned, a cleaning step is performed on it. Delete all reflectors under the detection task, delete all measurement instances, and delete the entire inspection task. For a specific detection task, if it is to be deleted after it is executed and enters the stop state, it can usually be flexibly selected according to specific needs during configuration. In order to facilitate the repeated use of the detection task, in a specific embodiment, it is also possible to set the detection task that has been in the stopped state to be switched on. For example, when configuring the detection task, it is possible to set the monitoring task A to perform periodically, not only to configure the start time of the detection task A, but also to set the execution period. For example, the detection task A has a start time of 10:00 and an end time of 10: 05, the execution period is 24 hours; if the detection task A is just created and the configuration phase is completed, then it can be known that the detection task A is now in the to-be-open state, and the detection task needs to be started at 10:00, and it is switched. When it reaches 10:00, it will switch from the open state to the stop state, and after entering the state to be stopped, it only needs to stop the detection task, which mainly includes stopping the corresponding measurement instance. Then you can switch the state from the state to be stopped to the stop state. Of course, when it is in the open state, it is also necessary to complete the interaction process with the direct mining platform as described above in FIG. 6 and FIG. 7 . In this way, if a detection process is completed, it will wait for the arrival of the next execution cycle. Since the execution cycle set here is 24 hours, after 24 hours, the above steps are repeated to complete the automatic detection. In this case, you can also set it in advance, you need to perform several fixed cycles, and then delete the task.
采用本实施例中的网络质量管理系统检测任务调度方法,首先可以不需要人工手动执行检测任务状态的检测和切换,减少人力资源浪费;其次在一个检测任务中设置一个或多个测量实例,减少检测任务状态的切换,使效率提高;另外,可以对已停止的检测任务重复执行,过程不需要人工操作,便于管理,节约资源。The network quality management system in this embodiment detects the task scheduling method, firstly, the manual detection and switching of the detection task state is not required to be manually performed, thereby reducing the waste of human resources; secondly, setting one or more measurement instances in one detection task, reducing The task status is switched to improve the efficiency. In addition, the stopped detection task can be repeatedly executed. The process does not require manual operation, which is convenient for management and saves resources.
实施例二: Embodiment 2:
本实施例提供一种网络质量管理系统检测任务调度装置,请参考图8,主要包括:获取模块81和处理模块82。获取模块81配置为获取各检测任务,以及对应的状态信息,所谓状态信息,就是用于表征各检测任务当前所处的状态的信息;处理模块82配置为在所处状态为非停止状态的检测任务满足停止条件的情况下,控制该检测任务的状态由非停止状态进入停止状态。检测任务通常是由工作人员配置的,工作人员在配置好后通常会将检测任务保存进数据库。后续可能各检测任务的状态会有变化,都会在数据库中进行更新。This embodiment provides a network quality management system detection task scheduling apparatus. Referring to FIG. 8, the method mainly includes an obtaining module 81 and a processing module 82. The obtaining module 81 is configured to acquire each detection task and corresponding state information, and the so-called state information is information for characterizing the current state of each detection task; the processing module 82 is configured to detect the non-stop state when the state is in the state When the task satisfies the stop condition, the state in which the detection task is controlled is entered from the non-stop state to the stop state. The inspection task is usually configured by the staff, and the staff usually saves the inspection task into the database after configuration. Subsequent changes in the status of each test task may be updated in the database.
处理模块82包括待开启状态处理模块822、已开启状态处理模块821和待停止状态处理模块823。待开启状态处理模块822配置为在非停止状态为待开启状态的情况下,控制检测任务的状态由待开启状态进入停止状态。已开启状态处理模块821配置为在非停止状态为已开启状态的情况下,控制检测任务的状态由已开启状态进入停止状态。待停止状态处理模块823配置为在非停止状态为待停止状态的情况下,控制检测任务的状态由待停止状态进入停止状态。The processing module 82 includes a to-be-opened state processing module 822, an opened state processing module 821, and a to-be-stopped state processing module 823. The to-be-opened state processing module 822 is configured to control the state of the detected task from the to-be-opened state to the stopped state in a case where the non-stop state is the to-be-opened state. The turned-on state processing module 821 is configured to control the state of the detected task from the turned-on state to the stopped state in the case where the non-stop state is the turned-on state. The to-be-stated state processing module 823 is configured to control the state of the detection task from the to-be-stopped state to the stopped state in the case where the non-stop state is the to-be-stopped state.
检测任务包括至少一个测量实例;已开启状态处理模块821包括第一子模块8211,配置为控制检测任务的状态由待开启状态切换至已开启状态,再切换至待停止状态,进入停止状态。待开启状态处理模块822包括第二子模块8221,配置为控制检测任务的状态由已开启状态切换至待停止状态,进入停止状态。The detection task includes at least one measurement instance; the opened state processing module 821 includes a first sub-module 8211 configured to control the state of the detection task to be switched from the to-be-opened state to the turned-on state, and then to the to-be-stopped state to enter the stopped state. The to-be-opened state processing module 822 includes a second sub-module 8221 configured to control the state of the detected task to be switched from the turned-on state to the to-be-stop state, and to the stop state.
第一子模块8211包括第一处理单元82111,配置为获取检测任务的开启时间,判断是否到达开启时间,若是,开启检测任务,将检测任务的状态切换至已开启状态;并且获取处于已开始状态的该检测任务的结束时间,判断是否到达结束时间,若是,将检测任务的状态由已开启状态切换至待停止状态;停止已进入待停止状态的该检测任务,控制该检测任务的状态 进入停止状态。The first sub-module 8211 includes a first processing unit 82111 configured to acquire an open time of the detection task, determine whether the open time is reached, and if so, turn on the detection task, switch the state of the detection task to the enabled state; and obtain the started state. The end time of the detection task determines whether the end time is reached. If yes, the state of the detection task is switched from the opened state to the to-be-stop state; the detection task that has entered the to-be-stop state is stopped, and the state of the detection task is controlled. Enter the stop state.
第二子模块8221包括第二处理单元82211,配置为获取检测任务的结束时间,判断是否到达结束时间,若是,检测任务进入待停止状态,并将检测任务的状态由已开启状态切换至待停止状态;停止已进入待停止状态的检测任务,并将该检测任务的状态由待停止状态切换至停止状态;待停止状态处理模块823包括第三处理单元8231,配置为停止检测任务,控制测任务的状态进入停止状态。The second sub-module 8221 includes a second processing unit 82211 configured to acquire an end time of the detection task, determine whether the end time is reached, and if so, the detection task enters a to-be-stop state, and switches the state of the detection task from the opened state to the to-be-stopped state. a state; stopping the detection task that has entered the state to be stopped, and switching the state of the detection task from the state to be stopped to the stop state; the state to be stopped processing module 823 includes a third processing unit 8231 configured to stop the detection task and control the measurement task The state enters the stop state.
所述第一处理单元82111包括第一停止子单元821111配置为在非停止状态为待开启状态的情况下,查询检测任务对应的测量实例,将该测量实例停止。第二处理单元82211包括第二停止子单元822111,配置为在非停止状态为已开启状态的情况下,查询检测任务对应的测量实例,将该测量实例停止。第三处理单元8231包括第三停止子单元82311,配置为在非停止状态为待停止状态的情况下,查询检测任务对应的测量实例,将该测量实例停止。The first processing unit 82111 includes a first stop subunit 821111 configured to query a measurement instance corresponding to the detection task in a case where the non-stop state is a to-be-opened state, and stop the measurement instance. The second processing unit 82211 includes a second stop subunit 822111 configured to query the measurement instance corresponding to the detection task in the case that the non-stop state is the on state, and stop the measurement instance. The third processing unit 8231 includes a third stop subunit 82311 configured to query the measurement instance corresponding to the detection task in the case that the non-stop state is the to-be-stop state, and stop the measurement instance.
在本发明一种实施例中,网络质量管理系统检测任务调度装置还包括信息处理模块83,配置为在控制所述检测任务的状态由非停止状态进入停止状态之前,获取处于开启状态的检测任务对应的测量实例和该量实例对应的反射器,将测量实例和该量实例对应的反射器下发给直采平台,并向直采平台发送针对该测量实例和该量实例对应的反射器的控制指令,以及接收直采平台对控制指令的检测结果,并保存测量实例和该量实例对应的反射器以及对应的检测结果。直采平台,通常用于与待检测设备进行交互,并利用测量实例或测量实例对应的反射器完成对所述待检测设备的检测;待检测设备,很明显就是需要被检测的设备,对其进行的检测包括其性能,功能等等各方面的检测。In an embodiment of the present invention, the network quality management system detection task scheduling apparatus further includes an information processing module 83 configured to acquire the detection task in the open state before controlling the state of the detection task from the non-stop state to the stop state. Corresponding measurement instance and the reflector corresponding to the quantity instance, the measurement instance and the reflector corresponding to the quantity instance are sent to the direct mining platform, and the reflector corresponding to the measurement instance and the quantity instance is sent to the direct mining platform. Controlling the instruction, and receiving the detection result of the direct control platform for the control instruction, and saving the measurement instance and the reflector corresponding to the quantity instance and the corresponding detection result. The direct mining platform is generally used to interact with the device to be tested, and the detection device or the measurement instance corresponding to the reflector is used to complete the detection of the device to be detected; the device to be detected is obviously a device that needs to be detected, The tests performed include the detection of various aspects of its performance, functions and so on.
在本发明一种实施例中,网络质量管理系统检测任务调度装置还包括 判断处理模块84,配置为在获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器之前,判断检测任务的测量实例是否存在对应的反射器,若不存在,则为该测量实例创建反射器;若存在,则判断该测量实例对应的反射器是否正常,若不正常,为该测量实例重新创建反射器。In an embodiment of the present invention, the network quality management system detection task scheduling apparatus further includes The determining processing module 84 is configured to determine, before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, whether the measurement instance of the detection task has a corresponding reflector, and if not, the The measurement instance creates a reflector; if it exists, it determines whether the reflector corresponding to the measurement instance is normal, and if not, recreates the reflector for the measurement instance.
需要理解的是,本实施例中的网络质量管理系统检测任务调度装置可用于执行上述实施例一中的网络质量管理系统检测任务调度方法。也就是说,对于上述实施例一种的网络质量管理系统检测任务调度方法中的每个步骤,本实施例中的网络质量管理系统检测任务调度装置都有相应的模块来完成,虽然可能在本实施例中没有一一列举。当测SQM平台中设置该网络质量管理系统检测任务调度装置时,相应的也会有对应的模块来完成上述实施例一中的网络质量管理系统检测任务调度方法的各个步骤。It is to be understood that the network quality management system detection task scheduling apparatus in this embodiment may be used to perform the network quality management system detection task scheduling method in the first embodiment. That is, for each step in the network quality management system detection task scheduling method of the above embodiment, the network quality management system detection task scheduling apparatus in this embodiment has a corresponding module to complete, although it may be in this There is no one in the examples. When the network quality management system detection task scheduling device is set in the SQM platform, corresponding modules are also provided to complete the steps of the network quality management system detection task scheduling method in the first embodiment.
采用本实施例中的网络质量管理系统检测任务调度装置,完成检测任务,可以不需要人工手动执行检测任务状态的检测和切换,并在一个检测任务中设置一个或多个测量实例,可以灵活将该装置部署与SQM系统等。具有人工参与率低,执行效率高的优点。The network quality management system in this embodiment detects the task scheduling device, completes the detection task, and can manually perform the detection and switching of the detection task state manually, and set one or more measurement instances in one detection task, which can be flexibly The device is deployed with an SQM system and the like. It has the advantages of low manual participation rate and high execution efficiency.
本发明实施例还提供一种计算机存储介质,其中存储有计算机可执行指令,该计算机可执行指令配置为执行上述网络质量管理系统检测任务调度方法。The embodiment of the invention further provides a computer storage medium, wherein the computer executable instructions are configured to execute the network quality management system detection task scheduling method.
显然,本领域的技术人员应该明白,上述本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in a storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases The steps shown or described may be performed in a different order than that herein, or they may be separately fabricated into individual integrated circuit modules. Alternatively, multiple modules or steps of them can be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
采用本发明实施例,获取检测任务,及检测任务对应的状态信息。状态信息包括检测任务当前所处的状态。根据状态信息可以识别出各检测任务当前所处的状态。在所处状态为非停止状态的检测任务满足停止条件的情况下,控制该检测任务的状态由非停止状态进入停止状态。针对处于非停止状态的检测任务,在其满足停止条件的时候,直接控制这些检测任务由非停止状态进入停止状态,这个过程不需要工作人员监测各检测任务的状态,也不需要工作人员手动切换工作状态;直接根据识别出的状态进行相应状态处理,控制检测任务的状态进入停止状态,解决了现有技术中由于需要工作人员花费大量的时间和精力来完成切换检测任务状态,从而导致的浪费人力资源,工作效率低下的问题,通过自动进行检测任务状态切换,节省人力资源,提高工作效率的效果。 According to the embodiment of the present invention, the detection task is acquired, and the state information corresponding to the task is detected. The status information includes the status of the current task. According to the status information, the current state of each detection task can be identified. In a case where the detection task whose state is the non-stop state satisfies the stop condition, the state in which the detection task is controlled is entered from the non-stop state to the stop state. For the detection task in the non-stop state, when it meets the stop condition, directly control these detection tasks from the non-stop state to the stop state. This process does not require the staff to monitor the status of each detection task, and does not require manual switching by the staff. The working state; directly performs the corresponding state processing according to the recognized state, and controls the state of the detecting task to enter the stopping state, which solves the waste in the prior art due to the need for the staff to spend a lot of time and effort to complete the switching detection task state. Human resources, low work efficiency, by automatically switching the status of detection tasks, saving human resources and improving work efficiency.

Claims (15)

  1. 一种网络质量管理系统检测任务调度方法,包括:A network quality management system detection task scheduling method, comprising:
    获取检测任务对应的状态信息,所述状态信息用于表征所述检测任务当前所处的状态;Obtaining state information corresponding to the detection task, where the state information is used to represent a state in which the detection task is currently located;
    在所处状态为非停止状态的检测任务满足停止条件的情况下,控制所述检测任务的状态由非停止状态进入停止状态。In a case where the detection task whose state is the non-stop state satisfies the stop condition, the state in which the detection task is controlled is entered from the non-stop state to the stop state.
  2. 如权利要求1所述的网络质量管理系统检测任务调度方法,其中,所述控制所述检测任务的状态由非停止状态进入停止状态包括:The network quality management system detecting task scheduling method according to claim 1, wherein the controlling the state of the detecting task from the non-stop state to the stopping state comprises:
    在所述非停止状态为待开启状态的情况下,控制所述检测任务的状态由待开启状态进入停止状态;When the non-stop state is the to-be-opened state, the state of the detection task is controlled to enter a stop state from the to-be-opened state;
    在所述非停止状态为已开启状态的情况下,控制所述检测任务的状态由已开启状态进入停止状态;In a case where the non-stop state is an open state, controlling a state of the detection task from an open state to a stop state;
    在所述非停止状态为待停止状态的情况下,控制所述检测任务的状态由待停止状态进入停止状态。In a case where the non-stop state is a to-be-stop state, the state of the detection task is controlled to enter a stop state from a state to be stopped.
  3. 如权利要求2所述的网络质量管理系统检测任务调度方法,其中,所述控制所述检测任务的状态由待开启状态进入停止状态包括:控制所述检测任务的状态由待开启状态切换至已开启状态,再切换至待停止状态,进入停止状态;The network quality management system detecting task scheduling method according to claim 2, wherein the controlling the state of the detecting task from the to-be-opened state to the stopping state comprises: controlling the state of the detecting task to be switched from the to-be-opened state to the Open state, then switch to the state to be stopped, enter the stop state;
    所述控制所述检测任务的状态由已开启状态进入停止状态包括:控制所述检测任务的状态由已开启状态切换至待停止状态,进入停止状态。The controlling the state of the detecting task from the turned-on state to the stopping state includes: controlling the state of the detecting task to be switched from the turned-on state to the to-be-stop state, and entering the stop state.
  4. 如权利要求3所述的网络质量管理系统检测任务调度方法,其中,所述控制所述检测任务的状态由待开启状态进入停止状态包括:获取所述检测任务的开启时间,判断是否到达所述开启时间,若是,开启所述检测任务,将所述检测任务的状态切换至已开启状态;并且获取处于已开始状态的所述检测任务的结束时间,判断是否到达所述结束时间,若是,将所 述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,控制所述检测任务的状态进入停止状态;The network quality management system detecting task scheduling method according to claim 3, wherein the controlling the state of the detecting task from the to-be-opened state to the stopping state comprises: acquiring an opening time of the detecting task, determining whether the reaching of the detecting task Turning on the time, if yes, turning on the detection task, switching the state of the detection task to the opened state; and acquiring the end time of the detection task in the started state, determining whether the end time is reached, and if so, Place The state of the detection task is switched from the opened state to the to-be-stop state; the detection task that has entered the state to be stopped is stopped, and the state of the detection task is controlled to enter a stop state;
    所述控制所述检测任务的状态由已开启状态进入停止状态包括:获取所述检测任务的结束时间,判断是否到达所述结束时间,若是,所述检测任务进入待停止状态,并将所述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,并将所述检测任务的状态由待停止状态切换至停止状态;The controlling the state of the detecting task from the turned-on state to the stopping state includes: acquiring an end time of the detecting task, determining whether the end time is reached, and if yes, the detecting task enters a to-be-stop state, and the The state of the detection task is switched from the opened state to the to-be-stop state; the detection task that has entered the to-be-stopped state is stopped, and the state of the detection task is switched from the to-be-stopped state to the stopped state;
    所述控制所述检测任务的状态由待停止状态进入停止状态包括:停止所述检测任务,控制所述检测任务的状态进入停止状态。The controlling the state of the detecting task from the to-be-stopped state to the stopping state includes: stopping the detecting task, and controlling the state of the detecting task to enter a stopped state.
  5. 如权利要求4所述的网络质量管理系统检测任务调度方法,其中,所述检测任务包括至少一个测量实例;The network quality management system detecting task scheduling method according to claim 4, wherein the detecting task comprises at least one measurement instance;
    在所述非停止状态为待开启状态的情况下,停止所述已进入待停止状态检测任务包括:查询所述检测任务对应的测量实例,将所述测量实例停止;If the non-stop state is the to-be-opened state, the stopping the in-stop state detection task includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance;
    在所述非停止状态为已开启状态的情况下,停止所述已进入待停止状态检测任务包括:查询所述检测任务对应的测量实例,将所述测量实例停止;If the non-stop state is the enabled state, the stopping the detection of the in-stop state includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance;
    在所述非停止状态为待停止状态的情况下,停止所述态检测任务包括:查询所述检测任务对应的测量实例,将所述测量实例停止。When the non-stop state is the to-be-stopped state, stopping the state detection task includes: querying the measurement instance corresponding to the detection task, and stopping the measurement instance.
  6. 如权利要求5所述的网络质量管理系统检测任务调度方法,其中,在控制所述检测任务的状态由非停止状态进入停止状态之前,所述方法还包括:The network quality management system detection task scheduling method according to claim 5, wherein before the state of the detection task is controlled to enter a stop state from a non-stop state, the method further includes:
    获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器,通过直采平台向待检测设备发送所述测量实例和所述测量实例对应的反射器,并向所述直采平台发送针对所述测量实例和所述测量实例对 应的反射器的控制指令,其中,所述直采平台用于根据所述测量实例、所述测量实例对应的反射器以及所述控制指令对待检测设备进行检测;Obtaining a measurement instance corresponding to the detection task in an open state and a reflector corresponding to the measurement instance, and transmitting, by the direct mining platform, the measurement instance and the reflector corresponding to the measurement instance to the device to be detected, and The platform transmits a pair of the measurement instance and the measurement instance The control instruction of the reflector, wherein the direct mining platform is configured to detect the device to be detected according to the measurement instance, the reflector corresponding to the measurement instance, and the control instruction;
    接收所述直采平台对所述控制指令的检测结果,保存所述测量实例、所述测量实例对应的反射器以及对应的检测结果。Receiving a detection result of the control instruction by the direct mining platform, and saving the measurement instance, a reflector corresponding to the measurement instance, and a corresponding detection result.
  7. 如权利要求6所述的网络质量管理系统检测任务调度方法,其中,在获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器之前还包括:The network quality management system detecting task scheduling method according to claim 6, wherein before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, the method further includes:
    判断所述检测任务的测量实例是否存在对应的反射器,若不存在,则为所述测量实例创建反射器;若存在,则判断所述测量实例对应的反射器是否正常,若否,为所述测量实例重新创建反射器。Determining whether there is a corresponding reflector in the measurement instance of the detection task, and if not, creating a reflector for the measurement instance; if yes, determining whether the reflector corresponding to the measurement instance is normal, if not, The measurement example recreates the reflector.
  8. 一种网络质量管理系统检测任务调度装置,包括:A network quality management system detection task scheduling device includes:
    获取模块:配置为获取各检测任务,并获取所述各检测任务对应的状态信息,所述状态信息用于表征所述各检测任务当前所处的状态;An acquiring module: configured to acquire each detection task, and obtain state information corresponding to each detection task, where the state information is used to represent a current state of each detection task;
    处理模块:配置为在所处状态为非停止状态的检测任务满足停止条件的情况下,控制所述检测任务的状态由非停止状态进入停止状态。The processing module is configured to control the state of the detection task to enter a stop state from a non-stop state in a case where the detection task whose state is a non-stop state satisfies the stop condition.
  9. 如权利要求8所述的网络质量管理系统检测任务调度装置,其中,所述处理模块包括:The network quality management system detecting task scheduling apparatus according to claim 8, wherein the processing module comprises:
    待开启状态处理模块:配置为在所述非停止状态为待开启状态的情况下,控制所述检测任务的状态由待开启状态进入停止状态;The to-be-opened state processing module is configured to control, when the non-stop state is the to-be-opened state, to control the state of the detecting task from the to-be-opened state to the stopped state;
    已开启状态处理模块:配置为在所述非停止状态为已开启状态的情况下,控制所述检测任务的状态由已开启状态进入停止状态;The state processing module is turned on: configured to control, when the non-stop state is the turned-on state, to control the state of the detecting task from the turned-on state to the stopped state;
    待停止状态处理模块:配置为在所述非停止状态为待停止状态的情况下,控制所述检测任务的状态由待停止状态进入停止状态。The state to be stopped processing module is configured to control the state of the detecting task from the state to be stopped to the state of stopping when the non-stop state is the state to be stopped.
  10. 如权利要求9所述的网络质量管理系统检测任务调度装置,其中,所述检测任务包括至少一个测量实例; The network quality management system detecting task scheduling apparatus according to claim 9, wherein the detecting task comprises at least one measurement instance;
    所述待开启状态处理模块包括第一子模块,配置为控制所述检测任务的状态由待开启状态切换至已开启状态,再切换至待停止状态,进入停止状态;The to-be-opened state processing module includes a first sub-module configured to control a state of the detecting task to be switched from a to-be-opened state to an already-opened state, and then to a to-be-stopped state to enter a stopped state;
    所述已开启状态处理模块包括第二子模块,配置为控制所述检测任务的状态由已开启状态切换至待停止状态,进入停止状态。The opened state processing module includes a second submodule configured to control a state of the detection task to be switched from an open state to a to-be-stop state, and to a stop state.
  11. 如权利要求10所述的网络质量管理系统检测任务调度装置,其中,The network quality management system detecting task scheduling apparatus according to claim 10, wherein
    所述第一子模块包括第一处理单元,配置为获取所述检测任务的开启时间,判断是否到达所述开启时间,若是,开启所述检测任务,将所述检测任务的状态切换至已开启状态;并且获取处于已开始状态的所述检测任务的结束时间,判断是否到达所述结束时间,若是,将所述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,控制所述检测任务的状态进入停止状态;The first sub-module includes a first processing unit configured to acquire an open time of the detection task, determine whether the open time is reached, and if yes, enable the detection task, and switch the state of the detection task to be enabled. And acquiring an end time of the detection task in the started state, determining whether the end time is reached, and if so, switching the state of the detection task from the opened state to the to-be-stopped state; a detection task of the stop state, controlling the state of the detection task to enter a stop state;
    所述第二子模块包括第二处理单元,配置为获取所述检测任务的结束时间,判断是否到达所述结束时间,若是,所述检测任务进入待停止状态,并将所述检测任务的状态由已开启状态切换至待停止状态;停止所述已进入待停止状态的检测任务,并将所述检测任务的状态由待停止状态切换至停止状态;The second sub-module includes a second processing unit configured to acquire an end time of the detection task, determine whether the end time is reached, and if so, the detection task enters a to-be-stop state, and the status of the detection task Switching from the turned-on state to the state to be stopped; stopping the detecting task that has entered the state to be stopped, and switching the state of the detecting task from the state to be stopped to the state of stopping;
    所述待停止状态处理模块包括第三处理单元,配置为停止所述检测任务,控制所述检测任务的状态进入停止状态。The to-be-stop state processing module includes a third processing unit configured to stop the detection task and control a state of the detection task to enter a stop state.
  12. 如权利要求11所述的网络质量管理系统检测任务调度装置,其中,所述检测任务包括至少一个测量实例;The network quality management system detecting task scheduling apparatus according to claim 11, wherein the detecting task comprises at least one measurement instance;
    所述第一处理单元包括第一停止子单元,配置为在所述非停止状态为待开启状态的情况下,查询所述检测任务对应的测量实例,将所述测量实例停止;The first processing unit includes a first stop sub-unit, configured to query a measurement instance corresponding to the detection task, and stop the measurement instance, in a case that the non-stop state is a to-be-opened state;
    所述第二处理单元包括第二停止子单元,配置为在所述非停止状态为 已开启状态的情况下,查询所述检测任务对应的测量实例,将所述测量实例停止;The second processing unit includes a second stop subunit configured to be in the non-stop state In the case that the state is enabled, the measurement instance corresponding to the detection task is queried, and the measurement instance is stopped;
    所述第三处理单元包括第三停止子单元,配置为在所述非停止状态为待停止状态的情况下,查询所述检测任务对应的测量实例,将所述测量实例停止。The third processing unit includes a third stop subunit configured to query a measurement instance corresponding to the detection task when the non-stop state is a to-be-stop state, and stop the measurement instance.
  13. 如权利要求12所述的网络质量管理系统检测任务调度装置,其中,还包括:信息处理模块,配置为在控制所述检测任务的状态由非停止状态进入停止状态之前,获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器,通过直采平台向待检测设备发送所述测量实例和所述测量实例对应的反射器,并向所述直采平台发送针对所述测量实例和所述测量实例对应的反射器的控制指令,其中,所述直采平台用于根据所述测量实例、所述测量实例对应的反射器以及所述控制指令对待检测设备进行检测;以及接收所述直采平台对所述控制指令的检测结果,保存所述测量实例、所述测量实例对应的反射器以及对应的检测结果。The network quality management system detection task scheduling apparatus according to claim 12, further comprising: an information processing module configured to acquire the detection of the open state before controlling the state of the detection task from the non-stop state to the stop state a measurement instance corresponding to the task and a reflector corresponding to the measurement instance, sending the measurement instance and the reflector corresponding to the measurement instance to the device to be detected through the direct mining platform, and transmitting the measurement to the direct mining platform for the measurement An example and a control instruction of a reflector corresponding to the measurement instance, wherein the direct mining platform is configured to detect a device to be detected according to the measurement instance, a reflector corresponding to the measurement instance, and the control instruction; and receive The detection result of the control instruction by the direct mining platform saves the measurement instance, the reflector corresponding to the measurement instance, and the corresponding detection result.
  14. 如权利要求13所述的网络质量管理系统检测任务调度装置,其中,还包括:判断处理模块,配置为在获取处于开启状态的检测任务对应的测量实例和所述测量实例对应的反射器之前,判断所述检测任务的测量实例是否存在对应的反射器,若不存在,则为所述测量实例创建反射器;若存在,则判断所述测量实例对应的反射器是否正常,若否,为所述测量实例重新创建反射器。The network quality management system detection task scheduling apparatus according to claim 13, further comprising: a determination processing module, configured to: before acquiring the measurement instance corresponding to the detection task in the open state and the reflector corresponding to the measurement instance, Determining whether there is a corresponding reflector in the measurement instance of the detection task, and if not, creating a reflector for the measurement instance; if yes, determining whether the reflector corresponding to the measurement instance is normal, if not, The measurement example recreates the reflector.
  15. 一种计算机存储介质,存储有计算机可执行指令,该计算机可执行指令配置为执行上述权利要求1至7任一项所述的网络质量管理系统检测任务调度方法。 A computer storage medium storing computer executable instructions configured to perform the network quality management system detection task scheduling method according to any one of claims 1 to 7.
PCT/CN2017/078455 2016-05-12 2017-03-28 Detection task scheduling method and apparatus for network quality management system WO2017193722A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610316154.0 2016-05-12
CN201610316154.0A CN107370612B (en) 2016-05-12 2016-05-12 Network quality management system detection task scheduling method and device

Publications (1)

Publication Number Publication Date
WO2017193722A1 true WO2017193722A1 (en) 2017-11-16

Family

ID=60266215

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/078455 WO2017193722A1 (en) 2016-05-12 2017-03-28 Detection task scheduling method and apparatus for network quality management system

Country Status (2)

Country Link
CN (1) CN107370612B (en)
WO (1) WO2017193722A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262871A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Container instance start and stop method, apparatus, computer equipment and the storage medium of container application
CN115174434B (en) * 2022-07-08 2023-07-25 广州市百果园信息技术有限公司 Method, device, equipment, storage medium and product for executing detection task

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06268645A (en) * 1993-03-16 1994-09-22 Oki Electric Ind Co Ltd Personal data access system for personal communication
CN103888295A (en) * 2014-03-07 2014-06-25 烽火通信科技股份有限公司 Method and system for achieving LSP quick detection based on loopback in PTN/IPRAN management
CN105406995A (en) * 2015-10-27 2016-03-16 中国南方电网有限责任公司 Wide-area protection system PTN synchronization network TC mode channel fault self-recovery method and device
CN105430678A (en) * 2016-01-06 2016-03-23 烽火通信科技股份有限公司 PTN equipment interface test method and apparatus

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101207522B (en) * 2007-12-18 2011-01-26 杭州华三通信技术有限公司 Method and apparatus for implementation of collocation task scheduling
CN101425024A (en) * 2008-10-24 2009-05-06 中国移动通信集团山东有限公司 Multitasking method and device
JP5166569B2 (en) * 2011-04-15 2013-03-21 株式会社東芝 Business cooperation support system and business cooperation support method
CN102801587B (en) * 2012-08-29 2014-09-17 北京邮电大学 Large-scale network-oriented virtualized monitoring system and dynamic monitoring method thereof
CN103677973A (en) * 2013-09-01 2014-03-26 西安重装渭南光电科技有限公司 Distributed multi-task scheduling management system
CN104239213B (en) * 2014-09-29 2017-04-12 北京航空航天大学 Two-stage scheduling method of parallel test tasks facing spacecraft automation test
CN105373428B (en) * 2015-12-09 2020-02-11 北京奇虎科技有限公司 Task scheduling method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06268645A (en) * 1993-03-16 1994-09-22 Oki Electric Ind Co Ltd Personal data access system for personal communication
CN103888295A (en) * 2014-03-07 2014-06-25 烽火通信科技股份有限公司 Method and system for achieving LSP quick detection based on loopback in PTN/IPRAN management
CN105406995A (en) * 2015-10-27 2016-03-16 中国南方电网有限责任公司 Wide-area protection system PTN synchronization network TC mode channel fault self-recovery method and device
CN105430678A (en) * 2016-01-06 2016-03-23 烽火通信科技股份有限公司 PTN equipment interface test method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262871A (en) * 2019-05-17 2019-09-20 平安科技(深圳)有限公司 Container instance start and stop method, apparatus, computer equipment and the storage medium of container application
CN110262871B (en) * 2019-05-17 2024-01-23 平安科技(深圳)有限公司 Container instance start-stop method and device for container application, computer equipment and storage medium
CN115174434B (en) * 2022-07-08 2023-07-25 广州市百果园信息技术有限公司 Method, device, equipment, storage medium and product for executing detection task

Also Published As

Publication number Publication date
CN107370612B (en) 2022-04-19
CN107370612A (en) 2017-11-21

Similar Documents

Publication Publication Date Title
CN107526659B (en) Method and apparatus for failover
US10680874B2 (en) Network service fault handling method, service management system, and system management module
US9158589B2 (en) Method for dynamic migration of a process or services from one control plane processor to another
CN111405055A (en) Multi-cluster management method, system, server and storage medium
JP5033856B2 (en) Devices and systems for network configuration assumptions
US9088477B2 (en) Distributed fabric management protocol
US11144423B2 (en) Dynamic management of monitoring tasks in a cloud environment
WO2019034095A1 (en) Software processing method and apparatus, electronic device and computer-readable storage medium
CN106230622B (en) Cluster implementation method and device
CN107634868B (en) Method and system for managing network service
CN109189403B (en) Operating system OS batch installation method and device and network equipment
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
WO2017193722A1 (en) Detection task scheduling method and apparatus for network quality management system
CN114531373A (en) Node state detection method, node state detection device, equipment and medium
CN107529180B (en) Base station cloud test environment construction device and method
JP2008148017A (en) Node detection device and program
US8732289B2 (en) Method, apparatus, and system for controlling execution of an automatic process
CN114816866A (en) Fault processing method and device, electronic equipment and storage medium
CN105591794B (en) The method and apparatus for managing the network equipment
CN108234215B (en) Gateway creating method and device, computer equipment and storage medium
KR20160048005A (en) Method and apparatus for managing controller in software defined networking environment
JP7120325B2 (en) MAINTENANCE WORK INSTRUCTION SYSTEM, MAINTENANCE WORK INSTRUCTION METHOD AND PROGRAM
CN115499296B (en) Cloud desktop hot standby management method, device and system
CN115865924B (en) Cluster deployment method, device, equipment, medium and product
WO2016183977A1 (en) Outgoing call system and operation method therefor

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17795340

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17795340

Country of ref document: EP

Kind code of ref document: A1