WO2023015644A1 - Planning method and system architecture for scheduling of chained service flow - Google Patents

Planning method and system architecture for scheduling of chained service flow Download PDF

Info

Publication number
WO2023015644A1
WO2023015644A1 PCT/CN2021/116974 CN2021116974W WO2023015644A1 WO 2023015644 A1 WO2023015644 A1 WO 2023015644A1 CN 2021116974 W CN2021116974 W CN 2021116974W WO 2023015644 A1 WO2023015644 A1 WO 2023015644A1
Authority
WO
WIPO (PCT)
Prior art keywords
service flow
flow
constraint
service
network
Prior art date
Application number
PCT/CN2021/116974
Other languages
French (fr)
Chinese (zh)
Inventor
杨冬
龚恺
王洪超
高德云
张宏科
Original Assignee
北京交通大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京交通大学 filed Critical 北京交通大学
Publication of WO2023015644A1 publication Critical patent/WO2023015644A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/78Architectures of resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/826Involving periods of time

Definitions

  • the present application relates to the technical field of industrial networks, in particular to a planning method and system architecture for chained service flow scheduling.
  • TSN Time Sensitive Networking
  • time-sensitive networks have the characteristics of time-deterministic guarantee and flexible network scheduling
  • business flows of multiple subnets are often required to cooperate to complete tasks, and planning multiple service flows at the same time will bring new possibilities to TSN scheduling. challenge.
  • all tasks need to be completed within the specified time. Since the business processes in the service chain have corresponding sequential logic relationships, a single scheduled business flow may not meet the delay and jitter range of the overall business flow, resulting in unpredictable consequences.
  • the embodiments of the present application provide a planning method and system architecture for chained service flow scheduling, so as to provide a suitable scheduling scheme for deterministic network scheduling of industrial chained service flows.
  • a planning method for chained service flow scheduling includes:
  • the network architecture information of the industrial network and the service flow information transmitted in the industrial network so as to construct a service flow model according to the network architecture information and the service flow information, the service flow information at least including the Describe the logical relationship between the business flow and its sub-business flows;
  • a service flow time slot scheduling scheme of the service flow model is generated on the premise of the time deterministic constraint condition.
  • using constraints of information in the service flow model to generate time-deterministic constraints of the industrial network includes:
  • the network routing constraint is a constraint set including at least a start point constraint, an end point constraint and a relay node constraint.
  • the expressions of the chained service flow frame time slot constraint, the service flow delay requirement constraint, and the relay node processing time constraint are as follows:
  • v a and v b respectively represent two terminals of a service flow transfer
  • v i represents a relay node in a service flow
  • F indicates the full service flow
  • indicates the network edge
  • t vi.start and t vi-1.start respectively indicate two adjacent nodes in a service flow
  • T trans T propa and T handle respectively indicate Data frame transmission delay, switch processing delay and network port queuing delay
  • T delay.max represents the total delay
  • processing time constraint expression of the relay node is as follows:
  • the relay node constraint expression is:
  • TT is the time-triggered flow of industrial control
  • v a and v b represent the starting point and end point of the business flow respectively
  • v i , v j and v r respectively represent the relay nodes in a business flow
  • f () represents the business flow
  • rel indicates the ratio of the time delay between two sub-service flows to the total delay requirement
  • generating the service flow time slot scheduling scheme of the service flow model on the premise of the time deterministic constraint condition includes:
  • the method also includes:
  • Solving is performed according to the optimization objective of the optimization objective function, and an optimal solution among all the service flow time slot scheduling schemes satisfying the constraint conditions is generated.
  • the logical association relationship is represented by a flow association identifier REL i , and its expression is:
  • f i and f j represent two different sub-service flows, Indicates the proportion of the time delay between sub-service flows to the total delay requirement, Indicates the processing delay between two sub-service flows;
  • k represents the proportional value
  • TT is the trigger flow of industrial control time
  • P i represents the flow priority
  • n represents the number of service flows.
  • a system architecture for chained service flow scheduling includes:
  • the information collection module acquires the network architecture information of the industrial network and the business flow information transmitted in the industrial network, so as to construct a business flow model according to the network architecture information and the business flow information, and the business flow information includes at least Used to represent the logical relationship between the business flow and its sub-service flows;
  • a constraint module which uses constraints of information in the business flow model to generate time-deterministic constraints of the industrial network
  • the calculation module generates the service flow time slot scheduling scheme of the service flow model on the premise of the time deterministic constraint condition.
  • an electronic device comprising:
  • a memory and a processor the memory and the processor are connected in communication with each other, computer instructions are stored in the memory, and the processor performs the first aspect by executing the computer instructions, or any of the first aspects A method described in an alternative embodiment.
  • Embodiments of the present application provide a planning method and system architecture for chained service flow scheduling.
  • the method specifically includes: firstly determining the service flow that needs to be transmitted in the industrial network and the information related to it. Then determine the specific network architecture of the industrial network according to the network topology and network status information of the industrial network.
  • the business flow model is constructed according to the business flow information and the network architecture, and the time deterministic constraint conditions for formulating the scheduling scheme are determined by the business flow model, so that the formulated scheduling scheme meets the time determinism of the network through the constraints.
  • the scheduling scheme that can complete the business flow transmission within the specified time is calculated.
  • the generated scheduling scheme completes the overall scheduling of the industrial network business flow within a specified time, and overcomes the difficulty and complexity of TSN scheduling business, and the problem that a single scheduling business flow may have adverse effects.
  • FIG. 1 is a schematic diagram of the steps of a planning method for chained service flow scheduling according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of an application scenario of a planning method for chained service flow scheduling according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a system architecture for chained service flow scheduling according to an embodiment of the present application
  • FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • Step S101 Obtain the network architecture information of the industrial network and the business flow information transmitted in the industrial network to match the network architecture information and business flow information to build a business flow model.
  • the business flow information includes at least the business flow logic association relationship, which is used to represent Logical association of a business flow and its sub-business flows.
  • the current TSN processing service flow is completed in one network.
  • This application is oriented to industrial chain service applications, that is, service flows in multiple subnets are chained together to complete industrial services collaboratively.
  • the network architecture information includes network topology information and network status information.
  • Network topology information can be collected by sending and receiving LLDP link layer discovery protocol packets.
  • Network topology information includes: connection information between switches, connection information between terminals and switches, specifically link ID, link source, and destination terminal MAC address, total link bandwidth, link available bandwidth, link packet loss rate, link end-to-end delay and other detailed parameters; network status information includes: link available bandwidth, switch processing delay, device network card speed.
  • After obtaining the network architecture information it is also necessary to obtain the service flow information transmitted in the industrial network. It is analogous to formulating a traffic plan that needs to be implemented in advance.
  • the road structure is analogous to the network architecture in the embodiment of this application, and the vehicle is analogous to the business flow in the embodiment of this application. Therefore
  • This application can plan a scheduling scheme for chained business flows in an industrial network, which is similar to a traffic plan, so that the business flows can be interacted within a specified time.
  • service flow identity information of the chained service flow and its sub-service flow which is used to refer to the identity of the service flow to be transmitted, including: source, destination terminal (host) ID, service flow ID, source , the MAC address of the destination terminal, the IP address of the source and destination terminals;
  • secondly obtain the basic information of the chained service flow and its sub-service flow, which is used to describe the relevant attributes of the service flow, including but not limited to: service flow data Packet sending cycle, maximum number of frames sent in data packet cycle, maximum frame size of data packet, priority of business flow; and, it is also necessary to obtain the business flow requirement information of the business flow and its sub-service flow, which is used to represent the requirements and conditions of the business flow , including but not limited to: the maximum transmission delay of the flow, the range of the delay jitter of the flow, the data transmission offset, and the DSCP priority;
  • Each flow can be uniformly represented by the following expression: ⁇ P i , S i , D i , T i , DDL i , REL i >, which are flow priority, source address, destination address, flow period, maximum transmission delay, Stream association ID.
  • the flow association identifier REL i is a unique identifier for the chained service flow in the embodiment of the present application, and represents the association information of the logical relationship between the sub-service flows in the chained service flow, expressed as Among them, f i and f j are sub-service flows, Indicates the ratio of the time delay between sub-service flows to the total delay requirement, as follows:
  • the processing delay is quantified by taking the flow cycle as a time unit.
  • Step S102 Generate time-deterministic constraints of the industrial network using constraints of information in the business flow model.
  • the planned scheduling scheme can realize the function that the service flow is transmitted within a specified time, and the time deterministic constraints of the industrial network need to be added to the planning calculation.
  • the time-deterministic constraint condition analyzes the time-sensitive flow according to the network topology information, network state information and service flow information, and obtains the network constraint condition result.
  • the embodiment of the present application uses but is not limited to chained service flow frame time slot constraints, network routing constraints, service flow delay requirement constraints, and relay node processing time constraints to generate deterministic constraint conditions.
  • a chained service flow frame time slot constraint is generated, where the service flow frame period size can be expressed as It is numerically expressed as the least common multiple of the frame period of all sub-service flows; the time of adjacent nodes in the service flow is not less than the sum of data frame transmission delay, switch processing delay and network port queuing delay, and the total end-to-end delay is not greater than the total delay required by the service flow, therefore, the chained service flow frame slot constraint can be expressed as follows:
  • the delay constraint describes each An end-to-end flow should reach all destinations before the deadline, which takes into account the processing time of the relay nodes of the industrial network based on service chaining, so the equation of the delay constraint is described as follows:
  • the equation describes the end-to-end delay, and it can be seen that the end-to-end delay mainly considers the data transmission delay of the flow and the processing delay of the relay node. Delay period for business flow specified by the user. In order to provide delay guarantees, the latency between the source and destination's sending time points (including the relay node's processing delay) should be within the deadline.
  • TT stands for industrial control time-triggered stream, which belongs to the high-priority stream mainly scheduled by TSN.
  • the network routing constraints include, but are not limited to: starting point constraints, end point constraints, and relay node constraints.
  • the network routing constraint is generated according to the network topology information and the link state information.
  • the first constraint origin constraint of network routing is expressed as:
  • This constraint is to ensure that node v a is always the first transmission node of the link in the network topology, and there will be no second node in the network topology to send initial data before node v a , which means that before this point there is Any edge that a node is connected to is routed, formulated using a routing identifier.
  • relay node constraint The third constraint for network routing, the relay node constraint, is expressed as:
  • the planned scheduling scheme can complete the transmission of business flows within the specified time in most cases, thus ensuring the time-deterministic characteristics of the industrial network.
  • Step S103 Generate a service flow time slot scheduling scheme of the service flow model on the premise of time deterministic constraints.
  • the solver is used to calculate the service flow time slot scheduling scheme to schedule the chained service flow in the industrial network.
  • the service flow information is the input of the solver, and all available path groups are calculated. It is required to dynamically adjust the business flow information.
  • the time-deterministic constraints are the constraints of the solver.
  • the solver can use but not limited to SMT solver, ILP solver, OMT solver, etc., so as to solve the time-deterministic scheduling scheme that meets the user's time requirements.
  • the principle of the solver is the prior art, and will not be repeated in the embodiment of the present application.
  • the industrial network can be compared to the traffic road network
  • the business flow can be compared to the vehicle
  • the solver can be compared to the traffic police who formulate the plan
  • the constraints can be compared to the traffic rules (the constraints in the embodiment of this application are when the business flow is transmitted. specifications and demand attributes), so as to formulate a set of command schemes that meet the traffic rules.
  • a planning method for chained service flow scheduling provided by the embodiment of the present application further includes the following steps:
  • Step S104 Obtain the optimization objective function, and match the optimization objective function with the solver before solving;
  • Step S105 Perform calculation according to the optimization objective of the optimization objective function, and generate an optimal solution among all service flow time slot scheduling schemes satisfying the constraints.
  • the optimization objective function is generally the goal of the user's optimal demand, which is mainly reflected in the optimization of network performance such as packet loss rate, bandwidth utilization rate, and network schedulability.
  • the optimal scheme among all the time-deterministic scheduling schemes generated in steps S102 to S103 can be screened out, and the optimization objective function can be added to the solving process of the solver, which can reduce a large amount of time according to the optimization objective. Calculation time, thereby improving the efficiency of planning and scheduling schemes.
  • the optimization objective function is selected as the minimum bandwidth occupancy rate, B is the link bandwidth, and the service flow scheduling is completed by using the minimum bandwidth to save link bandwidth resources and improve the schedulability of the service flow.
  • the optimization objective function is as follows;
  • the embodiment of the present application provides a chained service flow scheduling planning method: firstly, determine the service flow that needs to be transmitted in the industrial network, and its related information. Then determine the specific network architecture of the industrial network according to the network topology and network status information of the industrial network. In this way, the business flow model is constructed according to the business flow information and the network architecture, and the time deterministic constraint conditions for formulating the scheduling scheme are determined by the business flow model, so that the formulated scheduling scheme meets the time determinism of the network through the constraints. Finally, taking the business flow information as the input of the solver, and the time deterministic constraints as the calculation index of the solver, the scheduling scheme that can complete the business flow transmission within the specified time is calculated.
  • the generated scheduling scheme completes the overall scheduling of industrial network business flows within a specified time, and overcomes the difficulty and complexity of TSN scheduling business, and the problem that a single scheduling business flow may have adverse effects.
  • this embodiment also provides a system architecture for chained service flow scheduling, the system includes:
  • the information collection module 101 acquires the network architecture information of the industrial network and the business flow information transmitted in the industrial network to construct a business flow model according to the network architecture information and business flow information.
  • the business flow information includes at least Logical relationship of sub-business flows.
  • the constraint module 102 generates a time-deterministic constraint condition of the industrial network by using the constraint condition of the information in the service flow model. For details, refer to the relevant description of step S102 in the above method embodiment, and details are not repeated here.
  • the solution module 103 uses a solver to obtain a service flow time slot scheduling scheme of a service flow model premised on time deterministic constraints. For details, refer to the relevant description of step S103 in the above method embodiment, and details are not repeated here.
  • the system architecture for chained service flow scheduling provided by the embodiment of the present application is used to implement the planning method for chained service flow scheduling provided in the above embodiment.
  • the implementation method is the same as the principle. For details, refer to the above method embodiment The relevant descriptions will not be repeated here.
  • the embodiment of the present application provides a chained service flow scheduling system architecture: first, determine the service flow that needs to be transmitted in the industrial network, and its related information. Then determine the specific network architecture of the industrial network according to the network topology and network status information of the industrial network. In this way, the business flow model is constructed according to the business flow information and the network architecture, and the time deterministic constraint conditions for formulating the scheduling scheme are determined by the business flow model, so that the formulated scheduling scheme meets the time determinism of the network through the constraints. Finally, taking the business flow information as the input of the solver, and the time deterministic constraints as the solving index of the solver, the scheduling scheme that can complete the business flow transmission within the specified time is calculated.
  • the generated scheduling scheme completes the overall scheduling of industrial network business flows within a specified time, and overcomes the difficulty and complexity of TSN scheduling business, and the problem that a single scheduling business flow may have adverse effects.
  • FIG. 4 shows an electronic device according to an embodiment of the present application.
  • the device includes: a processor 901 and a memory 902, which may be connected through a bus or in other ways.
  • the connection through a bus is taken as an example.
  • the processor 901 may be a central processing unit (Central Processing Unit, CPU).
  • the processor 901 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate array (Field-Programmable Gate Array, FPGA) or Other chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above-mentioned types of chips.
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • Other chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above-mentioned types of chips.
  • the memory 902 as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules corresponding to the methods in the above method embodiments.
  • the processor 901 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above method embodiments.
  • the memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created by the processor 901 and the like.
  • the memory 902 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the storage 902 may optionally include storages that are remotely located relative to the processor 901, and these remote storages may be connected to the processor 901 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • One or more modules are stored in the memory 902, and when executed by the processor 901, the methods in the foregoing method embodiments are executed.
  • the storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive) , abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memory.

