Method and device for constructing background traffic of network target range

By analyzing the network shooting range scene definition file and traffic resource sample library, background traffic is generated and injected, and the docker-form contracting program is used for concurrent construction, which solves the problem of insufficient authenticity and flexibility of background traffic construction in the existing technology, and realizes real-life Traffic planning in the background for flexibility and flexibility.

CN118740453APending Publication Date: 2024-10-01INTEGRITY TECH GRP INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410854393.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing network range background traffic construction method has shortcomings in authenticity and flexibility and cannot effectively simulate real network scenarios. As a result, the generated traffic is inconsistent with actual business applications, and resources are occupied too much and cannot be perceived.

Method used

By analyzing the network shooting range scene definition file, the background traffic content and type are determined, combined with the traffic resource sample library, to generate and inject the background traffic in a specific area, and use the docker form of contracting program for concurrent generation and construction to achieve flexible traffic injection.

Benefits of technology

It realizes the construction of background traffic with authenticity and flexibility, meets the authenticity and flexibility requirements of the network shooting range scene, improves the traffic planning effect, and reduces resource occupation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740453A_ABST
    Figure CN118740453A_ABST
Patent Text Reader

Abstract

The invention provides a background traffic construction method and device for a network target range, and the method comprises the steps: determining background traffic content according to a network target range scene definition file, and enabling the background traffic content to comprise a background traffic object and a background traffic type; comparing the background traffic content with a traffic resource sample library, and determining a background traffic generation scheme; according to the application range and the path of the network target range scene, determining an injection point area for generating background traffic; and obtaining information of the background traffic object, deploying a background traffic generation program and traffic sample resources, generating background traffic according to the background traffic generation scheme, injecting the background traffic into the injection point area, and constructing the background traffic of the network target range. According to the invention, real and flexible background traffic planning can be realized, and background traffic construction is carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a method and device for constructing background traffic of a network target range. Background Art

[0002] Cyber ​​ranges have become an indispensable core infrastructure for cyberspace security research, learning, testing, verification, and drills. Countries around the world attach great importance to the construction of cyber ranges and regard it as an important means to support security capacity building.

[0003] The scenario constructed by the network range is a mapping of the real network space. In addition to providing services and network topology that need to be simulated as much as possible, the background traffic of the real network space is also a reflection of the authenticity of the network range scenario. The connotation of background traffic includes simulating various existing behaviors of benign users in the network range environment, such as simulating user Internet access behavior, business access behavior, operation and maintenance operation behavior, etc. Considering that each scenario in the network range has a specific purpose, such as providing a training environment to improve the skill level of personnel, providing a competition environment to facilitate the selection of highly skilled professionals, or providing meticulous tools and means for security research, it is very important to provide background traffic according to the actual network range scenario and meet the requirements of authenticity and flexibility.

[0004] There are many methods for constructing background traffic at present, but they all have more or less deficiencies in authenticity and flexibility, as shown in the following: 1) Lack of authenticity. The generated background traffic is not related to the scene objects of the network target range. For example, in the constructed application service area, there is traffic such as sending and receiving emails, P2P downloads, etc., which is inconsistent with the actual large amount of business application access traffic; 2) Lack of flexibility. Background traffic is constructed in all areas of the constructed scene, resulting in excessive resources being occupied and unable to be perceived, and no benefits being generated. Summary of the invention

[0005] The present invention aims to provide a method and device for constructing background traffic of a network target range that overcomes the above-mentioned problems or at least partially solves the above-mentioned problems.

[0006] To achieve the above object, the technical solution of the present invention is specifically implemented as follows:

[0007] One aspect of the present invention provides a method for constructing background traffic of a network range, comprising:

[0008] Determine the background traffic content according to the network range scenario definition file, wherein the background traffic content includes: background traffic objects and background traffic types;

[0009] Compare the background traffic content with the traffic resource sample library to determine a background traffic generation plan;

[0010] Determine the injection point area for generating background traffic based on the application scope and path of the network range scenario;

[0011] The information of the background traffic object is obtained, a background traffic generation program and traffic sample resources are deployed, background traffic is generated according to the background traffic generation scheme and injected into the injection point area, and background traffic of the network target range is constructed.

[0012] Optionally, comparing the background traffic content with a traffic resource sample library to determine a background traffic generation scheme includes:

[0013] Select Enable Background Traffic Generation for the Cyber ​​Range Scenario;

[0014] Adopting a default strategy or a strategy that can generate a customized configuration for background traffic, generating a preliminary background traffic plan for the range objects in the range scenario according to the configuration of the default strategy or the strategy that can generate a customized configuration for background traffic, combined with the network range description definition file;

[0015] The background traffic preliminary plan is compared with the traffic resource sample library to form a fine-grained traffic allocation plan.

[0016] Optionally, determining the background traffic generation scheme includes:

[0017] Get the sender and receiver IP addresses of specific traffic according to the actual network situation;

[0018] When referencing the traffic resource sample library, replacing the sender IP address and the receiver IP address in the original traffic;

[0019] According to the task requirements or the critical path requirements, the sending strategy of the unit requiring background traffic is determined, and the sending strategy includes: a specified time period, a specified traffic bandwidth, and a cycle number traffic.

[0020] Optionally, generating background traffic according to the background traffic generation scheme and injecting the background traffic into the injection point area includes:

[0021] Through the packet sending program deployed on the host machine, the background traffic generation plan is synchronized to inject background traffic into the network interface of the designated network target range target machine.

[0022] Optionally, the method further includes: the package sending program is concurrently generated and constructed in a docker form, and injected into a designated target machine network.

[0023] Another aspect of the present invention provides a background traffic construction device for a network range, comprising:

[0024] A background traffic content determination module, used to determine the background traffic content according to the network range scenario definition file, wherein the background traffic content includes: background traffic objects and background traffic types;

[0025] A background traffic generation scheme determination module, used to compare the background traffic content with the traffic resource sample library to determine the background traffic generation scheme;

[0026] An injection point area determination module is used to determine the injection point area for generating background traffic according to the application scope and path of the network range scenario;

[0027] A construction module is used to obtain the information of the background traffic object, deploy the background traffic generation program and traffic sample resources, generate background traffic according to the background traffic generation plan and inject it into the injection point area, and construct the background traffic of the network target range.

[0028] Optionally, the background traffic generation scheme determination module compares the background traffic content with the traffic resource sample library in the following manner to determine the background traffic generation scheme:

[0029] Select Enable Background Traffic Generation for the Cyber ​​Range Scenario;

[0030] Adopting a default strategy or a strategy that can generate a customized configuration for background traffic, generating a preliminary background traffic plan for the range objects in the range scenario according to the configuration of the default strategy or the strategy that can generate a customized configuration for background traffic, combined with the network range description definition file;

[0031] The background traffic preliminary plan is compared with the traffic resource sample library to form a fine-grained traffic allocation plan.

[0032] Optionally, the background traffic generation scheme determining module determines the background traffic generation scheme in the following manner:

[0033] Get the sender and receiver IP addresses of specific traffic according to the actual network situation;

[0034] When referencing the traffic resource sample library, replacing the sender IP address and the receiver IP address in the original traffic;

[0035] According to the task requirements or the critical path requirements, the sending strategy of the unit requiring background traffic is determined, and the sending strategy includes: a specified time period, a specified traffic bandwidth, and a cycle number traffic.

[0036] Optionally, the construction module generates background traffic according to the background traffic generation scheme and injects the background traffic into the injection point area in the following manner:

[0037] Through the packet sending program deployed on the host machine, the background traffic generation plan is synchronized to inject background traffic into the network interface of the designated network target machine.

[0038] Optionally, the construction module is also used to concurrently generate and build the package sending program in a docker form and inject it into a specified target machine network.

[0039] It can be seen that, through the background traffic construction method and device of the network target range provided by the present invention, a preliminary plan for background traffic is formed through scene configuration file parsing and analysis, and flexible traffic injection is achieved through distributed docker, which can realize authentic and flexible background traffic planning and background traffic construction. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0041] Figure 1 A flowchart of a method for constructing background traffic of a network range provided by an embodiment of the present invention;

[0042] Figure 2 A schematic diagram of the structure of a background traffic construction device for a network range provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0043] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0044] The core of the present invention is:

[0045] Through the analysis of the network range scenario definition text, a preliminary global background traffic object range and possible traffic types within the background traffic range are formed. At the same time, the situation is compared with the traffic resource sample library to form a preliminary background traffic generation plan;

[0046] According to the application scope and path of the network target range scenario, the injection point range where background traffic needs to be generated is preliminarily determined to narrow the area where background traffic is required.

[0047] After the network target range scenario is generated, obtain the IP address and other information of the background traffic object, as well as the object distribution information, deploy the background traffic generation program and traffic sample resources, generate and inject the background traffic into the area required according to the scenario task requirements, and complete the background traffic construction of the network target range.

[0048] Figure 1 A flowchart showing a method for constructing background traffic of a network range provided by an embodiment of the present invention is shown. Figure 1 , the background traffic construction method of the network target range provided by the embodiment of the present invention includes:

[0049] S1, determining background traffic content according to a network range scenario definition file, wherein the background traffic content includes: background traffic objects and background traffic types;

[0050] S2, comparing the background traffic content with the traffic resource sample library to determine the background traffic generation plan;

[0051] S3, determining the injection point area for generating background traffic according to the application scope and path of the network range scenario;

[0052] S4, obtains the information of background traffic objects, deploys background traffic generation programs and traffic sample resources, generates background traffic according to the background traffic generation plan and injects it into the injection point area to construct the background traffic of the network target range.

[0053] Specifically, the present invention divides the construction of background traffic into two problems: a. background traffic content and b. background traffic generation, wherein:

[0054] Background traffic content: Identify the objects involved in the background traffic, and preliminarily identify the appropriate background traffic based on their service types, that is, to form a background traffic idea for all objects in the entire network target range scenario.

[0055] Background traffic generation: Not all scene objects need to be injected with background traffic. To be precise, only objects related to research or application levels such as training or competition need to be injected with background traffic. The generated background traffic should be injected at the appropriate time.

[0056] Background traffic content: It is divided into two parts: 1. Determine what traffic objects are involved? 2. Determine the type of traffic.

