[go: up one dir, main page]

CN118590517A - Data communication chip, system, method, device and electronic equipment - Google Patents

Data communication chip, system, method, device and electronic equipment Download PDF

Info

Publication number
CN118590517A
CN118590517A CN202410812405.9A CN202410812405A CN118590517A CN 118590517 A CN118590517 A CN 118590517A CN 202410812405 A CN202410812405 A CN 202410812405A CN 118590517 A CN118590517 A CN 118590517A
Authority
CN
China
Prior art keywords
data
dpu
receiving end
sending
communication
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202410812405.9A
Other languages
Chinese (zh)
Inventor
郝佳恺
李宇婷
金明
朴天高
杨国铭
郭少勇
杨静
李俊芹
张伍伟
闫磊
白昊洋
李金友
谭静
董旭
董峥
庞迪
王涵
张展鹏
林超
刘晓宸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
State Grid Beijing Electric Power Co Ltd
Beijing Borui Xianglun Technology Development Co Ltd
State Grid Corp of China SGCC
Original Assignee
Beijing University of Posts and Telecommunications
State Grid Beijing Electric Power Co Ltd
Beijing Borui Xianglun Technology Development Co Ltd
State Grid Corp of China SGCC
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 Beijing University of Posts and Telecommunications, State Grid Beijing Electric Power Co Ltd, Beijing Borui Xianglun Technology Development Co Ltd, State Grid Corp of China SGCC filed Critical Beijing University of Posts and Telecommunications
Priority to CN202410812405.9A priority Critical patent/CN118590517A/en
Publication of CN118590517A publication Critical patent/CN118590517A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data communication chip, a system, a method, a device and electronic equipment. Wherein the method comprises the following steps: receiving a data transmission instruction from a transmitting end to a receiving end, wherein the transmitting end comprises at least one of the following: the DPU comprises a data communication chip, a receiving end comprises at least one of the following components: the Internet of things device is reserved, the DPU is different from the sending end and the receiving end; responding to a data transmission instruction, and acquiring transmission data sent by a sending end and a sending end identification; determining a receiving end identifier corresponding to the transmitting end identifier; and transmitting the transmission data to the receiving end corresponding to the receiving end identifier through a preset connection channel. The invention solves the technical problem of lower safety when data communication is carried out in the related technology.

Description

数据通讯芯片、系统、方法、装置及电子设备Data communication chip, system, method, device and electronic equipment

技术领域Technical Field

本发明涉及数据通讯领域,具体而言,涉及一种数据通讯芯片、系统、方法、装置及电子设备。The present invention relates to the field of data communication, and in particular to a data communication chip, system, method, device and electronic equipment.

背景技术Background Art

边缘计算的发展为能源电力行业的物联网、人工智能等技术发展提供了坚实支撑。但随着端侧流量及数量爆发,边缘计算逐渐无法满足业务场景对数据延迟、带宽消耗、隐私安全等方面需求,亟需新的解决方案。具体到能源电力行业,面对需求响应、辅助服务、现货交易等业务场景需求,部署在边缘的物联装置正在成为新型电力系统业务支撑关键设备,边缘物联装置具有数据采集、数据管理、协议适配、安全管理、运维管理、高级业务应用等功能,用于支撑资源聚合调控、能源监测、碳排放管理等业务场景边缘计算分析要求,达成区域能源自治控制。The development of edge computing has provided solid support for the development of technologies such as the Internet of Things and artificial intelligence in the energy and power industry. However, with the explosion of end-side traffic and quantity, edge computing has gradually been unable to meet the business scenarios' requirements for data latency, bandwidth consumption, privacy and security, and new solutions are urgently needed. Specifically in the energy and power industry, in the face of business scenario requirements such as demand response, ancillary services, and spot trading, IoT devices deployed at the edge are becoming key equipment for supporting new power system business. Edge IoT devices have functions such as data collection, data management, protocol adaptation, security management, operation and maintenance management, and advanced business applications. They are used to support edge computing and analysis requirements for business scenarios such as resource aggregation and regulation, energy monitoring, and carbon emission management, and achieve regional energy autonomous control.

但是当前边缘物联装置的协议适配、安全管理等基础功能对算力的需求不断增长,在使用物联装置与DPU之间进行数据通讯时,扔存在一定的安全性问题。However, the demand for computing power for basic functions such as protocol adaptation and security management of edge IoT devices is constantly increasing. When using IoT devices to communicate data with DPU, there are still certain security issues.

针对上述的问题,目前尚未提出有效的解决方案。To address the above-mentioned problems, no effective solution has been proposed yet.

发明内容Summary of the invention

本发明实施例提供了一种数据通讯芯片、系统、方法、装置及电子设备,以至少解决相关技术中进行数据通讯时,存在安全性较低的技术问题。The embodiments of the present invention provide a data communication chip, system, method, device and electronic device to at least solve the technical problem of low security in data communication in the related art.

根据本发明实施例的一个方面,提供了一种数据通讯芯片,包括:目标中间件与安全防护组件,所述目标中间件包括数据处理单元DPU层,底层通信驱动层,系统适配层,所述DPU层与所述底层通信驱动层连接,所述底层通信驱动层与所述系统适配层连接,所述DPU层中包括DPU;所述底层通信驱动层为对目标通信协议进行封装后得到的层,目标通信协议包括数据通讯系统内部通讯的第一驱动对应的通信协议,以及数据通讯系统对外通信的第二驱动对应的通信协议;所述系统适配层包括信息库模块,安全防护模块,所述信息库模块用于建立预定物联装置与所述DPU之间的连接通道,所述安全防护模块用于对所述预定物联装置与所述DPU之间传输的数据进行加解密防护。According to one aspect of an embodiment of the present invention, a data communication chip is provided, comprising: a target middleware and a security protection component, the target middleware comprising a data processing unit DPU layer, an underlying communication driver layer, and a system adaptation layer, the DPU layer being connected to the underlying communication driver layer, the underlying communication driver layer being connected to the system adaptation layer, the DPU layer comprising a DPU; the underlying communication driver layer is a layer obtained by encapsulating a target communication protocol, the target communication protocol comprising a communication protocol corresponding to a first driver for internal communication of a data communication system, and a communication protocol corresponding to a second driver for external communication of the data communication system; the system adaptation layer comprising an information library module and a security protection module, the information library module being used to establish a connection channel between a predetermined IoT device and the DPU, the security protection module being used to encrypt and decrypt data transmitted between the predetermined IoT device and the DPU.

根据本发明实施例的一个方面,提供了一种数据通讯系统,包括:预定物联装置,数据通讯芯片,其中,所述预定物联装置与所述数据通讯芯片连接。According to one aspect of an embodiment of the present invention, there is provided a data communication system, comprising: a predetermined Internet of Things device and a data communication chip, wherein the predetermined Internet of Things device is connected to the data communication chip.

根据本发明实施例的一个方面,提供了一种数据通讯方法,包括:接收发送端发送数据至接收端的数据传输指令,其中,所述发送端包括以下至少之一:预定物联装置,数据通讯芯片中包括的DPU,所述接收端包括以下至少之一:所述预定物联装置,所述DPU,所述发送端与所述接收端不同;响应于所述数据传输指令,获取发送端发送的传输数据与发送端标识;确定与所述发送端标识对应的接收端标识;通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端。According to one aspect of an embodiment of the present invention, a data communication method is provided, comprising: receiving a data transmission instruction for a transmitting end to send data to a receiving end, wherein the transmitting end includes at least one of the following: a predetermined IoT device, a DPU included in a data communication chip, and the receiving end includes at least one of the following: the predetermined IoT device, the DPU, and the transmitting end is different from the receiving end; in response to the data transmission instruction, obtaining transmission data and a transmitting end identifier sent by the transmitting end; determining a receiving end identifier corresponding to the transmitting end identifier; and sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel.

可选地,通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端之前,还包括:获取所述预定物联装置发送的第一建联数据,以及所述DPU发送的第二建联数据,其中,所述第一建联数据中包括第一任务主题名与物联装置标识,所述第二建联数据中包括第二任务主题名与DPU端口标识;基于所述第一任务主题名与所述第二任务主题名,对所述预定物联装置与所述DPU进行匹配,得到匹配结果;在匹配成功的情况下,基于所述第一建联数据与所述第二建联数据,建立所述预定物联装置与所述DPU之间的预定连接通道;反馈匹配结果至所述预定物联装置,以使预定物联装置通过所述连接通道与DPU进行数据传输。Optionally, before sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel, it also includes: obtaining first connection data sent by the predetermined IoT device and second connection data sent by the DPU, wherein the first connection data includes a first task subject name and an IoT device identifier, and the second connection data includes a second task subject name and a DPU port identifier; based on the first task subject name and the second task subject name, matching the predetermined IoT device with the DPU to obtain a matching result; if the match is successful, establishing a predetermined connection channel between the predetermined IoT device and the DPU based on the first connection data and the second connection data; and feeding back the matching result to the predetermined IoT device so that the predetermined IoT device can transmit data with the DPU through the connection channel.

可选地,通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端,包括:在发送端为所述预定物联装置,接收端为所述DPU的情况下,获取所述传输数据,并将所述传输数据存储至数据缓冲区;将所述传输数据的首地址与数据长度存入地址缓冲区;依据所述地址缓冲区中所记录的所述首地址,从所述数据缓冲区中调取所述传输数据,并通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端发送至所述DPU。Optionally, the transmission data is sent to the receiving end corresponding to the receiving end identifier through a predetermined connection channel, including: when the sending end is the predetermined IoT device and the receiving end is the DPU, the transmission data is acquired and stored in a data buffer; the first address and data length of the transmission data are stored in an address buffer; based on the first address recorded in the address buffer, the transmission data is retrieved from the data buffer, and the transmission data is sent to the receiving end corresponding to the receiving end identifier and to the DPU through a predetermined connection channel.

