WO2019042102A1 - 一种设备的软件运行环境质量的评估方法及装置 - Google Patents

一种设备的软件运行环境质量的评估方法及装置 Download PDF

Info

Publication number
WO2019042102A1
WO2019042102A1 PCT/CN2018/099354 CN2018099354W WO2019042102A1 WO 2019042102 A1 WO2019042102 A1 WO 2019042102A1 CN 2018099354 W CN2018099354 W CN 2018099354W WO 2019042102 A1 WO2019042102 A1 WO 2019042102A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
evaluated
running
time period
period
Prior art date
Application number
PCT/CN2018/099354
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to EP18849871.1A priority Critical patent/EP3672119B1/en
Publication of WO2019042102A1 publication Critical patent/WO2019042102A1/zh
Priority to US16/802,957 priority patent/US11263112B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0685Clock or time synchronisation in a node; Intranode synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/60Business processes related to postal services

Definitions

  • the embodiments of the present application relate to the field of communications technologies, and in particular, to a method and an apparatus for evaluating the quality of a software running environment of a device.
  • a telecommunication device usually includes a main control device and a plurality of service processing devices, and the main control device and the service processing device cooperate with each other to complete the corresponding telecommunication service function.
  • the main control device is used for system configuration, statistics, monitoring, and maintenance, and the service device is used for service processing.
  • the system time of the Network Time Protocol (NTP) server is considered to be accurate and reliable.
  • NTP Network Time Protocol
  • the system of the master device is required. Time synchronization with the NTP server, so that the system time of the master device is consistent with the system time of the NTP server; then, the system time of the master device is synchronized to multiple service processing devices, so that multiple services are processed.
  • the system time of the device is consistent with the system time of the master device.
  • the embodiment of the present application provides a method and a device for evaluating the quality of the software running environment of the device, so as to obtain an evaluation parameter for measuring the quality of the software running environment of the device to be evaluated, and the software running environment quality of the device can be evaluated by evaluating the parameter.
  • an embodiment of the present application provides a method for evaluating a quality of a software running environment of a device, where the method includes:
  • Determining the time deviation value of each time period of the device to be evaluated in N time periods, and the time deviation value of each time period in the N time periods includes the time deviation value of the current time period and N-1 times before the current time period
  • the time deviation value of the time period, N is a positive integer greater than or equal to 2;
  • the target time jitter amplitude with the largest time jitter amplitude is selected among the time jitter amplitudes of each time period in the N time periods, and the target time jitter amplitude is an evaluation parameter for measuring the quality of the software operating environment of the device to be evaluated.
  • the inherent deviation value of the device to be evaluated can be determined, and the inherent deviation value can be used as the device to be evaluated in N time periods.
  • the time jitter amplitude of the time deviation value of each time period of the device to be evaluated relative to the inherent deviation value in N time periods can be determined.
  • the target time jitter amplitude in each time period of each time period in N time periods can reflect the quality of the software operating environment
  • the target time jitter amplitude is used as an indicator to measure the quality of the software operating environment of the equipment to be evaluated. parameter. Therefore, the embodiment of the present application can obtain an evaluation parameter that measures the quality of the software running environment of the device to be evaluated, and the quality of the software running environment of the device can be evaluated by evaluating the parameter.
  • determining a time offset value of each time period of the device to be evaluated in N time periods includes:
  • the system prediction time is calculated by the device to be evaluated according to the first running time, the second running time, and the first system time, and the reason for calculating the inaccurate system prediction time is caused by the software operating environment impact of the device to be evaluated, and the system
  • the greater the time deviation between the prediction time and the real time of the system the worse the quality of the software running environment of the equipment to be evaluated, and the smaller the time deviation between the system prediction time and the real time of the system, indicating that the software operating environment quality of the equipment to be evaluated is better.
  • the time deviation value of the current time period in N time periods can be calculated, and since the time deviation value of each time period in the N-1 time periods before the current time period has been pre-calculated,
  • the method provided by the application embodiment can determine the time deviation value of each time period of the device to be evaluated in N time periods.
  • determining the second running time of the target device includes:
  • the second running time of the target device is determined according to the fourth running time, the starting time difference, and the time deviation value of the previous time period.
  • the device to be evaluated pre-stores the time deviation value of the last time period of the current time period, and the device to be evaluated records the fourth running time, and the difference between the start time of the device to be evaluated and the target device can be determined, so the calculation is performed.
  • the second running time of the target device can be obtained by summing the running time difference, the starting time difference and the time deviation value of the previous time period.
  • determining a start time difference between the device to be evaluated and the target device includes:
  • the second system time is a system time of the target device at the first target time
  • the fifth running time is a running time of the target device at the first target time
  • the third system time is a system time of the device to be evaluated at the second target time
  • the sixth running time is a running time of the device to be evaluated at the second target time, a target time is earlier than the second target time
  • the start time difference between the device to be evaluated and the target device is determined according to the seventh running time and the sixth running time.
  • the first target time and the second target time are both time before the start time of the current time period, and the first target time is earlier than the second target time, and the difference between the second system time and the third system time is calculated,
  • the length of time between the first target time and the second target time is determined.
  • Calculating the sum of the length of time and the fifth running time may determine a seventh running time of the target device at the second target time. Since the seventh running time is the running time of the target device at the second target time, and the sixth running time is the running time of the device to be evaluated at the second target time, the difference between the seventh running time and the sixth running time is calculated, that is, The difference in startup time between the device to be evaluated and the target device can be determined.
  • determining, according to the system prediction time and the real time of the system, the time deviation value of the device to be evaluated in the current time period includes:
  • the time deviation value of the device to be evaluated sent by the target device in the current time period is received, and the time deviation value of the device to be evaluated in the current time period is a time deviation value calculated by the target device according to the system prediction time and the real time of the system.
  • the target device may adjust the system time frequently, causing the real time of the system to change. Therefore, the device to be evaluated may send the system prediction time to the target device, so that the target device calculates the system based on the predicted time of the system and the real time of the system. The time deviation value, so that the real time of the system is correct. Then, the device to be evaluated further receives the time deviation value of the device to be evaluated sent by the target device in the current time period, so as to ensure that the calculated time deviation value is more accurate.
  • determining, according to the system prediction time and the real time of the system, the time deviation value of the device to be evaluated in the current time period includes:
  • the target device may adjust the system time frequently, causing the real time of the system to change. Therefore, the device to be evaluated may send a request for acquiring the real time of the system to the target device, so that the target device sends the adjusted real time of the system. Give the device to be evaluated. At this time, the device to be evaluated uses the real time of the system adjusted by the target device to calculate the time deviation value of the system prediction time, so as to ensure that the calculated time deviation value is more accurate.
  • determining, according to the system prediction time and the real time of the system, the time deviation value of the device to be evaluated in the current time period includes:
  • the target device may not adjust the system time, so the real time of the system will not change, and the device to be evaluated can use the pre-stored system real time and the calculated system prediction time to calculate The time deviation value of the device to be evaluated in the current time period, which does not need to interact with the target device, thereby saving system resources of the device to be evaluated.
  • determining a time offset value of each time period of the device to be evaluated in N time periods includes:
  • the ninth running time is a running time of the starting time of the device to be evaluated in the current time period
  • the fifth system time is the current time period of the device to be evaluated System time at the start time
  • the fourth system time and the fifth system time of the device to be evaluated are all acquired through the network, the fourth system time and the fifth system time of the device to be evaluated may be inaccurate.
  • the eighth running time and the ninth running time of the device to be evaluated are the results of the internal statistics of the device to be evaluated, the eighth running time and the ninth running time of the device to be evaluated are relatively accurate. Therefore, if it is determined according to the tenth running time and the eleventh running time that the device to be evaluated has a time deviation value in the current time period, the fourth system time and the fifth system time are inaccurate, so the present application is implemented.
  • the quality of the network environment in which the device to be evaluated is located can be evaluated, and the greater the time deviation value, the worse the network environment quality of the device to be evaluated is, and the smaller the time deviation value is, indicating that the device to be evaluated is located.
  • determining a time offset value of the device to be evaluated in N time periods includes:
  • twelfth running time is the running time of the device to be evaluated at the end time in the current time period, and the ending time in the current time period is determined by the cycle timer;
  • the thirteenth running time is a running time of the starting time of the device to be evaluated in the current time period, and the starting time in the current time period is determined by the cycle timer;
  • the periodic timer may be affected by the software operating environment of the device to be evaluated, resulting in a certain deviation in accuracy, so that the time deviation value of the device to be evaluated in the current time period may reflect the quality of the software operating environment of the device to be evaluated. Good or bad. If the time deviation value is larger, the worse the network environment quality of the device to be evaluated is; if the time deviation value is smaller, the better the network environment quality of the device to be evaluated is.
  • an apparatus for evaluating a quality of a software operating environment of a device comprising:
  • a first determining module configured to determine a time deviation value of each time period of the device to be evaluated in N time periods, and a time deviation value of each time period in the N time periods includes a time deviation value and a current time of the current time period
  • the time deviation value of N-1 time periods before the period, N is a positive integer greater than or equal to 2;
  • a second determining module configured to determine an inherent deviation value according to a time deviation value of each time period in the N time periods, wherein the inherent deviation value is an average value of time deviation values of each time period in the N time periods;
  • a third determining module configured to determine a time jitter amplitude of each time period in each of the N time periods according to the time deviation value and the inherent deviation value of each time period in the N time periods;
  • the selection module is configured to select a target time jitter amplitude with a maximum time jitter amplitude among the time jitter amplitudes of each time period in the N time periods, and the target time jitter amplitude is an evaluation parameter that measures the quality of the software operating environment of the device to be evaluated.
  • the first determining module is specifically configured to acquire a first running time of the target device, where the first running time is a running time of the target device at a starting time in the current time period; determining the target device The second running time, the second running time is the running time of the target device at the end time in the current time period; determining the first system time of the device to be evaluated at the end time in the current time period; according to the second running time and the first The running time determines a third running time of the target device from the start time to the end time in the current time period; and determines the system prediction time of the target device in the current time period according to the first system time and the third running time According to the system prediction time and the real time of the system, determine the time deviation value of the device to be evaluated in the current time period, the system real time is the system time of the target device at the starting time in the current time period; and the device to be evaluated is obtained at the current time. Time deviation value of each time period in N-1 time periods before the period .
  • the first determining module is configured to acquire a time deviation value of a previous time period of the current time period, obtain a fourth running time of the device to be evaluated, and the fourth running time is that the device to be evaluated is The running time of the end time in the current time period; determining the starting time difference between the device to be evaluated and the target device; determining the second running time of the target device according to the fourth running time, the starting time difference, and the time deviation value of the previous time period.
  • the first determining module is specifically configured to acquire a second system time and a fifth running time of the target device, where the second system time is a system time of the target device at the first target time, and the fifth running The duration is the running time of the target device at the first target time; the third system time and the sixth running time of the device to be evaluated are obtained, and the third system time is the system time of the device to be evaluated at the second target time, and the sixth running time is a running time of the device to be evaluated at the second target time, the first target time is earlier than the second target time; and determining a length of time between the first target time and the second target time according to the second system time and the third system time; Determining, according to the length of time and the fifth running time, the seventh running time of the target device at the second target time; determining the starting time difference between the device to be evaluated and the target device according to the seventh running time and the sixth running time.
  • the first determining module is specifically configured to send the system prediction time to the target device, and receive the time deviation value of the device to be evaluated sent by the target device in the current time period, where the device to be evaluated is at the current time.
  • the time deviation value in the period is the time deviation value calculated by the target device based on the system prediction time and the real time of the system.
  • the first determining module is specifically configured to send a request for acquiring a real time of the system to the target device, receive a real time of the system sent by the target device, and calculate the device to be evaluated according to the predicted time of the system and the real time of the system. The time offset value during the current time period.
  • the first determining module is specifically configured to obtain a pre-stored system real time; and calculate a time offset value of the device to be evaluated in the current time period according to the system prediction time and the system real time.
  • the first determining module is specifically configured to obtain an eighth running time and a fourth system time of the device to be evaluated, where the eighth running time is an operation of the device to be evaluated at an ending time in the current time period.
  • the fourth system time is the system time of the device to be evaluated at the end time of the current time period; the ninth running time and the fifth system time of the device to be evaluated are obtained, and the ninth running time is the device to be evaluated in the current time period.
  • the running time of the starting time, the fifth system time is the system time of the starting time of the device to be evaluated in the current time period; according to the eighth running time and the ninth running time, determining the starting time from the current time period The tenth running time of the device to be evaluated until the end time; determining the eleventh running time of the device to be evaluated from the starting time to the ending time in the current time period according to the fourth system time and the fifth system time; Time length and eleventh running time, determine the time deviation value of the equipment to be evaluated in the current time period; Time offset values in each period of the devices within the N-1 time periods before the current time period.
  • the first determining module is specifically configured to obtain a twelfth running time of the device to be evaluated, and the twelfth running time is a running time of the device to be evaluated at an ending time in the current time period, and currently The end time in the time period is determined by the period timer; the thirteenth running time of the device to be evaluated is obtained, and the thirteenth running time is the running time of the starting time of the device to be evaluated in the current time period, and the current time period
  • the starting time is determined by the cycle timer; according to the twelfth running time and the thirteenth running time, determining the fourteenth running time of the device to be evaluated from the starting time to the ending time in the current time period;
  • the fourteenth running time and the current time period determine the time deviation value of the device to be evaluated in the current time period; and obtain the time deviation value of each time period in the N-1 time periods of the device to be evaluated before the current time period .
  • an embodiment of the present application provides an apparatus for evaluating a quality of a software operating environment of a device, where the apparatus includes: a processor and a memory, wherein the memory stores an operation instruction executable by the processor, and the processor reads the memory.
  • the operational instructions within are used to implement the method described in the first aspect or any of the possible implementations of the first aspect.
  • FIG. 1 is a flowchart of a method for evaluating a software running environment quality of a device according to an embodiment of the present application
  • Figure 2 is a schematic diagram showing time offset values for each time period in N time periods
  • FIG. 3 is a flowchart based on an embodiment refined in step S11 of FIG. 1;
  • Figure 4 is a schematic diagram of the current time period in N time periods
  • Figure 5 is a schematic diagram of the current time period in N time periods
  • Figure 6 is a schematic diagram of the life cycle of the target device and the life cycle of the device to be evaluated
  • FIG. 7 is a flowchart based on an embodiment refined in step S11 of FIG. 1;
  • Figure 8 is a schematic diagram of the current time period in N time periods
  • FIG. 9 is a flowchart based on an embodiment refined in step S11 of FIG. 1;
  • Figure 10 is a schematic diagram of the current time period in N time periods
  • FIG. 11 is a schematic diagram of an apparatus for evaluating a quality of a software running environment of a device according to an embodiment of the present disclosure
  • FIG. 12 is a schematic diagram of an apparatus for evaluating the quality of software running environment of another device according to an embodiment of the present application.
  • the quality of the software operating environment is a comprehensive assessment of the time and space dimensions of a device to be evaluated.
  • the running environment quality of the software includes: scheduling and timeliness of the operating system of the device to be evaluated, system clock accuracy of the device to be evaluated, memory access speed of the device to be evaluated, network interaction delay of the device to be evaluated, and data buffer size of the device to be evaluated. Indicators such as the message queue depth of the device to be evaluated. If the quality of any of the above indicators is poor, it can indicate that the software running environment of the equipment to be evaluated is of poor quality; if the quality of each of the above indicators is good, then the quality of the software operating environment of the equipment to be evaluated can be explained. better.
  • “scheduling timeliness”, “system clock precision”, “memory access speed”, and “network interaction delay” are evaluations in the time dimension, “data cache size” and “message queue depth”. It is an assessment in the spatial dimension. However, the "data cache size” and “message queue depth” ultimately reflect the "speed” of the data provided in the device to be evaluated, and the “fast” of the message processing, which are all reflected in the "time” dimension.
  • the software running environment quality of the device to be evaluated is also reflected in the implementation method of the application software itself. For example, the length of time that the application software processes transactions and the message queue processing strategy, etc., all affect the scheduling speed of the operating system.
  • the results of the evaluation of the time dimension of the device to be evaluated not only reflect the quality of the software operating environment of the device to be evaluated, but also reflect the quality of the application software itself running on the software operating environment of the device to be evaluated, so the evaluation is to be performed.
  • the metric of the time synchronization result of the device can reflect the metrics such as “scheduling timeliness”, “system clock accuracy”, “memory access speed”, and “network interaction delay” of the device to be evaluated.
  • the method and device for evaluating the quality of the software running environment of the device provided by the embodiment of the present application can dynamically evaluate the quality of the software running environment of the device, and the method for evaluating the time synchronization result of the device to be evaluated is evaluated according to the evaluation result.
  • the quality of the software operating environment of the equipment is fully understood.
  • the device or staff to be evaluated can adjust the application software running on the device according to the evaluation result, so that the application software can better adapt to the software running environment of the device, thereby improving the application software running on the device to have higher performance. Stability and reliability.
  • FIG. 1 is a flowchart of a method for evaluating a software running environment quality of a device according to an embodiment of the present application.
  • the method shown in FIG. 1 can obtain an evaluation parameter for measuring the quality of the software running environment of the device to be evaluated, thereby adjusting the application software on the device to be evaluated according to the evaluation parameter, so that the application software can better adapt to the software operating environment of the device to be evaluated.
  • the method includes the following steps.
  • Step S11 Determine a time deviation value of each time period of the device to be evaluated in N time periods.
  • the method provided by the embodiment of the present application can be run on the device to be evaluated.
  • the method provided by the embodiment of the present application has the function of obtaining an evaluation parameter for measuring the quality of the software running environment of the device to be evaluated. After obtaining the evaluation parameter, the device to be evaluated can adjust the application software according to the evaluation parameter, thereby making the application software more Good adaptability to the software operating environment of the device to be evaluated.
  • the embodiment of the present application needs to determine the target time jitter amplitude according to the time deviation value and the inherent deviation value of each time period of the device to be evaluated in N time periods, and the target time jitter
  • the amplitude is the evaluation parameter that measures the quality of the software operating environment of the equipment to be evaluated.
  • N mentioned in the embodiment of the present application is a positive integer greater than or equal to 2.
  • the time offset value of each time period in the N time periods includes the time offset value of the current time period and the time offset value of N-1 time periods before the current time period.
  • the N time periods of the device to be evaluated are predetermined. For example, the 10 time periods of the device to be evaluated are determined in advance as N time periods, wherein the 10 time periods of the device to be evaluated are the current time period and the first 9 time periods of the current time period, respectively.
  • the time offset value of the time period refers to the difference between the clock of the device to be evaluated and the standard time in the time period, and the standard time may be the system time of the NTP server.
  • the difference between the clock of the device to be evaluated and the standard time is 100 milliseconds in a time period of 5 minutes.
  • the device to be evaluated mentioned in the embodiment of the present application may be a service board constituting the telecommunication device.
  • the target device mentioned in the embodiment of the present application may be a main control board constituting the telecommunication device.
  • Each service board is configured with a CPU and a memory, and each service board is configured with an independent operating system.
  • the operating system corresponding to the service board can be installed with application software for completing service functions.
  • the main control board is also equipped with components such as CPU and memory, and the main control board is also equipped with an independent operating system.
  • Various operating software can also be installed on the operating system corresponding to the main control board.
  • a telecom device integrates multiple service boards and one main control board, and one main control board and multiple service boards cooperate to complete the corresponding telecommunication service functions.
  • the main control board is used for system configuration, statistics, monitoring, and maintenance management.
  • Multiple service boards are used for service processing.
  • the device to be evaluated mentioned in the embodiment of the present application may also be a service device constituting the telecommunication device.
  • the target device mentioned in the embodiment of the present application may also be a main control device constituting the telecommunication device.
  • Each service device is provided with a component such as a CPU and a memory, and each service device is configured with an independent operating system, and an application software for completing a service function can be installed on an operating system corresponding to the service device.
  • the main control device is also provided with components such as a CPU and a memory, and the main control device is also configured with an independent operating system, and various application softwares can also be installed on the operating system corresponding to the main control device.
  • the telecommunication device in the cloud includes a main control device and a plurality of service devices, and the main control device and the plurality of service devices cooperate with each other to complete corresponding telecommunication service functions.
  • the main control device is used for system configuration, statistics, monitoring, and maintenance management, and multiple service devices are used for service processing.
  • Step S12 Determine an inherent deviation value according to a time deviation value of each time period in the N time periods.
  • the inherent deviation value is an average value of time deviation values of each time period in N time periods.
  • the inherent deviation value can be used as a reference value for measuring the time deviation value of each time period in the N time periods of the device to be evaluated, so based on the inherent deviation value and the time deviation value of each time period in N time periods, it can be known The amplitude of the time jitter for each time period in N time periods.
  • Step S13 Determine a time jitter amplitude of each time period in the N time periods according to the time deviation value and the inherent deviation value of each time period in the N time periods.
  • the absolute value of the difference between the time offset value and the inherent deviation value of each time period in the N time periods is calculated, and the time jitter amplitude of each time period in N time periods can be obtained.
  • the time deviation value of the first time period in 3 time periods is 110 milliseconds
  • the time deviation value of the second time period in 3 time periods is 130 milliseconds, within 3 time periods.
  • the time deviation value of the third time period is 210 milliseconds
  • Time jitter amplitude of the first time period in 3 time periods
  • 60 milliseconds.
  • the time jitter amplitude of each time period in three time periods is 40 milliseconds, 20 milliseconds and 60 milliseconds, respectively.
  • the time jitter amplitude of the time period refers to the time jitter value of the time deviation value in the time period relative to the inherent deviation value based on the inherent deviation value. If the time jitter of a certain time period is larger, the worse the quality of the software running environment of the device to be evaluated in the time period; if the time jitter of the time period is smaller, the time of the device to be evaluated is indicated. The better the quality of the software operating environment.
  • Step S14 Select a target time jitter amplitude with the largest time jitter amplitude among the time jitter amplitudes of each time period in the N time periods.
  • the target time jitter amplitude indicates the state in which the software operating environment of the device to be evaluated has the worst quality in N time periods.
  • the target time jitter amplitude can be used to measure the evaluation parameters of the quality of the software operating environment of the device to be evaluated. This is because after determining the target time jitter amplitude, it can be known that the software running environment quality of the device to be evaluated is the worst in N time periods, and the equipment or staff to be evaluated can use the software operating environment of the device to be evaluated. The worst quality state is used as the critical point, and the application software running on the device to be evaluated is adjusted with this critical point. Therefore, the target time jitter amplitude is used as an evaluation parameter for measuring the quality of the software operating environment of the device to be evaluated, and the application can be made. The software is better adapted to the software operating environment of the device to be evaluated.
  • the target time jitter is calculated to be 100 milliseconds, then the target time jitter is small, and the software running environment quality of the device to be evaluated is relatively good, so the message timeout retransmission time can be set to 1 second. If the target time jitter is calculated to be 2 seconds, then the target time jitter is large, and the software running environment quality of the device to be evaluated is relatively poor. Therefore, the message timeout retransmission time can be appropriately extended to reduce the device to be evaluated. The quality of the software running environment leads to unnecessary timeout retransmission processing.
  • the inherent deviation value of the device to be evaluated can be determined, and the inherent deviation value can be used as the device to be evaluated in N.
  • a reference value that measures the time offset value for each time period over a period of time According to the inherent deviation value and the time deviation value of each time period in the N time periods, the time jitter amplitude of the time deviation value of each time period of the device to be evaluated relative to the inherent deviation value in N time periods can be determined.
  • the target time jitter amplitude in each time period of each time period in N time periods can reflect the quality of the software operating environment
  • the target time jitter amplitude is used as an indicator to measure the quality of the software operating environment of the equipment to be evaluated. parameter. Therefore, the embodiment of the present application can obtain an evaluation parameter that measures the quality of the software running environment of the device to be evaluated, and the quality of the software running environment of the device can be evaluated by evaluating the parameter.
  • FIG. 2 is a schematic diagram showing time deviation values of each time period in N time periods. Assuming that N is 6, the time from A to B constitutes a first time period, the time from B to C constitutes a second time period, the time from C to D constitutes a third time period, and the time D to time E constitutes a fourth time period, E The time from time to time F constitutes a fifth time period, and time F to time G constitutes a sixth time period.
  • the time deviation value of each time period of the device to be evaluated in 6 time periods is determined.
  • the time deviation values of each time period in the six time periods are: the time deviation value of the first time period is 90 ms, the time deviation value of the second time period is 70 ms, and the time deviation value of the third time period is 110 ms.
  • the time deviation value of the fourth time period is 70 ms, the time deviation value of the fifth time period is 140 ms, and the time deviation value of the sixth time period is 60 ms.
  • the inherent deviation value is determined based on the time deviation value of each time period in the six time periods.
  • the time jitter amplitude of each time period in six time periods is determined according to the time deviation value and the inherent deviation value of each time period in the six time periods.
  • the time jitter amplitude of the first time period
  • 0 milliseconds.
  • Time jitter amplitude for the second time period
  • 20 milliseconds.
  • Time jitter amplitude of the third time period
  • 20 milliseconds.
  • Time jitter amplitude of the fourth time period
  • 20 milliseconds.
  • Time jitter amplitude of the fifth time period
  • 50 milliseconds.
  • Time jitter amplitude of the sixth time period
  • 30 milliseconds.
  • the target time jitter amplitude with the largest time jitter amplitude is selected in the time jitter amplitude of each time period in six time periods, and the target time jitter amplitude is 50 ms as an evaluation parameter for measuring the quality of the software operating environment of the device to be evaluated.
  • the time jitter amplitude of each time period in each of the six time periods is 0 milliseconds, 20 milliseconds, 20 milliseconds, 20 milliseconds, 50 milliseconds, and 30 milliseconds, and the maximum of the time jitter amplitude in 6 time periods is 50 ms. , so the target time jitter is 50ms.
  • the software running environment quality of the equipment to be evaluated is the worst in the six time periods, and the equipment or staff to be evaluated can have the worst software operating environment quality of the equipment to be evaluated.
  • the state is used as a critical point, and the application software running on the device to be evaluated is adjusted by using the critical point, so that the application software can better adapt to the software running environment of the device to be evaluated.
  • the embodiment shown in FIG. 3 is a flowchart based on the embodiment refined in step S11 of FIG. 1. Therefore, the same content as that of FIG. 1 can be referred to the embodiment shown in FIG. 1.
  • the method shown in FIG. 3 is a specific implementation manner of “determining the time deviation value of each time period of the device to be evaluated in N time periods” in step S11 of FIG. 1 , where “determining the device to be evaluated in N
  • the time deviation value for each time period in the time period may also include the following steps.
  • Step S21 Acquire a first running time of the target device.
  • the first running time is the running time of the target device at the starting time in the current time period
  • the current time period is the time period in which the device to be evaluated and the target device are currently in
  • the starting time in the current time period refers to the waiting time. Evaluate the time at which the device and target device are currently at the beginning of the time period.
  • the target device records the first run time, and then the target device sends the first run time to the device to be evaluated.
  • the device to be evaluated receives the first running time sent by the target device, the device to be evaluated stores the first running time of the target device in the memory.
  • the device to be evaluated needs to calculate the time deviation value of the current time period in N time periods, the device to be evaluated acquires the first running time of the target device in the memory.
  • Step S22 Determine a second running time of the target device.
  • the second running time is the running time of the target device at the end time in the current time period
  • the current time period is the time period in which the device to be evaluated and the target device are currently in
  • the ending time in the current time period refers to the device to be evaluated.
  • the time when the target device is currently at the end of the time period is the running time of the target device at the end time in the current time period.
  • the device to be evaluated After the device to be evaluated obtains the first running time of the target device, it is also required to determine the second running time of the target device.
  • Step S23 Determine a first system time of the end time of the device to be evaluated in the current time period.
  • the first system time is the system time of the device to be evaluated at the end time of the current time period.
  • the target device Since the system time of the NTP server is considered to be accurate and reliable, the target device periodically synchronizes time with the NTP server to keep the system time of the target device consistent with the system time of the NTP server. To ensure that the system time of the target device is consistent with the system time of the device to be evaluated, the target device periodically synchronizes its system time to the device to be evaluated.
  • Step S24 Determine, according to the second running duration and the first running duration, a third running duration of the target device from a start time to an ending time in the current time period.
  • the second running time is the running time of the target device at the end time of the current time period, so the second running time is calculated as the first running time is the running time of the target device in the current time period.
  • the difference in run time can result in a third run time of the target device from the start time to the end time in the current time period.
  • Step S25 Determine, according to the first system time and the third running time, a system prediction time of the target device in the current time period.
  • the third system running time is the running time of the target device from the start time to the ending time in the current time period
  • the first system time is the system time of the device to be evaluated at the end time in the current time period, so the first calculation is performed.
  • the difference between the system time and the third running time can obtain the system prediction time of the target device at the starting time in the current time period.
  • the system prediction time of the target device in the current time period is calculated according to the first running time, the second running time, and the first system time, so the system prediction time is not necessarily the correct time.
  • Step S26 Determine a time deviation value of the device to be evaluated in the current time period according to the system prediction time and the system real time.
  • the system real time is the system time of the target device at the starting time in the current time period, the real time of the system is correct, and the difference between the system prediction time and the real time of the system is calculated, and the difference is the device to be evaluated.
  • the time offset value during the current time period.
  • the time deviation value of the device to be evaluated is greater in the current time period, the worse the software operating environment quality of the device to be evaluated is. If the time deviation value of the device to be evaluated in the current time period is smaller, the device to be evaluated is The better the quality of the software operating environment.
  • Step S27 Obtain a time deviation value of each time period in the N-1 time periods of the device to be evaluated before the current time period.
  • the time deviation value of each time period in the N time periods includes the time deviation value of the current time period and the time deviation value of the N-1 time periods before the current time period, the time deviation value in the current time period After the determination has been made, it is also necessary to obtain the time deviation value of each time period in the N-1 time periods before the current time period of the device to be evaluated, so as to completely obtain the time deviation of each time period in the N time periods. value.
  • the system prediction time is calculated according to the first running time, the second running time, and the first system time, and the reason why the system prediction time is inaccurate is determined by the device to be evaluated.
  • the time deviation value of the current time period in N time periods can be calculated, and since the time deviation value of each time period in the N-1 time periods before the current time period has been It is pre-calculated, so the time deviation value of each time period of the device to be evaluated in N time periods can be determined by the method provided by the embodiment of the present application.
  • determining the time deviation value of the device to be evaluated in the current time period according to the system prediction time and the system real time may include the following steps:
  • the first step is to send the system prediction time to the target device.
  • the time deviation value of the device to be evaluated sent by the target device in the current time period is received, and the time deviation value of the device to be evaluated in the current time period is a time deviation value calculated by the target device according to the system prediction time and the real time of the system. .
  • the device to be evaluated may send the system prediction time to the target device, so that the target device predicts the time according to the system.
  • the system real time calculates the time deviation value, which ensures that the real time of the system is correct.
  • the device to be evaluated further receives the time deviation value of the device to be evaluated sent by the target device in the current time period, so as to ensure that the calculated time deviation value is more accurate.
  • determining the time deviation value of the device to be evaluated in the current time period according to the system prediction time and the system real time may include the following steps:
  • the first step is to send a request to the target device to obtain the real time of the system.
  • the second step is to receive the real time of the system sent by the target device.
  • the time deviation value of the device to be evaluated in the current time period is calculated according to the system prediction time and the real time of the system.
  • the device to be evaluated may send a request for acquiring the real time of the system to the target device, so that the target device will be adjusted.
  • the real time of the system is sent to the device to be evaluated.
  • the device to be evaluated uses the real time of the system adjusted by the target device to calculate the time deviation value of the system prediction time, so as to ensure that the calculated time deviation value is more accurate.
  • determining the time deviation value of the device to be evaluated in the current time period according to the system prediction time and the system real time may include the following steps:
  • the first step is to obtain the pre-stored system real time.
  • the time deviation value of the device to be evaluated in the current time period is calculated according to the system prediction time and the real time of the system.
  • the target device may not adjust the system time, so the real time of the system will not change, and the device to be evaluated can utilize the pre-stored system real time and the calculated system.
  • the prediction time is calculated, and the time deviation value of the device to be evaluated in the current time period is calculated, which does not need to interact with the target device, thereby saving system resources of the device to be evaluated.
  • FIG. 4 is a schematic diagram of the current time period in N time periods. It is assumed that time H is the time point at which the target device is started, time I is the time point at which the device to be evaluated is started, time J is the start time in the current time period, and time K is the end time in the current time period.
  • the first step is to obtain the H to J running time of the target device from H time to J time.
  • the H to K running time of the target device from H time to K time is determined.
  • the system time of the device to be evaluated at time K is determined.
  • the J to K running time of the target device from J time to K time is determined.
  • the system prediction time of the target device at the time J is determined.
  • the time deviation value of the device to be evaluated in the current time period is determined according to the system prediction time and the real time of the system.
  • the time deviation value of each time period in the N-1 time periods of the device to be evaluated is obtained before the current time period.
  • step of “determining the second running duration of the target device” in step S22 may further include the following steps:
  • the first step is to obtain the time offset value of the previous time period of the current time period.
  • the fourth running time of the device to be evaluated is obtained, and the fourth running time is the running time of the device to be evaluated at the ending time in the current time period.
  • the start time difference between the device to be evaluated and the target device is determined.
  • the second running time of the target device is determined according to the fourth running time, the starting time difference, and the time deviation value of the previous time period.
  • the device to be evaluated pre-stores the time deviation value of the last time period of the current time period, and the device to be evaluated records the fourth running time, and the difference between the start time of the device to be evaluated and the target device can be determined, so the calculation is performed.
  • the second running time of the target device can be obtained by summing the running time difference, the starting time difference and the time deviation value of the previous time period.
  • step S22 In order to better explain how the step of "determining the second running time of the target device" in step S22 is implemented, the following is explained by a specific example.
  • FIG. 5 is a schematic diagram of a current time period in N time periods. It is assumed that time L is the time point at which the target device is started, time M is the time point at which the device to be evaluated is started, time N is the start time in the current time period, and time O is the end time in the current time period.
  • the first step is to obtain the time offset value of the previous time period of the current time period.
  • the M to O running time of the device to be evaluated from M time to time O is obtained.
  • the start time difference between the device to be evaluated and the target device is determined, and the start time difference is the length of time from L time to M time.
  • the L to O running time from the L time to the O time of the target device is determined according to the M to O running time, the starting time difference, and the time deviation value of the previous time period.
  • the step of “determining the difference between the startup time of the device to be evaluated and the target device” may further include the following steps:
  • the second system time and the fifth running time of the target device are obtained, the second system time is the system time of the target device at the first target time, and the fifth running time is the running time of the target device at the first target time.
  • the third system time and the sixth running time of the device to be evaluated are obtained, the third system time is the system time of the device to be evaluated at the second target time, and the sixth running time is the device to be evaluated at the second target time.
  • the running time is long, and the first target time is earlier than the second target time.
  • the length of time between the first target time and the second target time is determined according to the second system time and the third system time.
  • the seventh running time of the target device at the second target moment is determined according to the length of time and the fifth running time.
  • the starting time difference between the device to be evaluated and the target device is determined.
  • the first target time and the second target time are both time before the start time of the current time period, and the first target time is earlier than the second target time, and the difference between the second system time and the third system time is calculated,
  • the length of time between the first target time and the second target time is determined.
  • Calculating the sum of the length of time and the fifth running time may determine a seventh running time of the target device at the second target time. Since the seventh running time is the running time of the target device at the second target time, and the sixth running time is the running time of the device to be evaluated at the second target time, the difference between the seventh running time and the sixth running time is calculated, that is, The difference in startup time between the device to be evaluated and the target device can be determined.
  • FIG. 6 is a schematic diagram of the life cycle of the target device and the life cycle of the device to be evaluated. It is assumed that the time P is the time point at which the target device is started, the time Q is the time point at which the device to be evaluated is started, the time R is the first target time, and the time S is the second target time.
  • the first step is to obtain the system time of the target device at time R, and obtain the P to R running time of the target device from time P to time R.
  • the system time of the device to be evaluated is obtained at time S, and the Q to S running time of the device to be evaluated from time Q to time S is obtained.
  • the difference between the system time at the time R and the system time at the time S is calculated, and the length of the R to S time from the R time to the time S is obtained.
  • the sum of the R to S time length and the P to R running time is calculated, and the P to S running time of the target device from the P time to the S time is obtained.
  • the difference between the running time of the P to S and the running time of the Q to S is calculated, and the starting time difference between the device to be evaluated and the target device is obtained, and the starting time difference is the length of time from the time P to the time Q.
  • the embodiment shown in FIG. 7 is a flowchart based on the embodiment refined in step S11 of FIG. 1. Therefore, the same content as that of FIG. 1 can be referred to the embodiment shown in FIG. 1.
  • the method shown in FIG. 7 is a specific implementation manner of “determining the time deviation value of each time period of the device to be evaluated in N time periods” in step S11 of FIG. 1 , wherein “determining the device to be evaluated in N
  • the time deviation value for each time period in the time period may also include the following steps.
  • Step S31 Obtain an eighth running time and a fourth system time of the device to be evaluated.
  • the eighth running time is the running time of the device to be evaluated at the end time in the current time period
  • the fourth system time is the system time of the device to be evaluated at the end time in the current time period.
  • Step S32 Obtain a ninth running time and a fifth system time of the device to be evaluated.
  • the ninth running time is the running time of the starting time of the device to be evaluated in the current time period
  • the fifth system time is the system time of the starting time of the device to be evaluated in the current time period
  • Step S33 Determine, according to the eighth running duration and the ninth running duration, the tenth running duration of the device to be evaluated from the starting time to the ending time in the current time period.
  • Step S34 Determine, according to the fourth system time and the fifth system time, an eleventh running time period of the device to be evaluated from the start time to the end time in the current time period.
  • Step S35 Determine a time deviation value of the device to be evaluated in the current time period according to the tenth running time and the eleventh running time.
  • Step S36 Obtain a time deviation value of each time period in the N-1 time periods of the device to be evaluated before the current time period.
  • the fourth system time and the fifth system time of the device to be evaluated may be inaccurate. of. Since the eighth running time and the ninth running time of the device to be evaluated are the results of the internal statistics of the device to be evaluated, the eighth running time and the ninth running time of the device to be evaluated are relatively accurate. Therefore, if it is determined according to the tenth running time and the eleventh running time that the device to be evaluated has a time deviation value in the current time period, the fourth system time and the fifth system time are inaccurate, so the present application is implemented.
  • the quality of the network environment in which the device to be evaluated is located can be evaluated, and the greater the time deviation value, the worse the network environment quality of the device to be evaluated is, and the smaller the time deviation value is, indicating that the device to be evaluated is located.
  • FIG. 8 is a schematic diagram of a current time period in N time periods. It is assumed that the time T is the time point at which the device to be evaluated is started, the time U is the starting time in the current time period, and the time V is the ending time in the current time period.
  • the T to V running time from the T time to the V time of the device to be evaluated and the system time of the device to be evaluated at the V time are obtained.
  • the T to U running time from the T time to the U time and the system time at the U time are obtained.
  • the difference between the running time of T to V and the running time of T to U is calculated, and the first U to V running time of the device to be evaluated is obtained from time U to time V.
  • the difference between the system time of the device to be evaluated at time V and the system time at time U is calculated, and the second U to V running time of the device to be evaluated is obtained from time U to time V.
  • the difference between the first U to V running time and the second U to V running time is calculated, and the time deviation value of the device to be evaluated from U time to V time is obtained.
  • the time deviation value of each time period in the N-1 time periods of the device to be evaluated before the current time period is obtained.
  • the embodiment shown in FIG. 9 is a flowchart based on the embodiment refined in step S11 of FIG. 1. Therefore, the same content as that of FIG. 1 can be referred to the embodiment shown in FIG. 1.
  • the method shown in FIG. 9 is a specific implementation manner of “determining the time deviation value of each time period of the device to be evaluated in N time periods” in step S11 of FIG. 1 , wherein “determining the devices to be evaluated in N
  • the time deviation value for each time period in the time period may also include the following steps.
  • Step S41 Obtain a twelfth running time of the device to be evaluated, where the twelfth running time is a running time of the device to be evaluated at the end time in the current time period, and the ending time in the current time period is determined by the cycle timer.
  • the periodic timer runs on the device to be evaluated, and the quality of the software running environment of the device to be evaluated directly affects the accuracy of the cycle timer. If the quality of the software running environment of the device to be evaluated is better, the accuracy of the cycle timer will be higher; if the quality of the software running environment of the device to be evaluated is worse, the accuracy of the cycle timer will be lower.
  • Step S42 Obtain a thirteenth running time of the device to be evaluated, where the thirteenth running time is a running time of the starting time of the device to be evaluated in the current time period, and the starting time in the current time period is determined by the cycle timer. of.
  • Step S43 Determine, according to the twelfth running time and the thirteenth running time, the fourteenth running time of the device to be evaluated from the starting time to the ending time in the current time period.
  • Step S44 Determine a time deviation value of the device to be evaluated in the current time period according to the fourteenth running time and the current time period.
  • time deviation value of the device to be evaluated in the current time period is greater than 0, it indicates that the cycle timer is affected by the software operating environment of the device to be evaluated, resulting in a certain deviation in accuracy.
  • Step S45 Obtain a time deviation value of each time period in the N-1 time periods of the device to be evaluated before the current time period.
  • the periodic timer is affected by the software operating environment of the device to be evaluated, resulting in a certain deviation in accuracy, so that the time deviation value of the device to be evaluated in the current time period can be reflected.
  • FIG. 10 is a schematic diagram of the current time period in N time periods. It is assumed that the time W is the time point at which the device to be evaluated is started, the time X is the starting time in the current time period, and the time Y is the ending time in the current time period.
  • the W to Y running time of the device to be evaluated at the Y time in the current time period is obtained, and the Y time in the current time period is determined by the cycle timer.
  • the W to X running time of the device to be evaluated at time X in the current time period is obtained, and the X time in the current time period is determined by the cycle timer.
  • the difference between the W to Y running time and the W to X running time is calculated to obtain the X to Y running time of the device to be evaluated from the X time to the Y time in the current time period.
  • the difference between the X to Y running time and the current time period is calculated to obtain the time deviation value of the device to be evaluated in the current time period.
  • the time deviation value of each time period in the N-1 time periods of the device to be evaluated before the current time period is obtained.
  • the embodiment of the present application can also be combined with the embodiment shown in FIG. 7 and the embodiment shown in FIG. 9 to generate a new embodiment.
  • the mode of the embodiment shown in FIG. 7 calculates the target time jitter amplitude as the first target time jitter amplitude
  • the manner of the embodiment shown in FIG. 9 calculates the target time jitter amplitude as the second target time jitter.
  • the amplitude determines the average of the first target time jitter amplitude and the second target time jitter amplitude as the specified time jitter amplitude, and finally determines the specified time jitter amplitude as an evaluation parameter for measuring the quality of the software operating environment of the device to be evaluated.
  • the scope of protection of the embodiments of the present application is not limited thereto, and the new embodiments derived from the embodiments of the present application are all within the scope of protection of the present application.
  • FIG. 11 is a schematic diagram of an apparatus for evaluating a quality of a software operating environment of a device according to an embodiment of the present application. 11 is a device embodiment corresponding to FIG. 1 to FIG. 10, and FIG. 11 is the same as FIG. 1 to FIG. Referring to Figure 11, the apparatus includes the following modules:
  • the first determining module 11 is configured to determine a time deviation value of each time period of the device to be evaluated in N time periods, and the time deviation value of each time period in the N time periods includes a time deviation value of the current time period and current
  • the time deviation value of N-1 time periods before the time period, N is a positive integer greater than or equal to 2;
  • the second determining module 12 is configured to determine an inherent deviation value according to a time deviation value of each time period in the N time periods, and the inherent deviation value is an average value of the time deviation values of each time period in the N time periods;
  • the third determining module 13 is configured to determine a time jitter amplitude of each time period in the N time periods according to the time deviation value and the inherent deviation value of each time period in the N time periods;
  • the selecting module 14 is configured to select a target time jitter amplitude with a maximum time jitter amplitude among the time jitter amplitudes of each time period in the N time periods, and the target time jitter amplitude is an evaluation parameter that measures the quality of the software operating environment of the device to be evaluated.
  • the first determining module 11 is configured to obtain a first running time of the target device, where the first running time is a running time of the target device at a starting time in the current time period, and determining a second running time of the target device.
  • the second running time is the running time of the target device at the end time in the current time period; determining the first system time of the device to be evaluated at the end time in the current time period; determining according to the second running time and the first running time
  • the third running time of the target device from the start time to the end time in the current time period; determining the system prediction time of the target device at the starting time in the current time period according to the first system time and the third running time; Time and system real time, determine the time deviation value of the device to be evaluated in the current time period, the system real time is the system time of the target device at the starting time in the current time period; and obtain the N of the device to be evaluated before the current time period - The time offset value for each time period in a time period.
  • the first determining module 11 is configured to obtain a time deviation value of the last time period of the current time period, obtain a fourth running time of the device to be evaluated, and the fourth running time is that the device to be evaluated is in the current time period.
  • the running time of the end time is determined; the starting time difference between the device to be evaluated and the target device is determined; and the second running time of the target device is determined according to the fourth running time, the starting time difference and the time deviation value of the previous time period.
  • the first determining module 11 is configured to acquire a second system time and a fifth running time of the target device, where the second system time is a system time of the target device at the first target time, and the fifth running time is the target device.
  • the fifth running time determines a seventh running time of the target device at the second target time; and determines a starting time difference between the device to be evaluated and the target device according to the seventh running time and the sixth running time.
  • the first determining module 11 is configured to send the system prediction time to the target device, and receive the time deviation value of the device to be evaluated sent by the target device in the current time period, and the time of the device to be evaluated in the current time period.
  • the deviation value is the time deviation value calculated by the target device based on the predicted time of the system and the real time of the system.
  • the first determining module 11 is specifically configured to send a request for acquiring a real time of the system to the target device, receive a real time of the system sent by the target device, and calculate a current time period of the device to be evaluated according to the predicted time of the system and the real time of the system. The time deviation value within.
  • the first determining module 11 is configured to obtain a pre-stored system real time; and calculate a time offset value of the device to be evaluated in the current time period according to the system prediction time and the system real time.
  • the first determining module 11 is configured to obtain an eighth running time and a fourth system time of the device to be evaluated, where the eighth running time is a running time of the device to be evaluated at an ending time in the current time period, and fourth The system time is the system time of the device to be evaluated at the end time of the current time period; the ninth running time and the fifth system time of the device to be evaluated are obtained, and the ninth running time is the starting time of the device to be evaluated in the current time period.
  • the running time of the fifth system time is the system time of the starting time of the device to be evaluated in the current time period; according to the eighth running time and the ninth running time, determining from the starting time to the ending time in the current time period Evaluating a tenth running time of the device; determining, according to the fourth system time and the fifth system time, an eleventh running time of the device to be evaluated from the start time to the end time in the current time period; according to the tenth running time and the tenth a running time, determining the time deviation value of the device to be evaluated in the current time period; obtaining the device to be evaluated at the current time Time offset values in each period of the N-1 within the time period before the cycle.
  • the first determining module 11 is configured to obtain a twelfth running duration of the device to be evaluated, where the twelfth running time is a running time of the device to be evaluated at an ending time in the current time period, and the current time period is The end time is determined by the period timer; the thirteenth running time of the device to be evaluated is obtained, and the thirteenth running time is the running time of the starting time of the device to be evaluated in the current time period, and the starting time in the current time period The time is determined by the cycle timer; according to the twelfth running time and the thirteenth running time, determining the fourteenth running time of the device to be evaluated from the starting time to the ending time in the current time period; The time length and the current time period determine the time deviation value of the device to be evaluated in the current time period; and obtain the time deviation value of each time period in the N-1 time periods of the device to be evaluated before the current time period.
  • FIG. 12 is a schematic diagram of an apparatus for evaluating the quality of software running environment of another device according to an embodiment of the present application. 12 is a device embodiment corresponding to FIG. 1 to FIG. 10, and FIG. 12 is the same as FIG. 1 to FIG. Referring to FIG. 12, the apparatus includes a processor 21 and a memory 22, wherein the memory 22 stores therein an operation instruction executable by the processor 21, and the processor 21 reads an operation instruction in the memory 22 for implementing FIGS. 1 to 10. Methods.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of cells is only a logical function division.
  • multiple units or components may be combined or integrated. Go to another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • Tourism & Hospitality (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Development Economics (AREA)
  • Educational Administration (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Game Theory and Decision Science (AREA)
  • Health & Medical Sciences (AREA)
  • Operations Research (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种设备的软件运行环境质量的评估方法及装置,该方法包括:确定待评估设备在N个时间周期内每个时间周期的时间偏差值(S11);根据N个时间周期内每个时间周期的时间偏差值确定固有偏差值(S12);根据N个时间周期内每个时间周期的时间偏差值与固有偏差值,确定N个时间周期内每个时间周期的时间抖动幅度(S13);在N个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度,目标时间抖动幅度为衡量待评估设备的软件运行环境质量的评估参数(S14)。可以获得衡量待评估设备的软件运行环境质量的评估参数,通过评估参数可以实现对设备的软件运行环境质量进行评估。

Description

一种设备的软件运行环境质量的评估方法及装置
本申请要求于2017年8月31日提交中国专利局、申请号为201710767473.8、发明名称为“一种设备的软件运行环境质量的评估方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,更具体的说,涉及设备的软件运行环境质量的评估方法及装置。
背景技术
目前,电信设备通常包括一个主控设备和多个业务处理设备,主控设备和业务处理设备之间相互配合来完成相应的电信业务功能。其中,主控设备用于进行系统配置、统计、监控和维护等管理工作,业务设备用于进行业务的处理。
通常情况下,NTP(Network Time Protocol,网络时间协议)服务器的系统时间被认为是准确和可信的,为了实现主控设备与多个业务处理设备的时间同步,首先,需要主控设备的系统时间与NTP服务器进行时间同步,以使主控设备的系统时间与NTP服务器的系统时间是一致的;然后,再将主控设备的系统时间同步给多个业务处理设备,以使多个业务处理设备的系统时间与主控设备的系统时间是一致的。
随着对电信设备的要求不断提高,现阶段不仅要求主控设备和多个业务处理设备可以实现时间同步,还要求电信设备通常都要求达到5个9的可靠性,即99.999%的设备可用度,这就要求运行在电信设备上的应用软件具有较强的稳定性和可靠性,而且这种要求在电信设备云化之后亦是如此。当电信设备软件运行在第三方提供的COTS(Commercial Off-The-Shelf,商用现成品)的硬件之上,如何保证电信设备软件的稳定性和可靠性,对软件运行环境质量的要求也变得愈发迫切。为了保证电信设备上的应用软件具有较强的稳定性和可靠性,这需要对电信设备的软件运行环境质量进行相应评估,并在评估的基础上对软件进行适应性调整,才能更有效地保证应用软件更好的运行在电信设备上。
因此,如何实现对电信设备的软件运行环境质量进行评估,成为目前亟须解决的技术问题。
发明内容
本申请实施例提供一种设备的软件运行环境质量的评估方法及装置,以获得衡量待评估设备的软件运行环境质量的评估参数,通过评估参数可以实现对设备的软件运行环境质量进行评估。
本申请实施例是这样实现的:
第一方面,本申请实施例提供了一种设备的软件运行环境质量的评估方法,该方法包 括:
确定待评估设备在N个时间周期内每个时间周期的时间偏差值,N个时间周期内每个时间周期的时间偏差值包括当前时间周期的时间偏差值和当前时间周期之前的N-1个时间周期的时间偏差值,N为大于或等于2的正整数;
根据N个时间周期内每个时间周期的时间偏差值确定固有偏差值,固有偏差值为N个时间周期内每个时间周期的时间偏差值的平均值;
根据N个时间周期内每个时间周期的时间偏差值与固有偏差值,确定N个时间周期内每个时间周期的时间抖动幅度;
在N个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度,目标时间抖动幅度为衡量待评估设备的软件运行环境质量的评估参数。
在第一方面中,根据待评估设备在N个时间周期内每个时间周期的时间偏差值,可以确定出待评估设备的固有偏差值,固有偏差值可以作为待评估设备在N个时间周期内衡量每个时间周期的时间偏差值的基准值。根据固有偏差值和N个时间周期内每个时间周期的时间偏差值,可以确定出待评估设备在N个时间周期内每个时间周期的时间偏差值相对于固有偏差值的时间抖动幅度。由于在N个时间周期内每个时间周期的时间抖动幅度中最大的目标时间抖动幅度可以反映软件运行环境质量的好坏,所以将目标时间抖动幅度作为衡量待评估设备的软件运行环境质量的评估参数。因此,本申请实施例可以获得衡量待评估设备的软件运行环境质量的评估参数,通过评估参数可以实现对设备的软件运行环境质量进行评估。
在一种可能的实现方式中,确定待评估设备在N个时间周期内每个时间周期的时间偏差值包括:
获取目标设备的第一运行时长,第一运行时长为目标设备在当前时间周期内的起始时刻的运行时长;
确定目标设备的第二运行时长,第二运行时长为目标设备在当前时间周期内的结束时刻的运行时长;
确定待评估设备在当前时间周期内的结束时刻的第一系统时间;
根据第二运行时长与第一运行时长,确定从当前时间周期内的起始时刻至结束时刻目标设备的第三运行时长;
根据第一系统时间和第三运行时长,确定当前时间周期内的起始时刻目标设备的系统预测时间;
根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值,系统真实时间为目标设备在当前时间周期内的起始时刻的系统时间;
获取待评估设备在当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值。
其中,系统预测时间为待评估设备根据第一运行时长、第二运行时长和第一系统时间计算出来的,计算出系统预测时间不准确的原因在于待评估设备的软件运行环境影响导致的,系统预测时间与系统真实时间的时间偏差值越大,说明待评估设备的软件运行环境质量越差,系统预测时间与系统真实时间的时间偏差值越小,说明待评估设备的软件运行环 境质量越好,所以可以计算出N个时间周期内当前时间周期的时间偏差值,而且,由于当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值已经被预先计算出来,所以通过本申请实施例提供的方法可以确定待评估设备在N个时间周期内每个时间周期的时间偏差值。
在一种可能的实现方式中,确定目标设备的第二运行时长包括:
获取当前时间周期的上一个时间周期的时间偏差值;
获取待评估设备的第四运行时长,第四运行时长为待评估设备在当前时间周期内的结束时刻的运行时长;
确定待评估设备与目标设备的启动时间差;
根据第四运行时长、启动时间差和上一个时间周期的时间偏差值,确定目标设备的第二运行时长。
其中,待评估设备会预先存储当前时间周期的上一个时间周期的时间偏差值,待评估设备会记录第四运行时长,而且待评估设备与目标设备的启动时间差是可以确定出来的,所以计算第四运行时长、启动时间差和上一个时间周期的时间偏差值之和,即可得到目标设备的第二运行时长。
在一种可能的实现方式中,确定待评估设备与目标设备的启动时间差包括:
获取目标设备的第二系统时间和第五运行时长,第二系统时间为目标设备在第一目标时刻的系统时间,第五运行时长为目标设备在第一目标时刻的运行时长;
获取待评估设备的第三系统时间和第六运行时长,第三系统时间为待评估设备在第二目标时刻的系统时间,第六运行时长为待评估设备在第二目标时刻的运行时长,第一目标时刻早于第二目标时刻;
根据第二系统时间和第三系统时间,确定第一目标时刻与第二目标时刻之间的时间长度;
根据时间长度和第五运行时长,确定目标设备在第二目标时刻的第七运行时长;
根据第七运行时长和第六运行时长,确定待评估设备与目标设备的启动时间差。
其中,第一目标时刻和第二目标时刻均为当前时间周期的起始时刻之前的时刻,而且第一目标时刻早于第二目标时刻,计算第二系统时间与第三系统时间之差,可以确定第一目标时刻与第二目标时刻之间的时间长度。计算该时间长度和第五运行时长之和可以确定出目标设备在第二目标时刻的第七运行时长。由于第七运行时长为目标设备在第二目标时刻的运行时长,而且第六运行时长为待评估设备在第二目标时刻的运行时长,所以计算第七运行时长与第六运行时长之差,即可确定出待评估设备与目标设备的启动时间差。
在一种可能的实现方式中,根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值包括:
将系统预测时间发送给目标设备;
接收目标设备发送的待评估设备在当前时间周期内的时间偏差值,待评估设备在当前时间周期内的时间偏差值为目标设备根据系统预测时间与系统真实时间计算的时间偏差值。
其中,由于目标设备可能会经常性的调整系统时间,从而导致系统真实时间发生变化, 所以待评估设备可以将系统预测时间发送给目标设备,以使目标设备根据系统预测时间与系统真实时间计算出时间偏差值,这样可以保证系统真实时间是正确的。然后,待评估设备再接收目标设备发送的待评估设备在当前时间周期内的时间偏差值,这样可以保证计算出来的时间偏差值更加准确。
在一种可能的实现方式中,根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值包括:
向目标设备发送获取系统真实时间的请求;
接收目标设备发送的系统真实时间;
根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时间偏差值。
其中,由于目标设备可能会经常性的调整系统时间,从而导致系统真实时间发生变化,所以待评估设备可以向目标设备发送获取系统真实时间的请求,以使目标设备将调整后的系统真实时间发送给待评估设备。此时,待评估设备利用目标设备调整后的系统真实时间与系统预测时间计算时间偏差值,这样可以保证计算出来的时间偏差值更加准确。
在一种可能的实现方式中,根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值包括:
获取预先存储的系统真实时间;
根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时间偏差值。
其中,在某些场景下,目标设备可能不会调整系统时间,所以系统真实时间也就不会发生变化,那么待评估设备可以利用预先存储的系统真实时间和计算出来的系统预测时间,计算出待评估设备在当前时间周期内的时间偏差值,这种方式不需要与目标设备进行交互,从而节省了待评估设备的系统资源。
在一种可能的实现方式中,确定待评估设备在N个时间周期内每个时间周期的时间偏差值包括:
获取待评估设备的第八运行时长和第四系统时间,第八运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,第四系统时间为待评估设备在当前时间周期内的结束时刻的系统时间;
获取待评估设备的第九运行时长和第五系统时间,第九运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,第五系统时间为待评估设备在当前时间周期内的起始时刻的系统时间;
根据第八运行时长与第九运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十运行时长;
根据第四系统时间与第五系统时间,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十一运行时长;
根据第十运行时长和第十一运行时长,确定待评估设备在当前时间周期内的时间偏差值;
获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
其中,由于待评估设备的第四系统时间和第五系统时间均是通过网络获取到的,所以 待评估设备的第四系统时间和第五系统时间可能是不准确的。由于待评估设备的第八运行时长和第九运行时长均是待评估设备内部统计的结果,所以待评估设备的第八运行时长和第九运行时长是相对准确的。因此,如果根据第十运行时长和第十一运行时长确定出待评估设备在当前时间周期内存在时间偏差值,那么就是因为第四系统时间和第五系统时间不准确导致的,所以本申请实施例可以评估出待评估设备所处的网络环境质量的好坏,而且时间偏差值越大,说明待评估设备所处的网络环境质量越差,时间偏差值越小,说明待评估设备所处的网络环境质量越好。
在一种可能的实现方式中,确定待评估设备在N个时间周期的时间偏差值包括:
获取待评估设备的第十二运行时长,第十二运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,当前时间周期内的结束时刻是由周期定时器确定的;
获取待评估设备的第十三运行时长,第十三运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,当前时间周期内的起始时刻是由周期定时器确定的;
根据第十二运行时长与第十三运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十四运行时长;
根据第十四运行时长与当前时间周期,确定待评估设备在当前时间周期内的时间偏差值;
获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
其中,周期定时器会受到待评估设备的软件运行环境的影响而导致精准度存在一定的偏差,从而使得待评估设备在当前时间周期内的时间偏差值可以反映待评估设备的软件运行环境质量的好坏。如果时间偏差值越大,说明待评估设备所处的网络环境质量越差;如果时间偏差值越小,说明待评估设备所处的网络环境质量越好。
第二方面,一种设备的软件运行环境质量的评估装置,该装置包括:
第一确定模块,用于确定待评估设备在N个时间周期内每个时间周期的时间偏差值,N个时间周期内每个时间周期的时间偏差值包括当前时间周期的时间偏差值和当前时间周期之前的N-1个时间周期的时间偏差值,N为大于或等于2的正整数;
第二确定模块,用于根据N个时间周期内每个时间周期的时间偏差值确定固有偏差值,固有偏差值为N个时间周期内每个时间周期的时间偏差值的平均值;
第三确定模块,用于根据N个时间周期内每个时间周期的时间偏差值与固有偏差值,确定N个时间周期内每个时间周期的时间抖动幅度;
选择模块,用于在N个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度,目标时间抖动幅度为衡量待评估设备的软件运行环境质量的评估参数。
在一种可能的实现方式中,第一确定模块,具体用于获取目标设备的第一运行时长,第一运行时长为目标设备在当前时间周期内的起始时刻的运行时长;确定目标设备的第二运行时长,第二运行时长为目标设备在当前时间周期内的结束时刻的运行时长;确定待评估设备在当前时间周期内的结束时刻的第一系统时间;根据第二运行时长与第一运行时长,确定从当前时间周期内的起始时刻至结束时刻目标设备的第三运行时长;根据第一系统时 间和第三运行时长,确定当前时间周期内的起始时刻目标设备的系统预测时间;根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值,系统真实时间为目标设备在当前时间周期内的起始时刻的系统时间;获取待评估设备在当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值。
在一种可能的实现方式中,第一确定模块,具体用于获取当前时间周期的上一个时间周期的时间偏差值;获取待评估设备的第四运行时长,第四运行时长为待评估设备在当前时间周期内的结束时刻的运行时长;确定待评估设备与目标设备的启动时间差;根据第四运行时长、启动时间差和上一个时间周期的时间偏差值,确定目标设备的第二运行时长。
在一种可能的实现方式中,第一确定模块,具体用于获取目标设备的第二系统时间和第五运行时长,第二系统时间为目标设备在第一目标时刻的系统时间,第五运行时长为目标设备在第一目标时刻的运行时长;获取待评估设备的第三系统时间和第六运行时长,第三系统时间为待评估设备在第二目标时刻的系统时间,第六运行时长为待评估设备在第二目标时刻的运行时长,第一目标时刻早于第二目标时刻;根据第二系统时间和第三系统时间,确定第一目标时刻与第二目标时刻之间的时间长度;根据时间长度和第五运行时长,确定目标设备在第二目标时刻的第七运行时长;根据第七运行时长和第六运行时长,确定待评估设备与目标设备的启动时间差。
在一种可能的实现方式中,第一确定模块,具体用于将系统预测时间发送给目标设备;接收目标设备发送的待评估设备在当前时间周期内的时间偏差值,待评估设备在当前时间周期内的时间偏差值为目标设备根据系统预测时间与系统真实时间计算的时间偏差值。
在一种可能的实现方式中,第一确定模块,具体用于向目标设备发送获取系统真实时间的请求;接收目标设备发送的系统真实时间;根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时间偏差值。
在一种可能的实现方式中,第一确定模块,具体用于获取预先存储的系统真实时间;根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时间偏差值。
在一种可能的实现方式中,第一确定模块,具体用于获取待评估设备的第八运行时长和第四系统时间,第八运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,第四系统时间为待评估设备在当前时间周期内的结束时刻的系统时间;获取待评估设备的第九运行时长和第五系统时间,第九运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,第五系统时间为待评估设备在当前时间周期内的起始时刻的系统时间;根据第八运行时长与第九运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十运行时长;根据第四系统时间与第五系统时间,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十一运行时长;根据第十运行时长和第十一运行时长,确定待评估设备在当前时间周期内的时间偏差值;获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
在一种可能的实现方式中,第一确定模块,具体用于获取待评估设备的第十二运行时长,第十二运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,当前时间周期内的结束时刻是由周期定时器确定的;获取待评估设备的第十三运行时长,第十三运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,当前时间周期内的起始时刻 是由周期定时器确定的;根据第十二运行时长与第十三运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十四运行时长;根据第十四运行时长与当前时间周期,确定待评估设备在当前时间周期内的时间偏差值;获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
第三方面,本申请实施例提供了一种设备的软件运行环境质量的评估装置,该装置包括:处理器和存储器,其中,存储器内存储有处理器能够执行的操作指令,处理器读取存储器内的操作指令用于实现第一方面或第一方面的任一可能的实现方式中描述的方法。
附图说明
图1所示的为本申请实施例提供的一种设备的软件运行环境质量的评估方法的流程图;
图2所示的为N个时间周期内每个时间周期的时间偏差值的示意图;
图3所示的实施例为基于图1中步骤S11细化的实施例的流程图;
图4所示的为N个时间周期内当前时间周期的示意图;
图5所示的为N个时间周期内当前时间周期的示意图;
图6所示的为目标设备的生命周期和待评估设备的生命周期的示意图;
图7所示的实施例为基于图1中步骤S11细化的实施例的流程图;
图8所示的为N个时间周期内当前时间周期的示意图;
图9所示的实施例为基于图1中步骤S11细化的实施例的流程图;
图10所示的为N个时间周期内当前时间周期的示意图;
图11所示的为本申请实施例提供的一种设备的软件运行环境质量的评估装置的示意图;
图12所示的为本申请实施例提供的另一种设备的软件运行环境质量的评估装置的示意图。
具体实施方式
软件运行环境质量是对一个待评估设备在时间和空间维度的综合评估。该软件运行环境质量包括:待评估设备的操作系统的调度及时性、待评估设备的系统时钟精度、待评估设备的内存访问速度、待评估设备的网络交互时延、待评估设备的数据缓存大小、待评估设备的消息队列深度等指标。如果上述指标中的任何一个指标的质量差,都可以说明待评估设备的软件运行环境质量不佳;如果上述指标中每个指标的质量都很好,那么可以说明待评估设备的软件运行环境质量较好。
上述所列举的指标中,“调度及时性”、“系统时钟精度”、“内存访问速度”、“网络交互时延”是在时间维度上的评估,“数据缓存大小”和“消息队列深度”是在空间维度上的评估。但是,“数据缓存大小”和“消息队列深度”最终反映的仍然是待评估设备中数据提供的“速度”、消息处理的“快慢”,归根结底都反映在“时间”这个维度上。
同时,对于一个待评估设备来说,待评估设备的软件运行环境质量也体现在应用软件 自身的实现方法上。例如:应用软件处理事务的时间长短和消息队列处理策略等,这些都会影响到操作系统的调度速度。
因此,对待评估设备的时间维度进行评估的结果,不仅可以反映出待评估设备的软件运行环境质量,也可以反映出在待评估设备的软件运行环境上运行的应用软件本身的质量,所以对待评估设备的时间同步结果的度量,可以反映出待评估设备的“调度及时性”、“系统时钟精度”、“内存访问速度”、“网络交互时延”等指标。
前文提到,如何实现对电信设备的软件运行环境质量进行评估,成为目前亟须解决的技术问题,但是,目前行业内并没有通用的评估方法和标准。
本申请实施例提供的设备的软件运行环境质量的评估方法及装置,可以对设备的软件运行环境质量进行动态的评估,评估的方式为对待评估设备的时间同步结果进行评估,根据评估结果可以对设备的软件运行环境质量有充分的了解。然后,待评估设备或工作人员可以根据评估结果来调整运行在设备上的应用软件,以使应用软件可以更好地适应设备的软件运行环境,从而提升运行在设备上的应用软件具有更高的稳定性和可靠性。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
图1所示的为本申请实施例提供的一种设备的软件运行环境质量的评估方法的流程图。图1所示的方法可以获得衡量待评估设备的软件运行环境质量的评估参数,从而根据评估参数调整待评估设备上的应用软件,以使应用软件更好的适应待评估设备的软件运行环境。该方法包括以下步骤。
步骤S11、确定待评估设备在N个时间周期内每个时间周期的时间偏差值。
其中,本申请实施例提供的方法可以运行在待评估设备上。
为了保证应用软件可以在待评估设备上稳定的运行,需要对待评估设备的软件运行环境质量进行评估,并根据评估结果来调整运行在待评估设备上的应用软件,以使应用软件可以更好的适应待评估设备的软件运行环境,从而保证运行在待评估设备上的应用软件具有较高的稳定性。
本申请实施例提供的方法的作用在于,获得衡量待评估设备的软件运行环境质量的评估参数,待评估设备在获得评估参数以后,可以根据该评估参数来调整应用软件,从而使得该应用软件更好的适应待评估设备的软件运行环境。
为了对待评估设备的软件运行环境质量进行评估,本申请实施例需要根据待评估设备在N个时间周期内每个时间周期的时间偏差值和固有偏差值确定出目标时间抖动幅度,该目标时间抖动幅度即为衡量待评估设备的软件运行环境质量的评估参数。
本申请实施例提到的N为大于或等于2的正整数。N个时间周期内每个时间周期的时间偏差值包括当前时间周期的时间偏差值和当前时间周期之前的N-1个时间周期的时间偏差值。待评估设备的N个时间周期为预先确定好的。例如,预先将待评估设备的10个时间周期确定为N个时间周期,其中,待评估设备的10个时间周期分别为当前时间周期和当前时间周期的前9个时间周期。
时间周期的时间偏差值指的是,在时间周期内待评估设备的时钟与标准时间的差值,标准时间可以为NTP服务器的系统时间。
例如,假设时间周期为5分钟,经过计算,在时间周期为5分钟内待评估设备的时钟与标准时间的差值为100毫秒。
在本申请实施例提供的方法中,“确定待评估设备在N个时间周期内每个时间周期的时间偏差值”的实现方式有很多种,后面的实施例会一一介绍。
本申请实施例提到的待评估设备可以为构成电信设备的一个业务单板,本申请实施例提到的目标设备可以为构成电信设备的一个主控板。每个业务单板均设置有CPU和存储器等部件,并且每个业务单板均配置有独立的操作系统,业务单板对应的操作系统上可以安装用于完成业务功能的应用软件。主控板也设置有CPU和存储器等部件,并且主控板也配置有独立的操作系统,主控板对应的操作系统上也可以安装各类应用软件。
例如,一个电信设备上集成有多块业务单板和一块主控板,一块主控板和多块业务单板之间相互配合来完成相应的电信业务功能。其中,主控板用于进行系统配置、统计、监控和维护等管理工作,多块业务单板用于进行业务的处理。
本申请实施例提到的待评估设备还可以为构成电信设备的一个业务设备,本申请实施例提到的目标设备还可以为构成电信设备的一个主控设备。每个业务设备均设置有CPU和存储器等部件,并且每个业务设备均配置有独立的操作系统,业务设备对应的操作系统上可以安装用于完成业务功能的应用软件。主控设备也设置有CPU和存储器等部件,并且主控设备也配置有独立的操作系统,主控设备对应的操作系统上也可以安装各类应用软件。
例如,云端的电信设备包括一个主控设备和多个业务设备,该主控设备和多个业务设备之间相互配合来完成相应的电信业务功能。其中,主控设备用于进行系统配置、统计、监控和维护等管理工作,多个业务设备用于进行业务的处理。
步骤S12、根据N个时间周期内每个时间周期的时间偏差值确定固有偏差值。
其中,固有偏差值为N个时间周期内每个时间周期的时间偏差值的平均值。
例如,假设N为3,那么在3个时间周期内每个时间周期的时间偏差值分别为110毫秒、130毫秒和150毫秒,那么固有偏差值=(110毫秒+130毫秒+150毫秒)/3=130毫秒。
固有偏差值可以作为待评估设备在N个时间周期内衡量每个时间周期的时间偏差值的基准值,所以基于固有偏差值和N个时间周期内每个时间周期的时间偏差值,可以得知N个时间周期内每个时间周期的时间抖动幅度。
步骤S13、根据N个时间周期内每个时间周期的时间偏差值与固有偏差值,确定N个时间周期内每个时间周期的时间抖动幅度。
其中,由于确定N个时间周期内每个时间周期的时间抖动幅度的方式有很多,下面简要介绍一种方式。
计算N个时间周期内每个时间周期的时间偏差值与固有偏差值之间差值的绝对值,可以得到N个时间周期内每个时间周期的时间抖动幅度。
例如,假设N为3,在3个时间周期内的第一时间周期的时间偏差值为110毫秒,3个时间周期内的第二时间周期的时间偏差值为130毫秒,3个时间周期内的第三时间周期的时间偏差值为210毫秒,固有偏差值=(110毫秒+130毫秒+210毫秒)/3=150毫秒。3个时间周期内的第一时间周期的时间抖动幅度=|第一时间周期的时间偏差值-固有偏差值|=|110毫秒-150毫秒|=|-40毫秒|=40毫秒,3个时间周期内的第二时间周期的时间抖 动幅度=|第二时间周期的时间偏差值-固有偏差值|=|130毫秒-150毫秒|=|-20毫秒|=20毫秒,3个时间周期内的第三时间周期的时间抖动幅度=|第三时间周期的时间偏差值-固有偏差值|=|210毫秒-150毫秒|=60毫秒。经过计算以后可以得知,3个时间周期内每个时间周期的时间抖动幅度分别为40毫秒、20毫秒和60毫秒。
时间周期的时间抖动幅度指的是,以固有偏差值为基准,在时间周期内的时间偏差值相对于固有偏差值的时间抖动幅度。如果某个时间周期的时间抖动幅度越大,说明该时间周期的待评估设备的软件运行环境质量的越差;如果某个时间周期的时间抖动幅度越小,说明该时间周期的待评估设备的软件运行环境质量的越好。
步骤S14、在N个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度。
其中,在确定N个时间周期内每个时间周期的时间抖动幅度以后,需要在每个时间周期的时间抖动幅度中选择出时间抖动幅度最大的目标时间抖动幅度。
目标时间抖动幅度表示,在N个时间周期内待评估设备的软件运行环境质量最差的状态。
目标时间抖动幅度可以用于衡量待评估设备的软件运行环境质量的评估参数。这是因为在确定出目标时间抖动幅度以后,便可以得知N个时间周期内待评估设备的软件运行环境质量最差的状态,待评估设备或工作人员便能够以待评估设备的软件运行环境质量最差的状态作为临界点,并以此临界点来调整运行在待评估设备上的应用软件,所以将目标时间抖动幅度作为衡量待评估设备的软件运行环境质量的评估参数,可以使该应用软件更好的适应待评估设备的软件运行环境。
例如,在待评估设备与目标设备之间进行消息通信时,采取接收应答和超时重传的处理方式。如果计算出目标时间抖动幅度为100毫秒时,那么说明目标时间抖动幅度较小,待评估设备的软件运行环境质量相对较好,所以可以将消息超时重传时间可以设定为1秒。如果计算出目标时间抖动幅度为2秒时,那么说明目标时间抖动幅度较大,待评估设备的软件运行环境质量相对较差,所以可以将消息超时重传时间适当延长,以减少因为待评估设备的软件运行环境质量导致不必要的超时重传处理。
在图1所示的实施例中,根据待评估设备在N个时间周期内每个时间周期的时间偏差值,可以确定出待评估设备的固有偏差值,固有偏差值可以作为待评估设备在N个时间周期内衡量每个时间周期的时间偏差值的基准值。根据固有偏差值和N个时间周期内每个时间周期的时间偏差值,可以确定出待评估设备在N个时间周期内每个时间周期的时间偏差值相对于固有偏差值的时间抖动幅度。由于在N个时间周期内每个时间周期的时间抖动幅度中最大的目标时间抖动幅度可以反映软件运行环境质量的好坏,所以将目标时间抖动幅度作为衡量待评估设备的软件运行环境质量的评估参数。因此,本申请实施例可以获得衡量待评估设备的软件运行环境质量的评估参数,通过评估参数可以实现对设备的软件运行环境质量进行评估。
为了更好的说明图1所示方法的原理,下面通过具体实例来体现。
请参见图2所示,图2所示的为N个时间周期内每个时间周期的时间偏差值的示意图。 假设N为6,A时刻至B时刻构成第一时间周期,B时刻至C时刻构成第二时间周期,C时刻至D时刻构成第三时间周期,D时刻至E时刻构成第四时间周期,E时刻至F时刻构成第五时间周期,F时刻至G时刻构成第六时间周期。
第一步,确定出待评估设备在6个时间周期内每个时间周期的时间偏差值。
其中,6个时间周期内每个时间周期的时间偏差值分别为:第一时间周期的时间偏差值为90ms,第二时间周期的时间偏差值为70ms,第三时间周期的时间偏差值为110ms,第四时间周期的时间偏差值为70ms,第五时间周期的时间偏差值为140ms,第六时间周期的时间偏差值为60ms。
第二步,根据6个时间周期内每个时间周期的时间偏差值确定固有偏差值。
其中,固有偏差值=(90毫秒+70毫秒+110毫秒+70毫秒+140毫秒+60毫秒)/6=90毫秒。
第三步,根据6个时间周期内每个时间周期的时间偏差值与固有偏差值,确定6个时间周期内每个时间周期的时间抖动幅度。
其中,第一时间周期的时间抖动幅度=|第一时间周期的时间偏差值-固有偏差值|=|90毫秒-90毫秒|=0毫秒。
第二时间周期的时间抖动幅度=|第二时间周期的时间偏差值-固有偏差值|=|70毫秒-90毫秒|=20毫秒。
第三时间周期的时间抖动幅度=|第三时间周期的时间偏差值-固有偏差值|=|110毫秒-90毫秒|=20毫秒。
第四时间周期的时间抖动幅度=|第四时间周期的时间偏差值-固有偏差值|=|70毫秒-90毫秒|=20毫秒。
第五时间周期的时间抖动幅度=|第五时间周期的时间偏差值-固有偏差值|=|140毫秒-90毫秒|=50毫秒。
第六时间周期的时间抖动幅度=|第六五时间周期的时间偏差值-固有偏差值|=|60毫秒-90毫秒|=30毫秒。
第四步,在6个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度,目标时间抖动幅度50ms为衡量待评估设备的软件运行环境质量的评估参数。
其中,6个时间周期内每个时间周期的时间抖动幅度分别为0毫秒、20毫秒、20毫秒、20毫秒、50毫秒和30毫秒,在6个时间周期内的时间抖动幅度中最大的为50ms,所以目标时间抖动幅度为50ms。
在确定出目标时间抖动幅度以后,便可以得知6个时间周期内待评估设备的软件运行环境质量最差的状态,待评估设备或工作人员便能够以待评估设备的软件运行环境质量最差的状态作为临界点,并以此临界点来调整运行在待评估设备上的应用软件,以使该应用软件可以更好的适应待评估设备的软件运行环境。
请参见图3所示,图3所示的实施例为基于图1中步骤S11细化的实施例的流程图,所以与图1相同的内容可参见图1所示的实施例。图3所示的方法为图1的步骤S11中“确 定待评估设备在N个时间周期内每个时间周期的时间偏差值”的一种具体实现方式,其中,“确定待评估设备在N个时间周期内每个时间周期的时间偏差值”还可以包括以下步骤。
步骤S21、获取目标设备的第一运行时长。
其中,第一运行时长为目标设备在当前时间周期内的起始时刻的运行时长,当前时间周期为待评估设备和目标设备当前处于的时间周期,当前时间周期内的起始时刻指的是待评估设备和目标设备当前处于的时间周期开始的时刻。
目标设备会记录下第一运行时长,然后,目标设备会将该第一运行时长发送给待评估设备。在待评估设备接收到目标设备发送的第一运行时长时,待评估设备会将该目标设备的第一运行时长存储在存储器中。在待评估设备需要计算N个时间周期内当前时间周期的时间偏差值时,待评估设备会在存储器中获取目标设备的第一运行时长。
步骤S22、确定目标设备的第二运行时长。
其中,第二运行时长为目标设备在当前时间周期内的结束时刻的运行时长,当前时间周期为待评估设备和目标设备当前处于的时间周期,当前时间周期内的结束时刻指的是待评估设备和目标设备当前处于的时间周期结束的时刻。
待评估设备在获取目标设备的第一运行时长以后,还需要确定出目标设备的第二运行时长。
步骤S23、确定待评估设备在当前时间周期内的结束时刻的第一系统时间。
其中,第一系统时间为待评估设备在当前时间周期内的结束时刻的系统时间。
由于NTP服务器的系统时间被认为是准确和可信的,所以目标设备会定期的与NTP服务器进行时间同步,以使目标设备的系统时间与NTP服务器的系统时间保持一致。为了保证目标设备的系统时间与待评估设备的系统时间保持一致,目标设备会将自己的系统时间定期的同步给待评估设备。
步骤S24、根据第二运行时长与第一运行时长,确定从当前时间周期内的起始时刻至结束时刻目标设备的第三运行时长。
其中,由于第一运行时长为目标设备在当前时间周期内的起始时刻的运行时长,第二运行时长为目标设备在当前时间周期内的结束时刻的运行时长,所以计算第二运行时长与第一运行时长之差可以得到从当前时间周期内的起始时刻至结束时刻目标设备的第三运行时长。
步骤S25、根据第一系统时间和第三运行时长,确定当前时间周期内的起始时刻目标设备的系统预测时间。
其中,由于第三运行时长为目标设备从当前时间周期内的起始时刻至结束时刻的运行时长,第一系统时间为待评估设备在当前时间周期内的结束时刻的系统时间,所以计算第一系统时间与第三运行时长之差可以得到当前时间周期内的起始时刻目标设备的系统预测时间。
当前时间周期内的起始时刻目标设备的系统预测时间为待评估设备根据第一运行时长、第二运行时长和第一系统时间计算出来的,所以系统预测时间并不一定是正确的时间。
步骤S26、根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值。
其中,系统真实时间为目标设备在当前时间周期内的起始时刻的系统时间,系统真实时间是正确的,计算系统预测时间与系统真实时间之间的差值,该差值即为待评估设备在当前时间周期内的时间偏差值。
如果待评估设备在当前时间周期内的时间偏差值越大,说明待评估设备的软件运行环境质量就越差;如果待评估设备在当前时间周期内的时间偏差值越小,说明待评估设备的软件运行环境质量就越好。
步骤S27、获取待评估设备在当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值。
其中,由于N个时间周期内每个时间周期的时间偏差值包括当前时间周期的时间偏差值和当前时间周期之前的N-1个时间周期的时间偏差值,所以在当前时间周期的时间偏差值已经确定出来以后,还需要获取待评估设备在当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值,以完整的获取到N个时间周期内每个时间周期的时间偏差值。
在图3所示的实施例中,系统预测时间为待评估设备根据第一运行时长、第二运行时长和第一系统时间计算出来的,计算出系统预测时间不准确的原因在于待评估设备的软件运行环境影响导致的,系统预测时间与系统真实时间的时间偏差值越大,说明待评估设备的软件运行环境质量越差,系统预测时间与系统真实时间的时间偏差值越小,说明待评估设备的软件运行环境质量越好,所以可以计算出N个时间周期内当前时间周期的时间偏差值,而且,由于当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值已经被预先计算出来,所以通过本申请实施例提供的方法可以确定待评估设备在N个时间周期内每个时间周期的时间偏差值。
另外,由于步骤S26“根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值”的实现方式有很多种,下面简要介绍几种方式。
第一种方式,“根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值”可以包括以下步骤:
第一步,将系统预测时间发送给目标设备。
第二步,接收目标设备发送的待评估设备在当前时间周期内的时间偏差值,待评估设备在当前时间周期内的时间偏差值为目标设备根据系统预测时间与系统真实时间计算的时间偏差值。
在第一种方式中,由于目标设备可能会经常性的调整系统时间,从而导致系统真实时间发生变化,所以待评估设备可以将系统预测时间发送给目标设备,以使目标设备根据系统预测时间与系统真实时间计算出时间偏差值,这样可以保证系统真实时间是正确的。然后,待评估设备再接收目标设备发送的待评估设备在当前时间周期内的时间偏差值,这样可以保证计算出来的时间偏差值更加准确。
第二种方式,“根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值”可以包括以下步骤:
第一步,向目标设备发送获取系统真实时间的请求。
第二步,接收目标设备发送的系统真实时间。
第三步,根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时 间偏差值。
在第二种方式中,由于目标设备可能会经常性的调整系统时间,从而导致系统真实时间发生变化,所以待评估设备可以向目标设备发送获取系统真实时间的请求,以使目标设备将调整后的系统真实时间发送给待评估设备。此时,待评估设备利用目标设备调整后的系统真实时间与系统预测时间计算时间偏差值,这样可以保证计算出来的时间偏差值更加准确。
第三种方式,“根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值”可以包括以下步骤:
第一步,获取预先存储的系统真实时间。
第二步,根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时间偏差值。
在第三种方式中,在某些场景下,目标设备可能不会调整系统时间,所以系统真实时间也就不会发生变化,那么待评估设备可以利用预先存储的系统真实时间和计算出来的系统预测时间,计算出待评估设备在当前时间周期内的时间偏差值,这种方式不需要与目标设备进行交互,从而节省了待评估设备的系统资源。
为了更好的说明图3所示方法的原理,下面通过具体实例来体现。
请参见图4所示,图4所示的为N个时间周期内当前时间周期的示意图。假设H时刻为目标设备启动的时间点,I时刻为待评估设备启动的时间点,J时刻为当前时间周期内的起始时刻,K时刻为当前时间周期内的结束时刻。
第一步,获取目标设备从H时刻至J时刻的H至J运行时长。
第二步,确定目标设备从H时刻至K时刻的H至K运行时长。
第三步,确定待评估设备在K时刻的系统时间。
第四步,根据H至K运行时长与H至J运行时长,确定从J时刻至K时刻目标设备的J至K运行时长。
第五步,根据K时刻的系统时间和J至K运行时长,确定J时刻目标设备的系统预测时间。
第六步,根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值。
第七步,获取待评估设备在当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值。
可选的,在步骤S22中的“确定目标设备的第二运行时长”的步骤还可以包括以下步骤:
第一步,获取当前时间周期的上一个时间周期的时间偏差值。
第二步,获取待评估设备的第四运行时长,第四运行时长为待评估设备在当前时间周期内的结束时刻的运行时长。
第三步,确定待评估设备与目标设备的启动时间差。
第四步,根据第四运行时长、启动时间差和上一个时间周期的时间偏差值,确定目标 设备的第二运行时长。
其中,待评估设备会预先存储当前时间周期的上一个时间周期的时间偏差值,待评估设备会记录第四运行时长,而且待评估设备与目标设备的启动时间差是可以确定出来的,所以计算第四运行时长、启动时间差和上一个时间周期的时间偏差值之和,即可得到目标设备的第二运行时长。
为了更好的说明步骤S22中的“确定目标设备的第二运行时长”的步骤是如何实现的,下面通过具体实例来说明。
请参见图5所示,图5所示的为N个时间周期内当前时间周期的示意图。假设L时刻为目标设备启动的时间点,M时刻为待评估设备启动的时间点,N时刻为当前时间周期内的起始时刻,O时刻为当前时间周期内的结束时刻。
第一步,获取当前时间周期的上一个时间周期的时间偏差值。
第二步,获取待评估设备从M时刻至O时刻的M至O运行时长。
第三步,确定待评估设备与目标设备的启动时间差,启动时间差为L时刻至M时刻的时间长度。
第四步,根据M至O运行时长、启动时间差和上一个时间周期的时间偏差值,确定目标设备的从L时刻至O时刻的L至O运行时长。
可选的,上述“确定待评估设备与目标设备的启动时间差”的步骤还可以包括以下步骤:
第一步,获取目标设备的第二系统时间和第五运行时长,第二系统时间为目标设备在第一目标时刻的系统时间,第五运行时长为目标设备在第一目标时刻的运行时长。
第二步,获取待评估设备的第三系统时间和第六运行时长,第三系统时间为待评估设备在第二目标时刻的系统时间,第六运行时长为待评估设备在第二目标时刻的运行时长,第一目标时刻早于第二目标时刻。
第三步,根据第二系统时间和第三系统时间,确定第一目标时刻与第二目标时刻之间的时间长度。
第四步,根据时间长度和第五运行时长,确定目标设备在第二目标时刻的第七运行时长。
第五步,根据第七运行时长和第六运行时长,确定待评估设备与目标设备的启动时间差。
其中,第一目标时刻和第二目标时刻均为当前时间周期的起始时刻之前的时刻,而且第一目标时刻早于第二目标时刻,计算第二系统时间与第三系统时间之差,可以确定第一目标时刻与第二目标时刻之间的时间长度。计算该时间长度和第五运行时长之和可以确定出目标设备在第二目标时刻的第七运行时长。由于第七运行时长为目标设备在第二目标时刻的运行时长,而且第六运行时长为待评估设备在第二目标时刻的运行时长,所以计算第七运行时长与第六运行时长之差,即可确定出待评估设备与目标设备的启动时间差。
为了更好的说明上述“确定待评估设备与目标设备的启动时间差”的步骤是如何实现的,下面通过具体实例来说明。
请参见图6所示,图6所示的为目标设备的生命周期和待评估设备的生命周期的示意图。假设P时刻为目标设备启动的时间点,Q时刻为待评估设备启动的时间点,R时刻为第一目标时刻,S时刻为第二目标时刻。
第一步,获取目标设备在R时刻的系统时间,获取目标设备从P时刻至R时刻的P至R运行时长。
第二步,获取待评估设备在S时刻的系统时间,获取待评估设备从Q时刻至S时刻的Q至S运行时长。
第三步,计算R时刻的系统时间与S时刻的系统时间之间的差值,得到从R时刻至S时刻之间的R至S时间长度。
第四步,计算R至S时间长度与P至R运行时长之和,得到目标设备从P时刻至S时刻的P至S运行时长。
第五步,计算P至S运行时长与Q至S运行时长之间的差值,得到待评估设备与目标设备的启动时间差,启动时间差为从P时刻至Q时刻之间的时间长度。
请参见图7所示,图7所示的实施例为基于图1中步骤S11细化的实施例的流程图,所以与图1相同的内容可参见图1所示的实施例。图7所示的方法为图1的步骤S11中“确定待评估设备在N个时间周期内每个时间周期的时间偏差值”的一种具体实现方式,其中,“确定待评估设备在N个时间周期内每个时间周期的时间偏差值”还可以包括以下步骤。
步骤S31、获取待评估设备的第八运行时长和第四系统时间。
其中,第八运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,第四系统时间为待评估设备在当前时间周期内的结束时刻的系统时间。
步骤S32、获取待评估设备的第九运行时长和第五系统时间。
其中,第九运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,第五系统时间为待评估设备在当前时间周期内的起始时刻的系统时间。
步骤S33、根据第八运行时长与第九运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十运行时长。
步骤S34、根据第四系统时间与第五系统时间,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十一运行时长。
步骤S35、根据第十运行时长和第十一运行时长,确定待评估设备在当前时间周期内的时间偏差值。
步骤S36、获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
在图7所示的实施例中,由于待评估设备的第四系统时间和第五系统时间均是通过网络获取到的,所以待评估设备的第四系统时间和第五系统时间可能是不准确的。由于待评估设备的第八运行时长和第九运行时长均是待评估设备内部统计的结果,所以待评估设备的第八运行时长和第九运行时长是相对准确的。因此,如果根据第十运行时长和第十一运行时长确定出待评估设备在当前时间周期内存在时间偏差值,那么就是因为第四系统时间和第五系统时间不准确导致的,所以本申请实施例可以评估出待评估设备所处的网络环境 质量的好坏,而且时间偏差值越大,说明待评估设备所处的网络环境质量越差,时间偏差值越小,说明待评估设备所处的网络环境质量越好。
为了更好的说明图7所示方法的原理,下面通过具体实例来体现。
请参见图8所示,图8所示的为N个时间周期内当前时间周期的示意图。假设T时刻为待评估设备启动的时间点,U时刻为当前时间周期内的起始时刻,V时刻为当前时间周期内的结束时刻。
第一步,获取待评估设备的从T时刻至V时刻的T至V运行时长和待评估设备在V时刻的系统时间。
第二步,获取待评估设备的从T时刻至U时刻的T至U运行时长和在U时刻的系统时间。
第三步,计算T至V运行时长与T至U运行时长之间的差值,得到从U时刻至V时刻待评估设备的第一U至V运行时长。
第四步,计算待评估设备在V时刻的系统时间与在U时刻的系统时间之间的差值,得到从U时刻至V时刻待评估设备的第二U至V运行时长。
第五步,计算第一U至V运行时长与第二U至V运行时长之间的差值,得到待评估设备从U时刻至V时刻的时间偏差值。
第六步,获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
请参见图9所示,图9所示的实施例为基于图1中步骤S11细化的实施例的流程图,所以与图1相同的内容可参见图1所示的实施例。图9所示的方法为图1的步骤S11中“确定待评估设备在N个时间周期内每个时间周期的时间偏差值”的一种具体实现方式,其中,“确定待评估设备在N个时间周期内每个时间周期的时间偏差值”还可以包括以下步骤。
步骤S41、获取待评估设备的第十二运行时长,第十二运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,当前时间周期内的结束时刻是由周期定时器确定的。
其中,周期定时器运行在待评估设备上,待评估设备的软件运行环境质量的好坏直接影响周期定时器的精准度。如果待评估设备的软件运行环境质量的越好,那么周期定时器的精准度会越高;如果待评估设备的软件运行环境质量的越差,那么周期定时器的精准度会越低。
步骤S42、获取待评估设备的第十三运行时长,第十三运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,当前时间周期内的起始时刻是由周期定时器确定的。
步骤S43、根据第十二运行时长与第十三运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十四运行时长。
步骤S44、根据第十四运行时长与当前时间周期,确定待评估设备在当前时间周期内的时间偏差值。
其中,如果待评估设备在当前时间周期内的时间偏差值大于0,说明周期定时器受到待评估设备的软件运行环境的影响而导致精准度存在一定的偏差。
步骤S45、获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期 的时间偏差值。
在图9所示的实施例中,周期定时器会受到待评估设备的软件运行环境的影响而导致精准度存在一定的偏差,从而使得待评估设备在当前时间周期内的时间偏差值可以反映待评估设备的软件运行环境质量的好坏。如果时间偏差值越大,说明待评估设备所处的网络环境质量越差;如果时间偏差值越小,说明待评估设备所处的网络环境质量越好。
为了更好的说明图9所示方法的原理,下面通过具体实例来体现。
请参见图10所示,图10所示的为N个时间周期内当前时间周期的示意图。假设W时刻为待评估设备启动的时间点,X时刻为当前时间周期内的起始时刻,Y时刻为当前时间周期内的结束时刻。
第一步,获取待评估设备在当前时间周期内的Y时刻的W至Y运行时长,当前时间周期内的Y时刻是由周期定时器确定的。
第二步,获取待评估设备在当前时间周期内的X时刻的W至X运行时长,当前时间周期内的X时刻是由周期定时器确定的。
第三步,计算W至Y运行时长与W至X运行时长之间的差值,以得到从当前时间周期内的X时刻至Y时刻待评估设备的X至Y运行时长。
第四步,计算X至Y运行时长与当前时间周期之间的差值,以得到待评估设备在当前时间周期内的时间偏差值。
第五步,获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
当然,本申请实施例还可以结合图7所示的实施例和图9所示的实施例以产生新的实施例。例如,将图7所示的实施例的方式计算出目标时间抖动幅度确定为第一目标时间抖动幅度,将图9所示的实施例的方式计算出目标时间抖动幅度确定为第二目标时间抖动幅度,将第一目标时间抖动幅度和第二目标时间抖动幅度的平均值确定为指定时间抖动幅度,最后确定指定时间抖动幅度为衡量待评估设备的软件运行环境质量的评估参数。本申请实施例的保护范围并不局限于此,根据本申请实施例衍生出的新实施例均属于本申请的保护范围。
图11所示的为本申请实施例提供的一种设备的软件运行环境质量的评估装置的示意图。图11为图1至图10对应的装置实施例,图11中与图1至图10相同的内容请参见图1至图10对应的实施例即可。参照图11,该装置包括以下模块:
第一确定模块11,用于确定待评估设备在N个时间周期内每个时间周期的时间偏差值,N个时间周期内每个时间周期的时间偏差值包括当前时间周期的时间偏差值和当前时间周期之前的N-1个时间周期的时间偏差值,N为大于或等于2的正整数;
第二确定模块12,用于根据N个时间周期内每个时间周期的时间偏差值确定固有偏差值,固有偏差值为N个时间周期内每个时间周期的时间偏差值的平均值;
第三确定模块13,用于根据N个时间周期内每个时间周期的时间偏差值与固有偏差值,确定N个时间周期内每个时间周期的时间抖动幅度;
选择模块14,用于在N个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度,目标时间抖动幅度为衡量待评估设备的软件运行环境质量的评估参数。
可选的,第一确定模块11,具体用于获取目标设备的第一运行时长,第一运行时长为目标设备在当前时间周期内的起始时刻的运行时长;确定目标设备的第二运行时长,第二运行时长为目标设备在当前时间周期内的结束时刻的运行时长;确定待评估设备在当前时间周期内的结束时刻的第一系统时间;根据第二运行时长与第一运行时长,确定从当前时间周期内的起始时刻至结束时刻目标设备的第三运行时长;根据第一系统时间和第三运行时长,确定当前时间周期内的起始时刻目标设备的系统预测时间;根据系统预测时间和系统真实时间,确定待评估设备在当前时间周期内的时间偏差值,系统真实时间为目标设备在当前时间周期内的起始时刻的系统时间;获取待评估设备在当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值。
可选的,第一确定模块11,具体用于获取当前时间周期的上一个时间周期的时间偏差值;获取待评估设备的第四运行时长,第四运行时长为待评估设备在当前时间周期内的结束时刻的运行时长;确定待评估设备与目标设备的启动时间差;根据第四运行时长、启动时间差和上一个时间周期的时间偏差值,确定目标设备的第二运行时长。
可选的,第一确定模块11,具体用于获取目标设备的第二系统时间和第五运行时长,第二系统时间为目标设备在第一目标时刻的系统时间,第五运行时长为目标设备在第一目标时刻的运行时长;获取待评估设备的第三系统时间和第六运行时长,第三系统时间为待评估设备在第二目标时刻的系统时间,第六运行时长为待评估设备在第二目标时刻的运行时长,第一目标时刻早于第二目标时刻;根据第二系统时间和第三系统时间,确定第一目标时刻与第二目标时刻之间的时间长度;根据时间长度和第五运行时长,确定目标设备在第二目标时刻的第七运行时长;根据第七运行时长和第六运行时长,确定待评估设备与目标设备的启动时间差。
可选的,第一确定模块11,具体用于将系统预测时间发送给目标设备;接收目标设备发送的待评估设备在当前时间周期内的时间偏差值,待评估设备在当前时间周期内的时间偏差值为目标设备根据系统预测时间与系统真实时间计算的时间偏差值。
可选的,第一确定模块11,具体用于向目标设备发送获取系统真实时间的请求;接收目标设备发送的系统真实时间;根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时间偏差值。
可选的,第一确定模块11,具体用于获取预先存储的系统真实时间;根据系统预测时间与系统真实时间,计算待评估设备在当前时间周期内的时间偏差值。
可选的,第一确定模块11,具体用于获取待评估设备的第八运行时长和第四系统时间,第八运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,第四系统时间为待评估设备在当前时间周期内的结束时刻的系统时间;获取待评估设备的第九运行时长和第五系统时间,第九运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,第五系统时间为待评估设备在当前时间周期内的起始时刻的系统时间;根据第八运行时长与第九运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十运行时 长;根据第四系统时间与第五系统时间,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十一运行时长;根据第十运行时长和第十一运行时长,确定待评估设备在当前时间周期内的时间偏差值;获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
可选的,第一确定模块11,具体用于获取待评估设备的第十二运行时长,第十二运行时长为待评估设备在当前时间周期内的结束时刻的运行时长,当前时间周期内的结束时刻是由周期定时器确定的;获取待评估设备的第十三运行时长,第十三运行时长为待评估设备在当前时间周期内的起始时刻的运行时长,当前时间周期内的起始时刻是由周期定时器确定的;根据第十二运行时长与第十三运行时长,确定从当前时间周期内的起始时刻至结束时刻待评估设备的第十四运行时长;根据第十四运行时长与当前时间周期,确定待评估设备在当前时间周期内的时间偏差值;获取待评估设备在当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
图12所示的为本申请实施例提供的另一种设备的软件运行环境质量的评估装置的示意图。图12为图1至图10对应的装置实施例,图12中与图1至图10相同的内容请参见图1至图10对应的实施例即可。参照图12,该装置包括:处理器21和存储器22,其中,存储器22内存储有处理器21能够执行的操作指令,处理器21读取存储器22内的操作指令用于实现图1至图10的方法。
需要说明的是,本申请提供实施例只是本申请所介绍的可选实施例,本领域技术人员在此基础上,完全可以设计出更多的实施例,因此不在此处赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各 个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (19)

  1. 一种设备的软件运行环境质量的评估方法,其特征在于,所述方法包括:
    确定待评估设备在N个时间周期内每个时间周期的时间偏差值,所述N个时间周期内每个时间周期的时间偏差值包括当前时间周期的时间偏差值和所述当前时间周期之前的N-1个时间周期的时间偏差值,N为大于或等于2的正整数;
    根据所述N个时间周期内每个时间周期的时间偏差值确定固有偏差值,所述固有偏差值为所述N个时间周期内每个时间周期的时间偏差值的平均值;
    根据所述N个时间周期内每个时间周期的时间偏差值与所述固有偏差值,确定所述N个时间周期内每个时间周期的时间抖动幅度;
    在所述N个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度,所述目标时间抖动幅度为衡量所述待评估设备的软件运行环境质量的评估参数。
  2. 根据权利要求1所述的设备的软件运行环境质量的评估方法,其特征在于,确定待评估设备在N个时间周期内每个时间周期的时间偏差值包括:
    获取目标设备的第一运行时长,所述第一运行时长为所述目标设备在当前时间周期内的起始时刻的运行时长;
    确定所述目标设备的第二运行时长,所述第二运行时长为所述目标设备在所述当前时间周期内的结束时刻的运行时长;
    确定待评估设备在所述当前时间周期内的结束时刻的第一系统时间;
    根据所述第二运行时长与所述第一运行时长,确定从当前时间周期内的起始时刻至结束时刻所述目标设备的第三运行时长;
    根据第一系统时间和第三运行时长,确定所述当前时间周期内的起始时刻所述目标设备的系统预测时间;
    根据所述系统预测时间和系统真实时间,确定所述待评估设备在所述当前时间周期内的时间偏差值,所述系统真实时间为所述目标设备在所述当前时间周期内的起始时刻的系统时间;
    获取所述待评估设备在所述当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值。
  3. 根据权利要求2所述的设备的软件运行环境质量的评估方法,其特征在于,确定所述目标设备的第二运行时长包括:
    获取所述当前时间周期的上一个时间周期的时间偏差值;
    获取待评估设备的第四运行时长,所述第四运行时长为所述待评估设备在所述当前时间周期内的结束时刻的运行时长;
    确定所述待评估设备与所述目标设备的启动时间差;
    根据所述第四运行时长、所述启动时间差和所述上一个时间周期的时间偏差值,确定所述目标设备的第二运行时长。
  4. 根据权利要求3所述的设备的软件运行环境质量的评估方法,其特征在于,确定所述待评估设备与所述目标设备的启动时间差包括:
    获取所述目标设备的第二系统时间和第五运行时长,所述第二系统时间为所述目标设备在第一目标时刻的系统时间,所述第五运行时长为所述目标设备在第一目标时刻的运行时长;
    获取所述待评估设备的第三系统时间和第六运行时长,所述第三系统时间为所述待评估设备在第二目标时刻的系统时间,所述第六运行时长为所述待评估设备在第二目标时刻的运行时长,所述第一目标时刻早于所述第二目标时刻;
    根据所述第二系统时间和所述第三系统时间,确定所述第一目标时刻与所述第二目标时刻之间的时间长度;
    根据所述时间长度和所述第五运行时长,确定所述目标设备在所述第二目标时刻的第七运行时长;
    根据所述第七运行时长和所述第六运行时长,确定所述待评估设备与所述目标设备的启动时间差。
  5. 根据权利要求2所述的设备的软件运行环境质量的评估方法,其特征在于,根据所述系统预测时间和系统真实时间,确定所述待评估设备在所述当前时间周期内的时间偏差值包括:
    将所述系统预测时间发送给所述目标设备;
    接收所述目标设备发送的所述待评估设备在所述当前时间周期内的时间偏差值,所述待评估设备在所述当前时间周期内的时间偏差值为所述目标设备根据所述系统预测时间与系统真实时间计算的时间偏差值。
  6. 根据权利要求2所述的设备的软件运行环境质量的评估方法,其特征在于,根据所述系统预测时间和系统真实时间,确定所述待评估设备在所述当前时间周期内的时间偏差值包括:
    向所述目标设备发送获取系统真实时间的请求;
    接收所述目标设备发送的所述系统真实时间;
    根据所述系统预测时间与所述系统真实时间,计算所述待评估设备在所述当前时间周期内的时间偏差值。
  7. 根据权利要求2所述的设备的软件运行环境质量的评估方法,其特征在于,根据所述系统预测时间和系统真实时间,确定所述待评估设备在所述当前时间周期内的时间偏差值包括:
    获取预先存储的系统真实时间;
    根据所述系统预测时间与所述系统真实时间,计算所述待评估设备在所述当前时间周期内的时间偏差值。
  8. 根据权利要求1所述的设备的软件运行环境质量的评估方法,其特征在于,确定待评估设备在N个时间周期内每个时间周期的时间偏差值包括:
    获取待评估设备的第八运行时长和第四系统时间,所述第八运行时长为所述待评估设备在当前时间周期内的结束时刻的运行时长,所述第四系统时间为所述待评估设备在所述当前时间周期内的结束时刻的系统时间;
    获取所述待评估设备的第九运行时长和第五系统时间,所述第九运行时长为所述待评估设备在所述当前时间周期内的起始时刻的运行时长,所述第五系统时间为所述待评估设 备在所述当前时间周期内的起始时刻的系统时间;
    根据第八运行时长与第九运行时长,确定从所述当前时间周期内的起始时刻至结束时刻所述待评估设备的第十运行时长;
    根据第四系统时间与第五系统时间,确定从所述当前时间周期内的起始时刻至结束时刻所述待评估设备的第十一运行时长;
    根据所述第十运行时长和所述第十一运行时长,确定所述待评估设备在所述当前时间周期内的时间偏差值;
    获取所述待评估设备在所述当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
  9. 根据权利要求1所述的设备的软件运行环境质量的评估方法,其特征在于,确定待评估设备在N个时间周期的时间偏差值包括:
    获取待评估设备的第十二运行时长,所述第十二运行时长为所述待评估设备在当前时间周期内的结束时刻的运行时长,所述当前时间周期内的结束时刻是由周期定时器确定的;
    获取所述待评估设备的第十三运行时长,所述第十三运行时长为所述待评估设备在当前时间周期内的起始时刻的运行时长,所述当前时间周期内的起始时刻是由所述周期定时器确定的;
    根据所述第十二运行时长与所述第十三运行时长,确定从所述当前时间周期内的起始时刻至结束时刻所述待评估设备的第十四运行时长;
    根据所述第十四运行时长与所述当前时间周期,确定所述待评估设备在所述当前时间周期内的时间偏差值;
    获取所述待评估设备在所述当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
  10. 一种设备的软件运行环境质量的评估装置,其特征在于,所述装置包括:
    第一确定模块,用于确定待评估设备在N个时间周期内每个时间周期的时间偏差值,所述N个时间周期内每个时间周期的时间偏差值包括当前时间周期的时间偏差值和所述当前时间周期之前的N-1个时间周期的时间偏差值,N为大于或等于2的正整数;
    第二确定模块,用于根据所述N个时间周期内每个时间周期的时间偏差值确定固有偏差值,所述固有偏差值为所述N个时间周期内每个时间周期的时间偏差值的平均值;
    第三确定模块,用于根据所述N个时间周期内每个时间周期的时间偏差值与所述固有偏差值,确定所述N个时间周期内每个时间周期的时间抖动幅度;
    选择模块,用于在所述N个时间周期内每个时间周期的时间抖动幅度中选择时间抖动幅度最大的目标时间抖动幅度,所述目标时间抖动幅度为衡量所述待评估设备的软件运行环境质量的评估参数。
  11. 根据权利要求10所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于获取目标设备的第一运行时长,所述第一运行时长为所述目标设备在当前时间周期内的起始时刻的运行时长;确定所述目标设备的第二运行时长,所述第二运行时长为所述目标设备在所述当前时间周期内的结束时刻的运行时长;确定待评估设备在所述当前时间周期内的结束时刻的第一系统时间;根据所述第二运行时长与所述第一运行时长,确定从当前时间周期内的起始时刻至结束时刻所述目标设备的第三运行 时长;根据第一系统时间和第三运行时长,确定所述当前时间周期内的起始时刻所述目标设备的系统预测时间;根据所述系统预测时间和系统真实时间,确定所述待评估设备在所述当前时间周期内的时间偏差值,所述系统真实时间为所述目标设备在所述当前时间周期内的起始时刻的系统时间;获取所述待评估设备在所述当前时间周期之前的N-1个时间周期内每个时间周期的时间偏差值。
  12. 根据权利要求11所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于获取所述当前时间周期的上一个时间周期的时间偏差值;获取待评估设备的第四运行时长,所述第四运行时长为所述待评估设备在所述当前时间周期内的结束时刻的运行时长;确定所述待评估设备与所述目标设备的启动时间差;根据所述第四运行时长、所述启动时间差和所述上一个时间周期的时间偏差值,确定所述目标设备的第二运行时长。
  13. 根据权利要求12所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于获取所述目标设备的第二系统时间和第五运行时长,所述第二系统时间为所述目标设备在第一目标时刻的系统时间,所述第五运行时长为所述目标设备在第一目标时刻的运行时长;获取所述待评估设备的第三系统时间和第六运行时长,所述第三系统时间为所述待评估设备在第二目标时刻的系统时间,所述第六运行时长为所述待评估设备在第二目标时刻的运行时长,所述第一目标时刻早于所述第二目标时刻;根据所述第二系统时间和所述第三系统时间,确定所述第一目标时刻与所述第二目标时刻之间的时间长度;根据所述时间长度和所述第五运行时长,确定所述目标设备在所述第二目标时刻的第七运行时长;根据所述第七运行时长和所述第六运行时长,确定所述待评估设备与所述目标设备的启动时间差。
  14. 根据权利要求11所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于将所述系统预测时间发送给所述目标设备;接收所述目标设备发送的所述待评估设备在所述当前时间周期内的时间偏差值,所述待评估设备在所述当前时间周期内的时间偏差值为所述目标设备根据所述系统预测时间与系统真实时间计算的时间偏差值。
  15. 根据权利要求11所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于向所述目标设备发送获取系统真实时间的请求;接收所述目标设备发送的所述系统真实时间;根据所述系统预测时间与所述系统真实时间,计算所述待评估设备在所述当前时间周期内的时间偏差值。
  16. 根据权利要求11所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于获取预先存储的系统真实时间;根据所述系统预测时间与所述系统真实时间,计算所述待评估设备在所述当前时间周期内的时间偏差值。
  17. 根据权利要求10所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于获取待评估设备的第八运行时长和第四系统时间,所述第八运行时长为所述待评估设备在当前时间周期内的结束时刻的运行时长,所述第四系统时间为所述待评估设备在所述当前时间周期内的结束时刻的系统时间;获取所述待评估设备的第九运行时长和第五系统时间,所述第九运行时长为所述待评估设备在所述当前时间周期内的起始时刻的运行时长,所述第五系统时间为所述待评估设备在所述当前时间周期 内的起始时刻的系统时间;根据第八运行时长与第九运行时长,确定从所述当前时间周期内的起始时刻至结束时刻所述待评估设备的第十运行时长;根据第四系统时间与第五系统时间,确定从所述当前时间周期内的起始时刻至结束时刻所述待评估设备的第十一运行时长;根据所述第十运行时长和所述第十一运行时长,确定所述待评估设备在所述当前时间周期内的时间偏差值;获取所述待评估设备在所述当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
  18. 根据权利要求10所述的设备的软件运行环境质量的评估装置,其特征在于:
    所述第一确定模块,具体用于获取待评估设备的第十二运行时长,所述第十二运行时长为所述待评估设备在当前时间周期内的结束时刻的运行时长,所述当前时间周期内的结束时刻是由周期定时器确定的;获取所述待评估设备的第十三运行时长,所述第十三运行时长为所述待评估设备在当前时间周期内的起始时刻的运行时长,所述当前时间周期内的起始时刻是由所述周期定时器确定的;根据所述第十二运行时长与所述第十三运行时长,确定从所述当前时间周期内的起始时刻至结束时刻所述待评估设备的第十四运行时长;根据所述第十四运行时长与所述当前时间周期,确定所述待评估设备在所述当前时间周期内的时间偏差值;获取所述待评估设备在所述当前时间周期之前的N-1个时间周期内的每个时间周期的时间偏差值。
  19. 一种设备的软件运行环境质量的评估装置,其特征在于,包括:处理器和存储器,其中,存储器内存储有处理器能够执行的操作指令,处理器读取存储器内的操作指令用于实现权利要求1至9任意一项所述的方法。
PCT/CN2018/099354 2017-08-31 2018-08-08 一种设备的软件运行环境质量的评估方法及装置 WO2019042102A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18849871.1A EP3672119B1 (en) 2017-08-31 2018-08-08 Method and apparatus for evaluating software running environment quality of device
US16/802,957 US11263112B2 (en) 2017-08-31 2020-02-27 Method and apparatus for evaluating quality of software running environment of device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710767473.8 2017-08-31
CN201710767473.8A CN109426911B (zh) 2017-08-31 2017-08-31 一种设备的软件运行环境质量的评估方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/802,957 Continuation US11263112B2 (en) 2017-08-31 2020-02-27 Method and apparatus for evaluating quality of software running environment of device

Publications (1)

Publication Number Publication Date
WO2019042102A1 true WO2019042102A1 (zh) 2019-03-07

Family

ID=65505174

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/099354 WO2019042102A1 (zh) 2017-08-31 2018-08-08 一种设备的软件运行环境质量的评估方法及装置

Country Status (4)

Country Link
US (1) US11263112B2 (zh)
EP (1) EP3672119B1 (zh)
CN (1) CN109426911B (zh)
WO (1) WO2019042102A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11708049B2 (en) 2020-10-27 2023-07-25 Toyota Motor Engineering & Manufacturing North America, Inc. Systems and methods for preventing an operation of a car application that reduces a quality of service of a computer system of a vehicle
CN113836130B (zh) * 2021-09-28 2024-05-10 深圳创维智慧科技有限公司 数据质量评估方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299631A (zh) * 2008-06-24 2008-11-05 芯通科技(成都)有限公司 一种实现td-scdma直放站稳定同步的方法及系统
CN103138863A (zh) * 2011-12-01 2013-06-05 中兴通讯股份有限公司 时间同步方法及装置
CN105450454A (zh) * 2015-12-03 2016-03-30 广州华多网络科技有限公司 一种服务监控告警方法以及装置
CN106375055A (zh) * 2016-08-30 2017-02-01 成都源知信息技术有限公司 一种网络设备时钟偏差测量方法及测量设备

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7158899B2 (en) * 2003-09-25 2007-01-02 Logicvision, Inc. Circuit and method for measuring jitter of high speed signals
US7295604B2 (en) * 2003-11-24 2007-11-13 International Business Machines Corporation Method for determining jitter of a signal in a serial link and high speed serial link
US7929929B2 (en) * 2007-09-25 2011-04-19 Motorola Solutions, Inc. Method and apparatus for spur reduction in a frequency synthesizer
CN101741853B (zh) * 2009-12-11 2013-01-16 中兴通讯股份有限公司 时钟时间同步的方法、线卡单板和网络设备
WO2011096859A1 (en) * 2010-02-04 2011-08-11 Telefonaktiebolaget L M Ericsson (Publ) Network performance monitor for virtual machines
CN103516454B (zh) * 2012-06-20 2017-11-03 中兴通讯股份有限公司 时钟同步方法、装置及通信设备
CN102799822B (zh) * 2012-07-11 2015-06-17 中国信息安全测评中心 基于网络环境软件运行安全性度量与评估方法
CN106899370A (zh) * 2015-12-18 2017-06-27 中兴通讯股份有限公司 一种时钟链路切换方法、装置及基站
US10845404B2 (en) * 2017-06-27 2020-11-24 Taiwan Semiconductor Manufacturing Co., Ltd. Jitter noise detector
US10684325B2 (en) * 2017-11-29 2020-06-16 Taiwan Semiconductor Manufacturing Co., Ltd. Jitter monitoring circuit
US10498469B2 (en) * 2018-05-21 2019-12-03 Intel Corporation On-chip jitter tolerance testing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101299631A (zh) * 2008-06-24 2008-11-05 芯通科技(成都)有限公司 一种实现td-scdma直放站稳定同步的方法及系统
CN103138863A (zh) * 2011-12-01 2013-06-05 中兴通讯股份有限公司 时间同步方法及装置
CN105450454A (zh) * 2015-12-03 2016-03-30 广州华多网络科技有限公司 一种服务监控告警方法以及装置
CN106375055A (zh) * 2016-08-30 2017-02-01 成都源知信息技术有限公司 一种网络设备时钟偏差测量方法及测量设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3672119A4

Also Published As

Publication number Publication date
US20200192782A1 (en) 2020-06-18
CN109426911B (zh) 2022-04-05
EP3672119A1 (en) 2020-06-24
EP3672119B1 (en) 2024-05-15
US11263112B2 (en) 2022-03-01
CN109426911A (zh) 2019-03-05
EP3672119A4 (en) 2020-08-26

Similar Documents

Publication Publication Date Title
EP3526985B1 (en) Relocation of mobile edge applications
US9519306B2 (en) Distribution device, distribution system, and distribution method
US20140089493A1 (en) Minimally intrusive cloud platform performance monitoring
CN110492967A (zh) 一种时间同步方法、中继设备及装置
WO2019042102A1 (zh) 一种设备的软件运行环境质量的评估方法及装置
US8578201B2 (en) Conversion of timestamps between multiple entities within a computing system
US9331803B2 (en) System and method of synchronization among a control apparatus and a plurality of terminals
US11088960B2 (en) Information processing apparatus and verification system
US20150172154A1 (en) Minimizing symmetrical latency impact by jitter buffer for tdm ces
CN107003691B (zh) 用于基于全局时钟对计数器进行同步采样的技术
JPWO2009069763A1 (ja) 呼処理時間測定装置、呼処理時間測定方法および呼処理時間測定用プログラム
US10334539B2 (en) Metered interface
KR101498561B1 (ko) 글로벌 동기화를 위한 tdma 기반의 can 통신시스템 및 방법
US11362890B2 (en) System management device, system management method, program, and information processing system
CN113259039A (zh) 时间同步方法、装置、计算机设备和存储介质
CN107995022B (zh) 会话同步方法及装置、存储介质、电子设备
CN110750424A (zh) 资源巡检方法和装置
KR101262846B1 (ko) 임베디드 단말 성능 측정 장치 및 방법
WO2017157459A1 (en) Configuration management in a communication network
KR100911512B1 (ko) 타이밍 패킷을 이용한 동기화 방법 및 장치
US10749781B2 (en) Setting device, setting method, recording medium to which setting program is recorded, communication system, client device, and server device
CN103684738A (zh) 一种防原消息干扰的方法及装置
CN115397004A (zh) 一种时钟同步方法、装置、网络设备、转换器及存储介质
CN118157802A (zh) 时钟同步方法、装置、设备、存储介质及计算机程序
CN115107792A (zh) 时间同步方法、装置、设备和自动驾驶车辆

Legal Events

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

Ref document number: 18849871

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018849871

Country of ref document: EP

Effective date: 20200316