Abstract

The present application discloses a planning method and system architecture for scheduling of a chained service flow. The method comprises: obtaining network architecture information of an industrial network and service flow information transmitted in the industrial network to match the network architecture information with the service flow information to construct a service flow model, the service flow information at least comprising a service flow logic association relationship which is used for representing a logic association relationship of a service flow and a sub-service flow thereof; generating a time determinability constraint condition of the industrial network by using a constraint condition for the information in the service flow model; and generating a service flow time slot scheduling solution of the service flow model on the premise of the time determinability constraint condition. According to the technical solution provided by the present application, the planning of the overall scheduling of a service flow of an industrial network within a specified time period is completed, and the problems that a TSN scheduling service is difficult and complex and a single scheduling service flow may generate adverse effects are solved.

Description

一种链式业务流调度的规划方法和系统架构A planning method and system architecture for chained business flow scheduling 技术领域technical field
本申请涉及工业网络技术领域,具体涉及一种链式业务流调度的规划方法和系统架构。The present application relates to the technical field of industrial networks, in particular to a planning method and system architecture for chained service flow scheduling.
背景技术Background technique
在新智能制造行业的推动下,个性化定制和网络协作等新的制造生产模式得到了广泛的发展。新模式下制造设备和工业应用信息系统之间需要通过工业网络进行频繁的数据交互。而企业内部有线网络技术的信息技术(IT)和运营技术(OT)系统是独立联网的;另一方面,工业控制技术系统使用各种不兼容的现场工业总线网络和工业以太网,使得工业数据交互繁琐。因此,为了灵活地处理业务流,并兼容工业以太网的特性,例如确定的时间延迟和抖动,研究新工业网络架构是目前的热门方向。目前工业网络正在向基于广泛使用的以太网的时间敏感网络(TSN)发展。TSN可以支持OT系统对网络实时性和可靠性的要求,并且与IT网络使用的标准以太网兼容。因此,TSN可以有效解决以上两个问题,被认为是未来工业网络的关键技术。Driven by the new intelligent manufacturing industry, new manufacturing and production modes such as personalized customization and network collaboration have been widely developed. Under the new model, frequent data interaction between manufacturing equipment and industrial application information systems is required through industrial networks. However, the information technology (IT) and operational technology (OT) systems of the enterprise's internal wired network technology are independently networked; on the other hand, the industrial control technology system uses various incompatible field industrial bus networks and industrial Ethernet, making industrial data Interaction is cumbersome. Therefore, in order to flexibly process business flows and be compatible with the characteristics of industrial Ethernet, such as deterministic time delay and jitter, researching new industrial network architectures is currently a hot direction. Industrial networks are currently evolving towards Time Sensitive Networking (TSN) based on the widely used Ethernet. TSN can support the real-time and reliability requirements of the OT system on the network, and is compatible with the standard Ethernet used by the IT network. Therefore, TSN can effectively solve the above two problems and is considered to be a key technology for future industrial networks.
但是,尽管时间敏感网络具有时间确定性保证和网络灵活调度的特点,但是在实际工业生产中常常需要多个子网的业务流合作完成任务,而同时规划多个业务流将给TSN调度带来新的挑战。在时间确定性网络中,所有任务需要在规定时间内完成,由于在服务链中的业务流程具有相应的顺序逻辑关系,单个调度业务流可能会不满足整体业务流的延迟和抖动范围,从而导致不可预测的后果。However, although time-sensitive networks have the characteristics of time-deterministic guarantee and flexible network scheduling, in actual industrial production, business flows of multiple subnets are often required to cooperate to complete tasks, and planning multiple service flows at the same time will bring new possibilities to TSN scheduling. challenge. In a time-deterministic network, all tasks need to be completed within the specified time. Since the business processes in the service chain have corresponding sequential logic relationships, a single scheduled business flow may not meet the delay and jitter range of the overall business flow, resulting in unpredictable consequences.
发明内容Contents of the invention
有鉴于此,本申请实施方式提供了一种链式业务流调度的规划方法和系统架构,从而实现了为工业链式业务流的确定性网络调度提供合适的调度方案。In view of this, the embodiments of the present application provide a planning method and system architecture for chained service flow scheduling, so as to provide a suitable scheduling scheme for deterministic network scheduling of industrial chained service flows.
根据第一方面,一种链式业务流调度的规划方法,所述方法包括:According to the first aspect, a planning method for chained service flow scheduling, the method includes:
获取工业网络的网络架构信息,以及在所述工业网络中传输的业务流信息,以根据所述网络架构信息和所述业务流信息构建业务流模型,所述业务流信息至少包含用于表示所述业务流及其子业务流的逻辑关联关系;Acquiring the network architecture information of the industrial network and the service flow information transmitted in the industrial network, so as to construct a service flow model according to the network architecture information and the service flow information, the service flow information at least including the Describe the logical relationship between the business flow and its sub-business flows;
利用所述业务流模型中信息的约束条件生成所述工业网络的时间确定性约束条件;generating time-deterministic constraints of the industrial network using constraints of information in the business flow model;
以所述时间确定性约束条件为前提生成所述业务流模型的业务流时隙调度方案。A service flow time slot scheduling scheme of the service flow model is generated on the premise of the time deterministic constraint condition.
可选地,利用所述业务流模型中的信息的约束条件生成所述工业网络的时间确定性约束条件,包括:Optionally, using constraints of information in the service flow model to generate time-deterministic constraints of the industrial network includes:
获取至少包含链式业务流帧时隙约束、网络路由约束、业务流时延需求约束、中继节点的处理时间约束的约束集合,所述约束集合即为所述时间确定性约束条件。Obtain a constraint set including at least chained service flow frame time slot constraints, network routing constraints, service flow delay requirement constraints, and relay node processing time constraints, and the constraint set is the time deterministic constraint condition.
可选地,所述网络路由约束为至少包括起点约束、终点约束和中继节点约束的约束集合。Optionally, the network routing constraint is a constraint set including at least a start point constraint, an end point constraint and a relay node constraint.
可选地,所述链式业务流帧时隙约束、所述业务流时延需求约束、所述中继节点的处理时间约束的表达式如下:Optionally, the expressions of the chained service flow frame time slot constraint, the service flow delay requirement constraint, and the relay node processing time constraint are as follows:
其中,所述链式业务流帧时隙约束表达式如下:Wherein, the frame time slot constraint expression of the chained service flow is as follows:
Figure PCTCN2021116974-appb-000001
Figure PCTCN2021116974-appb-000001
式中v a和v b分别表示一个业务流的流转的两个终端,v i表示一个业务流中的中继节点,
Figure PCTCN2021116974-appb-000002
表示一个业务流,F表示全业务流,ε表示网络边,t vi.start和t vi-1.start分别表示一个业务流中的两个相邻节点,T trans、T propa和T handle分别表示数据帧传输时延、交换机处理时延和网口排队时延,T delay.max表示总时延;
In the formula, v a and v b respectively represent two terminals of a service flow transfer, v i represents a relay node in a service flow,
Figure PCTCN2021116974-appb-000002
Indicates a service flow, F indicates the full service flow, ε indicates the network edge, t vi.start and t vi-1.start respectively indicate two adjacent nodes in a service flow, T trans , T propa and T handle respectively indicate Data frame transmission delay, switch processing delay and network port queuing delay, T delay.max represents the total delay;
其中,所述业务流时延需求约束表达式如下:Wherein, the service flow delay requirement constraint expression is as follows:
Figure PCTCN2021116974-appb-000003
Figure PCTCN2021116974-appb-000003
式中
Figure PCTCN2021116974-appb-000004
表示网络路由标识符,
Figure PCTCN2021116974-appb-000005
表示业务流的延迟期限, v r表示业务流两个终端中的中继节点,
Figure PCTCN2021116974-appb-000006
表示子业务流之间的时间延迟占总延迟要求的比例,
Figure PCTCN2021116974-appb-000007
表示两个子业务流之间的处理时延,其中
Figure PCTCN2021116974-appb-000008
Figure PCTCN2021116974-appb-000009
分别表示业务流
Figure PCTCN2021116974-appb-000010
的两个子业务流;
In the formula
Figure PCTCN2021116974-appb-000004
Indicates the network route identifier,
Figure PCTCN2021116974-appb-000005
Indicates the delay period of the service flow, v r indicates the relay node in the two terminals of the service flow,
Figure PCTCN2021116974-appb-000006
Indicates the proportion of the time delay between sub-service flows to the total delay requirement,
Figure PCTCN2021116974-appb-000007
Indicates the processing delay between two sub-service flows, where
Figure PCTCN2021116974-appb-000008
and
Figure PCTCN2021116974-appb-000009
Represent business flow
Figure PCTCN2021116974-appb-000010
The two sub-traffic flows of ;
其中,所述中继节点的处理时间约束表达式如下:Wherein, the processing time constraint expression of the relay node is as follows:
Figure PCTCN2021116974-appb-000011
Figure PCTCN2021116974-appb-000011
式中,
Figure PCTCN2021116974-appb-000012
表示两个子业务流之间的处理时延,P i表示流优先级,n表示业务流个数,
Figure PCTCN2021116974-appb-000013
表示两个子业务流之间的时间延迟占总延迟要求的比例,
Figure PCTCN2021116974-appb-000014
表示网络路由标识符,TT是工控时间触发流。
In the formula,
Figure PCTCN2021116974-appb-000012
Indicates the processing delay between two sub-service flows, P i indicates the flow priority, n indicates the number of service flows,
Figure PCTCN2021116974-appb-000013
Indicates the ratio of the time delay between two sub-service flows to the total delay requirement,
Figure PCTCN2021116974-appb-000014
Indicates the network routing identifier, and TT is the industrial control time-triggered stream.
可选地,所述起点约束、终点约束和中继节点约束的表达式如下:Optionally, the expressions of the start point constraint, end point constraint and relay node constraint are as follows:
其中,起点约束表达式为:Among them, the origin constraint expression is:
Figure PCTCN2021116974-appb-000015
Figure PCTCN2021116974-appb-000015
其中,终点约束表达式为:Among them, the end point constraint expression is:
Figure PCTCN2021116974-appb-000016
Figure PCTCN2021116974-appb-000016
其中,中继节点约束表达式为:Among them, the relay node constraint expression is:
Figure PCTCN2021116974-appb-000017
Figure PCTCN2021116974-appb-000017
式中,TT是工控时间触发流,v a和v b分别表示业物流的起点和终点,v i、v j和v r分别表示一个业务流中的中继节点,f ()表示业务流,rel表示两个子业务流之间的时间延迟占总延迟要求的比例,
Figure PCTCN2021116974-appb-000018
表示网络路由标识符。
In the formula, TT is the time-triggered flow of industrial control, v a and v b represent the starting point and end point of the business flow respectively, v i , v j and v r respectively represent the relay nodes in a business flow, f () represents the business flow, rel indicates the ratio of the time delay between two sub-service flows to the total delay requirement,
Figure PCTCN2021116974-appb-000018
Represents a network route identifier.
可选地,以所述时间确定性约束条件为前提生成所述业务流模型的业务流时隙调度方案,包括:Optionally, generating the service flow time slot scheduling scheme of the service flow model on the premise of the time deterministic constraint condition includes:
以所述业务流信息为解算器的输入,所述时间确定性约束条件为解算器的约束,通过解算器解算出所有满足约束条件的所述业务流时隙调度方案。Taking the service flow information as the input of the solver, the time deterministic constraint condition as the constraint of the solver, and calculating all the time slot scheduling schemes of the service flow satisfying the constraint condition through the solver.
可选地,所述方法还包括:Optionally, the method also includes:
获取优化目标函数,并将所述优化目标函数在解算前与所述解算器相匹配;obtaining an optimization objective function, and matching the optimization objective function with the solver before solving;
根据所述优化目标函数的优化目标进行解算,生成在所有满足约束条件的所述业务流时隙调度方案中的最优方案。Solving is performed according to the optimization objective of the optimization objective function, and an optimal solution among all the service flow time slot scheduling schemes satisfying the constraint conditions is generated.
可选地,所述逻辑关联关系使用流关联标识REL i表示,其表达式为: Optionally, the logical association relationship is represented by a flow association identifier REL i , and its expression is:
Figure PCTCN2021116974-appb-000019
Figure PCTCN2021116974-appb-000019
其中,f i,f j代表两个不同的子业务流,
Figure PCTCN2021116974-appb-000020
表示子业务流之间的时间延迟占总延迟要求的比例,
Figure PCTCN2021116974-appb-000021
表示两个子业务流之间的处理时延;
Among them, f i and f j represent two different sub-service flows,
Figure PCTCN2021116974-appb-000020
Indicates the proportion of the time delay between sub-service flows to the total delay requirement,
Figure PCTCN2021116974-appb-000021
Indicates the processing delay between two sub-service flows;
Figure PCTCN2021116974-appb-000022
Figure PCTCN2021116974-appb-000022
k表示比例值,TT是工控时间触发流;k represents the proportional value, and TT is the trigger flow of industrial control time;
其中,
Figure PCTCN2021116974-appb-000023
in,
Figure PCTCN2021116974-appb-000023
P i表示流优先级,n表示业务流个数。 P i represents the flow priority, and n represents the number of service flows.
根据第二方面,一种链式业务流调度的系统架构,所述系统包括:According to the second aspect, a system architecture for chained service flow scheduling, the system includes:
信息采集模块,获取工业网络的网络架构信息,以及在所述工业网络中传输的业务流信息,以根据所述网络架构信息和所述业务流信息构建业务流模型,所述业务流信息至少包含用于表示所述业务流及其子业务流的逻辑关联关系;The information collection module acquires the network architecture information of the industrial network and the business flow information transmitted in the industrial network, so as to construct a business flow model according to the network architecture information and the business flow information, and the business flow information includes at least Used to represent the logical relationship between the business flow and its sub-service flows;
约束模块,利用所述业务流模型中的信息的约束条件生成所述工业网络的时间确定性约束条件;A constraint module, which uses constraints of information in the business flow model to generate time-deterministic constraints of the industrial network;
解算模块,以所述时间确定性约束条件为前提生成所述业务流模型的业务流时隙调度方案。The calculation module generates the service flow time slot scheduling scheme of the service flow model on the premise of the time deterministic constraint condition.
根据第三方面,一种电子设备,包括:According to a third aspect, an electronic device comprising:
存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行第一方面,或者第一方面任意一种可选实施方式中所述的方法。A memory and a processor, the memory and the processor are connected in communication with each other, computer instructions are stored in the memory, and the processor performs the first aspect by executing the computer instructions, or any of the first aspects A method described in an alternative embodiment.
本申请技术方案,具有如下优点:The technical solution of the present application has the following advantages:
本申请实施例提供的一种链式业务流调度的规划方法和系统架构。该方法具体包括:首先确定需要在工业网络中进行传输业务流,以及与其相关的信息。之后根据工业网络的网络拓扑结构和网络状态信息确定工业网络的具体网络架构。从而根据业务流信息与网络架构构建业务流模型,以业务流模型确定出制定调度方案的时间确定性约束条件,从而通过约束条件使得制定的调度方案满足网络的时间确定性。最后以业务流信息为解算器输入,时间确定性约束条件为解算器的解算指标,解算出能够在规定时间内完成业务流传输的调度方案。进一步地通过制定目标函数来对解算器的解算过程进行优化,得到最优的调度方案,能够减少调度占用资源和/或提高调度效率,进一步提升了本申请规划的调度方案的可调度性。生成 的调度方案完成了对工业网络业务流在规定时间内的整体调度,克服了TSN调度业务困难复杂,以及单个调度业务流可能产生不良影响的问题。Embodiments of the present application provide a planning method and system architecture for chained service flow scheduling. The method specifically includes: firstly determining the service flow that needs to be transmitted in the industrial network and the information related to it. Then determine the specific network architecture of the industrial network according to the network topology and network status information of the industrial network. In this way, the business flow model is constructed according to the business flow information and the network architecture, and the time deterministic constraint conditions for formulating the scheduling scheme are determined by the business flow model, so that the formulated scheduling scheme meets the time determinism of the network through the constraints. Finally, taking the business flow information as the input of the solver, and the time deterministic constraints as the calculation index of the solver, the scheduling scheme that can complete the business flow transmission within the specified time is calculated. Further optimize the solving process of the solver by formulating the objective function to obtain the optimal scheduling scheme, which can reduce the resources occupied by scheduling and/or improve the scheduling efficiency, and further improve the schedulability of the scheduling scheme planned by this application . The generated scheduling scheme completes the overall scheduling of the industrial network business flow within a specified time, and overcomes the difficulty and complexity of TSN scheduling business, and the problem that a single scheduling business flow may have adverse effects.
附图说明Description of drawings
为了更清楚地说明本申请具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the specific embodiments or prior art. Obviously, the accompanying drawings in the following description The drawings are some implementations of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
图1为本申请实施例的一种链式业务流调度的规划方法的步骤示意图;FIG. 1 is a schematic diagram of the steps of a planning method for chained service flow scheduling according to an embodiment of the present application;
图2为本申请实施例的一种链式业务流调度的规划方法的应用场景示意图;FIG. 2 is a schematic diagram of an application scenario of a planning method for chained service flow scheduling according to an embodiment of the present application;
图3为本申请实施例的一种链式业务流调度的系统架构的结构示意图;FIG. 3 is a schematic structural diagram of a system architecture for chained service flow scheduling according to an embodiment of the present application;
图4为本申请实施例的电子设备结构示意图。FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the scope of protection of this application.
下面所描述的本申请不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。The technical features involved in the different embodiments of the present application described below may be combined as long as they do not constitute conflicts with each other.
请参阅图1和图2,本申请实施例提供的一种链式业务流调度的规划方法,具体包括如下步骤:Please refer to Figure 1 and Figure 2, a planning method for chained service flow scheduling provided by the embodiment of the present application, which specifically includes the following steps:
步骤S101:获取工业网络的网络架构信息,以及在工业网络中传输的业务流信息,以匹配网络架构信息和业务流信息构建业务流模型,业务流信息至少包括业务流逻辑关联关系,用于表示业务流及其子业务流的逻辑关联。Step S101: Obtain the network architecture information of the industrial network and the business flow information transmitted in the industrial network to match the network architecture information and business flow information to build a business flow model. The business flow information includes at least the business flow logic association relationship, which is used to represent Logical association of a business flow and its sub-business flows.
具体地,目前TSN处理业务流是在一个网络中完成的,本申请面向工业链式服务应用,即多个子网中的业务流呈链式串起来,协同完成工业业务。在生成链式业务流调度方案之前, 需要知道被用于传输业务流的工业网络的具体网络架构,因此需要采集该网络架构的网络架构信息,其中网络架构信息包含网络拓扑信息和网络状态信息。可以采用发送接收LLDP链路层发现协议数据包的方式收集网络拓扑信息,网络拓扑信息包括:交换机间的连接信息、终端与交换机间的连接信息,具体包括链路ID、链路源、目的终端MAC地址、链路总带宽、链路可用带宽、链路丢包率、链路端到端时延等详细参数;网络状态信息包括:链路可用带宽、交换机处理时延、设备网卡速率。Specifically, the current TSN processing service flow is completed in one network. This application is oriented to industrial chain service applications, that is, service flows in multiple subnets are chained together to complete industrial services collaboratively. Before generating the chained service flow scheduling scheme, it is necessary to know the specific network architecture of the industrial network used to transmit the service flow, so it is necessary to collect the network architecture information of the network architecture, where the network architecture information includes network topology information and network status information. Network topology information can be collected by sending and receiving LLDP link layer discovery protocol packets. Network topology information includes: connection information between switches, connection information between terminals and switches, specifically link ID, link source, and destination terminal MAC address, total link bandwidth, link available bandwidth, link packet loss rate, link end-to-end delay and other detailed parameters; network status information includes: link available bandwidth, switch processing delay, device network card speed.
首先获取网络设备的基本信息,即交换机MAC地址、IP地址,网络终端MAC地址、IP地址;其次,获取交换机网卡信息,包括交换机ID、网卡MAC地址、网卡标识号等;之后可以采用查询和监测网卡的方式获取网络状态信息。在获取网络架构信息后,还需获取在该工业网络中传输的业务流信息。类比于制定一份交通计划需要提前得到实施该计划的道路结构和通行于该道路的车辆,道路结构类比于本申请实施例中的网络架构,车辆类比于本申请实施例中的业务流,因此本申请能够规划出类比于交通计划的针对工业网络中的链式业务流的调度方案,使得业务流能够在规定时间内交互完毕。First obtain the basic information of the network device, that is, the MAC address and IP address of the switch, the MAC address and IP address of the network terminal; secondly, obtain the network card information of the switch, including the switch ID, MAC address of the network card, and the identification number of the network card; after that, query and monitoring can be used Network card to obtain network status information. After obtaining the network architecture information, it is also necessary to obtain the service flow information transmitted in the industrial network. It is analogous to formulating a traffic plan that needs to be implemented in advance. The road structure of the plan and the vehicles passing on the road. The road structure is analogous to the network architecture in the embodiment of this application, and the vehicle is analogous to the business flow in the embodiment of this application. Therefore This application can plan a scheduling scheme for chained business flows in an industrial network, which is similar to a traffic plan, so that the business flows can be interacted within a specified time.
获取业务流信息,首先获取链式业务流及其子业务流的业务流身份信息,用于指代要传输的业务流的身份,包括:源、目的终端(host)ID,业务流ID,源、目的终端的MAC地址,源、目的终端的IP地址;其次,获取链式业务流及其子业务流的业务流基本信息,用于描述业务流的相关属性,包括但不限于:业务流数据包发送周期、数据包周期最大发送帧数、数据包最大帧大小、业务流优先级;并且,还需要获取业务流及其子业务流的业务流需求信息,用于表示业务流的需求和条件,包括但不限于:流的最大传输时延、流的时延抖动范围、数据发送偏移量、DSCP优先级;在获取了上述描述业务流的一些基本信息之后,特别地,在本申请实施例中还需要获取链式业务流与其子业务流的业务流逻辑关联关系,在本申请实施例中独特地用于表示业务流及其子业务流的逻辑关联关系,以及同一链式业务流中各个子业务流的逻辑关联关系等。当有外部设备需要通过工业网络进行通信时,外部设备会向工业网络发送各类信息从而形成了各类业务流。To obtain service flow information, first obtain the service flow identity information of the chained service flow and its sub-service flow, which is used to refer to the identity of the service flow to be transmitted, including: source, destination terminal (host) ID, service flow ID, source , the MAC address of the destination terminal, the IP address of the source and destination terminals; secondly, obtain the basic information of the chained service flow and its sub-service flow, which is used to describe the relevant attributes of the service flow, including but not limited to: service flow data Packet sending cycle, maximum number of frames sent in data packet cycle, maximum frame size of data packet, priority of business flow; and, it is also necessary to obtain the business flow requirement information of the business flow and its sub-service flow, which is used to represent the requirements and conditions of the business flow , including but not limited to: the maximum transmission delay of the flow, the range of the delay jitter of the flow, the data transmission offset, and the DSCP priority; In the example, it is also necessary to obtain the business flow logical association relationship between the chained business flow and its sub-business flow, which is uniquely used in the embodiment of this application to represent the logical relationship between the business flow and its sub-business flow, and the same chained business flow The logical association of each sub-service flow, etc. When an external device needs to communicate through the industrial network, the external device will send various information to the industrial network to form various business flows.
TSN网络可以表示为N=(V,E),v∈V,ε∈E,V是网络节点集合,E是网络边的集合。每个流可以用如下表达式统一表示:<P i,S i,D i,T i,DDL i,REL i>,分别为流优先级、源地址、目的地址、流周期、最大传输延迟、流关联标识。其中,流关联标识REL i是本申请实施例面向链式业务流的特有标识,表示链式业务流中子业务流逻辑关系的关联信息,表示为
Figure PCTCN2021116974-appb-000024
其中,f i,f j是子业务流,
Figure PCTCN2021116974-appb-000025
表示子业务 流之间的时间延迟占总延迟要求的比例,如下所示:
The TSN network can be expressed as N=(V,E), v∈V,ε∈E, V is a set of network nodes, and E is a set of network edges. Each flow can be uniformly represented by the following expression: <P i , S i , D i , T i , DDL i , REL i >, which are flow priority, source address, destination address, flow period, maximum transmission delay, Stream association ID. Among them, the flow association identifier REL i is a unique identifier for the chained service flow in the embodiment of the present application, and represents the association information of the logical relationship between the sub-service flows in the chained service flow, expressed as
Figure PCTCN2021116974-appb-000024
Among them, f i and f j are sub-service flows,
Figure PCTCN2021116974-appb-000025
Indicates the ratio of the time delay between sub-service flows to the total delay requirement, as follows:
Figure PCTCN2021116974-appb-000026
Figure PCTCN2021116974-appb-000026
并且,两个子业务流之间的处理时延可表示为如下所示:And, the processing delay between two sub-traffic flows can be expressed as follows:
Figure PCTCN2021116974-appb-000027
Figure PCTCN2021116974-appb-000027
其中,处理时延通过将流周期作为一个时间单位来量化表示。Among them, the processing delay is quantified by taking the flow cycle as a time unit.
步骤S102:利用业务流模型中的信息的约束条件生成工业网络的时间确定性约束条件。Step S102: Generate time-deterministic constraints of the industrial network using constraints of information in the business flow model.
具体地,所规划出的调度方案能够实现业务流在规定时间内传输完毕的功能,还需在规划计算中加入该工业网络的时间确定性约束条件。其中,时间确定性约束条件根据网络拓扑信息、网络状态信息及业务流信息对时间敏感流、进行网络约束分析,得到网络约束条件结果。本申请实施例采用但不限于链式业务流帧时隙约束、网络路由约束、业务流时延需求约束、中继节点的处理时间约束来生成确定性约束条件,通过将上述约束组成的集合作为时间确定性约束条件Specifically, the planned scheduling scheme can realize the function that the service flow is transmitted within a specified time, and the time deterministic constraints of the industrial network need to be added to the planning calculation. Among them, the time-deterministic constraint condition analyzes the time-sensitive flow according to the network topology information, network state information and service flow information, and obtains the network constraint condition result. The embodiment of the present application uses but is not limited to chained service flow frame time slot constraints, network routing constraints, service flow delay requirement constraints, and relay node processing time constraints to generate deterministic constraint conditions. By using the set of the above constraints as Time Deterministic Constraints
其中,根据子业务流数据帧大小和周期等信息,生成链式业务流帧时隙约束,其中,业务流帧周期大小可以表示为
Figure PCTCN2021116974-appb-000028
在数值上表示为所有子业务流帧周期的最小公倍数;业务流中相邻节点的时间不小于数据帧传输时延、交换机处理时延和网口排队时延总和,并且端到端的总时延不大于业务流所要求的总时延,因此,链式业务流帧时隙约束可表达为如下所示:
Among them, according to information such as the size and period of the sub-service flow data frame, a chained service flow frame time slot constraint is generated, where the service flow frame period size can be expressed as
Figure PCTCN2021116974-appb-000028
It is numerically expressed as the least common multiple of the frame period of all sub-service flows; the time of adjacent nodes in the service flow is not less than the sum of data frame transmission delay, switch processing delay and network port queuing delay, and the total end-to-end delay is not greater than the total delay required by the service flow, therefore, the chained service flow frame slot constraint can be expressed as follows:
Figure PCTCN2021116974-appb-000029
Figure PCTCN2021116974-appb-000029
Figure PCTCN2021116974-appb-000030
表示一个业务流节点,括号中表示流的两个端点。
Figure PCTCN2021116974-appb-000030
Indicates a business flow node, and the two endpoints of the flow are indicated in brackets.
其中,根据链式业务流及其子业务流周期、端到端时延、时延抖动等需求,生成链式业 务流及其子业务流的业务流时延需求约束,时延约束描述了每个端到端流应该在截止日期之前到达所有目的地,这要考虑基于服务链的工业网络的中继节点的处理时间,因此时延约束的等式描述如下:Among them, according to the chained service flow and its sub-service flow period, end-to-end delay, delay jitter and other requirements, the service flow delay requirement constraints of the chained service flow and its sub-service flows are generated. The delay constraint describes each An end-to-end flow should reach all destinations before the deadline, which takes into account the processing time of the relay nodes of the industrial network based on service chaining, so the equation of the delay constraint is described as follows:
Figure PCTCN2021116974-appb-000031
Figure PCTCN2021116974-appb-000031
等式描述了端到端延迟,可以看出,端到端延迟主要考虑流的数据传输延迟和中继节点的处理延迟。业务流的延迟期限
Figure PCTCN2021116974-appb-000032
由用户指定。为了提供延迟保证,源与目的地的发送时间点之间的等待时间(包括中继节点的处理延迟)应在期限内。
The equation describes the end-to-end delay, and it can be seen that the end-to-end delay mainly considers the data transmission delay of the flow and the processing delay of the relay node. Delay period for business flow
Figure PCTCN2021116974-appb-000032
specified by the user. In order to provide delay guarantees, the latency between the source and destination's sending time points (including the relay node's processing delay) should be within the deadline.
其中,中继节点的处理时间约束
Figure PCTCN2021116974-appb-000033
描述为如下式所示。当且仅当不等式的右边等于零时,等式变为等号。并且这意味着流
Figure PCTCN2021116974-appb-000034
没有通过网络中的中继节点v r,并且中继节点的处理时间为零。
Among them, the processing time constraint of the relay node
Figure PCTCN2021116974-appb-000033
Described as shown in the following formula. An equality becomes an equal sign if and only if the right-hand side of the inequality equals zero. and this means that the stream
Figure PCTCN2021116974-appb-000034
There is no relay node v r in the network, and the processing time of the relay node is zero.
Figure PCTCN2021116974-appb-000035
Figure PCTCN2021116974-appb-000035
TT表示工控时间触发流,属于TSN主要调度的高优先级流。TT stands for industrial control time-triggered stream, which belongs to the high-priority stream mainly scheduled by TSN.
其中网络路由约束包括但不限于:起点约束、终点约束和中继节点约束。其中根据网络拓扑信息和链路状态信息,生成网络路由约束。首先,对于业务流中节点
Figure PCTCN2021116974-appb-000036
定义一个网络路由标识符:
The network routing constraints include, but are not limited to: starting point constraints, end point constraints, and relay node constraints. The network routing constraint is generated according to the network topology information and the link state information. First, for the nodes in the business flow
Figure PCTCN2021116974-appb-000036
Define a network route identifier:
Figure PCTCN2021116974-appb-000037
Figure PCTCN2021116974-appb-000037
表示为业务流中任意一段链路如果通过网络拓扑中的边[v i,v j],则网络路由标识符的值为1,如果业务流中任意一段链路不经过此[v i,v j],则为0。据此,网络路由的第一个约束起点约束表示为: If any link in the service flow passes through the edge [v i , v j ] in the network topology, the value of the network routing identifier is 1; if any link in the service flow does not pass through this [v i , v j ], it is 0. Accordingly, the first constraint origin constraint of network routing is expressed as:
Figure PCTCN2021116974-appb-000038
Figure PCTCN2021116974-appb-000038
此约束是保证在网路拓扑中节点v a始终处于链路的第一个传输节点,网络拓扑中不会有第二个节点先于节点v a来发送初始数据,意味着此点之前再有任何的节点与之相连的边被路由,用路由标识符写公式表述。 This constraint is to ensure that node v a is always the first transmission node of the link in the network topology, and there will be no second node in the network topology to send initial data before node v a , which means that before this point there is Any edge that a node is connected to is routed, formulated using a routing identifier.
为了确保节点v b是业务流链路的唯一终端节点,网络路由的第二个约束终点约束表示为: In order to ensure that node vb is the only terminal node of the traffic flow link, the second constraint endpoint constraint of network routing is expressed as:
Figure PCTCN2021116974-appb-000039
Figure PCTCN2021116974-appb-000039
在确保了起点与终点的约束后,基于本链式业务流多流级联的特性,存在一个中继节点,既是上一个子业务流的终点,又是下一个子业务流的起点,因此,网络路由的第三个约束中继节点约束表示为:After ensuring the constraints of the starting point and the ending point, based on the multi-flow cascading characteristics of this chained service flow, there is a relay node, which is not only the end point of the previous sub-service flow, but also the starting point of the next sub-service flow. Therefore, The third constraint for network routing, the relay node constraint, is expressed as:
Figure PCTCN2021116974-appb-000040
Figure PCTCN2021116974-appb-000040
通过上述约束条件,即可确保所规划的调度方案能够在绝大多数情况下在规定的时间内完成业务流的传输,从而保证了工业网络的时间确定性特性。Through the above constraints, it can be ensured that the planned scheduling scheme can complete the transmission of business flows within the specified time in most cases, thus ensuring the time-deterministic characteristics of the industrial network.
步骤S103:以时间确定性约束条件为前提生成业务流模型的业务流时隙调度方案。Step S103: Generate a service flow time slot scheduling scheme of the service flow model on the premise of time deterministic constraints.
具体地,利用解算器计算出业务流时隙调度方案,以调度工业网络中的链式业务流,业务流信息为解算器的输入,计算出所有可用的路径组,用户可根据不同的需求动态调整业务流信息。时间确定性约束条件为解算器的约束,其中解算器可采用但不限于SMT求解器、ILP求解器、OMT求解器等,从而解算出满足用户时间需求的时间确定性调度方案。解算器原理为现有技术,本申请实施例不再赘述。为了便于理解,可以将工业网络类比于交通道路网络,业务流类比于车辆,解算器类比于制定方案的交警,约束条件类比于交通规则(本申请实施例中的约束条件是业务流传输时的规范和需求属性),从而制定出一套满足交通规则的指挥方案。Specifically, the solver is used to calculate the service flow time slot scheduling scheme to schedule the chained service flow in the industrial network. The service flow information is the input of the solver, and all available path groups are calculated. It is required to dynamically adjust the business flow information. The time-deterministic constraints are the constraints of the solver. The solver can use but not limited to SMT solver, ILP solver, OMT solver, etc., so as to solve the time-deterministic scheduling scheme that meets the user's time requirements. The principle of the solver is the prior art, and will not be repeated in the embodiment of the present application. For ease of understanding, the industrial network can be compared to the traffic road network, the business flow can be compared to the vehicle, the solver can be compared to the traffic police who formulate the plan, and the constraints can be compared to the traffic rules (the constraints in the embodiment of this application are when the business flow is transmitted. specifications and demand attributes), so as to formulate a set of command schemes that meet the traffic rules.
具体地,在一实施例中,本申请实施例提供的一种链式业务流调度的规划方法,还包括如下步骤:Specifically, in one embodiment, a planning method for chained service flow scheduling provided by the embodiment of the present application further includes the following steps:
步骤S104:获取优化目标函数,并将优化目标函数在解算前与解算器相匹配;Step S104: Obtain the optimization objective function, and match the optimization objective function with the solver before solving;
步骤S105:根据优化目标函数的优化目标进行解算,生成在所有满足约束条件的业务流时隙调度方案中的最优方案。Step S105: Perform calculation according to the optimization objective of the optimization objective function, and generate an optimal solution among all service flow time slot scheduling schemes satisfying the constraints.
具体地,优化目标函数一般是用户最优需求的目标,主要体现在丢包率、带宽利用率,网络可调度性等网络性能方面的优化。通过设置优化函数,可以筛选出S102至S103步骤中所有生成的时间确定性调度方案中最优的方案,并且将优化目标函数添加到解算器的解算过程中,可以根据优化目标减少大量的计算时间,从而提高规划调度方案的效率。本申请将优化目标函数选为最小化带宽占用率,B为链路带宽,通过使用最少带宽完成业务流调度,以节省链路带宽资源,提高业务流的可调度性。优化目标函数如下所示;Specifically, the optimization objective function is generally the goal of the user's optimal demand, which is mainly reflected in the optimization of network performance such as packet loss rate, bandwidth utilization rate, and network schedulability. By setting the optimization function, the optimal scheme among all the time-deterministic scheduling schemes generated in steps S102 to S103 can be screened out, and the optimization objective function can be added to the solving process of the solver, which can reduce a large amount of time according to the optimization objective. Calculation time, thereby improving the efficiency of planning and scheduling schemes. In this application, the optimization objective function is selected as the minimum bandwidth occupancy rate, B is the link bandwidth, and the service flow scheduling is completed by using the minimum bandwidth to save link bandwidth resources and improve the schedulability of the service flow. The optimization objective function is as follows;
Figure PCTCN2021116974-appb-000041
Figure PCTCN2021116974-appb-000041
通过执行上述各个步骤,本申请实施例提供的一种链式业务流调度的规划方法:首先确定需要在工业网络中进行传输业务流,以及与其相关的信息。之后根据工业网络的网络拓扑结构和网络状态信息确定工业网络的具体网络架构。从而根据业务流信息与网络架构构建业务流模型,以业务流模型确定出制定调度方案的时间确定性约束条件,从而通过约束条件使得制定的调度方案满足网络的时间确定性。最后以业务流信息为解算器输入,时间确定性约束条件为解算器的解算指标,解算出能够在规定时间内完成业务流传输的调度方案。进一步地通过制定目标函数来对解算器的解算过程进行优化,得到最优的调度方案,能够减少调度占用资源和/或提高调度效率,进一步提升了本申请规划的调度方案的可调度性。生成的调度方案完成了对工业网络业务流在规定时间内的整体调度,克服了TSN调度业务困难复杂,以及单个调度业务流可能产生不良影响的问题。By performing the above steps, the embodiment of the present application provides a chained service flow scheduling planning method: firstly, determine the service flow that needs to be transmitted in the industrial network, and its related information. Then determine the specific network architecture of the industrial network according to the network topology and network status information of the industrial network. In this way, the business flow model is constructed according to the business flow information and the network architecture, and the time deterministic constraint conditions for formulating the scheduling scheme are determined by the business flow model, so that the formulated scheduling scheme meets the time determinism of the network through the constraints. Finally, taking the business flow information as the input of the solver, and the time deterministic constraints as the calculation index of the solver, the scheduling scheme that can complete the business flow transmission within the specified time is calculated. Further optimize the solving process of the solver by formulating the objective function to obtain the optimal scheduling scheme, which can reduce the resources occupied by scheduling and/or improve the scheduling efficiency, and further improve the schedulability of the scheduling scheme planned by this application . The generated scheduling scheme completes the overall scheduling of industrial network business flows within a specified time, and overcomes the difficulty and complexity of TSN scheduling business, and the problem that a single scheduling business flow may have adverse effects.
如图3所示,本实施例还提供了一种链式业务流调度的系统架构,该系统包括:As shown in Figure 3, this embodiment also provides a system architecture for chained service flow scheduling, the system includes:
信息采集模块101,获取工业网络的网络架构信息,以及在工业网络中传输的业务流信息,以根据网络架构信息和业务流信息构建业务流模型,业务流信息至少包含用于表示业务流及其子业务流的逻辑关联关系。详细内容参见上述方法实施例中步骤S101的相关描述,在此不再进行赘述。The information collection module 101 acquires the network architecture information of the industrial network and the business flow information transmitted in the industrial network to construct a business flow model according to the network architecture information and business flow information. The business flow information includes at least Logical relationship of sub-business flows. For details, refer to the relevant description of step S101 in the above method embodiment, and details are not repeated here.
约束模块102,利用业务流模型中的信息的约束条件生成工业网络的时间确定性约束条件。详细内容参见上述方法实施例中步骤S102的相关描述,在此不再进行赘述。The constraint module 102 generates a time-deterministic constraint condition of the industrial network by using the constraint condition of the information in the service flow model. For details, refer to the relevant description of step S102 in the above method embodiment, and details are not repeated here.
解算模块103,利用解算器得到以时间确定性约束条件为前提的业务流模型的业务流时隙调度方案。详细内容参见上述方法实施例中步骤S103的相关描述,在此不再进行赘述。The solution module 103 uses a solver to obtain a service flow time slot scheduling scheme of a service flow model premised on time deterministic constraints. For details, refer to the relevant description of step S103 in the above method embodiment, and details are not repeated here.
本申请实施例提供的一种链式业务流调度的系统架构,用于执行上述实施例提供的一种链式业务流调度的规划方法,其实现方式与原理相同,详细内容参见上述方法实施例的相关描述,不再赘述。The system architecture for chained service flow scheduling provided by the embodiment of the present application is used to implement the planning method for chained service flow scheduling provided in the above embodiment. The implementation method is the same as the principle. For details, refer to the above method embodiment The relevant descriptions will not be repeated here.
通过上述各个组成部分的协同合作,本申请实施例提供的一种链式业务流调度的系统架构:首先确定需要在工业网络中进行传输业务流,以及与其相关的信息。之后根据工业网络的网络拓扑结构和网络状态信息确定工业网络的具体网络架构。从而根据业务流信息与网络架构构建业务流模型,以业务流模型确定出制定调度方案的时间确定性约束条件,从而通过约束条件使得制定的调度方案满足网络的时间确定性。最后以业务流信息为解算器输入,时间确定性约束条件为解算器的解算指标,解算出能够在规定时间内完成业务流传输的调度方 案。进一步地通过制定目标函数来对解算器的解算过程进行优化,得到最优的调度方案,能够减少调度占用资源和/或提高调度效率,进一步提升了本申请规划的调度方案的可调度性。生成的调度方案完成了对工业网络业务流在规定时间内的整体调度,克服了TSN调度业务困难复杂,以及单个调度业务流可能产生不良影响的问题。Through the cooperation of the above-mentioned components, the embodiment of the present application provides a chained service flow scheduling system architecture: first, determine the service flow that needs to be transmitted in the industrial network, and its related information. Then determine the specific network architecture of the industrial network according to the network topology and network status information of the industrial network. In this way, the business flow model is constructed according to the business flow information and the network architecture, and the time deterministic constraint conditions for formulating the scheduling scheme are determined by the business flow model, so that the formulated scheduling scheme meets the time determinism of the network through the constraints. Finally, taking the business flow information as the input of the solver, and the time deterministic constraints as the solving index of the solver, the scheduling scheme that can complete the business flow transmission within the specified time is calculated. Further optimize the solving process of the solver by formulating the objective function to obtain the optimal scheduling scheme, which can reduce the resources occupied by scheduling and/or improve the scheduling efficiency, and further improve the schedulability of the scheduling scheme planned by this application . The generated scheduling scheme completes the overall scheduling of industrial network business flows within a specified time, and overcomes the difficulty and complexity of TSN scheduling business, and the problem that a single scheduling business flow may have adverse effects.
图4示出了本申请实施例的一种电子设备,该设备包括:处理器901和存储器902,可以通过总线或者其他方式连接,图4中以通过总线连接为例。FIG. 4 shows an electronic device according to an embodiment of the present application. The device includes: a processor 901 and a memory 902, which may be connected through a bus or in other ways. In FIG. 4, the connection through a bus is taken as an example.
处理器901可以为中央处理器(Central Processing Unit,CPU)。处理器901还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。The processor 901 may be a central processing unit (Central Processing Unit, CPU). The processor 901 can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate array (Field-Programmable Gate Array, FPGA) or Other chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above-mentioned types of chips.
存储器902作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如上述方法实施例中的方法所对应的程序指令/模块。处理器901通过运行存储在存储器902中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及数据处理,即实现上述方法实施例中的方法。The memory 902, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules corresponding to the methods in the above method embodiments. The processor 901 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above method embodiments.
存储器902可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器901所创建的数据等。此外,存储器902可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器902可选包括相对于处理器901远程设置的存储器,这些远程存储器可以通过网络连接至处理器901。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created by the processor 901 and the like. In addition, the memory 902 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the storage 902 may optionally include storages that are remotely located relative to the processor 901, and these remote storages may be connected to the processor 901 through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
一个或者多个模块存储在存储器902中,当被处理器901执行时,执行上述方法实施例中的方法。One or more modules are stored in the memory 902, and when executed by the processor 901, the methods in the foregoing method embodiments are executed.
上述电子设备具体细节可以对应参阅上述方法实施例中对应的相关描述和效果进行理解,此处不再赘述。Specific details of the foregoing electronic device may be understood by correspondingly referring to corresponding relevant descriptions and effects in the foregoing method embodiments, and details are not repeated here.
本领域技术人员可以理解,实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,实现的程序可存储于一计算机可读取存储介质中,该程序 在执行时,可包括如上述各方法的实施例的流程。其中,存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random Access Memory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;存储介质还可以包括上述种类的存储器的组合。Those skilled in the art can understand that realizing all or part of the processes in the methods of the above embodiments can be completed by instructing related hardware through computer programs, and the implemented programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium can be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive) , abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memory.
虽然结合附图描述了本申请的实施例,但是本领域技术人员可以在不脱离本申请的精神和范围的情况下作出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiment of the application has been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the application, and such modifications and variations all fall into the scope defined by the appended claims. within the limited range.

Claims (10)

  1. 一种链式业务流调度的规划方法,其特征在于,所述方法包括:A planning method for chained service flow scheduling, characterized in that the method comprises:
    获取工业网络的网络架构信息,以及在所述工业网络中传输的业务流信息,以根据所述网络架构信息和所述业务流信息构建业务流模型,所述业务流信息至少包含用于表示所述业务流及其子业务流的逻辑关联关系;Acquiring the network architecture information of the industrial network and the service flow information transmitted in the industrial network, so as to construct a service flow model according to the network architecture information and the service flow information, the service flow information at least including the Describe the logical relationship between the business flow and its sub-business flows;
    利用所述业务流模型中信息的约束条件生成所述工业网络的时间确定性约束条件;generating time-deterministic constraints of the industrial network using constraints of information in the business flow model;
    以所述时间确定性约束条件为前提生成所述业务流模型的业务流时隙调度方案。A service flow time slot scheduling scheme of the service flow model is generated on the premise of the time deterministic constraint condition.
  2. 根据权利要求1所述的方法,其特征在于,利用所述业务流模型中的信息的约束条件生成所述工业网络的时间确定性约束条件,包括:The method according to claim 1, wherein the time-deterministic constraints of the industrial network are generated using constraints of information in the business flow model, including:
    获取至少包含链式业务流帧时隙约束、网络路由约束、业务流时延需求约束、中继节点的处理时间约束的约束集合,所述约束集合即为所述时间确定性约束条件。Obtain a constraint set including at least chained service flow frame time slot constraints, network routing constraints, service flow delay requirement constraints, and relay node processing time constraints, and the constraint set is the time deterministic constraint condition.
  3. 根据权利要求2所述的方法,其特征在于,所述网络路由约束为至少包括起点约束、终点约束和中继节点约束的约束集合。The method according to claim 2, wherein the network routing constraint is a constraint set including at least a start point constraint, an end point constraint and a relay node constraint.
  4. 根据权利要求2所述的方法,其特征在于,所述链式业务流帧时隙约束、所述业务流时延需求约束、所述中继节点的处理时间约束的表达式如下:The method according to claim 2, wherein the expressions of the chained service flow frame time slot constraint, the service flow delay requirement constraint, and the processing time constraint of the relay node are as follows:
    其中,所述链式业务流帧时隙约束表达式如下:Wherein, the frame time slot constraint expression of the chained service flow is as follows:
    Figure PCTCN2021116974-appb-100001
    Figure PCTCN2021116974-appb-100001
    t vi.start-t vi-1.start≥T trans+T propa+T handle t vi.start -t vi-1.start ≥T trans +T propa +T handle
    Figure PCTCN2021116974-appb-100002
    Figure PCTCN2021116974-appb-100002
    式中v a和v b分别表示一个业务流的流转的两个终端,v i表示一个业务流中的中继节点,
    Figure PCTCN2021116974-appb-100003
    表示一个业务流,F表示全业务流,ε表示网络边,t vi.start和t vi-1.start分别表示一个业务流中的两个相邻节点,T trans、T propa和T handle分别表示数据帧传输时延、交换机处理时延和网口排队时延,T delay.max表示总时延;
    In the formula, v a and v b respectively represent two terminals of a service flow transfer, v i represents a relay node in a service flow,
    Figure PCTCN2021116974-appb-100003
    Indicates a service flow, F indicates the full service flow, ε indicates the network edge, t vi.start and t vi-1.start respectively indicate two adjacent nodes in a service flow, T trans , T propa and T handle respectively indicate Data frame transmission delay, switch processing delay and network port queuing delay, T delay.max represents the total delay;
    其中,所述业务流时延需求约束表达式如下:Wherein, the service flow delay requirement constraint expression is as follows:
    Figure PCTCN2021116974-appb-100004
    Figure PCTCN2021116974-appb-100004
    式中
    Figure PCTCN2021116974-appb-100005
    表示网络路由标识符,
    Figure PCTCN2021116974-appb-100006
    表示业务流的延迟期限,v r表示业务流两个终端中的中继节点,
    Figure PCTCN2021116974-appb-100007
    表示子业务流之间的时间延迟占总延迟要求的比例,
    Figure PCTCN2021116974-appb-100008
    表示两个子业务流之间的处理时延,其中
    Figure PCTCN2021116974-appb-100009
    Figure PCTCN2021116974-appb-100010
    分别表示业务流
    Figure PCTCN2021116974-appb-100011
    的两个子业务流;
    In the formula
    Figure PCTCN2021116974-appb-100005
    Indicates the network route identifier,
    Figure PCTCN2021116974-appb-100006
    Indicates the delay period of the service flow, v r indicates the relay node in the two terminals of the service flow,
    Figure PCTCN2021116974-appb-100007
    Indicates the proportion of the time delay between sub-service flows to the total delay requirement,
    Figure PCTCN2021116974-appb-100008
    Indicates the processing delay between two sub-service flows, where
    Figure PCTCN2021116974-appb-100009
    and
    Figure PCTCN2021116974-appb-100010
    Represent business flow
    Figure PCTCN2021116974-appb-100011
    The two sub-traffic flows of ;
    其中,所述中继节点的处理时间约束表达式如下:Wherein, the processing time constraint expression of the relay node is as follows:
    Figure PCTCN2021116974-appb-100012
    Figure PCTCN2021116974-appb-100012
    Figure PCTCN2021116974-appb-100013
    Figure PCTCN2021116974-appb-100013
    式中,
    Figure PCTCN2021116974-appb-100014
    表示两个子业务流之间的处理时延,P i表示流优先级,n表示业务流个数,
    Figure PCTCN2021116974-appb-100015
    表示两个子业务流之间的时间延迟占总延迟要求的比例,
    Figure PCTCN2021116974-appb-100016
    表示网络路由标识符,TT是工控时间触发流。
    In the formula,
    Figure PCTCN2021116974-appb-100014
    Indicates the processing delay between two sub-service flows, P i indicates the flow priority, n indicates the number of service flows,
    Figure PCTCN2021116974-appb-100015
    Indicates the ratio of the time delay between two sub-service flows to the total delay requirement,
    Figure PCTCN2021116974-appb-100016
    Indicates the network routing identifier, and TT is the industrial control time-triggered flow.
  5. 根据权利要求3所述的方法,其特征在于,所述起点约束、终点约束和中继节点约束的表达式如下:The method according to claim 3, wherein the expressions of the starting point constraint, the end point constraint and the relay node constraint are as follows:
    其中,起点约束表达式为:Among them, the origin constraint expression is:
    Figure PCTCN2021116974-appb-100017
    Figure PCTCN2021116974-appb-100017
    Figure PCTCN2021116974-appb-100018
    Figure PCTCN2021116974-appb-100018
    Figure PCTCN2021116974-appb-100019
    Figure PCTCN2021116974-appb-100019
    其中,终点约束表达式为:Among them, the end point constraint expression is:
    Figure PCTCN2021116974-appb-100020
    Figure PCTCN2021116974-appb-100020
    Figure PCTCN2021116974-appb-100021
    Figure PCTCN2021116974-appb-100021
    其中,中继节点约束表达式为:Among them, the relay node constraint expression is:
    Figure PCTCN2021116974-appb-100022
    Figure PCTCN2021116974-appb-100022
    Figure PCTCN2021116974-appb-100023
    Figure PCTCN2021116974-appb-100023
    Figure PCTCN2021116974-appb-100024
    Figure PCTCN2021116974-appb-100024
    式中,TT是工控时间触发流,v a和v b分别表示业物流的起点和终点,v i、v j和v r分别表示一个业务流中的中继节点,f ()表示业务流,rel表示两个子业务流之间的时间延迟占总延迟要求的比例,
    Figure PCTCN2021116974-appb-100025
    表示网络路由标识符。
    In the formula, TT is the time-triggered flow of industrial control, v a and v b represent the starting point and end point of the business flow respectively, v i , v j and v r respectively represent the relay nodes in a business flow, f () represents the business flow, rel indicates the ratio of the time delay between two sub-service flows to the total delay requirement,
    Figure PCTCN2021116974-appb-100025
    Represents a network route identifier.
  6. 根据权利要求1所述的方法,其特征在于,以所述时间确定性约束条件为前提生成所述业务流模型的业务流时隙调度方案,包括:The method according to claim 1, wherein generating the service flow time slot scheduling scheme of the service flow model on the premise of the time deterministic constraint condition includes:
    以所述业务流信息为解算器的输入,所述时间确定性约束条件为解算器的约束,通过解算器解算出所有满足约束条件的所述业务流时隙调度方案。Taking the service flow information as the input of the solver, the time deterministic constraint condition as the constraint of the solver, and calculating all the time slot scheduling schemes of the service flow satisfying the constraint condition through the solver.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, further comprising:
    获取优化目标函数,并将所述优化目标函数在解算前与所述解算器相匹配;obtaining an optimization objective function, and matching the optimization objective function with the solver before solving;
    根据所述优化目标函数的优化目标进行解算,生成在所有满足约束条件的所述业务流时隙调度方案中的最优方案。Solving is performed according to the optimization objective of the optimization objective function, and an optimal solution among all the service flow time slot scheduling schemes satisfying the constraint conditions is generated.
  8. 根据权利要求1所述的方法,其特征在于,所述逻辑关联关系使用流关联标识REL i表示,其表达式为: The method according to claim 1, wherein the logical association relationship is represented by a flow association identifier REL i , and its expression is:
    Figure PCTCN2021116974-appb-100026
    Figure PCTCN2021116974-appb-100026
    其中,f i,f j代表两个不同的子业务流,
    Figure PCTCN2021116974-appb-100027
    表示子业务流之间的时间延迟占总延迟要求的比例,
    Figure PCTCN2021116974-appb-100028
    表示两个子业务流之间的处理时延;
    Among them, f i and f j represent two different sub-service flows,
    Figure PCTCN2021116974-appb-100027
    Indicates the proportion of the time delay between sub-service flows to the total delay requirement,
    Figure PCTCN2021116974-appb-100028
    Indicates the processing delay between two sub-service flows;
    其中,
    Figure PCTCN2021116974-appb-100029
    in,
    Figure PCTCN2021116974-appb-100029
    k表示比例值,TT是工控时间触发流;k represents the proportional value, and TT is the trigger flow of industrial control time;
    其中,
    Figure PCTCN2021116974-appb-100030
    in,
    Figure PCTCN2021116974-appb-100030
    P i表示流优先级,n表示业务流个数。 P i represents the flow priority, and n represents the number of service flows.
  9. 一种链式业务流调度的系统架构,其特征在于,所述系统架构包括:A system architecture for chained business flow scheduling, characterized in that the system architecture includes:
    信息采集模块,获取工业网络的网络架构信息,以及在所述工业网络中传输的业务流信息,以根据所述网络架构信息和所述业务流信息构建业务流模型,所述业务流信息至少包含用于表示所述业务流及其子业务流的逻辑关联关系;The information collection module acquires the network architecture information of the industrial network and the business flow information transmitted in the industrial network, so as to construct a business flow model according to the network architecture information and the business flow information, and the business flow information includes at least Used to represent the logical relationship between the business flow and its sub-service flows;
    约束模块,利用所述业务流模型中的信息的约束条件生成所述工业网络的时间确定性约束条件;A constraint module, which uses constraints of information in the business flow model to generate time-deterministic constraints of the industrial network;
    解算模块,以所述时间确定性约束条件为前提生成所述业务流模型的业务流时隙调度方案。The calculation module generates the service flow time slot scheduling scheme of the service flow model on the premise of the time deterministic constraint condition.
  10. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而执行如权利要求1至8任一项所述的 方法。A memory and a processor, the memory and the processor are connected in communication with each other, computer instructions are stored in the memory, and the processor executes the computer instructions to perform any one of claims 1 to 8 the method described.
PCT/CN2021/116974 2021-08-10 2021-09-07 Planning method and system architecture for scheduling of chained service flow WO2023015644A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110916707.7A CN113765825B (en) 2021-08-10 2021-08-10 Planning method and system architecture for chained service flow scheduling
CN202110916707.7 2021-08-10

Publications (1)

Publication Number Publication Date
WO2023015644A1 true WO2023015644A1 (en) 2023-02-16

Family

ID=78788947

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/116974 WO2023015644A1 (en) 2021-08-10 2021-09-07 Planning method and system architecture for scheduling of chained service flow

Country Status (2)

Country Link
CN (1) CN113765825B (en)
WO (1) WO2023015644A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116011792A (en) * 2023-02-21 2023-04-25 中国人民解放军国防科技大学 Task time logic constraint reasoning method and device based on constraint hierarchical network

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114501510A (en) * 2022-01-26 2022-05-13 华为技术有限公司 Communication method and communication device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302330A1 (en) * 2017-04-12 2018-10-18 General Electric Company Time sensitive network (tsn) scheduler with verification
CN108809707A (en) * 2018-05-30 2018-11-13 浙江理工大学 A kind of TSN dispatching methods towards real-time application demand
WO2020165243A1 (en) * 2019-02-12 2020-08-20 Hirschmann Automation And Control Gmbh Method for routing in time-sensitive networks
CN112866028A (en) * 2021-01-20 2021-05-28 重庆邮电大学 Time slot allocation method for satellite time-sensitive network with wired and wireless integration

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10291416B2 (en) * 2014-05-15 2019-05-14 Hewlett Packard Enterprise Development Lp Network traffic tuning
CN111030835B (en) * 2019-10-23 2022-08-09 东南大学 Task scheduling model of TTFC network and message scheduling table generation method
CN113032938B (en) * 2021-03-26 2022-07-08 北京邮电大学 Time-sensitive flow routing scheduling method, device, electronic equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180302330A1 (en) * 2017-04-12 2018-10-18 General Electric Company Time sensitive network (tsn) scheduler with verification
CN108809707A (en) * 2018-05-30 2018-11-13 浙江理工大学 A kind of TSN dispatching methods towards real-time application demand
WO2020165243A1 (en) * 2019-02-12 2020-08-20 Hirschmann Automation And Control Gmbh Method for routing in time-sensitive networks
CN112866028A (en) * 2021-01-20 2021-05-28 重庆邮电大学 Time slot allocation method for satellite time-sensitive network with wired and wireless integration

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
REN JIE, YANG DONG, CUI ENFANG, GONG KAI: "An Analytical Latency Model for AVB Traffic in TSN Considering Time-Triggered Traffic", 2020 IEEE 20TH INTERNATIONAL CONFERENCE ON COMMUNICATION TECHNOLOGY (ICCT), IEEE, 28 October 2020 (2020-10-28) - 31 October 2020 (2020-10-31), pages 938 - 943, XP055969042, ISBN: 978-1-7281-8141-7, DOI: 10.1109/ICCT50939.2020.9295841 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116011792A (en) * 2023-02-21 2023-04-25 中国人民解放军国防科技大学 Task time logic constraint reasoning method and device based on constraint hierarchical network
CN116011792B (en) * 2023-02-21 2023-06-27 中国人民解放军国防科技大学 Task time logic constraint reasoning method and device based on constraint hierarchical network

Also Published As

Publication number Publication date
CN113765825A (en) 2021-12-07
CN113765825B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN108965171B (en) Industrial wireless WIA-PA network and time sensitive network conversion method and device
CN111030835B (en) Task scheduling model of TTFC network and message scheduling table generation method
WO2023015644A1 (en) Planning method and system architecture for scheduling of chained service flow
CN110545241B (en) Message processing method and device
CN107204867A (en) A kind of information transferring method, device and system
AU2008333190B2 (en) Method of forwarding messages over a network and system for implementing the method
WO2020164229A1 (en) Network topology abstraction method and system of flexible ethernet for sdn controller
WO2014187369A1 (en) Method and apparatus for processing time synchronization
WO2023093727A1 (en) Data transmission method and system for time-sensitive network
WO2021227947A1 (en) Network control method and device
CN114374647B (en) Planning method and device for time-sensitive service flow and route combined scheduling
KR102271639B1 (en) Method and device for modular orientation of AVB streams
WO2012119372A1 (en) Message processing method, device and system
CN110290069B (en) Reliable multicast routing method in SDN scene
WO2016150020A1 (en) Scheduling flow identifier-based packet scheduling method and device
CN110838935B (en) High-availability SDN controller clustering method, system, storage medium and equipment
CN112039746B (en) Industrial control network system
EP3020163B1 (en) Interworking between first protocol entity of stream reservation protocol and second protocol entity of routing protocol
CN112688812B (en) Reliability perception time-sensitive network routing method applied to power data transmission
CN113438218A (en) Communication method and device based on SOME/IP protocol, storage medium and terminal
CN115037399A (en) Message forwarding method, electronic device and storage medium
TWI323998B (en) Method and system for optimizing the design of a network controller
WO2023207628A1 (en) Packet transmission method and packet forwarding device
WO2023216726A1 (en) Various network transmission methods and devices related thereto
WO2023273788A1 (en) Data processing method and related apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21953253

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE