A resource allocation method for a multi-task network test bed topology construction system
By introducing the topology construction system of the controller and interconnection bus into the network test bed, and using the combination of resource management and allocation modules, physical layer switches, and SDN switches, multi-task test topology construction and traffic isolation are achieved, solving the existing technical problems. It solves the problems of resource allocation and traffic mirroring under multi-task concurrency, and supports larger-scale concurrent test tasks and flexible traffic collection.
Patent Information
- Application Number
- CN202410815748.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-24
AI Technical Summary
It is difficult to flexibly construct multiple test topologies and allocate resources for multiple concurrent tasks in a network test bed with the existing technology. The test topology and test traffic supporting each task are isolated from each other and do not affect each other. It is also difficult to distinguish and mirror and collect each test on demand. The test traffic of the task.
A multi-task network test bed topology construction system is proposed, including a controller and an interconnection bus. The controller includes a test topology construction decision-making module and a resource management and allocation module. It performs resource allocation and topology construction through physical layer switches and SDN switches to ensure that each The resources of each task are exclusive, and the test traffic of each task is distinguished and collected through the traffic mirroring function.
It realizes flexible topology construction and resource allocation that supports multiple test tasks concurrently in the network test bed, ensuring the test topology and traffic isolation of each task, and has good scalability and simple traffic mirror collection capabilities.
Smart Images

Figure CN118400307B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network testing technology, and in particular to a resource allocation method for a multi-task network test bed topology construction system. Background Art
[0002] The network test bed is an important tool for network technology research, new product development, and construction plan test verification. In order to support a variety of test tasks, the network test bed should have the ability to flexibly construct test topologies. The industry has proposed some methods for flexibly constructing test topologies for network test beds. There are mainly two categories: using physical layer switches and using software-defined network (SDN) technology. For example, in the public technical literature, "The Role and Implementation of Physical Layer Switches" adopts the method of physical layer switches; "A Rapid Networking Test Method Based on SDN" and "An Overview of Network Test Beds Based on SDN" adopt the method of SDN. The use of these methods can more conveniently provide the ability to flexibly construct test topologies, thereby meeting the diverse needs of different types of test tasks for test topology construction.
[0003] When multiple test tasks are carried out concurrently in a network test bed, it is necessary to strictly allocate and manage the equipment resources and interconnection resources involved in generating the test topology of each task to ensure that the resources used by each task will not conflict, and that the test topology and test traffic of each task are isolated and do not affect each other. Only in this way can the test topology be able to realistically reproduce the technical characteristics of the network hardware / firmware, operating system, protocol software, business data and other levels, and the collected test data is authentic and reliable. At present, there is still a lack of methods for flexibly building multiple test topologies and allocating resources for multiple concurrent tasks in a network test bed, supporting the isolation and non-interference of the test topology and test traffic of each task, and supporting the differentiation of the test traffic of each task and mirroring collection on demand. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a resource allocation method for a multi-task network test bed topology construction system, which can flexibly schedule the equipment and interconnection resources of the network test bed, and flexibly construct multiple test topologies on demand; and support the isolation and non-interference of the test topology and test traffic of each task, support the differentiation of the test traffic of each task and mirror collection on demand, so that the network test bed can support the concurrent execution of multiple test tasks.
[0005] The main technical problems to be solved by the present invention include:
[0006] (1) How to construct a test topology system that supports concurrent multi-tasking?
[0007] (2) How to allocate the resources required to build the test topology to multiple concurrent tasks?
[0008] (3) How to distinguish the test traffic of multiple concurrent tasks and perform traffic mirroring collection?
[0009] The technical solution adopted by the present invention is as follows:
[0010] On the one hand, the present invention proposes a multi-task network test bed topology construction system, including a controller and an interconnection bus, the controller including a test topology construction decision module and a resource management and allocation module connected thereto, a physical layer switch controller and an SDN controller; the interconnection bus includes a number of interconnected physical layer switches and SDN switches, the physical layer switch controller connects and controls the physical layer switch, and the SDN controller connects and controls the SDN switch; the controller is connected to the management interface of the physical layer switch and the SDN switch of the interconnection bus, and this type of interconnection link serves as a management and control link; the physical devices involved in constructing the test topology are not directly interconnected, but are connected to the network interfaces of the physical layer switch and the SDN switch of the interconnection bus, and this type of interconnection link serves as a service link; the test topology construction decision module can initiate a resource allocation request for a task to the resource management and allocation module, and the resource management and allocation module makes a decision on the resource allocation request based on the resource occupancy status managed and maintained by itself, updates the resource occupancy status, and returns a resource allocation response to the test topology construction decision module.
[0011] On the other hand, the present invention provides a resource allocation method for a multi-task network test bed topology construction system, comprising the following steps:
[0012] Step 1. The test topology construction decision module of the controller receives the test task list and its topology construction requirements, selects a test task, and generates a topology construction plan;
[0013] Step 2. The test topology construction decision module initiates a resource allocation request for the test task to the resource management and allocation module; the resource management and allocation module makes a decision on the resource allocation request based on the resource occupancy status managed and maintained by itself, updates the resource occupancy status, and returns a resource allocation response to the test topology construction decision module;
[0014] Step 3. If the resource allocation is successful, the test topology construction decision module sends the generated topology construction plan to the physical layer switch controller and SDN controller; if the resource allocation is unsuccessful, return to step 1 to adjust and regenerate the topology construction plan;
[0015] Step 4. The physical layer switch controller parses the received topology construction plan, generates a physical layer switch control instruction, and sends it to the corresponding physical layer switch; the SDN controller parses the received topology construction plan, generates an SDN switch control instruction, and sends it to the corresponding SDN switch;
[0016] Step 5. The physical layer switch and the SDN switch execute the control instructions, simulate the test topology link, interconnect the corresponding physical devices, and complete the test topology construction of the test task;
[0017] Step 6. When a test task is completed, the test topology construction decision module notifies the physical layer switch controller and the SDN controller to release the physical layer switch and SDN switch connection resources occupied by the test task, and notifies the resource management and allocation module to update the resource occupation status;
[0018] Step 7. The test topology construction decision module selects a new test task and returns to step 1 until the test topology construction is completed for each task in the test task list.
[0019] Furthermore, in step 1, the topology construction scheme includes: selecting a corresponding physical device for each device in the test topology; and selecting to construct each link in the test topology through a physical layer switch and an SDN switch.
[0020] Furthermore, in step 2, the resource allocation request for the task initiated by the test topology construction decision module to the resource management and allocation module includes: physical devices, ports of the physical layer switch and the SDN switch, and tunnels.
[0021] Furthermore, the resource allocation method for the ports and tunnels of the physical device, the physical layer switch and the SDN switch includes:
[0022] Each physical device can be occupied by at most one task at any time;
[0023] The physical port of each physical layer switch can be occupied by at most one task at any time;
[0024] The physical port of each SDN switch connected to the physical device or physical layer switch can be occupied by at most one task at any time;
[0025] The physical port of each SDN switch connected to other SDN switches can be occupied by multiple tasks at any time, but tunnels should be established between SDN switches, and different tasks should use different tunnels;
[0026] Each tunnel between SDN switches can be occupied by at most one task at any time.
[0027] Furthermore, the resource management and allocation module records in real time the resource information occupied by each task, including physical devices, physical switches and physical ports of SDN switches, and tunnels between SDN switches; when receiving a resource allocation request from the test topology construction decision module, the resource management and allocation module determines whether to pass the resource allocation request according to the resource allocation method; when the resource allocation request is passed, or the task is completed and the resources are released, the resource management and allocation module promptly updates the resource information occupied by each task.
[0028] Furthermore, in step 5, the physical layer switch and the SDN switch execute control instructions, simulate the test topology link by configuring the internal forwarding of the physical layer switch, the internal forwarding of the SDN switch, and the tunnel connection between the SDN switches, interconnect the corresponding physical devices, and complete the test topology construction of the test task.
[0029] Furthermore, the internal forwarding of the physical layer switch includes being implemented by configuring the physical layer switch; the internal forwarding of the SDN switch includes being implemented by configuring the flow forwarding or VLAN method of the SDN switch; the tunnels between the SDN switches include VxLAN tunnels, GRE tunnels and Geneve tunnels.
[0030] Furthermore, according to the test traffic collection and analysis requirements of each test task, the port traffic mirroring function of the physical layer switch and SDN switch of the interconnection bus is used to mirror the test traffic of each test task as needed and send it to the traffic collection system of the network test bed.
[0031] Furthermore, if multiple test tasks are carried out concurrently in the network test bed, the test traffic of each task is distinguished according to the resource information occupied by each task recorded by the resource management and allocation module:
[0032] When the test traffic is mirrored from the physical port of the physical layer switch, the test traffic of each task is distinguished according to the information of each task occupying this type of physical port;
[0033] When the physical port of the physical layer switch is connected to the physical device or physical layer switch from the SDN switch for test traffic mirroring, the test traffic of each task is distinguished according to the information of each task occupying this type of physical port;
[0034] When the SDN switch is connected to the physical port of other SDN switches for test traffic mirroring, the test traffic of each task is distinguished according to the information that each task occupies the tunnel between the SDN switches.
[0035] The beneficial effects of the present invention are:
[0036] The present invention focuses on the need to carry out multiple test tasks concurrently in a network test bed, and proposes a multi-task network test bed topology construction system and resource allocation method, so that the network test bed equipment can be flexibly scheduled, multiple test topologies can be flexibly constructed on demand, and the test topology and test traffic of each task can be isolated from each other and do not affect each other, and the test traffic of each task can be distinguished and mirrored collection can be performed on demand, so that multiple test tasks can be supported to be carried out concurrently. The present invention mainly has the following advantages:
[0037] (1) The flexible construction of the test topology and the resource allocation process and resource allocation rules proposed in the present invention have no obvious restrictions on the total number of test tasks supported, have good scalability, and can support larger-scale concurrent test tasks when the test bed resources are sufficient.
[0038] (2) The present invention supports the isolation of test topology and test traffic between tasks at two levels: the physical port used for device interconnection and the logical tunnel. The appropriate isolation level can be flexibly selected according to task requirements.
[0039] (3) The present invention can support distinguishing the test traffic of different tasks in a relatively simple manner and perform mirroring collection of the traffic. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a schematic diagram of the composition of a multi-task network test bed topology construction system according to Example 1 of the present invention.
[0041] Figure 2 This is a flow chart of a resource allocation method for a multi-task network test bed topology construction system according to Embodiment 2 of the present invention.
[0042] Figure 3 It is a schematic diagram of the test traffic mirroring collection method for the test task of Example 2 of the present invention. DETAILED DESCRIPTION
[0043] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, the specific implementation methods of the present invention are now described. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the embodiments described are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.
[0044] Example 1
[0045] like Figure 1As shown, this embodiment provides a multi-task network test bed topology construction system, including a controller and an interconnection bus, the controller includes a test topology construction decision module and a resource management and allocation module connected to it, a physical layer switch controller and an SDN controller; the interconnection bus includes a number of interconnected physical layer switches and SDN switches, the physical layer switch controller connects and controls the physical layer switch, and the SDN controller connects and controls the SDN switch.
[0046] The controller is connected to the physical layer switch of the interconnection bus and the management interface of the SDN switch. This type of interconnection link is used as a management and control link. The physical devices involved in building the test topology are not directly interconnected, but are connected to the physical layer switch of the interconnection bus and the network interface of the SDN switch. This type of interconnection link is used as a service link.
[0047] The test topology construction decision module can initiate a resource allocation request for a task to the resource management and allocation module. The resource management and allocation module makes a decision on the resource allocation request based on the resource occupancy status managed and maintained by itself, updates the resource occupancy status, and returns a resource allocation response to the test topology construction decision module.
[0048] Example 2
[0049] This embodiment is based on embodiment 1:
[0050] This embodiment provides a resource allocation method for a multi-task network test bed topology construction system. For different test topologies required by multiple concurrent tasks, there is no need to change the physical connection method between the physical device and the interconnection bus. Instead, the physical layer switch and SDN switch of the interconnection bus are configured through the controller to establish connections between the corresponding physical devices, and the links between the physical devices are simulated as needed, thereby achieving the purpose of flexibly constructing the test topology. The controller also manages the resource occupancy status of the physical device and the interconnection bus, and allocates available resources to each task so that the resources used by each task do not overlap, thereby ensuring that the test topology and test traffic of each task are isolated from each other.
[0051] like Figure 2 As shown, the resource allocation method of this embodiment includes the following steps:
[0052] Step 1. The test topology construction decision module of the controller receives the test task list and its topology construction requirements, selects a test task, and generates a topology construction plan;
[0053] Step 2. The test topology construction decision module initiates a resource allocation request for the test task to the resource management and allocation module; the resource management and allocation module makes a decision on the resource allocation request based on the resource occupancy status managed and maintained by itself, updates the resource occupancy status, and returns a resource allocation response to the test topology construction decision module;
[0054] Step 3. If the resource allocation is successful, the test topology construction decision module sends the generated topology construction plan to the physical layer switch controller and SDN controller; if the resource allocation is unsuccessful, return to step 1 to adjust and regenerate the topology construction plan;
[0055] Step 4. The physical layer switch controller parses the received topology construction plan, generates a physical layer switch control instruction, and sends it to the corresponding physical layer switch; the SDN controller parses the received topology construction plan, generates an SDN switch control instruction, and sends it to the corresponding SDN switch;
[0056] Step 5. The physical layer switch and the SDN switch execute the control instructions, simulate the test topology link, interconnect the corresponding physical devices, and complete the test topology construction of the test task;
[0057] Step 6. When a test task is completed, the test topology construction decision module notifies the physical layer switch controller and the SDN controller to release the physical layer switch and SDN switch connection resources occupied by the test task, and notifies the resource management and allocation module to update the resource occupation status;
[0058] Step 7. The test topology construction decision module selects a new test task and returns to step 1 until the test topology construction is completed for each task in the test task list.
[0059] Preferably, in step 1, the topology construction scheme includes: selecting a corresponding physical device for each device in the test topology; and selecting to construct each link in the test topology through a physical layer switch and an SDN switch.
[0060] Preferably, in step 2, the resource allocation request for the task initiated by the test topology construction decision module to the resource management and allocation module includes: physical devices, ports of the physical layer switch and the SDN switch, and tunnels.
[0061] In order to support multiple test tasks to be carried out concurrently and ensure that the test topology and test traffic of each task are isolated from each other and do not affect each other, the allocation of resources such as ports and tunnels of physical devices, physical layer switches and SDN switches should follow the following rules:
[0062] (1) Each physical device can be occupied by at most one task at any time.
[0063] (2) Each physical port of a physical layer switch can be occupied by at most one task at any time.
[0064] (3) The physical port of each SDN switch connected to the physical device or physical layer switch can be occupied by at most one task at any time.
[0065] (4) The physical port of each SDN switch connected to other SDN switches can be occupied by multiple tasks at any time, but tunnels should be established between SDN switches, and different tasks should use different tunnels.
[0066] (5) Each tunnel between SDN switches can be occupied by at most one task at any time.
[0067] Preferably, the resource management and allocation module records in real time the resource information occupied by each task, including physical devices, physical switches and physical ports of SDN switches, and tunnels between SDN switches; when receiving a resource allocation request from the test topology construction decision module, the resource management and allocation module determines whether to pass the resource allocation request according to the resource allocation method; when the resource allocation request is passed, or the task is completed and the resources are released, the resource management and allocation module promptly updates the resource information occupied by each task.
[0068] Preferably, in step 5, the physical layer switch and the SDN switch execute control instructions, simulate the test topology link by configuring internal forwarding of the physical layer switch, internal forwarding of the SDN switch, and tunnel connections between SDN switches, interconnect the corresponding physical devices, and complete the test topology construction of the test task.
[0069] Preferably, forwarding within the physical layer switch includes being implemented by configuring the physical layer switch; forwarding within the SDN switch includes being implemented by configuring the flow forwarding or VLAN method of the SDN switch; and tunnels between SDN switches include VxLAN tunnels, GRE tunnels, and Geneve tunnels.
[0070] Preferably, according to the test traffic collection and analysis requirements of each test task, the port traffic mirroring function of the physical layer switch and the SDN switch of the interconnection bus can be used to mirror the test traffic of each test task as needed and send it to the traffic collection system of the network test bed, such as Figure 3 shown.
[0071] More preferably, if multiple test tasks are carried out concurrently in the network test bed, the test traffic of each task is distinguished according to the resource information occupied by each task recorded by the resource management and allocation module:
[0072] (1) When the test traffic is mirrored from the physical port of the physical layer switch, the test traffic of each task can be distinguished based on the information of each task occupying this type of physical port.
[0073] (2) When the SDN switch is connected to the physical device or the physical port of the physical layer switch for test traffic mirroring, the test traffic of each task can be distinguished based on the information of each task occupying this type of physical port.
[0074] (3) When the physical ports of other SDN switches are connected from an SDN switch to conduct test traffic mirroring, the test traffic of each task can be distinguished based on the information of the tunnels between the SDN switches occupied by each task.
[0075] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity of description, they are expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
Claims
1. A resource allocation method for a multi-task network test bed topology construction system, applied to a multi-task network test bed topology construction system, the system includes a controller and an interconnection bus, the controller includes a test topology construction decision module and a resource management and allocation module connected thereto, a physical layer switch controller and an SDN controller; the interconnection bus includes a number of interconnected physical layer switches and SDN switches, the physical layer switch controller connects and controls the physical layer switch, and the SDN controller connects and controls the SDN switch; the controller is connected to the management interface of the physical layer switch and the SDN switch of the interconnection bus, and this type of interconnection link serves as a management link; the physical devices involved in constructing the test topology are not directly interconnected, but are connected to the network interface of the physical layer switch and the SDN switch of the interconnection bus, and this type of interconnection link serves as a service link; the test topology construction decision module can initiate a resource allocation request for a task to the resource management and allocation module, and the resource management and allocation module makes a decision on the resource allocation request according to the resource occupancy status managed and maintained by itself, updates the resource occupancy status, and returns a resource allocation response to the test topology construction decision module, characterized in that The resource allocation method comprises the following steps: Step 1. The test topology construction decision module of the controller receives the test task list and its topology construction requirements, selects a test task, and generates a topology construction plan; Step 2. The test topology construction decision module initiates a resource allocation request for the test task to the resource management and allocation module; the resource management and allocation module makes a decision on the resource allocation request based on the resource occupancy status managed and maintained by itself, updates the resource occupancy status, and returns a resource allocation response to the test topology construction decision module; Step 3. If the resource allocation is successful, the test topology construction decision module sends the generated topology construction plan to the physical layer switch controller and SDN controller; if the resource allocation is unsuccessful, return to step 1 to adjust and regenerate the topology construction plan; Step 4. The physical layer switch controller parses the received topology construction plan, generates a physical layer switch control instruction, and sends it to the corresponding physical layer switch; the SDN controller parses the received topology construction plan, generates an SDN switch control instruction, and sends it to the corresponding SDN switch; Step 5. The physical layer switch and the SDN switch execute the control instructions, simulate the test topology link, interconnect the corresponding physical devices, and complete the test topology construction of the test task; Step 6. When a test task is completed, the test topology construction decision module notifies the physical layer switch controller and the SDN controller to release the physical layer switch and SDN switch connection resources occupied by the test task, and notifies the resource management and allocation module to update the resource occupation status; Step 7. The test topology construction decision module selects a new test task and returns to step 1 until the test topology construction is completed for each task in the test task list; In the step 2, the resource allocation request for the task initiated by the test topology construction decision module to the resource management and allocation module includes: physical devices, ports and tunnels of the physical layer switch and the SDN switch; The resource allocation method for the ports and tunnels of physical devices, physical layer switches and SDN switches includes: each physical device can be occupied by at most one task at any time; each physical port of the physical layer switch can be occupied by at most one task at any time; each physical port of the SDN switch connected to the physical device or the physical layer switch can be occupied by at most one task at any time; each physical port of the SDN switch connected to other SDN switches can be occupied by multiple tasks at any time, but tunnels between SDN switches should be established, and different tasks should use different tunnels; each tunnel between SDN switches can be occupied by at most one task at any time; The resource management and allocation module records the resource information occupied by each task in real time, including physical devices, physical switches and physical ports of SDN switches, and tunnels between SDN switches; when receiving a resource allocation request from the test topology construction decision module, the resource management and allocation module determines whether to pass the resource allocation request according to the resource allocation method; when the resource allocation request is passed, or the task is completed and the resources are released, the resource management and allocation module promptly updates the resource information occupied by each task; In step 5, the physical layer switch and the SDN switch execute the control instructions, simulate the test topology link by configuring the internal forwarding of the physical layer switch, the internal forwarding of the SDN switch, and the tunnel connection between the SDN switches, interconnect the corresponding physical devices, and complete the test topology construction of the test task; The internal forwarding of the physical layer switch includes being realized by configuring the physical layer switch; the internal forwarding of the SDN switch includes being realized by configuring the flow forwarding or VLAN method of the SDN switch; the tunnels between the SDN switches include VxLAN tunnels, GRE tunnels and Geneve tunnels; According to the test traffic collection and analysis requirements of each test task, the port traffic mirroring function of the physical layer switch and SDN switch of the interconnection bus is used to mirror the test traffic of each test task as needed and send it to the traffic collection system of the network test bed; If multiple test tasks are carried out concurrently in the network test bed, the test traffic of each task is distinguished according to the resource information occupied by each task recorded by the resource management and allocation module: when the test traffic is mirrored from the physical port of the physical layer switch, the test traffic of each task is distinguished according to the information that each task occupies this type of physical port; when the test traffic is mirrored from the SDN switch to the physical port of the physical layer switch, the test traffic of each task is distinguished according to the information that each task occupies this type of physical port; when the test traffic is mirrored from the SDN switch to the physical port of other SDN switches, the test traffic of each task is distinguished according to the information that each task occupies the tunnel between SDN switches.
2. The resource allocation method of a multi-task network test bed topology construction system according to claim 1, characterized in that: In step 1, the topology construction scheme includes: selecting a corresponding physical device for each device in the test topology; and selecting to construct each link in the test topology through a physical layer switch and an SDN switch.
