WO2023044673A1 - Method and apparatus for deploying industrial edge application, and computer-readable storage medium - Google Patents

Method and apparatus for deploying industrial edge application, and computer-readable storage medium Download PDF

Info

Publication number
WO2023044673A1
WO2023044673A1 PCT/CN2021/119970 CN2021119970W WO2023044673A1 WO 2023044673 A1 WO2023044673 A1 WO 2023044673A1 CN 2021119970 W CN2021119970 W CN 2021119970W WO 2023044673 A1 WO2023044673 A1 WO 2023044673A1
Authority
WO
WIPO (PCT)
Prior art keywords
industrial edge
edge device
industrial
label
component module
Prior art date
Application number
PCT/CN2021/119970
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 西门子股份公司
Priority to PCT/CN2021/119970 priority Critical patent/WO2023044673A1/en
Publication of WO2023044673A1 publication Critical patent/WO2023044673A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Definitions

  • the present invention relates to the technical field of industrial edge computing, in particular to a method, device and computer-readable storage medium for deploying industrial edge applications.
  • Edge computing refers to an open platform that integrates network, computing, storage, and application core capabilities on the side close to the source of objects or data, and provides the nearest end services. Its applications are launched on the edge side to generate faster network service responses and meet the basic needs of the industry in terms of real-time business, application intelligence, security and privacy protection.
  • Edge computing has achieved many applications in the industrial field.
  • Industrial edge computing has its own characteristics. When applying edge computing in the industrial field, some new challenges are faced. It may need to deal with different types of fieldbus, real-time response, near real-time response, high requirements on reliability, etc.
  • industrial edge applications may be more related to data providers/consumers (e.g., programmable logic controllers or industrial field devices) and industrial attributes/capabilities of edge computing devices.
  • industrial edge applications are designed to process real-time data for loop control and provide real-time results. Real-time capabilities and real-time network connectivity need to be provided to edge devices.
  • Embodiments of the present invention provide a method, device, and computer-readable storage medium for deploying industrial edge applications.
  • a method of deploying an industrial edge application comprising:
  • the embodiment of the present invention determines the specific industrial edge device for deploying the component modules based on the relationship between the capability of the industrial edge device and the deployment requirements of the component modules, thereby ensuring the effective operation of the application.
  • the acquiring the first tag of each industrial edge device includes:
  • the first label is determined by each industrial edge device based on a capability self-check process, or the first label is determined by querying a capability parameter table of each industrial edge device.
  • the embodiment of the present invention determines the first label in various ways. Moreover, including the first tag in the registration request avoids repeated transmission process and is also beneficial to device management.
  • determining each industrial edge device where each component module is deployed includes:
  • the embodiment of the present invention deploys the industrial edge devices constituting the modules in a list manner, which facilitates automation.
  • determining the industrial edge device to deploy the component module from the list of candidate industrial edge devices includes:
  • the candidate industrial edge device with the smallest load is determined as the industrial edge device deploying the constituent modules.
  • the load status of the industrial edge equipment is also considered in the process of determining the deployment of the component modules, so as to ensure the good operation of the application.
  • the second registration request including a third tag describing the capability of the component module
  • the embodiment of the present invention can further provide the capability of the component modules deployed in the industrial edge device to other industrial edge devices, so as to realize the capability sharing of the component modules.
  • the capabilities of the industrial edge device include at least one of the following:
  • An apparatus for deploying industrial edge applications comprising:
  • a first acquisition module configured to acquire a first label of each industrial edge device, wherein the first label describes the capability of each industrial edge device
  • the second acquisition module is configured to acquire a second label of each component module of the industrial edge application, wherein the second label describes the deployment requirements of each component module;
  • a determining module configured to determine an industrial edge device to deploy each component module based on the relationship between the capability described by the first label and the deployment requirement described by the second label.
  • the embodiment of the present invention determines the specific industrial edge device for deploying the component modules based on the relationship between the capability of the industrial edge device and the deployment requirements of the component modules, thereby ensuring the effective operation of the application.
  • the first acquiring module is configured to receive a first registration request of each industrial edge device, and the first registration request includes the first label; wherein the first label is the Each industrial edge device is determined based on a capability self-check process, or the first label is determined by querying a capability parameter table of each industrial edge device.
  • the embodiment of the present invention determines the first label in various ways. Moreover, including the first tag in the registration request avoids repeated transmission process and is also beneficial to device management.
  • the determination module is configured to determine whether the capability of the industrial edge device described by the first label meets the deployment requirements of the component modules described by the second label, and if so, determine the industrial edge device as compatible Candidate industrial edge devices for deploying the component modules; if not, do not determine the industrial edge devices as the candidate industrial edge devices; generate an industrial edge device list containing all candidate industrial edge devices; from the candidate industrial edge devices The industrial edge device on which the component modules are deployed is determined in the edge device list.
  • the determination module is configured to determine the candidate industrial edge device with the smallest load from the candidate industrial edge device list; determine the candidate industrial edge device with the smallest load as the industrial edge device where the component module is deployed edge device.
  • the load status of the industrial edge equipment is also considered in the process of determining the deployment of the component modules, so as to ensure the good operation of the application.
  • the first acquisition module is further configured to receive a second registration request from the industrial edge device where the component module is deployed, and the second registration request includes the first information describing the capability of the component module.
  • the determination module is also used to send the third label and the interface address for accessing the component module to other industrial edge devices except the industrial edge device where the component module is deployed, so that when the When the other industrial edge devices need to obtain the capability of the component module, they access the component module based on the interface address.
  • the embodiment of the present invention further provides the capability of the component modules deployed in the industrial edge device to other industrial edge devices, so as to realize the capability sharing of the component modules.
  • An apparatus for deploying an industrial edge application comprising a processor and a memory
  • An application program that can be executed by the processor is stored in the memory, which is used to make the processor execute the method for deploying an industrial edge application as described in any one of the above.
  • a computer-readable storage medium in which computer-readable instructions are stored, and the computer-readable instructions are used to execute the method for deploying industrial edge applications as described in any one of the above.
  • Fig. 1 is a flowchart of a method for deploying industrial edge applications according to an embodiment of the present invention.
  • Fig. 2 is a topology diagram of deploying industrial edge applications according to an embodiment of the present invention.
  • Fig. 3 is a schematic diagram of deploying industrial edge applications according to an embodiment of the present invention.
  • Fig. 4 is a structural diagram of a device for deploying industrial edge applications according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of a device for deploying industrial edge applications with a processor-memory architecture according to an embodiment of the present invention.
  • Fig. 1 is a flowchart of a method for deploying industrial edge applications according to an embodiment of the present invention.
  • the method 100 can be executed by a central node connected to multiple industrial edge devices.
  • the method 100 includes:
  • Step 101 Obtain a first label of each industrial edge device, where the first label describes the capability of each industrial edge device.
  • industrial edge devices can include smart devices on the industrial site, such as transmitters, programmable logic controllers (PLCs), and programmable automation controllers (PACs), as well as devices that connect various network components or bridge different networks.
  • PLCs programmable logic controllers
  • PACs programmable automation controllers
  • Edge gateways such as protocol converters, routers and industrial PCs, etc.
  • the central node may receive the first registration request of each industrial edge device from the industrial edge device.
  • Each first registration request includes a first label of the industrial edge device sending the first registration request, wherein the first label describes the capability of the industrial edge device.
  • the first label is determined by each industrial edge device based on a capability self-check process, or the first label is determined by each industrial edge device querying a capability parameter table stored in a third-party database.
  • the central node is connected to five industrial edge devices, which are industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5.
  • the industrial edge device 1 , the industrial edge device 2 , the industrial edge device 3 , the industrial edge device 4 and the industrial edge device 5 respectively send respective first registration requests to the central node.
  • the first registration request sent by the industrial edge device 1 contains the first label describing the capability of the industrial edge device 1;
  • the first registration request sent by the industrial edge device 2 contains the first label describing the capability of the industrial edge device 2;
  • the first registration request sent by the industrial edge device 3 contains the first label describing the capability of the industrial edge device 3;
  • the first registration request sent by the industrial edge device 4 contains the first label describing the capability of the industrial edge device 4;
  • the first registration request sent by the device 5 includes a first label describing the capabilities of the industrial edge device 5 .
  • the capability of the industrial edge device includes: hardware capability of the industrial edge device; software capability of the industrial edge device; firmware capability of the industrial edge device; operating system capability of the industrial edge device, and so on.
  • the capabilities of industrial edge devices can include: capabilities about CPUs (such as the number of cores, frequency, RISC, etc.), capabilities about RAM (such as capacity or ECC), capabilities about network cards (such as speed), Capabilities on real-time operating systems (e.g., CPU core isolation or Linux rt-patch), capabilities on real-time networks (e.g., TSN), capabilities on industrial fieldbuses/protocols (e.g., PROFINET or OPC UA, etc.) or About high availability capabilities (such as UPS), and so on.
  • CPUs such as the number of cores, frequency, RISC, etc.
  • RAM such as capacity or ECC
  • network cards such as speed
  • Capabilities on real-time operating systems e.g., CPU core isolation or Linux rt-patch
  • Step 102 Obtain a second label of each component module in the industrial edge application to be deployed, where the second label describes the deployment requirement of each component module.
  • the industrial edge application to be deployed is divided into multiple constituent modules.
  • the industrial edge application to be deployed can be divided into multiple component modules based on various module division methods such as functional division, hierarchical division, professional division, and demand division.
  • the constituent modules can be specifically implemented as microservices.
  • Each component service in the microservice architecture can be developed, deployed, operated, and expanded without affecting the functionality of other services. These services do not need to share any code or implementation with other services. Communication between the various components is done through well-defined APIs.
  • the central node may obtain the second label of each component module from sources such as the provider of the industrial edge application, where each second label describes the deployment requirement of the corresponding component module.
  • sources such as the provider of the industrial edge application
  • each second label describes the deployment requirement of the corresponding component module.
  • the requirements for the communication protocol between the components can be further described in the second label, such as HTTP-based RESTful, Remote Procedure Call (Remote Procedure Call, RPC) or communication services based on Message Queuing Telemetry Transport (MQTT), etc.
  • MQTT Message Queuing Telemetry Transport
  • industrial edge devices usually have the ability to support communication protocols between constituent modules.
  • the industrial edge application is divided into four components, namely component module 1, component module 2, component module 3 and component module 4.
  • the provider of the industrial edge application (for example, the developer) sends (for example, through the interactive interface of the central node) the first component of each component module in the component module 1, component module 2, component module 3 and component module 4 Two tabs.
  • the second label of each component module describes the capability requirement of the corresponding component module for the industrial edge device to be deployed.
  • the second label of component module 1 describes the capabilities required to deploy the industrial edge equipment of component module 1; the second label of component module 2 describes the capabilities required for the deployment of component module 2; the second label of component module 3 The label describes the capabilities required for the deployment of the industrial edge device of the component module 3; the second label of the component module 4 describes the capabilities required for the deployment of the industrial edge device of the component module 4.
  • the deployment requirements may include: requirements for hardware capabilities of industrial edge devices; requirements for software capabilities of industrial edge devices; requirements for firmware capabilities of industrial edge devices; requirements for operating system capabilities of industrial edge devices, and so on.
  • the capabilities of industrial edge devices can include: capabilities about CPUs (such as the number of cores, frequency, RISC, etc.), capabilities about RAM (such as capacity or ECC), capabilities about network cards (such as speed), Capabilities on real-time operating systems (e.g., CPU core isolation or Linux rt-patch), capabilities on real-time networks (e.g., TSN), capabilities on industrial fieldbuses/protocols (e.g., PROFINET or OPC UA, etc.) or About high availability capabilities (such as UPS), and so on.
  • CPUs such as the number of cores, frequency, RISC, etc.
  • RAM such as capacity or ECC
  • network cards such as speed
  • Capabilities on real-time operating systems e.g., CPU core isolation or Linux rt-patch
  • Step 103 Based on the relationship between the capability described by the first label and the deployment requirement described by the second label, determine the industrial edge device to deploy each component module.
  • the central node determines the industrial edge device where each component module is deployed based on the matching process of the first label and the second label. Wherein, when the capabilities described in the first label fully meet the deployment requirements described in the second label, it is determined that the first label has a matching relationship with the second label, and at this time the industrial edge device that provides the first label can deploy the The constituent modules of the second label. Otherwise, when the capabilities described in the first label cannot fully cover the deployment requirements described in the second label, it is determined that the first label does not have a matching relationship with the second label, and the industrial edge device that provides the first label does not The constituent modules of the second label can be deployed.
  • candidate industrial edge devices when the number of industrial edge devices (referred to as candidate industrial edge devices) that can deploy the constituent modules of the second label is multiple, these multiple industrial edge devices can be formed into a candidate industrial edge device list, That is, the first tab contains a list of industrial edge devices that make up the second tab of the module. Then, based on a predetermined criterion, the industrial edge device on which the component module is deployed is determined from the list of candidate industrial edge devices.
  • the industrial edge device determines whether the capability of the industrial edge device described by each first label meets the deployment requirements of a component module, and if so, determine the industrial edge device as a candidate industrial edge device suitable for deploying the component module; if No, the industrial edge device is not determined as a candidate industrial edge device; a candidate industrial edge device list including all candidate industrial edge devices is generated; and an industrial edge device to deploy the component module is determined from the candidate industrial edge device list.
  • the industrial edge device on which the component module is deployed can be determined from the candidate industrial edge device list based on the specific requirements of the component module. For example, the industrial edge device with the smallest load may be determined from the list of industrial edge devices; the industrial edge device with the smallest load is determined as the industrial edge device where the constituent modules are deployed. It can be seen that by taking the industrial edge device with the smallest load as the deployment location of the component modules, sufficient available resources of the component modules are guaranteed. For another example, the industrial edge device with the least load may be determined from the list of industrial edge devices; the industrial edge device with the fastest network speed is determined as the industrial edge device where the component modules are deployed. It can be seen that by using the industrial edge device with the fastest network speed as the deployment location of the component modules, it is ensured that the component modules have sufficient network transmission speed.
  • the industrial edge application is divided into three building blocks, namely building block 1, building block 2 and building block 3.
  • component module 1 judge whether the first label of each industrial edge device in industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5 satisfies the second label of component module 1 Deployment requirements described in the tags. Assuming that industrial edge device 1, industrial edge device 2, and industrial edge device 3 meet the requirements, then the list of candidate industrial edge devices that make up module 1 is determined to be: industrial edge device 1, industrial edge device 2, and industrial edge device 3. Considering that component module 1 needs to occupy a large amount of computing resources, the device with the smallest load in the candidate industrial edge device list of component module 1 is finally determined as the industrial edge device where component module 1 is deployed.
  • For component module 2 judge whether the first label of each industrial edge device in industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5 satisfies the second label of component module 2 Deployment requirements described in the tags. Assuming that industrial edge device 1, industrial edge device 2, and industrial edge device 4 meet the requirements, then the list of candidate industrial edge devices that make up module 2 is determined to be: industrial edge device 1, industrial edge device 2, and industrial edge device 4. Considering that component module 2 has a high demand for network speed, the device with the fastest network speed in the candidate industrial edge device list of component module 2 is finally determined as the industrial edge device where component module 2 is deployed.
  • For component module 3 determine whether the first label of each industrial edge device in industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5 satisfies the second label of component module 3 Deployment requirements described in the tags. Assuming that the industrial edge device 2 and the industrial edge device 4 meet the requirements, then the list of candidate industrial edge devices that make up the module 3 is determined as: the industrial edge device 2 and the industrial edge device 4 . Considering that the component module 3 needs to occupy a large amount of computing resources, the device with the smallest load in the candidate industrial edge device list of the component module 3 is finally determined as the industrial edge device where the component module 3 is deployed.
  • the method further includes: receiving a second registration request from the industrial edge device deploying the component module, wherein the second registration request contains a third label describing the capability of the component module; combining the third label and the access component module
  • the interface address of the module is delivered to other industrial edge devices except the industrial edge device where the component is deployed, so that when other industrial edge devices need to obtain the capability of the component module, they can access the component module based on the interface address.
  • the capability of the constituent module includes the functions that the constituent module can realize. For example, when the component module is implemented as an artificial intelligence module, the capability is the artificial intelligence function; when the component module is implemented as a fault detection module, the capability is the fault detection function, and so on.
  • the capability of a component module can also be used as the capability of the industrial edge device deploying the component module, so that other industrial edge devices can access the component module to obtain the capability of the component module. Therefore, the capabilities of the constituent modules deployed in an industrial edge device can be further provided to other industrial edge devices.
  • Fig. 2 is a topology diagram of deploying industrial edge applications according to an embodiment of the present invention.
  • the central node 20 has bidirectional communication link connections with the first edge device 21 , the second edge device 22 and the third edge device 23 respectively.
  • a two-way communication link may be implemented as a wired communication link or a wireless communication link.
  • the wired communication link may include at least one of the following: universal serial bus, controller area network, serial port, etc.
  • the wireless wired communication link may include at least one of the following: Ethernet link, infrared link interface, near field communication link, Bluetooth link, Zigbee link, wireless communication link, wireless broadband link, etc.
  • Fig. 3 is a schematic diagram of deploying industrial edge applications according to an embodiment of the present invention.
  • the central node 30 has a bidirectional communication link connection with a first edge device 31, a second edge device 32 and a third edge device 33, respectively.
  • the first edge device 31 sends a first label to the central node 30 , where the capability of the first edge device 31 is described in the first label.
  • the second edge device 32 sends a first label to the central node 30, and the first label describes the capability of the second edge device 32.
  • the third edge device 33 sends a first label to the central node 30, and the first label describes the capability of the third edge device 33.
  • the industrial edge application 40 includes a first component module 41 , a second component module 42 and a third component module 43 .
  • the user provides the second label of the first component module 41 , the second label of the second component module 42 and the second label of the third component module 43 to the central node 30 through the man-machine interface of the central node 30 .
  • the deployment requirements of the first component module 41 are described in the second label of the first component module 41 .
  • the deployment requirements of the second component module 42 are described in the second label of the second component module 42 .
  • the deployment requirements of the third component module 43 are described in the second label of the third component module 43 .
  • the provider of the industrial edge application 40 sends the industrial edge application 40 including the first component module 41 , the second component module 42 and the third component module 43 to the central node 30 .
  • the central node 30 determines that: the deployment device of the first component module 41 is the first edge device 31, and the deployment device of the second component module 42 is the second edge device 32.
  • the deployment device of the third component module 43 is the third edge device 33 .
  • the central node 30 provides the first component module 41 to the first edge device 31 , the second component module 42 to the second edge device 32 , and the third component module 43 to the third edge device 33 .
  • the first edge device 31 , the second edge device 32 , and the third edge device 33 respectively mount constituent modules to which each is provided.
  • the first edge device 31 may also send a third label describing the capability of the first component module 41 to the central node 30 .
  • the third label describes that the first component module 41 has artificial intelligence capabilities.
  • the central node 30 sends the third label and the interface address of the access first component module 41 to the second edge device 32 and the third edge device 33, so that when the second edge device 32 or the third edge device 33 needs to obtain the first component
  • the capability of the module 41 is determined, the first component module 41 may be accessed based on the interface address, and the capability of the first component module 41 may be acquired.
  • the second edge device 32 may send the third label describing the capability of the second component module 42 through the central node 30, and the third edge device 33 may transmit the third label describing the capability of the third component module 43 through the central node 30, thereby The capability of the second component module 42 and the capability of the third component module 43 are shared across edge devices.
  • Fig. 4 is a structural diagram of a device for deploying industrial edge applications according to an embodiment of the present invention.
  • a device 400 for deploying industrial edge applications includes:
  • the first obtaining module 401 is configured to obtain a first label of each industrial edge device, wherein the first label describes the capability of each industrial edge device;
  • the second acquiring module 402 is configured to acquire a second label of each component module of the industrial edge application, wherein the second label describes the deployment requirements of each component module;
  • the determining module 403 is configured to determine an industrial edge device to deploy each component module based on the relationship between the capability described by the first label and the deployment requirement described by the second label.
  • the first acquisition module 401 is configured to receive the first registration request of each industrial edge device, and the first registration request includes a first tag; wherein the first tag is each industrial edge device based on its own capability The detection process is determined, or the first label is determined by querying the capability parameter table of each industrial edge device.
  • the determining module 403 is configured to determine whether the capability of the industrial edge device described by the first label meets the deployment requirements of the component modules described by the second label, and if so, determine the industrial edge device as suitable for deployment The candidate industrial edge device of the module; if not, do not determine the industrial edge device as the candidate industrial edge device; generate an industrial edge device list that contains all candidate industrial edge devices; determine the industry that deploys the component module from the industrial edge device list edge device.
  • the determination module 403 is configured to determine the industrial edge device with the smallest load from the list of industrial edge devices; and determine the industrial edge device with the smallest load as the industrial edge device where the component modules are deployed.
  • the first acquisition module 401 is further configured to receive a second registration request from the industrial edge device where the component module is deployed, and the second registration request includes a third tag describing the capability of the component module; the determination module 403, It is also used to send the third label and the interface address of the access component module to other industrial edge devices other than the industrial edge device deploying the component module, so that when other industrial edge devices need to obtain the capability of the component module, based on the interface address Access to constituent modules.
  • FIG. 5 is a structural diagram of a device for deploying industrial edge applications with a processor-memory architecture according to an embodiment of the present invention.
  • a device 500 for deploying industrial edge applications includes a processor 501, a memory 502, and a computer program stored on the memory 502 and operable on the processor 501.
  • the memory 502 can be specifically implemented as various storage media such as electrically erasable programmable read-only memory (EEPROM), flash memory (Flash memory), and programmable program read-only memory (PROM).
  • the processor 501 may be implemented to include one or more central processing units or one or more field programmable gate arrays, wherein the field programmable gate arrays integrate one or more central processing unit cores.
  • the central processing unit or central processing unit core may be implemented as a CPU or MCU or DSP, and so on.
  • the hardware modules in the various embodiments may be implemented mechanically or electronically.
  • a hardware module may include specially designed permanent circuits or logic devices (such as special-purpose processors, such as FPGAs or ASICs) to perform specific operations.
  • Hardware modules may also include programmable logic devices or circuits (eg, including general-purpose processors or other programmable processors) temporarily configured by software to perform particular operations.
  • programmable logic devices or circuits eg, including general-purpose processors or other programmable processors

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Medical Informatics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed are a method and apparatus for deploying an industrial edge application, and a computer-readable storage medium. The method comprises: acquiring a first label of each industrial edge device, wherein the first label describes the capability of each industrial edge device; acquiring a second label of each composition module in an industrial edge application to be deployed, wherein the second label describes a deployment requirement of each composition module; and on the basis of the relationship between the capability described by the first label and the deployment requirement described by the second label, determining the industrial edge device where each composition module is deployed. Thus, the effective operation of an application is ensured.

Description

部署工业边缘应用的方法、装置及计算机可读存储介质Method, device, and computer-readable storage medium for deploying industrial edge applications 技术领域technical field
本发明涉及工业边缘计算技术领域,特别是部署工业边缘应用的方法、装置及计算机可读存储介质。The present invention relates to the technical field of industrial edge computing, in particular to a method, device and computer-readable storage medium for deploying industrial edge applications.
背景技术Background technique
边缘计算,是指在靠近物或数据源头的一侧,采用网络、计算、存储、应用核心能力为一体的开放平台,就近提供最近端的服务。其应用程序在边缘侧发起,产生更快的网络服务响应,满足行业在实时业务、应用智能、安全与隐私保护等方面的基本需求。Edge computing refers to an open platform that integrates network, computing, storage, and application core capabilities on the side close to the source of objects or data, and provides the nearest end services. Its applications are launched on the edge side to generate faster network service responses and meet the basic needs of the industry in terms of real-time business, application intelligence, security and privacy protection.
边缘计算在工业领域已经取得许多的应用。工业边缘计算有其自身的特点。在工业领域应用边缘计算时,面临着一些新的挑战。它可能需要处理不同类型的现场总线、实时响应、近实时响应和对可靠性的高要求等。换言之,工业边缘应用可能与数据提供者/消费者(比如,可编程逻辑控制器或工业现场设备)和边缘计算设备的工业属性/能力更相关。例如,工业边缘应用程序旨在为环路控制处理实时数据并提供实时结果。需要为边缘设备提供实时能力和实时网络连接。Edge computing has achieved many applications in the industrial field. Industrial edge computing has its own characteristics. When applying edge computing in the industrial field, some new challenges are faced. It may need to deal with different types of fieldbus, real-time response, near real-time response, high requirements on reliability, etc. In other words, industrial edge applications may be more related to data providers/consumers (e.g., programmable logic controllers or industrial field devices) and industrial attributes/capabilities of edge computing devices. For example, industrial edge applications are designed to process real-time data for loop control and provide real-time results. Real-time capabilities and real-time network connectivity need to be provided to edge devices.
然而,如果将边缘应用部署到不合适的边缘设备中,应用将无法有效运行。However, if an edge application is deployed to an unsuitable edge device, the application will not function effectively.
发明内容Contents of the invention
本发明实施方式提出一种部署工业边缘应用的方法、装置及计算机可读存储介质。Embodiments of the present invention provide a method, device, and computer-readable storage medium for deploying industrial edge applications.
一种部署工业边缘应用的方法,包括:A method of deploying an industrial edge application comprising:
获取每个工业边缘设备的第一标签,其中所述第一标签描述所述每个工业边缘设备的能力;Acquiring a first label of each industrial edge device, wherein the first label describes the capability of each industrial edge device;
获取待被部署的工业边缘应用中的每个组成模块的第二标签,其中所述第二标 签描述所述每个组成模块的部署需求;Acquiring the second label of each component module in the industrial edge application to be deployed, wherein the second label describes the deployment requirements of each component module;
基于所述第一标签描述的所述能力和所述第二标签描述的所述部署需求之间的关系,确定部署所述每个组成模块的工业边缘设备。Based on the relationship between the capability described by the first tag and the deployment requirement described by the second tag, determine the industrial edge device to deploy each component module.
因此,本发明实施方式基于工业边缘设备的能力与组成模块的部署需求之间的关系,确定部署组成模块的具体工业边缘设备,从而保证了应用的有效运行。Therefore, the embodiment of the present invention determines the specific industrial edge device for deploying the component modules based on the relationship between the capability of the industrial edge device and the deployment requirements of the component modules, thereby ensuring the effective operation of the application.
在一个实施方式中,所述获取每个工业边缘设备的第一标签包括:In one embodiment, the acquiring the first tag of each industrial edge device includes:
接收每个工业边缘设备的第一注册请求,在所述第一注册请求中包含所述第一标签;receiving a first registration request from each industrial edge device, including the first tag in the first registration request;
其中所述第一标签是所述每个工业边缘设备基于能力自检过程确定的,或所述第一标签是查询所述每个工业边缘设备的能力参数表确定的。The first label is determined by each industrial edge device based on a capability self-check process, or the first label is determined by querying a capability parameter table of each industrial edge device.
可见,本发明实施方式通过多种方式确定第一标签。而且,将第一标签包含在注册请求中,避免了重复传输过程,还有利于设备管理。It can be seen that the embodiment of the present invention determines the first label in various ways. Moreover, including the first tag in the registration request avoids repeated transmission process and is also beneficial to device management.
在一个实施方式中,所述基于第一标签和所述第二标签的匹配过程,确定部署所述每个组成模块的每个工业边缘设备包括:In one embodiment, in the matching process based on the first tag and the second tag, determining each industrial edge device where each component module is deployed includes:
判断第一标签描述的工业边缘设备的能力是否满足第二标签描述的组成模块的部署需求,如果是,将所述工业边缘设备确定为适配于部署所述组成模块的候选工业边缘设备;如果不是,不将所述工业边缘设备确定为所述候选工业边缘设备;Judging whether the capability of the industrial edge device described by the first label meets the deployment requirements of the component modules described by the second label, and if so, determining the industrial edge device as a candidate industrial edge device suitable for deploying the component module; if No, the industrial edge device is not determined as the candidate industrial edge device;
生成包含全部的候选工业边缘设备的候选工业边缘设备列表;Generate a list of candidate industrial edge devices including all candidate industrial edge devices;
从所述候选工业边缘设备列表中确定部署所述组成模块的工业边缘设备。Determining an industrial edge device to deploy the component module from the list of candidate industrial edge devices.
因此,本发明实施方式通过列表方式部署组成模块的工业边缘设备,便于自动化实现。Therefore, the embodiment of the present invention deploys the industrial edge devices constituting the modules in a list manner, which facilitates automation.
在一个实施方式中,从所述候选工业边缘设备列表中确定部署所述组成模块的工业边缘设备包括:In one embodiment, determining the industrial edge device to deploy the component module from the list of candidate industrial edge devices includes:
从所述候选工业边缘设备列表中确定负载最小的候选工业边缘设备;Determining the candidate industrial edge device with the smallest load from the candidate industrial edge device list;
将所述负载最小的候选工业边缘设备确定为部署所述组成模块的工业边缘设 备。The candidate industrial edge device with the smallest load is determined as the industrial edge device deploying the constituent modules.
可见,本发明实施方式在部署组成模块的确定过程中还考虑了工业边缘设备的负荷状况,保证了应用的良好运行。It can be seen that, in the implementation of the present invention, the load status of the industrial edge equipment is also considered in the process of determining the deployment of the component modules, so as to ensure the good operation of the application.
在一个实施方式中,还包括:In one embodiment, also include:
从部署所述组成模块的工业边缘设备接收第二注册请求,在所述第二注册请求中包含描述所述组成模块的能力的第三标签;receiving a second registration request from the industrial edge device deploying the component module, the second registration request including a third tag describing the capability of the component module;
将所述第三标签和访问所述组成模块的接口地址下发到除部署所述组成模块的工业边缘设备之外的其它工业边缘设备,从而当所述其它工业边缘设备需要获取所述组成模块的能力时,基于所述接口地址访问所述组成模块。Sending the third label and the interface address for accessing the component module to other industrial edge devices except the industrial edge device deploying the component module, so that when the other industrial edge device needs to obtain the component module When the capability is enabled, the component module is accessed based on the interface address.
因此,本发明实施方式可以将在工业边缘设备中部署的组成模块的能力进一步提供到其它的工业边缘设备,从而实现组成模块的能力共享。Therefore, the embodiment of the present invention can further provide the capability of the component modules deployed in the industrial edge device to other industrial edge devices, so as to realize the capability sharing of the component modules.
在一个实施方式中,所述工业边缘设备的能力包括下列中的至少一个:In one embodiment, the capabilities of the industrial edge device include at least one of the following:
工业边缘设备的硬件能力;工业边缘设备的软件能力;工业边缘设备的固件能力;工业边缘设备的操作系统能力。Hardware capabilities of industrial edge devices; software capabilities of industrial edge devices; firmware capabilities of industrial edge devices; operating system capabilities of industrial edge devices.
可见,工业边缘设备的能力具有多种实施方式。It can be seen that the capabilities of industrial edge devices can be implemented in various ways.
一种部署工业边缘应用的装置,包括:An apparatus for deploying industrial edge applications, comprising:
第一获取模块,用于获取每个工业边缘设备的第一标签,其中所述第一标签描述所述每个工业边缘设备的能力;A first acquisition module, configured to acquire a first label of each industrial edge device, wherein the first label describes the capability of each industrial edge device;
第二获取模块,用于获取工业边缘应用的每个组成模块的第二标签,其中所述第二标签描述所述每个组成模块的部署需求;The second acquisition module is configured to acquire a second label of each component module of the industrial edge application, wherein the second label describes the deployment requirements of each component module;
确定模块,用于基于所述第一标签描述的所述能力和所述第二标签描述的所述部署需求之间的关系,确定部署所述每个组成模块的工业边缘设备。A determining module, configured to determine an industrial edge device to deploy each component module based on the relationship between the capability described by the first label and the deployment requirement described by the second label.
因此,本发明实施方式基于工业边缘设备的能力与组成模块的部署需求之间的关系,确定部署组成模块的具体工业边缘设备,从而保证了应用的有效运行。Therefore, the embodiment of the present invention determines the specific industrial edge device for deploying the component modules based on the relationship between the capability of the industrial edge device and the deployment requirements of the component modules, thereby ensuring the effective operation of the application.
在一个实施方式中,所述第一获取模块,用于接收每个工业边缘设备的第一注册请求,在所述第一注册请求中包含所述第一标签;其中所述第一标签是所述每个 工业边缘设备基于能力自检过程确定的,或所述第一标签是查询所述每个工业边缘设备的能力参数表确定的。In one embodiment, the first acquiring module is configured to receive a first registration request of each industrial edge device, and the first registration request includes the first label; wherein the first label is the Each industrial edge device is determined based on a capability self-check process, or the first label is determined by querying a capability parameter table of each industrial edge device.
可见,本发明实施方式通过多种方式确定第一标签。而且,将第一标签包含在注册请求中,避免了重复传输过程,还有利于设备管理。It can be seen that the embodiment of the present invention determines the first label in various ways. Moreover, including the first tag in the registration request avoids repeated transmission process and is also beneficial to device management.
在一个实施方式中,所述确定模块,用于判断第一标签描述的工业边缘设备的能力是否满足第二标签描述的组成模块的部署需求,如果是,将所述工业边缘设备确定为适配于部署所述组成模块的候选工业边缘设备;如果不是,不将所述工业边缘设备确定为所述候选工业边缘设备;生成包含全部的候选工业边缘设备的工业边缘设备列表;从所述候选工业边缘设备列表中确定部署所述组成模块的工业边缘设备。In one embodiment, the determination module is configured to determine whether the capability of the industrial edge device described by the first label meets the deployment requirements of the component modules described by the second label, and if so, determine the industrial edge device as compatible Candidate industrial edge devices for deploying the component modules; if not, do not determine the industrial edge devices as the candidate industrial edge devices; generate an industrial edge device list containing all candidate industrial edge devices; from the candidate industrial edge devices The industrial edge device on which the component modules are deployed is determined in the edge device list.
因此,通过列表方式部署组成模块的工业边缘设备,便于自动化实现。Therefore, deploying the industrial edge devices that make up the modules in a list is convenient for automation.
在一个实施方式中,所述确定模块,用于从所述候选工业边缘设备列表中确定负载最小的候选工业边缘设备;将所述负载最小的候选工业边缘设备确定为部署所述组成模块的工业边缘设备。In one embodiment, the determination module is configured to determine the candidate industrial edge device with the smallest load from the candidate industrial edge device list; determine the candidate industrial edge device with the smallest load as the industrial edge device where the component module is deployed edge device.
可见,本发明实施方式在部署组成模块的确定过程中还考虑了工业边缘设备的负荷状况,保证了应用的良好运行。It can be seen that, in the implementation of the present invention, the load status of the industrial edge equipment is also considered in the process of determining the deployment of the component modules, so as to ensure the good operation of the application.
在一个实施方式中,所述第一获取模块,还用于从部署所述组成模块的工业边缘设备接收第二注册请求,在所述第二注册请求中包含描述所述组成模块的能力的第三标签;所述确定模块,还用于将所述第三标签和访问所述组成模块的接口地址下发到除部署所述组成模块的工业边缘设备之外的其它工业边缘设备,从而当所述其它工业边缘设备需要获取所述组成模块的能力时,基于所述接口地址访问所述组成模块。In one embodiment, the first acquisition module is further configured to receive a second registration request from the industrial edge device where the component module is deployed, and the second registration request includes the first information describing the capability of the component module. Three labels; the determination module is also used to send the third label and the interface address for accessing the component module to other industrial edge devices except the industrial edge device where the component module is deployed, so that when the When the other industrial edge devices need to obtain the capability of the component module, they access the component module based on the interface address.
因此,本发明实施方式将在工业边缘设备中部署的组成模块的能力进一步提供到其它的工业边缘设备,从而实现组成模块的能力共享。Therefore, the embodiment of the present invention further provides the capability of the component modules deployed in the industrial edge device to other industrial edge devices, so as to realize the capability sharing of the component modules.
一种部署工业边缘应用的装置,包括处理器和存储器;An apparatus for deploying an industrial edge application, comprising a processor and a memory;
所述存储器中存储有可被所述处理器执行的应用程序,用于使得所述处理器执 行如上任一项所述的部署工业边缘应用的方法。An application program that can be executed by the processor is stored in the memory, which is used to make the processor execute the method for deploying an industrial edge application as described in any one of the above.
一种计算机可读存储介质,其中存储有计算机可读指令,该计算机可读指令用于执行如上任一项所述的部署工业边缘应用的方法。A computer-readable storage medium, in which computer-readable instructions are stored, and the computer-readable instructions are used to execute the method for deploying industrial edge applications as described in any one of the above.
附图说明Description of drawings
下面将通过参照附图详细描述本发明的优选实施例,使本领域的普通技术人员更清楚本发明的上述及其它特征和优点,附图中:Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, so that those of ordinary skill in the art will be more aware of the above-mentioned and other features and advantages of the present invention. In the accompanying drawings:
图1是根据本发明实施方式部署工业边缘应用的方法的流程图。Fig. 1 is a flowchart of a method for deploying industrial edge applications according to an embodiment of the present invention.
图2是根据本发明实施方式的部署工业边缘应用的拓扑图。Fig. 2 is a topology diagram of deploying industrial edge applications according to an embodiment of the present invention.
图3是根据本发明实施方式的部署工业边缘应用的示意图。Fig. 3 is a schematic diagram of deploying industrial edge applications according to an embodiment of the present invention.
图4为根据本发明实施方式部署工业边缘应用的装置的结构图。Fig. 4 is a structural diagram of a device for deploying industrial edge applications according to an embodiment of the present invention.
图5是根据本发明实施方式的具有处理器-存储器架构的、部署工业边缘应用的装置的结构图。FIG. 5 is a structural diagram of a device for deploying industrial edge applications with a processor-memory architecture according to an embodiment of the present invention.
其中,附图标记如下:Wherein, the reference signs are as follows:
标号label 含义meaning
100100 部署工业边缘应用的方法Approaches to Deploying Industrial Edge Applications
101~103101~103 步骤 step
2020 中央节点central node
21twenty one 第一边缘设备first edge device
22twenty two 第二边缘设备second edge device
23twenty three 第三边缘设备 third edge device
3030 中央节点 central node
3131 第一边缘设备 first edge device
3232 第二边缘设备 second edge device
3333 第三边缘设备third edge device
4040 工业边缘应用 Industrial Edge Applications
4141 第一组成模块The first component
4242 第二组成模块 Second component module
4343 第三组成模块The third component module
400400 部署工业边缘应用的装置Devices for Deploying Industrial Edge Applications
401401 第一获取模块 first acquisition module
402402 第二获取模块 Second acquisition module
403403 确定模块Determine the module
500500 部署工业边缘应用的装置Devices for Deploying Industrial Edge Applications
501501 处理器 processor
502502 存储器memory
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,以下举实施例对本发明进一步详细说明。In order to make the purpose, technical solution and advantages of the present invention clearer, the following examples are given to further describe the present invention in detail.
为了描述上的简洁和直观,下文通过描述若干代表性的实施方式来对本发明的方案进行阐述。实施方式中大量的细节仅用于帮助理解本发明的方案。但是很明显,本发明的技术方案实现时可以不局限于这些细节。为了避免不必要地模糊了本发明的方案,一些实施方式没有进行细致地描述,而是仅给出了框架。下文中,“包括”是指“包括但不限于”,“根据……”是指“至少根据……,但不限于仅根据……”。由于汉语的语言习惯,下文中没有特别指出一个成分的数量时,意味着该成分可以是一个也可以是多个,或可理解为至少一个。For the sake of brevity and intuition in description, the solution of the present invention is described below by describing several representative implementation manners. Numerous details in the embodiments are only used to help the understanding of the solutions of the present invention. But obviously, the technical solutions of the present invention may not be limited to these details when implemented. In order to avoid unnecessarily obscuring the solution of the present invention, some embodiments are not described in detail, but only a framework is given. Hereinafter, "including" means "including but not limited to", and "according to..." means "at least according to, but not limited to only based on...". Due to the language habits of Chinese, when the quantity of a component is not specifically indicated below, it means that the component can be one or more, or can be understood as at least one.
图1是根据本发明实施方式部署工业边缘应用的方法的流程图。该方法100可以由与多个工业边缘设备连接的中心节点所执行。Fig. 1 is a flowchart of a method for deploying industrial edge applications according to an embodiment of the present invention. The method 100 can be executed by a central node connected to multiple industrial edge devices.
如图1所示,该方法100包括:As shown in Figure 1, the method 100 includes:
步骤101:获取每个工业边缘设备的第一标签,其中第一标签描述每个工业边缘设备的能力。Step 101: Obtain a first label of each industrial edge device, where the first label describes the capability of each industrial edge device.
在这里,工业边缘设备可以包括工业现场的智能设备,例如变送器、可编程逻辑控制器(PLC)和可编程自动化控制器(PAC),也可以包括连接各种网络部件或桥接不同网络的边缘网关,例如协议转换器、路由器和工业PC,等等。Here, industrial edge devices can include smart devices on the industrial site, such as transmitters, programmable logic controllers (PLCs), and programmable automation controllers (PACs), as well as devices that connect various network components or bridge different networks. Edge gateways such as protocol converters, routers and industrial PCs, etc.
中心节点可以从每个工业边缘设备接收该工业边缘设备的第一注册请求。在每个第一注册请求中,包含发送该第一注册请求的工业边缘设备的第一标签,其中第一标签描述该工业边缘设备的能力。The central node may receive the first registration request of each industrial edge device from the industrial edge device. Each first registration request includes a first label of the industrial edge device sending the first registration request, wherein the first label describes the capability of the industrial edge device.
在一个实施方式中,第一标签是每个工业边缘设备基于能力自检过程确定的,或第一标签是每个工业边缘设备查询保存在第三方数据库中的能力参数表所确定的。In one embodiment, the first label is determined by each industrial edge device based on a capability self-check process, or the first label is determined by each industrial edge device querying a capability parameter table stored in a third-party database.
比如,中心节点与5个工业边缘设备连接,分别为工业边缘设备1、工业边缘设备2、工业边缘设备3、工业边缘设备4和工业边缘设备5。工业边缘设备1、工业边缘设备2、工业边缘设备3、工业边缘设备4和工业边缘设备5分别向中心节点发送各自的第一注册请求。其中:工业边缘设备1发送的第一注册请求中包含描述工业边缘设备1的能力的第一标签;工业边缘设备2发送的第一注册请求中包含描述工业边缘设备2的能力的第一标签;工业边缘设备3发送的第一注册请求中包含描述工业边缘设备3的能力的第一标签;工业边缘设备4发送的第一注册请求中包含描述工业边缘设备4的能力的第一标签;工业边缘设备5发送的第一注册请求中包含描述工业边缘设备5的能力的第一标签。For example, the central node is connected to five industrial edge devices, which are industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5. The industrial edge device 1 , the industrial edge device 2 , the industrial edge device 3 , the industrial edge device 4 and the industrial edge device 5 respectively send respective first registration requests to the central node. Wherein: the first registration request sent by the industrial edge device 1 contains the first label describing the capability of the industrial edge device 1; the first registration request sent by the industrial edge device 2 contains the first label describing the capability of the industrial edge device 2; The first registration request sent by the industrial edge device 3 contains the first label describing the capability of the industrial edge device 3; the first registration request sent by the industrial edge device 4 contains the first label describing the capability of the industrial edge device 4; the industrial edge The first registration request sent by the device 5 includes a first label describing the capabilities of the industrial edge device 5 .
在一个实施方式中,工业边缘设备的能力包括:工业边缘设备的硬件能力;工业边缘设备的软件能力;工业边缘设备的固件能力;工业边缘设备的操作系统能力,等等。比如,工业边缘设备的能力可以包括:关于CPU的能力(比如,核心数、频率、RISC,等等)、关于RAM的能力(比如,容量或ECC)、关于网卡的能力(比如,速度)、关于实时操作系统的能力(比如,CPU核心隔离或Linux rt-patch)、关于实时网络的能力(比如,TSN)、关于工业现场总线/协议的能力(比如,PROFINET或OPC UA,等等)或关于高可用性的能力 (比如UPS),等等。In an embodiment, the capability of the industrial edge device includes: hardware capability of the industrial edge device; software capability of the industrial edge device; firmware capability of the industrial edge device; operating system capability of the industrial edge device, and so on. For example, the capabilities of industrial edge devices can include: capabilities about CPUs (such as the number of cores, frequency, RISC, etc.), capabilities about RAM (such as capacity or ECC), capabilities about network cards (such as speed), Capabilities on real-time operating systems (e.g., CPU core isolation or Linux rt-patch), capabilities on real-time networks (e.g., TSN), capabilities on industrial fieldbuses/protocols (e.g., PROFINET or OPC UA, etc.) or About high availability capabilities (such as UPS), and so on.
以上示范性描述了获取第一标签以及工业边缘设备的能力的典型实例,本领域技术人员可以意识到,这种描述仅是示范性的,并不用于限定本发明实施方式的保护范围。The above exemplarily describes a typical example of the ability to obtain the first tag and the industrial edge device, and those skilled in the art can realize that this description is only exemplary, and is not intended to limit the protection scope of the embodiments of the present invention.
步骤102:获取待被部署的工业边缘应用中的每个组成模块的第二标签,其中第二标签描述所述每个组成模块的部署需求。Step 102: Obtain a second label of each component module in the industrial edge application to be deployed, where the second label describes the deployment requirement of each component module.
在这里,待被部署的工业边缘应用被划分为多个组成模块。其中,可以基于功能划分、层次划分、专业划分、需求划分等多种模块划分方式,将待被部署的工业边缘应用划分为多个组成模块。比如,组成模块具体可以实施为微服务。可以对微服务架构中的每个组件服务进行开发、部署、运营和扩展,而不影响其他服务的功能。这些服务不需要与其他服务共享任何代码或实施。各个组件之间的通信都是通过明确定义的API进行的。Here, the industrial edge application to be deployed is divided into multiple constituent modules. Among them, the industrial edge application to be deployed can be divided into multiple component modules based on various module division methods such as functional division, hierarchical division, professional division, and demand division. For example, the constituent modules can be specifically implemented as microservices. Each component service in the microservice architecture can be developed, deployed, operated, and expanded without affecting the functionality of other services. These services do not need to share any code or implementation with other services. Communication between the various components is done through well-defined APIs.
而且,中心节点可以从工业边缘应用的提供方等来源获取每个组成模块的第二标签,其中每个第二标签描述对应的组成模块的部署需求。考虑到构成工业边缘应用的各个组成模块之间,通常会有相互通信的需求,可以在第二标签中进一步描述针对组成模块间通信协议的需求,比如基于http的RESTful、远程过程调用(Remote Procedure Call,RPC)或基于消息队列遥测传输协议(Message Queuing Telemetry Transport,MQTT)的通讯服务,等等需求。实际上,工业边缘设备通常都具备支持组成模块间通信协议的能力。Moreover, the central node may obtain the second label of each component module from sources such as the provider of the industrial edge application, where each second label describes the deployment requirement of the corresponding component module. Considering that there is usually a need for mutual communication between the various components that constitute the industrial edge application, the requirements for the communication protocol between the components can be further described in the second label, such as HTTP-based RESTful, Remote Procedure Call (Remote Procedure Call, RPC) or communication services based on Message Queuing Telemetry Transport (MQTT), etc. In fact, industrial edge devices usually have the ability to support communication protocols between constituent modules.
比如,工业边缘应用被划分为4个组成模块,分别为组成模块1、组成模块2、组成模块3和组成模块4。工业边缘应用的提供方(比如,开发者),向中心节点发送(比如,通过中心节点的交互界面)组成模块1、组成模块2、组成模块3和组成模块4中的每个组成模块的第二标签。每个组成模块的第二标签描述该对应组成模块针对被部署到的工业边缘设备的能力需求。其中:组成模块1的第二标签描述部署组成模块1的工业边缘设备需要具备的能力;组成模块2的第二标签描述部署组成模块2的工业边缘设备所要具备的能力;组成模块3的第二标签描述部署组成模块3的工业边缘设备需要具备的能力;组成模 块4的第二标签描述部署组成模块4的工业边缘设备需要具备的能力。For example, the industrial edge application is divided into four components, namely component module 1, component module 2, component module 3 and component module 4. The provider of the industrial edge application (for example, the developer) sends (for example, through the interactive interface of the central node) the first component of each component module in the component module 1, component module 2, component module 3 and component module 4 Two tabs. The second label of each component module describes the capability requirement of the corresponding component module for the industrial edge device to be deployed. Among them: the second label of component module 1 describes the capabilities required to deploy the industrial edge equipment of component module 1; the second label of component module 2 describes the capabilities required for the deployment of component module 2; the second label of component module 3 The label describes the capabilities required for the deployment of the industrial edge device of the component module 3; the second label of the component module 4 describes the capabilities required for the deployment of the industrial edge device of the component module 4.
该部署需求可以包括:针对工业边缘设备的硬件能力的需求;针对工业边缘设备的软件能力的需求;针对工业边缘设备的固件能力的需求;针对工业边缘设备的操作系统能力的需求,等等。比如,工业边缘设备的能力可以包括:关于CPU的能力(比如,核心数、频率、RISC,等等)、关于RAM的能力(比如,容量或ECC)、关于网卡的能力(比如,速度)、关于实时操作系统的能力(比如,CPU核心隔离或Linux rt-patch)、关于实时网络的能力(比如,TSN)、关于工业现场总线/协议的能力(比如,PROFINET或OPC UA,等等)或关于高可用性的能力(比如UPS),等等。The deployment requirements may include: requirements for hardware capabilities of industrial edge devices; requirements for software capabilities of industrial edge devices; requirements for firmware capabilities of industrial edge devices; requirements for operating system capabilities of industrial edge devices, and so on. For example, the capabilities of industrial edge devices can include: capabilities about CPUs (such as the number of cores, frequency, RISC, etc.), capabilities about RAM (such as capacity or ECC), capabilities about network cards (such as speed), Capabilities on real-time operating systems (e.g., CPU core isolation or Linux rt-patch), capabilities on real-time networks (e.g., TSN), capabilities on industrial fieldbuses/protocols (e.g., PROFINET or OPC UA, etc.) or About high availability capabilities (such as UPS), and so on.
步骤103:基于第一标签描述的能力和第二标签描述的部署需求之间的关系,确定部署每个组成模块的工业边缘设备。Step 103: Based on the relationship between the capability described by the first label and the deployment requirement described by the second label, determine the industrial edge device to deploy each component module.
比如,中心节点基于第一标签和第二标签的匹配过程,确定部署每个组成模块的工业边缘设备。其中,当第一标签所描述的能力完全满足第二标签中所描述的部署需求时,则认定第一标签与第二标签具有匹配关系,此时提供该第一标签的工业边缘设备可以部署该第二标签的组成模块。否则,当第一标签所描述的能力不能够完全涵盖第二标签中所描述的部署需求时,认定第一标签与第二标签不具有匹配关系,此时提供该第一标签的工业边缘设备不能够部署该第二标签的组成模块。For example, the central node determines the industrial edge device where each component module is deployed based on the matching process of the first label and the second label. Wherein, when the capabilities described in the first label fully meet the deployment requirements described in the second label, it is determined that the first label has a matching relationship with the second label, and at this time the industrial edge device that provides the first label can deploy the The constituent modules of the second label. Otherwise, when the capabilities described in the first label cannot fully cover the deployment requirements described in the second label, it is determined that the first label does not have a matching relationship with the second label, and the industrial edge device that provides the first label does not The constituent modules of the second label can be deployed.
在一个实施方式中,当可以部署第二标签的组成模块的工业边缘设备(称为候选工业边缘设备)的数目为多个时,可以将这多个工业边缘设备组成为候选工业边缘设备列表,即第一标签包含组成模块的第二标签的工业边缘设备列表。然后,再基于预定准则,从候选工业边缘设备列表中确定出部署该组成模块的工业边缘设备。比如,判断每个第一标签所描述的工业边缘设备的能力是否满足某个组成模块的部署需求,如果是,将该工业边缘设备确定为适配于部署该组成模块的候选工业边缘设备;如果不是,不将工业边缘设备确定为候选工业边缘设备;生成包含全部的候选工业边缘设备的候选工业边缘设备列表;从候选工业边缘设备列表中确定部署该组成模块的工业边缘设备。In one embodiment, when the number of industrial edge devices (referred to as candidate industrial edge devices) that can deploy the constituent modules of the second label is multiple, these multiple industrial edge devices can be formed into a candidate industrial edge device list, That is, the first tab contains a list of industrial edge devices that make up the second tab of the module. Then, based on a predetermined criterion, the industrial edge device on which the component module is deployed is determined from the list of candidate industrial edge devices. For example, determine whether the capability of the industrial edge device described by each first label meets the deployment requirements of a component module, and if so, determine the industrial edge device as a candidate industrial edge device suitable for deploying the component module; if No, the industrial edge device is not determined as a candidate industrial edge device; a candidate industrial edge device list including all candidate industrial edge devices is generated; and an industrial edge device to deploy the component module is determined from the candidate industrial edge device list.
可以基于该组成模块的特定需求从候选工业边缘设备列表中确定部署该组成模块的工业边缘设备。举例,可以从工业边缘设备列表中确定负载最小的工业边缘设备;将负载最小的工业边缘设备确定为部署组成模块的工业边缘设备。可见,通过将负载最小的工业边缘设备作为组成模块的部署地,从而保证了组成模块的足够可用资源。再举例,可以从工业边缘设备列表中确定负载最小的工业边缘设备;将网络速度最快的工业边缘设备确定为部署组成模块的工业边缘设备。可见,通过将网络速度最快的工业边缘设备作为组成模块的部署地,从而保证了组成模块具有足够的网络传输速度。The industrial edge device on which the component module is deployed can be determined from the candidate industrial edge device list based on the specific requirements of the component module. For example, the industrial edge device with the smallest load may be determined from the list of industrial edge devices; the industrial edge device with the smallest load is determined as the industrial edge device where the constituent modules are deployed. It can be seen that by taking the industrial edge device with the smallest load as the deployment location of the component modules, sufficient available resources of the component modules are guaranteed. For another example, the industrial edge device with the least load may be determined from the list of industrial edge devices; the industrial edge device with the fastest network speed is determined as the industrial edge device where the component modules are deployed. It can be seen that by using the industrial edge device with the fastest network speed as the deployment location of the component modules, it is ensured that the component modules have sufficient network transmission speed.
类似地,针对每个组成模块都可以重复上述过程,最终为每个组成模块都确定出各自被部署到的工业边缘设备。Similarly, the above process can be repeated for each component module, and finally the industrial edge device to be deployed is determined for each component module.
举例:假定中心节点与5个工业边缘设备连接,分别为工业边缘设备1、工业边缘设备2、工业边缘设备3、工业边缘设备4和工业边缘设备5。工业边缘应用被划分为3个组成模块,分别为组成模块1、组成模块2和组成模块3。Example: Assume that the central node is connected to 5 industrial edge devices, namely industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5. The industrial edge application is divided into three building blocks, namely building block 1, building block 2 and building block 3.
针对组成模块1:判断工业边缘设备1、工业边缘设备2、工业边缘设备3、工业边缘设备4和工业边缘设备5中的每个工业边缘设备的第一标签,是否满足组成模块1的第二标签中所描述的部署需求。假定工业边缘设备1、工业边缘设备2、工业边缘设备3满足,则确定组成模块1的候选工业边缘设备列表为:工业边缘设备1、工业边缘设备2和工业边缘设备3。考虑到组成模块1需要占据大量的运算资源,最终将组成模块1的候选工业边缘设备列表中负载最小的设备确定为组成模块1被部署到的工业边缘设备。For component module 1: judge whether the first label of each industrial edge device in industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5 satisfies the second label of component module 1 Deployment requirements described in the tags. Assuming that industrial edge device 1, industrial edge device 2, and industrial edge device 3 meet the requirements, then the list of candidate industrial edge devices that make up module 1 is determined to be: industrial edge device 1, industrial edge device 2, and industrial edge device 3. Considering that component module 1 needs to occupy a large amount of computing resources, the device with the smallest load in the candidate industrial edge device list of component module 1 is finally determined as the industrial edge device where component module 1 is deployed.
针对组成模块2:判断工业边缘设备1、工业边缘设备2、工业边缘设备3、工业边缘设备4和工业边缘设备5中的每个工业边缘设备的第一标签,是否满足组成模块2的第二标签中所描述的部署需求。假定工业边缘设备1、工业边缘设备2、工业边缘设备4满足,则确定组成模块2的候选工业边缘设备列表为:工业边缘设备1、工业边缘设备2和工业边缘设备4。考虑到组成模块2对网速有较高需求,最终将组成模块2的候选工业边缘设备列表中网速最快的设备确定为组成模块2被部署到的工业边缘设备。For component module 2: judge whether the first label of each industrial edge device in industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5 satisfies the second label of component module 2 Deployment requirements described in the tags. Assuming that industrial edge device 1, industrial edge device 2, and industrial edge device 4 meet the requirements, then the list of candidate industrial edge devices that make up module 2 is determined to be: industrial edge device 1, industrial edge device 2, and industrial edge device 4. Considering that component module 2 has a high demand for network speed, the device with the fastest network speed in the candidate industrial edge device list of component module 2 is finally determined as the industrial edge device where component module 2 is deployed.
针对组成模块3:判断工业边缘设备1、工业边缘设备2、工业边缘设备3、工业边缘设备4和工业边缘设备5中的每个工业边缘设备的第一标签,是否满足组成模块3的第二标签中所描述的部署需求。假定工业边缘设备2和工业边缘设备4满足,则确定组成模块3的候选工业边缘设备列表为:工业边缘设备2和工业边缘设备4。考虑到组成模块3需要占据大量的运算资源,最终将组成模块3的候选工业边缘设备列表中负载最小的设备确定为组成模块3被部署到的工业边缘设备。For component module 3: determine whether the first label of each industrial edge device in industrial edge device 1, industrial edge device 2, industrial edge device 3, industrial edge device 4, and industrial edge device 5 satisfies the second label of component module 3 Deployment requirements described in the tags. Assuming that the industrial edge device 2 and the industrial edge device 4 meet the requirements, then the list of candidate industrial edge devices that make up the module 3 is determined as: the industrial edge device 2 and the industrial edge device 4 . Considering that the component module 3 needs to occupy a large amount of computing resources, the device with the smallest load in the candidate industrial edge device list of the component module 3 is finally determined as the industrial edge device where the component module 3 is deployed.
在一个实施方式中,该方法还包括:从部署组成模块的工业边缘设备接收第二注册请求,在第二注册请求中包含描述组成模块的能力的第三标签;将第三标签和访问组成模块的接口地址下发到除部署该组成模块的工业边缘设备之外的其它工业边缘设备,从而当其它工业边缘设备需要获取组成模块的能力时,基于接口地址访问组成模块。在这里,组成模块的能力包括组成模块能够实现的功能。比如,当组成模块实施为人工智能模块时,该能力即为人工智能功能;当组成模块实施为故障检测模块时,该能力即为故障检测功能,等等。In one embodiment, the method further includes: receiving a second registration request from the industrial edge device deploying the component module, wherein the second registration request contains a third label describing the capability of the component module; combining the third label and the access component module The interface address of the module is delivered to other industrial edge devices except the industrial edge device where the component is deployed, so that when other industrial edge devices need to obtain the capability of the component module, they can access the component module based on the interface address. Here, the capability of the constituent module includes the functions that the constituent module can realize. For example, when the component module is implemented as an artificial intelligence module, the capability is the artificial intelligence function; when the component module is implemented as a fault detection module, the capability is the fault detection function, and so on.
可见,还可以将组成模块的能力作为部署该组成模块的工业边缘设备的能力,从而便于其它工业边缘设备访问该组成模块以获取该组成模块的能力。因此,可以将在工业边缘设备中部署的组成模块的能力,进一步提供到其它的工业边缘设备。It can be seen that the capability of a component module can also be used as the capability of the industrial edge device deploying the component module, so that other industrial edge devices can access the component module to obtain the capability of the component module. Therefore, the capabilities of the constituent modules deployed in an industrial edge device can be further provided to other industrial edge devices.
图2是根据本发明实施方式的部署工业边缘应用的拓扑图。Fig. 2 is a topology diagram of deploying industrial edge applications according to an embodiment of the present invention.
在图2中,中央节点20与第一边缘设备21、第二边缘设备22和第三边缘设备23分别具有双向通信链接连接。双向通信链接可以实施为有线通信链接或无线通信链接。比如,有线通信链接可以包括下列中至少一个:通用串行总线、控制器局域网、串口,等等;无线有线通信链接可以包括下列中至少一个:以太网链接、红外链接接口、近场通讯链接、蓝牙链接、紫蜂链接、无线通信链接、无线宽带链接,等等。In FIG. 2 , the central node 20 has bidirectional communication link connections with the first edge device 21 , the second edge device 22 and the third edge device 23 respectively. A two-way communication link may be implemented as a wired communication link or a wireless communication link. For example, the wired communication link may include at least one of the following: universal serial bus, controller area network, serial port, etc.; the wireless wired communication link may include at least one of the following: Ethernet link, infrared link interface, near field communication link, Bluetooth link, Zigbee link, wireless communication link, wireless broadband link, etc.
图3是根据本发明实施方式的部署工业边缘应用的示意图。Fig. 3 is a schematic diagram of deploying industrial edge applications according to an embodiment of the present invention.
在图3中,中央节点30与第一边缘设备31、第二边缘设备32和第三边缘 设备33分别具有双向通信链接连接。第一边缘设备31向中央节点30发送第一标签,该第一标签中描述第一边缘设备31的能力。第二边缘设备32向中央节点30发送第一标签,该第一标签中描述第二边缘设备32的能力。第三边缘设备33向中央节点30发送第一标签,该第一标签中描述第三边缘设备33的能力。In Fig. 3, the central node 30 has a bidirectional communication link connection with a first edge device 31, a second edge device 32 and a third edge device 33, respectively. The first edge device 31 sends a first label to the central node 30 , where the capability of the first edge device 31 is described in the first label. The second edge device 32 sends a first label to the central node 30, and the first label describes the capability of the second edge device 32. The third edge device 33 sends a first label to the central node 30, and the first label describes the capability of the third edge device 33.
工业边缘应用40包括第一组成模块41、第二组成模块42和第三组成模块43。用户通过中央节点30的人机界面向中央节点30提供第一组成模块41的第二标签、第二组成模块42的第二标签和第三组成模块43的第二标签。第一组成模块41的第二标签中描述第一组成模块41的部署需求。第二组成模块42的第二标签中描述第二组成模块42的部署需求。第三组成模块43的第二标签中描述第三组成模块43的部署需求。而且,工业边缘应用40的提供方向中央节点30发送包含第一组成模块41、第二组成模块42和第三组成模块43的工业边缘应用40。The industrial edge application 40 includes a first component module 41 , a second component module 42 and a third component module 43 . The user provides the second label of the first component module 41 , the second label of the second component module 42 and the second label of the third component module 43 to the central node 30 through the man-machine interface of the central node 30 . The deployment requirements of the first component module 41 are described in the second label of the first component module 41 . The deployment requirements of the second component module 42 are described in the second label of the second component module 42 . The deployment requirements of the third component module 43 are described in the second label of the third component module 43 . Moreover, the provider of the industrial edge application 40 sends the industrial edge application 40 including the first component module 41 , the second component module 42 and the third component module 43 to the central node 30 .
中央节点30基于全部的第一标签和全部的第二标签的匹配过程,确定出:第一组成模块41的部署设备为第一边缘设备31、第二组成模块42的部署设备为第二边缘设备32、第三组成模块43的部署设备为第三边缘设备33。中央节点30将第一组成模块41提供到第一边缘设备31,第二组成模块42提供到第二边缘设备32,第三组成模块43提供到第三边缘设备33。第一边缘设备31、第二边缘设备32和第三边缘设备33分别安装各自被提供到的组成模块。而且,第一边缘设备31还可以向中央节点30发送描述第一组成模块41的能力的第三标签。(比如,当第一组成模块41为人工智能模块时,第三标签描述第一组成模块41具有人工智能能力)。中央节点30将该第三标签和访问第一组成模块41接口地址下发到第二边缘设备32和第三边缘设备33,从而当第二边缘设备32或第三边缘设备33需要获取第一组成模块41的能力时,可以基于该接口地址访问第一组成模块41,并获取第一组成模块41的能力。类似地,第二边缘设备32可以中央节点30发送描述第二组成模块42的能力的第三标签,第三边缘设备33可以中央节点30发送描述第三组成模块43的能力的第三标签,从而实现第二组成模块42的能力和第三组成模块43的能力的跨边缘设备共享。Based on the matching process of all the first tags and all the second tags, the central node 30 determines that: the deployment device of the first component module 41 is the first edge device 31, and the deployment device of the second component module 42 is the second edge device 32. The deployment device of the third component module 43 is the third edge device 33 . The central node 30 provides the first component module 41 to the first edge device 31 , the second component module 42 to the second edge device 32 , and the third component module 43 to the third edge device 33 . The first edge device 31 , the second edge device 32 , and the third edge device 33 respectively mount constituent modules to which each is provided. Moreover, the first edge device 31 may also send a third label describing the capability of the first component module 41 to the central node 30 . (For example, when the first component module 41 is an artificial intelligence module, the third label describes that the first component module 41 has artificial intelligence capabilities). The central node 30 sends the third label and the interface address of the access first component module 41 to the second edge device 32 and the third edge device 33, so that when the second edge device 32 or the third edge device 33 needs to obtain the first component When the capability of the module 41 is determined, the first component module 41 may be accessed based on the interface address, and the capability of the first component module 41 may be acquired. Similarly, the second edge device 32 may send the third label describing the capability of the second component module 42 through the central node 30, and the third edge device 33 may transmit the third label describing the capability of the third component module 43 through the central node 30, thereby The capability of the second component module 42 and the capability of the third component module 43 are shared across edge devices.
图4为根据本发明实施方式部署工业边缘应用的装置的结构图。Fig. 4 is a structural diagram of a device for deploying industrial edge applications according to an embodiment of the present invention.
如图4所示,部署工业边缘应用的装置400包括:As shown in FIG. 4, a device 400 for deploying industrial edge applications includes:
第一获取模块401,用于获取每个工业边缘设备的第一标签,其中第一标签描述每个工业边缘设备的能力;The first obtaining module 401 is configured to obtain a first label of each industrial edge device, wherein the first label describes the capability of each industrial edge device;
第二获取模块402,用于获取工业边缘应用的每个组成模块的第二标签,其中第二标签描述每个组成模块的部署需求;The second acquiring module 402 is configured to acquire a second label of each component module of the industrial edge application, wherein the second label describes the deployment requirements of each component module;
确定模块403,用于基于第一标签描述的所述能力和第二标签描述的所述部署需求之间的关系,确定部署每个组成模块的工业边缘设备。The determining module 403 is configured to determine an industrial edge device to deploy each component module based on the relationship between the capability described by the first label and the deployment requirement described by the second label.
在一个实施方式中,第一获取模块401,用于接收每个工业边缘设备的第一注册请求,在第一注册请求中包含第一标签;其中第一标签是每个工业边缘设备基于能力自检过程确定的,或第一标签是查询每个工业边缘设备的能力参数表确定的。In one embodiment, the first acquisition module 401 is configured to receive the first registration request of each industrial edge device, and the first registration request includes a first tag; wherein the first tag is each industrial edge device based on its own capability The detection process is determined, or the first label is determined by querying the capability parameter table of each industrial edge device.
在一个实施方式中,确定模块403,用于判断第一标签描述的工业边缘设备的能力是否满足第二标签描述的组成模块的部署需求,如果是,将工业边缘设备确定为适配于部署组成模块的候选工业边缘设备;如果不是,不将工业边缘设备确定为所述候选工业边缘设备;生成包含全部的候选工业边缘设备的工业边缘设备列表;从工业边缘设备列表中确定部署组成模块的工业边缘设备。In one embodiment, the determining module 403 is configured to determine whether the capability of the industrial edge device described by the first label meets the deployment requirements of the component modules described by the second label, and if so, determine the industrial edge device as suitable for deployment The candidate industrial edge device of the module; if not, do not determine the industrial edge device as the candidate industrial edge device; generate an industrial edge device list that contains all candidate industrial edge devices; determine the industry that deploys the component module from the industrial edge device list edge device.
在一个实施方式中,确定模块403,用于从工业边缘设备列表中确定负载最小的工业边缘设备;将负载最小的工业边缘设备确定为部署组成模块的工业边缘设备。In one embodiment, the determination module 403 is configured to determine the industrial edge device with the smallest load from the list of industrial edge devices; and determine the industrial edge device with the smallest load as the industrial edge device where the component modules are deployed.
在一个实施方式中,第一获取模块401,还用于从部署组成模块的工业边缘设备接收第二注册请求,在第二注册请求中包含描述组成模块的能力的第三标签;确定模块403,还用于将第三标签和访问组成模块的接口地址下发到除部署组成模块的工业边缘设备之外的其它工业边缘设备,从而当其它工业边缘设备需要获取组成模块的能力时,基于接口地址访问组成模块。In one embodiment, the first acquisition module 401 is further configured to receive a second registration request from the industrial edge device where the component module is deployed, and the second registration request includes a third tag describing the capability of the component module; the determination module 403, It is also used to send the third label and the interface address of the access component module to other industrial edge devices other than the industrial edge device deploying the component module, so that when other industrial edge devices need to obtain the capability of the component module, based on the interface address Access to constituent modules.
本发明实施方式还提出了一种具有处理器-存储器架构的、部署工业边缘应 用的装置。图5是根据本发明实施方式的具有处理器-存储器架构的、部署工业边缘应用的装置的结构图。The embodiment of the present invention also proposes a device with a processor-memory architecture for deploying industrial edge applications. FIG. 5 is a structural diagram of a device for deploying industrial edge applications with a processor-memory architecture according to an embodiment of the present invention.
如图5所示,部署工业边缘应用的装置500包括处理器501、存储器502及存储在存储器502上并可在处理器501上运行的计算机程序,计算机程序被处理器501执行时实现如上任一种的部署工业边缘应用的方法。其中,存储器502具体可以实施为电可擦可编程只读存储器(EEPROM)、快闪存储器(Flash memory)、可编程程序只读存储器(PROM)等多种存储介质。处理器501可以实施为包括一或多个中央处理器或一或多个现场可编程门阵列,其中现场可编程门阵列集成一或多个中央处理器核。具体地,中央处理器或中央处理器核可以实施为CPU或MCU或DSP,等等。As shown in FIG. 5 , a device 500 for deploying industrial edge applications includes a processor 501, a memory 502, and a computer program stored on the memory 502 and operable on the processor 501. When the computer program is executed by the processor 501, any of the above A method for deploying industrial edge applications. Wherein, the memory 502 can be specifically implemented as various storage media such as electrically erasable programmable read-only memory (EEPROM), flash memory (Flash memory), and programmable program read-only memory (PROM). The processor 501 may be implemented to include one or more central processing units or one or more field programmable gate arrays, wherein the field programmable gate arrays integrate one or more central processing unit cores. Specifically, the central processing unit or central processing unit core may be implemented as a CPU or MCU or DSP, and so on.
需要说明的是,上述各流程和各结构图中不是所有的步骤和模块都是必须的,可以根据实际的需要忽略某些步骤或模块。各步骤的执行顺序不是固定的,可以根据需要进行调整。各模块的划分仅仅是为了便于描述采用的功能上的划分,实际实现时,一个模块可以分由多个模块实现,多个模块的功能也可以由同一个模块实现,这些模块可以位于同一个设备中,也可以位于不同的设备中。It should be noted that not all steps and modules in the above-mentioned processes and structure diagrams are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as required. The division of each module is only to facilitate the description of the functional division adopted. In actual implementation, one module can be divided into multiple modules, and the functions of multiple modules can also be realized by the same module. These modules can be located in the same device. , or on a different device.
各实施方式中的硬件模块可以以机械方式或电子方式实现。例如,一个硬件模块可以包括专门设计的永久性电路或逻辑器件(如专用处理器,如FPGA或ASIC)用于完成特定的操作。硬件模块也可以包括由软件临时配置的可编程逻辑器件或电路(如包括通用处理器或其它可编程处理器)用于执行特定操作。至于具体采用机械方式,或是采用专用的永久性电路,或是采用临时配置的电路(如由软件进行配置)来实现硬件模块,可以根据成本和时间上的考虑来决定。The hardware modules in the various embodiments may be implemented mechanically or electronically. For example, a hardware module may include specially designed permanent circuits or logic devices (such as special-purpose processors, such as FPGAs or ASICs) to perform specific operations. Hardware modules may also include programmable logic devices or circuits (eg, including general-purpose processors or other programmable processors) temporarily configured by software to perform particular operations. As for implementing the hardware module in a mechanical way, using a dedicated permanent circuit, or using a temporarily configured circuit (such as configured by software) to realize the hardware module, it can be decided according to cost and time considerations.
以上所述,仅为本发明的较佳实施方式而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred implementation modes of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (13)

  1. 一种部署工业边缘应用的方法(100),其特征在于,包括:A method (100) of deploying an industrial edge application, comprising:
    获取每个工业边缘设备的第一标签,其中所述第一标签描述所述每个工业边缘设备的能力(101);Obtaining a first tag of each industrial edge device, wherein the first tag describes the capabilities of each industrial edge device (101);
    获取待被部署的工业边缘应用中的每个组成模块的第二标签,其中所述第二标签描述所述每个组成模块的部署需求(102);Obtaining a second label of each component module in the industrial edge application to be deployed, wherein the second label describes the deployment requirements of each component module (102);
    基于所述第一标签描述的所述能力和所述第二标签描述的所述部署需求之间的关系,确定部署所述每个组成模块的工业边缘设备(103)。Based on the relationship between the capability described by the first tag and the deployment requirement described by the second tag, determine the industrial edge device to deploy each component module (103).
  2. 根据权利要求1所述的部署工业边缘应用的方法(100),其特征在于,所述获取每个工业边缘设备的第一标签(101)包括:The method (100) for deploying industrial edge applications according to claim 1, wherein said obtaining the first label (101) of each industrial edge device comprises:
    接收每个工业边缘设备的第一注册请求,在所述第一注册请求中包含所述第一标签;receiving a first registration request from each industrial edge device, including the first tag in the first registration request;
    其中所述第一标签是所述每个工业边缘设备基于能力自检过程确定的,或所述第一标签是查询所述每个工业边缘设备的能力参数表确定的。The first label is determined by each industrial edge device based on a capability self-check process, or the first label is determined by querying a capability parameter table of each industrial edge device.
  3. 根据权利要求1所述的部署工业边缘应用的方法(100),其特征在于,所述基于所述第一标签描述的所述能力和所述第二标签描述的所述部署需求之间的关系,确定部署所述每个组成模块的每个工业边缘设备(103)包括:The method (100) for deploying industrial edge applications according to claim 1, characterized in that, the relationship between the capability described based on the first label and the deployment requirement described by the second label , determining that each industrial edge device (103) deploying each component module includes:
    判断第一标签描述的工业边缘设备的能力是否满足第二标签描述的组成模块的部署需求,如果是,将所述工业边缘设备确定为适配于部署所述组成模块的候选工业边缘设备;如果不是,不将所述工业边缘设备确定为所述候选工业边缘设备;Judging whether the capability of the industrial edge device described by the first label meets the deployment requirements of the component modules described by the second label, and if so, determining the industrial edge device as a candidate industrial edge device suitable for deploying the component module; if No, the industrial edge device is not determined as the candidate industrial edge device;
    生成包含全部的候选工业边缘设备的候选工业边缘设备列表;Generate a list of candidate industrial edge devices including all candidate industrial edge devices;
    从所述候选工业边缘设备列表中确定部署所述组成模块的工业边缘设备。Determining an industrial edge device to deploy the component module from the list of candidate industrial edge devices.
  4. 根据权利要求3所述的部署工业边缘应用的方法(100),其特征在于,The method (100) for deploying industrial edge applications according to claim 3, characterized in that,
    从所述候选工业边缘设备列表中确定部署所述组成模块的工业边缘设备包括:Determining the industrial edge device deploying the component modules from the candidate industrial edge device list includes:
    从所述候选工业边缘设备列表中确定负载最小的候选工业边缘设备;Determining the candidate industrial edge device with the smallest load from the candidate industrial edge device list;
    将所述负载最小的候选工业边缘设备确定为部署所述组成模块的工业边缘设备。The candidate industrial edge device with the smallest load is determined as the industrial edge device on which the component modules are deployed.
  5. 根据权利要求2所述的部署工业边缘应用的方法(100),其特征在于,还包括:The method (100) for deploying industrial edge applications according to claim 2, further comprising:
    从部署所述组成模块的工业边缘设备接收第二注册请求,在所述第二注册请求中包含描述所述组成模块的能力的第三标签;receiving a second registration request from the industrial edge device deploying the component module, the second registration request including a third tag describing the capability of the component module;
    将所述第三标签和访问所述组成模块的接口地址下发到除部署所述组成模块的工业 边缘设备之外的其它工业边缘设备,从而当所述其它工业边缘设备需要获取所述组成模块的能力时,基于所述接口地址访问所述组成模块。Sending the third label and the interface address for accessing the component module to other industrial edge devices except the industrial edge device deploying the component module, so that when the other industrial edge device needs to obtain the component module When the capability is enabled, the component module is accessed based on the interface address.
  6. 根据权利要求1-5中任一项所述的部署工业边缘应用的方法(100),其特征在于,The method (100) for deploying industrial edge applications according to any one of claims 1-5, characterized in that,
    所述工业边缘设备的能力包括下列中的至少一个:The capabilities of the industrial edge device include at least one of the following:
    工业边缘设备的硬件能力;工业边缘设备的软件能力;工业边缘设备的固件能力;工业边缘设备的操作系统能力。Hardware capabilities of industrial edge devices; software capabilities of industrial edge devices; firmware capabilities of industrial edge devices; operating system capabilities of industrial edge devices.
  7. 一种部署工业边缘应用的装置(400),其特征在于,包括:A device (400) for deploying industrial edge applications, characterized in that it includes:
    第一获取模块(401),用于获取每个工业边缘设备的第一标签,其中所述第一标签描述所述每个工业边缘设备的能力;A first obtaining module (401), configured to obtain a first label of each industrial edge device, wherein the first label describes the capability of each industrial edge device;
    第二获取模块(402),用于获取工业边缘应用的每个组成模块的第二标签,其中所述第二标签描述所述每个组成模块的部署需求;A second acquisition module (402), configured to acquire a second label of each component module of the industrial edge application, wherein the second label describes the deployment requirements of each component module;
    确定模块(403),用于基于所述第一标签描述的所述能力和所述第二标签描述的所述部署需求之间的关系,确定部署所述每个组成模块的工业边缘设备。A determining module (403), configured to determine an industrial edge device to deploy each component module based on the relationship between the capability described by the first label and the deployment requirement described by the second label.
  8. 根据权利要求7所述的部署工业边缘应用的装置(400),其特征在于,The device (400) for deploying industrial edge applications according to claim 7, characterized in that,
    所述第一获取模块(401),用于接收每个工业边缘设备的第一注册请求,在所述第一注册请求中包含所述第一标签;其中所述第一标签是所述每个工业边缘设备基于能力自检过程确定的,或所述第一标签是查询所述每个工业边缘设备的能力参数表确定的。The first obtaining module (401) is configured to receive a first registration request of each industrial edge device, and the first registration request includes the first tag; wherein the first tag is each The industrial edge device is determined based on a capability self-check process, or the first label is determined by querying the capability parameter table of each industrial edge device.
  9. 根据权利要求7所述的部署工业边缘应用的装置(400),其特征在于,The device (400) for deploying industrial edge applications according to claim 7, characterized in that,
    所述确定模块(403),用于判断第一标签描述的工业边缘设备的能力是否满足第二标签描述的组成模块的部署需求,如果是,将所述工业边缘设备确定为适配于部署所述组成模块的候选工业边缘设备;如果不是,不将所述工业边缘设备确定为所述候选工业边缘设备;生成包含全部的候选工业边缘设备的工业边缘设备列表;从所述候选工业边缘设备列表中确定部署所述组成模块的工业边缘设备。The determination module (403) is used to determine whether the capability of the industrial edge device described by the first label meets the deployment requirements of the component modules described by the second label, and if so, determine that the industrial edge device is suitable for deployment. The candidate industrial edge device of the above-mentioned constituent modules; if not, the industrial edge device is not determined as the candidate industrial edge device; an industrial edge device list containing all candidate industrial edge devices is generated; from the candidate industrial edge device list Determine the industrial edge device where the component modules are deployed.
  10. 根据权利要求9所述的部署工业边缘应用的装置(400),其特征在于,The device (400) for deploying industrial edge applications according to claim 9, characterized in that,
    所述确定模块(403),用于从所述候选工业边缘设备列表中确定负载最小的候选工业边缘设备;将所述负载最小的候选工业边缘设备确定为部署所述组成模块的工业边缘设备。The determination module (403) is configured to determine a candidate industrial edge device with the smallest load from the list of candidate industrial edge devices; and determine the candidate industrial edge device with the smallest load as the industrial edge device on which the component modules are deployed.
  11. 根据权利要求8所述的部署工业边缘应用的装置(400),其特征在于,The device (400) for deploying industrial edge applications according to claim 8, characterized in that,
    所述第一获取模块(401),还用于从部署所述组成模块的工业边缘设备接收第二注册请求,在所述第二注册请求中包含描述所述组成模块的能力的第三标签;The first obtaining module (401) is further configured to receive a second registration request from the industrial edge device where the component module is deployed, and the second registration request includes a third tag describing the capability of the component module;
    所述确定模块(403),还用于将所述第三标签和访问所述组成模块的接口地址下发到除部署所述组成模块的工业边缘设备之外的其它工业边缘设备,从而当所述其它工业边缘设备需要获取所述组成模块的能力时,基于所述接口地址访问所述组成模块。The determination module (403) is further configured to send the third label and the interface address for accessing the component module to other industrial edge devices except the industrial edge device where the component module is deployed, so that when the When the other industrial edge devices need to obtain the capability of the component module, they access the component module based on the interface address.
  12. 一种部署工业边缘应用的装置(500),其特征在于,包括处理器(501)和存储器(502);A device (500) for deploying industrial edge applications, characterized by comprising a processor (501) and a memory (502);
    所述存储器(502)中存储有可被所述处理器(501)执行的应用程序,用于使得所述处理器(501)执行如权利要求1至6中任一项所述的部署工业边缘应用的方法(100)。An application program executable by the processor (501) is stored in the memory (502), for enabling the processor (501) to execute the industrial edge deployment according to any one of claims 1 to 6. Applied method (100).
  13. 一种计算机可读存储介质,其特征在于,其中存储有计算机可读指令,该计算机可读指令用于执行如权利要求1至6中任一项所述的部署工业边缘应用的方法(100)。A computer-readable storage medium, characterized in that computer-readable instructions are stored therein, and the computer-readable instructions are used to execute the method (100) for deploying industrial edge applications according to any one of claims 1 to 6 .
PCT/CN2021/119970 2021-09-23 2021-09-23 Method and apparatus for deploying industrial edge application, and computer-readable storage medium WO2023044673A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/119970 WO2023044673A1 (en) 2021-09-23 2021-09-23 Method and apparatus for deploying industrial edge application, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/119970 WO2023044673A1 (en) 2021-09-23 2021-09-23 Method and apparatus for deploying industrial edge application, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2023044673A1 true WO2023044673A1 (en) 2023-03-30

Family

ID=85719163

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/119970 WO2023044673A1 (en) 2021-09-23 2021-09-23 Method and apparatus for deploying industrial edge application, and computer-readable storage medium

Country Status (1)

Country Link
WO (1) WO2023044673A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243246A (en) * 2017-12-25 2018-07-03 北京市天元网络技术股份有限公司 A kind of edge calculations resource regulating method, edge device and system
CN111580978A (en) * 2020-05-12 2020-08-25 中国联合网络通信集团有限公司 Edge computing server layout method and task allocation method
CN112187859A (en) * 2020-08-24 2021-01-05 国网浙江省电力有限公司信息通信分公司 Method for dynamically mapping Internet of things service and edge network capability and electronic equipment
CN112995343A (en) * 2021-04-22 2021-06-18 华南理工大学 Edge node calculation unloading method with performance and demand matching capability
US20210240170A1 (en) * 2018-05-18 2021-08-05 Siemens Aktiengesellschaft Method and platform for deployment of an industrial application on an edge computing device of a machine tool

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243246A (en) * 2017-12-25 2018-07-03 北京市天元网络技术股份有限公司 A kind of edge calculations resource regulating method, edge device and system
US20210240170A1 (en) * 2018-05-18 2021-08-05 Siemens Aktiengesellschaft Method and platform for deployment of an industrial application on an edge computing device of a machine tool
CN111580978A (en) * 2020-05-12 2020-08-25 中国联合网络通信集团有限公司 Edge computing server layout method and task allocation method
CN112187859A (en) * 2020-08-24 2021-01-05 国网浙江省电力有限公司信息通信分公司 Method for dynamically mapping Internet of things service and edge network capability and electronic equipment
CN112995343A (en) * 2021-04-22 2021-06-18 华南理工大学 Edge node calculation unloading method with performance and demand matching capability

