Cross-region multi-target-range real equipment networking method and system
By using layer one switch and vxlan switch in the network range, recording port relationships and creating flow table rules, the problem of networking of cross-regional equipment is solved, and cross-regional equipment interconnection and multi-range shooting range scenario topology are realized flexibility.
Patent Information
- Application Number
- CN202411055446.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-06
AI Technical Summary
The existing network shooting range topology orchestration networking scheme cannot realize cross-regional networking of equipment installations and cannot meet the needs of cross-regional networking of equipment installations and networking of multiple shooting ranges.
Use layer one switch to vxlan switch to record reserved ports and correspondence relationships, implement the device to connect to the layer one switch in their respective areas, parse the topology to obtain the device ports that need to be interconnected across regions, generate tunnel tag numbers, and create flow tables Rules to achieve cross-region traffic forwarding.
Cross-regional networking of installed equipment is realized, and flexibility in building multi-range scene topology without the need to concentrate installed equipment in one area.
Smart Images

Figure CN119094481A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method and system for networking equipment installed in multiple shooting ranges across regions in a network shooting range, belonging to the technical field of network security. Background Art
[0002] A cyber range can simulate a network environment for network attack and defense training. It is usually a virtual network system consisting of a series of computers, servers, network devices and applications, designed to simulate a real-world network environment. Users can operate their own virtual machine nodes in the cyber range to conduct network attack and defense drills.
[0003] In the network range, the current topology arrangement and networking solution of the installed equipment mainly uses a layer of switches to achieve flexible topology networking between the installed equipment, such as Figure 1 The networking achieved through this solution requires that all installed devices be connected to the same layer of switches, but the multi-range environment is cross-regional, and this solution cannot be used to achieve cross-regional networking of installed devices. Summary of the invention
[0004] Purpose of the invention: In view of the problems existing in the above-mentioned prior art, the purpose of the present invention is to provide a method and system for cross-regional multi-range installation equipment networking, which can meet the needs of cross-regional installation networking of multiple ranges during business use.
[0005] Technical solution: To achieve the above-mentioned invention object, the present invention adopts the following technical solution:
[0006] A cross-regional multi-range installation equipment networking method, configuring a layer of switches and vxlan switches in each regional network range, the reserved port of the layer of switches is connected to the reserved port of the vxlan switch, and the reserved ports and the corresponding relationship are recorded;
[0007] The installed devices are connected to a layer of switches in their respective areas, and a port mapping relationship between the installed devices and the layer of switches is recorded;
[0008] When starting the actual installation scene, perform the following steps:
[0009] Obtain the location of the installed device and the port number of the first-layer switch connected to the installed device according to the scenario configuration;
[0010] Analyze the topology of the actual installation scenario, obtain the actual installation devices that need to be interconnected across regions and their connected ports, select unused reserved ports on a layer of switches, and connect the ports that need to be interconnected across regions and the selected reserved ports;
[0011] Generate an unused tunnel label number and record the correspondence between the reserved port of the vxlan switch and the vxlan tunnel label number;
[0012] Create flow table rules on the cross-region interconnected vxlan switches to add corresponding labels to the traffic entering from the reserved ports of the vxlan switches, and forward the traffic received from the tunnel ports to the corresponding reserved ports based on the correspondence between the label numbers and the reserved ports.
[0013] As a preference, before connecting the ports that need to be interconnected across regions and the selected reserved ports, priority is given to connecting the installed devices on the first-layer switch in the same region.
[0014] Preferably, the correspondence between the reserved ports of a layer of switches and the reserved ports of the vxlan switch is recorded through a reserved port table, and the attributes of the reserved port table include the reserved port number of the layer of switches, the reserved port number of the vxlan switch, the range area, and the usage status.
[0015] Preferably, the port mapping relationship between the installed device and the first-layer switch is recorded through the installed device mapping port table, and the attributes of the installed device mapping port table include device name, device port number, port number of the first-layer switch, target area and device IP address.
[0016] Preferably, the correspondence between the reserved port of the vxlan switch and the label number of the vxlan tunnel is recorded through a reserved port and label number mapping relationship table, and the attributes of the reserved port and label number mapping relationship table include the label number, the reserved port number of the vxlan switch and the target area.
[0017] As a preferred option, the flow table rules created on the vxlan switch are as follows:
[0018] in_port=PORTID actions=mod_vlan_vid:VXLANTAG,output:VXLANNAME in_port=VXLANNAME,dl_vlan=VXLANTAG actions=strip_vlan,output:PORTID
[0019] PORTID is the reserved port number of the vxlan switch, VXLANTAG is the vxlan tunnel label number, and VXLANNAME is the tunnel name.
[0020] A cross-regional multi-range installation equipment networking system, including installation equipment, a layer switch and a vxlan switch arranged in each regional network range, and a networking module and a data storage module arranged in a network range management platform, wherein the reserved port of the layer switch is connected to the reserved port of the vxlan switch, and the installation equipment is connected to the layer switch of each region;
[0021] The data storage module is used to record the corresponding relationship between the reserved port of the first layer switch and the reserved port of the vxlan switch, as well as the port mapping relationship of the interconnection between the installed device and the first layer switch;
[0022] The networking module is used to obtain the location of the installed device and the port number of the installed device connected to a layer of switches according to the scenario configuration when starting the installed scenario; parse the topology of the installed scenario, obtain the installed devices that need to be interconnected across regions and their connected ports, select an unused reserved port on a layer of switches, and connect the port that needs to be interconnected across regions and the selected reserved port; generate an unused tunnel label number, and record the correspondence between the reserved port of the vxlan switch and the vxlan tunnel label number; and, respectively create flow table rules on the vxlan switches that are interconnected across regions, for labeling the traffic entering from the reserved port of the vxlan switch with the corresponding label, and forwarding the traffic received from the tunnel port to the corresponding reserved port according to the correspondence between the label number and the reserved port.
[0023] Preferably, the networking module preferentially connects to the installed devices on the first-layer switch in the same area before connecting the ports that need to be interconnected across areas and the selected reserved ports.
[0024] Preferably, a configuration agent module is provided in each regional target range to receive instructions from the networking module and configure a layer 1 switch and a vxlan switch in the area.
[0025] Based on the same inventive concept, the present invention provides a computer system, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is loaded into the processor, the execution steps of starting the installation scenario in the cross-regional multi-target range installation equipment networking method are implemented.
[0026] Based on the same inventive concept, the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the execution steps of starting the installation scene in the cross-regional multi-target range installation equipment networking method.
[0027] Beneficial effect: The present invention combines a layer of switches and vxlan switches in the region to open up the cross-regional physical network, thereby realizing the cross-regional installation equipment connection and networking requirements. It can realize the cross-regional installation equipment connection and networking, and the installation equipment can be shared between multiple shooting ranges. Compared with the prior art, the present invention does not need to concentrate the installation equipment in one area, which increases the flexibility of the multi-shooting range scene topology construction. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 The following is a schematic diagram of the network topology of existing installed devices.
[0029] Figure 2 This is a schematic diagram of the cross-regional networking topology of an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and specific embodiments.
[0031] The embodiment of the present invention discloses a method for networking equipment for installation across multiple regions and multiple ranges. A layer switch and a vxlan switch are configured in each regional network range, a reserved port of the layer switch is connected to a reserved port of the vxlan switch, and the reserved port and the corresponding relationship are recorded; the installation equipment is connected to the layer switch of each region, and the port mapping relationship of the interconnection between the installation equipment and the layer switch is recorded; when starting the installation scene, the location of the installation equipment and the port number of the layer switch connected to the installation equipment are obtained according to the scene configuration; the installation scene topology is parsed to obtain the installation equipment that needs to be interconnected across regions and the ports connected thereto, an unused reserved port is selected on the layer switch, and the port that needs to be interconnected across regions and the selected reserved port are connected; an unused tunnel label number is generated, and the corresponding relationship between the reserved port of the vxlan switch and the label number of the vxlan tunnel is recorded; flow table rules are respectively created in the cross-regional vxlan switches for labeling the traffic entering from the reserved port of the vxlan switch with the corresponding label, and the traffic received from the tunnel port is forwarded to the corresponding reserved port according to the corresponding relationship between the label number and the reserved port.
[0032] The embodiment of the present invention combines a layer switch and a vxlan switch to open up a cross-region physical network, thereby meeting the needs of cross-regional installed equipment connection networking. Figure 2 The network topology shown is used to exemplarily illustrate the detailed steps of the embodiment of the present invention.
[0033] Specifically, in an embodiment of the present invention, it is necessary to configure a layer-one switch and a vxlan switch in the regional target range where the actual equipment networking is carried out. The reserved port of the layer-one switch is connected to the reserved port of the vxlan switch using a network cable, and the reserved port and the corresponding relationship information are stored in the network target range management platform database.
[0034] Table 1: Example of reserved port table structure
[0035]
[0036] All installed devices also need to be connected to a layer of switches in advance, and the port mapping relationship between the installed devices and the layer of switches must be recorded in the network range management platform database.
[0037] Table 2: Example of the structure of the port table for real-time device mapping
[0038]
[0039] The following uses the networking and communication process of the installed equipment from area A to area B as an example to illustrate the detailed operation and configuration process.
[0040] 1. Create a real-life scenario on the network range management platform, drag in the real-life devices and connect them to form a network, then save the scenario topology.
[0041] 2. Click to start the actual installation scenario on the network range management platform.
[0042] 3. The network range management platform queries the installed device mapping port table according to the scenario configuration to obtain the location of the installed device and the port number of the installed device connected to the first-layer switch.
[0043] 4. The network range management platform analyzes the topology of the actual installation scene, obtains the connection relationship of the actual installation equipment, and preferentially calls the regional configuration agent to connect to the actual installation equipment on the same regional layer switch, such as Figure 2 As shown in the figure, first connect ports 1 and 3 on the first layer switch in area A.
[0044] 5. The network range management platform analyzes the devices that need to be interconnected across regions and the port numbers to which they are connected ( Figure 2 5 ports in area A and 1 port in area B), then query the records in the reserved interface table in the database and randomly obtain an unused reserved port on a layer 1 switch (such as Figure 2 2 ports in area A and 2 ports in area B).
[0045] 6. The network range management platform calls the regional configuration agent of the area that needs to be interconnected in turn to connect the ports on the first layer switch that need to be interconnected across regions and the reserved ports (such as Figure 2Port 5 of area A is connected to port 2, and port 1 of area B is connected to port 2).
[0046] 7. Randomly select an unused tunnel label number and record the correspondence between the reserved port of the vxlan switch and the vxlan tunnel label number in the database.
[0047] Table 3: Example of the table structure of the reserved port and label number mapping relationship
[0048]
[0049] 8. The network range management platform calls the configuration agents of the areas that need to be interconnected in turn, and creates flow table rules on the vxlan switch: the traffic entering the vxlan switch from the reserved port of the vxlan switch is marked with corresponding labels and sent to other areas from the tunnel port.
[0050] Stream table example:
[0051] Region A:
[0052] in_port=1actions=mod_vlan_vid:4001,output:"areab_vxlan_tunnel"
[0053] Region B:
[0054] in_port=1actions=mod_vlan_vid:4001,output:"areaa_vxlan_tunnel"
[0055] 9. The network range management platform calls the configuration agents of the areas that need to be interconnected in turn, and creates flow table rules on the vxlan switch: matches the labels in the traffic from other areas received from the tunnel port, and forwards the traffic to the corresponding reserved port based on the correspondence between the label and the port number in the database.
[0056] Stream table example:
[0057] Region A:
[0058] in_port="areab_vxlan_tunnel",dl_vlan=4001actions=strip_vlan,output:1
[0059] Region B:
[0060] in_port="area1_vxlan_tunnel",dl_vlan=4001actions=strip_vlan,output:1
[0061] 10. Finally, after the traffic is forwarded to the reserved port corresponding to the traffic label through the vxlan switch, the traffic will be forwarded to the corresponding physical device through a layer of switches. At this point, cross-regional installed equipment connection networking can be realized.
[0062] Based on the same inventive concept, an embodiment of the present invention discloses a cross-regional multi-range installation equipment networking system, including installation equipment, a layer switch and a vxlan switch arranged in each regional network range, and a networking module and a data storage module arranged on a network range management platform. The reserved port of the layer switch is connected to the reserved port of the vxlan switch, and the installation equipment is connected to the layer switch of the respective area; the data storage module is used to record the correspondence between the reserved port of the layer switch and the reserved port of the vxlan switch, as well as the port mapping relationship of the interconnection between the installation equipment and the layer switch; the networking module is used to obtain the actual installation scene according to the scene configuration when starting the actual installation scene. The location of the installed device and the port number of the installed device connected to the first-layer switch; parse the topology of the actual installation scenario, obtain the actual installed devices that need to be interconnected across regions and their connected ports, select an unused reserved port on the first-layer switch, and connect the port that needs to be interconnected across regions and the selected reserved port; generate an unused tunnel label number, and record the correspondence between the reserved port of the vxlan switch and the vxlan tunnel label number; and, create flow table rules on the vxlan switches that are interconnected across regions, which are used to add corresponding labels to the traffic entering from the reserved port of the vxlan switch, and forward the traffic received from the tunnel port to the corresponding reserved port according to the correspondence between the label number and the reserved port.
[0063] In some embodiments, the networking module preferentially connects to an installed device on a layer 1 switch in the same area before connecting the port that needs to be interconnected across areas and the selected reserved port.
[0064] In some embodiments, a configuration agent module is provided in each regional target range, which is used to receive instructions from the networking module and configure a layer 1 switch and a vxlan switch in the area.
[0065] The embodiment of the present invention further discloses a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the cross-regional multi-range installation equipment networking method.
Claims
1. A method for networking equipment for multi-range installation across regions, characterized in that: A layer of switches and vxlan switches are configured in each regional network target range, the reserved port of the layer of switches is connected to the reserved port of the vxlan switch, and the reserved ports and the corresponding relationship are recorded; The installed devices are connected to a layer of switches in their respective areas, and a port mapping relationship between the installed devices and the layer of switches is recorded; When starting the actual installation scene, perform the following steps: Obtain the location of the installed device and the port number of the first-layer switch connected to the installed device according to the scenario configuration; Analyze the topology of the actual installation scenario, obtain the actual installation devices that need to be interconnected across regions and their connected ports, select unused reserved ports on a layer of switches, and connect the ports that need to be interconnected across regions and the selected reserved ports; Generate an unused tunnel label number and record the correspondence between the reserved port of the vxlan switch and the vxlan tunnel label number; Create flow table rules on the cross-region interconnected vxlan switches to add corresponding labels to the traffic entering from the reserved ports of the vxlan switches, and forward the traffic received from the tunnel ports to the corresponding reserved ports based on the correspondence between the label numbers and the reserved ports.
2. The cross-regional multi-range installation equipment networking method according to claim 1 is characterized in that: Before connecting the ports that need to be interconnected across regions and the selected reserved ports, prioritize connecting to the installed devices on the same region’s layer 1 switch.
3. The cross-regional multi-range installation equipment networking method according to claim 1 is characterized in that: The correspondence between the reserved ports of a layer switch and the reserved ports of a vxlan switch is recorded through a reserved port table, wherein the attributes of the reserved port table include the reserved port number of a layer switch, the reserved port number of the vxlan switch, the range area, and the usage status.
4. The cross-regional multi-range installation equipment networking method according to claim 1 is characterized in that: The port mapping relationship between the installed device and the first-layer switch is recorded through the installed device mapping port table, and the attributes of the installed device mapping port table include device name, device port number, port number of the first-layer switch, range area and device IP address.
5. The cross-regional multi-range installation equipment networking method according to claim 1 is characterized in that: The correspondence between the reserved port of the vxlan switch and the label number of the vxlan tunnel is recorded through the reserved port and label number mapping relationship table, and the attributes of the reserved port and label number mapping relationship table include the label number, the reserved port number of the vxlan switch and the target area.
6. The cross-regional multi-range installation equipment networking method according to claim 1 is characterized in that: The flow table rules created on the vxlan switch are as follows: in_port=PORTID actions=mod_vlan_vid:VXLANTAG,output:VXLANNAME in_port=VXLANNAME,dl_vlan=VXLANTAG actions=strip_vlan,output:PORTID PORTID is the reserved port number of the vxlan switch, VXLANTAG is the vxlan tunnel label number, and VXLANNAME is the tunnel name.
7. A cross-regional multi-range installation equipment networking system, characterized in that: It includes a real-installation device, a layer switch and a vxlan switch located in each regional network range, and a networking module and a data storage module located in a network range management platform, wherein the reserved port of the layer switch is connected to the reserved port of the vxlan switch, and the real-installation device is connected to a layer switch in each region; The data storage module is used to record the corresponding relationship between the reserved ports of the first-layer switch and the reserved ports of the vxlan switch, as well as the port mapping relationship of the interconnection between the installed device and the first-layer switch; The networking module is used to obtain the location of the installed device and the port number of the installed device connected to a layer of switches according to the scenario configuration when starting the installed scenario; parse the topology of the installed scenario, obtain the installed devices that need to be interconnected across regions and their connected ports, select an unused reserved port on a layer of switches, and connect the port that needs to be interconnected across regions and the selected reserved port; generate an unused tunnel label number, and record the correspondence between the reserved port of the vxlan switch and the vxlan tunnel label number; and, respectively create flow table rules on the vxlan switches that are interconnected across regions, for labeling the traffic entering from the reserved port of the vxlan switch with the corresponding label, and forwarding the traffic received from the tunnel port to the corresponding reserved port according to the correspondence between the label number and the reserved port.
8. The cross-regional multi-range installation equipment networking system according to claim 7 is characterized in that: The networking module preferentially connects to the installed devices on the first-layer switch in the same area before connecting the ports that need to be interconnected across areas and the selected reserved ports.
9. The cross-regional multi-range installation equipment networking system according to claim 7 is characterized in that: A configuration agent module is set up in each regional target range to receive instructions from the networking module and configure the layer 1 switch and vxlan switch in the area.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by the processor, the steps of the cross-regional multi-range installation equipment networking method according to claim 1 are implemented.
Citation Information
Cited By
Stateless lightweight cross-target range network control method and system
CN120281697A
