Broadband ad hoc network test and file restoration method based on sample file

By using sample files in the broadband ad hoc network for network testing, and using time window and sliding window methods for data analysis and file restoration, it solves the problem that existing tools cannot effectively verify the integrity and accuracy of broadband ad hoc network transmission. problem, enabling more efficient and reliable network performance assessment.

CN119341940APending Publication Date: 2025-01-21湖南智领通信科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411470763.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

Existing network testing tools cannot effectively use sample files to verify the integrity and accuracy of broadband ad hoc network transmission, and cannot restore the transmitted sample files after the test is completed, limiting the feasibility and practicality of the test. .

Method used

The server issues test instructions and sample files in the broadband ad-hoc network. The sender and receiver encapsulate and report data packets respectively. The server uses time windows for data statistical analysis and extracts load data through sliding windows to restore the pre-test results. Sample files.

Benefits of technology

It achieves a more accurate simulation of actual data transmission scenarios, improves the authenticity and effectiveness of broadband ad hoc network performance evaluation, ensures the standardization and manageability of data transmission, and avoids the infeasibility of sample files in testing Performance and practicality are limited.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341940A_ABST
    Figure CN119341940A_ABST
Patent Text Reader

Abstract

The invention relates to a broadband ad hoc network test and file restoration method based on sample files. The method comprises the following steps: a server respectively issues a test instruction to a sending end and a receiving end through a broadband ad hoc network, and issues a sample file to the sending end; the sending end performs load data splitting and sending end information packaging on the sample file, and sends all data packets to a receiving end through a broadband ad hoc network; the receiving end records the received data packets one by one, carries out receiving end information packaging, and reports all the data packets to a server for storage through a broadband ad hoc network; and after the test is finished and the data is reported, the server performs statistical analysis on the stored data by adopting a time window to obtain a network performance index result of the broadband ad hoc network, extracts the load data in the stored data packets in batches by adopting a sliding window, and restores to obtain a sample file before the test. By adopting the method, the authenticity and effectiveness of network performance evaluation of the broadband ad hoc network can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network testing, and in particular to a broadband ad hoc network testing and file restoration method based on sample files. Background Art

[0002] Broadband ad hoc network is a dynamic network system that does not require fixed infrastructure and is usually used in a dynamic network environment that is rapidly deployed. Due to the characteristics of broadband ad hoc networks such as highly dynamic nodes and constantly changing topology, the stability of its network performance, transmission efficiency and data integrity face more stringent tests. In these application scenarios, testing network performance often involves actual application requirements of large-capacity data and high bandwidth, so it is crucial to conduct broadband ad hoc network test performance evaluation based on sample files (i.e., arbitrary files) with real payloads.

[0003] The current network testing tools on the market, such as Netperf and iperf, are mainly aimed at performance testing needs in ordinary network environments, and are usually used to test network parameters such as bandwidth, latency, and jitter. However, these tools do not support the use of sample files for testing, making it impossible for users to effectively verify the integrity and accuracy of broadband ad hoc network transmission. In addition, existing tools are also unable to restore the transmitted sample files after the test is completed, which limits the feasibility and practicality of using sample files in testing. Summary of the invention

[0004] Based on this, it is necessary to provide a broadband ad hoc network testing and file restoration method based on sample files to address the above technical issues.

[0005] A broadband ad hoc network testing and file restoration method based on sample files, the method comprising: The server sends test instructions to the sending end and the receiving end respectively through the broadband ad hoc network, and sends sample files to the sending end; The sender splits the sample file into payload data and encapsulates the sender information according to the size of a single packet, and sends all the data packets encapsulated by the sender to the receiver through the broadband ad hoc network. After the data packet is sent, the start time and end time of the data packet are further reported to the server for storage through the broadband ad hoc network. The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network; After the test of the sending and receiving ends is completed and the data reporting is completed, the server uses a time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; the server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample file before the test based on the extracted payload data.

[0006] In one embodiment, the sending end splits the sample file into payload data and encapsulates the sending end information according to the size of a single packet, and sends all the data packets encapsulated by the sending end to the receiving end through the broadband ad hoc network, including: The sender splits the sample file into payload data according to the size of a single packet, encapsulates each payload data into a data packet and sorts it, and encapsulates the sender timestamp, sender IP, sender port and data packet sequence number into the data packet; After the information encapsulation of the sender is completed, a test script for the traffic generator is written, all the data packets encapsulated by the sender are loaded into the test script, and the traffic generator is used to parse the test script and send all the data packets encapsulated by the sender to the receiving end through the broadband ad hoc network.

[0007] In one embodiment, the receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network, including: The receiving end records the received data packets one by one, and encapsulates the receiving end timestamp, receiving end IP and receiving end port into the data packet. After the receiving end information encapsulation is completed, all the receiving end encapsulated data packets are reported to the server for storage through the Kafka message middleware in the broadband ad hoc network.

[0008] In one of the embodiments, the server stores the data packet reported by the receiving end in the elastic search search engine.

[0009] In one embodiment, the server performs statistical analysis on the stored data by using a time window to obtain network performance indicator results of the broadband ad hoc network, including: The server dynamically plans the time interval according to the test duration to divide the time window, and uses the time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; among which, the network performance indicator results include latency, packet loss rate, transmission rate, packet group time difference and total number of data packets.

[0010] In one embodiment, the server extracts payload data from stored data packets in batches by using a sliding window, and restores the sample file before the test based on the extracted payload data, including: The server dynamically plans the sliding window size based on the size of a single packet, and uses the sliding window to batch extract the payload data in the data packet by sorting the data packet sequence number, merges and splices all the extracted payload data, and restores the sample file before the test.

[0011] In one embodiment, the method further comprises: Based on the restored sample files, the network performance index results of the broadband ad hoc network are benchmarked and analyzed, and the performance of the broadband ad hoc network during data transmission is evaluated through benchmarking analysis.

[0012] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented: The server sends test instructions to the sending end and the receiving end respectively through the broadband ad hoc network, and sends sample files to the sending end; The sender splits the sample file into payload data and encapsulates the sender information according to the size of a single packet, and sends all the data packets encapsulated by the sender to the receiver through the broadband ad hoc network. After the data packet is sent, the start time and end time of the data packet are further reported to the server for storage through the broadband ad hoc network. The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network; After the test of the sending and receiving ends is completed and the data reporting is completed, the server uses a time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; the server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample file before the test based on the extracted payload data.

[0013] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps: The server sends test instructions to the sending end and the receiving end respectively through the broadband ad hoc network, and sends sample files to the sending end; The sender splits the sample file into payload data and encapsulates the sender information according to the size of a single packet, and sends all the data packets encapsulated by the sender to the receiver through the broadband ad hoc network. After the data packet is sent, the start time and end time of the data packet are further reported to the server for storage through the broadband ad hoc network. The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network; After the test of the sending and receiving ends is completed and the data reporting is completed, the server uses a time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; the server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample file before the test based on the extracted payload data.

[0014] The above-mentioned broadband ad hoc network testing and file restoration method based on sample files, computer equipment and computer storage medium have the following technical effects compared with the prior art: 1. By using sample files to conduct real load data network testing of broadband ad hoc networks, it is possible to more accurately simulate actual data transmission scenarios and improve the authenticity and effectiveness of broadband ad hoc network performance evaluation.

[0015] 2. By splitting and encapsulating data packets, the standardization and manageability of data transmission are ensured, which helps to improve the reliability of the test process. By recording the time information of the sent and received data packets, various network performance indicators such as delay, packet loss rate, transmission rate, packet group time difference, etc. can be analyzed in detail, so that users can effectively verify the integrity and accuracy of broadband ad hoc network transmission.

[0016] 3. After the test is completed and the data is reported, the sliding window is used to extract the payload data in batches and restore the sample files of the stored data packets, which can avoid the feasibility and practicality of using sample files in network performance testing. In addition, the network performance index results of the broadband self-organizing network can be further analyzed based on the restored sample files to obtain the performance of the broadband self-organizing network during data transmission, which is conducive to optimizing the performance of the broadband self-organizing network. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of a process of a broadband ad hoc network test and file restoration method based on sample files in one embodiment; Figure 2 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0019] In one embodiment, Figure 1 As shown, a broadband ad hoc network test and file restoration method based on sample files is provided, comprising the following steps: Step S1: The server sends test instructions to the sending end and the receiving end respectively through the broadband ad hoc network, and sends a sample file to the sending end.

[0020] Among them, by using sample files to conduct real load data network testing of broadband self-organizing networks, it is possible to more accurately simulate actual data transmission scenarios and improve the authenticity and effectiveness of broadband self-organizing network performance evaluation.

[0021] Step S2: The sender splits the sample file into payload data and encapsulates the sender information according to the size of a single packet, and sends all the data packets encapsulated by the sender to the receiving end through the broadband self-organizing network. After the data packet is sent, the start time and end time of the data packet are further reported to the server for storage through the broadband self-organizing network.

[0022] Specifically, the sender splits the sample file into payload data according to the size of a single packet, encapsulates each payload data into a data packet and sorts it, and encapsulates the sender timestamp, sender IP, sender port and data packet sequence number into the data packet.

[0023] Furthermore, after the information encapsulation of the sender is completed, a test script of the traffic generator (MGEN) is written, all the data packets encapsulated by the sender are loaded into the test script, and the traffic generator is used to parse the test script and send all the data packets encapsulated by the sender to the receiving end through the broadband ad hoc network.

[0024] Among them, by splitting and encapsulating data packets, the standardization and manageability of data transmission are ensured, which helps to improve the reliability of the test process. And by recording the time information of the sent and received data packets, various network performance indicators such as delay, packet loss rate, transmission rate, packet group time difference, etc. can be analyzed in detail, so that users can effectively verify the integrity and accuracy of broadband ad hoc network transmission.

[0025] Step S3: The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network.

[0026] Specifically, the receiving end records the received data packets one by one, and encapsulates the receiving end timestamp, receiving end IP and receiving end port into the data packet. After the receiving end information encapsulation is completed, all the receiving end encapsulated data packets are reported to the server for storage through the Kafka message middleware in the broadband ad hoc network.

[0027] Furthermore, the server stores the data packets reported by the receiving end in the elastic search search engine.

[0028] Step S4: After the test of the sending end and the receiving end is completed and the data reporting is completed, the server uses a time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; the server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample file before the test based on the extracted payload data.

[0029] Specifically, after the test of the sending and receiving ends is completed and the data is reported, the server dynamically plans the time interval according to the test duration to divide the time window, and uses the time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; among them, the network performance indicator results include latency, packet loss rate, transmission rate, packet group time difference and total number of data packets.

[0030] The server dynamically plans the sliding window size based on the size of a single packet, and uses the sliding window to batch extract the payload data in the data packet by sorting the data packet sequence number, merges and splices all the extracted payload data, and restores the sample file before the test.

[0031] Restoring the sample files can avoid the limitation of feasibility and practicality of using the sample files in network performance testing. Furthermore, the server can also benchmark and analyze the network performance index results of the broadband ad hoc network based on the restored sample files, and evaluate the performance of the broadband ad hoc network in the data transmission process through benchmarking analysis, which is conducive to optimizing network performance.

[0032] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 2 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a broadband self-organizing network test and file restoration method based on a sample file is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0033] Those skilled in the art will understand that Figure 2The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0034] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented: The server sends test instructions to the sending end and the receiving end respectively through the broadband ad hoc network, and sends sample files to the sending end; The sender splits the sample file into payload data and encapsulates the sender information according to the size of a single packet, and sends all the data packets encapsulated by the sender to the receiver through the broadband ad hoc network. After the data packet is sent, the start time and end time of the data packet are further reported to the server for storage through the broadband ad hoc network. The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network; After the test of the sending and receiving ends is completed and the data reporting is completed, the server uses a time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; the server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample file before the test based on the extracted payload data.

[0035] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: The server sends test instructions to the sending end and the receiving end respectively through the broadband ad hoc network, and sends sample files to the sending end; The sender splits the sample file into payload data and encapsulates the sender information according to the size of a single packet, and sends all the data packets encapsulated by the sender to the receiver through the broadband ad hoc network. After the data packet is sent, the start time and end time of the data packet are further reported to the server for storage through the broadband ad hoc network. The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network; After the test of the sending and receiving ends is completed and the data reporting is completed, the server uses a time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; the server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample file before the test based on the extracted payload data.

[0036] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0037] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0038] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A broadband ad hoc network testing and file restoration method based on sample files, characterized in that: The method comprises: The server sends test instructions to the sending end and the receiving end respectively through the broadband ad hoc network, and sends sample files to the sending end; The sending end splits the sample file into payload data and encapsulates the sending end information according to the size of a single packet, and sends all the data packets encapsulated by the sending end to the receiving end through the broadband self-organizing network. After the data packet is sent, the sending start time and the sending end time of the data packet are further reported to the server through the broadband self-organizing network for storage; The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network; After the test of the sending and receiving ends is completed and the data reporting is completed, the server uses a time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; the server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample file before the test based on the extracted payload data.

2. The method according to claim 1, characterized in that The sending end splits the sample file into payload data and encapsulates the sending end information according to the size of a single packet, and sends all the data packets encapsulated by the sending end to the receiving end through the broadband ad hoc network, including: The sending end splits the sample file into payload data according to the size of a single packet, encapsulates each payload data into a data packet and sorts it, and encapsulates the sending end timestamp, the sending end IP, the sending end port and the data packet sequence number into the data packet; After the information encapsulation of the sending end is completed, a test script for the traffic generator is written, all the data packets encapsulated by the sending end are loaded into the test script, and the test script is parsed by the traffic generator and all the data packets encapsulated by the sending end are sent to the receiving end through the broadband self-organizing network.

3. The method according to claim 2, characterized in that The receiving end records the received data packets one by one and encapsulates the receiving end information, and reports all the encapsulated data packets of the receiving end to the server for storage through the broadband ad hoc network, including: The receiving end records the received data packets one by one, and encapsulates the receiving end timestamp, receiving end IP and receiving end port into the data packet. After the receiving end information encapsulation is completed, all the receiving end encapsulated data packets are reported to the server for storage through the Kafka message middleware in the broadband ad hoc network.

4. The method according to claim 3, characterized in that The server stores the data packets reported by the receiving end in the elastic search search engine.

5. The method according to claim 4, characterized in that The server uses a time window to perform statistical analysis on the stored data to obtain the network performance index results of the broadband ad hoc network, including: The server dynamically plans the time interval according to the test duration to divide the time window, and uses the time window to perform statistical analysis on the stored data to obtain the network performance indicator results of the broadband ad hoc network; wherein the network performance indicator results include latency, packet loss rate, transmission rate, packet group time difference and total number of data packets.

6. The method according to claim 5, characterized in that The server uses a sliding window to batch extract the payload data in the stored data packets, and restores the sample files before the test based on the extracted payload data, including: The server dynamically plans the sliding window size based on the size of a single packet, and uses the sliding window to batch extract the payload data in the data packet by sorting the data packet sequence number, merges and splices all the extracted payload data, and restores the sample file before the test.

7. The method according to claim 6, characterized in that The method further comprises: Based on the restored sample files, the network performance index results of the broadband ad hoc network are benchmarked and analyzed, and the performance of the broadband ad hoc network during data transmission is evaluated through benchmarking analysis.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.