[0057] For example, the network target range constructs a typical network scenario of an enterprise, which includes application service area (providing various services internally and externally, such as email service, web service, database service, etc.), operation and maintenance management area (used for standardized management, used to manage application service area, provide daily operation and maintenance of various services, and can also be used for operation and maintenance of business office area), business office area (used to access the Internet, access email services, web services, etc., to carry out various businesses in application service areas, as well as other Internet such as chat, video retrieval, WeChat, etc.), each area has several objects (for example, the application service area has many servers, the business office area has many office computers and terminals, etc.

[0058] For example, a web server in the application server area conducts business in the business office area and is coupled with other servers in the application server area to conduct business. The background traffic of the server includes access by objects in other areas, access by similar servers (area objects) in this area, and access from the operation and maintenance management area. That is, the background traffic of this point comes from three aspects. Secondly, the traffic in each aspect is different. The operation and maintenance traffic in the operation and maintenance management area is operation and maintenance traffic such as ssh operation, remote desktop access operation, file upload operation, etc. The traffic in the application server is traffic between servers, such as database access, API interface access, operating system detection, etc. The traffic in the business office area is access to web services, ftp services, etc., operation traffic through the graphical interface, and operating system scanning, port detection, service detection, etc. of ordinary users, which are non-aggressive traffic.

[0059] The above-mentioned related content can come from the network target range scenario definition file. For example, a web server generally defines the web service port, access method, or web service component / version with built-in defects, vulnerability exploitation method and other information. It also includes basic information such as the operating system and version of the web service, and its relationship with other applications.

[0060] That is, the background traffic objects related to the web service are determined to be 3 blocks, and the traffic of the 3 blocks is slightly different. The traffic types of these 3 blocks are matched with the traffic sample policy library.

[0061] As an optional implementation mode of an embodiment of the present invention, determining the background traffic generation plan includes: obtaining the sender IP address and the receiver IP address of the specific traffic according to the actual network conditions; when referencing the traffic resource sample library, replacing the sender IP address and the receiver IP address in the original traffic; according to the task requirements or the critical path requirements, determining the sending strategy of the unit requiring background traffic, the sending strategy includes: specifying the time period, specifying the traffic bandwidth and the number of cycles of traffic.

[0062] Background traffic generation:

[0063] After determining the traffic object and traffic content, obtain the specific traffic sender and receiver IP addresses according to the actual network situation (such as static IP address / dynamic IP). When referencing the traffic sample library, replace the sender and receiver IP addresses in the original traffic. At the same time, according to the task requirements or critical path requirements, specify the time period, traffic bandwidth, number of cycles and other traffic sending strategies for the units that require background traffic.

[0064] As an optional implementation manner of an embodiment of the present invention, the background traffic content is compared with the traffic resource sample library to determine the background traffic generation plan, including: selecting to enable background traffic generation for a network target range scenario; adopting a default strategy or a strategy that can generate a customized configuration for background traffic generation, and generating a preliminary background traffic plan for target range objects in the target range scenario based on the configuration of the default strategy or the strategy that can generate a customized configuration for background traffic generation, combined with a network target range description definition file; comparing the preliminary background traffic plan with the traffic resource sample library to form a fine-grained traffic matching plan.

[0065] In specific implementation, the present invention constructs a traffic strategy including: the user selects to enable background traffic generation for a network range scenario, adopts a default strategy or can customize the background traffic generation configuration, generates a preliminary background traffic plan for the range objects in the range scenario based on the default / preliminary strategy configuration and in combination with the network range description definition file, and then compares the preliminary background traffic plan with the traffic sample library to form a fine-grained traffic matching plan, which can be used to guide the traffic construction unit to perform actual traffic generation.

[0066] in:

[0067] 1. When users configure / build a network range, they can choose to turn on / off background traffic generation. If turned on, they can revise the default policy configuration. The default policy includes: the scope of objects for background traffic generation (limited to key business scopes or key paths), or choose to set specific objects for background traffic injection on all network range objects, and specify or import specific background traffic packages (non-traffic sample library content). You can also revise the default size / bandwidth of background traffic, the sending frequency or number of cycles, and the execution time of the task (the default is the time period used in the network range scenario). The rest will be described from the perspective of the default policy, when the user chooses to turn on background traffic generation and does not configure anything else.

[0068] 2. By default, the description definition file of the scenario in the network target range is called to obtain the target machine defined by the key nodes, the area to which it belongs, the built-in software / service description of the target machine, the system type, and the built-in software / service and system type description of the target machines in the same area; at the same time, the attack path of the scenario is obtained to determine the interaction scope of the area.

[0069] For example, the unique identifier is: DL-first-home-final-1202. The target machine is the core node in the scenario. Its system type is Windows 10, and it has built-in software Chrome browser and Firefox browser. It provides web services for forging normal websites, including interfaces that guide the download of malware and malware. It belongs to the DMZ area and interacts with the intranet area.

[0070] It can be determined that the object of the background traffic is the DL-first-home-final-1202 target machine, and the access objects come from the DMZ area and the intranet area. The DMZ area is the service traffic of other target machines in this area (access to businesses, such as web access, ftp services, database services, etc.), and the intranet area is the daily access, scanning and other operations of office computers in this area (default operations, or protocol sets), thus forming the content set of the preliminary background traffic of the target machine.

[0071] 3. By default, the keyword content of the above two areas is searched and matched with the keyword content / category of the traffic sample set. For example, if the DMZ has a web service, it is marked in the scene definition of the target range. The traffic sample library content is searched and matched to form a traffic sample set in this aspect. If keywords are missing, the same category can be used. For example, if descriptions such as Chrome browser and Firefox browser are missing, web access traffic can be used directly. For the intranet area accessing the DMZ area, in addition to the default service access, the default system scan, asset detection and other categories of traffic sample content can be selected. Thus, the traffic library of the target range node is formed, and users can adjust it or import external traffic packages.

[0072] 4. Determine the sender and server IP addresses of the background traffic. The network range scenario uses static IP addresses in part and dynamic IP addresses in part. The dynamic IP addresses can only be determined after the scenario is fully delivered, that is, the sender and server IP addresses can be determined after the scenario is fully delivered (started). The content of the background traffic is determined, and the sender / receiver object is also determined, forming traffic that conforms to the current scenario. (If the sender and server IP addresses have nothing to do with the current network environment, they cannot become background traffic and are not authentic)

[0073] 5. Determine the size / bandwidth of background traffic. By default, background traffic occupies a very small part of the network range traffic. Users can revise it. The composition of background traffic can be evenly distributed by default. For example, if there are two areas of access traffic, each accounts for 50% by default. The frequency and execution time of background traffic can be set to loop in the entire scene cycle by default. At this point, the strategy for background traffic generation is configured and waiting for execution.

[0074] As an optional implementation of an embodiment of the present invention, generating background traffic according to the background traffic generation scheme and injecting it into the injection point area includes: injecting background traffic into the network interface of the designated network target machine through a packet sending program deployed on the host machine, synchronizing the background traffic generation scheme, and injecting background traffic into the network interface of the designated network target machine. The packet sending program is generated and constructed in parallel in the form of docker and injected into the designated target machine network.

[0075] In the specific implementation, background traffic is injected into the network interface of the target machine in the specified network target range through the packet sending program deployed on the host machine (deployed using docker).

[0076] 1. The network target range completes the resource allocation and network construction of the target range scenario as a whole. Obtain the host machine where the target virtual machine that requires background traffic is located, as well as the network access configuration; send the background traffic to the packet sending program (traffic data packet playback software) of the host machine where the target machine is located, and synchronize the background traffic strategy of the target machine, including but not limited to traffic samples (including network access methods and addresses), traffic bandwidth, packet sending frequency and processing rules, as well as the IP addresses of the sender and server in the traffic, which are used to replace the default IP addresses in the traffic sample library.

[0077] 2. The packet sending program synchronizes the strategy, obtains traffic samples, replaces the IP addresses of the traffic samples, replays the traffic at the agreed frequency and bandwidth, and inputs it into the network interface of the designated target machine. On the network interface of the target machine, the broadcast mode is turned on to collect the background traffic.

[0078] 3. If there is a lot of background traffic, the packet sending program is generated and built in parallel in the form of docker and injected into the designated target network. This avoids the background traffic superposition and bandwidth occupation generated during the transmission process of cross-route or cross-device traffic generation such as sdn, and has high flexibility.

[0079] In the present invention, the mode of background traffic importing is a flexible processing method, directly on the host where the target machine / object where background traffic is needed is located (it can be understood as the host where the cloud host is located, and the target machine / object of other network target fields is a virtual machine opened on this cloud host), that is, the next layer of the target machine / object / on the directly related operating system, generate and distribute traffic, directly give it to the target machine / object, without the need to cross network transmission / ovs switch, directly give it. There is no intermediate link, and the background traffic required for the target machine / object on the host machine is only propagated within a limited range, without the need to circulate through the network. At the same time, it can be flexibly constructed according to the complexity of the traffic component, including but not limited to the traffic of different bandwidths, different types of traffic construction.

[0080] It can be seen that, through the background traffic construction method of the network target range provided by the embodiment of the present invention, a preliminary plan for background traffic is formed through scene configuration file parsing and analysis, and flexible traffic injection is achieved through distributed docker, which can realize authentic and flexible background traffic planning and background traffic construction.

[0081] Figure 2 The schematic diagram of the structure of the background traffic construction device of the network range provided by the embodiment of the present invention is shown. The background traffic construction device of the network range applies the above method. The following is only a brief description of the structure of the background traffic construction device of the network range. For other matters not covered, please refer to the relevant description of the background traffic construction method of the network range. Figure 2 , the background traffic construction device of the network range provided by the embodiment of the present invention includes:

[0082] A background traffic content determination module is used to determine the background traffic content according to the network range scenario definition file, wherein the background traffic content includes: background traffic objects and background traffic types;

[0083] A background traffic generation scheme determination module is used to compare the background traffic content with the traffic resource sample library to determine the background traffic generation scheme;

[0084] An injection point area determination module is used to determine the injection point area for generating background traffic according to the application scope and path of the network range scenario;

[0085] A construction module is used to obtain the information of background traffic objects, deploy background traffic generation programs and traffic sample resources, generate background traffic according to the background traffic generation plan and inject it into the injection point area, and construct the background traffic of the network target range.

[0086] As an optional implementation of the embodiment of the present invention, the background traffic generation scheme determination module compares the background traffic content with the traffic resource sample library in the following manner to determine the background traffic generation scheme:

[0087] Select Enable Background Traffic Generation for the Cyber ​​Range Scenario;

[0088] Using a default strategy or a strategy that can generate a customized configuration for background traffic, generating a preliminary background traffic plan for range objects in a range scenario based on the configuration of the default strategy or the strategy that can generate a customized configuration for background traffic and combining the network range description definition file;

[0089] Compare the preliminary background traffic plan with the traffic resource sample library to form a fine-grained traffic allocation plan.

[0090] As an optional implementation manner of the embodiment of the present invention, the background traffic generation scheme determining module determines the background traffic generation scheme in the following manner:

[0091] Get the sender and receiver IP addresses of specific traffic according to the actual network situation;

[0092] When referencing the traffic resource sample library, replace the sender IP address and the receiver IP address in the original traffic;

[0093] According to the task requirements or critical path requirements, determine the sending strategy of the unit that needs background traffic. The sending strategy includes: specifying the time period, specifying the traffic bandwidth and the number of cycles.

[0094] As an optional implementation of the embodiment of the present invention, the construction module generates background traffic according to the background traffic generation scheme and injects it into the injection point area in the following manner:

[0095] By deploying the packet sending program on the host machine and synchronizing the background traffic generation plan, background traffic is injected into the network interface of the designated network target machine.

[0096] As an optional implementation of the embodiment of the present invention, the construction module is also used to concurrently generate and build the package sending program in the form of docker, and inject it into the specified target machine network.

[0097] It can be seen that, through the background traffic construction device of the network target range provided by the embodiment of the present invention, a preliminary plan for background traffic is formed through scene configuration file parsing and analysis, and flexible traffic injection is achieved through distributed docker, so that authentic and flexible background traffic planning can be achieved and background traffic construction can be performed.

[0098] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for constructing background traffic of a network range, characterized in that: include: Determine background traffic content according to the network range scenario definition file, wherein the background traffic content includes: background traffic objects and background traffic types; Comparing the background traffic content with the traffic resource sample library to determine a background traffic generation plan; Determine the injection point area for generating background traffic based on the application scope and path of the network range scenario; Obtain the information of the background traffic object, deploy the background traffic generation program and traffic sample resources, generate background traffic according to the background traffic generation plan and inject it into the injection point area to construct the background traffic of the network target range.

2. The method according to claim 1, characterized in that The comparing the background traffic content with the traffic resource sample library to determine the background traffic generation solution includes: Select Enable Background Traffic Generation for the Cyber ​​Range Scenario; Adopting a default policy or a policy capable of generating a customized configuration for background traffic, generating a preliminary background traffic plan for range objects in a range scenario based on the configuration of the default policy or the policy capable of generating a customized configuration for background traffic, and combining the network range description definition file; The background traffic preliminary plan is compared with the traffic resource sample library to form a fine-grained traffic allocation plan.

3. The method according to claim 1 or 2, characterized in that Determining the background traffic generation scheme includes: Get the specific sender and receiver IP addresses of the traffic based on the actual network situation; When referencing the traffic resource sample library, the sending end IP address and the receiving end IP address in the original traffic are replaced; According to the task requirements or the critical path requirements, the sending strategy of the unit requiring background traffic is determined, and the sending strategy includes: a specified time period, a specified traffic bandwidth, and a cycle number traffic.

4. The method according to claim 1, wherein Generating background traffic according to the background traffic generation scheme and injecting the background traffic into the injection point area includes: By deploying a packet sending program on the host machine, the background traffic generation scheme is synchronized to inject background traffic into the network interface of the designated network target machine.

5. The method according to claim 4, characterized in that Also includes: The package sending program is generated and constructed in parallel in the form of docker and injected into the designated target machine network.

6. A background traffic construction device for a network range, characterized in that: include: A background traffic content determination module is used to determine background traffic content according to a network range scenario definition file, wherein the background traffic content includes: background traffic objects and background traffic types; A background traffic generation scheme determination module, configured to compare the background traffic content with a traffic resource sample library to determine a background traffic generation scheme; The injection point area determination module is used to determine the injection point area for generating background traffic based on the application scope and path of the network range scenario; A construction module is used to obtain the information of the background traffic object, deploy the background traffic generation program and traffic sample resources, generate background traffic according to the background traffic generation plan and inject it into the injection point area, and construct the background traffic of the network target range.

7. The device according to claim 6, characterized in that The background traffic generation scheme determination module compares the background traffic content with the traffic resource sample library in the following manner to determine the background traffic generation scheme: Select Enable Background Traffic Generation for the Cyber ​​Range Scenario; Adopting a default policy or a policy capable of generating a customized configuration for background traffic, generating a preliminary background traffic plan for range objects in a range scenario based on the configuration of the default policy or the policy capable of generating a customized configuration for background traffic, and combining the network range description definition file; The background traffic preliminary plan is compared with the traffic resource sample library to form a fine-grained traffic allocation plan.

8. The device according to claim 6 or 7, characterized in that The background traffic generation scheme determining module determines the background traffic generation scheme in the following manner: Get the specific sender and receiver IP addresses of the traffic based on the actual network situation; When referencing the traffic resource sample library, the sending end IP address and the receiving end IP address in the original traffic are replaced; According to the task requirements or the critical path requirements, the sending strategy of the unit requiring background traffic is determined, and the sending strategy includes: a specified time period, a specified traffic bandwidth, and a cycle number traffic.

9. The device according to claim 6, characterized in that The construction module generates background traffic according to the background traffic generation scheme and injects the background traffic into the injection point area in the following manner: By deploying a packet sending program on the host machine, the background traffic generation scheme is synchronized to inject background traffic into the network interface of the designated network target machine.

10. The device according to claim 9, characterized in that The construction module is also used to concurrently generate and construct the package sending program in the form of docker, and inject it into the designated target machine network.

Citation Information

Cited By

  • Interference traffic injection method and device, test system and electronic equipment

    CN121547287A