Resource allocation method and device, management node, industrial equipment and storage medium

By allocating time slot resources to each branch network based on the location information and data flow of the industrial network, the problem of resource waste caused by unified time slot division across the entire network is solved, achieving more efficient resource utilization and data transmission capabilities.

CN120614320APending Publication Date: 2025-09-09SHENZHEN INOVANCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510881582.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

In the existing technology, the scheduling scheme of uniformly dividing time slots across the entire industrial network leads to resource waste and low resource utilization, which is particularly serious in large-scale industrial networks.

Method used

Based on the location information of each branch network in the industrial network, the data volume and data flow direction of real-time data traffic, the time slot resources of each branch network are determined, and corresponding time slot resources are allocated to each branch network respectively to ensure that the transmission of non-real-time data traffic can start after the real-time data traffic is transmitted.

Benefits of technology

While ensuring the real-time transmission of real-time data traffic, it reduces resource waste, improves resource utilization, and enhances the data transmission capacity of industrial networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120614320A_ABST
    Figure CN120614320A_ABST
Patent Text Reader

Abstract

The invention relates to a resource allocation method and device, a management node, industrial equipment and a storage medium. The method comprises the steps that time slot resources of all branch networks are determined according to position information of all the branch networks in an industrial network, the data volume of real-time data flow and the data flow direction, and all the branch networks are divided according to the network topology of the industrial network; and allocating the corresponding time slot resources to each branch network, wherein the time slot resources are used for transmitting the real-time data traffic. By adopting the method, the resource utilization rate of the industrial network can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of industrial network technology, and in particular to a resource allocation method, apparatus, management node, industrial equipment, and storage medium. Background Art

[0002] In the field of industrial networks, in order to ensure that data with real-time requirements can be delivered on time, a scheduling scheme that uniformly divides time slots across the entire network is currently adopted. All devices in the industrial network follow the time slot division of the backbone network, and all devices control the transmission of real-time data traffic in the time slots scheduled for the backbone network.

[0003] However, the above method has the problem of waste of resources, resulting in low resource utilization. Summary of the Invention

[0004] Based on this, it is necessary to provide a resource allocation method, device, management node, industrial equipment and storage medium that can improve resource utilization in response to the above technical problems.

[0005] In a first aspect, the present application provides a resource allocation method, the method comprising:

[0006] Determine the time slot resources of each branch network based on the location information, real-time data traffic volume, and data flow direction of each branch network in the industrial network. Each branch network is divided according to the network topology of the industrial network.

[0007] Corresponding time slot resources are allocated to each branch network, and the time slot resources are used to transmit real-time data traffic.

[0008] In one embodiment, determining the time slot resources of each branch network based on the location information of each branch network in the industrial network, the data volume of real-time data traffic, and the data flow direction includes:

[0009] Determine the traffic transmission order of each branch network based on the location information;

[0010] The time slot resources of each branch network are determined based on the transmission order of each flow, each location information, each data volume and each data flow direction.

[0011] In one embodiment, determining the time slot resources of each branch network according to the transmission order of each flow, each location information, each data volume, and each data flow direction includes:

[0012] Determine the line transmission delay corresponding to each branch network based on the location information and data flow direction;

[0013] Determine the amount of data traffic that each branch network needs to wait for transmission based on the transmission order, data volume, and data flow direction of each flow, and determine the corresponding sending waiting time for each branch network based on the amount of data traffic and the transmission rate of each branch network;

[0014] Determine the traffic transmission time corresponding to each branch network based on the data volume and transmission rate;

[0015] For each branch network, the time slot resources of the branch network are determined based on the line transmission delay, sending waiting time, and traffic transmission time corresponding to the branch network.

[0016] In one embodiment, the method further comprises:

[0017] In the case where the real-time data traffic is distributed traffic, for each branch network, according to the transmission order of each traffic, the sending time of all real-time data traffic before the branch network is determined as the sending waiting time;

[0018] When the real-time data traffic is converged traffic, for each branch network, according to the transmission order of each traffic, the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network will be determined as the sending waiting time.

[0019] In one embodiment, determining the time slot resources of the branch network according to the line transmission delay, the sending waiting time, and the traffic transmission time corresponding to the branch network includes:

[0020] Add the line transmission delay and the sending waiting time to obtain the start time of the time slot resource;

[0021] The start time is added to the line transmission delay of the branch network and the traffic transmission time to obtain the end time of the time slot resource.

[0022] In one embodiment, determining the traffic transmission order of each branch network based on each location information includes:

[0023] In the case where the real-time data traffic is distributed traffic, the traffic transmission order is determined based on the first distance between each branch network and the traffic distribution node in the industrial network. The size of the first distance is positively correlated with the priority of the traffic transmission order.

[0024] When the real-time data traffic is converged traffic, the traffic transmission order is determined according to the second distance between each branch network and the convergence node in the industrial network. The size of the second distance is negatively correlated with the priority of the traffic transmission order.

[0025] In one embodiment, the method further comprises:

[0026] Receive node topology information sent by each node in the industrial network, the node topology information including device connection information of each port of the node and the port type of each port;

[0027] The network topology is determined based on the connection information of each device and the type of each port, and each branch network is determined based on the network topology.

[0028] In a second aspect, the present application provides a resource allocation method, the method comprising:

[0029] Receive resource allocation information sent by the management node in the industrial network;

[0030] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to the method described in the first aspect above.

[0031] In a third aspect, the present application provides a resource allocation device, the device comprising:

[0032] A determination module is used to determine the time slot resources of each branch network in the industrial network based on the location information of each branch network, the data volume of real-time data traffic, and the data flow direction. Each branch network is divided according to the network topology of the industrial network;

[0033] The allocation module is used to allocate corresponding time slot resources to each branch network, and the time slot resources are used to transmit real-time data traffic.

[0034] In a fourth aspect, the present application provides a resource allocation device, comprising:

[0035] A receiving module, configured to receive resource allocation information sent by a management node in an industrial network;

[0036] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to the method described in the first aspect above.

[0037] In a fifth aspect, the present application provides a management node, including a memory, a transceiver, and a processor:

[0038] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of a processor; and a processor for reading the computer program in the memory and performing the following operations:

[0039] Determine the time slot resources of each branch network based on the location information, real-time data traffic volume, and data flow direction of each branch network in the industrial network. Each branch network is divided according to the network topology of the industrial network.

[0040] Corresponding time slot resources are allocated to each branch network, and the time slot resources are used to transmit real-time data traffic.

[0041] In a sixth aspect, the present application provides an industrial device, including a memory, a transceiver, and a processor:

[0042] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of a processor; and a processor for reading the computer program in the memory and performing the following operations:

[0043] Controlling the transceiver to receive resource allocation information sent by a management node in the industrial network;

[0044] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to the method described in the first aspect above.

[0045] In a seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the first or second aspect above.

[0046] In an eighth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first or second aspect above.

[0047] The above-mentioned resource allocation method, device, management node, industrial equipment and storage medium determine the time slot resources of each branch network based on the location information of each branch network in the industrial network, the data volume of real-time data traffic and the data flow direction. Each branch network is divided according to the network topology of the industrial network, and then corresponding time slot resources are allocated to each branch network. The time slot resources are used to transmit real-time data traffic. In this way, based on the real-time data traffic size and related path information (location information and data flow direction) of each branch network, time slots are divided for each branch network. Each branch network can start transmitting non-real-time data traffic based on its corresponding time slot resources after the real-time data traffic is transmitted. This can avoid the problem of resource waste and low resource utilization when each branch network adopts a scheduling scheme that uniformly divides time slots for the entire network, in which all devices in each branch network need to wait until all real-time data traffic in the time slot of the backbone network is transmitted before starting to transmit non-real-time data traffic. The embodiment of the present application reduces resource waste and improves resource utilization while ensuring the real-time transmission of real-time data traffic in the industrial network, thereby improving the data transmission capacity of the industrial network. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0049] Figure 1 A schematic diagram of the implementation environment of a resource allocation method;

[0050] Figure 2 Schematic diagram of a flow chart of a resource allocation method in one embodiment;

[0051] Figure 3 is a flow chart of step 201 in another embodiment;

[0052] Figure 4 is a flow chart of step 302 in another embodiment;

[0053] Figure 5 FIG1 is a schematic diagram of an exemplary time slot division of each branch network in another embodiment;

[0054] Figure 6 A schematic diagram of a process for determining each branch network in another embodiment;

[0055] Figure 7 is a structural block diagram of a resource allocation device in one embodiment;

[0056] Figure 8 is a structural block diagram of a resource allocation device in another embodiment;

[0057] Figure 9 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0059] Industrial networks are now widely used in a variety of fields, such as industrial automation, power electronics, the Internet of Things, and aerospace. In this field, ensuring the timely delivery of real-time data and guaranteeing the resource utilization of the industrial network are key factors in evaluating the real-time communication performance of industrial networks.

[0060] At present, in order to ensure that data with real-time requirements can be delivered on time, a scheduling scheme that uniformly divides time slots across the entire network is usually adopted. All devices in the industrial network follow the time slot division of the backbone network, and all devices uniformly control the transmission of real-time data traffic in the time slots scheduled for the backbone network. This will lead to resource waste and low resource utilization.

[0061] For example, an industrial network is divided into N (N is a positive integer greater than 1) branch networks, and one of the N branch networks serves as the backbone network. The real-time data traffic of the backbone network is usually greater than the real-time data traffic of other branch networks. The scheduling scheme of uniformly dividing time slots for the entire network refers to allocating time slot resources to the backbone network according to the size of the real-time data traffic of the entire network, also known as real-time time slots. In the real-time time slots, all devices are not allowed to send non-real-time data traffic. All devices in other branch networks need to uniformly control the transmission of real-time data traffic in the time slots scheduled for the backbone network. After the real-time data traffic of other branch networks is transmitted, they cannot directly start the transmission of non-real-time data traffic. Instead, they need to wait until all real-time data traffic in the time slot is transmitted before starting the transmission of non-real-time data traffic, resulting in resource waste and low resource utilization.

[0062] As the scale of industrial networks gradually increases, the resource waste caused by the above-mentioned scheduling scheme of uniformly dividing time slots across the entire network is becoming more and more serious, seriously affecting the data transmission capacity of industrial networks.

[0063] In view of this, embodiments of the present application provide a resource allocation method, apparatus, management node, industrial equipment, and storage medium, which can improve resource utilization of industrial networks and enhance the data transmission capabilities of industrial networks.

[0064] The resource allocation method provided in the embodiments of the present application can be applied to industrial networks. Industrial networks are divided into multiple branch networks, each of which can have a basic network topology, such as a linear or ring topology. Each branch network includes one or more nodes, which can also be called communication nodes, industrial devices, etc. Branch networks can also include management nodes, etc.

[0065] See also Figure 1 , is a schematic diagram of an exemplary implementation environment of a resource allocation method.

[0066] like Figure 1As shown in the figure, the industrial network includes 11 nodes (1, 2, 3, 4, 5, 2.1, 2.2, 2.3, 2.2.1, 4.1, and 4.2), each of which has data transmission and reception functions. Node 1 is a management node, while nodes 2, 2.2, and 4 are multi-port nodes with expansion capabilities. A multi-port node includes two basic ports and one or more expansion ports. Basic ports are used to connect to other nodes in the same branch network, while expansion ports are used to connect to the next branch network.

[0067] like Figure 1 As shown, the industrial network can be divided into four branch networks: branch network 1, branch network 2, branch network 3, and branch network 4. Branch network 1 containing the management node can also be called the backbone network. Branch network 1 extends branch network 2 through the expansion port at node 2, branch network 2 extends branch network 3 through the expansion port at node 2.2, and branch network 1 extends branch network 4 through the expansion port at node 4.

[0068] Each branch network can have real-time data traffic, and of course it can also have real-time data traffic. For each branch network, the resource allocation mechanism (or resource scheduling mechanism) must meet the requirements of timely delivery of real-time data traffic within the real-time time period and transmit as much non-real-time data traffic as possible.

[0069] Below, in conjunction with the drawings in the embodiments of this application, the technical solutions in the embodiments of this application are clearly and completely described. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0070] The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0071] In an exemplary embodiment, Figure 2 As shown, a resource allocation method is provided, which is described by taking the application of the method to a management node in an industrial network as an example, including the following steps 201 and 202:

[0072] Step 201 : determining the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of the real-time data flow, and the data flow direction.

[0073] Each branch network is divided according to the network topology of the industrial network. For example, the management node can obtain the network topology of the industrial network, which represents information such as the connection relationships between nodes in the industrial network. As described above, for a node, the basic port is used to connect to other nodes in the same branch network, and the extended port is used to connect to the next branch network. Therefore, the management node can determine each branch network by identifying whether each port of each node in the network topology is connected to other nodes.

[0074] In other possible implementations, the industrial network may be divided into branch networks by other devices, and the management node obtains the branch network division result from the other devices, thereby determining each branch network.

[0075] In the embodiment of the present application, the location information of the branch network is used to characterize the topological location of the branch network in the industrial network.

[0076] Optionally, for the backbone network (including the branch network of the management node) in each branch network, the node identifier of the management node is used to represent the location information of the branch network. For the non-backbone network in each branch network, the location information of the branch network can be represented by the node identifier of the node in the upper network to which the branch network is connected. For example, Figure 1 As shown, the location information of branch network 2 is represented by the node identifier of node 2, the location information of branch network 3 is represented by the node identifier of node 2.2, and the location information of branch network 4 is represented by the node identifier of node 4.

[0077] Optionally, the location information of the branch network can also be represented by the number of nodes between the node connecting the branch network to the upper network and the management node, etc. For example, the location information of branch network 2 is 1 node, the location information of branch network 3 is 3 nodes, and so on.

[0078] The data flow direction of the branch network represents the transmission path of the real-time data traffic of the branch network in the industrial network. For example, in the downstream direction, that is, when the real-time data traffic is distribution traffic, the path of the real-time data traffic of the branch network is sent by the control node to the last node in the branch network; for example, in the upstream direction, that is, when the real-time data traffic is aggregation traffic, the path of the real-time data traffic of the branch network is sent by the last node in the branch network to the management node.

[0079] For example, Figure 1As shown, in the downstream direction, the data flow of branch network 1 is from node 1 (management node) to node 5, the data flow of branch network 2 is from node 1 to node 2.3, the data flow of branch network 3 is from node 1 to node 2.2.1, and the data flow of branch network 4 is from node 1 to node 4.2; in the upstream direction, the data flow of branch network 1 is from node 5 to node 1, the data flow of branch network 2 is from node 2.3 to node 1, the data flow of branch network 3 is from node 2.2.1 to node 1, and the data flow of branch network 4 is from node 4.2 to node 1.

[0080] The data volume of the branch network's real-time data traffic refers to the size of the real-time data traffic that the branch network needs to transmit. For example, in the downlink direction, Figure 1 The data volume of the real-time data traffic of the branch network 1 shown is 150 bytes. In the upstream direction, the data volume of the real-time data traffic of the branch network 1 is 120 bytes, and so on.

[0081] In one possible implementation, for the downlink direction, the management node can calculate information such as the line transmission delay for each branch network when transmitting its real-time data traffic based on the location information and data flow direction of each branch network. Based on the data volume of the branch network's real-time data traffic, the management node can calculate the traffic transmission time required for the branch network to transmit the real-time data traffic. The management node can then calculate the downlink time slot resources allocated to the branch network based on the calculated traffic transmission time, line transmission delay, and other information. For the uplink direction, the management node can use a similar method to calculate the uplink time slot resources allocated to the branch network.

[0082] Exemplarily, a parameter generation model can also be pre-trained. During the training phase, the parameter generation model fully learns the mapping relationship between each sample location information, sample data volume, sample data flow direction and sample time slot resource location. After the training is completed, the management node inputs the location information of each branch network, the data volume of real-time data traffic, and data flow direction into the pre-trained parameter generation model, and the parameter generation model can then output the location of the time slot resource based on the learned mapping relationship.

[0083] Step 202: Allocate corresponding time slot resources to each branch network, and the time slot resources are used to transmit real-time data traffic.

[0084] After determining the time slot resources corresponding to each branch network, the management node allocates the corresponding time slot resources to each branch network. For example, the management node may send resource scheduling information including the time slot resources to each node in the branch network.

[0085] In this way, the embodiment of the present application combines the real-time data traffic size and related path information (location information and data flow direction) of each branch network to divide each branch network into time slots. Each branch network transmits data traffic according to its own time slot division. The start time and end time of the time slot resources in each branch network are independent. Each branch network can start transmitting non-real-time data traffic after the real-time data traffic is transmitted based on its corresponding time slot resources. This can avoid the situation where all devices in each branch network need to wait for all real-time data traffic in the time slot of the backbone network to be transmitted before starting to transmit non-real-time data traffic when each branch network adopts a scheduling scheme that uniformly divides time slots for the entire network, thereby causing resource waste and low resource utilization. The embodiment of the present application reduces resource waste and improves resource utilization while ensuring the real-time transmission of real-time data traffic in the industrial network, thereby improving the data transmission capacity of the industrial network.

[0086] In one embodiment, based on Figure 2 In the embodiment shown, the following exemplarily introduces a process in which the management node determines the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of the real-time data traffic, and the data flow direction.

[0087] See also Figure 3 , step 201 may include Figure 3 Steps 301 and 302 are shown:

[0088] Step 301: Determine the traffic transmission order of each branch network according to each location information.

[0089] In the embodiments of the present application, the traffic transmission order of each branch network can be configured based on the location information of each branch network. The traffic transmission order refers to the order in which real-time data traffic is transmitted between the branch networks. For example, the traffic transmission order is branch network 1 -> branch network 2 -> branch network 3 -> branch network 4. Branch networks in different topological locations in the industrial network have different corresponding traffic transmission orders.

[0090] Optionally, in the case where real-time data traffic is distribution traffic, the traffic transmission order is determined based on the first distance between each branch network and the traffic distribution node in the industrial network. The traffic distribution node can be, for example, a management node. The size of the first distance is positively correlated with the priority of the traffic transmission order, that is, the farther the branch network is from the traffic distribution node, the higher the priority of the traffic transmission order of the branch network. Data streams are sent from far to near, and the real-time data traffic transmission of branch networks that are farther away from the traffic distribution node is started first. Branch networks that are farther away from the traffic distribution node may transmit real-time data traffic in parallel with branch networks that are closer to the traffic distribution node, thereby improving resource utilization and transmission rate.

[0091] like Figure 1 As shown, the first distance between branch network 1 and the traffic distribution node (management node 1) is 0, the first distance between branch network 2 and the traffic distribution node (management node 1) is 1 node apart, the first distance between branch network 3 and the traffic distribution node (management node 1) is 3 nodes apart, and the first distance between branch network 4 and the traffic distribution node (management node 1) is 3 nodes apart. Then, in the downstream direction, branch network 4 and branch network 3 have the highest priority, followed by branch network 2, and finally branch network 1. For example, in the downstream direction, the traffic transmission order is branch network 4->branch network 3->branch network 2->branch network 1.

[0092] Optionally, in the case where the real-time data traffic is converged traffic, the traffic transmission order is determined according to the second distance between each branch network and the convergence node in the industrial network. Figure 1 For node 2 shown, the size of the second distance is negatively correlated with the priority of the traffic transmission order, that is, the farther the branch network is from the aggregation node, the lower the priority of the traffic transmission order of the branch network. Data streams are sent from near to far, and the real-time data traffic transmission of the branch network closer to the aggregation node is started first. The real-time data traffic transmitted by the branch network farther away from the aggregation node is completed first, and other branch networks can start transmitting real-time data traffic as soon as possible, thereby improving the transmission rate.

[0093] like Figure 1 As shown, exemplarily, in the uplink direction, the traffic transmission order is branch network 1 -> branch network 2 -> branch network 3 -> branch network 4.

[0094] Step 302 : determining the time slot resources of each branch network according to the transmission sequence of each flow, each location information, each data volume, and each data flow direction.

[0095] After the management node determines the traffic transmission order for each branch network based on the location information, it then determines the time slot resources for each branch network based on the traffic transmission order and the location information, data volume, and data flow direction in the above embodiments. By configuring the traffic transmission order for each branch network, the transmission rate of real-time data traffic can be improved.

[0096] Next, a process of determining the time slot resources of each branch network by the management node according to the transmission sequence of each flow, each location information, each data volume, and each data flow direction is exemplarily introduced.

[0097] See 4, step 302 may include Figure 4 Steps 401 to 404 are shown as follows:

[0098] Step 401: Determine the line transmission delay corresponding to each branch network according to each location information and each data flow direction.

[0099] Different branch networks have different topological locations within the industrial network, and their distances from traffic distribution nodes (such as management nodes) or aggregation nodes also vary. Consequently, line transmission latency also varies. Line transmission latency can be understood as the time it takes for real-time data traffic from a branch network to travel across the lines outside the branch network while being transmitted within the industrial network.

[0100] In the embodiment of the present application, the management node determines the line transmission delay corresponding to each branch network based on each location information and each data flow direction.

[0101] Exemplarily, in the downlink direction, the management node can obtain the distance between the branch network and the traffic distribution node (such as the management node) based on the location information and the data flow direction, and then multiply the distance by the line delay corresponding to the unit distance to obtain the line transmission delay corresponding to the branch network; optionally, the distance can also be expressed by the number of nodes between the branch network and the traffic distribution node. The line transmission delay corresponding to each node is fixed. The number of nodes is multiplied by the line transmission delay corresponding to the node to obtain the line transmission delay corresponding to the branch network, and so on. There is no limitation on the method of determining the line transmission delay corresponding to each branch network.

[0102] For example, in the uplink direction, similar to the downlink direction, the management node can obtain the distance between the branch network and the aggregation node based on each location information and each data flow direction, and then obtain the line transmission delay corresponding to the branch network based on the distance.

[0103] Step 402, based on the transmission order of each flow, each data volume and each data flow direction, determine the data flow size that each branch network needs to wait for transmission, and determine the corresponding sending waiting time of each branch network based on the data flow size and the transmission rate of each branch network.

[0104] The amount of data traffic that a branch network needs to wait for transmission refers to the amount of real-time data traffic that a branch network needs to wait for transmission from other branch networks before transmitting its own real-time data traffic.

[0105] For example, in the downstream direction, the real-time data traffic of all other branch networks whose traffic transmission order precedes that of the branch network can be used as the amount of data traffic that the branch network needs to wait for transmission. In the upstream direction, the real-time data traffic of several branch networks whose traffic transmission order precedes that of the branch network and that need to pass through the convergence node can be used as the amount of data traffic that the branch network needs to wait for transmission.

[0106] After determining the data traffic size that each branch network needs to wait for transmission, the management node determines the corresponding sending waiting time of each branch network according to the data traffic size and the transmission rate of each branch network.

[0107] Optionally, when the real-time data traffic is distribution traffic, for each branch network, according to the transmission order of each traffic, the sending time of all real-time data traffic before the branch network is determined as the sending waiting time. The sending time of the real-time data traffic can be calculated through the data traffic size and the transmission rate of each branch network.

[0108] Optionally, when the real-time data traffic is converged traffic, for each branch network, according to the transmission order of each traffic, the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network will be determined as the sending waiting time. The sending time of the real-time data traffic can be calculated through the data traffic size and the transmission rate of each branch network.

[0109] Step 403: Determine the traffic transmission time corresponding to each branch network according to each data volume and each transmission rate.

[0110] The management node can multiply the data volume by the corresponding transmission rate to obtain the corresponding traffic transmission time of the branch network.

[0111] Step 404 : For each branch network, determine the time slot resources of the branch network according to the line transmission delay, sending waiting time, and traffic transmission time corresponding to the branch network.

[0112] Exemplarily, the management node may calculate the start time of the time slot resource by using the following formula 1:

[0113] T1_x=T_Delay1 + T_Delay2 Formula 1

[0114] Among them, T1_x is the start time of the time slot resource, T_Delay1 is the line transmission delay calculated in step 401, and T_Delay2 is the sending waiting time calculated in step 402. That is, the management node adds the line transmission delay and the sending waiting time to obtain the start time of the time slot resource.

[0115] The management node can calculate the end time of the time slot resource using the following formula 2:

[0116] T2_x= T1_x+ T_Data + T_Delay Formula 2

[0117] Among them, T2_x is the end time of the time slot resource, T_Data is the traffic transmission time calculated in step 403, and T_Delay is the line transmission delay of the branch network itself. That is, the management node adds the start time of the time slot resource to the line transmission delay and traffic transmission time of the branch network to obtain the end time of the time slot resource.

[0118] In the upstream direction, the management node determines the branch network's uplink time slot resources based on the branch network's corresponding line transmission delay, send wait time, and traffic transmission time in the upstream direction. In the downstream direction, the management node determines the branch network's downlink time slot resources based on the branch network's corresponding line transmission delay, send wait time, and traffic transmission time in the downlink direction. Each branch network uses different time slot allocations for different data flow directions to improve resource utilization.

[0119] The following examples illustrate the resource allocation results of the embodiment of the present application. Figure 1 An exemplary scheduling parameter table of an industrial network is shown.

[0120] Table 1

[0121]

[0122] The management node first obtains the scheduling parameters in Table 1 except the start time and end time of the time slot resources, such as the location information of each branch network, the data volume of real-time data traffic, the data flow direction and the transmission rate, and then calculates the start time and end time of the uplink time slot resources and the start time and end time of the downlink time slot resources through the implementation method of any of the above embodiments, and adds them to Table 1 to obtain a complete scheduling parameter table.

[0123] The management node configures the scheduling parameter table to each branch network, and each branch network controls the transmission of real-time data traffic according to the time slot allocated in the scheduling parameter table.

[0124] See also Figure 5 , Figure 5 is a schematic diagram of an exemplary time slot division of each branch network, such as Figure 5 As shown, while ensuring that real-time data traffic is interacted on time within the cycle time, the transmission of non-real-time data traffic can begin after the real-time data traffic is sent. The embodiment of the present application can greatly increase the transmission time slot of non-real-time data traffic, improve resource utilization, and enhance the data transmission capability of the industrial network.

[0125] In one embodiment, based on any of the above embodiments, the following is an exemplary introduction to the way in which the management node determines each branch network. Figure 6 ,include Figure 6 Step 601 and step 602 are shown:

[0126] Step 601: Receive node topology information sent by each node in the industrial network. The node topology information includes device connection information of each port of the node and the port type of each port.

[0127] Device connection information can indicate which port is connected to which port of which node, or whether the port is not connected to any port. Port types include basic ports and extended ports. Basic ports are used to connect to other nodes in the same branch network, and extended ports are used to connect to the next branch network device connection information.

[0128] Step 602: Determine the network topology based on the connection information of each device and the type of each port, and determine each branch network based on the network topology.

[0129] The management node can obtain the network topology based on the connection information of each device. In the network topology, each branch network can be divided according to the port type of the port in the connected state of each node.

[0130] In the embodiment of the present application, the branch network can be a basic topology structure such as a linear or ring structure, and of course it can also be other topologies, which are not limited here.

[0131] By dividing the branch network, combining the real-time data traffic size and related path information (location information and data flow direction) of each branch network, each branch network is divided into time slots. Each branch network can start transmitting non-real-time data traffic after the real-time data traffic is transmitted based on its corresponding time slot resources. The embodiment of the present application reduces resource waste and improves resource utilization while ensuring the real-time transmission of real-time data traffic in the industrial network, thereby improving the data transmission capacity of the industrial network.

[0132] In one embodiment, a resource allocation method is provided, which is applied to a node (or communication node or industrial equipment) in any branch network of an industrial network. The method includes: receiving resource allocation information sent by a management node in the industrial network.

[0133] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to any of the implementation methods in the above embodiments.

[0134] In one embodiment, a resource allocation method is provided, which is applied in an industrial network and includes the following steps:

[0135] In step A1, a management node receives node topology information sent by each node in the industrial network. The node topology information includes device connection information of each port of the node and a port type of each port.

[0136] In step A2, the management node determines a network topology based on the connection information of each device and the type of each port, and determines each branch network based on the network topology.

[0137] In step A3, the management node determines the traffic transmission order of each branch network according to the location information of each branch network.

[0138] Among them, when the real-time data traffic is distribution traffic, the management node determines the traffic transmission order based on the first distance between each branch network and the traffic distribution node in the industrial network. The size of the first distance is positively correlated with the priority of the traffic transmission order.

[0139] When the real-time data traffic is converged traffic, the management node determines the traffic transmission order based on the second distance between each branch network and the convergence node in the industrial network. The size of the second distance is negatively correlated with the priority of the traffic transmission order.

[0140] In step A4, the management node determines the line transmission delay corresponding to each branch network according to the location information and the data flow direction of each branch network.

[0141] In step A5, the management node determines the size of the data flow that each branch network needs to wait for transmission based on the transmission order of each flow, the data volume of the real-time data flow of each branch network, and the data flow direction, and determines the corresponding sending waiting time of each branch network based on the size of each data flow and the transmission rate of each branch network.

[0142] In the case where the real-time data traffic is distributed traffic, for each branch network, the management node determines the sending time of all real-time data traffic before the branch network as the sending waiting time according to the transmission order of each traffic.

[0143] When the real-time data traffic is converged traffic, for each branch network, the management node will determine the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network as the sending waiting time based on the transmission order of each traffic.

[0144] In step A6, the management node determines the traffic transmission time corresponding to each branch network according to the data volume and the transmission rate of each branch network.

[0145] In step A7, for each branch network, the management node determines the time slot resources of the branch network according to the line transmission delay, sending waiting time, and traffic transmission time corresponding to the branch network.

[0146] The management node adds the line transmission delay and the sending waiting time to obtain the start time of the time slot resource; the management node adds the start time to the line transmission delay of the branch network and the traffic transmission time to obtain the end time of the time slot resource.

[0147] In step A8, the management node allocates corresponding time slot resources to each branch network, and the time slot resources are used to transmit real-time data traffic.

[0148] In step A9, the industrial device receives resource allocation information sent by the management node in the industrial network.

[0149] The resource allocation information is used to indicate the time slot resources allocated by the management node to the current branch network.

[0150] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0151] Based on the same technical concept, an embodiment of the present application further provides a resource allocation device, which can implement the functions of the management node side in the aforementioned embodiment.

[0152] In an exemplary embodiment, Figure 7 As shown, a resource allocation device is provided, comprising:

[0153] Determining module 701, configured to determine time slot resources of each branch network in the industrial network based on location information, data volume of real-time data traffic, and data flow direction of each branch network, wherein each branch network is divided according to the network topology of the industrial network;

[0154] The allocation module 702 is configured to allocate the corresponding time slot resources to each branch network, where the time slot resources are used to transmit the real-time data traffic.

[0155] In one embodiment, the determining module 701 includes:

[0156] A first determining unit, configured to determine a traffic transmission order of each branch network according to each location information;

[0157] The second determining unit is configured to determine the time slot resource of each branch network according to the traffic transmission sequence, the location information, the data volume, and the data flow direction.

[0158] In one embodiment, the second determination unit is specifically used to determine the line transmission delay corresponding to each branch network based on each location information and each data flow direction; determine the size of data traffic that each branch network needs to wait for transmission based on each traffic transmission order, each data volume and each data flow direction, and determine the corresponding sending waiting time of each branch network based on each data traffic size and the transmission rate of each branch network; determine the corresponding traffic transmission time of each branch network based on each data volume and each transmission rate; for each branch network, determine the time slot resources of the branch network based on the line transmission delay, the sending waiting time and the traffic transmission time corresponding to the branch network.

[0159] In one embodiment, the determination module 701 is also used to, when the real-time data traffic is distribution traffic, for each branch network, according to the traffic transmission order, determine the sending time of all real-time data traffic before the branch network as the sending waiting time; when the real-time data traffic is convergence traffic, for each branch network, according to the traffic transmission order, determine the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network as the sending waiting time.

[0160] In one embodiment, the second determination unit is specifically used to add the line transmission delay and the sending waiting time to obtain the start time of the time slot resource; add the start time to the line transmission delay of the branch network and the traffic transmission time to obtain the end time of the time slot resource.

[0161] In one of the embodiments, the first determination unit is specifically used to determine the traffic transmission order according to a first distance between each of the branch networks and the traffic distribution node in the industrial network when the real-time data traffic is distribution traffic, and the size of the first distance is positively correlated with the priority of the traffic transmission order; when the real-time data traffic is convergence traffic, the traffic transmission order is determined according to a second distance between each of the branch networks and the convergence node in the industrial network, and the size of the second distance is negatively correlated with the priority of the traffic transmission order.

[0162] In one embodiment, the apparatus further comprises:

[0163] A receiving module, configured to receive node topology information sent by each node in the industrial network, wherein the node topology information includes device connection information of each port of the node and a port type of each port;

[0164] The partitioning module is configured to determine the network topology according to the device connection information and the port type, and determine the branch networks according to the network topology.

[0165] It should be noted that the resource allocation device provided in the embodiment of the present application can implement all the method steps implemented in the embodiment of the resource allocation method for managing nodes, and can achieve the same technical effects. The parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here. The various modules in the resource allocation device can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in or independent of the processor in the management node in the form of hardware, or can be stored in the memory in the management node in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0166] Based on the same technical concept, an embodiment of the present application further provides a resource allocation device that can implement functions on the industrial equipment side.

[0167] In an exemplary embodiment, Figure 8 As shown, a resource allocation device is provided, comprising:

[0168] Receiving module 801, configured to receive resource allocation information sent by a management node in an industrial network;

[0169] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to any implementation method in the above-mentioned resource allocation method embodiment.

[0170] It should be noted here that the above-mentioned resource allocation device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned resource allocation method embodiment for industrial equipment, and can achieve the same technical effects. The parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here. Each module in the above-mentioned resource allocation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the industrial equipment in the form of hardware, or can be stored in the memory in the industrial equipment in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0171] In an exemplary embodiment, a computer device is provided. The computer device is a management node or industrial device in an industrial network. The internal structure diagram thereof can be as follows: Figure 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store resource allocation data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource allocation method is implemented.

[0172] Those skilled in the art will understand that Figure 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0173] In an exemplary embodiment, a management node is provided, including a memory, a transceiver, and a processor:

[0174] The memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; and the processor is used to read the computer program in the memory and perform the following operations:

[0175] Determine the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of real-time data traffic, and the data flow direction, wherein each branch network is divided according to the network topology of the industrial network;

[0176] The corresponding time slot resources are allocated to each branch network respectively, and the time slot resources are used to transmit the real-time data traffic.

[0177] In one embodiment, when the processor executes the computer program, the following steps are specifically implemented:

[0178] Determining a traffic transmission order of each branch network according to each location information;

[0179] The time slot resources of each branch network are determined according to the traffic transmission sequence, the location information, the data volume, and the data flow direction.

[0180] In one embodiment, when the processor executes the computer program, the following steps are specifically implemented:

[0181] Determining the line transmission delay corresponding to each branch network according to each location information and each data flow direction;

[0182] Determine the data traffic size that each branch network needs to wait for transmission based on the traffic transmission order, the data volume, and the data flow direction, and determine the corresponding sending waiting time of each branch network based on the data traffic size and the transmission rate of each branch network;

[0183] Determine the flow transmission time corresponding to each branch network according to each data volume and each transmission rate;

[0184] For each branch network, the time slot resource of the branch network is determined according to the line transmission delay, the sending waiting time, and the traffic transmission time corresponding to the branch network.

[0185] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0186] In the case where the real-time data traffic is distributed traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic before the branch network is determined as the sending waiting time;

[0187] In the case where the real-time data traffic is converged traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network will be determined as the sending waiting time.

[0188] In one embodiment, when the processor executes the computer program, the following steps are specifically implemented:

[0189] Adding the line transmission delay and the sending waiting time to obtain the start time of the time slot resource;

[0190] The start time, the line transmission delay of the branch network, and the traffic transmission time are added together to obtain the end time of the time slot resource.

[0191] In one embodiment, when the processor executes the computer program, the following steps are specifically implemented:

[0192] In a case where the real-time data traffic is distribution traffic, the traffic transmission order is determined according to a first distance between each of the branch networks and a traffic distribution node in the industrial network, wherein the magnitude of the first distance is positively correlated with the priority of the traffic transmission order;

[0193] When the real-time data traffic is converged traffic, the traffic transmission order is determined based on the second distance between each branch network and the convergence node in the industrial network, and the size of the second distance is negatively correlated with the priority of the traffic transmission order.

[0194] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0195] Receiving node topology information sent by each node in the industrial network, the node topology information including device connection information of each port of the node and a port type of each port;

[0196] The network topology is determined according to the device connection information and the port type, and the branch networks are determined according to the network topology.

[0197] In an exemplary embodiment, an industrial device is provided, including a memory, a transceiver, and a processor:

[0198] The memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; and the processor is used to read the computer program in the memory and perform the following operations:

[0199] Controlling the transceiver to receive resource allocation information sent by a management node in the industrial network;

[0200] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to any implementation method in the above-mentioned resource allocation method embodiment.

[0201] In one embodiment, a computer-readable storage medium is provided, which can be any available medium or data storage device that can be accessed by a processor, including but not limited to magnetic storage (such as floppy disks, hard disks, tapes, magneto-optical disks (MO), etc.), optical storage (such as CDs, DVDs, BDs, HVDs, etc.), and semiconductor storage (such as ROMs, EPROMs, EEPROMs, non-volatile memories (NAND FLASH), solid-state drives (SSDs), etc.).

[0202] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0203] Determine the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of real-time data traffic, and the data flow direction, wherein each branch network is divided according to the network topology of the industrial network;

[0204] The corresponding time slot resources are allocated to each branch network respectively, and the time slot resources are used to transmit the real-time data traffic.

[0205] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0206] Determining a traffic transmission order of each branch network according to each location information;

[0207] The time slot resources of each branch network are determined according to the traffic transmission sequence, the location information, the data volume, and the data flow direction.

[0208] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0209] Determining the line transmission delay corresponding to each branch network according to each location information and each data flow direction;

[0210] Determine the data traffic size that each branch network needs to wait for transmission based on the traffic transmission order, the data volume, and the data flow direction, and determine the corresponding sending waiting time of each branch network based on the data traffic size and the transmission rate of each branch network;

[0211] Determine the flow transmission time corresponding to each branch network according to each data volume and each transmission rate;

[0212] For each branch network, the time slot resource of the branch network is determined according to the line transmission delay, the sending waiting time, and the traffic transmission time corresponding to the branch network.

[0213] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0214] In the case where the real-time data traffic is distributed traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic before the branch network is determined as the sending waiting time;

[0215] In the case where the real-time data traffic is converged traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network will be determined as the sending waiting time.

[0216] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0217] Adding the line transmission delay and the sending waiting time to obtain the start time of the time slot resource;

[0218] The start time, the line transmission delay of the branch network, and the traffic transmission time are added together to obtain the end time of the time slot resource.

[0219] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0220] In a case where the real-time data traffic is distribution traffic, the traffic transmission order is determined according to a first distance between each of the branch networks and a traffic distribution node in the industrial network, wherein the magnitude of the first distance is positively correlated with the priority of the traffic transmission order;

[0221] When the real-time data traffic is converged traffic, the traffic transmission order is determined based on the second distance between each branch network and the convergence node in the industrial network, and the size of the second distance is negatively correlated with the priority of the traffic transmission order.

[0222] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0223] Receiving node topology information sent by each node in the industrial network, the node topology information including device connection information of each port of the node and a port type of each port;

[0224] The network topology is determined according to the device connection information and the port type, and the branch networks are determined according to the network topology.

[0225] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0226] Receive resource allocation information sent by the management node in the industrial network;

[0227] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to any implementation method in the above-mentioned resource allocation method embodiment.

[0228] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0229] Determine the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of real-time data traffic, and the data flow direction, wherein each branch network is divided according to the network topology of the industrial network;

[0230] The corresponding time slot resources are allocated to each branch network respectively, and the time slot resources are used to transmit the real-time data traffic.

[0231] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0232] Determining a traffic transmission order of each branch network according to each location information;

[0233] The time slot resources of each branch network are determined according to the traffic transmission sequence, the location information, the data volume, and the data flow direction.

[0234] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0235] Determining the line transmission delay corresponding to each branch network according to each location information and each data flow direction;

[0236] Determine the data traffic size that each branch network needs to wait for transmission based on the traffic transmission order, the data volume, and the data flow direction, and determine the corresponding sending waiting time of each branch network based on the data traffic size and the transmission rate of each branch network;

[0237] Determine the flow transmission time corresponding to each branch network according to each data volume and each transmission rate;

[0238] For each branch network, the time slot resource of the branch network is determined according to the line transmission delay, the sending waiting time, and the traffic transmission time corresponding to the branch network.

[0239] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0240] In the case where the real-time data traffic is distributed traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic before the branch network is determined as the sending waiting time;

[0241] In the case where the real-time data traffic is converged traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network will be determined as the sending waiting time.

[0242] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0243] Adding the line transmission delay and the sending waiting time to obtain the start time of the time slot resource;

[0244] The start time, the line transmission delay of the branch network, and the traffic transmission time are added together to obtain the end time of the time slot resource.

[0245] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0246] In a case where the real-time data traffic is distribution traffic, the traffic transmission order is determined according to a first distance between each of the branch networks and a traffic distribution node in the industrial network, wherein the magnitude of the first distance is positively correlated with the priority of the traffic transmission order;

[0247] When the real-time data traffic is converged traffic, the traffic transmission order is determined based on the second distance between each branch network and the convergence node in the industrial network, and the size of the second distance is negatively correlated with the priority of the traffic transmission order.

[0248] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0249] Receiving node topology information sent by each node in the industrial network, the node topology information including device connection information of each port of the node and a port type of each port;

[0250] The network topology is determined according to the device connection information and the port type, and the branch networks are determined according to the network topology.

[0251] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0252] Receive resource allocation information sent by the management node in the industrial network;

[0253] The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network. The time slot resources are obtained by the management node through resource allocation according to any implementation method in the above-mentioned resource allocation method embodiment.

[0254] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile memory and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processor involved in the various embodiments provided herein may be, but are not limited to, a general-purpose processor, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a programmable logic unit (PLC), a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, and the like.

[0255] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0256] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A resource allocation method, characterized in that: The method comprises: Determine the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of real-time data traffic, and the data flow direction, wherein each branch network is divided according to the network topology of the industrial network; The corresponding time slot resources are allocated to each branch network respectively, and the time slot resources are used to transmit the real-time data traffic.

2. The method according to claim 1, characterized in that The determining of the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of the real-time data flow, and the data flow direction includes: Determining a traffic transmission order of each branch network according to each location information; The time slot resources of each branch network are determined according to the traffic transmission sequence, the location information, the data volume, and the data flow direction.

3. The method according to claim 2, characterized in that The determining the time slot resource of each branch network according to the traffic transmission sequence, the location information, the data volume, and the data flow direction includes: Determining the line transmission delay corresponding to each branch network according to each location information and each data flow direction; Determine the data traffic size that each branch network needs to wait for transmission based on the traffic transmission order, the data volume, and the data flow direction, and determine the corresponding sending waiting time of each branch network based on the data traffic size and the transmission rate of each branch network; Determine the flow transmission time corresponding to each branch network according to each data volume and each transmission rate; For each branch network, the time slot resource of the branch network is determined according to the line transmission delay, the sending waiting time, and the traffic transmission time corresponding to the branch network.

4. The method according to claim 3, characterized in that The method further comprises: In the case where the real-time data traffic is distributed traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic before the branch network is determined as the sending waiting time; In the case where the real-time data traffic is converged traffic, for each branch network, according to the traffic transmission order, the sending time of all real-time data traffic that needs to pass through the convergence node in the industrial network and whose traffic transmission order is before the branch network will be determined as the sending waiting time.

5. The method according to claim 3, characterized in that The determining the time slot resource of the branch network according to the line transmission delay, the sending waiting time, and the traffic transmission time corresponding to the branch network includes: Adding the line transmission delay and the sending waiting time to obtain the start time of the time slot resource; The start time, the line transmission delay of the branch network, and the traffic transmission time are added together to obtain the end time of the time slot resource.

6. The method according to any one of claims 2 to 5, characterized in that: The determining, based on the location information, a flow transmission order of each branch network includes: In a case where the real-time data traffic is distribution traffic, the traffic transmission order is determined according to a first distance between each of the branch networks and a traffic distribution node in the industrial network, wherein the magnitude of the first distance is positively correlated with the priority of the traffic transmission order; When the real-time data traffic is converged traffic, the traffic transmission order is determined based on the second distance between each branch network and the convergence node in the industrial network, and the size of the second distance is negatively correlated with the priority of the traffic transmission order.

7. The method according to claim 1, characterized in that The method further comprises: Receiving node topology information sent by each node in the industrial network, the node topology information including device connection information of each port of the node and a port type of each port; The network topology is determined according to the device connection information and the port type, and the branch networks are determined according to the network topology.

8. A resource allocation method, characterized in that: The method comprises: Receive resource allocation information sent by the management node in the industrial network; The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network, and the time slot resources are obtained by the management node through resource allocation according to the method according to any one of claims 1-7.

9. A resource allocation device, characterized in that: The device comprises: a determination module, configured to determine the time slot resources of each branch network in the industrial network according to the location information of each branch network, the data volume of the real-time data flow, and the data flow direction, wherein each branch network is divided according to the network topology of the industrial network; The allocation module is used to allocate the corresponding time slot resources to each branch network respectively, and the time slot resources are used to transmit the real-time data traffic.

10. A resource allocation device, characterized in that: The device comprises: A receiving module, configured to receive resource allocation information sent by a management node in an industrial network; The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network, and the time slot resources are obtained by the management node through resource allocation according to the method according to any one of claims 1-7.

11. A management node, characterized in that: Including memory, transceiver, processor: The memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; and the processor is used to read the computer program in the memory and perform the following operations: Determine the time slot resources of each branch network according to the location information of each branch network in the industrial network, the data volume of real-time data traffic, and the data flow direction, wherein each branch network is divided according to the network topology of the industrial network; The corresponding time slot resources are allocated to each branch network respectively, and the time slot resources are used to transmit the real-time data traffic.

12. An industrial device, characterized in that: Including memory, transceiver, processor: The memory is used to store a computer program; the transceiver is used to send and receive data under the control of the processor; and the processor is used to read the computer program in the memory and perform the following operations: Controlling the transceiver to receive resource allocation information sent by a management node in the industrial network; The resource allocation information is used to indicate the time slot resources allocated by the management node for the current branch network, and the time slot resources are obtained by the management node through resource allocation according to the method according to any one of claims 1-7.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.