可选地,通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端之后,还包括:在发送端为所述DPU,接收端为所述预定物联装置的情况下,确定与所述传输数据对应的任务主题名;将所述传输数据发送至与所述任务主题名对应的存储区域中。Optionally, after sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel, it also includes: when the sending end is the DPU and the receiving end is the predetermined IoT device, determining the task subject name corresponding to the transmission data; and sending the transmission data to a storage area corresponding to the task subject name.

可选地,通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端,包括:对所述传输数据进行加密处理,得到加密传输数据;通过所述预定连接通道,发送所述加密传输数据至所述接收端标识对应的接收端。Optionally, sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel includes: encrypting the transmission data to obtain encrypted transmission data; and sending the encrypted transmission data to the receiving end corresponding to the receiving end identifier through the predetermined connection channel.

根据本发明实施例的一个方面,提供了一种数据通讯装置,包括:接收模块,用于接收发送端发送数据至接收端的数据传输指令,其中,所述发送端包括以下至少之一:预定物联装置,数据通讯芯片中包括的DPU,所述接收端包括以下至少之一:所述预定物联装置,所述DPU,所述发送端与所述接收端不同;获取模块,用于响应于所述数据传输指令,获取发送端发送的传输数据与发送端标识;确定模块,用于确定与所述发送端标识对应的接收端标识;发送模块,用于通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端。According to one aspect of an embodiment of the present invention, a data communication device is provided, comprising: a receiving module, used to receive a data transmission instruction for a sending end to send data to a receiving end, wherein the sending end includes at least one of the following: a predetermined Internet of Things device, a DPU included in a data communication chip, and the receiving end includes at least one of the following: the predetermined Internet of Things device, the DPU, and the sending end is different from the receiving end; an acquisition module, used to obtain the transmission data and the sending end identifier sent by the sending end in response to the data transmission instruction; a determination module, used to determine the receiving end identifier corresponding to the sending end identifier; and a sending module, used to send the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel.

根据本发明实施例的一个方面,提供了一种电子设备,包括:处理器;用于存储所述处理器可执行指令的存储器;其中,所述处理器被配置为执行所述指令,以实现上述任一项所述的数据通讯方法。According to one aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement any of the above-mentioned data communication methods.

根据本发明实施例的一个方面,提供了一种计算机可读存储介质,当所述计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述任一项所述的数据通讯方法。According to one aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned data communication methods.

在本发明实施例中,接收发送端发送数据至接收端的数据传输指令,其中,发送端包括以下至少之一:预定物联装置,DPU,接收端包括以下至少之一:预定物联装置,DPU,发送端与接收端不同;响应于数据传输指令,获取发送端发送的传输数据与发送端标识;确定与发送端标识对应的接收端标识;通过预定连接通道,发送传输数据至接收端标识对应的接收端。即通过特定的预定连接通道,以及对应的标识,才能够进行数据传输,保证数据传输中的安全。此外,DPU位于数据通讯芯片中,数据通讯芯片中包括:目标中间件与安全防护组件,目标中间件包括数据处理单元DPU层,底层通信驱动层,系统适配层,DPU层与底层通信驱动层连接,底层通信驱动层与系统适配层连接,DPU层中包括DPU;底层通信驱动层为对目标通信协议进行封装后得到的层,目标通信协议包括数据通讯系统内部通讯的第一驱动对应的通信协议,以及数据通讯系统对外通信的第二驱动对应的通信协议;系统适配层包括信息库模块,安全防护模块,信息库模块用于建立预定物联装置与DPU之间的连接通道,安全防护模块用于对预定物联装置与DPU之间传输的数据进行加解密防护。可知,其能够起到一定的安全防护作用,进而解决了相关技术中进行数据通讯时,存在安全性较低的技术问题。In an embodiment of the present invention, a data transmission instruction is received from a transmitting end to send data to a receiving end, wherein the transmitting end includes at least one of the following: a predetermined IoT device, DPU, and the receiving end includes at least one of the following: a predetermined IoT device, DPU, and the transmitting end is different from the receiving end; in response to the data transmission instruction, the transmission data and the transmitting end identifier sent by the transmitting end are obtained; the receiving end identifier corresponding to the transmitting end identifier is determined; and the transmission data is sent to the receiving end corresponding to the receiving end identifier through a predetermined connection channel. That is, data transmission can only be performed through a specific predetermined connection channel and a corresponding identifier, thereby ensuring security in data transmission. In addition, the DPU is located in the data communication chip, and the data communication chip includes: target middleware and security protection components, the target middleware includes a data processing unit DPU layer, a bottom communication driver layer, a system adaptation layer, the DPU layer is connected to the bottom communication driver layer, the bottom communication driver layer is connected to the system adaptation layer, and the DPU layer includes the DPU; the bottom communication driver layer is a layer obtained by encapsulating the target communication protocol, and the target communication protocol includes the communication protocol corresponding to the first driver for internal communication of the data communication system, and the communication protocol corresponding to the second driver for external communication of the data communication system; the system adaptation layer includes an information library module and a security protection module, the information library module is used to establish a connection channel between the predetermined IoT device and the DPU, and the security protection module is used to encrypt and decrypt the data transmitted between the predetermined IoT device and the DPU. It can be seen that it can play a certain role in security protection, thereby solving the technical problem of low security when conducting data communication in the related technology.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

图1是根据本发明实施例的数据通讯方法的流程图;FIG1 is a flow chart of a data communication method according to an embodiment of the present invention;

图2是本发明可选实施方式提供的中间件层次化设计图;FIG2 is a diagram of a hierarchical design of middleware provided in an optional embodiment of the present invention;

图3是本发明可选实施方式提供的物联装置与数据通讯芯片连接的示意图;3 is a schematic diagram of the connection between an IoT device and a data communication chip provided in an optional embodiment of the present invention;

图4是本发明可选实施方式提供的多组物联装置-DPU组合设备之间的数据传输示意图;FIG4 is a schematic diagram of data transmission between multiple groups of IoT devices-DPU combination devices provided in an optional embodiment of the present invention;

图5是根据本发明实施例的数据通讯装置的结构框图。FIG. 5 is a structural block diagram of a data communication device according to an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:

边缘物联装置:是一种基于物联网(IoT)技术的核心设备,主要用于物联网感知层的数据汇总和安全控制。Edge IoT device: a core device based on Internet of Things (IoT) technology, mainly used for data aggregation and security control at the IoT perception layer.

DPU:全称数据处理单元(Data Processing Unit),是一种专门设计用于处理数据中心中的网络、存储和计算任务的硬件加速器。DPU: The full name is Data Processing Unit, which is a hardware accelerator specially designed to handle network, storage and computing tasks in data centers.

PCIe驱动:PCIe驱动是用于管理和控制PCIe(Peripheral ComponentInterconnect Express,高速串行计算机扩展总线标准)设备在计算机系统中的软件程序。PCIe driver: PCIe driver is a software program used to manage and control PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) devices in a computer system.

信创适配中间件架构:是指为了适应信创(信息技术应用创新)环境和需求而设计和优化的中间件软件架构。它主要用于在信创生态系统中,实现不同软硬件平台之间的互联互通、数据交换和业务协同。Trusted innovation adaptation middleware architecture: refers to the middleware software architecture designed and optimized to adapt to the trusted innovation (information technology application innovation) environment and needs. It is mainly used in the trusted innovation ecosystem to achieve interconnection, data exchange and business collaboration between different software and hardware platforms.

实施例Example

根据本发明实施例,提供了一种数据通讯芯片,包括:According to an embodiment of the present invention, there is provided a data communication chip, comprising:

目标中间件与安全防护组件,Target middleware and security protection components,

目标中间件包括数据处理单元DPU层,底层通信驱动层,系统适配层,The target middleware includes the data processing unit DPU layer, the underlying communication driver layer, and the system adaptation layer.

其中,DPU层与底层通信驱动层连接,底层通信驱动层与系统适配层连接,Among them, the DPU layer is connected to the underlying communication driver layer, and the underlying communication driver layer is connected to the system adaptation layer.

DPU层中包括DPU;The DPU layer includes a DPU;

可选地,DPU层:该层卸载物联装置的安全防护业务和网络传输业务,通过硬件实现,提高安全性和处理效率。Optionally, DPU layer: This layer offloads the security protection business and network transmission business of the IoT device, and is implemented through hardware to improve security and processing efficiency.

底层通信驱动层为对目标通信协议进行封装后得到的层,目标通信协议包括数据通讯系统内部通讯的第一驱动对应的通信协议,以及数据通讯系统对外通信的第二驱动对应的通信协议;The bottom communication driver layer is a layer obtained by encapsulating the target communication protocol, and the target communication protocol includes a communication protocol corresponding to a first driver for internal communication of the data communication system and a communication protocol corresponding to a second driver for external communication of the data communication system;

可选地,底层通信驱动层:该层主要对物联装置和DPU内部通信的PCIe驱动和物联装置对外通信的RDMA等通信协议进行适配封装。针对PCIe驱动,面向国产操作系统,基于开源Linux设备驱动模型开发;针对RDMA等通信协议,物联装置通过DPU提供的RDMA协议栈和操作系统提供的共享内存相关接口实现数据收发。Optionally, the underlying communication driver layer: This layer mainly adapts and encapsulates the PCIe driver for internal communication between the IoT device and the DPU and the RDMA and other communication protocols for external communication of the IoT device. For the PCIe driver, it is developed based on the open source Linux device driver model for domestic operating systems; for communication protocols such as RDMA, the IoT device implements data transmission and reception through the RDMA protocol stack provided by the DPU and the shared memory related interfaces provided by the operating system.

系统适配层包括信息库模块,安全防护模块,信息库模块用于建立预定物联装置与DPU之间的连接通道,安全防护模块用于对预定物联装置与DPU之间传输的数据进行加解密防护。The system adaptation layer includes an information library module and a security protection module. The information library module is used to establish a connection channel between the predetermined IoT device and the DPU. The security protection module is used to encrypt and decrypt data transmitted between the predetermined IoT device and the DPU.

可选地,系统适配层:通用发布、订阅注册模块用于实现操作系统应用向信息库发送注册信息;信息库模块完成所有发布订阅信息的握手匹配;安全防护模块为上层应用提供可配置可调用的安全防护服务。Optionally, in the system adaptation layer: the general publishing and subscription registration module is used to implement the operating system application sending registration information to the information library; the information library module completes the handshake matching of all publishing and subscription information; the security protection module provides configurable and callable security protection services for upper-layer applications.

可选地,数据通讯芯片中还可以包括中间件接口层:该层提供通用的基于发布订阅机制收发信息的接口和安全能力的配置接口。Optionally, the data communication chip may further include a middleware interface layer: this layer provides a general interface for sending and receiving information based on a publish-subscribe mechanism and a configuration interface for security capabilities.

通过上述设置,本申请提出了一种数据通讯芯片,其中设置了物联装置-DPU信创适配中间件架构,用于物联装置和DPU的信创适配,提供面向物联装置国产操作系统的DPU可调用API,通过消息队列订阅发布机制调用DPU上的通信和安全防护能力,完成卸载物联装置的通信、安全卸载和协同适配。而且其还设置了一个轻量化内嵌式安全防护适配组件。在DPU上实现了轻量化内嵌式的访问控制和安全传输,通过DPU前置安全防护能力实现对物联装置的高效防护。Through the above settings, this application proposes a data communication chip, in which an IoT device-DPU credentialing adaptation middleware architecture is set up, which is used for the credentialing adaptation of IoT devices and DPUs, and provides a DPU callable API for the domestic operating system of IoT devices. The communication and security protection capabilities on the DPU are called through the message queue subscription and publishing mechanism to complete the communication, security uninstallation and collaborative adaptation of the IoT device. In addition, a lightweight embedded security protection adapter component is also set up. Lightweight embedded access control and secure transmission are implemented on the DPU, and efficient protection of the IoT device is achieved through the DPU's front-end security protection capabilities.

本发明实施例提供了一种数据通讯系统,包括:预定物联装置,数据通讯芯片,其中,预定物联装置与数据通讯芯片连接。An embodiment of the present invention provides a data communication system, including: a predetermined Internet of Things device and a data communication chip, wherein the predetermined Internet of Things device is connected to the data communication chip.

在该实施例中,数据通讯系统中包括的预定物联装置与数据通讯芯片相连接,通过物联装置-DPU适配中间件基于发布订阅机制,实现物联装置和DPU之间的通信传输,为物联装置国产操作系统应用和DPU建立底层传输链路实现数据传输。In this embodiment, the predetermined IoT device included in the data communication system is connected to the data communication chip, and the communication transmission between the IoT device and the DPU is realized through the IoT device-DPU adaptation middleware based on the publish-subscribe mechanism, and the underlying transmission link is established between the domestic operating system application of the IoT device and the DPU to realize data transmission.

根据本发明实施例,提供了一种数据通讯方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a data communication method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

图1是根据本发明实施例的数据通讯方法的流程图,如图1所示,该方法包括如下步骤:FIG. 1 is a flow chart of a data communication method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps:

步骤S102,接收发送端发送数据至接收端的数据传输指令,其中,发送端包括以下至少之一:预定物联装置,数据通讯芯片中包括的DPU,接收端包括以下至少之一:预定物联装置,DPU,发送端与接收端不同;Step S102, receiving a data transmission instruction from a transmitting end to send data to a receiving end, wherein the transmitting end includes at least one of the following: a predetermined IoT device, a DPU included in a data communication chip, and the receiving end includes at least one of the following: a predetermined IoT device, a DPU, and the transmitting end is different from the receiving end;

在本申请所提供的步骤S102中,涉及了发送端与接收端,发送端可以为预定物联装置,或者是DPU,接收端为与发送端不同的另一个,两者之间进行数据传输。In step S102 provided in the present application, a transmitting end and a receiving end are involved. The transmitting end may be a predetermined IoT device, or a DPU, and the receiving end may be another end different from the transmitting end, and data is transmitted between the two ends.

可选地,可以是数据通讯芯片插入至预定物联装置上后,两者之间建立连接通道并进行数据传输。Optionally, after the data communication chip is inserted into a predetermined IoT device, a connection channel is established between the two and data transmission is performed.

其中,DPU为数据通讯芯片中所包括的DPU,数据通讯芯片包括目标中间件与安全防护组件,目标中间件包括数据处理单元DPU层,底层通信驱动层,系统适配层,DPU层与底层通信驱动层连接,底层通信驱动层与系统适配层连接,DPU层中包括DPU;底层通信驱动层为对目标通信协议进行封装后得到的层,目标通信协议包括数据通讯系统内部通讯的第一驱动对应的通信协议,以及数据通讯系统对外通信的第二驱动对应的通信协议;系统适配层包括信息库模块,安全防护模块,信息库模块用于建立预定物联装置与DPU之间的连接通道,安全防护模块用于对预定物联装置与DPU之间传输的数据进行加解密防护,以保证数据在物联装置与DPU之间的安全传输。Among them, DPU is the DPU included in the data communication chip, the data communication chip includes target middleware and security protection components, the target middleware includes a data processing unit DPU layer, an underlying communication driver layer, and a system adaptation layer. The DPU layer is connected to the underlying communication driver layer, and the underlying communication driver layer is connected to the system adaptation layer. The DPU layer includes the DPU; the underlying communication driver layer is a layer obtained by encapsulating the target communication protocol, and the target communication protocol includes a communication protocol corresponding to a first driver for internal communication of the data communication system, and a communication protocol corresponding to a second driver for external communication of the data communication system; the system adaptation layer includes an information library module and a security protection module. The information library module is used to establish a connection channel between a predetermined Internet of Things device and the DPU, and the security protection module is used to encrypt and decrypt data transmitted between the predetermined Internet of Things device and the DPU to ensure the secure transmission of data between the Internet of Things device and the DPU.

步骤S104,响应于数据传输指令,获取发送端发送的传输数据与发送端标识;Step S104, in response to the data transmission instruction, obtaining the transmission data and the sender identifier sent by the sender;

在本申请所提供的步骤S104中,涉及了数据传输指令,数据传输指令是一个命令或信号,它启动或触发数据从一个位置(发送端)到另一个位置(接收端)的传输。这个指令可以由用户、应用程序、操作系统或网络协议栈等发出。它可知告知系统现在需要传输数据,并可能包含关于如何传输(例如,使用哪种协议、数据大小、优先级等)的详细信息。In step S104 provided in the present application, a data transmission instruction is involved. The data transmission instruction is a command or signal that starts or triggers the transmission of data from one location (sending end) to another location (receiving end). This instruction can be issued by a user, an application, an operating system, or a network protocol stack, etc. It can inform the system that data needs to be transmitted now, and may contain detailed information about how to transmit (for example, which protocol to use, data size, priority, etc.).

在传输之前,数据可能需要进行一些预处理,如压缩、加密、添加头部信息等。这些处理可以确保数据在传输过程中的效率和安全性。数据通常以某种格式或协议进行打包,以便在传输过程中被正确识别和处理。Before transmission, data may need some preprocessing, such as compression, encryption, adding header information, etc. These processes can ensure the efficiency and security of data during transmission. Data is usually packaged in a certain format or protocol so that it can be correctly identified and processed during transmission.

其中,还涉及了发送端标识,发送端标识是一个唯一或可识别的标签或信息,用于标识数据的来源或发送端。发送端标识对于接收端来说非常重要,因为它可以帮助接收端确定数据的来源、验证数据的真实性,并可能用于路由、计费或其他目的。发送端标识可能是一个IP地址、MAC地址、设备ID、用户名或其他任何形式的唯一标识符。The sender identifier is also involved. The sender identifier is a unique or identifiable label or information used to identify the source or sender of the data. The sender identifier is very important to the receiver because it can help the receiver determine the source of the data, verify the authenticity of the data, and may be used for routing, billing or other purposes. The sender identifier may be an IP address, MAC address, device ID, user name or any other unique identifier.

步骤S106,确定与发送端标识对应的接收端标识;Step S106, determining the receiving end identifier corresponding to the sending end identifier;

在本申请所提供的步骤S106中,涉及了接收端标识,接收端标识是用于标识接收数据包的设备、应用程序或网络节点的信息。与发送端标识相对应,接收端标识也是唯一的,以确保数据包能够准确地被目标接收者接收。In step S106 provided in the present application, a receiving end identifier is involved, which is information used to identify a device, application or network node that receives a data packet. Corresponding to the sending end identifier, the receiving end identifier is also unique to ensure that the data packet can be accurately received by the target recipient.

