Network transmission delay statistics method, system and terminal based on FPGA resource optimization

By optimizing FPGA resources and using the method of storing number values ​​and delay reference values, the problem of limited FPGA chip resources is solved, and the accuracy and efficiency of network transmission delay statistics are improved.

CN119854178BActive Publication Date: 2025-09-02SHANGHAI AUTOWELL POWER ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510057468.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-09-02
Estimated Expiration
2045-01-14

AI Technical Summary

Technical Problem

The existing FPGA chip resources are limited, making it difficult to meet the multi-channel data computing needs in large-scale program function development, resulting in resource tightness and affecting the accuracy and efficiency of network transmission delay statistics.

Method used

By optimizing FPGA resources, using the method of storing numbered values ​​and delay reference values, the received data information and the received times are obtained in real time, and ordinary storage modules and statistics modules are used to calculate and store data to realize delay statistics.

Benefits of technology

Effectively utilize internal chip resources, improve the accuracy and efficiency of network transmission delay statistics, and meet the needs of current and subsequent development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854178B_ABST
    Figure CN119854178B_ABST
Patent Text Reader

Abstract

The present invention relates to a network transmission delay statistics method, system, and terminal based on FPGA resource optimization, and relates to the field of network transmission technology. The method includes: obtaining received data information and reception times corresponding to different signals in real time; determining a storage number value based on the received data information and reception times; determining a preset common storage module based on the storage number value and calculating and storing the received data information; when receiving a read statistical data instruction, reading a written data number value and written data information in a preset statistical module; determining timing data statistical result information based on the written data information and the written data number value, and outputting the timing data statistical result information. The present invention has the effect of conveniently meeting the needs of current and subsequent development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network transmission technology, and in particular to a network transmission delay statistics method, system and terminal based on FPGA resource optimization. Background Art

[0002] Network transmission refers to the process of transferring data from one location to another using the physical pathways and devices within a computer network. Because network transmission involves time delays between sending and receiving data, high real-time performance is generally required to ensure proper system operation and security.

[0003] Currently, to ensure real-time network transmission, the time when the network sender sends data and the time when the receiver receives the data are synchronously recorded with a certain time accuracy. The time accuracy, the time when the sender starts sending, and the time when the receiver receives the data are all counted synchronously at the interval of the synchronized clock. Then, the time delay between receiving and sending is synchronously calculated at a certain time interval as an important judgment basis for system function implementation. Currently, network transmission delay statistics are generally optimized by field programmable gate array (FPGA) resources based on lookup table resources.

[0004] Since a fixed-model chip has fixed internal resources, the lookup table resources often cannot meet the usage requirements for large-scale program function development. In addition, when arithmetic operations (addition, subtraction, division, etc.) on multiple data channels need to be performed multiple times within a fixed time, more lookup table resources are required, resulting in resource shortages or even exceeding existing resources, which is not easy to meet the current and subsequent development needs. Summary of the Invention

[0005] In order to facilitate the current stage and subsequent development, the present invention provides a network transmission delay statistics method, system and terminal based on FPGA resource optimization.

[0006] In a first aspect, the present invention provides a network transmission delay statistics method based on FPGA resource optimization, which adopts the following technical solutions:

[0007] A network transmission delay statistics method based on FPGA resource optimization, comprising:

[0008] Real-time acquisition of received data information and reception times corresponding to different signals;

[0009] Determine the storage number value based on the received data information and the number of receptions;

[0010] Determine a preset common storage module based on the storage number value and calculate and store the received data information;

[0011] When receiving the instruction to read statistical data, the written data value and written data information in the preset statistical module are read;

[0012] The timing data statistical result information is determined based on the written data information and the written data numerical value analysis, and the timing data statistical result information is output.

[0013] Optionally, the method for determining the storage number value includes:

[0014] Retrieving data path values ​​based on received data information;

[0015] Determine whether the data path value exists;

[0016] If yes, the preset initial number value is used as the storage number value;

[0017] If not, a storage adjustment number value is determined based on a comparison result between the reception times value and a preset module resource number value, and the storage adjustment number value is used as the storage number value.

[0018] Optionally, determining a preset common storage module based on the storage number value and calculating and storing the received data information includes:

[0019] Retrieving data ID information based on received data information;

[0020] Determine the initial storage address information based on the data ID information and the result of determining whether the storage number value is the initial number value, and store the received data information in the common storage module corresponding to the initial storage address information;

[0021] Determine whether the storage number value is less than the preset module resource value;

[0022] If yes, then read the storage data in the common storage module corresponding to the initial number value and use it as the initial data information;

[0023] Rereading the received data information from the initial storage address information and inputting it into a preset statistical module together with the initial data information to obtain delay statistical information and storing it in the preset statistical module;

[0024] If not, read the latency statistics information of the preset statistics module;

[0025] The received data information is re-read from the initial storage address information and inputted into the preset statistical module together with the delay statistical information to adjust and replace the delay statistical information and continue to be stored in the preset statistical module.

[0026] Optionally, the method for determining the initial storage address information includes:

[0027] Determine whether the stored number value is the initial number value;

[0028] If yes, then determine the ID storage address information corresponding to the data ID information according to the correspondence between the data ID information and the preset ID storage address information, and use the ID storage address information as the initial storage address information;

[0029] If not, the pre-allocated address information is retrieved based on the storage number value, and the pre-allocated address information is used as the initial storage address information.

[0030] Optionally, the method further includes steps after obtaining the received data information and the number of reception times corresponding to different signals in real time, specifically as follows:

[0031] Retrieve the data receiving time point based on the received data information;

[0032] Get sending data information in real time;

[0033] Retrieve the data sending time point based on the sending data information;

[0034] Calculate the difference between the data sending time point and the data receiving time point and use it as the sending and receiving delay value;

[0035] Determine the delay benchmark value based on the analysis of received data information and sent data information;

[0036] Determine whether the sending and receiving delay value is greater than the delay reference value;

[0037] If yes, the difference between the transmit and receive delay value and the delay reference value is calculated and used as the delay deviation value;

[0038] Determine impact processing information based on the delay deviation value analysis and execute the impact processing information.

[0039] If not, continue to analyze and determine the storage number value based on the received data information and the number of receptions.

[0040] Optionally, a method for determining the delay reference value includes:

[0041] Retrieving a data receiving location point based on the received data information;

[0042] Retrieve the data sending location point based on the sending data information;

[0043] Calculate the distance between the data receiving location and the data sending location and use it as the data receiving and sending distance value;

[0044] According to the correspondence between the data receiving and sending distance value and the preset delay distance initial value, the delay distance initial value corresponding to the data receiving and sending distance value is determined;

[0045] Retrieve data processing information based on the data receiving location point;

[0046] Determine the impact value of the processing situation based on the analysis of data processing information;

[0047] The sum of the initial value of the delay distance and the impact value of the processing situation is calculated and used as the delay adjustment value, and the delay adjustment value is used as the delay reference value.

[0048] Optionally, a method for determining the impact processing information includes:

[0049] Determine the cause of the deviation based on the delay deviation value analysis;

[0050] Determine whether the deviation reason information is the preset power outage reason information;

[0051] If yes, the preset charging module is controlled to output and obtain the remaining power value;

[0052] Retrieve receiving device information based on the data receiving location point;

[0053] Determine the battery usage time value based on the receiving device information and the remaining battery value;

[0054] According to the correspondence between the power usage time value and the preset power outage warning information, the power outage warning information corresponding to the power usage time value is determined, and the power outage warning information is output to the terminal held by the administrator;

[0055] If not, the delay deviation warning information corresponding to the delay deviation value is determined according to the correspondence between the delay deviation value and the preset delay deviation warning information, and the delay deviation warning information is output to the terminal held by the administrator.

[0056] Optionally, a method for determining the power usage time value includes:

[0057] Retrieve the device benchmark power consumption value and the receiving unit power consumption value based on the receiving device information;

[0058] Retrieve ambient temperature and humidity values ​​based on data receiving location points;

[0059] According to the corresponding relationship between the ambient temperature value and the preset ambient temperature influence value, the ambient temperature influence value corresponding to the ambient temperature value is determined;

[0060] According to the corresponding relationship between the ambient humidity value and the preset ambient humidity impact value, the ambient humidity impact value corresponding to the ambient humidity value is determined;

[0061] Based on the preset power usage time value calculation formula, the device baseline power consumption value, receiving unit power consumption value, receiving times value, remaining power value, ambient temperature impact value and ambient humidity impact value are analyzed and calculated to determine the power usage time value. The power usage time value calculation formula is: t is the power usage time value, E is the remaining power value, α is the device benchmark power consumption value, x is the number of receptions value, β is the unit power consumption value of reception, μ1 is the ambient temperature impact value, and μ2 is the ambient humidity impact value.

[0062] In a second aspect, the present invention provides a network transmission delay statistics system based on FPGA resource optimization, which adopts the following technical solutions:

[0063] A network transmission delay statistics system based on FPGA resource optimization, comprising:

[0064] An acquisition module is used to obtain received data information, received times, sent data information and remaining power value;

[0065] A memory for storing a program for the network transmission delay statistics method based on FPGA resource optimization as described in the first aspect;

[0066] The processor loads and executes the program in the memory and implements the network transmission delay statistics method based on FPGA resource optimization as described in the first aspect.

[0067] In a third aspect, the present invention provides an intelligent terminal, which adopts the following technical solution:

[0068] An intelligent terminal includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the network transmission delay statistics method based on FPGA resource optimization as described in the first aspect.

[0069] In summary, the present invention includes at least one of the following beneficial technical effects:

[0070] 1. By acquiring the received data information and the number of receptions, and analyzing and determining the storage number value, the received data information is calculated and stored. When a statistical data read instruction is received, the written data value and the written data information are read and analyzed to determine the timing data statistical result information and output it. Different data can be processed by different reception times, thereby effectively utilizing the internal resources of the chip and conveniently meeting the current stage and subsequent development;

[0071] 2. Retrieve the data path value by receiving data information and determine whether the data path value exists. If it exists, use the preset initial number value as the storage number value. If it does not exist, analyze the result of comparing the received count value with the preset module resource number value to determine the storage adjustment number value and use it as the storage number value, thereby improving the accuracy of the obtained storage number value.

[0072] 3. Retrieve the data ID information by receiving data information, and analyze the judgment result of whether the storage number value is the initial number value to determine the initial storage address information and store the received data information, and then judge whether the storage number value is less than the preset module resource value. When it is less than, read the initial data information and the received data information and input them into the preset statistical module at the same time to obtain the delay statistical information and store it in the preset statistical module. When it is not less than, read the received data information and the delay statistical information and input them into the preset statistical module at the same time to adjust the delay statistical information and continue to store it in the preset statistical module, so as to perform different calculations and storage on the data corresponding to different storage number values, thereby effectively utilizing the internal resources of the chip and conveniently meeting the current stage and subsequent development. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] Figure 1 This is a flow chart of a method for network transmission delay statistics based on FPGA resource optimization according to an embodiment of the present application;

[0074] Figure 2 is a flow chart of a method for determining a storage number value according to an embodiment of the present application;

[0075] Figure 3 This is a flow chart of a method for determining a preset common storage module based on a storage number value and calculating and storing received data information according to an embodiment of the present application;

[0076] Figure 4 is a flow chart of a method for determining initial storage address information according to an embodiment of the present application;

[0077] Figure 5 This is a flowchart of a method for obtaining the received data information and the number of reception times corresponding to different signals in real time according to an embodiment of the present application;

[0078] Figure 6 This is a flow chart of a method for determining a delay reference value according to an embodiment of the present application. DETAILED DESCRIPTION

[0079] The present invention is further described in detail below with reference to the accompanying drawings and embodiments.

[0080] A network transmission delay statistics method based on FPGA resource optimization obtains and analyzes received data information and reception times to determine a storage number value, then performs calculations and storage, and upon receiving a statistical data read instruction, reads the write data number value and write data information, analyzes the write data information, determines timing data statistics result information, and outputs it. This effectively utilizes internal chip resources, facilitates current and subsequent development needs, and ensures the accuracy of the received data information by calculating and analyzing the transmit and receive delay value after receiving the received data information to determine whether to continue storing or perform impact processing.

[0081] The embodiment of the present invention discloses a network transmission delay statistics method based on FPGA resource optimization. Figure 1 ,A network transmission delay statistics method based on FPGA resource optimization includes:

[0082] Step S100: obtaining the received data information and the number of reception times corresponding to different signals in real time.

[0083] Among them, the received data information refers to the data information received by the network receiving module at the current time, the network receiving module refers to the module that receives during network transmission, and the reception count value refers to the number of times the data is received. By obtaining the received data information and the reception count value in real time, it is convenient for subsequent use.

[0084] Step S200: Determine the storage number value based on the received data information and the number of reception times.

[0085] The storage number value refers to the number of the common storage module corresponding to the data storage. The common storage module refers to a module that normally stores data. In this embodiment, the common storage module is a RAM module. The storage number value is determined by analyzing the received data information and the reception count value, which facilitates subsequent use.

[0086] Step S300: determining a preset common storage module based on the storage number value and performing calculation and storage on the received data information.

[0087] The corresponding common storage module is determined by using the storage number value, and the received data information is calculated and stored for convenience of subsequent use.

[0088] Step S400: When receiving a statistical data reading instruction, reading the written data value and written data information in a preset statistical module.

[0089] The "read statistical data" instruction is an instruction for controlling data statistics. This instruction is obtained by pre-entering it by an operator or administrator. The statistics module is a module that counts the latency in the data. In this embodiment, the statistics module is also a RAM module. The "write data value" refers to the value corresponding to the data written by the statistics module during the current time period. The "write data information" refers to the data information written by the statistics module during the current time period. Reading the "write data value" and "write data information" in the statistics module facilitates subsequent use.

[0090] Step S500: determining timing data statistical result information based on the written data information and the written data numerical value analysis, and outputting the timing data statistical result information.

[0091] Among them, the timing data statistical result information refers to the result information after statistics of the timing data used to represent the delay situation. By analyzing the written data information and the written data individual values, and calculating the quotient between the written data information and the written data individual values, and using the calculated quotient as the timing data statistical result information, and outputting the timing data statistical result information, different data can be processed through different reception times, thereby effectively utilizing the internal resources of the chip, which is convenient for meeting the current stage and subsequent development.

[0092] exist Figure 1 In step S200, in order to further ensure the rationality of the stored number value, it is necessary to further analyze and calculate the stored number value. Figure 2 The steps shown are explained in detail.

[0093] Reference Figure 2 , the method for determining the storage number value includes the following steps:

[0094] Step S210: Retrieve data path values ​​based on received data information.

[0095] The data path value refers to the path value corresponding to the path signal from which the data received at the current time comes. The data path value is retrieved by receiving data information for subsequent use.

[0096] Step S220: Determine whether the data path value exists. If yes, execute step S230; if no, execute step S240.

[0097] By determining whether the data path values ​​corresponding to different reception times are the same, it is determined whether the currently received data and the data received in the previous reception times come from the same signal path.

[0098] Step S230: Using the preset initial serial number value as the storage serial number value.

[0099] The initial number value refers to the number corresponding to the common storage module that initially stores data. The initial number value is pre-entered by the operator and obtained. In this embodiment, the initial number value is the first common storage module. If a data path value exists, it indicates that the currently received data and the data received in the previous reception times are from the same signal path, so the preset initial number value is used as the storage number value.

[0100] Step S240: determining a storage adjustment number value based on a comparison result of the reception times value and a preset module resource number value, and using the storage adjustment number value as the storage number value to improve the accuracy of the acquired storage number value.

[0101] The storage adjustment number value refers to the number value after adjusting the number value corresponding to the ordinary storage module to be stored. When the data path value does not exist, it indicates that the currently received data and the data received in the previous reception number do not come from the same signal path. Therefore, by analyzing the comparison result of the reception number value and the preset module resource number value, when the reception number value is greater than the module resource number value, the initial number value is used as the storage adjustment number value. When the reception number value is not greater than the module resource number value, the reception number value is used as the storage adjustment number value, and then the storage adjustment number value is used as the storage number value, thereby improving the accuracy of the obtained storage number value. In this embodiment, the module resource number value is 3. For example, the initial number value is 1. When the reception number value is 2, the storage number value is 2. When the reception number value is 4, the storage number value is 1.

[0102] exist Figure 1 In step S300 shown, in order to further ensure the rationality of calculating and storing the received data information, it is necessary to further analyze and calculate the preset common storage module based on the storage number value and calculate and store the received data information. Figure 3 The steps shown are explained in detail.

[0103] Reference Figure 3 , determining a preset common storage module based on the storage number value and calculating and storing the received data information includes the following steps:

[0104] Step S310: Retrieve data ID information based on the received data information.

[0105] The data ID information refers to the ID information corresponding to the received data. The data ID information is retrieved by receiving the data information, thereby facilitating subsequent use.

[0106] Step S320: determining the initial storage address information according to the data ID information and the judgment result of whether the storage number value is the initial number value, and storing the received data information in the common storage module corresponding to the initial storage address information.

[0107] Among them, the initial storage address information refers to the address information corresponding to the initial storage of the received data. The initial storage address information is determined by judging whether the storage number value is the initial number value, and the received data information is stored in the ordinary storage module corresponding to the initial storage address information, so as to facilitate subsequent use.

[0108] Step S330: Determine whether the stored number value is less than the preset module resource value. If yes, execute step S340; if not, execute step S360.

[0109] Among them, the module resource value refers to the value corresponding to the number of ordinary storage modules that can currently be used for storage. By judging whether the storage number value is less than the preset module resource value, it is determined whether the ordinary storage module needs to be reused.

[0110] Step S340: Read the storage data in the common storage module corresponding to the initial number value and use it as initial data information.

[0111] Among them, when the storage number value is less than the preset module resource value, it means that the ordinary storage module does not need to be reused at this time, so the storage data in the ordinary storage module corresponding to the initial number value is read and used as initial data information for subsequent use.

[0112] Step S350: re-reading the received data information from the initial storage address information and inputting it into the preset statistical module together with the initial data information to obtain delay statistical information and storing it in the preset statistical module.

[0113] The latency statistics refer to the statistical information obtained by calculating the latency of network transmissions. This information is obtained by rereading the received data information from the initial storage address information and simultaneously inputting the initial data information and the received data information into a preset statistical module. The statistical module then analyzes and calculates the latency statistics to obtain the latency statistics and stores them in the preset statistical module. The latency statistics corresponding to the receipt of the statistical data read instruction are the written data information.

[0114] Step S360: Read the delay statistical information of the preset statistical module.

[0115] Among them, when the storage number value is not less than the preset module resource value, it means that the common storage module needs to be reused at this time, so the delay statistical information is read at this time to facilitate subsequent use.

[0116] Step S370: re-read the received data information from the initial storage address information and input it into the preset statistical module together with the delay statistical information to adjust and replace the delay statistical information and continue to store it in the preset statistical module.

[0117] Among them, by re-reading the received data information from the initial storage address information, and inputting the received data information and the delay statistical information into the preset statistical module at the same time, the delay statistical information is adjusted and replaced, and the replaced delay statistical information continues to be stored in the preset statistical module, thereby improving the accuracy of the obtained delay statistical information.

[0118] exist Figure 3 In step S320, in order to further ensure the rationality of the initial storage address information, it is necessary to further analyze and calculate the initial storage address information. Figure 4 The steps shown are explained in detail.

[0119] Reference Figure 4 , the method for determining the initial storage address information includes the following steps:

[0120] Step S321: Determine whether the stored number value is the initial number value. If yes, execute step S322; if no, execute step S323.

[0121] Wherein, by judging whether the storage number value is the initial number value, it is judged whether the received data can be stored in the common storage module corresponding to the initial number value.

[0122] Step S322: Determine the ID storage address information corresponding to the data ID information according to the correspondence between the data ID information and the preset ID storage address information, and use the ID storage address information as the initial storage address information.

[0123] Among them, the ID storage address information refers to the address information corresponding to the ID corresponding to the data when it is stored. The ID storage address information is obtained by querying from a database that stores the correspondence between the data ID information and the ID storage address information. The database is obtained after pre-input by the operator.

[0124] When the storage number value is the initial number value, it means that the received data can be stored in the ordinary storage module corresponding to the initial number value. Therefore, the ID storage address information is determined by querying the data ID information, and the ID storage address information is used as the initial storage address information, thereby improving the accuracy of the obtained initial storage address information.

[0125] Step S323: Retrieve pre-allocated address information based on the storage number value, and use the pre-allocated address information as initial storage address information.

[0126] Among them, the pre-allocated address information refers to the address information after the ordinary storage module other than the initial number value is pre-allocated for storing data. When the storage number value is not the initial number value, it means that the received data cannot be stored in the ordinary storage module corresponding to the initial number value at this time. Therefore, the pre-allocated address information is retrieved through the storage number value, and the pre-allocated address information is used as the initial storage address information, thereby improving the accuracy of the obtained initial storage address information.

[0127] exist Figure 1 After step S100, in order to further ensure the rationality of the received data information, it is necessary to obtain the received data information and the number of reception times corresponding to different signals in real time and then perform further separate analysis and calculation. Figure 5 The steps shown are explained in detail.

[0128] Reference Figure 5 The steps after obtaining the received data information and the number of reception times corresponding to different signals in real time include the following steps:

[0129] Step S110: Retrieve the data receiving time point based on the received data information.

[0130] The data receiving time point refers to the time point at which the data is received. The data receiving time point is retrieved by receiving data information, thereby facilitating subsequent use.

[0131] Step S120: Acquire sending data information in real time.

[0132] The sent data information refers to the data information sent by the network sending module at the current time. The network sending module refers to the module that sends data during network transmission. By acquiring the sent data information in real time, it is convenient for subsequent use.

[0133] Step S130: Retrieve the data sending time point based on the sending data information.

[0134] The data sending time point refers to the time point at which the data is sent. The data sending time point is retrieved by sending data information to facilitate subsequent use.

[0135] Step S140: Calculate the difference between the data sending time point and the data receiving time point and use it as the sending and receiving delay value.

[0136] The transmit / receive delay value refers to the delay time value corresponding to the delay between sending and receiving during network transmission. The difference between the data sending time point and the data receiving time point is calculated and used as the transmit / receive delay value for subsequent use.

[0137] Step S150: Determine a delay reference value based on analysis of the received data information and the sent data information.

[0138] The latency benchmark value refers to the benchmark delay time value for sending and receiving during normal network transmission. The latency benchmark value is determined by analyzing the received data information and the sent data information, which is convenient for subsequent use.

[0139] Step S160: Determine whether the transmission and reception delay value is greater than the delay reference value. If yes, execute step S170; if not, execute step S190.

[0140] Here, it is determined whether the sending and receiving delay value is greater than the delay reference value, thereby determining whether an abnormality occurs during network transmission.

[0141] Step S170: Calculate the difference between the transmit and receive delay value and the delay reference value and use it as the delay deviation value.

[0142] The delay deviation value refers to the deviation value when there is a deviation in the network transmission delay. When the transmit and receive delay value is greater than the delay reference value, it indicates that an abnormality has occurred in the network transmission process. Therefore, the difference between the transmit and receive delay value and the delay reference value is calculated and used as the delay deviation value for subsequent use.

[0143] Step S180: determining impact processing information based on the delay deviation value analysis, and executing the impact processing information.

[0144] Among them, the impact processing information refers to the information for processing anomalies occurring during network transmission. By analyzing the delay deviation value, the impact processing information is determined and executed, so as to timely process the anomalies occurring during network transmission.

[0145] Step S190: Continue to execute step S200.

[0146] When the receiving and sending delay value is not greater than the delay reference value, it indicates that no abnormality occurs in the network transmission process, and therefore step S200 is continued.

[0147] exist Figure 5 In step S150, in order to further ensure the rationality of the delay reference value, it is necessary to further analyze and calculate the delay reference value. Figure 6 The steps shown are explained in detail.

[0148] Reference Figure 6 The method for determining the delay reference value includes the following steps:

[0149] Step S151: Retrieve the data receiving location based on the received data information.

[0150] The data receiving location point refers to the location point at which data is received. The data receiving location point is retrieved by receiving data information to facilitate subsequent use.

[0151] Step S152: Retrieve the data sending location based on the sending data information.

[0152] The data sending location point refers to the location point where the data is sent. The data sending location point is retrieved by sending data information to facilitate subsequent use.

[0153] Step S153: Calculate the distance between the data receiving location and the data sending location and use it as the data receiving and sending distance.

[0154] Among them, the data transmission and reception distance value refers to the distance value between the sending and receiving points during network transmission. The distance value between the data receiving position point and the data sending position point is calculated and used as the data transmission and reception distance value to facilitate subsequent use.

[0155] Step S154: determining the initial delay distance value corresponding to the data receiving and sending distance value according to the corresponding relationship between the data receiving and sending distance value and the preset initial delay distance value.

[0156] The initial delay distance value refers to the initial value of the network transmission delay caused by the distance between the sending and receiving points. The initial delay distance value is obtained by querying a database that stores the correspondence between data transmission and reception distance values ​​and the initial delay distance value. This database is pre-entered by the operator and retrieved. Determining the initial delay distance value by querying the data transmission and reception distance value facilitates subsequent use.

[0157] Step S155: Retrieve data processing status information based on the data receiving location point.

[0158] The data processing status information refers to the status information corresponding to the data processing. The data processing status information is retrieved through the data receiving location point to facilitate subsequent use.

[0159] Step S156: Analyze and determine the processing situation impact value based on the data processing situation information.

[0160] The processing situation impact value refers to the degree of influence of the processing situation on the network transmission delay. The processing situation impact value is determined by analyzing the data processing situation information to facilitate subsequent use.

[0161] Furthermore, in order to improve the accuracy of the obtained processing situation impact value, the method for determining the processing situation impact value includes:

[0162] Step S1561: Retrieve the queue value and the single processing time value based on the data processing status information.

[0163] Among them, the queue value refers to the number of values ​​queued during processing, and the single processing time value refers to the time value required to receive and process a single data. The queue value and the single processing time value are retrieved through the data processing status information to facilitate subsequent use.

[0164] Step S1562: Determine the single processing time impact value corresponding to the single processing time value according to the corresponding relationship between the single processing time value and the preset single processing time impact value.

[0165] The individual processing time impact value refers to the degree of influence of an individual processing time value on network transmission delay. The individual processing time impact value is obtained by querying a database that stores the correspondence between individual processing time values ​​and individual processing time impact values. The database is retrieved and stored after pre-entry by the operator. Determining the individual processing time impact value through the individual processing time value query facilitates subsequent use.

[0166] Step S1563: Determine the queue number impact value based on the result of determining whether the queue number value is less than the preset queue reference number value.

[0167] Among them, the queue base number value refers to the number value corresponding to the normal queue number, and the queue base number value is obtained after pre-input by the operator. The queue number impact value refers to the degree of influence of the queue number on the network transmission delay. By analyzing the judgment result of whether the queue number value is less than the preset queue base number value, if it is less than, the queue number impact value corresponding to the queue number value is determined based on the correspondence between the queue number value and the preset queue number impact value; if it is not less than, the difference between the queue number value and the queue base number value is calculated and used as the queue number deviation value; based on the correspondence between the queue number deviation value and the preset queue number deviation impact value, the queue number deviation impact value corresponding to the queue number deviation value is determined, and the sum of the queue number deviation impact value and the preset queue number benchmark impact value is calculated and used as the queue number impact value.

[0168] The queue number impact value can be retrieved from a database that stores correspondences between queue number values ​​and queue number impact values. This database is retrieved and stored after operator input. The queue number deviation impact value can be retrieved from a database that stores correspondences between queue number deviation values ​​and queue number deviation impact values. This database is retrieved and stored after operator input. The queue number baseline impact value indicates the degree of influence of the queue number baseline value on network transmission delay. This queue number baseline impact value is retrieved after operator input.

[0169] Step S1564: Calculate the sum of the single processing time impact value and the queue number impact value and use it as the processing situation impact value.

[0170] The accuracy of the obtained processing situation impact value is improved by calculating the sum of the single processing time impact value and the queue number impact value and using it as the processing situation impact value.

[0171] Step S157: Calculate the sum of the initial value of the delay distance and the processing situation impact value and use it as the delay adjustment value, and use the delay adjustment value as the delay reference value.

[0172] The delay adjustment value refers to an adjustment value for adjusting the delay. The delay adjustment value is calculated by adding the initial value of the delay distance and the processing situation impact value, and the delay adjustment value is used as the delay reference value, thereby improving the accuracy of the obtained delay reference value.

[0173] exist Figure 5 In step S180 shown, in order to further ensure the rationality of the impact processing information, it is necessary to perform further separate analysis and calculation on the impact processing information, which is specifically described in detail through the following steps.

[0174] The method for determining the impact processing information includes the following steps:

[0175] Step S181: Determine the deviation cause information based on the delay deviation value analysis.

[0176] The deviation cause information refers to the cause information that causes the deviation of network transmission delay. By analyzing the delay deviation value, the deviation cause information is determined to facilitate subsequent use.

[0177] Furthermore, in order to improve the accuracy of the obtained deviation cause information, the method for determining the deviation cause information includes:

[0178] Step S1811: Determine whether the delay deviation value is greater than a preset power-off reference deviation value. If yes, execute step S1812; if no, execute step S1819.

[0179] The power outage reference deviation value refers to a reference deviation value corresponding to a network transmission delay that may occur during a power outage, and the power outage reference deviation value is obtained after being pre-input by an operator.

[0180] By determining whether the time delay deviation value is greater than a preset power-off reference deviation value, it is determined whether there is a possibility of power outage.

[0181] Step S1812: Retrieve the location of the adjacent device based on the data receiving location.

[0182] Among them, the adjacent device location point refers to the location point of the device corresponding to the data receiving location point. When the delay deviation value is greater than the preset power outage reference deviation value, it means that there is a possibility of power outage at this time. Therefore, the adjacent device location point is retrieved through the data receiving location point for subsequent use.

[0183] Step S1813: Calculate the distance between the data receiving location point and the adjacent device location point and use it as the adjacent device distance value.

[0184] The adjacent device distance value refers to the distance between the adjacent device and the data receiving location point. The distance between the data receiving location point and the adjacent device location point is calculated and used as the adjacent device distance value for convenience in subsequent use.

[0185] Step S1814: Determine the adjacent transmission time value corresponding to the adjacent device distance value according to the corresponding relationship between the adjacent device distance value and the preset adjacent transmission time value.

[0186] The adjacent transmission time value refers to the time required for adjacent devices to transmit a signal. The adjacent transmission time value is obtained by querying a database that stores the correspondence between adjacent device distance values ​​and adjacent transmission time values. The database is retrieved and stored after the operator pre-enters the value. Determining the adjacent transmission time value by querying the adjacent device distance value facilitates subsequent use.

[0187] Step S1815: Control the adjacent receiving device to output the preset power failure detection information to the data receiving location and query and obtain the power failure feedback information after the adjacent transmission time value.

[0188] The power outage detection information refers to detection information used to detect whether a power outage has occurred, and the power outage detection information is pre-set and stored by the operator. The power outage feedback information refers to feedback information used to determine whether a power outage has occurred.

[0189] Step S1816: When the power outage feedback information is received, the preset line reason information is output as the deviation reason information.

[0190] Among them, the line cause information refers to the cause information of the delay caused by line damage. When the power outage feedback information is received, it means that no power outage has occurred at this time, so the preset line cause information is output and used as the deviation cause information, thereby improving the accuracy of the obtained deviation cause information.

[0191] Step S1817: When no power outage feedback information is received, the preset power outage reason information is output as the deviation reason information.

[0192] Among them, the power outage cause information refers to the cause information of the deviation in network transmission delay caused by the power outage. When no power outage feedback information is received, it means that a power outage has occurred at this time, so the preset power outage cause information is output and used as the deviation cause information, thereby improving the accuracy of the obtained deviation cause information.

[0193] Step S1818: Output the preset other reason information as the deviation reason information.

[0194] Among them, other cause information refers to the cause information of delay caused by other situations such as the size of network transmission data. When the delay deviation value is not greater than the preset power outage reference deviation value, it means that there is no possibility of power outage at this time, so the preset other cause information is output and used as the deviation cause information, thereby improving the accuracy of the obtained deviation cause information.

[0195] Step S182: Determine whether the deviation reason information is the preset power-off reason information. If yes, execute step S183; if not, execute step S187.

[0196] The power outage cause information refers to the reason for the deviation in network transmission delay caused by the power outage. The power outage cause information is obtained after being pre-entered by the operator. By analyzing whether the deviation cause information is the preset power outage cause information, it is determined whether a power outage warning is needed.

[0197] Step S183: Control the preset charging module to output and obtain the remaining power value.

[0198] Among them, the charging module refers to the module that charges the network receiving module, and the remaining power value refers to the remaining power value of the charging module. When the deviation reason information is the preset power off reason information, it means that a power off warning is required at this time, so the preset charging module is controlled to output and obtain the remaining power value, which is convenient for subsequent use.

[0199] Step S184: Retrieve receiving device information based on the data receiving location point.

[0200] Among them, the receiving device information refers to the device information corresponding to the network receiving module, and the receiving device information is retrieved through the data receiving location point to facilitate subsequent use.

[0201] Step S185: Determine the battery usage time value based on the received device information and the remaining battery value.

[0202] The power usage time value refers to the time value that can be used to charge the charging module. The power usage time value is determined by analyzing the receiving device information and the remaining power value, which is convenient for subsequent use.

[0203] Step S186: According to the correspondence between the power usage time value and the preset power outage warning information, the power outage warning information corresponding to the power usage time value is determined, and the power outage warning information is output to the terminal held by the administrator.

[0204] Power outage warning information refers to warnings of power outages. This information is retrieved from a database that stores the correspondence between power usage time values ​​and power outage warning information. This database is retrieved after the operator pre-enters the information. The administrator's terminal is a terminal that can receive signals for personnel managing network transmissions. The administrator's terminal can be a mobile phone or computer. Power outage warning information is determined by querying the power usage time value and output to the administrator's terminal, thereby providing the administrator with a timely power outage warning.

[0205] Step S187: Determine the delay deviation warning information corresponding to the delay deviation value according to the correspondence between the delay deviation value and the preset delay deviation warning information, and output the delay deviation warning information to the terminal held by the administrator.

[0206] Delay deviation warning information refers to warnings regarding network transmission delay deviations. This information is retrieved from a database that stores correspondences between delay deviation values ​​and delay deviation warning information. This database is pre-entered by the operator and retrieved. If the deviation cause information is not a preset power outage cause, a power outage warning is not required. Therefore, the delay deviation warning information is determined by querying the delay deviation value and outputted to the administrator's terminal, allowing the administrator to promptly understand the delay deviation.

[0207] In step S185 , in order to further ensure the rationality of the power usage time value, it is necessary to perform further separate analysis and calculation on the power usage time value, which is specifically described in detail through the following steps.

[0208] The method for determining the power usage time value includes the following steps:

[0209] Step S1851: Retrieve the device benchmark power consumption value and receive the unit power consumption value based on the received device information.

[0210] Among them, the device baseline power consumption value refers to the baseline value of power consumption when the network receiving module performs basic operation, and the receiving unit power consumption value refers to the additional power consumption value per unit time when the network receiving module receives data. The device baseline power consumption value and the receiving unit power consumption value are retrieved by receiving device information to facilitate subsequent use.

[0211] Step S1852: Retrieve the ambient temperature value and the ambient humidity value based on the data receiving location point.

[0212] Among them, the ambient temperature value refers to the temperature value of the environment in which the network receiving module is located, and the ambient humidity value refers to the humidity value of the environment in which the network receiving module is located. The ambient temperature value and the ambient humidity value are retrieved through the data receiving location point for convenience of subsequent use.

[0213] Step S1853: determining the ambient temperature impact value corresponding to the ambient temperature value according to the corresponding relationship between the ambient temperature value and the preset ambient temperature impact value.

[0214] The ambient temperature impact value refers to the impact of ambient temperature on power consumption. The ambient temperature impact value is obtained by querying a database that stores the corresponding relationship between ambient temperature values ​​and ambient temperature impact values. The database is obtained after the operator pre-enters the database. Determining the ambient temperature impact value through the ambient temperature query facilitates subsequent use.

[0215] Step S1854: determining the ambient humidity impact value corresponding to the ambient humidity value according to the corresponding relationship between the ambient humidity value and the preset ambient humidity impact value.

[0216] The ambient humidity impact value refers to the impact of ambient humidity on power consumption. The ambient humidity impact value is obtained by querying a database that stores the corresponding relationship between ambient humidity values ​​and ambient humidity impact values. The database is obtained after the operator pre-enters the database. Determining the ambient humidity impact value through the ambient humidity query facilitates subsequent use.

[0217] Step S1855: Based on the preset power usage time value calculation formula, the device baseline power consumption value, the receiving unit power consumption value, the receiving number value, the remaining power value, the ambient temperature impact value and the ambient humidity impact value are analyzed and calculated to determine the power usage time value.

[0218] The calculation formula for the power usage time value is: t is the power usage time value, E is the remaining power value, α is the device benchmark power consumption value, x is the number of receptions value, β is the unit power consumption value of reception, μ1 is the ambient temperature impact value, and μ2 is the ambient humidity impact value.

[0219] For example, when E=3, α=0.2, x=2, β=0.1, μ1=0.1, μ2=0.1, the battery usage time value is

[0220] Based on the same inventive concept, an embodiment of the present invention provides a network transmission delay statistics system based on FPGA resource optimization, including:

[0221] An acquisition module is used to obtain received data information, received times, sent data information and remaining power value;

[0222] Memory, used to store Figures 1 to 6 A program for the network transmission delay statistics method based on FPGA resource optimization according to any one of the above;

[0223] The processor loads the program in the execution memory and implements the following Figures 1 to 6 Any one of the network transmission delay statistics methods based on FPGA resource optimization.

[0224] Based on the same inventive concept, an embodiment of the present invention provides an intelligent terminal, including a memory and a processor, wherein the memory stores data that can be loaded and executed by the processor. Figures 1 to 6 A computer program for any one of the network transmission delay statistics methods based on FPGA resource optimization.

[0225] Those skilled in the art will clearly understand that for the sake of convenience and brevity, the division of the above-mentioned functional modules is only used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0226] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiment. All technical solutions based on the concept of the present invention are within the scope of protection of the present invention. It should be noted that for those skilled in the art, various improvements and modifications that do not depart from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A network transmission delay statistics method based on FPGA resource optimization, characterized in that: include: Real-time acquisition of the received data information and reception times corresponding to different signals. The received data information refers to the data information received by the network receiving module at the current time. The network receiving module refers to the module that receives during network transmission. Determine the storage number value based on the received data information and the number of receptions; Determine a preset common storage module based on the storage number value and perform calculation and storage on the received data information, where the common storage module refers to a module for common data storage; When receiving the instruction to read statistical data, the written data value and written data information in the preset statistical module are read. The statistical module refers to the module that counts the delay in the data, and the written data information refers to the data information written by the statistical module within the current time; Determine timing data statistical result information based on the written data information and the written data numerical value analysis, and output the timing data statistical result information; Determining a preset common storage module based on the storage number value and calculating and storing the received data information includes: Retrieve data ID information based on received data information, where the data ID information refers to the ID information corresponding to the received data; Determine the initial storage address information based on the data ID information and the result of determining whether the storage number value is the initial number value, and store the received data information in the common storage module corresponding to the initial storage address information; Determine whether the storage number value is less than the preset module resource value; If yes, then read the storage data in the common storage module corresponding to the initial number value and use it as the initial data information; Rereading the received data information from the initial storage address information and inputting it into a preset statistical module together with the initial data information to obtain delay statistical information and storing it in the preset statistical module; If not, read the latency statistics information of the preset statistics module; The received data information is re-read from the initial storage address information and inputted into the preset statistical module together with the delay statistical information to adjust and replace the delay statistical information and continue to be stored in the preset statistical module.

2. The network transmission delay statistics method based on FPGA resource optimization according to claim 1 is characterized in that: Methods for determining storage number values ​​include: Retrieving data path values ​​based on received data information; Determine whether the data path value exists; If yes, the preset initial number value is used as the storage number value, where the initial number value refers to the number value corresponding to the common storage module for initially storing data; If not, a storage adjustment number value is determined based on a comparison result between the reception times value and a preset module resource number value, and the storage adjustment number value is used as the storage number value.

3. The network transmission delay statistics method based on FPGA resource optimization according to claim 1 is characterized in that: The method for determining the initial storage address information includes: Determine whether the stored number value is the initial number value; If yes, then determine the ID storage address information corresponding to the data ID information according to the correspondence between the data ID information and the preset ID storage address information, and use the ID storage address information as the initial storage address information; If not, the pre-allocated address information is retrieved based on the storage number value, and the pre-allocated address information is used as the initial storage address information.

4. The network transmission delay statistics method based on FPGA resource optimization according to claim 1 is characterized in that: The method further includes the following steps after obtaining the received data information and the number of received times corresponding to different signals in real time: Retrieve the data receiving time point based on the received data information; Get sending data information in real time; Retrieve the data sending time point based on the sending data information; Calculate the difference between the data sending time point and the data receiving time point and use it as the sending and receiving delay value; Determine the delay benchmark value based on the analysis of received data information and sent data information; Determine whether the sending and receiving delay value is greater than the delay reference value; If yes, the difference between the transmit and receive delay value and the delay reference value is calculated and used as the delay deviation value; Determine impact processing information based on the delay deviation value analysis and execute the impact processing information; If not, continue to analyze and determine the storage number value based on the received data information and the number of receptions.

5. The network transmission delay statistics method based on FPGA resource optimization according to claim 4 is characterized in that: Methods for determining the latency baseline include: Retrieving a data receiving location point based on the received data information; Retrieve the data sending location point based on the sending data information; Calculate the distance between the data receiving location and the data sending location and use it as the data receiving and sending distance value; According to the correspondence between the data receiving and sending distance value and the preset delay distance initial value, the delay distance initial value corresponding to the data receiving and sending distance value is determined; Retrieve data processing information based on the data receiving location point; Determine the processing impact value based on the data processing information analysis. The processing impact value refers to the degree of impact of the processing on the network transmission delay. The sum of the initial value of the delay distance and the impact value of the processing situation is calculated and used as the delay adjustment value, and the delay adjustment value is used as the delay reference value.

6. The network transmission delay statistics method based on FPGA resource optimization according to claim 5 is characterized in that: Methods for determining impact processing information include: Determine the cause of the deviation based on the delay deviation value analysis; Determine whether the deviation reason information is the preset power outage reason information; If yes, the preset charging module is controlled to output and obtain the remaining power value; Retrieve receiving device information based on the data receiving location point; Determine the battery usage time value based on the receiving device information and the remaining battery value; According to the correspondence between the power usage time value and the preset power outage warning information, the power outage warning information corresponding to the power usage time value is determined, and the power outage warning information is output to the terminal held by the administrator; If not, the delay deviation warning information corresponding to the delay deviation value is determined according to the correspondence between the delay deviation value and the preset delay deviation warning information, and the delay deviation warning information is output to the terminal held by the administrator.

7. The network transmission delay statistics method based on FPGA resource optimization according to claim 6 is characterized in that: Methods for determining the power usage time value include: Retrieve the device benchmark power consumption value and the receiving unit power consumption value based on the receiving device information; Retrieve ambient temperature and humidity values ​​based on data receiving location points; According to the corresponding relationship between the ambient temperature value and the preset ambient temperature influence value, the ambient temperature influence value corresponding to the ambient temperature value is determined; According to the corresponding relationship between the ambient humidity value and the preset ambient humidity impact value, the ambient humidity impact value corresponding to the ambient humidity value is determined; Based on the preset power usage time value calculation formula, the device baseline power consumption value, receiving unit power consumption value, receiving times value, remaining power value, ambient temperature impact value and ambient humidity impact value are analyzed and calculated to determine the power usage time value. The power usage time value calculation formula is: , t is the power usage time value, E is the remaining power value, α is the device benchmark power consumption value, x is the number of receptions, β is the unit power consumption value of reception, μ1 is the ambient temperature impact value, and μ2 is the ambient humidity impact value.

8. A network transmission delay statistics system based on FPGA resource optimization, characterized in that: include: An acquisition module is used to obtain received data information, received times, sent data information and remaining power value; A memory, configured to store a program of the network transmission delay statistics method based on FPGA resource optimization according to any one of claims 1 to 7; A processor is configured to load and execute a program in a memory and implement the network transmission delay statistics method based on FPGA resource optimization according to any one of claims 1 to 7.

9. An intelligent terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the network transmission delay statistics method based on FPGA resource optimization according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Network time delay test method, device and system

    CN112600735A

  • System and method for measuring network delay and jitter

    CN112822067A