Network routing traffic simulation method and device

By defining scene association rules and using simulation modules to simulate application layer protocols and time parameters, generating and analyzing network data packets, the problem that the existing technology cannot fully simulate real network traffic scenarios is solved, and more accurate testing of network devices is achieved and verification.

CN119402371APending Publication Date: 2025-02-07GUANGZHOU LANGQIAO WEISHI COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411509244.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

Existing network traffic simulation methods cannot fully simulate real traffic scenarios in the network, and it is difficult to simulate the interaction between complex network environments and various network protocols.

Method used

By defining scene association rules, the first simulation module and the second simulation module simulate the application layer protocol and time parameters, generate network data packets, and send and receive through the first network card and the second network card, parse and analyze network data Package to get test results.

Benefits of technology

It realizes comprehensive simulation and simulation of various network traffic scenarios in real network environments, and can test network devices more accurately and ensure their stability in complex network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402371A_ABST
    Figure CN119402371A_ABST
Patent Text Reader

Abstract

The invention discloses a network routing traffic simulation method and device, and relates to the technical field of traffic simulation, the simulation device comprises a first receiving module, an acquisition module, a first simulation module, a second simulation module, a sending module, a second receiving module, an analysis module, an analysis module and an output module, the first simulation module comprises a first simulation sub-module, a second simulation sub-module and a third simulation sub-module. According to the invention, the real traffic scene is defined through the scene association rule, the real traffic scene is restored through simulation of the scene association rule, and the network equipment is tested by using the restored real traffic scene, so that a more accurate test result can be obtained, and the test efficiency is improved. Compared with the prior art that only the basic network protocol of the network equipment is simulated, the simulation method and device can restore various real traffic scenes of the network equipment, and more comprehensive simulation is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traffic simulation, and in particular to a network routing traffic simulation method and device. Background Art

[0002] Langqiao SDWAN routing gateway management system realizes centralized management and intelligent path selection through advanced software-defined network technology, realizes the optimization and allocation of network resources, automated troubleshooting and enhanced security performance, supports multi-line automatic load balancing and rapid fault recovery, and ensures the efficient operation and stability of the network. It mainly includes: device management, policy configuration, VPN management, performance monitoring, alarm management, log management, permission management, report center, configuration backup and recovery, license management, update management, network topology, multi-tenant management, QoS management, API management and other functional sections. Among them, policy configuration includes routing policy, QoS policy, security policy, etc. It is mainly used in telecommunications, finance, government, education and other industries to provide enterprises with safe and reliable network connection and management solutions. Network traffic simulation technology simulates network traffic behavior by constructing a controllable and reproducible virtual network environment to obtain the network characteristic parameters required for network design and optimization. It can test network equipment and find problems with network equipment in a timely manner, providing effective help for the research and development and operation and maintenance of network equipment.

[0003] The existing technology has the following problems:

[0004] With the continuous development of network technology, various new network protocols, network algorithms, network applications, etc. emerge in an endless stream. Technologies such as network interconnection, wireless access and multiple protocols have also made the network environment increasingly complex. In addition, based on the uncontrollable, volatile and unpredictable characteristics of the network itself, it is also very difficult to simulate the network traffic behavior in reality. The existing network traffic simulation methods cannot fully simulate the real traffic scenarios in the network. Summary of the invention

[0005] The present invention provides a network routing traffic simulation method and device to solve the problems raised in the above background technology.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] In a first aspect, the present invention provides a network routing traffic simulation device, which includes a first receiving module, an acquisition module, a first simulation module, a second simulation module, a sending module, a second receiving module, a parsing module, an analysis module, and an output module. The first simulation module includes a first simulation sub-module, a second simulation sub-module, and a third simulation sub-module. The first receiving module is used to receive scenario simulation requirements, the parsing module is used to parse network data packets layer by layer to obtain application data, and the sending module is used to send network data packets through a first network card.

[0008] Preferably, the scenario simulation requirement carries a scenario identifier and target values ​​of various simulation parameters, wherein the scenario identifier is used to identify a real traffic scenario.

[0009] In a second aspect, the present invention further provides a network routing traffic simulation method, the simulation method comprising the following steps:

[0010] S1: Receive scenario simulation requirements;

[0011] S2: Obtain scene association rules;

[0012] S3: simulation, obtaining network data packets;

[0013] S4: The first network card sends a network data packet;

[0014] S5: The second network card receives the network data packet from the network device to be tested, and parses it to obtain application data;

[0015] S6: Analyze the application data to obtain the test results of the network device to be tested.

[0016] Preferably, the scenario association rules include application layer protocols with a preset sequence relationship, time parameters between adjacent sequence application layer protocols, and values ​​of various simulation parameters. The application layer protocols carry application data, and the application layer protocols include DNS protocol, HTTP protocol, and FTP protocol.

[0017] Preferably, S3 includes:

[0018] S31: simulating each application layer protocol in the scenario association rule through a first simulation module according to a preset sequence relationship to obtain a network data packet;

[0019] S32: Simulate the time parameters between the application layer protocols in adjacent order in the scenario association rule through the second simulation module.

[0020] Preferably, the S31 includes:

[0021] S311: Acquire application data in each application layer protocol in the scenario association rule according to a preset sequence relationship, perform application layer protocol encapsulation on the application data through the first simulation submodule, support application layer protocol stack, including application layer protocols such as HTTP protocol and FTP protocol, and obtain an encapsulated application layer protocol data packet;

[0022] S312: performing transport layer protocol encapsulation on the application layer protocol data packet through the second simulation submodule, supporting the network layer protocol stack, including transport layer protocols such as TCP protocol and UDP protocol, to obtain an encapsulated transport layer protocol data packet;

[0023] S313: Perform network layer protocol encapsulation on the transport layer protocol data packet through the third simulation submodule, support the network layer protocol stack, including ARP protocol, routing protocol, IP protocol and other network layer protocols, and obtain the encapsulated network layer protocol data packet, which can be used as a network data packet.

[0024] Preferably, the simulation parameters include: number of concurrent connections, number of new connections per second, number of packets per second, traffic and application, and the scenario association rules that can meet the target values ​​of each simulation parameter include: scenario association rules that the sum of the values ​​of the corresponding simulation parameters is not less than the target value of the simulation parameter.

[0025] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art:

[0026] 1. The present invention provides a network routing traffic simulation method and device, which define real traffic scenarios through scenario association rules, restore real traffic scenarios through simulation of scenario association rules, and test network devices using the restored real traffic scenarios, so as to obtain more accurate test results and ensure the stability of the tested network devices after being put into use. Compared with the prior art that only simulates the basic network protocols of network devices, the simulation method and device can restore various real traffic scenarios of network devices and achieve more comprehensive simulation.

[0027] 2. The present invention provides a network routing traffic simulation method and device. Through the first simulation module, each application layer protocol in the scenario association rule is simulated according to a preset sequence relationship, and the second simulation module simulates the time parameter in the scenario association rule. Various network traffic scenarios in a real network environment can be simulated, fully simulating the high complexity of the real network traffic scenario.

[0028] 3. The present invention provides a network routing traffic simulation method and device, which obtains network data packets through simulation by a first simulation submodule, a second simulation submodule, and a third simulation submodule, sends them to a network device to be tested through a first network card, returns after passing through the network device to be tested, and receives network data packets from the network device to be tested through a second network card, obtains application data by parsing the received network data packets, and analyzes the application data through an analysis module, thereby obtaining test results of the network device to be tested, and being able to fully simulate real traffic scenarios in the network, making the simulation of network traffic in reality more flexible, and using the simulation results to test network devices, being able to fully and effectively verify the actual operation status of network devices in a complex network environment.

[0029] 4. The present invention provides a network routing traffic simulation method and device, which obtains the real-time value of each simulation parameter by continuously increasing the number of concurrent simulations of scenario association rules, thereby obtaining scenario association rules that can meet the target value of each simulation parameter, and realizing the real traffic scenario simulation of a large number of clients downloading the installation program at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of a network routing traffic simulation device module of the present invention;

[0031] Figure 2 It is a schematic diagram of the flow of the network routing traffic simulation method of the present invention;

[0032] Figure 3 It is a schematic diagram of the flow data simulation process of the present invention. DETAILED DESCRIPTION

[0033] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0034] First, as Figure 1 As shown, the present invention provides a network routing traffic simulation method and device, the simulation device includes a first receiving module, an acquisition module, a first simulation module, a second simulation module, a sending module, a second receiving module, a parsing module, an analysis module, and an output module, the first simulation module includes a first simulation sub-module, a second simulation sub-module, and a third simulation sub-module, the first receiving module is used to receive scenario simulation requirements, the parsing module is used to parse the network data packet layer by layer to obtain application data, the sending module is used to send the network data packet through the first network card, the scenario simulation requirement carries a scenario identifier and a target value of each simulation parameter, wherein the scenario identifier is used to identify a real traffic scenario.

[0035] A network data packet is simulated by the first simulation submodule, the second simulation submodule and the third simulation submodule, and is sent to the network device to be tested through the first network card. The data packet is returned after passing through the network device to be tested, and the network data packet from the network device to be tested is received through the second network card. Application data is obtained by parsing the received network data packet, and the application data is analyzed by the analysis module. The test result of the network device to be tested can be obtained, and the real traffic scenario in the network can be fully simulated, making the simulation of network traffic in reality more flexible. The network device is tested by using the simulation result, and the real operation status of the network device in a complex network environment can be fully and effectively verified.

[0036] Second, as Figure 2 , Figure 3 As shown, the present invention also provides a network routing traffic simulation method, the simulation method comprising the following steps:

[0037] S1: Receive scenario simulation requirements;

[0038] S2: Obtain scene association rules;

[0039] S3: simulation, obtaining network data packets;

[0040] S4: The first network card sends a network data packet;

[0041] S5: The second network card receives the network data packet from the network device to be tested, and parses it to obtain application data;

[0042] S6: Analyze the application data to obtain the test results of the network device to be tested.

[0043] S2 includes: using an acquisition module to acquire a scene association rule that has a corresponding relationship with the scene identifier and can satisfy the target value of each simulation parameter.

[0044] The scenario association rules include application layer protocols with a preset sequence relationship, time parameters between adjacent application layer protocols, and values ​​of various simulation parameters. The application layer protocols carry application data, and the application layer protocols include DNS protocol, HTTP protocol, and FTP protocol.

[0045] The correspondence between the scenario identifier and the scenario association rule is pre-stored so as to obtain the corresponding scenario association rule according to the scenario identifier. The scenario association rule corresponding to the scenario identifier is used to define the real traffic scenario corresponding to the scenario identifier. Taking the scenario of downloading the installation program as an example, in the actual scenario of downloading the installation program, the client user first accesses the search engine, and then determines the relevant website for downloading the program based on the returned results, and accesses the address provided by the website to download and install the program. During the entire process of downloading the installation program, the client uses the following application layer protocols in sequence, namely DNS protocol, HTTP protocol, and FTP protocol. Therefore, the scenario association rule can define the above-mentioned scenario of downloading the installation program through DNS protocol>HTTP protocol>FTP protocol.

[0046] S3 includes:

[0047] S31: simulating each application layer protocol in the scenario association rule through a first simulation module according to a preset sequence relationship to obtain a network data packet;

[0048] S32: Simulate the time parameters between the application layer protocols in adjacent order in the scenario association rule through the second simulation module.

[0049] By simulating each application layer protocol in the scenario association rule according to a preset sequence relationship through the first simulation module, and simulating the time parameters in the scenario association rule through the second simulation module, various network traffic scenarios in the real network environment can be simulated, fully simulating the high complexity of the real network traffic scenarios.

[0050] S31 includes:

[0051] S311: Acquire application data in each application layer protocol in the scenario association rule according to a preset sequence relationship, perform application layer protocol encapsulation on the application data through the first simulation submodule, support application layer protocol stack, including application layer protocols such as HTTP protocol and FTP protocol, and obtain an encapsulated application layer protocol data packet;

[0052] S312: performing transport layer protocol encapsulation on the application layer protocol data packet through the second simulation submodule, supporting the network layer protocol stack, including transport layer protocols such as TCP protocol and UDP protocol, to obtain an encapsulated transport layer protocol data packet;

[0053] S313: Perform network layer protocol encapsulation on the transport layer protocol data packet through the third simulation submodule, support the network layer protocol stack, including ARP protocol, routing protocol, IP protocol and other network layer protocols, and obtain the encapsulated network layer protocol data packet, which can be used as a network data packet.

[0054] By simulating network data packets through the first simulation submodule, the second simulation submodule, and the third simulation submodule, the real traffic scenarios in the network can be fully simulated, making the simulation of actual network traffic more flexible, and being able to comprehensively and effectively verify the actual status of network equipment running in a complex network environment.

[0055] The simulation parameters include: number of concurrent connections, number of new connections per second, number of packets per second, traffic and application. The scenario association rules that can meet the target values ​​of the simulation parameters include: the scenario association rules that the sum of the values ​​of the corresponding simulation parameters is not less than the target value of the simulation parameters.

[0056] By continuously increasing the number of concurrent simulations of scenario association rules, real-time values ​​of various simulation parameters are obtained, thereby obtaining scenario association rules that can meet the target values ​​of various simulation parameters, and realizing real traffic scenario simulation in which a large number of clients download the installation program at the same time.