在网络通信中,许多协议(如TCP/IP、UDP等)都使用地址来标识发送端和接收端。发送端在发送数据包时,会在数据包中包含目标接收端的地址作为接收端标识。例如,在TCP/IP协议中,发送端使用目标主机的IP地址和端口号作为接收端标识。接收端在监听特定端口时,会接收与该端口匹配的数据包。In network communications, many protocols (such as TCP/IP, UDP, etc.) use addresses to identify the sender and receiver. When the sender sends a data packet, it includes the address of the target receiver in the data packet as the receiver identifier. For example, in the TCP/IP protocol, the sender uses the IP address and port number of the target host as the receiver identifier. When the receiver listens to a specific port, it receives data packets that match the port.

在更复杂的应用场景中,发送端和接收端的对应关系可能不是固定的,而是根据应用层逻辑来动态确定的。例如,在分布式系统中,发送端可能需要根据某些条件(如负载均衡、路由策略等)来选择接收端。在这种情况下,发送端可能需要查询一个中心化的服务(如服务注册中心)来获取接收端的地址或标识符。In more complex application scenarios, the correspondence between the sender and the receiver may not be fixed, but dynamically determined according to the application layer logic. For example, in a distributed system, the sender may need to select the receiver based on certain conditions (such as load balancing, routing strategy, etc.). In this case, the sender may need to query a centralized service (such as a service registry) to obtain the address or identifier of the receiver.

步骤S108,通过预定连接通道,发送传输数据至接收端标识对应的接收端。Step S108: sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel.

在本申请提供步骤S108中,预定连接通道是在数据传输之前,发送端和接收端之间建立的一种稳定的通信路径。这通常是通过某种网络协议(如TCP/IP)和相应的配置来实现的。In step S108 provided in the present application, the predetermined connection channel is a stable communication path established between the sending end and the receiving end before data transmission, which is usually achieved through a certain network protocol (such as TCP/IP) and corresponding configuration.

发送端向接收端发起连接请求,通常包括发送端和接收端的标识信息(如IP地址和端口号)。接收端接收到连接请求后,会进行验证并确认连接。这通常涉及到一个或多个握手过程(如TCP的三次握手),以确保双方都已准备好进行数据传输。一旦连接被确认,发送端和接收端之间就建立了一个预定连接通道。这个通道可以用于后续的数据传输。The sender initiates a connection request to the receiver, which usually includes the identification information of the sender and the receiver (such as IP address and port number). After receiving the connection request, the receiver will verify and confirm the connection. This usually involves one or more handshake processes (such as TCP's three-way handshake) to ensure that both parties are ready for data transmission. Once the connection is confirmed, a predetermined connection channel is established between the sender and the receiver. This channel can be used for subsequent data transmission.

使用预定连接通道可以确保数据在发送和接收过程中的可靠性。特别是对于面向连接的协议(如TCP),它提供了数据包的确认机制,确保数据包能够按顺序、无误地到达接收端。Using a scheduled connection channel can ensure the reliability of data during sending and receiving. Especially for connection-oriented protocols (such as TCP), it provides a confirmation mechanism for data packets to ensure that data packets can reach the receiving end in order and without error.

通过上述步骤S102-S108,接收发送端发送数据至接收端的数据传输指令,其中,发送端包括以下至少之一:预定物联装置,DPU,接收端包括以下至少之一:预定物联装置,DPU,发送端与接收端不同;响应于数据传输指令,获取发送端发送的传输数据与发送端标识;确定与发送端标识对应的接收端标识;通过预定连接通道,发送传输数据至接收端标识对应的接收端。即通过特定的预定连接通道,以及对应的标识,才能够进行数据传输,保证数据传输中的安全。此外,DPU位于数据通讯芯片中,数据通讯芯片中包括:目标中间件与安全防护组件,目标中间件包括数据处理单元DPU层,底层通信驱动层,系统适配层,DPU层与底层通信驱动层连接,底层通信驱动层与系统适配层连接,DPU层中包括DPU;底层通信驱动层为对目标通信协议进行封装后得到的层,目标通信协议包括数据通讯系统内部通讯的第一驱动对应的通信协议,以及数据通讯系统对外通信的第二驱动对应的通信协议;系统适配层包括信息库模块,安全防护模块,信息库模块用于建立预定物联装置与DPU之间的连接通道,安全防护模块用于对预定物联装置与DPU之间传输的数据进行加解密防护。可知,其能够起到一定的安全防护作用,进而解决了相关技术中进行数据通讯时,存在安全性较低的技术问题。Through the above steps S102-S108, a data transmission instruction is received from the transmitting end to send data to the receiving end, wherein the transmitting end includes at least one of the following: a predetermined IoT device, DPU, and the receiving end includes at least one of the following: a predetermined IoT device, DPU, and the transmitting end is different from the receiving end; in response to the data transmission instruction, the transmission data and the transmitting end identifier sent by the transmitting end are obtained; the receiving end identifier corresponding to the transmitting end identifier is determined; and the transmission data is sent to the receiving end corresponding to the receiving end identifier through a predetermined connection channel. That is, data transmission can only be carried out through a specific predetermined connection channel and a corresponding identifier to ensure the security of data transmission. In addition, the DPU is located in the data communication chip, and the data communication chip includes: target middleware and security protection components, the target middleware includes a data processing unit DPU layer, a bottom communication driver layer, a system adaptation layer, the DPU layer is connected to the bottom communication driver layer, the bottom communication driver layer is connected to the system adaptation layer, and the DPU layer includes the DPU; the bottom communication driver layer is a layer obtained by encapsulating the target communication protocol, and the target communication protocol includes the communication protocol corresponding to the first driver for internal communication of the data communication system, and the communication protocol corresponding to the second driver for external communication of the data communication system; the system adaptation layer includes an information library module and a security protection module, the information library module is used to establish a connection channel between the predetermined IoT device and the DPU, and the security protection module is used to encrypt and decrypt the data transmitted between the predetermined IoT device and the DPU. It can be seen that it can play a certain role in security protection, thereby solving the technical problem of low security when conducting data communication in the relevant technology.

作为一种可选的实施例,通过预定连接通道,发送传输数据至接收端标识对应的接收端之前,还包括:获取预定物联装置发送的第一建联数据,以及DPU发送的第二建联数据,其中,第一建联数据中包括第一任务主题名与物联装置标识,第二建联数据中包括第二任务主题名与DPU端口标识;基于第一任务主题名与第二任务主题名,对预定物联装置与DPU进行匹配,得到匹配结果;在匹配成功的情况下,基于第一建联数据与第二建联数据,建立预定物联装置与DPU之间的预定连接通道;反馈匹配结果至预定物联装置,以使预定物联装置通过连接通道与DPU进行数据传输。As an optional embodiment, before sending the transmission data to the receiving end corresponding to the receiving end identifier through the predetermined connection channel, it also includes: obtaining the first connection data sent by the predetermined IoT device and the second connection data sent by the DPU, wherein the first connection data includes the first task subject name and the IoT device identifier, and the second connection data includes the second task subject name and the DPU port identifier; based on the first task subject name and the second task subject name, matching the predetermined IoT device and the DPU to obtain a matching result; if the match is successful, establishing a predetermined connection channel between the predetermined IoT device and the DPU based on the first connection data and the second connection data; and feeding back the matching result to the predetermined IoT device, so that the predetermined IoT device can transmit data with the DPU through the connection channel.

在该实施例中,说明了在数据传输之前,建立数据连接的过程,In this embodiment, the process of establishing a data connection before data transmission is described.

以预定物联装置为接收端,DPU为发送端的情况下,建立物联装置与DPU之间的数据传输链路主要包含以下步骤。发布者P(同上述预定物联装置中的应用)获取通信标识rioId_host1(同上述物联装置标识),将主题名topic Name(同上述第一任务主题名)与通信标识rioId_host1一起发给中间件的信息库(即通讯数据芯片中的中间件获取了预定物联装置发送的第一建联数据)。DPU将主题名topic Name(同上述第二任务主题名)与DPU收发端口rioId_dpu(同上述DPU端口标识)一起发给中间件的信息库(即通讯数据芯片中的中间件获取了DPU发送的第二建联数据)。信息库收到发布者P的发布信息和DPU的订阅信息后,通过主题topic Name完成匹配,然后将订阅信息反馈给发布者P;发布者P收到订阅信息后,开放发送窗口,握手成功建立通道,以准备后续发送信息。上述为物联装置发送信息,DPU收到信息时的发布订阅匹配原理,当DPU发送信息,物联装置收信息时,匹配原理类似。With the predetermined IoT device as the receiving end and the DPU as the sending end, establishing a data transmission link between the IoT device and the DPU mainly includes the following steps. The publisher P (the same as the application in the predetermined IoT device) obtains the communication identifier rioId_host1 (the same as the IoT device identifier), and sends the topic name topic Name (the same as the first task topic name) and the communication identifier rioId_host1 to the information library of the middleware (that is, the middleware in the communication data chip obtains the first connection data sent by the predetermined IoT device). The DPU sends the topic name topic Name (the same as the second task topic name) and the DPU transceiver port rioId_dpu (the same as the DPU port identifier) to the information library of the middleware (that is, the middleware in the communication data chip obtains the second connection data sent by the DPU). After the information library receives the publishing information of the publisher P and the subscription information of the DPU, it completes the matching through the topic topic Name, and then feeds back the subscription information to the publisher P; after the publisher P receives the subscription information, it opens the sending window, and the handshake successfully establishes the channel to prepare for the subsequent sending of information. The above is the publish-subscribe matching principle when the IoT device sends information and the DPU receives the information. When the DPU sends information and the IoT device receives the information, the matching principle is similar.

作为一种可选的实施例,通过预定连接通道,发送传输数据至接收端标识对应的接收端,包括:在发送端为预定物联装置,接收端为DPU的情况下,获取传输数据,并将传输数据存储至数据缓冲区;将传输数据的首地址与数据长度存入地址缓冲区;依据地址缓冲区中所记录的首地址,从数据缓冲区中调取传输数据,并通过预定连接通道,发送传输数据至接收端标识对应的接收端发送至DPU。As an optional embodiment, transmission data is sent to a receiving end corresponding to a receiving end identifier through a predetermined connection channel, including: when the sending end is a predetermined IoT device and the receiving end is a DPU, transmission data is obtained and stored in a data buffer; the first address and data length of the transmission data are stored in an address buffer; based on the first address recorded in the address buffer, transmission data is retrieved from the data buffer, and the transmission data is sent to the receiving end corresponding to the receiving end identifier and to the DPU through a predetermined connection channel.

在该实施例中,说明了在发送端为预定物联装置,接收端为DPU的情况下的数据传输的过程。即预定物联装置负责采集数据。采集到的数据传输到发送端的数据缓冲区中,等待进一步处理。发送端将传输数据的首地址(即数据在数据缓冲区中的起始位置)和数据长度(即数据的字节数)记录到地址缓冲区中。这一步是为了后续能够准确地从数据缓冲区中调取所需的数据。发送端依据地址缓冲区中所记录的首地址,从数据缓冲区中调取传输数据。通过预定连接通道(可能是有线或无线的网络连接),将调取的数据发送至接收端标识对应的接收端(即DPU)。In this embodiment, the process of data transmission is described when the sending end is a predetermined IoT device and the receiving end is a DPU. That is, the predetermined IoT device is responsible for collecting data. The collected data is transmitted to the data buffer of the sending end, waiting for further processing. The sending end records the first address of the transmission data (that is, the starting position of the data in the data buffer) and the data length (that is, the number of bytes of the data) in the address buffer. This step is to be able to accurately retrieve the required data from the data buffer later. The sending end retrieves the transmission data from the data buffer based on the first address recorded in the address buffer. Through a predetermined connection channel (which may be a wired or wireless network connection), the retrieved data is sent to the receiving end (that is, the DPU) corresponding to the receiving end identifier.

需要说明的是,在数据发送之前,发送端可以对数据进行校验,确保数据的完整性和准确性。校验方法可能包括CRC(循环冗余校验)、MD5或SHA等。如果传输的数据量较大,为了提高传输效率和减少带宽占用,发送端可以对数据进行压缩。压缩算法可以根据数据的特性和传输要求来选择,如gzip、zlib等。It should be noted that before sending data, the sender can verify the data to ensure the integrity and accuracy of the data. The verification method may include CRC (cyclic redundancy check), MD5 or SHA. If the amount of data to be transmitted is large, in order to improve transmission efficiency and reduce bandwidth usage, the sender can compress the data. The compression algorithm can be selected according to the characteristics of the data and transmission requirements, such as gzip, zlib, etc.

还需要说明的是,如果发送端和接收端之间存在数据传输的速率不匹配,可能会导致数据丢失或缓冲区溢出。因此,需要实施流量控制机制,如滑动窗口协议、停等协议等,以确保数据的稳定传输。It should also be noted that if there is a mismatch in the data transmission rate between the sender and the receiver, data loss or buffer overflow may occur. Therefore, it is necessary to implement flow control mechanisms such as sliding window protocols and stop-and-wait protocols to ensure stable data transmission.

举例说明,物联装置发送信息给DPU时,发送者包含一个统一的数据缓冲区DataBuf_send和地址缓冲区AddrFifo。首先在发送缓冲区DataBuf_send通过PCIePreWrite申请一段空间,存放将要发送的数据;待数据放入DataBuf_send后,通过PCIeWrite将该段数据的首地址和长度放入AddrFifo内;发送任务通过读取地址缓冲区AddrFifo中的地址列表逐个发送,发送的参数除了数据首地址和长度,还包括数据包头中数据的目的通信标识;发送完成后,会紧接着发送一个中断给收端DPU,以告知消息发送完毕。For example, when the IoT device sends information to the DPU, the sender includes a unified data buffer DataBuf_send and address buffer AddrFifo. First, a space is requested in the sending buffer DataBuf_send through PCIePreWrite to store the data to be sent; after the data is put into DataBuf_send, the first address and length of the data segment are put into AddrFifo through PCIeWrite; the sending task reads the address list in the address buffer AddrFifo and sends it one by one. In addition to the data first address and length, the parameters sent also include the destination communication identifier of the data in the data packet header; after the sending is completed, an interrupt will be sent to the receiving end DPU to inform that the message has been sent.

作为一种可选的实施例,通过预定连接通道,发送传输数据至接收端标识对应的接收端之后,还包括:在发送端为DPU,接收端为预定物联装置的情况下,确定与传输数据对应的任务主题名;将传输数据发送至与任务主题名对应的存储区域中。As an optional embodiment, after sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel, it also includes: when the sending end is a DPU and the receiving end is a predetermined IoT device, determining the task subject name corresponding to the transmission data; and sending the transmission data to a storage area corresponding to the task subject name.

在该实施例中,说明了在发送端为DPU,接收端为预定物联装置的情况下的数据传输的过程。在DPU端,首先需要确定与传输数据对应的任务主题名。这个任务主题名通常是预定义的,用于标识特定的数据类型、目的或应用场景。任务主题名可以是一个简单的字符串,也可以是一个包含更多元数据的复合标识符。一旦确定了任务主题名,DPU会将传输数据发送至与该主题名对应的存储区域或消息队列中。这个存储区域或消息队列通常是由一个中间件(如消息代理、消息服务器或物联网平台)提供的,用于在DPU和物联装置之间传递消息。In this embodiment, the process of data transmission is described when the sending end is a DPU and the receiving end is a predetermined IoT device. On the DPU side, it is first necessary to determine the task subject name corresponding to the transmission data. This task subject name is usually predefined and is used to identify a specific data type, purpose, or application scenario. The task subject name can be a simple string or a composite identifier containing more metadata. Once the task subject name is determined, the DPU will send the transmission data to the storage area or message queue corresponding to the subject name. This storage area or message queue is usually provided by a middleware (such as a message agent, message server, or IoT platform) for transmitting messages between the DPU and the IoT device.

举例说明,物联装置从DPU收信息时,收端对应DPU发送者有收取缓冲区DataBuf_recv_i,对应每一个订阅的主题各有一个地址缓冲区AddrFifo_j。收端在收到中断之后,解析数据地址;读取收到的数据包头,获取该数据对应的主题信息,将该段数据的首地址和长度存入相应主题在收数节点上对应的地址缓冲区;物联装置上的应用通过PCIeRead获取AddrFifo_j中相应数据的首地址和长度;数据使用完毕后,通过PCIePostRead释放数据空间。For example, when the IoT device receives information from the DPU, the receiving end has a receiving buffer DataBuf_recv_i corresponding to the DPU sender, and an address buffer AddrFifo_j corresponding to each subscribed topic. After receiving the interrupt, the receiving end parses the data address; reads the received data packet header, obtains the topic information corresponding to the data, and stores the first address and length of the data segment into the address buffer corresponding to the corresponding topic on the receiving node; the application on the IoT device obtains the first address and length of the corresponding data in AddrFifo_j through PCIeRead; after the data is used, the data space is released through PCIePostRead.

作为一种可选的实施例,通过预定连接通道,发送传输数据至接收端标识对应的接收端,包括:对传输数据进行加密处理,得到加密传输数据;通过预定连接通道,发送加密传输数据至接收端标识对应的接收端。As an optional embodiment, sending transmission data to a receiving end corresponding to a receiving end identifier through a predetermined connection channel includes: encrypting the transmission data to obtain encrypted transmission data; sending the encrypted transmission data to a receiving end corresponding to the receiving end identifier through a predetermined connection channel.

在该实施例中,说明了可以对传输数据进行预定的处理,为了保证数据传输的安全性,发送端可以对数据进行加密处理。接收端(DPU)在接收到数据后,需要进行相应的解密操作,以恢复原始数据。在数据传输过程中,加密处理是确保数据安全性的关键步骤。通过加密,可以防止数据在传输过程中被非法截获、篡改或泄露,保护数据的机密性、完整性和真实性。In this embodiment, it is explained that the transmission data can be processed in a predetermined manner. In order to ensure the security of data transmission, the sending end can encrypt the data. After receiving the data, the receiving end (DPU) needs to perform corresponding decryption operations to restore the original data. In the process of data transmission, encryption processing is a key step to ensure data security. Through encryption, data can be prevented from being illegally intercepted, tampered with or leaked during transmission, and the confidentiality, integrity and authenticity of the data can be protected.

基于上述实施例及可选实施例,提供了一种可选实施方式,下面具体说明。Based on the above embodiments and optional embodiments, an optional implementation is provided, which is described in detail below.

本发明可选实施方式提出了一种数据通讯芯片,其中设置了物联装置-DPU信创适配中间件架构,用于物联装置和DPU的信创适配,提供面向物联装置国产操作系统的DPU可调用API,通过消息队列订阅发布机制调用DPU上的通信和安全防护能力,完成卸载物联装置的通信、安全卸载和协同适配。而且其还设置了一个轻量化内嵌式安全防护适配组件。在DPU上实现了轻量化内嵌式的访问控制和安全传输,通过DPU前置安全防护能力实现对物联装置的高效防护。An optional implementation of the present invention proposes a data communication chip, in which an IoT device-DPU credentialing adaptation middleware architecture is set up, which is used for credentialing adaptation of IoT devices and DPUs, provides a DPU callable API for the domestic operating system of IoT devices, and calls the communication and security protection capabilities on the DPU through the message queue subscription and publishing mechanism to complete the communication, security uninstallation and collaborative adaptation of the IoT device. In addition, a lightweight embedded security protection adapter component is set up. Lightweight embedded access control and secure transmission are implemented on the DPU, and efficient protection of the IoT device is achieved through the DPU's front-end security protection capabilities.

本发明可选实施方式提出的物联装置-DPU信创适配中间件通过软硬结合方式设计物联装置与DPU的安全协同适配方案,中间件为上层物联装置国产操作系统提供通信传输链路和可调用API,满足物联装置通信链路统一接入和数据可靠收发需求,为上层应用屏蔽DPU复杂的通信链路,提供统一、透明的数据传输接口,同时适配各种DPU安全传输协议栈,使国产化操作系统适配DPU信息传输分发能力,并为新型电力系统业务信息传输和数据安全提供支撑。The IoT device-DPU information innovation adaptation middleware proposed in the optional implementation mode of the present invention designs a secure collaborative adaptation scheme for the IoT device and the DPU by combining software and hardware. The middleware provides a communication transmission link and a callable API for the domestic operating system of the upper-level IoT device, meeting the requirements of unified access to the communication link of the IoT device and reliable data reception and transmission, shielding the complex communication link of the DPU for the upper-level application, providing a unified and transparent data transmission interface, and adapting to various DPU security transmission protocol stacks at the same time, so that the domestic operating system adapts to the DPU information transmission and distribution capabilities, and provides support for the business information transmission and data security of the new power system.

本发明可选实施方式提出了一种面向物联装置与DPU的信创适配中间件设计,其主要具有几个特点:(1)应用软件间的数据传输采用发布订阅机制,使得应用无需关注数据的来源和去向,支持系统内多个应用松耦合集成;(2)提供统一的数据收发接口,支持物联装置和DPU高效稳定交互,提升了应用层软件开发效率。(3)通过设置轻量化内嵌式安全防护适配组件,在物联装置的DPU卡上部署轻量化内嵌式安全防护适配组件,接收来自用户下发的安全策略。信创适配中间件统一发送的流量和接收的流量都需要先经过安全防护组件处理,从而有效地保护操作系统及上层应用的安全运行,也能有效屏蔽恶意攻击者发送病毒或攻击流量。在安全防护组件中内嵌轻量化的访问控制策略和硬件实现的加密方法,从而实现物联装置轻量化安全防护。(4)轻量化内嵌式安全防护适配组件提供配置API,使上层应用根据自身需求进行DPU访问控制过滤规则自定义,并通过信创适配中间件调用安全防护适配组件配置API下发给DPU,从而实现灵活的访问控制过滤规则和策略,对具有特殊特征的报文进行过滤。通过定义访问控制规则来帮助保护网络上面向通信的工作负载和内部数据传输负载,保护物联装置上的操作系统和上层应用之间的流量,以及操作系统内部虚拟子网上的应用之间的流量。(5)轻量化内嵌式安全防护适配组件通过硬件加密实现数据安全传输的信创适配,通过触发IPSEC IKE协议和目的端DPU卡进行协商,完成身份认证和加密参数协商,隧道建立。当加密隧道完成建立后,将数据加密并传递给网络加速引擎发给目的端DPU。目的端DPU收到IPSEC数据报文后,完成数据解密,并通过信息中间件发送给操作系统内的应用,从而完成了数据加密传输流程。The optional implementation mode of the present invention proposes a credible innovation adaptation middleware design for IoT devices and DPUs, which has several main features: (1) The data transmission between application software adopts a publish-subscribe mechanism, so that the application does not need to pay attention to the source and destination of the data, and supports the loose coupling integration of multiple applications in the system; (2) It provides a unified data sending and receiving interface to support efficient and stable interaction between IoT devices and DPUs, thereby improving the efficiency of application layer software development. (3) By setting a lightweight embedded security protection adapter component, a lightweight embedded security protection adapter component is deployed on the DPU card of the IoT device to receive security policies issued by the user. The traffic uniformly sent and received by the credible innovation adaptation middleware needs to be processed by the security protection component first, thereby effectively protecting the safe operation of the operating system and upper-layer applications, and can also effectively shield malicious attackers from sending viruses or attack traffic. Lightweight access control strategies and hardware-implemented encryption methods are embedded in the security protection component to achieve lightweight security protection for IoT devices. (4) The lightweight embedded security protection adapter component provides a configuration API, allowing the upper-layer application to customize the DPU access control filtering rules according to its own needs, and calls the security protection adapter component configuration API through the trusted innovation adapter middleware to send it to the DPU, thereby realizing flexible access control filtering rules and policies, and filtering messages with special characteristics. By defining access control rules, it helps to protect the communication-oriented workload and internal data transmission load on the network, protect the traffic between the operating system and the upper-layer application on the IoT device, and the traffic between applications on the virtual subnet inside the operating system. (5) The lightweight embedded security protection adapter component implements trusted innovation adaptation for data security transmission through hardware encryption, triggers the IPSEC IKE protocol and negotiates with the destination DPU card, completes identity authentication and encryption parameter negotiation, and establishes a tunnel. When the encrypted tunnel is established, the data is encrypted and passed to the network acceleration engine to be sent to the destination DPU. After the destination DPU receives the IPSEC data message, it completes the data decryption and sends it to the application in the operating system through the information middleware, thus completing the data encryption transmission process.

物联装置-DPU信创适配中间件采用层次化设计,主要包括DPU层、底层通信驱动层、系统适配层和中间件接口层,图2是本发明可选实施方式提供的中间件层次化设计图,图3是本发明可选实施方式提供的物联装置与数据通讯芯片连接的示意图,如图2,包括以下几层:The IoT device-DPU xinchuang adaptation middleware adopts a hierarchical design, which mainly includes a DPU layer, an underlying communication driver layer, a system adaptation layer and a middleware interface layer. FIG2 is a hierarchical design diagram of the middleware provided by an optional embodiment of the present invention. FIG3 is a schematic diagram of the connection between the IoT device and the data communication chip provided by an optional embodiment of the present invention, as shown in FIG2, including the following layers:

DPU层:该层卸载物联装置的安全防护业务和网络传输业务,通过硬件实现,提高安全性和处理效率。DPU layer: This layer offloads the security protection business and network transmission business of the IoT device, and is implemented through hardware to improve security and processing efficiency.

底层通信驱动层:该层主要对物联装置和DPU内部通信的PCIe驱动与物联装置对外通信的RDMA等通信协议进行适配封装。针对PCIe驱动,面向国产操作系统,基于开源Linux设备驱动模型开发;针对RDMA等通信协议,物联装置通过DPU提供的RDMA协议栈和操作系统提供的共享内存相关接口实现数据收发。Bottom layer communication driver layer: This layer mainly adapts and encapsulates the PCIe driver for internal communication between IoT devices and DPU and the RDMA and other communication protocols for external communication of IoT devices. For PCIe driver, it is developed based on the open source Linux device driver model for domestic operating systems; for RDMA and other communication protocols, IoT devices realize data transmission and reception through the RDMA protocol stack provided by DPU and the shared memory related interfaces provided by the operating system.

系统适配层:通用发布、订阅注册模块用于实现操作系统应用向信息库发送注册信息;信息库模块完成所有发布订阅信息的握手匹配;安全防护模块为上层应用提供可配置可调用的安全防护服务。System adaptation layer: The general publishing and subscription registration module is used to implement the operating system application to send registration information to the information library; the information library module completes the handshake matching of all publishing and subscription information; the security protection module provides configurable and callable security protection services for upper-level applications.

中间件接口层:该层提供通用的基于发布订阅机制收发信息的接口和安全能力的配置接口。Middleware interface layer: This layer provides a general interface for sending and receiving information based on the publish-subscribe mechanism and a configuration interface for security capabilities.

如图3所示,物联装置与数据通讯芯片通过物理连接的方式连接起来,以实现数据的传输。As shown in FIG3 , the IoT device and the data communication chip are connected through a physical connection to achieve data transmission.

基于上述物联装置-DPU信创适配中间件架构,设置了物联装置-DPU消息发布订阅机制。Based on the above-mentioned IoT device-DPU information innovation adaptation middleware architecture, an IoT device-DPU message publishing and subscription mechanism is set up.

物联装置-DPU信创适配中间件基于发布订阅机制实现物联装置和DPU之间的通信传输,为物联装置国产操作系统应用和DPU建立底层传输链路实现数据传输。建立物联装置与DPU之间的数据传输链路主要包含以下步骤。发布者P获取通信标识rioId_host1,将主题名topicName与通信标识rioId_host1一起发给中间件的信息库;DPU将主题名topicName与DPU收发端口rioId_dpu一起发给中间件的信息库;信息库收到发布者P的发布信息和DPU的订阅信息后,通过主题topicName完成匹配,然后将订阅信息反馈给发布者P;发布者P收到订阅信息后,开放发送窗口,准备发送信息。上述为物联装置发送信息,DPU收到信息时的发布订阅匹配原理,当DPU发送信息,物联装置收信息时,匹配原理类似。The IoT device-DPU Xinchuang adaptation middleware realizes the communication transmission between the IoT device and the DPU based on the publish-subscribe mechanism, and establishes the underlying transmission link for the IoT device's domestic operating system application and the DPU to realize data transmission. The establishment of the data transmission link between the IoT device and the DPU mainly includes the following steps. The publisher P obtains the communication identifier rioId_host1, and sends the topic name topicName and the communication identifier rioId_host1 to the information library of the middleware; the DPU sends the topic name topicName and the DPU transceiver port rioId_dpu to the information library of the middleware; after the information library receives the publisher P's publishing information and the DPU's subscription information, it completes the matching through the topic topicName, and then feeds back the subscription information to the publisher P; after the publisher P receives the subscription information, it opens the sending window and prepares to send information. The above is the publish-subscribe matching principle when the IoT device sends information and the DPU receives information. When the DPU sends information and the IoT device receives information, the matching principle is similar.

基于数据传输链路进行物联装置和DPU的信息收发。两者间的信息收发包含两部分:物联装置发送信息给DPU,物联装置从DPU收到信息。物联装置发送信息给DPU时,发送者包含一个统一的数据缓冲区DataBuf_send和地址缓冲区AddrFifo。首先在发送缓冲区DataBuf_send通过PCIePreWrite申请一段空间,存放将要发送的数据;待数据放入DataBuf_send后,通过PCIeWrite将该段数据的首地址和长度放入AddrFifo内;发送任务通过读取地址缓冲区AddrFifo中的地址列表逐个发送,发送的参数除了数据首地址和长度,还包括数据包头中数据的目的通信标识;发送完成后,会紧接着发送一个中断给收端DPU。The information between the IoT device and the DPU is sent and received based on the data transmission link. The information transmission and reception between the two includes two parts: the IoT device sends information to the DPU, and the IoT device receives information from the DPU. When the IoT device sends information to the DPU, the sender includes a unified data buffer DataBuf_send and an address buffer AddrFifo. First, a space is requested in the sending buffer DataBuf_send through PCIePreWrite to store the data to be sent; after the data is put into DataBuf_send, the first address and length of the data segment are put into AddrFifo through PCIeWrite; the sending task is sent one by one by reading the address list in the address buffer AddrFifo. In addition to the data first address and length, the parameters sent also include the destination communication identifier of the data in the data packet header; after the sending is completed, an interrupt will be sent to the receiving end DPU.

物联装置从DPU收信息时,收端对应DPU发送者有收取缓冲区DataBuf_recv_i,对应每一个订阅的主题各有一个地址缓冲区AddrFifo_j。收端在收到中断之后,解析数据地址;读取收到的数据包头,获取该数据对应的主题信息,将该段数据的首地址和长度存入相应主题在收数节点上对应的地址缓冲区;物联装置上的应用通过PCIeRead获取AddrFifo_j中相应数据的首地址和长度;数据使用完毕后,通过PCIePostRead释放数据空间。When the IoT device receives information from the DPU, the receiving end has a receiving buffer DataBuf_recv_i corresponding to the DPU sender, and an address buffer AddrFifo_j corresponding to each subscribed topic. After receiving the interrupt, the receiving end parses the data address; reads the received data packet header, obtains the topic information corresponding to the data, and stores the first address and length of the data segment into the address buffer corresponding to the corresponding topic on the receiving node; the application on the IoT device obtains the first address and length of the corresponding data in AddrFifo_j through PCIeRead; after the data is used, the data space is released through PCIePostRead.

在具体实现过程中,通信过程由PCIE-DPU设备驱动支持。该驱动主要包含创建dma字符驱动模块实例、创建并初始化pci_driver总线实例,注册dma设备驱动接口函数及注销dma字符驱动模块等。创建dma字符驱动主要在xdma_mod.c文件中,module_init(xdma_mod_init)函数实现创建,其中xdma_mod_init(void)调用xdma_cdev_init()函数完成具体的注册初始化流程。因为此设备驱动从接口层面来说还是通过PCIE总线来进行通信的,所以必须创建并且初始化pci_driver总线实例。内核提供pci_register_driver()函数来实现总线创建和初始化。注册dma字符设备驱动接口首先要调用alloc_chrdev_region()函数向系统动态申请设备节点,申请完成后,会把得到的设备号放入第一个参数dev中。file_operation结构体中的成员函数是字符设备驱动程序设计的主体内容,这些函数实际会在应用程序的进行Linux的open()、write()、read()、close()等系统调用时最终被内核调用,所以必须实例化此结构体的具体成员函数。接着使用cdev_init()函数将cdev和file_operation建立连接,最后使用cdev_add()函数向系统添加一个cdev,完成字符设备的注册。对于cdev_add()的调用通常发生在字符设备驱动模块加载函数中。注销dma字符驱动模块主要由module_exit(xdma_mod_exit)函数实现创建。其中,xdma_mod_exit()函数完成具体的注销流程。In the specific implementation process, the communication process is supported by the PCIE-DPU device driver. The driver mainly includes creating a dma character driver module instance, creating and initializing a pci_driver bus instance, registering a dma device driver interface function, and unregistering a dma character driver module. The creation of the dma character driver is mainly in the xdma_mod.c file, and the module_init (xdma_mod_init) function implements the creation, where xdma_mod_init (void) calls the xdma_cdev_init () function to complete the specific registration and initialization process. Because this device driver still communicates through the PCIE bus at the interface level, it is necessary to create and initialize the pci_driver bus instance. The kernel provides the pci_register_driver () function to implement bus creation and initialization. To register the dma character device driver interface, you must first call the alloc_chrdev_region () function to dynamically apply for a device node from the system. After the application is completed, the obtained device number will be placed in the first parameter dev. The member functions in the file_operation structure are the main content of the character device driver design. These functions will actually be called by the kernel when the application performs Linux open(), write(), read(), close() and other system calls, so the specific member functions of this structure must be instantiated. Then use the cdev_init() function to establish a connection between cdev and file_operation, and finally use the cdev_add() function to add a cdev to the system to complete the registration of the character device. The call to cdev_add() usually occurs in the character device driver module loading function. The deregistration of the dma character driver module is mainly implemented by the module_exit (xdma_mod_exit) function. Among them, the xdma_mod_exit() function completes the specific deregistration process.

需要说明的是,图4是本发明可选实施方式提供的多组物联装置-DPU组合设备之间的数据传输示意图,如图4所示,在不同DPU之间进行连接时,可以通过加密的方式实现数据传输。It should be noted that Figure 4 is a schematic diagram of data transmission between multiple groups of IoT devices-DPU combination devices provided in an optional embodiment of the present invention. As shown in Figure 4, when connecting between different DPUs, data transmission can be achieved in an encrypted manner.

通过上述可选实施方式,可以达到至少以下几点有益效果:Through the above optional implementation, at least the following beneficial effects can be achieved:

(1)提出了一种物联装置-DPU信创适配中间件架构,用于物联装置和DPU的信创适配,提供面向物联装置国产操作系统的DPU可调用API,通过消息队列订阅发布机制调用DPU上的通信和安全防护能力,完成卸载物联装置的通信、安全卸载和协同适配;(1) A IoT device-DPU credentialing adaptation middleware architecture is proposed for the credentialing adaptation of IoT devices and DPUs. It provides a DPU callable API for the domestic operating system of IoT devices, calls the communication and security protection capabilities on the DPU through the message queue subscription and publishing mechanism, and completes the communication, security offloading and collaborative adaptation of IoT devices.

(2)设计了一个轻量化内嵌式安全防护适配组件。在DPU上实现了轻量化内嵌式的访问控制和安全传输,通过DPU前置安全防护能力实现对物联装置的高效防护;(2) A lightweight embedded security protection adapter component was designed. Lightweight embedded access control and secure transmission were implemented on the DPU, and efficient protection of IoT devices was achieved through the DPU's front-end security protection capabilities;

(3)本发明适用于新型电力系统边缘物联装置国产操作系统的通信和安全业务卸载,并在基于操作系统的物联装置上进行验证。本专利适配装有Linux内核OpenHarmony系统的物联装置,基于鸿蒙系统的驱动框架(HDF)进行DPU信创适配中间件和驱动开发。信创适配中间件为物联装置提供:DPU与服务器相连接的PCIE通道;在PCIE通道上承载满足virtio规范的网络、存储设备功能;为服务器提供连接外部网络的以太接口。提供virtio-net、virtio-blk设备与以太接口间数据交换互联逻辑。安全组件业务完成安全业务卸载处理,提供网络业务数据通信、存储数据通信加解密处理和访问控制处理。采用解耦设计思路,将传统DPU逻辑分解为承担物联装置DPU间通信和对外通信功能部分的信创适配中间件、完成安全业务卸载加速处理的安全适配组件两部分,并且为安全能力可升级考虑,支持通过信创适配中间件提供的API配置安全适配组件,实现安全能力在线升级适配。(3) The present invention is applicable to the communication and security service unloading of the domestic operating system of the new power system edge IoT device, and is verified on the IoT device based on the operating system. This patent is adapted to the IoT device equipped with the Linux kernel OpenHarmony system, and the DPU trust creation adaptation middleware and driver development are carried out based on the driver framework (HDF) of the Hongmeng system. The trust creation adaptation middleware provides the IoT device with: a PCIE channel connecting the DPU to the server; carrying network and storage device functions that meet the virtio specification on the PCIE channel; and providing the server with an Ethernet interface connected to the external network. Provide data exchange and interconnection logic between virtio-net, virtio-blk devices and Ethernet interfaces. The security component service completes the security service unloading processing, and provides network service data communication, storage data communication encryption and decryption processing, and access control processing. By adopting a decoupled design approach, the traditional DPU logic is decomposed into two parts: the trusted innovation adapter middleware, which is responsible for the communication between DPUs and external communication functions of IoT devices, and the security adapter component, which completes the security business offloading and acceleration processing. In addition, in order to consider the upgradeability of security capabilities, it supports the configuration of security adapter components through the API provided by the trusted innovation adapter middleware, so as to realize online upgrade and adaptation of security capabilities.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.

实施例2Example 2

根据本发明实施例,还提供了一种用于实施上述数据通讯方法的装置,图5是根据本发明实施例的数据通讯装置的结构框图,如图5所示,该装置包括:接收模块502,获取模块504,确定模块506和发送模块508,下面对该装置进行详细说明。According to an embodiment of the present invention, a device for implementing the above-mentioned data communication method is also provided. Figure 5 is a structural block diagram of the data communication device according to an embodiment of the present invention. As shown in Figure 5, the device includes: a receiving module 502, an acquisition module 504, a determination module 506 and a sending module 508. The device is described in detail below.

接收模块502,用于接收发送端发送数据至接收端的数据传输指令,其中,所述发送端包括以下至少之一:预定物联装置,数据通讯芯片中包括的DPU,所述接收端包括以下至少之一:所述预定物联装置,所述DPU,所述发送端与所述接收端不同;获取模块504,连接于上述接收模块502,用于响应于所述数据传输指令,获取发送端发送的传输数据与发送端标识;确定模块506,连接于上述获取模块504,用于确定与所述发送端标识对应的接收端标识;发送模块508,连接于上述确定模块506,用于通过预定连接通道,发送所述传输数据至所述接收端标识对应的接收端。A receiving module 502 is used to receive a data transmission instruction from a sending end to send data to a receiving end, wherein the sending end includes at least one of the following: a predetermined Internet of Things device, a DPU included in a data communication chip, and the receiving end includes at least one of the following: the predetermined Internet of Things device, the DPU, and the sending end is different from the receiving end; an acquisition module 504 is connected to the above-mentioned receiving module 502, and is used to respond to the data transmission instruction to obtain the transmission data and the sending end identifier sent by the sending end; a determination module 506 is connected to the above-mentioned acquisition module 504, and is used to determine the receiving end identifier corresponding to the sending end identifier; a sending module 508 is connected to the above-mentioned determination module 506, and is used to send the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel.

此处需要说明的是,上述接收模块502,获取模块504,确定模块506和发送模块508对应于实施数据通讯方法中的步骤S102至步骤S108,多个模块与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例1所公开的内容。It should be noted here that the above-mentioned receiving module 502, acquisition module 504, determination module 506 and sending module 508 correspond to steps S102 to S108 in implementing the data communication method, and the instances and application scenarios implemented by multiple modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.

根据本发明实施例的另外一个方面,还提供了一种电子设备,包括:处理器;用于存储处理器可执行指令的存储器,其中,处理器被配置为执行指令,以实现上述任一项的数据通讯方法。According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement any one of the above data communication methods.

根据本发明实施例的另外一个方面,还提供了一种计算机可读存储介质,当计算机可读存储介质中的指令由电子设备的处理器执行时,使得电子设备能够执行上述任一项的数据通讯方法。According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute any of the above-mentioned data communication methods.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims (10)

1. A data communication chip, comprising: the target middleware comprises a Data Processing Unit (DPU) layer, a bottom communication driving layer and a system adaptation layer, wherein the DPU layer is connected with the bottom communication driving layer, the bottom communication driving layer is connected with the system adaptation layer, and the DPU layer comprises a Data Processing Unit (DPU);
The bottom communication driving layer is a layer obtained after packaging a target communication protocol, wherein the target communication protocol comprises a communication protocol corresponding to a first driver for internal communication of a data communication system and a communication protocol corresponding to a second driver for external communication of the data communication system;
The system adaptation layer comprises an information base module and a safety protection module, wherein the information base module is used for establishing a connection channel between a preset internet of things device and the DPU, and the safety protection module is used for encrypting and decrypting protection on data transmitted between the preset internet of things device and the DPU.
2. A data communication system, comprising: the data communication chip of claim 1, wherein said predetermined internet of things device is connected to said data communication chip.
3. A method of data communication, comprising:
Receiving a data transmission instruction from a transmitting end to a receiving end, wherein the transmitting end comprises at least one of the following components: the predetermined internet of things device, as set forth in claim 1, the DPU included in the data communication chip, the receiving end including at least one of: the DPU is arranged on the predetermined internet of things device, and the sending end is different from the receiving end;
Responding to the data transmission instruction, and acquiring transmission data sent by a sending end and a sending end identifier;
Determining a receiving end identifier corresponding to the transmitting end identifier;
And sending the transmission data to a receiving end corresponding to the receiving end identifier through a preset connection channel.
4. A method according to claim 3, wherein before sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel, the method further comprises:
Acquiring first construction and connection data sent by the preset internet of things device and second construction and connection data sent by the DPU, wherein the first construction and connection data comprises a first task subject name and an internet of things device identifier, and the second construction and connection data comprises a second task subject name and a DPU port identifier;
based on the first task subject name and the second task subject name, matching the predetermined internet of things device with the DPU to obtain a matching result;
under the condition that the matching is successful, establishing a preset connection channel between the preset internet of things device and the DPU based on the first establishing connection data and the second establishing connection data;
And feeding back the matching result to the predetermined internet of things device so that the predetermined internet of things device performs data transmission with the DPU through the connecting channel.
5. A method according to claim 3, wherein sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel comprises:
When the sending end is the preset internet of things device and the receiving end is the DPU, acquiring the transmission data and storing the transmission data into a data buffer area;
Storing the first address and the data length of the transmission data into an address buffer area;
And according to the head address recorded in the address buffer area, the transmission data is called from the data buffer area, and the transmission data is sent to a receiving end corresponding to the receiving end identifier and is sent to the DPU through a preset connection channel.
6. A method according to claim 3, wherein after transmitting the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel, the method further comprises:
Determining a task subject name corresponding to the transmission data under the condition that a transmitting end is the DPU and a receiving end is the predetermined internet of things device;
And sending the transmission data to a storage area corresponding to the task topic name.
7. A method according to claim 3, wherein sending the transmission data to the receiving end corresponding to the receiving end identifier through a predetermined connection channel comprises:
encrypting the transmission data to obtain encrypted transmission data;
And sending the encrypted transmission data to a receiving end corresponding to the receiving end identifier through the preset connection channel.
8. A data communication apparatus, comprising:
the receiving module is used for receiving a data transmission instruction from a sending end to a receiving end, wherein the sending end comprises at least one of the following components: the predetermined internet of things device, as set forth in claim 1, the DPU included in the data communication chip, the receiving end including at least one of: the DPU is arranged on the predetermined internet of things device, and the sending end is different from the receiving end;
the acquisition module is used for responding to the data transmission instruction and acquiring transmission data sent by the sending end and the identification of the sending end;
the determining module is used for determining a receiving end identifier corresponding to the transmitting end identifier;
And the sending module is used for sending the transmission data to the receiving end corresponding to the receiving end identifier through a preset connection channel.
9. An electronic device, comprising:
A processor;
A memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data communication method of any one of claims 3 to 7.
10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data communication method of any one of claims 3 to 7.
CN202410812405.9A 2024-06-21 2024-06-21 Data communication chip, system, method, device and electronic equipment Pending CN118590517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410812405.9A CN118590517A (en) 2024-06-21 2024-06-21 Data communication chip, system, method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410812405.9A CN118590517A (en) 2024-06-21 2024-06-21 Data communication chip, system, method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN118590517A true CN118590517A (en) 2024-09-03

Family

ID=92534014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410812405.9A Pending CN118590517A (en) 2024-06-21 2024-06-21 Data communication chip, system, method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN118590517A (en)

Similar Documents

Publication Publication Date Title
CN113821310B (en) Data processing method, programmable network card device, physical server and storage medium
US9858214B2 (en) Task offload to a peripheral device
US7685287B2 (en) Method and system for layering an infinite request/reply data stream on finite, unidirectional, time-limited transports
US7089587B2 (en) ISCSI target offload administrator
CN110020955B (en) Online medical insurance information processing method and device, server and user terminal
US20030105951A1 (en) Policy-driven kernel-based security implementation
US7483423B2 (en) Authenticity of communications traffic
US9264495B2 (en) Apparatus and methods for handling network file operations over a fibre channel network
WO2018130079A1 (en) Method for encrypting internet protocol security (ipsec) protocol and network device
CN102118426B (en) Network security payment terminal and network security payment method thereof
US20070101023A1 (en) Multiple task offload to a peripheral device
WO2016155495A1 (en) Data exchange method, apparatus and device
CN110505244A (en) Long-range tunnel access technique gateway and server
CN110233851A (en) A kind of data transmission method and device
CN105491169A (en) Data proxy method and system
CN103166996A (en) Adaptive method, device and system for HTTP connection and HTTPS connection
CN113810397A (en) Protocol data processing method and device
CN117851334A (en) Remote direct memory access method across operating systems and corresponding system
CN100505734C (en) A Method for Realizing External Device Mapping of Network Computer
US11283768B1 (en) Systems and methods for managing connections
CN115967511A (en) Encryption and decryption method and device and computer readable storage medium
CN110958216B (en) Secure online network packet transmission
US20030105952A1 (en) Offload processing for security session establishment and control
CN111835613B (en) Data transmission method of VPN server and VPN server
CN114553602B (en) A kind of soft and hard life aging control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination