CN117596188A - Jitter calculation method and device based on bottom middleware communication and electronic equipment - Google Patents

Jitter calculation method and device based on bottom middleware communication and electronic equipment Download PDF

Info

Publication number
CN117596188A
CN117596188A CN202311559434.0A CN202311559434A CN117596188A CN 117596188 A CN117596188 A CN 117596188A CN 202311559434 A CN202311559434 A CN 202311559434A CN 117596188 A CN117596188 A CN 117596188A
Authority
CN
China
Prior art keywords
jitter
delay
data packets
time
unit time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311559434.0A
Other languages
Chinese (zh)
Inventor
张万洪
毛剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guoke Chushi Chongqing Software Co ltd
Original Assignee
Guoke Chushi Chongqing Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guoke Chushi Chongqing Software Co ltd filed Critical Guoke Chushi Chongqing Software Co ltd
Priority to CN202311559434.0A priority Critical patent/CN117596188A/en
Publication of CN117596188A publication Critical patent/CN117596188A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter

Landscapes

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

Abstract

The disclosure relates to a jitter calculation method and device based on bottom middleware communication, and an electronic device, comprising the following steps: obtaining single time delay of a plurality of data packets through a time delay test, calculating to obtain average time delay of all the data packets according to the single time delay of the plurality of data packets, calculating to obtain all jitter values based on the average time delay and the single time delay of the plurality of data packets, and comparing absolute values of the jitter values in unit time to obtain a maximum jitter value as a target jitter value in unit time; or comparing the time delays in unit time to obtain the maximum time delay, and calculating to obtain the target jitter value in unit time according to the average time delay and the maximum time delay. The target jitter value obtained by the method can be associated with the stability and consistency of the whole communication transmission, reflect the situation that the data transmission deviates from the total time delay, and improve the accuracy and reliability of communication quality assessment through the jitter value.

Description

Jitter calculation method and device based on bottom middleware communication and electronic equipment
Technical Field
The disclosure relates to the technical field of communication, and in particular relates to a jitter calculation method, a jitter calculation device, electronic equipment and a computer readable storage medium based on bottom middleware communication.
Background
In the related art, the communication of the bottom middleware is widely applied to the fields of industrial control, intelligent transportation, aerospace and the like. With the rapid development of technology, requirements for middleware communication are becoming more and more stringent, and jitter indicator is one of important metrics in evaluating communication performance. Jitter refers to delay instability of a data packet during transmission. When the delay of the data packet changes, problems such as blocking, delay and discontinuity in communication are caused. In real-time applications, these problems adversely affect the stability and reliability of the system.
As shown in fig. 1, the time delay t is the time taken for a data packet to travel from the transmitting end to the receiving end. The existing jitter calculation method comprises two types, wherein the first type is to take the time delay of the current data packet minus the time delay of the previous time as jitter and take the maximum value of all jitter absolute values in unit time as the jitter of unit time; the second is the maximum time delay in unit time minus the minimum time delay in unit time, taking the absolute value as jitter in unit time. However, the first method simply calculates the difference between the time delay of the current data packet and the time delay of the previous time, takes the maximum value of unit time as jitter, and cannot fully represent the communication quality, especially in the case of extreme time delay variation, the method may lead to misleading, for example, the time delay of the last data packet is very small, but the time delay of the current data packet is very large, so that the calculated jitter value is very large, and cannot accurately reflect the communication quality. While the second method reflects the fluctuation range of the delay by calculating the maximum value minus the minimum value, the communication quality is not necessarily reflected well, because the smaller the delay is, the better the communication quality is, and in addition, the method cannot reflect the situation of shifting the overall delay.
Therefore, there is a need for a jitter calculation method for underlying middleware communication that can achieve association with overall stability and consistency of communication, embody a deviation from the overall delay condition, and improve reliability of communication quality estimated by jitter values.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a jitter calculation method, apparatus, electronic device, and computer-readable storage medium based on underlying middleware communication.
According to a first aspect of an embodiment of the present disclosure, there is provided a jitter calculation method based on underlying middleware communication, including: obtaining single time delays of a plurality of data packets through time delay test, and calculating average time delays of all the data packets according to the single time delays of the plurality of data packets; according to the average time delay and the single time delay of a plurality of data packets, calculating to obtain all jitter values, and comparing absolute values of the jitter values to obtain a maximum jitter value as a target jitter value of unit time aiming at each jitter value in unit time; or comparing the time delays in unit time to obtain the maximum time delay, and calculating the target jitter value in unit time according to the average time delay and the maximum time delay.
In some embodiments, the obtaining a single delay of a plurality of data packets through a delay test, and calculating an average delay of all data packets according to the single delay of the plurality of data packets, where the formula is:
t avg =∑(t 1 +...+t s )/s
wherein t is avg For the average time delay of all data packets, s is the number of data packets received, t 1 …t s Is the delay from the first data packet to the s-th data.
In some embodiments, the calculating, according to the average delay and the single delay of the plurality of data packets, all jitter values, for each jitter value in a unit time, comparing absolute values of the jitter values to obtain a maximum jitter value, as a target jitter value in the unit time, includes: subtracting the average time delay from the single time delay of the plurality of data packets respectively, and performing absolute value processing to obtain all jitter values, wherein the formula is as follows:
j x =|t x -t avg |
comparing to obtain the maximum value in all jitter values as a target jitter value in unit time, wherein the formula is as follows:
jitter=max(j 1 ,…,j n )
wherein x is an integer from 1 to s, t x Is the delay of the xth data packet, j x For the jitter value of the xth data packet, n is the number of data packets transmitted in a unit time, jitter represents the unit timeA target jitter value therebetween.
In some embodiments, the comparing obtains a maximum delay for each delay in a unit time, and calculates a target jitter value in the unit time according to the average delay and the maximum delay, including: and comparing to obtain the maximum time delay of unit time according to the single time delay of the data packets, wherein the formula is as follows:
t max =max(t 1 ,…,t n )
subtracting the maximum time delay from the average time delay and performing absolute value processing to obtain a target jitter value of unit time, wherein the formula is as follows:
jitter=|t max -t avg |
wherein t is max The maximum delay of unit time is n, the number of data packets sent in unit time is n, and jitter is the target jitter value of unit time.
In some embodiments, the single delay, the average delay, the jitter value, the maximum delay, and the target jitter value of the plurality of data packets are calculated after the delay test of all data packets is completed.
According to a second aspect of embodiments of the present disclosure, there is provided a jitter calculation apparatus based on underlying middleware communication, including: the average time delay calculation module is used for obtaining single time delays of a plurality of data packets through time delay tests and calculating average time delays of all the data packets according to the single time delays of the plurality of data packets; the first jitter value calculation module is used for calculating all jitter values according to the average time delay and the single time delay of the plurality of data packets, and comparing absolute values of the jitter values to obtain a maximum jitter value as a target jitter value of unit time for each jitter value in unit time; or the second jitter value calculation module is used for comparing each time delay in unit time to obtain the maximum time delay, and calculating the target jitter value in unit time according to the average time delay and the maximum time delay.
In some embodiments, the first jitter value calculation module includes: the jitter value acquisition module is used for respectively subtracting the average delay according to the single delay of the plurality of data packets and performing absolute value processing to obtain all jitter values; and the jitter value comparison module is used for comparing and obtaining the maximum value in all jitter values as a target jitter value in unit time.
In some embodiments, the second jitter value calculation module includes: the time delay comparison module is used for comparing the maximum time delay of unit time according to the single time delays of the plurality of data packets; and the target jitter value acquisition module is used for subtracting the maximum delay according to the average delay and performing absolute value processing to obtain a target jitter value of unit time.
According to a fourth aspect of embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; a memory for storing the processor-executable instructions; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the jitter calculation method based on underlying middleware communication provided in the first aspect of the disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the jitter calculation method based on underlying middleware communication provided by the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: obtaining single time delay of a plurality of data packets through a time delay test, calculating to obtain average time delay of all the data packets according to the single time delay of the plurality of data packets, calculating to obtain all jitter values based on the average time delay and the single time delay of the plurality of data packets, and comparing absolute values of the jitter values in unit time to obtain a maximum jitter value as a target jitter value in unit time; or comparing the delays in unit time to obtain the maximum delay, and calculating the target jitter value in unit time according to the average delay and the maximum delay, so that the obtained target jitter value can be correlated with the stability and consistency of the whole communication transmission, the situation that the data transmission deviates from the whole delay is reflected, and the accuracy and reliability of evaluating the communication quality through the jitter value are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart of a packet delay calculation method in the prior art.
Fig. 2 is a flow chart illustrating a method of packet delay calculation according to an exemplary embodiment.
Fig. 3 is a flow chart illustrating a jitter calculation method based on underlying middleware communication according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating a method of deriving a target jitter value per unit time from a maximum jitter value according to an exemplary embodiment.
Fig. 5 is a flowchart illustrating a method of deriving a target jitter value per unit time based on a maximum delay according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating a jitter computing device based on underlying middleware communication in accordance with an exemplary embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Detailed Description
Exemplary embodiments will be described in detail below with reference to the accompanying drawings.
It should be noted that the related embodiments and the drawings are only for the purpose of describing exemplary embodiments provided by the present disclosure, and not all embodiments of the present disclosure, nor should the present disclosure be construed to be limited by the related exemplary embodiments.
It should be noted that the terms "first," "second," and the like, as used in this disclosure, are used merely to distinguish between different steps, devices, or modules, and the like. Relational terms are used not to indicate any particular technical meaning nor sequence or interdependence between them.
It should be noted that the modifications of the terms "one", "a plurality", "at least one" as used in this disclosure are intended to be illustrative rather than limiting. Unless the context clearly indicates otherwise, it should be understood as "one or more".
It should be noted that the term "and/or" is used in this disclosure to describe an association between associated objects, and generally indicates that there are at least three associations. For example, a and/or B may at least represent: a exists independently, A and B exist simultaneously, and B exists independently.
It should be noted that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. The scope of the present disclosure is not limited by the order of description of the steps in the related embodiments unless specifically stated.
It should be noted that, all actions for acquiring signals, information or data in the present disclosure are performed under the condition of conforming to the corresponding data protection rule policy of the country of the location and obtaining the authorization given by the owner of the corresponding device.
Exemplary method
Fig. 2 is a flow chart illustrating a method of packet delay calculation according to an exemplary embodiment. As shown in fig. 2, before jitter calculation, a delay test needs to be performed on the bottom middleware to obtain the communication delay of the data packet.
When the time delay test is carried out, the data packet is sent to the receiving end through the sending end, and the time error between the sending end and the receiving end is beta. The time stamp of the first data packet data1 which is written at the transmitting end is written as T1, and the time stamp T1 is written into the first data packet data1, and the size of the data1 is not influenced; the first data packet data1 is transmitted to a receiving end through a bottom middleware, and after the receiving end receives the data packet data1, the recording time stamp is T2; the receiving end writes the data packet data1, and transmits the data packet data1 to the testing machine 1 through the bottom communication middleware, and the starting writing time stamp is T3, and T3=T2; after the transmitting end receives the data packet data1, the recording time stamp is T4; for the bottom communication middleware, the time delay required for transmitting the data packet data1 is (T2-beta) -T1 and T4- (T3-beta), and since t3=t2, the time delay required for transmitting the data packet data is late= (T4-T1)/2.
Of course, the above method can also be applied to continuously transmitting multi-packet data, and the time delay of the nth data packet datan is calculated as latex= (T4 x-T1 x)/2. When n data packets are received, the delay of each data packet n may be added and divided by n to obtain the average delay of all the data packets.
The method for testing the time delay can accurately test the communication time delay of the bottom middleware, avoid synchronization errors, be suitable for continuously sending multi-packet data, improve the testing efficiency and the accuracy of the testing result, be favorable for further calculating the jitter value and ensure the reliability of the jitter value.
Fig. 3 is a flowchart illustrating a jitter calculation method based on underlying middleware communication according to an exemplary embodiment, and as shown in fig. 3, the jitter calculation method based on underlying middleware communication is used in an underlying middleware communication process, and includes the following steps:
in step S110, a single delay of a plurality of data packets is obtained through a delay test, and an average delay of all the data packets is calculated according to the single delay of the plurality of data packets.
In some embodiments, in order to evaluate network communication performance, a delay test may be performed by using a plurality of data packets, after the test is completed, a single delay corresponding to the plurality of data packets is obtained, an average delay of all data packets is obtained by calculation based on the single delay, and the average delay is obtained by calculation according to a single time of all data packets, so as to facilitate the judgment of the overall stability of communication.
Wherein, the formula for calculating the average time delay is:
t avg =∑(t 1 +...+t s )/s
wherein t is avg For the average time delay of all data packets, s is the number of data packets received, t 1 …t s Is the delay from the first data packet to the s-th data.
Specifically, all delays obtained through the delay test and the number of data packets received by the delay test are calculated to obtain the average delay of all the data packets so as to facilitate the follow-up jitter calculation.
In step S120, all jitter values are calculated according to the average delay and the single delay of the plurality of data packets, and for each jitter value in a unit time, the absolute value of the jitter value is compared to obtain the maximum jitter value as the target jitter value in the unit time.
In some embodiments, jitter values of all data packets are calculated based on a single delay of a plurality of data packets and an average delay obtained by calculation, and jitter values with the largest absolute value are compared for jitter values in unit time, namely the largest jitter value, and are used as target jitter values in unit time to reflect instability and variability occurring in the data transmission or signal transmission process. Because the single delay is obtained based on all data, the target jitter value can be correlated with the stability and consistency of the whole communication transmission and reflect the situation that the data transmission deviates from the whole delay, thereby improving the accuracy and reliability of the communication quality assessment by the jitter value.
Or, in step S130, the maximum time delay is obtained by comparing the time delays in the unit time, and the target jitter value in the unit time is calculated according to the average time delay and the maximum time delay.
In some embodiments, if the data received per unit time is too much, the calculation is performed in the manner of step S120, so that the calculation amount is large, and thus, the optimization can be performed again. And when the jitter is calculated, the maximum time delay is obtained by comparing the time delays in unit time, the average time delay and the maximum time delay are adopted to calculate the jitter in unit time, and the same is true as the step S120, and when the jitter is calculated, the maximum time delay and the average time delay of all data packet transmission are adopted, so that the correlation with the stability and the consistency of the whole communication transmission can be realized, the situation that the data transmission deviates from the whole time delay can be reflected, and the accuracy and the reliability of the communication quality evaluation based on the jitter value are improved.
In the above embodiment, a single delay of a plurality of data packets is obtained through a delay test, an average delay of all the data packets is obtained through calculation according to the single delay of the plurality of data packets, all jitter values are obtained through calculation based on the average delay and the single delay of the plurality of data packets, and for each jitter value in unit time, the absolute value of each jitter value is compared to obtain a maximum jitter value as a target jitter value in unit time; or comparing the delays in unit time to obtain the maximum delay, and calculating the target jitter value in unit time according to the average delay and the maximum delay, so that the obtained target jitter value can be correlated with the stability and consistency of the whole communication transmission, the situation that the data transmission deviates from the whole delay is reflected, and the accuracy and reliability of evaluating the communication quality through the jitter value are improved.
Fig. 4 is a flowchart illustrating a method of obtaining a target jitter value per unit time from a maximum jitter value according to an exemplary embodiment, which is used in step S120, as shown in fig. 4, and includes the steps of:
in step S210, the average delay is subtracted from the single delay of the plurality of data packets, and absolute value processing is performed to obtain all jitter values, where the formula is:
j x =|t x -t avg |
specifically, the average delay is subtracted from the single delay of a plurality of data packets, absolute value processing is performed to obtain jitter values of all data packet transmissions, and the jitter values of all data packets can be used for correlation with the stability and consistency of the whole communication through calculation of the jitter values of all data packets so as to improve the reliability of evaluating the communication quality based on the target jitter values.
In step S220, the maximum value of all jitter values is obtained by comparison, and the maximum value is used as the target jitter value of unit time, and the formula is:
jitter=max(j 1 ,…,j n )
wherein x is an integer from 1 to s, t x Is the delay of the xth data packet, j x As the jitter value of the xth packet, n is the number of packets transmitted per unit time, and jitter represents the target jitter value per unit time.
Specifically, according to all jitter values obtained by calculation, the maximum value is obtained by comparison and is used as a target jitter value of unit time, and as the jitter value is obtained by calculation based on all data packets, the finally obtained target jitter value can be associated with the stability and consistency of the whole communication, the situation of deviating from the total time delay is reflected, and the accuracy of communication quality evaluation is improved.
In this embodiment, the average delay is subtracted from the single delay of the plurality of data, absolute value processing is performed to obtain all jitter values, and the maximum value of all jitter values is compared to obtain the target jitter value in unit time, so that the stability and consistency of the overall communication can be associated, the situation of deviating from the overall delay can be reflected, and the accuracy of communication quality evaluation by using the target jitter value is improved.
Fig. 5 is a flowchart illustrating a method of obtaining a target jitter value per unit time according to a maximum time delay, which is used in step S130, as shown in fig. 5, and includes the steps of:
in step S310, the maximum delay per unit time is obtained by comparing according to the single delays of the plurality of data packets, where the formula is:
t max =max(t 1 ,…,t n )
specifically, when the data transmission amount is large, in order to simplify the calculation, the maximum time delay of unit time can be obtained by comparing the maximum value of the single time delays of all the data packets, and the target jitter value can be obtained by calculating based on the maximum time delay and the average time delay, so that the calculation efficiency is improved.
In step S320, the maximum delay is subtracted from the average delay and the absolute value is processed to obtain a target jitter value in unit time, where the formula is:
jitter=|t max -t avg |
wherein t is max The maximum time delay of unit time is n is the number of data packets transmitted in unit time, and jitter is the target jitter of unit timeValues.
Specifically, the maximum delay is subtracted based on the calculated average delay, absolute value processing is performed to obtain a target jitter value in unit time, and the correlation of the whole communication can be realized while the calculation efficiency is improved, so that the accuracy and reliability of communication quality evaluation are ensured.
In this embodiment, when the data transmission amount is too large, the calculation of each jitter value alone may result in too large calculation amount, so in order to improve the calculation efficiency, the maximum value of each jitter value may be compared according to all the obtained single delays, to obtain the maximum delay in unit time, and the maximum delay is subtracted according to the average delay and the absolute value is processed, to obtain the target jitter value in unit time, thereby implementing association with the overall communication stability and consistency, and reflecting the situation of deviating from the overall delay, and improving the reliability of communication quality evaluation.
In some embodiments, the individual delays, average delays, jitter values, maximum delays, and target jitter values for a plurality of data packets are all calculated after the delay test for all data packets is completed.
Specifically, in the above embodiment, the data such as the single delay, the average delay, the jitter value, the maximum delay, the target jitter value, and the like of the plurality of data packets are all obtained by calculation after the transmission and the reception of the plurality of data packets are completed, that is, the jitter calculation is performed after the completion of the delay test, so that equipment resources can be prevented from being wasted in the test, and the test result is more accurate.
Exemplary apparatus
Fig. 6 is a block diagram illustrating a jitter computing device based on underlying middleware communication in accordance with an exemplary embodiment. Referring to fig. 6, the apparatus 400 includes an average delay calculation module 410, a first jitter value calculation module 420, or a second jitter value calculation module 430.
The average delay calculation module 410 is configured to obtain single delays of a plurality of data packets through a delay test, and calculate average delays of all the data packets according to the single delays of the plurality of data packets;
the first jitter value calculation module 420 is configured to calculate all jitter values according to the average delay and the single delay of the plurality of data packets, and compare absolute values of the jitter values to obtain a maximum jitter value as a target jitter value of unit time for each jitter value in unit time;
the second jitter value calculating module 430 is configured to compare each time delay in a unit time to obtain a maximum time delay, and calculate a target jitter value in the unit time according to the average time delay and the maximum time delay.
In some embodiments, the first jitter value calculation module 420 includes: the jitter value acquisition module is used for respectively subtracting the average delay according to the single delay of the plurality of data packets and carrying out absolute value processing to obtain all jitter values; and the jitter value comparison module is used for comparing and obtaining the maximum value in all jitter values as a target jitter value in unit time.
In some embodiments, the second jitter value calculation module 430 includes a delay comparison module for comparing a maximum delay per unit time according to a single delay of a plurality of data packets; and the target jitter value acquisition module is used for subtracting the maximum delay from the average delay and performing absolute value processing to obtain a target jitter value of unit time.
In the above embodiment, through the operation of the device, a jitter calculation method based on the underlying middleware communication is realized, so that the device is ensured to be capable of realizing all contents of the jitter calculation method based on the underlying middleware communication.
Exemplary electronic device
Fig. 7 is a block diagram of an electronic device 900, according to an example embodiment. The electronic device 900 may be a vehicle controller, an in-vehicle terminal, an in-vehicle computer, or other type of electronic device.
Referring to fig. 7, an electronic device 900 may include at least one processor 910 and memory 920. Processor 910 may execute instructions stored in memory 920. The processor 910 is communicatively coupled to the memory 920 via a data bus. In addition to memory 920, processor 910 may also be communicatively coupled to input devices 930, output devices 940, and communication devices 950 via a data bus.
The processor 910 may be any conventional processor, such as a commercially available CPU. The processor may also include, for example, an image processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a System On Chip (SOC), an application specific integrated Chip (Application Specific Integrated Circuit, ASIC), or a combination thereof.
The memory 920 may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
In the embodiment of the present disclosure, the memory 920 stores executable instructions, and the processor 910 may read the executable instructions from the memory 920 and execute the instructions to implement all or part of the steps of the jitter calculation method based on the underlying middleware communication in any of the foregoing exemplary embodiments.
Exemplary computer-readable storage Medium
In addition to the methods and apparatus described above, exemplary embodiments of the present disclosure may also be a computer program product or a computer readable storage medium storing the computer program product. The computer program product comprises computer program instructions executable by a processor to perform all or part of the steps described in any of the methods of the exemplary embodiments described above.
The computer program product may write program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages, as well as scripting languages (e.g., python). The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the readable storage medium include: a Static Random Access Memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic or optical disk, or any suitable combination of the foregoing having one or more electrical conductors.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. The jitter calculation method based on the communication of the bottom middleware is characterized by comprising the following steps:
obtaining single time delays of a plurality of data packets through time delay test, and calculating average time delays of all the data packets according to the single time delays of the plurality of data packets;
according to the average time delay and the single time delay of a plurality of data packets, calculating to obtain all jitter values, and comparing absolute values of the jitter values to obtain a maximum jitter value as a target jitter value of unit time aiming at each jitter value in unit time;
or comparing the time delays in unit time to obtain the maximum time delay, and calculating the target jitter value in unit time according to the average time delay and the maximum time delay.
2. The jitter calculation method based on bottom middleware communication according to claim 1, wherein the single delay of a plurality of data packets is obtained through a delay test, and the average delay of all the data packets is calculated according to the single delay of the plurality of data packets, wherein the formula is as follows:
t avg =∑(t 1 +...+t s )/s
wherein t is avg For the average time delay of all data packets, s is the number of data packets received, t 1 …t s Is the delay from the first data packet to the s-th data.
3. The method for calculating jitter based on underlying middleware communication according to claim 2, wherein calculating all jitter values according to the average delay and the single delay of the plurality of data packets, comparing absolute values of the jitter values to obtain a maximum jitter value as a target jitter value of a unit time for each jitter value of the unit time, comprises:
subtracting the average time delay from the single time delay of the plurality of data packets respectively, and performing absolute value processing to obtain all jitter values, wherein the formula is as follows:
j x =|t x -t avg |
comparing to obtain the maximum value in all jitter values as a target jitter value in unit time, wherein the formula is as follows:
jitter=max(j 1 ,…,j n )
wherein x is an integer from 1 to s, t x Is the delay of the xth data packet, j x As the jitter value of the xth packet, n is the number of packets transmitted per unit time, and jitter represents the target jitter value per unit time.
4. The jitter calculation method based on the underlying middleware communication according to claim 2, wherein comparing the time delays in unit time to obtain a maximum time delay, and calculating a target jitter value in unit time according to the average time delay and the maximum time delay, includes:
and comparing to obtain the maximum time delay of unit time according to the single time delay of the data packets, wherein the formula is as follows:
t max =max(t 1 ,…,t n )
subtracting the maximum time delay from the average time delay and performing absolute value processing to obtain a target jitter value of unit time, wherein the formula is as follows:
jitter=|t max -t avg |
wherein t is max The maximum delay of unit time is n, the number of data packets sent in unit time is n, and jitter is the target jitter value of unit time.
5. The method for calculating jitter based on underlying middleware communication according to claim 1, wherein the single delay, the average delay, the jitter value, the maximum delay and the target jitter value of the plurality of data packets are calculated after the delay test of all data packets is completed.
6. A jitter calculation apparatus based on underlying middleware communication, for implementing a jitter calculation method based on underlying middleware communication according to any one of claims 1-5, comprising:
the average time delay calculation module is used for obtaining single time delays of a plurality of data packets through time delay tests and calculating average time delays of all the data packets according to the single time delays of the plurality of data packets;
the first jitter value calculation module is used for calculating all jitter values according to the average time delay and the single time delay of the plurality of data packets, and comparing absolute values of the jitter values to obtain a maximum jitter value as a target jitter value of unit time for each jitter value in unit time;
or the second jitter value calculation module is used for comparing each time delay in unit time to obtain the maximum time delay, and calculating the target jitter value in unit time according to the average time delay and the maximum time delay.
7. The jitter calculation apparatus of claim 6, wherein the first jitter value calculation module comprises:
the jitter value acquisition module is used for respectively subtracting the average delay according to the single delay of the plurality of data packets and performing absolute value processing to obtain all jitter values;
and the jitter value comparison module is used for comparing and obtaining the maximum value in all jitter values as a target jitter value in unit time.
8. The jitter calculation apparatus of claim 6, wherein the second jitter value calculation module comprises:
the time delay comparison module is used for comparing the maximum time delay of unit time according to the single time delays of the plurality of data packets;
and the target jitter value acquisition module is used for subtracting the maximum delay according to the average delay and performing absolute value processing to obtain a target jitter value of unit time.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the underlying middleware communication-based jitter calculation method of any one of claims 1-5.
10. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, perform the steps of the method for jitter calculation based on underlying middleware communication of any of the claims 1-5.
CN202311559434.0A 2023-11-21 2023-11-21 Jitter calculation method and device based on bottom middleware communication and electronic equipment Pending CN117596188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311559434.0A CN117596188A (en) 2023-11-21 2023-11-21 Jitter calculation method and device based on bottom middleware communication and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311559434.0A CN117596188A (en) 2023-11-21 2023-11-21 Jitter calculation method and device based on bottom middleware communication and electronic equipment

Publications (1)

Publication Number Publication Date
CN117596188A true CN117596188A (en) 2024-02-23

Family

ID=89910988

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311559434.0A Pending CN117596188A (en) 2023-11-21 2023-11-21 Jitter calculation method and device based on bottom middleware communication and electronic equipment

Country Status (1)

Country Link
CN (1) CN117596188A (en)

Similar Documents

Publication Publication Date Title
CN106909372B (en) Method and system for calculating purchase path of mobile terminal user
US11503435B2 (en) Positioning method and apparatus of target node in wireless ad hoc network, electronic device, and medium
CN110855590A (en) Frequency offset compensation method, system, electronic device and computer readable storage medium
CN110569194A (en) interface testing method and device, electronic equipment and storage medium
CN107678779A (en) A kind of timed task performs method and electronic equipment
EP3793333A1 (en) Filament current control method and apparatus
CN116185133B (en) Chip clock calibration method and device, chip, electronic equipment and storage medium
CN117596188A (en) Jitter calculation method and device based on bottom middleware communication and electronic equipment
CN111897826A (en) Parameter information updating method and device, electronic equipment and readable storage medium
CN111611186B (en) Transmission control method and device in embedded chip
CN115408858A (en) Pulse spectrum parameter partitioning method and device, electronic equipment and storage medium
CN113129438B (en) Method and device for improving precision of lane line and readable storage medium
CN116633820A (en) Time delay testing method and device based on bottom layer communication and electronic equipment
CN110794097A (en) Food detection method and device and food detection equipment
CN106911915B (en) Commodity information acquisition system based on augmented reality technology
CN116401081B (en) data sharing method
CN113904957B (en) Sampling point testing method and system and main control equipment thereof
CN115225775B (en) Multichannel delay correction method and device and computer equipment
CN114880027B (en) Method and device for checking unloading data of spacecraft memory and storage medium
CN115685063B (en) Distance measurement calibration method, device, electronic equipment and medium
CN111160532A (en) Method and device for correcting sigmoid function
CN111814949B (en) Data labeling method and device and electronic equipment
US20240070818A1 (en) Image synchronizing method, system and electronic equipment
CN112558111B (en) Unmanned aerial vehicle positioning method and device
CN116582436A (en) Data transmission method, device, equipment and storage medium

Legal Events

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