CN117319516B - Multi-protocol conversion protocol processing method and device, electronic equipment and medium - Google Patents
Multi-protocol conversion protocol processing method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN117319516B CN117319516B CN202311522891.2A CN202311522891A CN117319516B CN 117319516 B CN117319516 B CN 117319516B CN 202311522891 A CN202311522891 A CN 202311522891A CN 117319516 B CN117319516 B CN 117319516B
- Authority
- CN
- China
- Prior art keywords
- data
- protocol
- field data
- header field
- message
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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
- H04L63/0435—Network 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 wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Communication Control (AREA)
Abstract
本发明涉及一种多协议转换的协议处理方法、装置、电子设备及介质,其先将第一报文数据中的第一报头字段数据转化为第二报头字段数据,然后利用转化之后的第二报头字段数据加密第一报文数据中的第一数据字段数据,得到第二数据字段数据,进而拼接二者以得到发送给目标设备的第二报文数据。目标设备在收到第二报文数据后,仅需采用同样的解密算法根据第二报头字段数据解密第二数据字段数据,便可以得到原始的第一数据字段数据,这样就实现了源设备到目标设备之间,由第一协议到第二协议的转换,使二者能够正常通信。并且转化过程中还实现了加密,达到了不同协议的设备之间的保密通讯的目标。
The present invention relates to a protocol processing method, device, electronic device and medium for multi-protocol conversion, which first converts the first header field data in the first message data into the second header field data, and then uses the converted second header field data to encrypt the first data field data in the first message data to obtain the second data field data, and then splices the two to obtain the second message data sent to the target device. After receiving the second message data, the target device only needs to use the same decryption algorithm to decrypt the second data field data according to the second header field data to obtain the original first data field data, thereby realizing the conversion from the first protocol to the second protocol between the source device and the target device, so that the two can communicate normally. In addition, encryption is also realized in the conversion process, achieving the goal of confidential communication between devices of different protocols.
Description
技术领域Technical Field
本发明涉及智能网络设备技术领域,尤其涉及一种多协议转换的协议处理方法、装置、电子设备及介质。The present invention relates to the technical field of intelligent network equipment, and in particular to a protocol processing method, device, electronic equipment and medium for multi-protocol conversion.
背景技术Background Art
在智能水电站中,为了实现高效运行和管理,需要采集来自多种数据源的数据信息。这些数据源包括但不限于水电站设备的传感器、计量设备以及监控系统等。通过收集和分析这些数据,可以实时了解水电站的状态和性能,并通过智能算法进行预测和优化。因此,智能水电站中的数据采集变得至关重要。In order to achieve efficient operation and management in smart hydropower stations, it is necessary to collect data information from multiple data sources. These data sources include but are not limited to sensors, metering equipment, and monitoring systems of hydropower station equipment. By collecting and analyzing this data, the status and performance of the hydropower station can be understood in real time, and predictions and optimizations can be made through intelligent algorithms. Therefore, data collection in smart hydropower stations becomes crucial.
然而在实际应用中,不同设备所使用的通信协议各异,致使智能水电站的架构设计变得十分复杂和困难。这些设备涵盖了各种生产商、型号和规格,它们之间存在着不同的数据格式和通信规约。而要实现多设备之间的数据交换与共享,就需要克服通信协议不一致的问题。这种协议鸿沟使得系统集成和数据流动变得复杂,需要消耗大量的工程和资源。因此,确保不同设备能够无缝地通信和协作成为了智能水电站设计中的一项重要挑战。However, in actual applications, different devices use different communication protocols, making the architecture design of smart hydropower plants very complex and difficult. These devices cover a variety of manufacturers, models, and specifications, and there are different data formats and communication protocols between them. To achieve data exchange and sharing between multiple devices, it is necessary to overcome the problem of inconsistent communication protocols. This protocol gap makes system integration and data flow complicated, requiring a lot of engineering and resources. Therefore, ensuring that different devices can communicate and collaborate seamlessly has become an important challenge in the design of smart hydropower plants.
此外,因水电站为关乎民生的基础设施,其数据安全也是人们所关注的问题。因此,人们迫切需要一种能够实现多种协议之间转换的协议处理方法,以实现不同协议的设备之间的保密通讯,以降低智能水电站中系统搭建的复杂度同时保证数据安全。In addition, since hydropower stations are infrastructure related to people's livelihood, their data security is also a concern. Therefore, people urgently need a protocol processing method that can realize conversion between multiple protocols to achieve confidential communication between devices with different protocols, so as to reduce the complexity of system construction in smart hydropower stations while ensuring data security.
发明内容Summary of the invention
有鉴于此,有必要提供一种多协议转换的协议处理方法、装置、电子设备及介质,用以解决如何实现不同协议的设备之间的保密通讯的问题。In view of this, it is necessary to provide a protocol processing method, device, electronic device and medium for multi-protocol conversion to solve the problem of how to achieve confidential communication between devices with different protocols.
为达到上述技术目的,本发明采取了以下技术方案:In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
第一方面,本发明提供了一种多协议转换的协议处理方法,包括:In a first aspect, the present invention provides a protocol processing method for multi-protocol conversion, comprising:
获取源设备发出的基于第一协议的第一报文数据,所述第一报文数据包括第一报头字段数据和第一数据字段数据;Acquire first message data based on a first protocol sent by a source device, wherein the first message data includes first header field data and first data field data;
基于所述第一协议和第二协议的报文格式,将所述第一报头字段数据转换为第二报头字段数据;Based on the message formats of the first protocol and the second protocol, converting the first header field data into second header field data;
根据所述第二报头字段数据加密所述第一数据字段数据,得到第二数据字段数据;Encrypt the first data field data according to the second header field data to obtain second data field data;
拼接所述第二报头字段数据和所述第二数据字段数据,得到基于所述第二协议的第二报文数据并发送给目标设备。The second header field data and the second data field data are concatenated to obtain second message data based on the second protocol and send the second message data to the target device.
进一步的,所述基于所述第一协议和第二协议的报文格式,将所述第一报头字段数据转换为第二报头字段数据,包括:Further, the converting the first header field data into the second header field data based on the message format of the first protocol and the second protocol includes:
根据所述第一协议的报文格式和所述第二协议的报文格式,得到所述第一协议和所述第二协议的公有字段;Obtaining common fields of the first protocol and the second protocol according to a message format of the first protocol and a message format of the second protocol;
保存所述第一报头字段数据中的非公有字段的数据;Saving data of non-public fields in the first header field data;
生成所述第二报头字段数据,其中,所述第二报头字段数据中公有字段内填入所述第一报头字段数据中公有字段的数据,所述第二报头字段数据中非公有字段内填入第一预设填充数据。The second header field data is generated, wherein the public fields in the second header field data are filled with the data of the public fields in the first header field data, and the non-public fields in the second header field data are filled with the first preset filling data.
进一步的,所述根据所述第二报头字段数据加密所述第一数据字段数据,得到第二数据字段数据,包括:Further, encrypting the first data field data according to the second header field data to obtain the second data field data includes:
获取至少一个公有字段作为第一加密依据字段;Obtain at least one public field as a first encryption basis field;
根据所述第二报头字段数据中第一加密依据字段内的内容生成第一对称密钥,并基于第一对称加密算法根据所述第一对称密钥加密所述第一数据字段数据,得到所述第二数据字段数据。A first symmetric key is generated according to the content in the first encryption basis field in the second header field data, and the first data field data is encrypted according to the first symmetric key based on a first symmetric encryption algorithm to obtain the second data field data.
进一步的,还包括:Furthermore, it also includes:
获取所述目标设备发出的基于所述第二协议的第三报文数据,所述第三报文数据包括第三报头字段数据和第三数据字段数据;Acquire third message data based on the second protocol sent by the target device, wherein the third message data includes third header field data and third data field data;
基于所述第一协议和所述第二协议的报文格式,将所述第三报头字段数据转换为第四报头字段数据;Based on the message formats of the first protocol and the second protocol, converting the third header field data into fourth header field data;
根据所述第四报头字段数据解密所述第三数据字段数据,得到第四数据字段数据;Decrypt the third data field data according to the fourth header field data to obtain fourth data field data;
拼接所述第四报头字段数据和所述第四数据字段数据,得到基于所述第一协议的第四报文数据并发送给所述源设备。The fourth header field data and the fourth data field data are spliced to obtain fourth message data based on the first protocol and send the fourth message data to the source device.
进一步的,所述第三报文数据为所述第二报文数据对应的响应数据;所述基于所述第一协议和所述第二协议的报文格式,将所述第三报头字段数据转换为第四报头字段数据,包括:Further, the third message data is response data corresponding to the second message data; and the message format based on the first protocol and the second protocol, converting the third header field data into fourth header field data, includes:
根据保存的所述第一报头字段数据中的非公有字段的数据,得到第二预设填充数据;Obtaining second preset filling data according to the data of the non-public field in the saved first header field data;
生成所述第四报头字段数据,其中,所述第四报头字段数据中公有字段内填入所述第三报头字段数据中公有字段的数据,所述第四报头字段数据中非公有字段内填入所述第二预设填充数据。The fourth header field data is generated, wherein the public field in the fourth header field data is filled with the data of the public field in the third header field data, and the non-public field in the fourth header field data is filled with the second preset filling data.
进一步的,所述根据所述第四报头字段数据解密所述第三数据字段数据,得到第四数据字段数据,包括:Further, decrypting the third data field data according to the fourth header field data to obtain the fourth data field data includes:
获取至少一个公有字段作为第二加密依据字段;Obtaining at least one public field as a second encryption basis field;
根据所述第三报头字段数据中第二加密依据字段内的内容生成第二对称密钥,并基于第二对称加密算法根据所述第二对称密钥解密所述第三数据字段数据,得到所述第四数据字段数据。A second symmetric key is generated according to the content in the second encryption basis field in the third header field data, and the third data field data is decrypted according to the second symmetric key based on a second symmetric encryption algorithm to obtain the fourth data field data.
第二方面,本发明还提供一种多协议转换的协议装置,包括:In a second aspect, the present invention further provides a protocol device for multi-protocol conversion, comprising:
数据接收模块,用于获取源设备发出的基于第一协议的第一报文数据,所述第一报文数据包括第一报头字段数据和第一数据字段数据;A data receiving module, used to obtain first message data based on a first protocol sent by a source device, wherein the first message data includes first header field data and first data field data;
报头转码模块,用于基于所述第一协议和第二协议的报文格式,将所述第一报头字段数据转换为第二报头字段数据;A header transcoding module, configured to convert the first header field data into second header field data based on the message formats of the first protocol and the second protocol;
数据加密模块,用于根据所述第二报头字段数据加密所述第一数据字段数据,得到第二数据字段数据;A data encryption module, used for encrypting the first data field data according to the second header field data to obtain second data field data;
转发发送模块,用于拼接所述第二报头字段数据和所述第二数据字段数据,得到基于所述第二协议的第二报文数据并发送给目标设备。The forwarding and sending module is used to splice the second header field data and the second data field data to obtain the second message data based on the second protocol and send it to the target device.
进一步的,还包括:Furthermore, it also includes:
转发接收模块,用于获取所述目标设备发出的基于所述第二协议的第三报文数据,所述第三报文数据包括第三报头字段数据和第三数据字段数据;A forwarding receiving module, used for acquiring third message data based on the second protocol sent by the target device, wherein the third message data includes third header field data and third data field data;
报头解码模块,用于基于所述第一协议和所述第二协议的报文格式,将所述第三报头字段数据转换为第四报头字段数据;A header decoding module, configured to convert the third header field data into fourth header field data based on the message formats of the first protocol and the second protocol;
数据解密模块,用于根据所述第四报头字段数据解密所述第三数据字段数据,得到第四数据字段数据;A data decryption module, used for decrypting the third data field data according to the fourth header field data to obtain fourth data field data;
数据反馈模块,用于拼接所述第四报头字段数据和所述第四数据字段数据,得到基于所述第一协议的第四报文数据并发送给所述源设备。A data feedback module is used to splice the fourth header field data and the fourth data field data to obtain fourth message data based on the first protocol and send it to the source device.
第三方面,本发明还提供一种电子设备,包括存储器和处理器,其中,In a third aspect, the present invention further provides an electronic device, including a memory and a processor, wherein:
所述存储器,用于存储程序;The memory is used to store programs;
所述处理器,与所述存储器耦合,用于执行所述存储器中存储的所述程序,以实现上述任一项所述多协议转换的协议处理方法中的步骤。The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in any one of the above-mentioned protocol processing methods for multi-protocol conversion.
第四方面,本发明还提供一种计算机可读存储介质,用于存储计算机可读取的程序或指令,所述程序或指令被处理器执行时,能够实现上述任一项所述多协议转换的协议处理方法中的步骤。In a fourth aspect, the present invention also provides a computer-readable storage medium for storing computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the protocol processing method for multi-protocol conversion described in any of the above items.
本发明提供了一种多协议转换的协议处理方法、装置、电子设备及介质,其先将第一报文数据中的第一报头字段数据转化为第二报头字段数据,然后利用转化之后的第二报头字段数据加密第一报文数据中的第一数据字段数据,得到第二数据字段数据,进而拼接二者以得到发送给目标设备的第二报文数据。目标设备在收到第二报文数据后,仅需采用同样的解密算法根据第二报头字段数据解密第二数据字段数据,便可以得到原始的第一数据字段数据,这样就实现了源设备到目标设备之间,由第一协议到第二协议的转换,使二者能够正常通信。并且转化过程中还实现了加密,达到了不同协议的设备之间的保密通讯的目标。相比于现有技术,通过本发明使得智能水电站在系统架设过程中,在保证信息安全的情况下,不需要为每个设备配置协议转换脚本,降低了智能水电站中系统搭建的复杂度,并且正因为如此,还提高了系统的灵活性和可扩展性,使得智能水电站中设备更换或升级时,无需对系统做较大的修改便能投入使用,具备良好的应用前景。The present invention provides a protocol processing method, device, electronic device and medium for multi-protocol conversion, which first converts the first header field data in the first message data into the second header field data, then uses the converted second header field data to encrypt the first data field data in the first message data, obtains the second data field data, and then splices the two to obtain the second message data sent to the target device. After receiving the second message data, the target device only needs to use the same decryption algorithm to decrypt the second data field data according to the second header field data to obtain the original first data field data, so that the conversion from the first protocol to the second protocol between the source device and the target device is realized, so that the two can communicate normally. In addition, encryption is also realized during the conversion process, achieving the goal of confidential communication between devices of different protocols. Compared with the prior art, the present invention makes it possible for the intelligent hydropower station to not need to configure a protocol conversion script for each device during the system construction process while ensuring information security, thereby reducing the complexity of the system construction in the intelligent hydropower station, and because of this, the flexibility and scalability of the system are also improved, so that when the equipment in the intelligent hydropower station is replaced or upgraded, it can be put into use without making major modifications to the system, and has good application prospects.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明提供的多协议转换的协议处理方法一实施例的方法流程图;FIG1 is a method flow chart of an embodiment of a protocol processing method for multi-protocol conversion provided by the present invention;
图2为本发明提供的多协议转换的协议处理装置一实施例的系统架构图;FIG2 is a system architecture diagram of an embodiment of a protocol processing device for multi-protocol conversion provided by the present invention;
图3为本发明提供的电子设备一实施例的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
下面结合附图来具体描述本发明的优选实施例,其中,附图构成本申请一部分,并与本发明的实施例一起用于阐释本发明的原理,并非用于限定本发明的范围。The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of this application and are used together with the embodiments of the present invention to illustrate the principles of the present invention, but are not used to limit the scope of the present invention.
可以理解的是,后文中出现的技术名词、英文缩写等均为现有技术,本领域技术人员能够根据上下文理解其意义,本文中因篇幅原因不做过多说明。It is understandable that the technical terms, English abbreviations, etc. that appear in the following text are all prior art, and those skilled in the art can understand their meanings based on the context, and will not be explained in detail in this article due to space constraints.
在本申请的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In the description of the present application, “plurality” means two or more than two, unless otherwise clearly and specifically defined.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本发明提供了一种多协议转换的协议处理方法、装置、设备及存储介质,以下分别进行说明。The present invention provides a protocol processing method, device, equipment and storage medium for multi-protocol conversion, which are described below respectively.
结合图1所示,本发明的一个具体实施例,公开了一种多协议转换的协议处理方法,包括:As shown in FIG. 1 , a specific embodiment of the present invention discloses a protocol processing method for multi-protocol conversion, including:
S101、获取源设备发出的基于第一协议的第一报文数据,所述第一报文数据包括第一报头字段数据和第一数据字段数据;S101. Acquire first message data based on a first protocol sent by a source device, where the first message data includes first header field data and first data field data;
S102、基于所述第一协议和第二协议的报文格式,将所述第一报头字段数据转换为第二报头字段数据;S102: based on the message formats of the first protocol and the second protocol, convert the first header field data into second header field data;
S103、根据所述第二报头字段数据加密所述第一数据字段数据,得到第二数据字段数据;S103, encrypting the first data field data according to the second header field data to obtain second data field data;
S104、拼接所述第二报头字段数据和所述第二数据字段数据,得到基于所述第二协议的第二报文数据并发送给目标设备。S104: Concatenate the second header field data and the second data field data to obtain second message data based on the second protocol and send the second message data to a target device.
本发明提供了一种多协议转换的协议处理方法,其先将第一报文数据中的第一报头字段数据转化为第二报头字段数据,然后利用转化之后的第二报头字段数据加密第一报文数据中的第一数据字段数据,得到第二数据字段数据,进而拼接二者以得到发送给目标设备的第二报文数据。目标设备在收到第二报文数据后,仅需采用同样的解密算法根据第二报头字段数据解密第二数据字段数据,便可以得到原始的第一数据字段数据,这样就实现了源设备到目标设备之间,由第一协议到第二协议的转换,使二者能够正常通信。并且转化过程中还实现了加密,达到了不同协议的设备之间的保密通讯的目标。相比于现有技术,通过本发明使得智能水电站在系统架设过程中,在保证信息安全的情况下,不需要为每个设备配置协议转换脚本,降低了智能水电站中系统搭建的复杂度,并且正因为如此,还提高了系统的灵活性和可扩展性,使得智能水电站中设备更换或升级时,无需对系统做较大的修改便能投入使用,具备良好的应用前景。The present invention provides a protocol processing method for multi-protocol conversion, which first converts the first header field data in the first message data into the second header field data, then uses the converted second header field data to encrypt the first data field data in the first message data, obtains the second data field data, and then splices the two to obtain the second message data sent to the target device. After receiving the second message data, the target device only needs to use the same decryption algorithm to decrypt the second data field data according to the second header field data to obtain the original first data field data, so that the conversion from the first protocol to the second protocol between the source device and the target device is realized, so that the two can communicate normally. In addition, encryption is also realized during the conversion process, achieving the goal of confidential communication between devices of different protocols. Compared with the prior art, the present invention makes it possible for the intelligent hydropower station to not need to configure a protocol conversion script for each device during the system construction process while ensuring information security, thereby reducing the complexity of the system construction in the intelligent hydropower station, and because of this, the flexibility and scalability of the system are also improved, so that when the equipment in the intelligent hydropower station is replaced or upgraded, it can be put into use without making major modifications to the system, and has good application prospects.
实施时,运行本方法的设备或模块可以视为一个连接在源设备和目标设备之间的虚拟设备。对于源设备,运行本方法的模块相当于一个与之通信的运行第一协议的虚拟设备,同理,对于目标设备,运行本方法的模块相当于一个与之通信的运行第二协议的虚拟设备。During implementation, the device or module running the method can be regarded as a virtual device connected between the source device and the target device. For the source device, the module running the method is equivalent to a virtual device running the first protocol that communicates with the source device. Similarly, for the target device, the module running the method is equivalent to a virtual device running the second protocol that communicates with the target device.
在计算机网络中,网络报文由两个部分的字段组成:报头字段(Header)和数据字段(Payload)。In computer networks, network messages are composed of two fields: the header field (Header) and the data field (Payload).
报头是一个包含重要元数据的固定长度的区域,通常是首部(Header),位于一个网络报文最开始的部分,它需要被传输以确保互联网或电话网络中的路由器等设备能够理解并处理数据包的相应部分。报头中的信息可以提供有关网络报文的重要信息,例如源地址、目标地址、协议类型、端口号等。根据不同的协议或数据包类型,报头可能包含不同的字段。报头字段的长度和结构以及所包含的数据取决于使用的网络协议。The header is a fixed-length area containing important metadata, usually the first part, located at the beginning of a network message. It needs to be transmitted to ensure that devices such as routers in the Internet or telephone network can understand and process the corresponding part of the data packet. The information in the header can provide important information about the network message, such as the source address, destination address, protocol type, port number, etc. Depending on the different protocols or data packet types, the header may contain different fields. The length and structure of the header field and the data contained depend on the network protocol used.
数据字段是包含传输的数据的可变长度的区域。当网络报文从一个计算机发送到另一个计算机时,它的报头部分会被路由器和其他设备处理,其中可能需要使用报头中的信息来确定报文的下一步目的地。报头处理完成后,数字数据包的数据部分就可以在使用协议的目的地计算机上进行处理和还原。The data field is a variable-length area that contains the data being transmitted. When a network message is sent from one computer to another, its header portion is processed by routers and other devices, which may need to use the information in the header to determine the message's next destination. Once the header is processed, the data portion of the digital packet can be processed and restored on the destination computer using the protocol.
可以理解的是,本实施例中第一报文数据中的报头字段和数据字段中的数据分别为第一报头字段数据和第一数据字段数据,第二报文数据中的报头字段和数据字段的数据分别为第二报头字段数据和第二数据字段数据,第三报文数据和第四报文数据同理。实际中根据具体的协议种类,本领域技术人员能够理解文中的诸如第一报头字段数据、第三数据字段数据等词汇具体指哪些数据,因此后文将不再做过多说明。It can be understood that, in this embodiment, the data in the header field and the data field in the first message data are the first header field data and the first data field data, respectively, the data in the header field and the data field in the second message data are the second header field data and the second data field data, respectively, and the third message data and the fourth message data are similar. In practice, according to the specific type of protocol, those skilled in the art can understand what data the words such as the first header field data, the third data field data, etc. in the text specifically refer to, so no further explanation will be given hereinafter.
具体地,在一个优选的实施例中,上述步骤S102、所述基于所述第一协议和第二协议的报文格式,将所述第一报头字段数据转换为第二报头字段数据,具体包括:Specifically, in a preferred embodiment, the above step S102, converting the first header field data into the second header field data based on the message formats of the first protocol and the second protocol, specifically includes:
根据所述第一协议的报文格式和所述第二协议的报文格式,得到所述第一协议和所述第二协议的公有字段;Obtaining common fields of the first protocol and the second protocol according to a message format of the first protocol and a message format of the second protocol;
保存所述第一报头字段数据中的非公有字段的数据;Saving data of non-public fields in the first header field data;
生成所述第二报头字段数据,其中,所述第二报头字段数据中公有字段内填入所述第一报头字段数据中公有字段的数据,所述第二报头字段数据中非公有字段内填入第一预设填充数据。The second header field data is generated, wherein the public fields in the second header field data are filled with the data of the public fields in the first header field data, and the non-public fields in the second header field data are filled with the first preset filling data.
上述过程中公有字段为第一协议和第二协议中共有的字段,其一般为表明目标设备身份的字段,如目标IP地址,目标MAC地址等,是每种协议中必备的字段,因此上述过程中仅需将第一报头字段数据中公有字段的内容填入第二报头字段数据中即可。In the above process, the public field is a field shared by the first protocol and the second protocol, which is generally a field indicating the identity of the target device, such as the target IP address, the target MAC address, etc., which is a necessary field in each protocol. Therefore, in the above process, only the content of the public field in the first header field data needs to be filled into the second header field data.
而上述非公有字段,是指不同协议中不共有的字段,其一般用于表征报文的时序序号、报文长度、协议种类等,本实施例在进行协议转换时,对于基于第二协议的第二报文数据,可以在其非公有字段中填入第一预设填充数据,第二报文数据能够基于第二协议运作。The above-mentioned non-public fields refer to fields that are not shared by different protocols, and are generally used to characterize the timing sequence number, message length, protocol type, etc. of the message. When performing protocol conversion in this embodiment, for the second message data based on the second protocol, the first preset filling data can be filled in its non-public field, and the second message data can operate based on the second protocol.
实际实施时,运行本方法的设备或模块可以在本地维护一个交互列表,用于记录上一次基于第二协议与目标设备通信时的报文序号等非公有字段的数据。在生成第二报文数据时,可以根据该交互列表得到合适的第一预设填充数据进行填充。In actual implementation, the device or module running this method can maintain an interaction list locally to record the data of non-public fields such as the message sequence number when the target device was last communicated based on the second protocol. When generating the second message data, appropriate first preset filling data can be obtained according to the interaction list for filling.
进一步的,在一个优选的实施例中,上述步骤S103、所述根据所述第二报头字段数据加密所述第一数据字段数据,得到第二数据字段数据,具体包括:Further, in a preferred embodiment, the above step S103, encrypting the first data field data according to the second header field data to obtain the second data field data, specifically includes:
获取至少一个公有字段作为第一加密依据字段;Obtain at least one public field as a first encryption basis field;
根据所述第二报头字段数据中第一加密依据字段内的内容生成第一对称密钥,并基于第一对称加密算法根据所述第一对称密钥加密所述第一数据字段数据,得到所述第二数据字段数据。A first symmetric key is generated according to the content in the first encryption basis field in the second header field data, and the first data field data is encrypted according to the first symmetric key based on a first symmetric encryption algorithm to obtain the second data field data.
因报头字段中的数据通常关系到该报文在网络中的正常传输,因此本发明中仅对第一数据字段数据进行加密。对称加密是一种常见的加密算法,也被称为私钥加密或共享密钥加密。在对称加密算法中,使用相同的密钥(即上述第一对称密钥)来进行加密和解密操作。对称加密的原理是使用密钥对原始数据进行加密,生成密文,然后使用相同的密钥对密文进行解密,还原为原始数据。由于加密和解密使用相同的密钥,因此对称加密算法具有高效、快速和简单的特点。常见的对称加密算法有:DES(Data Encryption Standard)、3DES(Triple Data Encryption Algorithm)、AES(Advanced Encryption Standard)等。Because the data in the header field is usually related to the normal transmission of the message in the network, only the data in the first data field is encrypted in the present invention. Symmetric encryption is a common encryption algorithm, also known as private key encryption or shared key encryption. In a symmetric encryption algorithm, the same key (i.e., the first symmetric key mentioned above) is used for encryption and decryption operations. The principle of symmetric encryption is to encrypt the original data with a key to generate a ciphertext, and then use the same key to decrypt the ciphertext and restore it to the original data. Since the same key is used for encryption and decryption, the symmetric encryption algorithm is efficient, fast and simple. Common symmetric encryption algorithms include: DES (Data Encryption Standard), 3DES (Triple Data Encryption Algorithm), AES (Advanced Encryption Standard), etc.
本发明中,目标设备也能够接收到第二报头字段数据,目标设备仅需配置和运行本方法的设备采用相同的密钥生成算法以及对称加密算法(即第一对称加密算法),便可以完成数据的解密,以获取第一数据字段数据,从而完成和源设备的通讯。In the present invention, the target device can also receive the second header field data. The target device only needs to configure and run the device of this method to adopt the same key generation algorithm and symmetric encryption algorithm (i.e., the first symmetric encryption algorithm) to complete the decryption of the data to obtain the first data field data, thereby completing the communication with the source device.
本发明还提供一更加详细的实施例,用以更加清楚地说明上述步骤S103:The present invention also provides a more detailed embodiment to more clearly illustrate the above step S103:
假设选择公有字段中的源地址、目标地址以及端口号字段,共同作为第一加密依据字段,其中:Assume that the source address, destination address, and port number fields in the public field are selected as the first encryption basis field, where:
源地址:192.168.0.1;Source address: 192.168.0.1;
目标地址:10.0.0.1;Destination address: 10.0.0.1;
端口号:8080;Port number: 8080;
第一数据字段数据的内容为:数据内容:“Hello,World!”;The content of the first data field is: data content: "Hello, World!";
然后将源地址、目标地址和端口号拼接在一起,得到第一加密依据字段例如:Then concatenate the source address, destination address and port number together to obtain the first encryption basis field, for example:
192.168.0.1-10.0.0.1-8080;192.168.0.1-10.0.0.1-8080;
然后使用安全的密钥生成算法(例如哈希函数),对该字符串进行处理,生成第一对称密钥:The string is then processed using a secure key generation algorithm (such as a hash function) to generate the first symmetric key:
x1y2z3a4b5c6d7e8;x1y2z3a4b5c6d7e8;
使用生成的第一对称密钥对第一数据字段数据进行加密。例如,使用AES加密算法将数据字段"Hello,World!"加密得到第二数据字段数据:The first data field data is encrypted using the generated first symmetric key. For example, the data field "Hello, World!" is encrypted using the AES encryption algorithm to obtain the second data field data:
d7e8x1y2z3a4b5c6;d7e8x1y2z3a4b5c6;
最终得到的第二报文数据中:The second message data finally obtained is:
第二报头字段数据包括:源地址:192.168.0.1,目标地址:10.0.0.1,端口号:8080;The second header field data includes: source address: 192.168.0.1, destination address: 10.0.0.1, port number: 8080;
第二数据字段数据包括:d7e8x1y2z3a4b5c6。The second data field data includes: d7e8x1y2z3a4b5c6.
可以理解的是,上述过程仅为一个简单的示例用于方便理解使用,实际应用中可以采用更复杂的加密算法和安全性措施。It is understandable that the above process is only a simple example for easy understanding and use, and more complex encryption algorithms and security measures can be used in actual applications.
当源设备不需要反馈数据时(例如源设备为温度采集、水位采集等设备,其仅需提供数据),通过上述过程便可以完成源设备和目标设备之间的协议转换通讯。而对于一些需要反馈数据的情况时,当目标设备接收到第二报文数据后会产生应答的第三报文数据,此时便需要对第三报文数据进行转换以答复源设备。When the source device does not need to feedback data (for example, the source device is a device for temperature collection, water level collection, etc., which only needs to provide data), the above process can complete the protocol conversion communication between the source device and the target device. For some situations where feedback data is required, when the target device receives the second message data, it will generate a third message data of response. At this time, the third message data needs to be converted to reply to the source device.
因此,请再结合图1所示,在一个优选的实施例中,所述多协议转换的协议处理方法还包括:Therefore, please refer to FIG. 1 again, in a preferred embodiment, the protocol processing method for multi-protocol conversion further includes:
S105、获取所述目标设备发出的基于所述第二协议的第三报文数据,所述第三报文数据包括第三报头字段数据和第三数据字段数据;S105. Acquire third message data based on the second protocol sent by the target device, where the third message data includes third header field data and third data field data;
S106、基于所述第一协议和所述第二协议的报文格式,将所述第三报头字段数据转换为第四报头字段数据;S106. Based on the message formats of the first protocol and the second protocol, convert the third header field data into fourth header field data;
S107、根据所述第四报头字段数据解密所述第三数据字段数据,得到第四数据字段数据;S107, decrypt the third data field data according to the fourth header field data to obtain fourth data field data;
S108、拼接所述第四报头字段数据和所述第四数据字段数据,得到基于所述第一协议的第四报文数据并发送给所述源设备。S108: Concatenate the fourth header field data and the fourth data field data to obtain fourth message data based on the first protocol and send the fourth message data to the source device.
上述过程的原理及有益效果可类比参考前文描述,此处不做过多说明。The principle and beneficial effects of the above process can be referred to in the previous description, and no further explanation is given here.
进一步的,在一个优选的实施例中,上述步骤S105、基于所述第一协议和所述第二协议的报文格式,将所述第三报头字段数据转换为第四报头字段数据,具体包括:Further, in a preferred embodiment, the above step S105, based on the message formats of the first protocol and the second protocol, converting the third header field data into fourth header field data, specifically includes:
根据保存的所述第一报头字段数据中的非公有字段的数据,得到第二预设填充数据;Obtaining second preset filling data according to the data of the non-public field in the saved first header field data;
生成所述第四报头字段数据,其中,所述第四报头字段数据中公有字段内填入所述第三报头字段数据中公有字段的数据,所述第四报头字段数据中非公有字段内填入所述第二预设填充数据。The fourth header field data is generated, wherein the public field in the fourth header field data is filled with the data of the public field in the third header field data, and the non-public field in the fourth header field data is filled with the second preset filling data.
本发明之前的步骤S102中,将第一报头字段数据中的非公有字段予以保留,当目标设备就第一报文数据做出应答时(实际为对第二报文数据做出的应答),运行本方法的设备或模块可以根据保存的非公有字段,生成与第一报头字段数据对应的非公有字段数据填入第四报头字段数据中,这样就完成了报文的协议转化,确保第四报文数据能够正常通讯。In step S102 before the present invention, the non-public field in the first header field data is retained. When the target device responds to the first message data (actually a response to the second message data), the device or module running this method can generate non-public field data corresponding to the first header field data based on the saved non-public field and fill it into the fourth header field data. In this way, the protocol conversion of the message is completed, ensuring that the fourth message data can communicate normally.
进一步的,在一个优选的实施例中,上述步骤S107、根据所述第四报头字段数据解密所述第三数据字段数据,得到第四数据字段数据,具体包括:Further, in a preferred embodiment, the above step S107, decrypting the third data field data according to the fourth header field data to obtain the fourth data field data, specifically includes:
获取至少一个公有字段作为第二加密依据字段;Obtaining at least one public field as a second encryption basis field;
根据所述第三报头字段数据中第二加密依据字段内的内容生成第二对称密钥,并基于第二对称加密算法根据所述第二对称密钥解密所述第三数据字段数据,得到所述第四数据字段数据。A second symmetric key is generated according to the content in the second encryption basis field in the third header field data, and the third data field data is decrypted according to the second symmetric key based on a second symmetric encryption algorithm to obtain the fourth data field data.
上述过程中的第二对称加密算法可以和第一对称加密算法采用相同的加密算法实现,也可以采用不同的加密算法实现。当采用不同加密算法时,能够显著提升信息安全性,仅需分别在运行本方法的设备以及目标设备上分别配置两个正确的密钥生成算法以及对称加密算法即可。The second symmetric encryption algorithm in the above process can be implemented with the same encryption algorithm as the first symmetric encryption algorithm, or it can be implemented with different encryption algorithms. When different encryption algorithms are used, information security can be significantly improved, and only two correct key generation algorithms and symmetric encryption algorithms need to be configured on the device running this method and the target device respectively.
为了更好实施本发明实施例中的多协议转换的协议处理方法,在多协议转换的协议处理方法基础之上,对应的,请参阅图2,图2为本发明提供的多协议转换的协议处理装置的一实施例的结构示意图,本发明实施例提供的一种多协议转换的协议处理装置200,包括:In order to better implement the protocol processing method for multi-protocol conversion in the embodiment of the present invention, based on the protocol processing method for multi-protocol conversion, correspondingly, please refer to FIG. 2, which is a structural schematic diagram of an embodiment of a protocol processing device for multi-protocol conversion provided by the present invention. A protocol processing device 200 for multi-protocol conversion provided by the embodiment of the present invention includes:
数据接收模块210,用于获取源设备发出的基于第一协议的第一报文数据,所述第一报文数据包括第一报头字段数据和第一数据字段数据;The data receiving module 210 is used to obtain first message data based on the first protocol sent by the source device, where the first message data includes first header field data and first data field data;
报头转码模块220,用于基于所述第一协议和第二协议的报文格式,将所述第一报头字段数据转换为第二报头字段数据;A header transcoding module 220, configured to convert the first header field data into second header field data based on the message formats of the first protocol and the second protocol;
数据加密模块230,用于根据所述第二报头字段数据加密所述第一数据字段数据,得到第二数据字段数据;A data encryption module 230, configured to encrypt the first data field data according to the second header field data to obtain second data field data;
转发发送模块240,用于拼接所述第二报头字段数据和所述第二数据字段数据,得到基于所述第二协议的第二报文数据并发送给目标设备。The forwarding and sending module 240 is used to splice the second header field data and the second data field data to obtain the second message data based on the second protocol and send it to the target device.
进一步的,在一个优选的实施例中,所述多协议转换的协议处理装置,还包括:Furthermore, in a preferred embodiment, the protocol processing device for multi-protocol conversion further includes:
转发接收模块250,用于获取所述目标设备发出的基于所述第二协议的第三报文数据,所述第三报文数据包括第三报头字段数据和第三数据字段数据;The forwarding receiving module 250 is used to obtain the third message data based on the second protocol sent by the target device, and the third message data includes third header field data and third data field data;
报头解码模块260,用于基于所述第一协议和所述第二协议的报文格式,将所述第三报头字段数据转换为第四报头字段数据;A header decoding module 260, configured to convert the third header field data into fourth header field data based on the message formats of the first protocol and the second protocol;
数据解密模块270,用于根据所述第四报头字段数据解密所述第三数据字段数据,得到第四数据字段数据;A data decryption module 270, configured to decrypt the third data field data according to the fourth header field data to obtain fourth data field data;
数据反馈模块280,用于拼接所述第四报头字段数据和所述第四数据字段数据,得到基于所述第一协议的第四报文数据并发送给所述源设备。The data feedback module 280 is used to splice the fourth header field data and the fourth data field data to obtain fourth message data based on the first protocol and send it to the source device.
这里需要说明的是:上述实施例提供的对应的装置200可实现上述各方法实施例中描述的技术方案,上述各模块或单元具体实现的原理可参见上述方法实施例中的相应内容,此处不再赘述。It should be noted here that the corresponding device 200 provided in the above embodiment can implement the technical solutions described in the above method embodiments. The specific implementation principles of the above modules or units can refer to the corresponding contents in the above method embodiments, which will not be repeated here.
请参阅图3,图3为本发明实施例提供的电子设备的结构示意图。基于上述多协议转换的协议处理方法,本发明还相应提供了一种多协议转换的协议处理设备300,即上述电子设备,多协议转换的协议处理设备300可以是移动终端、桌上型计算机、笔记本、掌上电脑及服务器等计算设备。该多协议转换的协议处理设备300包括处理器310、存储器320及显示器330。图3仅示出了多协议转换的协议处理设备的部分组件,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。Please refer to FIG3, which is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Based on the above-mentioned protocol processing method for multi-protocol conversion, the present invention also provides a corresponding protocol processing device 300 for multi-protocol conversion, that is, the above-mentioned electronic device. The protocol processing device 300 for multi-protocol conversion can be a computing device such as a mobile terminal, a desktop computer, a notebook, a palm computer and a server. The protocol processing device 300 for multi-protocol conversion includes a processor 310, a memory 320 and a display 330. FIG3 only shows some components of the protocol processing device for multi-protocol conversion, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead.
存储器320在一些实施例中可以是多协议转换的协议处理设备300的内部存储单元,例如多协议转换的协议处理设备300的硬盘或内存。存储器320在另一些实施例中也可以是多协议转换的协议处理设备300的外部存储设备,例如多协议转换的协议处理设备300上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器320还可以既包括多协议转换的协议处理设备300的内部存储单元也包括外部存储设备。存储器320用于存储安装于多协议转换的协议处理设备300的应用软件及各类数据,例如安装多协议转换的协议处理设备300的程序代码等。存储器320还可以用于暂时地存储已经输出或者将要输出的数据。在一实施例中,存储器320上存储有多协议转换的协议处理程序340,该多协议转换的协议处理程序340可被处理器310所执行,从而实现本申请各实施例的多协议转换的协议处理方法。In some embodiments, the memory 320 may be an internal storage unit of the protocol processing device 300 for multi-protocol conversion, such as a hard disk or memory of the protocol processing device 300 for multi-protocol conversion. In other embodiments, the memory 320 may also be an external storage device of the protocol processing device 300 for multi-protocol conversion, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the protocol processing device 300 for multi-protocol conversion. Further, the memory 320 may also include both an internal storage unit of the protocol processing device 300 for multi-protocol conversion and an external storage device. The memory 320 is used to store application software and various types of data installed in the protocol processing device 300 for multi-protocol conversion, such as the program code of the protocol processing device 300 for multi-protocol conversion. The memory 320 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a protocol processing program 340 for multi-protocol conversion is stored in the memory 320, and the protocol processing program 340 for multi-protocol conversion can be executed by the processor 310, thereby implementing the protocol processing method for multi-protocol conversion in each embodiment of the present application.
处理器310在一些实施例中可以是一中央处理器(Central Processing Unit,CPU),微处理器或其他数据处理芯片,用于运行存储器320中存储的程序代码或处理数据,例如执行多协议转换的协议处理方法等。In some embodiments, the processor 310 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 320, such as executing a protocol processing method for multi-protocol conversion.
显示器330在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。显示器330用于显示在多协议转换的协议处理设备300的信息以及用于显示可视化的用户界面。多协议转换的协议处理设备300的部件310-330通过系统总线相互通信。In some embodiments, the display 330 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 330 is used to display information on the multi-protocol conversion protocol processing device 300 and to display a visual user interface. The components 310-330 of the multi-protocol conversion protocol processing device 300 communicate with each other through a system bus.
在一实施例中,当处理器310执行存储器320中多协议转换的协议处理程序340时实现如上的多协议转换的协议处理方法中的步骤。In one embodiment, when the processor 310 executes the protocol processing program 340 for multi-protocol conversion in the memory 320, the steps in the protocol processing method for multi-protocol conversion described above are implemented.
本实施例还提供了一种计算机可读存储介质,其上存储有多协议转换的协议处理程序,该多协议转换的协议处理程序被处理器执行时可实现上述实施例中的步骤。This embodiment further provides a computer-readable storage medium on which a protocol processing program for multi-protocol conversion is stored. When the protocol processing program for multi-protocol conversion is executed by a processor, the steps in the above embodiment can be implemented.
本发明提供了一种多协议转换的协议处理方法、装置、电子设备及介质,其先将第一报文数据中的第一报头字段数据转化为第二报头字段数据,然后利用转化之后的第二报头字段数据加密第一报文数据中的第一数据字段数据,得到第二数据字段数据,进而拼接二者以得到发送给目标设备的第二报文数据。目标设备在收到第二报文数据后,仅需采用同样的解密算法根据第二报头字段数据解密第二数据字段数据,便可以得到原始的第一数据字段数据,这样就实现了源设备到目标设备之间,由第一协议到第二协议的转换,使二者能够正常通信。并且转化过程中还实现了加密,达到了不同协议的设备之间的保密通讯的目标。相比于现有技术,通过本发明使得智能水电站在系统架设过程中,在保证信息安全的情况下,不需要为每个设备配置协议转换脚本,降低了智能水电站中系统搭建的复杂度,并且正因为如此,还提高了系统的灵活性和可扩展性,使得智能水电站中设备更换或升级时,无需对系统做较大的修改便能投入使用,具备良好的应用前景。The present invention provides a protocol processing method, device, electronic device and medium for multi-protocol conversion, which first converts the first header field data in the first message data into the second header field data, and then uses the converted second header field data to encrypt the first data field data in the first message data to obtain the second data field data, and then splices the two to obtain the second message data sent to the target device. After receiving the second message data, the target device only needs to use the same decryption algorithm to decrypt the second data field data according to the second header field data to obtain the original first data field data, so that the conversion from the first protocol to the second protocol between the source device and the target device is realized, so that the two can communicate normally. In addition, encryption is also realized during the conversion process, achieving the goal of confidential communication between devices of different protocols. Compared with the prior art, the present invention makes it possible for the intelligent hydropower station to not need to configure a protocol conversion script for each device during the system construction process while ensuring information security, thereby reducing the complexity of the system construction in the intelligent hydropower station, and because of this, the flexibility and scalability of the system are also improved, so that when the equipment in the intelligent hydropower station is replaced or upgraded, it can be put into use without making major modifications to the system, and has good application prospects.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311522891.2A CN117319516B (en) | 2023-11-15 | 2023-11-15 | Multi-protocol conversion protocol processing method and device, electronic equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311522891.2A CN117319516B (en) | 2023-11-15 | 2023-11-15 | Multi-protocol conversion protocol processing method and device, electronic equipment and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117319516A CN117319516A (en) | 2023-12-29 |
| CN117319516B true CN117319516B (en) | 2024-10-11 |
Family
ID=89250133
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311522891.2A Active CN117319516B (en) | 2023-11-15 | 2023-11-15 | Multi-protocol conversion protocol processing method and device, electronic equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117319516B (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109450852A (en) * | 2018-10-09 | 2019-03-08 | 中国科学院信息工程研究所 | Network communication encrypting and decrypting method and electronic equipment |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2018018607A1 (en) * | 2016-07-29 | 2018-02-01 | 深圳市赛亿科技开发有限公司 | Method and device for fixed conversion of transmission protocol based on message protocol identification |
| FR3081653A1 (en) * | 2018-06-25 | 2019-11-29 | Orange | METHOD OF MODIFYING MESSAGES BY EQUIPMENT ON A COMMUNICATION PATH ESTABLISHED BETWEEN TWO NODES |
| WO2022147792A1 (en) * | 2021-01-08 | 2022-07-14 | 华为技术有限公司 | Switching system, switching network and switching node |
| CN116248265A (en) * | 2022-12-16 | 2023-06-09 | 支付宝(杭州)信息技术有限公司 | Execution method and device of data transmission protocol |
-
2023
- 2023-11-15 CN CN202311522891.2A patent/CN117319516B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109450852A (en) * | 2018-10-09 | 2019-03-08 | 中国科学院信息工程研究所 | Network communication encrypting and decrypting method and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117319516A (en) | 2023-12-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111131278B (en) | Data processing method and device, computer storage medium and electronic equipment | |
| CN111628976B (en) | Message processing method, device, equipment and medium | |
| CN110061996A (en) | A kind of data transmission method, device, equipment and readable storage medium storing program for executing | |
| CN112511514A (en) | HTTP encrypted transmission method and device, computer equipment and storage medium | |
| CN113507483B (en) | Instant messaging method, device, server and storage medium | |
| CN109274647A (en) | Distributed credible memory exchanges method and system | |
| CN116647425B (en) | An IPSec-VPN implementation method, device, electronic device and storage medium of OVN architecture | |
| CN115865897A (en) | Cross-system batch file efficient interaction method | |
| CN117081840B (en) | Secure socket layer communication method, device, special data processor and medium | |
| CN117319516B (en) | Multi-protocol conversion protocol processing method and device, electronic equipment and medium | |
| CN102970134B (en) | Method and system for encapsulating PKCS#7 (public-key cryptography standard #7) data by algorithm of hardware password equipment | |
| WO2025016039A1 (en) | Data transmission method and apparatus, and related device | |
| CN114844695B (en) | Business data circulation method, system and related equipment based on block chain | |
| CN115767456A (en) | Power data transmission method, device, equipment and storage medium | |
| CN115941178A (en) | A realization method of OPC UA reverse proxy server supporting encryption mode | |
| CN115037511A (en) | Data processing method, device, equipment and medium | |
| CN114978591A (en) | Security protection-based field area network data interaction system and method | |
| CN119766420B (en) | A method for power grid data transmission encryption and decryption based on symmetric block encryption AES technology | |
| CN115987513B (en) | Distributed database fragment encryption and decryption methods, devices, equipment and media | |
| CN116488931B (en) | Information interaction method and device based on distributed networking equipment | |
| CN221652785U (en) | CPE system with quantum encryption and decryption functions | |
| CN112866209B (en) | Dialysis data security management system and method | |
| CN114860743B (en) | High-speed uplink proxy service method, system and storage medium for terminal of Internet of things | |
| CN114866527B (en) | Data processing methods, devices and systems | |
| CN115549946B (en) | Method, device and storage medium for determining key algorithm type |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |