A virtual-real combined TSN network flow scheduling simulation method and related equipment
Through the TSN network flow scheduling simulation method combined with virtual and real, the problem of simulation software restricting algorithm language and being unable to simulate real devices in the existing technology is solved, and effective time-sensitive traffic scheduling in the TSN network is realized, and development efficiency and verification are improved. accuracy.
Patent Information
- Application Number
- CN202211639947.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-20
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2042-12-20
AI Technical Summary
In the prior art, simulation software has limitations on algorithm language, cannot provide algorithm platform services and the ability to simulate real devices, and it is difficult to effectively schedule time-sensitive traffic in the TSN network.
Using the TSN network flow scheduling simulation method combining virtual and real, by obtaining device model and capability parameters, creating a topology template library, selecting the target topology template and configuring flow information, calculating the scheduling strategy based on the TSN scheduling algorithm, and sending the results to the actual network equipment In, simulate real device behavior and attributes.
Real device simulation and scheduling strategy calculation of TSN networks are realized, unlimited algorithm language support is provided, and can be verified in virtual networks and applied in real networks, reducing development difficulty and verification efficiency.
Smart Images

Figure CN116192644B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of TSN network scheduling and SDN network, and in particular to a virtual-real combined TSN network flow scheduling simulation method, system, terminal and computer-readable storage medium. Background Art
[0002] TSN (Time Sensitive Networking) refers to a set of protocol standards being developed by the TSN Task Group in the IEEE 802.1 Working Group. This protocol standard defines a time-sensitive mechanism for Ethernet data transmission, adding determinism and reliability to standard Ethernet to ensure that Ethernet can provide a stable and consistent service level for the transmission of critical data.
[0003] There are three typical types of traffic in time-sensitive networks, namely time-sensitive traffic (ST flow) with hard real-time requirements, audio and video traffic (AVB flow) with soft real-time requirements, and best-effort traffic (BE flow) without real-time requirements. Among them, time-sensitive traffic is a type of periodic traffic that needs to meet low latency and low jitter requirements. This type of traffic is the key to ensuring the real-time and determinism of time-sensitive networks. Therefore, in TSN networks, time-sensitive traffic is usually set to the highest priority, audio and video traffic with soft real-time requirements has the second highest priority, and best-effort traffic without real-time requirements has the lowest priority. Priorities can be further distinguished among each traffic to distinguish service levels. In order to ensure the real-time and determinism of time-sensitive traffic, on-chip storage resources need to be used to cache the packet data and packet descriptors of the traffic. At present, there have been many studies on flow scheduling algorithms under TSN networks, but there is a lack of specific implementation, verification and application platforms of the algorithms. Therefore, the simulation software in the prior art has restrictions on the algorithm language, cannot provide algorithm platform services, and cannot simulate the capabilities of real devices.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a virtual-real TSN network flow scheduling simulation method and related equipment, aiming to solve the problems in the prior art that the simulation software has limitations on the algorithm language, cannot provide algorithm platform services, and cannot simulate the capabilities of real devices.
[0006] To achieve the above object, the present invention provides a virtual-real combined TSN network flow scheduling simulation method and related equipment, the virtual-real combined TSN network flow scheduling simulation method comprising the following steps:
[0007] Acquire a device model and a device capability parameter, add a virtual device based on the device model, and instantiate the virtual device based on the device capability parameter to obtain an instantiated device;
[0008] Creating a topology template library, selecting a target topology template based on the topology template library, importing the instantiated device into the target topology template, and configuring flow information for the target topology template to select a scheduling strategy;
[0009] The calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the equipment in the actual network to complete the operation of the actual TSN network service on the equipment in the actual network.
[0010] Optionally, the virtual-real combined TSN network flow scheduling simulation method, wherein the creating a topology template library, selecting a target topology template based on the topology template library, importing the instantiated device into the target topology template, and configuring flow information for the target topology template to select a scheduling strategy, specifically includes:
[0011] Creating a topology template library based on external network topology data, actual network data and scenario network topology templates, and obtaining topology templates and template numbers of the topology templates in the topology template library;
[0012] Generate a template instance framework of the topology template based on the template number, modify the node attributes and link attributes of the template instance framework, and save the modified template instance framework to obtain a target topology template;
[0013] The instantiated device is imported into the target topology template, and flow information is configured for the target topology template to select a scheduling strategy.
[0014] Optionally, the virtual-real combined TSN network flow scheduling simulation method, wherein the step of obtaining the topology template in the topology template library and the template number of the topology template further includes:
[0015] If no topology template is selected in the topology template library, a manually configured topology template is received.
[0016] Optionally, in the virtual-real combined TSN network flow scheduling simulation method, the link attributes include latency, link rate and Qbu.
[0017] Optionally, in the virtual-real combined TSN network flow scheduling simulation method, the scheduling strategy includes a minimum time slot strategy and a minimum delay strategy.
[0018] Optionally, the virtual-real combined TSN network flow scheduling simulation method, wherein the calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service in the device of the actual network, further includes:
[0019] Obtain topology information and flow information, assemble interface parameters based on the topology information and the flow information, and write the input.json file into the interface parameters;
[0020] The interface parameters are sent to the flow scheduler, and the output.json file generated after processing by the flow scheduler is received.
[0021] Optionally, the virtual-real combined TSN network flow scheduling simulation method, wherein the calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service in the device of the actual network, specifically includes:
[0022] Accessing the flow scheduling algorithm through different access modes, selecting a TSN scheduling algorithm in the flow scheduling algorithm based on the scheduling strategy, and obtaining a calculation result of the scheduling strategy based on the TSN scheduling algorithm;
[0023] Based on the output.json file, the calculation results are stored in a mysql database, the data in the mysql database is displayed, and the calculation results are sent to the devices corresponding to the actual network to complete the operation of the actual TSN network services on the devices of the actual network.
[0024] Optionally, in the virtual-real combined TSN network flow scheduling simulation method, the access method includes a service access method and a module embedding method.
[0025] Optionally, the virtual-real combined TSN network flow scheduling simulation method, wherein the topology information and flow information are obtained, interface parameters are assembled based on the topology information and the flow information, and the input.json file is written into the interface parameters, and the above also includes:
[0026] Obtain network topology information, node capability information, flow information and used resources, assemble the network topology information, node capability information, flow information and resources into an input.json file, and store the input.json file in a directory, wherein the flow information includes unscheduled flow information and scheduled flow information.
[0027] Optionally, in the virtual-real combined TSN network flow scheduling simulation method, the output.json file includes the path of the service flow, the time slot of each port and the gcl list information.
[0028] In addition, to achieve the above-mentioned purpose, the present invention also provides a virtual-real combined TSN network flow scheduling simulation system, wherein the virtual-real combined TSN network flow scheduling simulation system comprises:
[0029] A device construction module, used to obtain a device model and a device capability parameter, add a virtual device based on the device model, and instantiate the virtual device based on the device capability parameter to obtain an instantiated device;
[0030] A device configuration module, used to create a topology template library, select a target topology template based on the topology template library, import the instantiated device into the target topology template, and configure flow information for the target topology template to select a scheduling strategy;
[0031] A data delivery module is used to calculate the calculation result of the scheduling strategy based on the TSN scheduling algorithm, and to deliver the calculation result to the device of the actual network in a stream, so as to complete the operation of the actual TSN network service on the device of the actual network;
[0032] The algorithm component is used to schedule the service flow and calculate the path, time slot and gcl list information of the service flow;
[0033] Configure the conversion component to download the results of TSN network flow scheduling, directly display and analyze the results graphically, and send the results to the actual network service for verification;
[0034] Topology generation component, used to create virtual network topology templates;
[0035] The traffic input component is used to control the flow management module to manage business flows.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a virtual-real combined TSN network flow scheduling simulation program stored in the memory and runnable on the processor, and when the virtual-real combined TSN network flow scheduling simulation program is executed by the processor, the steps of the virtual-real combined TSN network flow scheduling simulation method as described above are implemented.
[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a virtual-real TSN network flow scheduling simulation program, and when the virtual-real TSN network flow scheduling simulation program is executed by a processor, the steps of the virtual-real TSN network flow scheduling simulation method as described above are implemented.
[0038] In the present invention, the device model and device capability parameters are obtained, a virtual device is added based on the device model, and the virtual device is instantiated based on the device capability parameters to obtain an instantiated device; a topology template library is created, a target topology template is selected based on the topology template library, the instantiated device is imported into the target topology template, and the target topology template is configured with flow information to select a scheduling strategy; the calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service in the device of the actual network. The present invention can simulate the behavior and properties of real devices, and can also simulate or import real topology templates, and there is no restriction on the algorithm language, and the output of the network scheduling algorithm can be directly converted into a real device configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flow chart of a preferred embodiment of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0040] Figure 2 It is a schematic diagram of filling in device parameters of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0041] Figure 3 It is a schematic diagram of adding equipment to the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0042] Figure 4 It is a flow chart of generating a topology template of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0043] Figure 5 It is a schematic diagram of creating a topology template for a preferred embodiment of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0044] Figure 6 It is a schematic diagram of adjusting the topology template attributes of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0045] Figure 7 It is a schematic diagram of the selection scheduling strategy of the virtual-real combined TSN network flow scheduling simulation method in the present invention;
[0046] Figure 8It is a schematic diagram of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0047] Fig. 9 It is a schematic diagram of TSN scheduling algorithm calculation of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0048] Fig.10 It is a schematic diagram showing the calculation results of the virtual-real combined TSN network flow scheduling simulation method in the present invention;
[0049] Fig.11 It is a schematic diagram of the calculation results of the virtual-real combined TSN network flow scheduling simulation method in the present invention;
[0050] Fig.12 is a schematic diagram of providing scheduling capabilities with algorithm services in a preferred embodiment of the present invention;
[0051] Fig.13 It is a schematic diagram of providing scheduling services by embedding an algorithm module in a preferred embodiment of the present invention;
[0052] Fig.14 It is an overall schematic diagram of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0053] Fig.15 It is an overall flow chart of a preferred embodiment of the virtual-real combined TSN network flow scheduling simulation method of the present invention;
[0054] Fig.16 It is a schematic diagram of the principle of a preferred embodiment of the virtual-real combined TSN network flow scheduling simulation system of the present invention;
[0055] Fig.17 Schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. 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.
[0057] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0058] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0059] TSN network equipment includes TSN routers, TSN switches and TSN terminals. TSN networks have the characteristics of low latency, high reliability and good real-time performance. It requires time slot and path planning for devices in the network in advance. There have been many studies on flow scheduling algorithms under TSN networks, but there is a lack of specific algorithm implementation, verification and application platform. The common network algorithm simulation is mainly to develop an algorithm on the simulation tool first, then define the network node attributes on the simulation tool, then run the simulation algorithm on the simulation tool, and finally verify the algorithm through network experiments. However, the simulation of flow scheduling algorithms in TSN networks is difficult under conventional processes. The main manifestations are as follows: (1) It is impossible to simulate the capabilities of real devices and it is difficult to modify. The network scheduling algorithm simulation is a theoretical simulation, which may be very different from the actual situation and needs to be verified in the actual network. (2) The simulation software has restrictions on the algorithm language. The algorithm development tool is difficult to master and the development is difficult, which is not friendly to beginners. For example, the Omnet simulation development tool is large, slow to learn and has no choice of development language. Omnet simulation can only use C++. (3) There is still a lot of transformation work from network scheduling algorithm simulation to actual network verification. The network structure and link properties are different in different scenarios, and the simulation tool is not convenient for traversing different network calculations. (4) The network scheduling algorithm simulation tool cannot provide algorithm platform services. For example, different scheduling algorithms and different strategies are used on a platform to perform scheduling simulation on the TSN network; the virtual-real combined TSN network flow scheduling simulation method in the present invention solves the above problems.
[0060] The virtual-real combined TSN network flow scheduling simulation method described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the virtual-real combined TSN network flow scheduling simulation method includes the following steps:
[0061] Step S10: Acquire a device model and a device capability parameter, add a virtual device based on the device model, and instantiate the virtual device based on the device capability parameter to obtain an instantiated device.
[0062] Specifically, obtain the device model and device capability parameters, and fill in the values of different device parameters, such as Figure 2 As shown in the figure, the entered information includes device model, device port, device type, 802.1AS switch, 802.1Qbv switch, 802.1Qci switch, 802.1CB switch, 802.1Qcr switch, synchronization accuracy (ns), number of GCL entries, GCL entry interval time (range 32ns-8000000ns), GCL entry interval step (ns), number of TSN flows, number of 802.1Qci ingress gating, number of 802.1CB protection groups, GE interface forwarding delay, 10GE interface forwarding delay (μs), MAC address table capacity (K), total cache (MB) and queue cache (KB); add virtual devices based on the entered data, such as Figure 3 As shown, the information of the added virtual device includes device name, device type (e.g., terminal), device model, device group, IP address, management port, SSH port, SSH user name, SSH password, manufacturer, city and address, and the virtual device is instantiated to obtain an instantiated device.
[0063] Step S20: create a topology template library, select a target topology template based on the topology template library, import the instantiated device into the target topology template, and configure flow information for the target topology template to select a scheduling strategy.
[0064] The step S20 comprises:
[0065] Step S21: Create a topology template library based on external network topology data, actual network data and scenario network topology templates, and obtain a topology template and a template number of the topology template in the topology template library;
[0066] Step S22: generating a template instance framework of the topology template based on the template number, modifying the node attributes and link attributes of the template instance framework, and saving the modified template instance framework to obtain a target topology template;
[0067] Step S23: import the instantiated device into the target topology template, and configure flow information for the target topology template to select a scheduling strategy.
[0068] Specifically, TSN networks have different requirements and focuses in different actual application scenarios, which will lead to heterogeneous diversity of the network. Virtual network topology templates are used to abstract the actual network and express the heterogeneous diversity of the actual network. The specific implementation steps of the topology generation component to manage the virtual network topology template are as follows: Figure 4As shown in the figure, the main sources of virtual network topology templates in the template library are external network topology import, actual network topology, scenario network topology templates and manual configuration. The template is instantiated (for example, a template is selected for data improvement or modification of nodes and links), and then the network topology table is called to select the scheduling network topology according to the instance number of the instantiated template, and the scheduling parameters are assembled; among them, the node attributes of the virtual network topology template (node attributes describe the device capabilities) can be imported or manually configured graphically; the link attributes of the virtual network topology (link attributes describe the attributes of the link communication between two nodes) can be imported or manually configured graphically, and the node attributes and link attributes of the virtual network topology are completed and saved as a topology template for use as subsequent flow scheduling parameters; in addition, the node attributes and link attributes of the topology template can be modified, but the template number cannot be changed.
[0069] Furthermore, if Figure 5 As shown, select a topology template and import the topology data into the topology template. If there is no suitable topology template, create a topology template graphically, such as switches, gateways, switchable gateways, terminals, and switchable terminals. After creating a topology template, Figure 6 As shown, adjust the device node attributes and link attributes on the topology template, for example, configure the delay, configure the link rate, configure Qbu and delete the link; after the adjustment is completed, configure the flow configuration (for example, T1), as shown Figure 7 As shown, select a suitable scheduling algorithm (such as PCL) and a suitable scheduling strategy (such as minimum delay) and then perform scheduling.
[0070] Step S30: Calculate the scheduling strategy based on the TSN scheduling algorithm, and send the calculation result to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network.
[0071] The step S30 comprises:
[0072] Step S31, accessing the flow scheduling algorithm through different access modes, selecting the TSN scheduling algorithm in the flow scheduling algorithm based on the scheduling strategy, and obtaining the calculation result of the scheduling strategy based on the TSN scheduling algorithm;
[0073] Step S32: based on the output.json file, the calculation results are stored in the mysql database, the data in the mysql database is displayed, and the calculation results are sent to the device corresponding to the actual network to complete the operation of the actual TSN network service on the device of the actual network.
[0074] Specifically, Figure 8As shown, start the flow management module and start the loading resource management thread in the background; obtain the node resource from the database and load it, obtain the link information after the loading is completed, judge whether the data in the link information is reasonable, if the data is unreasonable, filter the data; if the data is reasonable, obtain the flow scheduling request and the flow list information requested for scheduling, and write them into the input.json file; obtain the topology information and flow information, assemble the interface parameters based on the topology information and the flow information, and write the input.json file (the input.json file is the parameter input file of the scheduling algorithm, which is used in During the flow scheduling process), the interface parameters are written into the interface parameters; the interface parameters are sent to the flow scheduler, and it is determined whether the scheduler fails to schedule. If the scheduling fails, the scheduling failure status is notified; if successful, the output.json file generated by the flow scheduler after processing is received, and the parsing result is obtained, and the updated time slot and gate period are written into the output.json file, and an information interface such as the gate and time slot of the flow is provided; the flow scheduling algorithm is accessed through different access methods, and the TSN scheduling algorithm in the flow scheduling algorithm is selected based on the scheduling strategy, and the calculation result of the scheduling strategy is obtained based on the TSN scheduling algorithm. Fig. 9 As shown, the TSN scheduling algorithm calculates the shortest path planning and time slot, gcl gating list according to the strategy; the calculation results are stored in the mysql database through the output.json file, and then the calculation structure in the mysql database is analyzed and displayed, as shown in Fig.10 As shown, it is convenient for personnel to know the current status of the equipment; Fig.11 As shown, the calculation results can be downloaded or sent to the corresponding devices in the actual network to complete the operation of the actual TSN network services in the devices of the actual network.
[0075] Furthermore, the access method includes a service access method and a module embedding method. The first method is to provide scheduling capabilities with algorithm services (through the service access method). Fig.12 As shown, specifically: 1. The controller flow management service sends a scheduling request; 2. The controller flow management service establishes a connection with the third-party algorithm scheduling engine and forwards commands; 3. The third-party algorithm scheduling engine obtains calculation conditions from the controller database; 4. The third-party algorithm scheduling engine performs self-calculations based on the calculation conditions to obtain calculation results; 5. The third-party algorithm scheduling engine stores the calculation results in the controller database; 6. The third-party algorithm scheduling engine sends the result of whether the command is successful to the controller flow management service; 7. The controller flow management service obtains the scheduling result in the controller database; 8. The controller flow management service obtains the scheduling result of the scheduling request. The second method is to provide scheduling services by embedding algorithm modules (through module embedding) such as Fig.13 As shown, specifically: 1. The controller flow management service sends a scheduling request; 2. The controller flow management service establishes a connection with the third-party algorithm scheduling engine; 3. The controller database receives the command sent by the controller flow management service and prepares parameters according to the command; 4. The controller database sends the prepared scheduling parameter file to the controller flow management service; 5. The controller flow management service sends a scheduling command to the third-party algorithm scheduling engine; 6. The third-party algorithm scheduling engine performs self-calculation and stores the scheduling result in the scheduling result file; 7. The third-party algorithm scheduling engine sends the result of whether the command is successful to the controller flow management service; 8 According to the scheduling result file, the result is stored in the database; 9. The controller flow management service obtains the scheduling result in the controller database; 10. The controller flow management service obtains the scheduling result of the scheduling request. In addition, the results of the two scheduling methods are the same, the difference is the algorithm integration form and the storage result form; the first method is to make the algorithm into a separate server, which has an equal relationship with other modules as a service provider, so there is no restriction on programming language, it is a distributed service model, and the calculation results are shared with other systems through the database; the second method is to program the algorithm into a dynamic library and incorporate it into a module that specializes in integrating the algorithm engine, so that multiple algorithms can exist on one server at the same time for easy collaboration. The scheduling results are shared through files.
[0076] Furthermore, if Fig.14 As shown, the overall process in the present invention specifically includes browsing templates and selecting templates according to the unique template number of the sentence template in the template library, and generating a template instance framework according to the template number; if the template instance framework is a real-time data template framework, the data of the template instance framework is directly imported into the scheduling library; the template is modified by adding and deleting the template framework, the template node information is improved according to the new template data, and the template link information is improved according to the new template data; after the improvement, the instantiated data is saved; the instantiated data is imported into the scheduling topology table; then the flow management performs flow deletion on the parameters in the scheduling topology table, and marks the available parameters of the instance template minus one. If it is 0, it is marked as deletable but not deleted. If it is called again next time, the mark is changed to normal and available; the scheduled task cleans up the deletable topology instance data; the flow management performs scheduling calculation on the topology instance data to obtain the calculation result, and the calculation result is sent down in the flow, and the business verification has been completed.
[0077] Furthermore, the overall process of the preferred embodiment of the virtual-real combined TSN network flow scheduling simulation method of the present invention is as follows: Fig.15 As shown, the specific steps are as follows:
[0078] Step S1: Enter device model and capability parameters;
[0079] Step S2: adding a device according to the device model and the capability parameter;
[0080] Step S3: receiving the manually configured templates, externally imported topology templates and saved scenario topology templates to generate a topology template library;
[0081] Step S4: selecting a topology template from the topology template library, adding the device to the topology template, and configuring flow information for the topology template;
[0082] Step S5: selecting a scheduling strategy based on the flow information, and selecting a scheduling algorithm based on the scheduling strategy to perform calculations to obtain calculation results;
[0083] Step S6: saving, downloading and displaying the calculation results;
[0084] Step S7: Send the saved calculation results to the devices in the actual network;
[0085] Step S8: The devices in the actual network complete the actual TSN network service operation according to the calculation results.
[0086] Furthermore, if Fig.16 As shown, based on the above-mentioned virtual-real combined TSN network flow scheduling simulation method, the present invention also provides a virtual-real combined TSN network flow scheduling simulation system, wherein the virtual-real combined TSN network flow scheduling simulation system includes:
[0087] The device construction module 51 is used to obtain a device model and a device capability parameter, add a virtual device based on the device model, and instantiate the virtual device based on the device capability parameter to obtain an instantiated device;
[0088] The device configuration module 52 is used to create a topology template library, select a target topology template based on the topology template library, import the instantiated device into the target topology template, and configure flow information for the target topology template to select a scheduling strategy;
[0089] The data sending module 53 is used to calculate the calculation result of the scheduling strategy based on the TSN scheduling algorithm, and send the calculation result to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network;
[0090] Algorithm component 54, used to perform flow scheduling planning for the service flow and calculate the path, time slot and gcl list information of the service flow;
[0091] Configuration conversion component 55, used to download the results of TSN network flow scheduling, directly display and analyze the results graphically, and send the results to actual network service verification;
[0092] A topology generation component 56, used to create a virtual network topology template;
[0093] The traffic input component 57 is used to control the flow management module to manage the business flow.
[0094] Furthermore, if Fig.17 As shown, based on the above-mentioned virtual-real combined TSN network flow scheduling simulation method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Fig.17 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0095] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Furthermore, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a storage optimization program 40 for panoramic video is stored on the memory 20, and the storage optimization program 40 for panoramic video can be executed by the processor 10, thereby realizing the virtual-real TSN network flow scheduling simulation method in this application.
[0096] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the virtual-real combined TSN network flow scheduling simulation method.
[0097] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0098] In one embodiment, when the processor 10 executes the storage optimization program 40 of the panoramic video in the memory 20, the following steps are implemented:
[0099] Acquire a device model and a device capability parameter, add a virtual device based on the device model, and instantiate the virtual device based on the device capability parameter to obtain an instantiated device;
[0100] Creating a topology template library, selecting a target topology template based on the topology template library, importing the instantiated device into the target topology template, and configuring flow information for the target topology template to select a scheduling strategy;
[0101] The calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the equipment in the actual network to complete the operation of the actual TSN network service on the equipment in the actual network.
[0102] The creating of a topology template library, selecting a target topology template based on the topology template library, importing the instantiated device into the target topology template, and configuring flow information for the target topology template to select a scheduling strategy specifically includes:
[0103] Creating a topology template library based on external network topology data, actual network data and scenario network topology templates, and obtaining topology templates and template numbers of the topology templates in the topology template library;
[0104] Generate a template instance framework of the topology template based on the template number, modify the node attributes and link attributes of the template instance framework, and save the modified template instance framework to obtain a target topology template;
[0105] The instantiated device is imported into the target topology template, and flow information is configured for the target topology template to select a scheduling strategy.
[0106] The step of obtaining the topology template and the template number of the topology template in the topology template library further includes:
[0107] If no topology template is selected in the topology template library, a manually configured topology template is received.
[0108] The link attributes include delay, link rate and Qbu.
[0109] The scheduling strategies include a minimum time slot strategy and a minimum delay strategy.
[0110] The method further includes: calculating the scheduling strategy based on the TSN scheduling algorithm, and streaming the calculation result to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network;
[0111] Obtain topology information and flow information, assemble interface parameters based on the topology information and the flow information, and write the input.json file into the interface parameters;
[0112] The interface parameters are sent to the flow scheduler, and the output.json file generated after processing by the flow scheduler is received.
[0113] The calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service in the device of the actual network, specifically including:
[0114] Accessing the flow scheduling algorithm through different access modes, selecting a TSN scheduling algorithm in the flow scheduling algorithm based on the scheduling strategy, and obtaining a calculation result of the scheduling strategy based on the TSN scheduling algorithm;
[0115] Based on the output.json file, the calculation results are stored in a mysql database, the data in the mysql database is displayed, and the calculation results are sent to the devices corresponding to the actual network to complete the operation of the actual TSN network services on the devices of the actual network.
[0116] Among them, the access mode includes service access mode and module embedding mode.
[0117] The obtaining of topology information and flow information, assembling interface parameters based on the topology information and the flow information, and writing the input.json file into the interface parameters, also includes:
[0118] Obtain network topology information, node capability information, flow information and used resources, assemble the network topology information, node capability information, flow information and resources into an input.json file, and store the input.json file in a directory, wherein the flow information includes unscheduled flow information and scheduled flow information.
[0119] The output.json file includes the path of the service flow, the time slot of each port and the gcl list information.
[0120] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a virtual-real TSN network flow scheduling simulation program, and when the virtual-real TSN network flow scheduling simulation program is executed by a processor, the steps of the virtual-real TSN network flow scheduling simulation method as described above are implemented.
[0121] In summary, the present invention provides a virtual-real TSN network flow scheduling simulation method, the method comprising: obtaining a device model and a device capability parameter, adding a virtual device based on the device model, and instantiating the virtual device based on the device capability parameter to obtain an instantiated device; creating a topology template library, selecting a target topology template based on the topology template library, importing the instantiated device into the target topology template, and configuring flow information for the target topology template to select a scheduling strategy; calculating the scheduling strategy based on the TSN scheduling algorithm, and streaming the calculation result to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network. The present invention can simulate the behavior and properties of real devices; can simulate or import real topology; can also virtualize the topology templates of all networks, which is helpful for the diversification of networks and simplification of problems that are difficult to exhaust in actual networks; and has no restrictions on algorithm languages, and can flexibly solve the integration problems of algorithms written in different languages through the interface service and embedded integration mode of the algorithm interface; as a network scheduling algorithm service platform, it can automatically select algorithm calculation according to the strategy; and the output of the network scheduling algorithm can be directly converted into real device configuration, which can be verified on both the virtual network and the real network, and the results of the algorithm scheduling can be displayed through different display analysis, can also be downloaded and moved, and can also be sent to the actual network for business verification to verify the actual effect of the algorithm; adopts the SDN network method and uses microservice technology, and is divided into multiple microservice modules by field. Reduce the difficulty of implementing the overall solution and facilitate the subsequent flexible expansion requirements; in addition, no network simulation tools are required, and the algorithm can be quickly modeled and verified in real time. At present, the algorithm adopts this mode, the development efficiency is very high, and the algorithm conforms to the actual situation.
[0122] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0123] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0124] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A virtual-real combined TSN network flow scheduling simulation method, characterized in that: The virtual-real combined TSN network flow scheduling simulation method includes: Acquire a device model and a device capability parameter, add a virtual device based on the device model, and instantiate the virtual device based on the device capability parameter to obtain an instantiated device; Creating a topology template library, selecting a target topology template based on the topology template library, importing the instantiated device into the target topology template, and configuring flow information for the target topology template to select a scheduling strategy; The calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network; The calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network, specifically including: Accessing the flow scheduling algorithm through different access modes, selecting a TSN scheduling algorithm in the flow scheduling algorithm based on the scheduling strategy, and obtaining a calculation result of the scheduling strategy based on the TSN scheduling algorithm; Based on the output.json file, the calculation results are stored in the MySQL database, the data in the MySQL database is displayed, and the calculation results are sent to the devices corresponding to the actual network to complete the operation of the actual TSN network services on the devices of the actual network; The access method includes a service access method and a module embedding method. The service access method is a distributed service mode; the module embedding method is to program the algorithm into a dynamic library and incorporate it into a module of an integrated algorithm engine, so as to realize the simultaneous existence of multiple algorithms in one server for easy collaboration.
2. The virtual-real combined TSN network flow scheduling simulation method according to claim 1 is characterized in that: The creating a topology template library, selecting a target topology template based on the topology template library, importing the instantiated device into the target topology template, and configuring flow information for the target topology template to select a scheduling strategy specifically includes: Creating a topology template library based on external network topology data, actual network data and scenario network topology templates, and obtaining topology templates and template numbers of the topology templates in the topology template library; Generate a template instance framework of the topology template based on the template number, modify the node attributes and link attributes of the template instance framework, and save the modified template instance framework to obtain a target topology template; The instantiated device is imported into the target topology template, and flow information is configured for the target topology template to select a scheduling strategy.
3. The virtual-real combined TSN network flow scheduling simulation method according to claim 2 is characterized in that: The step of obtaining the topology template in the topology template library and the template number of the topology template further includes: If no topology template is selected in the topology template library, a manually configured topology template is received.
4. The virtual-real combined TSN network flow scheduling simulation method according to claim 2 is characterized in that: The link attributes include delay, link rate and Qbu.
5. The virtual-real combined TSN network flow scheduling simulation method according to claim 2 is characterized in that: The scheduling strategies include a minimum time slot strategy and a minimum delay strategy.
6. The virtual-real combined TSN network flow scheduling simulation method according to claim 1 is characterized in that: The calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network, and the previous step also includes: Obtain topology information and flow information, assemble interface parameters based on the topology information and the flow information, and write the input.json file into the interface parameters; The interface parameters are sent to the flow scheduler, and the output.json file generated after processing by the flow scheduler is received.
7. The virtual-real combined TSN network flow scheduling simulation method according to claim 6 is characterized in that: The obtaining of topology information and flow information, assembling interface parameters based on the topology information and the flow information, and writing the input.json file into the interface parameters, also includes: Obtain network topology information, node capability information, flow information and used resources, assemble the network topology information, node capability information, flow information and resources into an input.json file, and store the input.json file in a directory, wherein the flow information includes unscheduled flow information and scheduled flow information.
8. The virtual-real combined TSN network flow scheduling simulation method according to claim 6 is characterized in that: The output.json file includes the path of the service flow, the time slot of each port and the gcl list information.
9. A virtual-real combined TSN network flow scheduling simulation system, characterized in that: The virtual-real combined TSN network flow scheduling simulation system includes: A device construction module, used to obtain a device model and a device capability parameter, add a virtual device based on the device model, and instantiate the virtual device based on the device capability parameter to obtain an instantiated device; A device configuration module, used to create a topology template library, select a target topology template based on the topology template library, import the instantiated device into the target topology template, and configure flow information for the target topology template to select a scheduling strategy; A data delivery module is used to calculate the calculation result of the scheduling strategy based on the TSN scheduling algorithm, and to deliver the calculation result to the device of the actual network in a stream, so as to complete the operation of the actual TSN network service on the device of the actual network; The calculation result of the scheduling strategy is calculated based on the TSN scheduling algorithm, and the calculation result is streamed to the device of the actual network to complete the operation of the actual TSN network service on the device of the actual network, specifically including: Accessing the flow scheduling algorithm through different access modes, selecting a TSN scheduling algorithm in the flow scheduling algorithm based on the scheduling strategy, and obtaining a calculation result of the scheduling strategy based on the TSN scheduling algorithm; Based on the output.json file, the calculation results are stored in the MySQL database, the data in the MySQL database is displayed, and the calculation results are sent to the devices corresponding to the actual network to complete the operation of the actual TSN network services on the devices of the actual network; The access mode includes a service access mode and a module embedding mode. The service access mode is a distributed service mode. The module embedding mode is to program the algorithm into a dynamic library and incorporate it into a module of an integrated algorithm engine, so that multiple algorithms can exist in one server at the same time for easy collaboration. The algorithm component is used to schedule the service flow and calculate the path, time slot and gcl list information of the service flow; Configure the conversion component to download the results of TSN network flow scheduling, directly display and analyze the results graphically, and send the results to the actual network service for verification; Topology generation component, used to create virtual network topology templates; The traffic input component is used to control the flow management module to manage business flows.
10. A terminal, characterized in that: The terminal includes a memory, a processor, and a program stored in the memory and executable on the processor. When the program is executed by the processor, the steps of the virtual-real combined TSN network flow scheduling simulation method as described in any one of claims 1 to 8 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the steps of the virtual-real combined TSN network flow scheduling simulation method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Dynamic flow dispatch method and system based on software definition network
CN104158753A
Industrial wireless and TSN fusion-oriented network scheduling method
CN114553697A
Power communication network architecture system and method based on deterministic network
CN115314355A
System for seamless connection of real and virtual networks
US20110122879A1
Changing a time sensitive networking schedule implemented by a softswitch
US20200028791A1
