CN107925652B - Fixed conversion method and device of transmission protocol based on message protocol identification - Google Patents

Fixed conversion method and device of transmission protocol based on message protocol identification Download PDF

Info

Publication number
CN107925652B
CN107925652B CN201680001022.7A CN201680001022A CN107925652B CN 107925652 B CN107925652 B CN 107925652B CN 201680001022 A CN201680001022 A CN 201680001022A CN 107925652 B CN107925652 B CN 107925652B
Authority
CN
China
Prior art keywords
protocol
conversion
converted
type identifier
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.)
Expired - Fee Related
Application number
CN201680001022.7A
Other languages
Chinese (zh)
Other versions
CN107925652A (en
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.)
Shenzhen Saiyi Technology Development Co Ltd
Original Assignee
Shenzhen Saiyi Technology Development Co Ltd
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 Shenzhen Saiyi Technology Development Co Ltd filed Critical Shenzhen Saiyi Technology Development Co Ltd
Publication of CN107925652A publication Critical patent/CN107925652A/en
Application granted granted Critical
Publication of CN107925652B publication Critical patent/CN107925652B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Abstract

The invention discloses a fixed conversion method and a fixed conversion device of a transmission protocol based on message protocol identification, which are suitable for a controller comprising a storage analysis module, wherein the controller acquires configuration conversion information during protocol conversion of a current message to be converted according to a judgment result that the conversion times of one-way transmission protocol conversion communication between two communication devices is the first time, and sends type identifiers and configuration conversion information of a first protocol and a second protocol to the storage analysis module to be associated to generate conversion mapping information; when the controller identifies and judges that the conversion times are more than or equal to the specific value, the conversion mapping information is obtained, and the configuration conversion is carried out on the current message to be converted through the associated configuration conversion information according to the identified type identification of the first protocol and/or the second protocol, so that the complex steps and time for identifying, inquiring, calling and carrying out forward/reverse protocol conversion configuration each time when the message is communicated for multiple times subsequently are saved, and the efficiency of message protocol conversion is reduced.

Description

Fixed conversion method and device of transmission protocol based on message protocol identification
Technical Field
The present disclosure relates to the field of message transmission protocol conversion technology in communication technologies, and in particular, to a fixed conversion method and device for a transmission protocol based on message protocol identification.
Background
In the communication device, the communication bus interfaces of the communication integrated circuit are various, the transmission protocols of different communication interfaces are inconsistent, and the same standard communication protocol or customized transmission protocol can be used for the same communication interface. At present, the internet of things which is particularly concerned is in the initial development stage, network protocols used by products produced by a plurality of network equipment production merchants are not uniform, and the problem that the equipment cannot normally communicate due to the fact that the network protocols are incompatible frequently occurs. Therefore, in a data communication system, a large number of data messages need to be converted, and the conversion of the data messages in the data communication process is usually bidirectional, that is, the data messages in one direction are converted according to specific conversion information, and the data messages in the opposite direction are also converted in a reduction mode according to the specific conversion information, so that the bidirectional conversion task of the data messages is completed, and normal data communication between interfaces or between devices is achieved.
In the data message conversion process, the conversion information may be a mapping relationship of some protocol attributes before and after the conversion. Therefore, the conversion information of each different data packet needs to be stored and recorded for the subsequent conversion information identification, query, call and forward conversion configuration in the forward conversion of the data packet with the same characteristics, and query, call and restore conversion configuration of the conversion information of the data packet in the reverse direction. After different message communications for the first time, the query and calling of conversion information and forward/reverse conversion configuration are required to be carried out each time, if some messages are communicated for a plurality of times subsequently, a lot of time is consumed for calling and carrying out forward/reverse protocol conversion configuration each time or accumulated, so that the message protocol conversion efficiency is reduced, and the message data communication working efficiency is further reduced.
Disclosure of Invention
In order to solve the problems of low message protocol conversion efficiency and low message data communication working efficiency in the message data multi-time communication in the related technology, the disclosure provides a transmission protocol fixed conversion method and device based on message protocol identification.
In a first aspect, an embodiment of the present disclosure provides a fixed transfer protocol conversion method based on message protocol identification, which is applied to a controller including a storage analysis module, where the controller is used to implement transfer protocol conversion communication between two communication devices, and the method includes:
the controller records the identification of the two communication devices and the conversion times of the one-way transmission protocol conversion communication between the two communication devices;
the controller judges whether the conversion times are smaller than a preset specific value or not;
the controller acquires the type identifier of the currently applicable first protocol from the communication device sending the message to be converted according to the first judgment result that the conversion times are smaller than the specific value, and acquires the type identifier and the standard of the second protocol applicable to another communication device according to the identifier of the other opposite communication device;
the controller performs configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
the controller judges whether the conversion times are the first time or not;
the controller acquires configuration conversion information when the current message to be converted completes conversion from the applicable first protocol to the applicable second protocol according to a second judgment result of which the conversion times are the first time, and sends the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information to the storage analysis module; the particular value is greater than 1;
the storage analysis module acquires and associates the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information sent by the controller to generate conversion mapping information for storage;
the controller acquires the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and performs configuration conversion on the current message to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the type identifier of the second protocol, so that the conversion communication of the one-way transmission protocol between the first protocol applicable to the current message to be converted and the second protocol applicable to the current message to be converted is realized, and further the fixed conversion communication of the transmission protocol between the two communication devices is completed.
With reference to the first aspect, in a first possible implementation manner, the packet to be converted includes a first header and first packet data, a type identifier of the first protocol is stored in the first header, and the configuration conversion information is header encapsulation information; the controller obtains the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and performs configuration conversion on the current message to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so as to convert the first protocol applicable to the current message to be converted into the one-way transmission protocol conversion communication between the applicable second protocols, and further complete the fixed conversion communication of the transmission protocol between the two communication devices, and the method comprises the following steps:
the controller acquires the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and replaces the first header of the current message to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the type identifier of the second protocol, so that the conversion communication of the one-way transmission protocol between the first protocol applicable to the current message to be converted and the second protocol applicable to the current message to be converted is realized, and further the fixed conversion communication of the transmission protocol between the two communication devices is completed.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the performing, by the controller, configuration conversion on a current packet to be converted according to a standard of the second protocol, so that the converted packet is applicable to the second protocol includes:
the controller generates a second header according to the standard of the second protocol, and configures and converts the first header of the current message to be converted into the second header, so that the converted message is applicable to the second protocol.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the obtaining, by the storage analysis module, the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information sent by the controller in association with the storage analysis module to generate conversion mapping information for storage includes:
the storage analysis module acquires and associates the identifiers of the two communication devices sent by the controller, the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information, and generates and stores conversion mapping information;
the method further comprises the following steps:
the controller acquires the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and replaces the first header of the current message to be converted through the associated configuration conversion information according to the identification of any one or two identified communication devices, so that the conversion communication of the first protocol applicable to the current message to be converted into the one-way transmission protocol between the applicable second protocols is realized, and further the fixed conversion communication of the transmission protocol between the two communication devices is completed.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the first protocol is a transmission control protocol/internet protocol.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the second protocol is an IPX protocol or an SPX protocol.
In a second aspect, the present disclosure provides a fixed transfer protocol conversion device based on message protocol identification, including a controller, where the controller is configured to implement transfer protocol conversion communication between two communication devices, and the controller includes:
the processor is used for recording the identifications of the two communication devices and recording the conversion times of the one-way transmission protocol conversion communication between the two communication devices;
the judging module is used for judging whether the conversion times are smaller than a preset specific value or not;
an identification obtaining module, configured to obtain, according to a first determination result that the number of times of conversion is smaller than the specific value, a type identifier of a first protocol currently applied to a communication device that sends a packet to be converted, and obtain, according to an identifier of another communication device that is opposite to the first protocol, a type identifier and a standard of a second protocol applied to the another communication device;
the configuration conversion module is used for performing configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
the judging module is also used for judging whether the conversion times are the first time;
the identification obtaining module is further configured to obtain configuration conversion information when the current packet to be converted completes conversion from the applicable first protocol to the applicable second protocol according to a second determination result that the conversion times are the first time, and send the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information to the storage analysis module; the particular value is greater than 1;
the storage analysis module is used for acquiring and associating the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information sent by the controller, and generating and storing conversion mapping information;
the processor is further configured to obtain the conversion mapping information in the storage analysis module according to a third determination result that the conversion frequency is greater than or equal to the specific value, perform configuration conversion on the current packet to be converted according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol through the associated configuration conversion information, convert the first protocol applicable to the current packet to be converted into the one-way transmission protocol conversion communication between the applicable second protocols, and further complete fixed conversion communication of the transmission protocol between the two communication devices.
With reference to the second aspect, in a first possible implementation manner, the packet to be converted includes a first header and first packet data, a type identifier of the first protocol is stored in the first header, and the configuration conversion information is header encapsulation information;
the processor is further configured to obtain the conversion mapping information in the storage analysis module according to a third determination result that the conversion frequency is greater than or equal to the specific value through identification, and replace the first header of the current packet to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so as to convert the first protocol applicable to the current packet to be converted into the unidirectional transmission protocol conversion communication between the applicable second protocols, and further complete the fixed conversion communication of the transmission protocol between the two communication devices.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the configuration converting module is further configured to generate a second header according to a standard of the second protocol, configure and convert the first header of the current packet to be converted into the second header, and enable the converted packet to be suitable for the second protocol.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the storage analysis module is further configured to obtain and associate the identifiers of the two communication devices sent by the controller, and generate and store conversion mapping information according to the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information;
the processor is further configured to obtain the conversion mapping information in the storage analysis module according to a third determination result that the conversion frequency is greater than or equal to the specific value through identification, and replace the first header of the current packet to be converted through the associated configuration conversion information according to the identification of any one or two identified communication devices, so as to convert the first protocol applicable to the current packet to be converted into the unidirectional transmission protocol conversion communication between the applicable second protocols, and further complete the fixed conversion communication of the transmission protocol between the two communication devices.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the first protocol is a transmission control protocol/internet protocol.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, the second protocol is an IPX protocol or an SPX protocol.
In a third aspect, this embodiment further provides a device for fixed conversion of a transmission protocol based on message protocol identification, where the device includes:
a processor for implementing a transport protocol conversion communication between two communication devices;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
recording the identification of the two communication devices and the conversion times of the one-way transmission protocol conversion communication between the two communication devices;
judging whether the conversion times are smaller than a preset specific value or not;
according to a first judgment result that the conversion times are smaller than the specific value, acquiring a type identifier of a first protocol which is currently applicable from a communication device which sends a message to be converted, and acquiring a type identifier and a standard of a second protocol which is applicable to another communication device according to an identifier of the other communication device;
performing configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
judging whether the conversion times are the first time or not;
according to a second judgment result that the conversion times are the first time, acquiring configuration conversion information when the current message to be converted is converted from the applicable first protocol to the applicable second protocol, and sending the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information to the storage analysis module; the particular value is greater than 1;
acquiring and associating the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information, and generating conversion mapping information for storage;
and according to a third judgment result that the conversion times are larger than or equal to the specific value, acquiring the conversion mapping information, and according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, performing configuration conversion on the current message to be converted through the associated configuration conversion information, so as to realize the conversion communication of the unidirectional transmission protocol between the first protocol applicable to the current message to be converted and the applicable second protocol, and further complete the fixed conversion communication of the transmission protocol between the two communication devices.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the embodiment of the disclosure provides a fixed conversion method and device of a transmission protocol based on message protocol recognition, which is suitable for a controller comprising a storage analysis module, wherein the controller is used for realizing transmission protocol conversion communication between two communication devices, the controller records and judges the conversion times of one-way transmission protocol conversion communication between the communication devices, and the controller acquires configuration conversion information when the current message to be converted completes conversion from an applicable first protocol to an applicable second protocol according to the judgment result that the conversion times are the first time, and sends a type identifier of the first protocol, a type identifier of the second protocol and the configuration conversion information to the storage analysis module for association, and generates conversion mapping information for storage; the controller obtains the conversion mapping information in the storage analysis module according to the judgment result that the conversion times is larger than or equal to the specific value through identification, and performs configuration conversion on the current message to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so as to realize the conversion communication of the one-way transmission protocol between the first protocol and the second protocol applicable to the current message to be converted, further complete the fixed conversion communication of the transmission protocol between the two communication devices, save the time for identifying, inquiring, calling and performing forward/reverse protocol conversion configuration each time when some messages are subsequently communicated for multiple times, thereby reducing the efficiency of message protocol conversion, and further reduces the working efficiency of message data communication.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic illustration of an implementation environment according to the present disclosure;
FIG. 2 is a flow diagram illustrating a method for fixed translation of a transport protocol based on message protocol identification in accordance with an exemplary embodiment;
fig. 3 is a block diagram illustrating a fixed transfer protocol conversion apparatus based on message protocol identification according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1 is a schematic illustration of an implementation environment according to the present disclosure. The implementation environment includes: a controller 110 and at least one communication device 120, the controller 110 comprising a storage analysis module 111.
The association between the controller 110 and the communication device 120 includes the network association and/or protocol of hardware and the data association therebetween.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for fixed conversion of a transport protocol based on message protocol identification according to an exemplary embodiment. As shown in fig. 2, the fixed transfer protocol conversion method based on message protocol recognition provided in this embodiment is suitable for a controller 110 including a storage analysis module 111, where the controller 110 is configured to implement transfer protocol conversion communication between two communication devices 120, and the method includes:
201. the controller records the identification of the two communication devices and the conversion times of the one-way transmission protocol conversion communication between the two communication devices;
202. judging whether the conversion times are smaller than a preset specific value or not; if the number of transitions is less than a certain value, the following step 203 is performed, and if the number of transitions is greater than or equal to a certain value, the following step 208 is performed;
203. the controller acquires the type identifier of a first protocol which is currently applicable from the communication device which sends the message to be converted, and acquires the type identifier and the standard of a second protocol which are applicable to another communication device according to the identifier of the other opposite communication device;
204. the controller carries out configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
205. the controller judges whether the conversion times are the first time;
206. the controller acquires configuration conversion information when the current message to be converted is converted from an applicable first protocol to an applicable second protocol, and sends a type identifier of the first protocol, a type identifier of the second protocol and the configuration conversion information to the storage analysis module; the specific value is greater than 1;
207. the storage analysis module acquires and associates the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information sent by the controller, and generates and stores conversion mapping information;
208. the controller acquires conversion mapping information in the storage analysis module according to a third judgment result that the conversion times are larger than or equal to a specific value through identification judgment, and performs configuration conversion on the current message to be converted through associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so that conversion communication of the one-way transmission protocol between the first protocol applicable to the current message to be converted and the applicable second protocol is realized, and further fixed conversion communication of the transmission protocol between two communication devices is completed.
The embodiment of the present disclosure provides a fixed conversion method for a transmission protocol based on message protocol recognition, which is applicable to a controller 110 including a storage analysis module 111, where the controller 110 is configured to implement transmission protocol conversion communication between two communication devices 120, the controller 110 records and determines the conversion times of performing unidirectional transmission protocol conversion communication between the communication devices 120, and the controller 110 obtains configuration conversion information when a current message to be converted completes conversion from an applicable first protocol to an applicable second protocol according to a determination result that the conversion times are the first time, and sends a type identifier of the first protocol, a type identifier of the second protocol, and the configuration conversion information to the storage analysis module 111 for association, and generates conversion mapping information for storage; the conversion mapping information in the storage analysis module 111 is obtained by the controller 110 according to the judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and the current message to be converted is configured and converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so that the one-way transmission protocol conversion communication between the first protocol applicable to the current message to be converted and the applicable second protocol is realized, the fixed conversion communication of the transmission protocol between the two communication devices 120 is further completed, the time for identifying, inquiring, calling and performing forward/reverse protocol conversion configuration every time when some messages are subsequently communicated for multiple times is saved, the message protocol conversion efficiency is reduced, and the working efficiency of message data communication is further reduced.
Preferably, as an optional implementation manner, the packet to be converted includes a first header and first packet data, the type identifier of the first protocol is stored in the first header, and the conversion information is configured as header encapsulation information; based on the method shown in fig. 2, in step 208, that is, the controller 110 obtains the conversion mapping information in the storage analysis module 111 according to the third determination result that the conversion frequency is determined to be greater than or equal to the specific value, and performs configuration conversion on the current packet to be converted according to the identified type identifier of the first protocol and/or the type identifier of the second protocol through the associated configuration conversion information, so as to implement the unidirectional transmission protocol conversion communication between the first protocol applicable to the current packet to be converted and the applicable second protocol, and further implement the fixed conversion communication of the transmission protocol between the two communication devices 120, specifically, the method includes the following implementation methods:
the controller 110 obtains the conversion mapping information in the storage analysis module 111 according to the third determination result that the conversion times is greater than or equal to the specific value, and performs the replacement of the first header on the current packet to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the type identifier of the second protocol, so as to implement the one-way transmission protocol conversion communication between the first protocol applicable to the current packet to be converted and the applicable second protocol, thereby completing the fixed conversion communication of the transmission protocol between the two communication devices 120.
Preferably, as an optional implementation manner, based on the method shown in fig. 2, in step 204, that is, the controller 110 performs configuration conversion on the current packet to be converted according to the standard of the second protocol, so that the converted packet is applicable to the second protocol, specifically including the following implementation manners:
the controller 110 generates a second header according to the standard of the second protocol, and configures and converts the first header of the current packet to be converted into the second header, so that the converted packet is applicable to the second protocol.
Preferably, as an optional implementation manner, based on the method shown in fig. 2, step 207 in which the storage analysis module 111 obtains, associates the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information sent by the controller 110, and generates and stores the conversion mapping information includes the following implementation manners:
the storage analysis module 111 acquires and associates the identifiers of the two communication devices 120 sent by the controller 110, the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information, and generates and stores conversion mapping information;
in the preferred embodiment, the method further comprises:
the controller 110 obtains the conversion mapping information in the storage analysis module 111 according to the third determination result that the conversion times is greater than or equal to the specific value, and performs the replacement of the first header on the current message to be converted through the associated configuration conversion information according to the identifier of any one or two of the communication devices 120, so as to convert the first protocol applicable to the current message to be converted into the unidirectional transmission protocol conversion communication between the applicable second protocols, and further complete the fixed conversion communication of the transmission protocol between the two communication devices 120.
As an optional implementation manner, the first Protocol is a TCP Protocol or an IP Protocol (i.e., a Transmission Control Protocol/Internet Protocol, Transmission Control Protocol, or Internet Protocol).
As an alternative, the second protocol is IPX (Internet Packet Exchange) or SPX (sequential Packet Exchange).
In a second aspect, please refer to fig. 3, fig. 3 is a block diagram illustrating a fixed transfer protocol conversion apparatus based on message protocol identification according to an exemplary embodiment. As shown in fig. 3, an embodiment of the present disclosure provides a transmission protocol fixed conversion device 310 based on message protocol identification, including a controller 110, where the controller 110 is configured to implement transmission protocol conversion communication between at least two communication devices 120 shown in fig. 1, the controller 110 includes a processor 101, a determination module 102, an identification acquisition module 103, a configuration conversion module 104, and a storage analysis module 111, where the processor 101 is connected to the determination module 102, the determination module 102 is connected to the identification acquisition module 103, the configuration conversion module 104 is connected to the identification acquisition module 103, the identification acquisition module 103 is further connected to the storage analysis module 111, and the processor 101 is further connected to the storage analysis module 111. Specifically, the functions and operating principles of the processor 101, the judging module 102, the identification obtaining module 103, the configuration converting module 104 and the storage analyzing module 111 of the device are respectively described as follows:
a processor 101, configured to record the identifiers of the two communication devices 120 and record the number of times of conversion of the one-way transmission protocol conversion communication between the two communication devices 120;
the judging module 102 is configured to judge whether the number of times of conversion is smaller than a preset specific value;
an identification obtaining module 103, configured to obtain, according to a first determination result that the number of times of conversion is smaller than a specific value, a type identifier of a first protocol currently applied to the communication device 120 that sends the packet to be converted, and obtain, according to an identifier of another communication device 120 that is opposite to the first protocol, a type identifier and a standard of a second protocol applied to another communication device 120;
a configuration conversion module 104, configured to perform configuration conversion on the current packet to be converted according to the standard of the second protocol, so that the converted packet is suitable for the second protocol;
the judging module 102 is further configured to judge whether the conversion frequency is the first time;
the identification obtaining module 103 is further configured to obtain, according to a second determination result that the conversion times are the first time, configuration conversion information when the current packet to be converted completes conversion from the applicable first protocol to the applicable second protocol, and send the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information to the storage analyzing module 111; the specific value is greater than 1;
a storage analysis module 111, configured to acquire and associate the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information sent by the identification acquisition module 103 of the controller 110, and generate and store conversion mapping information;
the processor 101 is further configured to obtain the conversion mapping information in the storage analysis module 111 according to the third determination result that the conversion frequency is greater than or equal to the specific value through the identification determination, and perform configuration conversion on the current packet to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so as to implement one-way transmission protocol conversion communication between the first protocol applicable to the current packet to be converted and the applicable second protocol, thereby completing fixed conversion communication of the transmission protocol between the two communication devices 120.
As an optional implementation manner, the packet to be converted includes a first header and first packet data, the type identifier of the first protocol is stored in the first header, and the conversion information is configured as header encapsulation information; in this embodiment, the processor 101 is further configured to obtain the conversion mapping information in the storage analysis module 111 according to a third determination result that the conversion frequency is greater than or equal to the specific value through the identification determination, and perform, according to the identified type identifier of the first protocol and/or the type identifier of the second protocol, replacement of the first header of the current packet to be converted by using the associated configuration conversion information, so as to implement conversion communication of a unidirectional transmission protocol between the first protocol applicable to the current packet to be converted and the applicable second protocol, and further complete fixed conversion communication of the transmission protocol between the two communication devices 120.
As an optional implementation manner, the configuration converting module 104 is further configured to generate a second header according to a standard of a second protocol, configure and convert a first header of the current packet to be converted into the second header, so that the converted packet is applicable to the second protocol.
As an optional implementation manner, the storage analysis module 111 is further configured to obtain and associate the identifiers of the two communication devices 120 sent by the controller 110, the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information, generate and store conversion mapping information; the processor 101 is further configured to obtain the conversion mapping information in the storage analysis module 111 according to the third determination result that the number of conversion times is greater than or equal to the specific value through the identification determination, and perform replacement of the first header on the current packet to be converted through the associated configuration conversion information according to the identification of any one or two of the communication devices 120, so as to implement conversion communication of a unidirectional transmission protocol between a first protocol applicable to the current packet to be converted and an applicable second protocol, and further complete fixed conversion communication of the transmission protocol between the two communication devices 120.
As an alternative implementation, the first protocol is a TCP protocol or an IP protocol.
As an alternative embodiment, the second protocol is an IPX or SPX protocol.
In a third aspect, this embodiment further provides a fixed transfer protocol conversion apparatus based on message protocol identification, and the apparatus may be used in the controller 110 in the implementation environment shown in fig. 1 to perform all or part of the steps of the method shown in fig. 2. The device includes:
a processor for implementing transport protocol conversion communication between two communication devices 120;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
recording the identification of the two communication devices 120 and the conversion times of the one-way transmission protocol conversion communication between the two communication devices 120;
judging whether the conversion times are smaller than a preset specific value or not;
according to the first judgment result that the conversion times are less than the specific value, acquiring the type identifier of the first protocol currently applied from the communication device 120 sending the message to be converted, and acquiring the type identifier and the standard of the second protocol applied by the other communication device 120 according to the identifier of the other communication device 120;
performing configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
judging whether the conversion times are the first time or not;
according to the second judgment result with the first conversion times, obtaining configuration conversion information when the current message to be converted completes the conversion from the applicable first protocol to the applicable second protocol, and sending the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information to the storage analysis module 111; the specific value is greater than 1;
acquiring and associating the type identifier of the first protocol, the type identifier of the second protocol and configuration conversion information, and generating and storing conversion mapping information;
and according to a third judgment result that the conversion times are larger than or equal to the specific value through identification judgment, obtaining conversion mapping information, and according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, performing configuration conversion on the current message to be converted through the associated configuration conversion information, so as to convert the first protocol applicable to the current message to be converted into the one-way transmission protocol conversion communication between the applicable second protocols, and further complete the fixed conversion communication of the transmission protocol between the two communication devices 120.
The specific manner in which the processor of the apparatus in this embodiment performs the operation has been described in detail in the embodiment of the fixed transfer protocol conversion method based on message protocol identification, and will not be described in detail here.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (13)

1. A fixed conversion method of a transmission protocol based on message protocol identification is characterized in that the fixed conversion method is suitable for a controller comprising a storage analysis module, the controller is used for realizing transmission protocol conversion communication between two communication devices, and the method comprises the following steps:
the controller records the identification of the two communication devices and the conversion times of the one-way transmission protocol conversion communication between the two communication devices;
the controller judges whether the conversion times are smaller than a preset specific value or not;
the controller acquires the type identifier of the currently applicable first protocol from the communication device sending the message to be converted according to the first judgment result that the conversion times are smaller than the specific value, and acquires the type identifier and the standard of the second protocol applicable to another communication device according to the identifier of the other opposite communication device;
the controller performs configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
the controller judges whether the conversion times are the first time or not;
the controller acquires configuration conversion information when the current message to be converted completes conversion from the applicable first protocol to the applicable second protocol according to a second judgment result of which the conversion times are the first time, and sends the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information to the storage analysis module; the particular value is greater than 1;
the storage analysis module acquires and associates the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information sent by the controller to generate conversion mapping information for storage;
the controller acquires the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and performs configuration conversion on the current message to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the type identifier of the second protocol, so that the conversion communication of the one-way transmission protocol between the first protocol applicable to the current message to be converted and the second protocol applicable to the current message to be converted is realized, and further the fixed conversion communication of the transmission protocol between the two communication devices is completed.
2. The method of claim 1, wherein the packet to be converted comprises a first header and first packet data, wherein the type identifier of the first protocol is stored in the first header, and wherein the configuration conversion information is header encapsulation information; the controller obtains the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and performs configuration conversion on the current message to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so as to convert the first protocol applicable to the current message to be converted into the one-way transmission protocol conversion communication between the applicable second protocols, and further complete the fixed conversion communication of the transmission protocol between the two communication devices, and the method comprises the following steps:
the controller acquires the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and replaces the first header of the current message to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the type identifier of the second protocol, so that the conversion communication of the one-way transmission protocol between the first protocol applicable to the current message to be converted and the second protocol applicable to the current message to be converted is realized, and further the fixed conversion communication of the transmission protocol between the two communication devices is completed.
3. The method of claim 2, wherein the controller performs configuration conversion on the current packet to be converted according to the standard of the second protocol, so that the converted packet is applicable to the second protocol, including:
the controller generates a second header according to the standard of the second protocol, and configures and converts the first header of the current message to be converted into the second header, so that the converted message is applicable to the second protocol.
4. The method of claim 3, wherein the storing and analyzing module obtains and associates the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information sent by the controller to generate conversion mapping information for storage, and comprises:
the storage analysis module acquires and associates the identifiers of the two communication devices sent by the controller, the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information, and generates and stores conversion mapping information;
the method further comprises the following steps:
the controller acquires the conversion mapping information in the storage analysis module according to a third judgment result that the conversion times is judged to be greater than or equal to the specific value through identification, and replaces the first header of the current message to be converted through the associated configuration conversion information according to the identification of any one or two identified communication devices, so that the conversion communication of the first protocol applicable to the current message to be converted into the one-way transmission protocol between the applicable second protocols is realized, and further the fixed conversion communication of the transmission protocol between the two communication devices is completed.
5. The method of claim 4, wherein the first protocol is transmission control protocol/internet protocol.
6. The method of claim 5, wherein the second protocol is an internet packet exchange protocol or a sequential packet exchange protocol.
7. A fixed transfer protocol conversion device based on message protocol identification, comprising a controller, wherein the controller is configured to implement transfer protocol conversion communication between two communication devices, and the controller comprises:
the processor is used for recording the identifications of the two communication devices and recording the conversion times of the one-way transmission protocol conversion communication between the two communication devices;
the judging module is used for judging whether the conversion times are smaller than a preset specific value or not;
an identification obtaining module, configured to obtain, according to a first determination result that the number of times of conversion is smaller than the specific value, a type identifier of a first protocol currently applied to a communication device that sends a packet to be converted, and obtain, according to an identifier of another communication device that is opposite to the first protocol, a type identifier and a standard of a second protocol applied to the another communication device;
the configuration conversion module is used for performing configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
the judging module is also used for judging whether the conversion times are the first time;
the identification obtaining module is further configured to obtain configuration conversion information when the current packet to be converted completes conversion from the applicable first protocol to the applicable second protocol according to a second determination result that the conversion times are the first time, and send the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information to the storage analysis module; the particular value is greater than 1;
the storage analysis module is used for acquiring and associating the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information sent by the controller, and generating and storing conversion mapping information;
the processor is further configured to obtain the conversion mapping information in the storage analysis module according to a third determination result that the conversion frequency is greater than or equal to the specific value, perform configuration conversion on the current packet to be converted according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol through the associated configuration conversion information, convert the first protocol applicable to the current packet to be converted into the one-way transmission protocol conversion communication between the applicable second protocols, and further complete fixed conversion communication of the transmission protocol between the two communication devices.
8. The apparatus of claim 7, wherein the packet to be converted comprises a first header and first packet data, wherein the type identifier of the first protocol is stored in the first header, and wherein the configuration conversion information is header encapsulation information;
the processor is further configured to obtain the conversion mapping information in the storage analysis module according to a third determination result that the conversion frequency is greater than or equal to the specific value through identification, and replace the first header of the current packet to be converted through the associated configuration conversion information according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, so as to convert the first protocol applicable to the current packet to be converted into the unidirectional transmission protocol conversion communication between the applicable second protocols, and further complete the fixed conversion communication of the transmission protocol between the two communication devices.
9. The apparatus of claim 8,
the configuration conversion module is further configured to generate a second header according to the standard of the second protocol, configure and convert the first header of the current packet to be converted into the second header, and make the converted packet suitable for the second protocol.
10. The apparatus of claim 9, wherein the storage analysis module is further configured to obtain, associate, and send by the controller, identifiers of the two communication apparatuses, the type identifier of the first protocol, the type identifier of the second protocol, and the configuration conversion information, and generate and store conversion mapping information;
the processor is further configured to obtain the conversion mapping information in the storage analysis module according to a third determination result that the conversion frequency is greater than or equal to the specific value through identification, perform, according to the identification of any one or two identified communication devices, the replacement of the first header on the current packet to be converted through the associated configuration conversion information and the identification of any one or two communication devices to be currently converted through the associated configuration conversion information, implement conversion of the first protocol applicable to the current packet to be converted into the unidirectional transmission protocol conversion communication between the applicable second protocols, and further complete fixed conversion communication of the transmission protocol between the two communication devices.
11. The apparatus of claim 10, wherein the first protocol is transmission control protocol/internet protocol.
12. The apparatus of claim 11, wherein the second protocol is an internet packet exchange protocol or a sequential packet exchange protocol.
13. A fixed transfer protocol conversion device based on message protocol identification, the device comprising:
a processor for implementing a transport protocol conversion communication between two communication devices;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
recording the identification of the two communication devices and the conversion times of the one-way transmission protocol conversion communication between the two communication devices;
judging whether the conversion times are smaller than a preset specific value or not;
according to a first judgment result that the conversion times are smaller than the specific value, acquiring a type identifier of a first protocol which is currently applicable from a communication device which sends a message to be converted, and acquiring a type identifier and a standard of a second protocol which is applicable to another communication device according to an identifier of the other communication device;
performing configuration conversion on the current message to be converted according to the standard of the second protocol, so that the converted message is suitable for the second protocol;
judging whether the conversion times are the first time or not;
according to a second judgment result that the conversion times are the first time, acquiring configuration conversion information when the current message to be converted is converted from the applicable first protocol to the applicable second protocol, and sending the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information to a storage analysis module; the particular value is greater than 1;
acquiring and associating the type identifier of the first protocol, the type identifier of the second protocol and the configuration conversion information, and generating conversion mapping information for storage;
and according to a third judgment result that the conversion times are larger than or equal to the specific value, acquiring the conversion mapping information, and according to the identified type identifier of the first protocol and/or the identified type identifier of the second protocol, performing configuration conversion on the current message to be converted through the associated configuration conversion information, so as to realize the conversion communication of the unidirectional transmission protocol between the first protocol applicable to the current message to be converted and the applicable second protocol, and further complete the fixed conversion communication of the transmission protocol between the two communication devices.
CN201680001022.7A 2016-07-29 2016-07-29 Fixed conversion method and device of transmission protocol based on message protocol identification Expired - Fee Related CN107925652B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/092260 WO2018018607A1 (en) 2016-07-29 2016-07-29 Method and device for fixed conversion of transmission protocol based on message protocol identification

Publications (2)

Publication Number Publication Date
CN107925652A CN107925652A (en) 2018-04-17
CN107925652B true CN107925652B (en) 2021-01-12

Family

ID=61015493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680001022.7A Expired - Fee Related CN107925652B (en) 2016-07-29 2016-07-29 Fixed conversion method and device of transmission protocol based on message protocol identification

Country Status (2)

Country Link
CN (1) CN107925652B (en)
WO (1) WO2018018607A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BE1026569B1 (en) * 2018-08-27 2020-03-23 Phoenix Contact Gmbh & Co Control and data transmission system to support various communication protocols and an adapter module
CN111064716B (en) * 2019-12-05 2022-03-11 深圳猛犸电动科技有限公司 Message conversion method, device, storage medium and server
CN114006928B (en) * 2021-11-04 2024-04-19 深圳市骏嘉科技发展有限公司 Internet of things data processing method based on multi-protocol real-time communication
CN114125075A (en) * 2021-11-27 2022-03-01 云南电网有限责任公司信息中心 System and method for dynamically switching multiple communication protocols in private network
CN117319516A (en) * 2023-11-15 2023-12-29 中国三峡建工(集团)有限公司 Multi-protocol conversion protocol processing method and device, electronic equipment and medium

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1235368C (en) * 2002-08-21 2006-01-04 华为技术有限公司 Address conversion method for simultaneously supporting one-to-one and many-to-many under the PAT mode
US8032593B2 (en) * 2003-08-07 2011-10-04 Teamon Systems, Inc. Communications system providing reduced access latency and related methods
WO2007101182A2 (en) * 2006-02-28 2007-09-07 Maven Networks, Inc. Systems and methods for delivering and managing media content downloaded to a network connected device
CN100586104C (en) * 2006-04-17 2010-01-27 中国科学院计算技术研究所 A route-based talk initialization protocol transparent transmission network address conversion method
US20080137644A1 (en) * 2006-12-11 2008-06-12 Reynolds Douglas F METHODS AND APPARATUS TO PROVIDE VOICE OVER INTERNET PROTOCOL (VoIP) SERVICES
CN101316260B (en) * 2007-05-30 2012-04-25 华为技术有限公司 Packaging conversion method and packaging conversion equipment
CN101237411B (en) * 2008-01-22 2013-02-20 张建中 Method, device and system for inter-network intercommunication in networks with different protocols
CN101227412B (en) * 2008-02-05 2010-09-29 华为技术有限公司 Apparatus and method for message conversion
CN101321326B (en) * 2008-07-22 2013-06-05 中兴通讯股份有限公司 Short message forwarding method of short message first dispatching platform
CN101998313A (en) * 2009-08-17 2011-03-30 华为技术有限公司 Method and system for handling short message as well as short message gateway and interactive function entity
CN101895534B (en) * 2010-07-02 2013-04-24 肖闽进 Protocol conversion interface device of substation intelligent device
CN102595510B (en) * 2011-01-06 2015-05-20 鼎桥通信技术有限公司 Message processing method and device
CN102891796B (en) * 2012-11-02 2015-05-06 中滦科技有限公司 Mining intelligent transmission gateway
CN103391251B (en) * 2013-07-16 2016-06-29 杭州华三通信技术有限公司 A kind of method and apparatus reducing redundant flow in PBB network
CN104320373A (en) * 2014-07-04 2015-01-28 中国兵器工业信息中心 Protocol interworking device between application server and terminal and method for implementing the same

Also Published As

Publication number Publication date
CN107925652A (en) 2018-04-17
WO2018018607A1 (en) 2018-02-01

Similar Documents

Publication Publication Date Title
CN107925652B (en) Fixed conversion method and device of transmission protocol based on message protocol identification
CN108965484B (en) Internet of things data transmission method, system and terminal
CN111835786A (en) System for data acquisition and equipment control of multi-protocol equipment and implementation method
CN107592367A (en) Resource share method, device and the computer-readable recording medium of home appliance
CN107566233A (en) The resource share method and device of home appliance
CN111464419B (en) Data transmission control method based on bus network communication
CN107622771A (en) Home appliance and its control method, system and computer-readable recording medium
EP3566422A1 (en) Method for data transmission between, on the one hand, an application server, and, on the other hand, at least one internet-of-things communication device using a mobile communication network, mobile communication network, system, internet-of-thing communication device, program and computer program product
CN102299862A (en) Quick forwarding equipment and method for two-layer tunnel
CN110417876A (en) Node server and main control device in session method, distributed system
CN111343196B (en) Communication system and communication method compatible with multiple communication protocols
CN106341433A (en) Service system, signal server and intercom server
CN110932393B (en) Substation information protection master station system and data initialization method thereof
EP4142422A1 (en) Method and apparatus for session audit for control and user plane separation
CN115242760B (en) SFU system and method based on WebRTC
CN115150207B (en) Industrial network equipment identification method and device, terminal equipment and storage medium
CN105281944B (en) Method for setting network protocol address and service management system
CN114363306A (en) Data transmission method based on Netconf protocol and related equipment
CN115080771A (en) Data processing method and device based on artificial intelligence, medium and gateway equipment
CN110061893A (en) A kind of fault information acquisition method, server and storage medium
CN110661692B (en) Network interconnection system and method
CN112104591B (en) Communication device of controller and communication method thereof
CN104468645A (en) Control method, electronic equipment, and information transmission method and device
CN110943897A (en) PPPoE data message transmission method, device, equipment and storage medium
CN109768905A (en) A kind of method, system, equipment and the storage medium of PPPoE message transmissions

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210112

Termination date: 20210729

CF01 Termination of patent right due to non-payment of annual fee