Similar Documents

Publication Publication Date Title
EP2888858B1 (en) Method and apparatus of generalized network controller for a software defined network (sdn)
US11689606B2 (en) Communication method, system and apparatus
CN108847979B (en) Self-adaptive configuration system and method based on SCADA
CN107959582B (en) Slice instance management method and device
WO2016155394A1 (en) Method and device for establishing link between virtual network functions
US11277495B2 (en) System and method for providing microservice-based device control interface
US10901392B2 (en) Method and system for monitoring a plant of process automation
JP2018530214A (en) Method and apparatus for deploying network services
CN110417783B (en) Data transmission method and device based on Internet of things, storage medium and terminal
US11917027B2 (en) Method and system for providing time-critical services
WO2022171083A1 (en) Information processing method based on internet-of-things device, and related device and storage medium
CN113141405B (en) Service access method, middleware system, electronic device, and storage medium
CN111736867A (en) FPGA updating device, method and storage medium
US9779037B2 (en) Establishing connectivity of modular nodes in a pre-boot environment
WO2019062634A1 (en) Communication method and apparatus
EP3398304B1 (en) Network service requests
US20170140046A1 (en) Electronic component with deterministic response
CN112953739B (en) K8S platform-based method, system and storage medium for nanotube SDN
WO2023044673A1 (en) Method and apparatus for deploying industrial edge application, and computer-readable storage medium
CN113342456A (en) Connection method, device, equipment and storage medium
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN115756877A (en) Resource synchronization method, device, equipment and storage medium
US20180255157A1 (en) Network service chains using hardware logic devices in an information handling system
WO2015149530A1 (en) M2m application service method, device and system
KR102250138B1 (en) System for providing micro service-based device control interface and method using thereof

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: 21957809

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE