Network transmission time delay statistical method, system and terminal based on FPGA resource optimization
By acquiring received data information and the received value in real time, analyzing and determining the stored number value, and calculating and storing it based on the number value, the problem of resource tightness in network transmission delay statistics in the prior art FPGA resource optimization method is solved, and a more efficient resource utilization rate is achieved.
Patent Information
- Application Number
- CN202510057468.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-14
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-01-14
AI Technical Summary
The existing FPGA resource optimization method based on lookup table resources has the problem of resource tightness in network transmission delay statistics, which is difficult to meet the needs of large-scale program function development.
By acquiring the received data information and the received value in real time, a storage number value is determined, and a preset ordinary storage module is determined based on the number value for calculation and storage. When a read statistical data instruction is received, the timing data statistics result information is read and output.
Effectively utilize internal chip resources, improve the resource utilization rate of network transmission delay statistics, and facilitate meeting current and subsequent development needs.
Smart Images

Figure CN119854178A_ABST
Abstract
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 transmitting data from one location to another using physical paths and devices in a computer network. Since there is a time delay in the receiving and sending process of network transmission, in order to ensure the normal operation and security of the system, there are generally high requirements for the real-time performance of network transmission.
[0003] At present, for the real-time performance of network transmission, the time when the network sender sends data and the time when the receiver receives data are synchronously recorded according to a certain time accuracy. The time accuracy, the time when the sender starts sending, and the time when the receiver receives data are all counted synchronously according to the interval of the synchronous clock. Then, the time delay between receiving and sending is synchronously counted according to a certain time interval, which is an important basis for judging the realization of system functions. At present, field programmable gate array (FPGA) resource optimization based on lookup table resources is generally used to perform network transmission delay statistics.
[0004] Since the internal resources of a fixed-model chip are fixed, the lookup table resources often cannot meet the usage requirements for large-scale program function development. In addition, when arithmetic (addition, subtraction, division, etc.) operations 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 solution:
[0007] A network transmission delay statistics method based on FPGA resource optimization, comprising:
[0008] Obtain the received data information and reception times corresponding to different signals in real time;
[0009] Determine the storage number value based on the received data information and the number of received times;
[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 the statistical data, the written data value and the written data information in the preset statistical module are read;
[0012] The timing data statistical result information is determined according to 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 according to a comparison result between the reception times value and the 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 according to the judgment result of 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] Re-reading 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 storage module;
[0024] If not, read the latency statistics information of the preset statistics storage module;
[0025] The received data information is re-read from the initial storage address information and input 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 storage 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 according to the correspondence between the data ID information and the preset ID storage address information, the ID storage address information corresponding to the data ID information is determined, and the ID storage address information is used 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 a step after obtaining the received data information and the number of received times corresponding to the signals of different paths in real time, which is 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 reference value based on the received data information and the 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] The impact processing information is determined based on the delay deviation value analysis, and the impact processing information is executed.
[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.
[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] Retrieving 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 situation 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, the method for determining the impact processing information includes:
[0049] Determine the deviation cause information based on the delay deviation value analysis;
[0050] Determine whether the deviation reason information is the preset power failure reason information;
[0051] If yes, the preset charging module is controlled to output and obtain the remaining power value;
[0052] Retrieving receiving device information based on the data receiving location point;
[0053] Determine the power usage time value based on the receiving device information and the remaining power 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, the method for determining the power usage time value includes:
[0057] Retrieving the device benchmark power consumption value and receiving unit power consumption value based on the receiving device information;
[0058] Retrieve the ambient temperature and humidity values based on the data receiving location point;
[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 influence value, the ambient humidity influence 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, 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, wherein 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 solution:
[0063] A network transmission delay statistics system based on FPGA resource optimization, comprising:
[0064] An acquisition module is used to acquire received data information, received times, sent data information and remaining power value;
[0065] A memory, used to store a program of 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 comprises a memory and a processor, wherein the memory stores a computer program which 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 receiving the instruction to read statistical data, the written data value and the written data information are read, and the timing data statistical result information is analyzed and determined and output, so that different data can be processed through different reception times, so as to effectively utilize the internal resources of the chip and facilitate the current stage and subsequent development;
[0071] 2. Retrieve the data path value by receiving data information, and judge 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 comparison result of the received number value and the preset module resource number value, so as to determine the storage adjustment number value and use it as the storage number value, thereby improving the accuracy of the acquired 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, so as 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 storage 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 storage 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 to meet the current stage and subsequent development. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 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 in an embodiment of the present application;
[0075] Figure 3 It 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 in an embodiment of the present application;
[0077] Figure 5 This is a method flow chart of the steps after real-time acquisition of received data information and reception times corresponding to different signals in an embodiment of the present application;
[0078] Figure 6 It 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 in conjunction with 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 storage number values, then calculates and stores, and when receiving a statistical data reading instruction, reads the number of written data values and write data information to analyze and determine timing data statistics result information and outputs it, thereby effectively utilizing chip internal resources, conveniently meeting the current stage and subsequent development, and after receiving the received data information, the transceiver delay value is calculated and analyzed to determine whether to continue to store or perform impact processing, thereby ensuring the accuracy of the received data information.
[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: acquiring the received data information and the number of received 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 acquiring 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 according to the received data information and the number of reception times.
[0085] The storage number value refers to the number value of the common storage module corresponding to the data storage, and the common storage module refers to a module for common data storage. 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 number of reception times, so as to facilitate subsequent use.
[0086] Step S300: determining a preset common storage module based on the storage number value and calculating and storing 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 for storage, so as to facilitate subsequent use.
[0088] Step S400: when receiving a command to read statistical data, reading the number of written data and written data information in a preset statistical module.
[0089] Among them, the instruction to read statistical data refers to an instruction for controlling the statistics of data, and the instruction to read statistical data is obtained after pre-input by an operator or administrator. The statistical module refers to a module for counting the delay in the data. In this embodiment, the statistical module is also a RAM module. The number of written data values refers to the number of values corresponding to the data written by the statistical module within the current time, and the written data information refers to the data information written by the statistical module within the current time. By reading the number of written data values and the written data information in the statistical module, it is convenient for subsequent use.
[0090] Step S500: determining timing data statistical result information according to 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 write data information and the individual values of the write data, and calculating the quotient between the write data information and the individual values of the write data, 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 to meet 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 are 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 value corresponding to the common storage module for initial storage of data, and the initial number value is obtained after being pre-input by the operator. In this embodiment, the initial number value is the first common storage module. When the data path value exists, it means that the data currently received and the data received in the previous reception times come from the same signal path, so the preset initial number value is used as the storage number value.
[0100] Step S240: Determine a storage adjustment number value according to a comparison result between the reception times value and a preset module resource number value, and use the storage adjustment number value as the storage number value to improve the accuracy of the acquired storage number value.
[0101] Among them, the storage adjustment number value refers to the number value after adjusting the number value corresponding to the common storage module that needs to be stored. When the data path value does not exist, it means that the data currently received and the data received in the previous reception times do not come from the same signal path. Therefore, by analyzing the comparison result of the reception times value and the preset module resource number value, when the reception times value is greater than the module resource number value, the initial number value is used as the storage adjustment number value, and when the reception times value is not greater than the module resource number value, the reception times value is used as the storage adjustment number value, and then the storage adjustment number value is used as the storage number value, so as to improve the accuracy of the acquired storage number value. In this embodiment, the module resource number value is 3. For example, the initial number value is 1. When the reception times value is 2, the storage number value is 2. When the reception times value is 4, the storage number value is 1.
[0102] exist Figure 1 In step S300, 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 , based on the storage number value, determining the preset common storage module and calculating and storing the received data information includes the following steps:
[0104] Step S310: Retrieve data ID information based on 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, so as to facilitate subsequent use.
[0106] Step S320: determining the initial storage address information according to 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 storage number value is less than the preset module resource number value. If yes, execute step S340; if no, execute step S360.
[0109] The module resource number value refers to the number of common storage modules currently available for storage. By judging whether the storage number value is less than the preset module resource number value, it is determined whether the common storage module needs to be reused.
[0110] Step S340: reading the storage data in the common storage module corresponding to the initial number value and using 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-read the received data information from the initial storage address information and input it into the preset statistical module together with the initial data information to obtain delay statistical information and store it in the preset statistical storage module.
[0113] The delay statistical information refers to the statistical information after the delay of network transmission is counted, which is obtained by re-reading the received data information from the initial storage address information, and inputting the initial data information and the received data information into the preset statistical module at the same time, and then analyzing and calculating through the statistical module to obtain the delay statistical information and store it in the preset statistical storage module. The delay statistical information corresponding to the instruction to read the statistical data is the write data information.
[0114] Step S360: Read the delay statistical information of the preset statistical storage 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 storage 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 storage module, thereby improving the accuracy of the acquired 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 comprises the following steps:
[0120] Step S321: Determine whether the stored serial number value is an initial serial number value. If yes, execute step S322; if no, execute step S323.
[0121] 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 the pre-allocated address information based on the storage number value, and use the pre-allocated address information as the 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 receiving times corresponding to the 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 received times corresponding to the signals of different paths 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 when the data is received. The data receiving time point is retrieved by receiving data information to facilitate subsequent use.
[0131] Step S120: Acquire the 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 when performing network transmission. The sent data information is obtained in real time, so as to facilitate 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 when 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] Among them, the sending and receiving delay value refers to the delay time value corresponding to the delay between sending and receiving in the network transmission process. The difference between the data sending time point and the data receiving time point is calculated and used as the sending and receiving delay value for convenience in subsequent use.
[0137] Step S150: Determine a delay reference value based on analysis of received data information and sent data information.
[0138] The latency reference value refers to the benchmark delay time value for sending and receiving during normal network transmission. The latency reference value is determined by analyzing the received data information and the sent data information to facilitate 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 no, execute step S190.
[0140] Among them, by judging whether the sending and receiving delay value is greater than the delay reference value, it is judged whether an abnormality occurs in the network transmission process.
[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 delay of network transmission. When the sending and receiving delay value is greater than the delay reference value, it means that an abnormality occurs in the network transmission process at this time. Therefore, the difference between the sending and receiving delay value and the delay reference value is calculated and used as the delay deviation value for subsequent use.
[0143] Step S180: determining the impact processing information according to the delay deviation value analysis, and executing the impact processing information.
[0144] The impact processing information refers to information for processing anomalies occurring during network transmission. By analyzing the delay deviation value, the impact processing information is determined and executed, thereby timely processing anomalies occurring during network transmission.
[0145] Step S190: Continue to execute step S200.
[0146] When the transmission / reception delay value is not greater than the delay reference value, it indicates that no abnormality occurs in the network transmission process at this time, so step S200 is continued.
[0147] exist Figure 5 In step S150 shown in the figure, in order to further ensure the rationality of the delay reference value, it is necessary to further analyze and calculate the delay reference value separately, specifically by 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 point based on the received data information.
[0150] The data receiving position point refers to the position point at which data is received. The data receiving position point is retrieved by receiving data information to facilitate subsequent use.
[0151] Step S152: Retrieve the data sending location point based on the sending data information.
[0152] The data sending location point refers to the location point when 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 position point and the data sending position point and use it as the data sending and receiving distance value.
[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 for convenience in subsequent use.
[0155] Step S154: determining the initial time delay distance value corresponding to the data receiving and sending distance value according to the correspondence between the data receiving and sending distance value and the preset initial time delay distance value.
[0156] The delay distance initial value refers to the network transmission delay initial value caused by the distance between the sending and receiving points. The delay distance initial value is obtained by querying from a database storing the corresponding relationship between the data sending and receiving distance value and the delay distance initial value. The database is obtained after the operator pre-enters. The delay distance initial value is determined by querying the data sending and receiving distance value, which is convenient for 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, and the data processing status information is retrieved through the data receiving location point to facilitate subsequent use.
[0159] Step S156: Determine the processing situation impact value based on the data processing situation information analysis.
[0160] The processing situation impact value refers to the impact degree 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 single processing time impact value refers to the impact degree value of the single processing time value on the network transmission delay, and the single processing time impact value is obtained by querying from a database storing the corresponding relationship between the single processing time value and the single processing time impact value, and the database is obtained and stored after the operator pre-enters. The single processing time impact value is determined by querying the single processing time value, which is convenient for subsequent use.
[0166] Step S1563: Determine the queue number impact value based on the judgment result of 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 the operator pre-inputs. The queue number impact value refers to the impact degree value 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, when it is less than, according to the corresponding relationship between the queue number value and the preset queue number impact value, the queue number impact value corresponding to the queue number value is determined; when 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; according to the corresponding relationship 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 obtained by querying from a database storing the corresponding relationship between the queue number value and the queue number impact value, and the database is obtained and stored after the operator pre-enters. The queue number deviation impact value is obtained by querying from a database storing the corresponding relationship between the queue number deviation value and the queue number deviation impact value, and the database is obtained and stored after the operator pre-enters. The queue number benchmark impact value refers to the impact degree value of the queue benchmark value on the network transmission delay, and the queue number benchmark impact value is obtained after the operator pre-enters.
[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 taking 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 the adjustment value for adjusting the delay, and the delay adjustment value is calculated as the sum of the delay distance initial value 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 the 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 judging whether the delay deviation value is greater than a preset power-off reference deviation value, it is judged whether there is a possibility of power outage.
[0181] Step S1812: Retrieve the adjacent device location point based on the data receiving location point.
[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 to facilitate 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 value between the adjacent device and the data receiving location point. By calculating the distance between the data receiving location point and the adjacent device location point and using it as the adjacent device distance value, subsequent use is facilitated.
[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] Among them, the adjacent transmission time value refers to the time value required for adjacent devices to transmit signals, and the adjacent transmission time value is obtained by querying from a database storing the corresponding relationship between the adjacent device distance value and the adjacent transmission time value, and the database is obtained and stored after the operator pre-enters. The adjacent transmission time value is determined by querying the adjacent device distance value, which is convenient for subsequent use.
[0187] Step S1815: Control the adjacent position receiving device information to output the preset power failure detection information to the data receiving position point and query and obtain the power failure feedback information after the adjacent transmission time value.
[0188] The power failure detection information refers to detection information used to detect whether a power failure occurs, and the power failure detection information is preset and stored by an operator. The power failure feedback information refers to feedback information used to determine whether a power failure occurs.
[0189] Step S1816: When power outage feedback information is received, the preset line reason information is output and used as the deviation reason information.
[0190] Among them, the line reason information refers to the reason information of the delay caused by line damage. When the power outage feedback information is received, it means that there is no power outage at this time, so the preset line reason information is output and used as the deviation reason information, thereby improving the accuracy of the obtained deviation reason information.
[0191] Step S1817: When no power outage feedback information is received, the preset power outage reason information is output and used 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 reason information refers to the reason 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 reason information is output and used as deviation reason information, thereby improving the accuracy of the obtained deviation reason information.
[0195] Step S182: Determine whether the deviation reason information is the preset power-off reason information. If yes, execute step S183; if no, execute step S187.
[0196] The power outage cause information refers to the cause information of the deviation of the network transmission delay caused by the power outage, and the power outage cause information is obtained after being pre-input 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. Therefore, 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: Analyze and determine the power usage time value based on the receiving device information and the remaining power value.
[0202] The power usage time value refers to the time value that can be used when charging 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] Among them, power outage warning information refers to warning information for power outages, and the power outage warning information is obtained by querying from a database that stores the corresponding relationship between power usage time values and power outage warning information, and the database is obtained after pre-input by the operator. The terminal held by the administrator refers to a terminal that can receive signals for personnel who manage network transmission. The terminal held by the administrator can be a mobile phone or a computer. The power outage warning information is determined by querying the power usage time value, and the power outage warning information is output to the terminal held by the administrator, so that the administrator is warned of power outages in a timely manner.
[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] Among them, the delay deviation warning information refers to the warning information for warning the deviation of network transmission delay, and the delay deviation warning information is obtained by querying from a database storing the corresponding relationship between the delay deviation value and the delay deviation warning information, and the database is obtained after the operator pre-enters. When the deviation cause information is not the preset power failure cause information, it means that the power failure warning is not required at this time, so the delay deviation warning information is determined by querying the delay deviation value, and the delay deviation warning information is output to the terminal held by the administrator, so that the administrator can understand the delay deviation in time.
[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 benchmark power consumption value refers to the benchmark 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 benchmark 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 subsequent use.
[0213] Step S1853: Determine the ambient temperature influence value corresponding to the ambient temperature value according to the corresponding relationship between the ambient temperature value and the preset ambient temperature influence value.
[0214] The ambient temperature impact value refers to the impact value of the ambient temperature on the power consumption, and the ambient temperature impact value is obtained by querying from a database storing the corresponding relationship between the ambient temperature value and the ambient temperature impact value, and the database is obtained after the operator pre-enters. The ambient temperature impact value is determined by querying the ambient temperature value, which is convenient for subsequent use.
[0215] Step S1854: Determine the ambient humidity influence value corresponding to the ambient humidity value according to the corresponding relationship between the ambient humidity value and the preset ambient humidity influence value.
[0216] The environmental humidity impact value refers to the impact value of environmental humidity on power consumption, and the environmental humidity impact value is obtained by querying from a database storing the corresponding relationship between environmental humidity values and environmental humidity impact values, and the database is obtained after being pre-entered by the operator. The environmental humidity impact value is determined by querying the environmental humidity value, which is convenient for 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 acquire received data information, received times, sent data information and remaining power value;
[0222] Memory, used to store Figures 1 to 6 A program for a network transmission delay statistics method based on FPGA resource optimization as described in any one of the above;
[0223] The processor loads and executes the program in the memory and implements 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 a program 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 can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0226] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A network transmission delay statistics method based on FPGA resource optimization, characterized in that: include: Obtain the received data information and reception times corresponding to different signals in real time; Determine the storage number value based on the received data information and the number of received times; Determine a preset common storage module based on the storage number value and calculate and store the received data information; When receiving the instruction to read the statistical data, the written data value and the written data information in the preset statistical module are read; The timing data statistical result information is determined according to the written data information and the written data numerical value analysis, and the timing data statistical result information is output.
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; If not, a storage adjustment number value is determined according to a comparison result between the reception times value and the 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 2 is characterized in that: Determining a preset common storage module based on the storage number value and calculating and storing the received data information includes: Retrieving data ID information based on received data information; Determine the initial storage address information according to the judgment result of 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; Re-reading 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 storage module; If not, read the latency statistics information of the preset statistics storage module; The received data information is re-read from the initial storage address information and input 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 storage module.
4. The network transmission delay statistics method based on FPGA resource optimization according to claim 3 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 according to the correspondence between the data ID information and the preset ID storage address information, the ID storage address information corresponding to the data ID information is determined, and the ID storage address information is used 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.
5. 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 the signals of different paths 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 reference value based on the received data information and the 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; The impact processing information is determined based on the delay deviation value analysis, and the impact processing information is executed. If not, continue to analyze and determine the storage number value based on the received data information and the number of receptions.
6. The network transmission delay statistics method based on FPGA resource optimization according to claim 5 is characterized in that: Methods for determining the delay reference value 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. 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; Retrieving data processing information based on the data receiving location point; Determine the impact value of the processing situation based on the analysis of data processing situation information; 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.
7. The network transmission delay statistics method based on FPGA resource optimization according to claim 6 is characterized in that: Methods for determining information affecting processing include: Determine the deviation cause information based on the delay deviation value analysis; Determine whether the deviation reason information is the preset power failure reason information; If yes, the preset charging module is controlled to output and obtain the remaining power value; Retrieving receiving device information based on the data receiving location point; Determine the power usage time value based on the receiving device information and the remaining power 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.
8. The network transmission delay statistics method based on FPGA resource optimization according to claim 7 is characterized in that: Methods for determining the power usage time value include: Retrieving the device benchmark power consumption value and receiving unit power consumption value based on the receiving device information; Retrieve the ambient temperature and humidity values based on the data receiving location point; 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 influence value, the ambient humidity influence 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, 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, wherein 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.
9. A network transmission delay statistics system based on FPGA resource optimization, characterized in that: include: An acquisition module is used to acquire received data information, received times, sent data information and remaining power value; A memory, used to store a program of the network transmission delay statistics method based on FPGA resource optimization according to any one of claims 1 to 8; A processor is configured to load and execute a program in a memory and implement a network transmission delay statistics method based on FPGA resource optimization as described in any one of claims 1 to 8.
10. An intelligent terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes the network transmission delay statistics method based on FPGA resource optimization as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Network time delay test method, device and system
CN112600735A
System and method for measuring network delay and jitter
CN112822067A
Data reading method and device, data writing method and device, bandwidth conversion device and electronic equipment
CN116431079A
Test device and test method
JP2007200371A
Latency Monitoring for Network Devices
US20170339041A1