[0057] In summary, the scenario simulation requirements are received through the first receiving module, the acquisition module is used to obtain the scenario association rules that have a corresponding relationship with the scenario identifier and can meet the target values ​​of each simulation parameter, and the network data packet is simulated by the first simulation sub-module, the second simulation sub-module, and the third simulation sub-module in accordance with the preset sequence relationship. The first network card sends the network data packet to the network device to be tested through the sending module, and returns after passing through the network device to be tested. The second network card receives the network data packet from the network device to be tested through the second receiving module, and the received network data packet is parsed by the parsing module to obtain application data, and the application data is analyzed by the analysis module to obtain the test result of the network device to be tested. The output module outputs the result, and the real traffic scenario in the network can be fully simulated, so that the simulation of network traffic in reality is more flexible, and the network equipment is tested by the simulation result, so that the real operation state of the network equipment in a complex network environment can be fully and effectively verified.

[0058] The above generally describes the present invention in detail, but it is obvious to a person skilled in the art that some modifications or improvements can be made to the present invention. Therefore, modifications or improvements that do not depart from the spirit of the present invention are within the scope of protection of the present invention.

Claims

1. A network routing traffic simulation device, characterized in that: The simulation device includes a first receiving module, an acquisition module, a first simulation module, a second simulation module, a sending module, a second receiving module, a parsing module, an analysis module, and an output module. The first simulation module includes a first simulation sub-module, a second simulation sub-module, and a third simulation sub-module. The first receiving module is used to receive scene simulation requirements. The parsing module is used to parse network data packets layer by layer to obtain application data. The sending module is used to send network data packets through a first network card.

2. A network routing traffic simulation device according to claim 1, characterized in that: The scenario simulation requirement carries a scenario identifier and target values ​​of various simulation parameters, wherein the scenario identifier is used to identify a real traffic scenario.

3. A network routing traffic simulation method, comprising a network routing traffic simulation device according to any one of claims 1 to 2, characterized in that: The simulation method includes the following steps: S1: Receive scenario simulation requirements; S2: Obtain scene association rules; S3: simulation, obtaining network data packets; S4: The first network card sends a network data packet; S5: The second network card receives the network data packet from the network device to be tested, and parses it to obtain application data; S6: Analyze the application data to obtain the test results of the network device to be tested.

4. A network routing traffic simulation method according to claim 3, characterized in that: The S2 includes: using an acquisition module to acquire a scene association rule that has a corresponding relationship with the scene identifier and can meet the target value of each simulation parameter.

5. A network routing traffic simulation method according to claim 4, characterized in that: The scenario association rules include application layer protocols with a preset sequence relationship, time parameters between adjacent sequence application layer protocols, and values ​​of various simulation parameters. The application layer protocols carry application data, and the application layer protocols include DNS protocol, HTTP protocol, and FTP protocol.

6. A network routing traffic simulation method according to claim 3, characterized in that: The S3 includes: S31: simulating each application layer protocol in the scenario association rule through a first simulation module according to a preset sequence relationship to obtain a network data packet; S32: Simulate the time parameters between the application layer protocols in adjacent order in the scenario association rule through the second simulation module.

7. A network routing traffic simulation method according to claim 6, characterized in that: The S31 includes: S311: Acquire application data in each application layer protocol in the scenario association rule according to a preset sequence relationship, perform application layer protocol encapsulation on the application data through the first simulation submodule, support application layer protocol stack, including application layer protocols such as HTTP protocol and FTP protocol, and obtain an encapsulated application layer protocol data packet; S312: performing transport layer protocol encapsulation on the application layer protocol data packet through the second simulation submodule, supporting the network layer protocol stack, including transport layer protocols such as TCP protocol and UDP protocol, to obtain an encapsulated transport layer protocol data packet; S313: Perform network layer protocol encapsulation on the transport layer protocol data packet through the third simulation submodule, support the network layer protocol stack, including ARP protocol, routing protocol, IP protocol and other network layer protocols, and obtain the encapsulated network layer protocol data packet, which can be used as a network data packet.

8. A network routing traffic simulation method according to claim 4, characterized in that: The simulation parameters include: number of concurrent connections, number of new connections per second, number of packets per second, traffic and application. The scenario association rules that can meet the target values ​​of each simulation parameter include: scenario association rules in which the sum of the values ​​of the corresponding simulation parameters is not less than the target value of the simulation parameter.