Movatterモバイル変換


[0]ホーム

URL:


CN114500674B - Distributed system data transparent transmission method, device, storage medium and system - Google Patents

Distributed system data transparent transmission method, device, storage medium and system
Download PDF

Info

Publication number
CN114500674B
CN114500674BCN202210287687.6ACN202210287687ACN114500674BCN 114500674 BCN114500674 BCN 114500674BCN 202210287687 ACN202210287687 ACN 202210287687ACN 114500674 BCN114500674 BCN 114500674B
Authority
CN
China
Prior art keywords
transparent transmission
transparent
protocol
data
transmission data
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
Application number
CN202210287687.6A
Other languages
Chinese (zh)
Other versions
CN114500674A (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.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen 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 Kangjian Information Technology Shenzhen Co LtdfiledCriticalKangjian Information Technology Shenzhen Co Ltd
Priority to CN202210287687.6ApriorityCriticalpatent/CN114500674B/en
Publication of CN114500674ApublicationCriticalpatent/CN114500674A/en
Application grantedgrantedCritical
Publication of CN114500674BpublicationCriticalpatent/CN114500674B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention relates to the field of data processing and provides a data transparent transmission method, a device, a storage medium and a system of a distributed system, wherein the data transparent transmission method comprises the steps of obtaining a first transmission protocol request sent by a client; based on the first transmission protocol request, a preset transparent transmission protocol layer module is applied to determine transparent transmission data to be transmitted, the transparent transmission data is added into a transparent transmission data container, the transparent transmission data is taken out of the transparent transmission data container based on a second transmission protocol, the transparent transmission data is identified, the identified transparent transmission data is added into a second transmission protocol request sent by a gateway to be sent to a destination address, the distributed system data transparent transmission method and device can provide transparent transmission of various remote program call interactive data, have high expandability, can be suitable for data transparent transmission scenes of heterogeneous distributed systems, and provide low-cost access and use for data transparent transmission of different development languages.

Description

Distributed system data transparent transmission method, device, storage medium and system
Technical Field
The present invention relates to the field of data processing, and in particular, to a distributed system data transparent transmission method, device, storage medium and system.
Background
In a distributed system scenario of a micro-service architecture, transmission of remote procedure call interaction data is performed between a service consumer and a service provider through a defined API interface, where the data includes an API interface identifier and an API parameter, where the API parameter is used to satisfy a data requirement of a specific business service. In a complex microservice system, besides API parameters, some data needs to be transmitted through in a remote procedure call interaction to be used as dynamic supplement of the API parameters and for middleware and a basic framework running in the system, and the transmitted data does not affect an API interface during transmission.
In the prior art, the transparent transmission method of the distributed system mainly comprises the steps that each middleware independently realizes respective functional modules for meeting own data transparent transmission scene, and data parameters in the processing method are basically fixed, so that dynamic parameters are not convenient to set, and the integration and the use of other middleware or base frames are not facilitated.
Therefore, how to flexibly and extendably pass data through a distributed system is a problem to be solved.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, an object of the present invention is to provide a method, an apparatus, a storage medium and a system for transparent transmission of data in a distributed system, which are used for solving the problem that flexible and extensible transparent transmission of data cannot be performed in the distributed system in the prior art.
In order to achieve the above and other related objects, the present invention provides a distributed system data transparent transmission method, which includes the steps of obtaining a first transmission protocol request sent by a client, applying a preset transparent transmission protocol layer module based on the first transmission protocol request to determine transparent data to be transmitted, adding the transparent data to a transparent data container, taking out the transparent data from the transparent data container based on a second transmission protocol, identifying the transparent data, and adding the identified transparent data to a second transmission protocol request sent by a gateway to send to a destination address.
In an embodiment of the invention, the determining the transparent data to be transmitted based on the first transmission protocol request by applying a preset transparent protocol layer module includes obtaining a transparent identifier based on the first transmission protocol request header, determining the transparent data corresponding to the transparent identifier when the transparent identifier is obtained, obtaining a field corresponding to the transparent data defined by the logic assembly module in the first transmission protocol request header when the transparent identifier is not obtained, determining the transparent data corresponding to the field based on the field, and resolving the predefined resolvable field to obtain the transparent data corresponding to the field after resolving when the transparent data is not obtained based on the field.
In an embodiment of the invention, the method for adding the identified transparent data to the second transmission protocol request sent by the gateway to be sent to the destination address comprises the steps that a server of the second transmission protocol receives the second transmission protocol request, the transparent data is determined by applying the transparent protocol layer module based on the second transmission protocol request, the transparent data is added to a transparent data container corresponding to the server, the server takes the transparent data out of the transparent data container corresponding to the server based on the second transmission protocol, and the transparent data is identified and added to the second transmission protocol request sent by the server to be sent to the destination address.
In an embodiment of the invention, the first transmission protocol and the second transmission protocol are different.
In an embodiment of the present invention, after the transparent data is added to the transparent data container, the method further includes the steps of retrieving the transparent data from the transparent data container, identifying the transparent data, adding the identified transparent data to a second request of the first transmission protocol sent by the gateway, and directly sending the second request to the destination address.
In an embodiment of the present invention, the transparent data container is configured in a memory of the gateway.
Correspondingly, the invention provides a distributed system data transparent transmission device which comprises an acquisition module, a determination module, a first processing module and a second processing module, wherein the acquisition module is used for acquiring a first transmission protocol request sent by a client, the determination module is used for determining transparent transmission data to be transmitted based on the first transmission protocol request by applying a preset transparent transmission protocol layer module, the transparent transmission data is added into a transparent transmission data container, the first processing module is used for taking out the transparent transmission data from the transparent transmission data container based on a second transmission protocol, and the second processing module is used for identifying the transparent transmission data and adding the transparent transmission data after identification into a second transmission protocol request sent by a gateway so as to send the transparent transmission data to a destination address.
The transparent transmission protocol layer module comprises a protocol management module, a protocol butt joint module, a logic assembly module and a logic processing module, wherein the protocol management module is used for carrying out the definition management of the butt joint protocol registration and processing logic, the protocol butt joint module is used for defining the transparent transmission entrance of the transparent transmission protocol and the execution of the transparent transmission processing flow in different interactive protocols, the logic assembly module is used for creating a logic processing object based on the definition of the processing logic in the protocol management module and comprises a transparent transmission data receiving processor, an interactive protocol parameter transparent transmission data grabbing processor, an interactive protocol head transparent transmission data grabbing processor and an interactive protocol head field analysis transparent transmission processor, and the logic processing module is used for realizing the logic processing of the interactive protocol butt joint transparent transmission protocol and comprises a transparent transmission data receiving processor and a transparent transmission data sending processor.
The determining module is specifically configured to obtain a transparent identifier based on the first transport protocol request header, determine transparent data corresponding to the transparent identifier when the transparent identifier is obtained, obtain a field corresponding to the transparent data defined by the logic assembling module in the first transport protocol request header when the transparent identifier is not obtained, determine the transparent data corresponding to the field based on the field, and parse a token field to obtain the transparent data when the transparent data is not obtained based on the field.
The present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the distributed system data transparent transmission method described above.
The invention provides a distributed system data transparent transmission system which comprises a memory and a processor, wherein the memory is used for storing a computer program, and the processor is used for running the computer program to realize the distributed system data transparent transmission method.
As described above, the distributed system data transparent transmission method and device of the invention have the following beneficial effects:
(1) The method can provide transparent transmission of various remote program call interaction data, and has high expandability.
(2) The method is suitable for the data transparent transmission scene of the heterogeneous distributed system, and low-cost access and use are provided for the data transparent transmission of different development languages.
(3) The support capability of data transparent transmission can be provided for the middleware and the base frame, the research and development cost of the data transparent transmission module is saved, and the research and development efficiency is improved.
Drawings
FIG. 1 is a flow chart of a distributed system data transparent transmission method according to an embodiment of the invention.
Fig. 2 is a flowchart of a data transmission method of a distributed system according to an embodiment of the invention.
FIG. 3 is a schematic diagram illustrating an embodiment of a distributed system data transparent transmission method according to the present invention.
Fig. 4 is a schematic diagram of a distributed system data transmission device according to an embodiment of the invention.
Fig. 5 is a block diagram of a transparent transmission protocol layer of a distributed system data transparent transmission method according to an embodiment of the invention.
FIG. 6 is a diagram of a distributed system data transparent transmission system according to an embodiment of the present invention.
Description of element reference numerals
41. Acquisition module
42. Determination module
43. First processing module
44. Second processing module
51. Protocol management module
52. Protocol docking module
53. Logic assembling module
54. Logic processing module
61. Processor and method for controlling the same
62. Memory device
Detailed Description
Other advantages and effects of the present invention will become apparent to those skilled in the art from the following disclosure, which describes the embodiments of the present invention with reference to specific examples. The invention may be practiced or carried out in other embodiments that depart from the specific details, and the details of the present description may be modified or varied from the spirit and scope of the present invention. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concept of the present invention by way of illustration, and only the components related to the present invention are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complicated.
The data transparent transmission method and device for the distributed system can provide transparent transmission of various remote program call interaction data, has high expandability, can be suitable for data transparent transmission scenes of heterogeneous distributed systems, provides low-cost access and use for data transparent transmission of different development languages, and can provide supporting capability for data transparent transmission for middleware and a base frame, so that research and development cost of a data transparent transmission module in the method and device is saved, and research and development efficiency is improved.
As shown in fig. 1, in this embodiment, the distributed system data transparent transmission method of the present invention includes the following steps:
step S1, a first transmission protocol request sent by a client is obtained.
Specifically, when there is a data transparent transmission requirement in the distributed system, the transmission protocol from the client to the gateway is a first transmission protocol, and before the client sends the first transmission protocol request, transparent transmission data is added into a first transmission protocol request header of the first transmission protocol request, and is sent to the gateway together with the transmission data.
And step S2, based on the first transmission protocol request, a preset transparent transmission protocol layer module is applied to determine transparent transmission data to be transmitted, and the transparent transmission data is added into a transparent transmission data container.
The transparent transmission protocol layer module comprises a protocol management module, a protocol butt joint module, a logic assembly module and a logic processing module, wherein the protocol management module is used for carrying out the definition management of the butt joint protocol registration and processing logic, the protocol butt joint module is used for defining transparent transmission inlets for executing transparent transmission protocols in different interactive protocols and carrying out transparent transmission processing flows, the logic assembly module is used for creating logic processing objects based on the definition of the processing logic in the protocol management module and comprises a transparent transmission data receiving processor, an interactive protocol parameter transparent transmission data grabbing processor, an interactive protocol head transparent transmission data grabbing processor and an interactive protocol head field analysis transparent transmission processor, and the logic processing module is used for realizing the logic processing of the interactive protocol butt joint transparent transmission protocol and comprises a transparent transmission data receiving processor and a transparent transmission data sending processor.
More specifically, as shown in fig. 2, in this embodiment, the transmission-through data transmission flow chart of the present invention is shown. After the modules of the transparent transmission protocol layer are set, the transparent transmission protocol and interaction protocol based butt joint and the data transmission network flow are used for determining the transparent transmission data transmission flow, and the method comprises the steps of preprocessing transparent transmission data by a logic processing layer 21, sending a transmission protocol request containing the transparent transmission data through a transparent transmission protocol layer 22, transmitting the transmission protocol request added with the transparent transmission data to a communication interaction layer 23, sending the transmission protocol request to a receiving end through a network transmission 24, receiving the transmission protocol request containing the transparent transmission data by the receiving end through the communication interaction layer 23, acquiring the transparent transmission data from the transmission protocol request through the transparent transmission protocol layer 22, and operating the transparent transmission data through the logic processing layer 21, so that the full-link transparent transmission of the transparent transmission data is completed.
Further specifically, based on the first transmission protocol request header, a transparent identifier is obtained, transparent data corresponding to the transparent identifier is determined when the transparent identifier is obtained, a field corresponding to the transparent data defined by the logic assembly module in the first transmission protocol request header is obtained when the transparent identifier is not obtained, the transparent data corresponding to the field is determined based on the field, and when the corresponding transparent data is not obtained based on the field, a predefined resolvable field is resolved to obtain the transparent data corresponding to the field after the field is resolved.
For example, the preset transparent transmission identifier of transparent transmission data is_tt_m_, and the client needs to transmit transparent transmission data from the communication network of the hypertext transfer protocol (Hyper Text transfer protocol, http) to the communication network of the distributed service framework protocol Dubbo. The method comprises the steps that firstly, a client adds transparent transmission data into a first transmission protocol request, the first transmission protocol request containing the transparent transmission data and transmitted data transmission are sent to a gateway, wherein the first transmission protocol between the client and the gateway is an Http protocol, the gateway is in communication connection with a Dubbo-protocol server, and the Dubbo-protocol server is connected with a requested destination address through a second transmission protocol Dubbo protocol. 4 logical definitions of transparent transmission processing are defined in a logical assembly module of the transparent transmission protocol layer, wherein the logical definitions correspond to 4 transparent transmission input processors respectively and comprise transparent transmission data receiving processors of the Http protocol, transparent transmission data grabbing processors of Http protocol parameters, transparent transmission data grabbing processors of the Http protocol header, and analysis transparent transmission processors for analyzing fields in the Http protocol header. The data submitted by the Http protocol is provided with interface service data, public data and the like, wherein the fields corresponding to the public data comprise token fields and the like, 4 transparent transmission processing logics are defined in a transparent transmission protocol layer logic assembly module based on Dubbo protocol and transparent transmission protocol layer modules in advance, the 4 transparent transmission processing logics respectively correspond to 4 transparent transmission input processors and comprise a transparent transmission data receiving processor of Dubbo protocol, a Dubbo protocol parameter transparent transmission data grabbing processor, a Dubbo protocol head transparent transmission data grabbing processor and a transparent transmission analysis processor for analyzing the fields in the Dubbo protocol head. The gateway is a network server, a set of transparent transmission receiving processors related to the Http protocol and a set of transparent transmission sending processors related to the Dubbo protocol are created in advance through the abstract object of protocol transparent transmission butt joint and the logic definition of transparent transmission processing. In an actual transparent data transmission scene, firstly, transparent data is acquired from an Http protocol request header according to whether a request header name contains a transparent identifier, when the transparent identifier is obtained, transparent data corresponding to the transparent identifier is determined, the transparent data is added into a transparent data container, when the transparent identifier cannot be detected from the Http protocol request header, a field corresponding to the transparent data defined by transparent processing logic is acquired from the Http protocol request, the transparent data corresponding to the field is determined based on the field, and when the transparent data cannot be acquired through the field, the predefined resolvable field is resolved to obtain the transparent data corresponding to the field after the field is resolved.
More specifically, a transparent data container is configured in the memory in advance, and when transparent data is identified, the transparent data is stored in the transparent data container; the transparent transmission data container is realized in a higher level, and can be compatible with the realization of various interactive protocols and transparent transmission among asynchronous threads.
And step S3, based on a second transmission protocol, taking out the transparent transmission data from the transparent transmission data container.
Specifically, the transparent transmission data is obtained from the transparent transmission data container so as to mark the transparent transmission data.
Further specifically, when the transparent data is not acquired from the transparent data container, a transparent data container is newly created in the memory, the transparent data is added into the transparent data container by a code adding mode, and then the newly added transparent data is acquired from the transparent data container so as to mark the transparent data.
And S4, marking the transparent transmission data, and adding the marked transparent transmission data to a second transmission protocol request sent by the gateway so as to send the second transmission protocol request to a destination address.
The method comprises the steps of receiving a second transmission protocol request by a server of a second transmission protocol, applying a transparent transmission protocol layer module based on the second transmission protocol request to determine transparent transmission data, adding the transparent transmission data into a transparent transmission data container corresponding to the server, taking out the transparent transmission data from the transparent transmission data container corresponding to the server based on the second transmission protocol, identifying the transparent transmission data, and adding the identified transparent transmission data into the second transmission protocol request sent by the server to send the transparent transmission data to the destination address.
For example, in the above example, after the gateway sends the Dubbo protocol request with the transparent data added to the Dubbo protocol server, the Dubbo protocol server applies the transparent protocol layer module based on the Dubbo protocol request to determine the transparent data, specifically, firstly, whether the transparent data is acquired from the Dubbo protocol request header according to whether the request header name includes the transparent identifier, when the transparent identifier is obtained, the transparent data corresponding to the transparent identifier is determined, the transparent data is added to the transparent data container, when the transparent identifier cannot be detected from the Dubbo protocol request header, the field corresponding to the transparent data defined by the transparent processing is acquired from the Dubbo protocol request, the transparent data corresponding to the field is determined based on the field, and when the transparent data cannot be acquired through the field, the predefined resolvable field is again resolved to obtain the transparent data corresponding to the field after the field resolution. And adding the transparent transmission data into a transparent transmission data container, taking out the transparent transmission data from the transparent transmission data container by the Dubbo protocol server based on Dubbo protocol, identifying the transparent transmission data, adding the identified transparent transmission data into a Dubbo protocol request, and sending the request to a destination address.
Further specifically, the first transmission protocol and the second transmission protocol are different. In the above examples, more than one interactive protocol is used, wherein the first transmission protocol is Http protocol, the second transmission protocol is Dubbo protocol, the data transmission processing is performed in all links associated with multiple interactive protocols, in other example scenarios, the interactive protocol of the data transmission processing can be extended to more protocols according to actual network transmission scenarios, or the data transmission processing can also be performed in the same interactive protocol.
The data transparent transmission processing process of the same interactive protocol is as follows.
The method comprises the steps of obtaining a first transmission protocol request sent by a client, determining transmission data to be transmitted by applying a preset transmission protocol layer module based on the first transmission protocol request, adding the transmission data into a transmission data container, taking out the transmission data from the transmission data container, identifying the transmission data, adding the identified transmission data into a second request of the first transmission protocol sent by a gateway, and directly sending the second request to the destination address.
For example, the preset transparent transmission identifier of the transparent transmission data is_tt_m_, and the client needs to transmit the transparent transmission data to the destination address in the communication network of the Http protocol. Firstly, the client adds the transparent data into the Http protocol request, and sends the Http protocol request containing the transparent data and the transmitted data transmission to the gateway. 4 logic definitions are defined for transparent transmission processing in a logic assembly module of the transparent transmission protocol layer, wherein the logic definition corresponds to 4 transparent transmission input processors respectively and comprises a transparent transmission data receiving processor of the Http protocol, a transparent transmission data grabbing processor of the Http protocol parameter, a transparent transmission data grabbing processor of the Http protocol header and a transparent transmission resolving processor for resolving fields in the Http protocol header. The data submitted by the Http protocol has interface service data, public data and the like, wherein the fields corresponding to the public data comprise token fields and the like, and a group of transparent receiving processors related to the Http protocol are created for the gateway through the abstract objects of the transparent transmission butt joint of the protocol and the logic definition of transparent transmission processing in advance. In an actual transparent data transmission scene, firstly, transparent data is acquired from an Http protocol request header according to whether a request header name contains a transparent identifier, when the transparent identifier is obtained, transparent data corresponding to the transparent identifier is determined, the transparent data is added into a transparent data container, when the transparent identifier cannot be detected from the Http protocol request header, a field corresponding to the transparent data defined by transparent processing logic is acquired from the Http protocol request, the transparent data corresponding to the field is determined based on the field, and when the transparent data cannot be acquired through the field, the predefined resolvable field is resolved to obtain the transparent data corresponding to the field after the field is resolved. The gateway takes out the transparent transmission data from the transparent transmission data container when the gateway needs to transmit the transparent transmission data to the destination address, identifies the transparent transmission data, adds the transparent transmission data after identification to a second request of an Http protocol sent by the gateway, and directly sends the second request to the destination address. As shown in fig. 3, in the present embodiment, an example of the present invention is schematically shown. When a request for receiving the transparent transmission data is received, based on the first transmission protocol request, a preset transparent transmission protocol layer module is applied to determine the transparent transmission data 31 to be transmitted. Specifically, the method includes the steps of firstly acquiring transparent data from a first transmission protocol request header according to whether a request header name contains transparent identification, determining transparent data corresponding to the transparent identification when the transparent identification is obtained, adding the transparent data into a transparent data container, acquiring a field corresponding to the transparent data defined by logic of transparent processing from the first transmission protocol request when the transparent identification cannot be detected from the first transmission protocol request header, determining the transparent data corresponding to the field based on the field, analyzing a predefined resolvable field to obtain the transparent data corresponding to the field analysis when the transparent data cannot be obtained through the field, and adding the transparent data into the transparent data container 33 after the transparent data 32 is obtained. When there is a request for sending the transparent data, for example, when the gateway needs to transmit the transparent data to a certain destination address 34, the gateway takes out the transparent data 35 from the transparent data container, identifies the transparent data, adds the transparent data after identification to a second request 36 of a second transmission protocol sent by the gateway, and sends the second request to the corresponding destination address.
As shown in fig. 4, in this embodiment, the distributed system data transparent transmission device of the present invention includes:
An obtaining module 41, configured to obtain a first transport protocol request sent by a client;
A determining module 42, configured to determine, based on the first transmission protocol request, transmission data to be transmitted by applying a preset transmission protocol layer module;
A first processing module 43, configured to extract the transparent data from the transparent data container based on a second transmission protocol;
the second processing module 44 is configured to identify the transparent transmission data, and add the transparent transmission data after identification to a second transport protocol request sent by the gateway, so as to send the second transport protocol request to the destination address.
The transparent transmission protocol layer module comprises a protocol management module, a protocol butt joint module, a logic assembly module and a logic processing module, wherein the protocol management module is used for carrying out the definition management of the butt joint protocol registration and processing logic, the protocol butt joint module is used for defining the transparent transmission entrance of the transparent transmission protocol and the execution of the transparent transmission processing flow in different interactive protocols, the logic assembly module is used for creating a logic processing object based on the definition of the processing logic in the protocol management module and comprises a transparent transmission data receiving processor, an interactive protocol parameter transparent transmission data grabbing processor, an interactive protocol head transparent transmission data grabbing processor and an interactive protocol head field analysis transparent transmission processor, and the logic processing module is used for realizing the logic processing of the interactive protocol butt joint transparent transmission protocol and comprises a transparent transmission data receiving processor and a transparent transmission data sending processor. The determining module 42 is specifically configured to obtain a transparent identifier based on the first transport protocol request header, determine transparent data corresponding to the transparent identifier when the transparent identifier is obtained, obtain a field corresponding to the transparent data defined by the logic assembling module in the first transport protocol request header when the transparent identifier is not obtained, determine the transparent data corresponding to the field based on the field, and parse a token field to obtain the transparent data when the transparent data is not obtained based on the field.
In further detail, as shown in fig. 5, in the embodiment, the transparent transmission protocol layer module of the present invention includes a protocol management module 51, a protocol docking module 52, a logic assembling module 53 and a logic processing module 54. The protocol management module 51 is configured to create transparent-transmission protocol implementation of different protocols when a module of the transparent-transmission protocol layer defined by application works, effectively improve acquisition performance of the protocol implementation by using a cache policy, and update definition of the processing logic through an interface.
And the protocol docking module 52 is used for docking the interactive protocol and the transparent transmission protocol, and when the definition of the processing logic of the protocol management module is changed, the processing logic in the logic assembly module is newly assembled through the protocol docking module. The protocol transparent transmission method comprises the steps of including an abstract object of protocol transparent transmission and connection, and the interactive protocol realizes the transparent transmission protocol connection according to the abstract object.
The logic assembling module 53 is configured to create a logic processing object by defining processing logic in the protocol management module, and package the logic processing object into a list, and the logic processing module uses an iterator to perform reasonable arrangement on logic processing, so as to reduce judgment of an intermediate process and improve execution speed. The method comprises the steps of transmitting a logical definition of processing, a data-transmitting receiver and a data-transmitting transmitter, maintaining the data-transmitting receiver and the data-transmitting transmitter by an abstract object in a protocol docking module, wherein the data-transmitting receiver is used for maintaining a data-transmitting input processor in a logical processing module appointed by the logical definition of processing, the data-transmitting transmitter is used for maintaining a data-transmitting output processor in a logical processing module appointed by the logical definition of processing, and the logical definition of processing creates a plurality of logical processors of transmitting according to the definition, and the logical definition of processing comprises a data-transmitting receiving processor, an interactive protocol parameter data-transmitting grabbing processor, an interactive protocol header data-transmitting grabbing processor and an interactive protocol header field analysis data-transmitting processor.
The logic processing module 54, i.e., the specific pass-through logic, is completed by the module, which packages each individual data pass-through logic into a pass-through ingress and a pass-through egress, each individual data pass-through logic for receiving requests containing pass-through data and for delivering requests containing pass-through data. The system comprises a transparent transmission data receiving processor and a transparent transmission data transmitting processor.
The technical features of the specific implementation of the distributed system data transparent transmission device in this embodiment are basically the same as the principle of each step in the distributed system data transparent transmission method in embodiment 1, and the general technical content between the method and the device is not repeated.
The storage medium of the present invention stores a computer program which, when executed by a processor, implements the distributed system data transparent transmission method described above.
As shown in fig. 6, in the present embodiment, the distributed system data transmission system of the present invention includes a processor 61 and a memory 62.
The memory 62 is used for storing a computer program.
The memory 62 includes a ROM, RAM, magnetic disk, U-disk, memory card, or optical disk, etc. various media that can store program codes.
The processor 61 is connected to the memory 62, and is configured to execute the computer program stored in the memory 62, so that the distributed system data transparent transmission system executes the distributed system data transparent transmission method described above.
Preferably, the processor 61 may be a general-purpose processor, including a central Processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), a graphics processor (Graphic Processing Unit, GPU) and the like, where in practical applications, the general-purpose processor is mainly a graphics processor, and may also be a digital signal processor (DIGITAL SIGNAL Processing, DSP for short), an Application SPECIFIC INTEGRATED Circuit (ASIC for short), a Field-Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, or discrete hardware component.
In summary, the distributed system data transparent transmission method and device can provide transparent transmission of various remote program call interaction data, have high expandability, can be suitable for data transparent transmission scenes of heterogeneous distributed systems, provide low-cost access and use for data transparent transmission of different development languages, and can provide supporting capability for data transparent transmission for middleware and a base frame, so that research and development cost of a data transparent transmission module in the method and device is saved, and research and development efficiency is improved. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The above embodiments are merely illustrative of the principles of the present invention and its effectiveness, and are not intended to limit the invention. Modifications and variations may be made to the above-described embodiments by those skilled in the art without departing from the spirit and scope of the invention. Accordingly, it is intended that all equivalent modifications and variations of the invention be covered by the claims, which are within the ordinary skill of the art, be within the spirit and scope of the present disclosure.

Claims (8)

Translated fromChinese
1.一种分布式系统数据透传方法,其特征在于,应用于网关,包括:1. A distributed system data transparent transmission method, characterized in that it is applied to a gateway and includes:获取客户端发送的第一传输协议请求;Obtain the first transport protocol request sent by the client;基于所述第一传输协议请求,应用预设的透传协议层模块,确定待传输的透传数据;并将所述透传数据添加至透传数据容器中;Based on the first transmission protocol request, applying a preset transparent transmission protocol layer module to determine the transparent transmission data to be transmitted; and adding the transparent transmission data to the transparent transmission data container;基于第二传输协议,从所述透传数据容器中取出所述透传数据;Based on the second transmission protocol, taking out the transparent transmission data from the transparent transmission data container;标识所述透传数据,并将标识后的透传数据添加至所述网关发送的第二传输协议请求中,以发送至目的地址;Identifying the transparent transmission data, and adding the identified transparent transmission data to the second transmission protocol request sent by the gateway to send it to the destination address;所述基于所述第一传输协议请求,应用预设的透传协议层模块,确定待传输的透传数据,包括:The step of applying a preset transparent transmission protocol layer module based on the first transmission protocol request to determine the transparent transmission data to be transmitted includes:基于第一传输协议请求头,获取透传标识;Based on the first transmission protocol request header, obtain a transparent transmission identifier;当得到所述透传标识时,确定所述透传标识对应的透传数据;When the transparent transmission identifier is obtained, determining the transparent transmission data corresponding to the transparent transmission identifier;当未得到所述透传标识时,获取所述第一传输协议请求头中逻辑组装模块定义的透传数据对应的字段;When the transparent transmission identifier is not obtained, obtaining a field corresponding to the transparent transmission data defined by the logic assembly module in the first transmission protocol request header;基于所述字段,确定所述字段对应到的所述透传数据;Based on the field, determining the transparent transmission data corresponding to the field;当基于所述字段未得到对应的透传数据时,对预定义可解析的字段进行解析,以得到所述字段解析后对应的透传数据;When the corresponding transparent transmission data is not obtained based on the field, the predefined resolvable field is parsed to obtain the corresponding transparent transmission data after the field is parsed;所述透传数据容器兼容各种交互协议的实现,以及异步线程之间的透传;The transparent data container is compatible with the implementation of various interactive protocols, as well as transparent transmission between asynchronous threads;所述透传协议层模块包括:协议管理模块、协议对接模块、逻辑组装模块以及逻辑处理模块;所述协议管理模块,用于对接的协议注册和处理逻辑的定义管理;所述协议对接模块,用于定义不同交互协议中执行透传协议的透传入口,以及透传处理流程的执行;所述逻辑组装模块,用于基于所述协议管理模块中的处理逻辑的定义创建逻辑处理对象,包括透传数据接收处理器、交互协议参数透传数据抓取处理器、交互协议头部透传数据抓取处理器以及交互协议头部字段解析透传处理器;所述逻辑处理模块,用于交互协议对接透传协议的逻辑处理的实现,包括透传数据接收处理器和透传数据发送处理器。The transparent transmission protocol layer module includes: a protocol management module, a protocol docking module, a logic assembly module and a logic processing module; the protocol management module is used for defining and managing the registration of the docked protocol and the processing logic; the protocol docking module is used to define the transparent transmission entry for executing the transparent transmission protocol in different interactive protocols, and the execution of the transparent transmission processing flow; the logic assembly module is used to create a logic processing object based on the definition of the processing logic in the protocol management module, including a transparent transmission data receiving processor, an interactive protocol parameter transparent transmission data capture processor, an interactive protocol header transparent transmission data capture processor and an interactive protocol header field parsing transparent transmission processor; the logic processing module is used for implementing the logic processing of the interactive protocol docking transparent transmission protocol, including a transparent transmission data receiving processor and a transparent transmission data sending processor.2.根据权利要求1所述的方法,其特征在于,所述将标识后的透传数据添加至所述网关发送的第二传输协议请求中,以发送至目的地址,包括:2. The method according to claim 1, characterized in that the step of adding the marked transparent transmission data to the second transmission protocol request sent by the gateway to send it to the destination address comprises:第二传输协议的服务器接收所述第二传输协议请求;The server of the second transmission protocol receives the second transmission protocol request;基于所述第二传输协议请求,应用所述透传协议层模块,确定所述透传数据;并将所述透传数据添加至所述服务器对应的透传数据容器中;Based on the second transmission protocol request, applying the transparent transmission protocol layer module, determining the transparent transmission data; and adding the transparent transmission data to the transparent transmission data container corresponding to the server;基于所述第二传输协议,所述服务器从所述服务器对应的透传数据容器中取出所述透传数据;Based on the second transmission protocol, the server retrieves the transparent transmission data from a transparent transmission data container corresponding to the server;标识所述透传数据,并将标识后的透传数据添加至服务器发送的第二传输协议请求中,以发送给所述目的地址。The transparent transmission data is identified, and the identified transparent transmission data is added to the second transmission protocol request sent by the server to be sent to the destination address.3.根据权利要求1所述的方法,其特征在于,第一传输协议和所述第二传输协议不同。3 . The method according to claim 1 , wherein the first transmission protocol and the second transmission protocol are different.4.根据权利要求1所述的方法,其特征在于,所述将所述透传数据添加至透传数据容器中之后,还包括:4. The method according to claim 1, characterized in that after adding the transparent transmission data to the transparent transmission data container, it also includes:从所述透传数据容器中取出所述透传数据;Retrieving the transparent transmission data from the transparent transmission data container;标识所述透传数据,并将标识后的透传数据添加至所述网关发送的所述第一传输协议的第二请求中,将所述第二请求直接发送至所述目的地址。The transparent transmission data is identified, and the identified transparent transmission data is added to a second request of the first transmission protocol sent by the gateway, and the second request is directly sent to the destination address.5.根据权利要求1所述的方法,其特征在于,所述透传数据容器配置在所述网关的内存中。5. The method according to claim 1, characterized in that the transparent data container is configured in the memory of the gateway.6.一种分布式系统数据透传装置,其特征在于,包括:6. A distributed system data transparent transmission device, characterized by comprising:获取模块,用于获取客户端发送的第一传输协议请求;An acquisition module, used to acquire a first transmission protocol request sent by a client;确定模块,用于基于所述第一传输协议请求,应用预设的透传协议层模块,确定待传输的透传数据;并将所述透传数据添加至透传数据容器中;A determination module, configured to determine the transparent transmission data to be transmitted based on the first transmission protocol request and applying a preset transparent transmission protocol layer module; and adding the transparent transmission data to a transparent transmission data container;第一处理模块,用于基于第二传输协议,从所述透传数据容器中取出所述透传数据;A first processing module, configured to retrieve the transparent transmission data from the transparent transmission data container based on a second transmission protocol;第二处理模块,用于标识所述透传数据,并将标识后的透传数据添加至网关发送的第二传输协议请求中,以发送至目的地址;A second processing module, used for marking the transparent transmission data, and adding the marked transparent transmission data to the second transmission protocol request sent by the gateway, so as to send it to the destination address;所述基于所述第一传输协议请求,应用预设的透传协议层模块,确定待传输的透传数据,包括:The step of applying a preset transparent transmission protocol layer module based on the first transmission protocol request to determine the transparent transmission data to be transmitted includes:基于第一传输协议请求头,获取透传标识;Based on the first transmission protocol request header, obtain a transparent transmission identifier;当得到所述透传标识时,确定所述透传标识对应的透传数据;When the transparent transmission identifier is obtained, determining the transparent transmission data corresponding to the transparent transmission identifier;当未得到所述透传标识时,获取所述第一传输协议请求头中逻辑组装模块定义的透传数据对应的字段;When the transparent transmission identifier is not obtained, obtaining a field corresponding to the transparent transmission data defined by the logic assembly module in the first transmission protocol request header;基于所述字段,确定所述字段对应到的所述透传数据;Based on the field, determining the transparent transmission data corresponding to the field;当基于所述字段未得到对应的透传数据时,对预定义可解析的字段进行解析,以得到所述字段解析后对应的透传数据;When the corresponding transparent transmission data is not obtained based on the field, the predefined resolvable field is parsed to obtain the corresponding transparent transmission data after the field is parsed;所述透传数据容器兼容各种交互协议的实现,以及异步线程之间的透传;The transparent data container is compatible with the implementation of various interactive protocols, as well as transparent transmission between asynchronous threads;所述透传协议层模块包括:协议管理模块、协议对接模块、逻辑组装模块以及逻辑处理模块;所述协议管理模块,用于对接的协议注册和处理逻辑的定义管理;所述协议对接模块,用于定义不同交互协议中执行透传协议的透传入口,以及透传处理流程的执行;所述逻辑组装模块,用于基于所述协议管理模块中的处理逻辑的定义创建逻辑处理对象,包括透传数据接收处理器、交互协议参数透传数据抓取处理器、交互协议头部透传数据抓取处理器以及交互协议头部字段解析透传处理器;所述逻辑处理模块,用于交互协议对接透传协议的逻辑处理的实现,包括透传数据接收处理器和透传数据发送处理器。The transparent transmission protocol layer module includes: a protocol management module, a protocol docking module, a logic assembly module and a logic processing module; the protocol management module is used for defining and managing the registration of the docked protocol and the processing logic; the protocol docking module is used to define the transparent transmission entry for executing the transparent transmission protocol in different interactive protocols, and the execution of the transparent transmission processing flow; the logic assembly module is used to create a logic processing object based on the definition of the processing logic in the protocol management module, including a transparent transmission data receiving processor, an interactive protocol parameter transparent transmission data capture processor, an interactive protocol header transparent transmission data capture processor and an interactive protocol header field parsing transparent transmission processor; the logic processing module is used for implementing the logic processing of the interactive protocol docking transparent transmission protocol, including a transparent transmission data receiving processor and a transparent transmission data sending processor.7.一种存储介质,存储有程序指令,其中,所述程序指令被执行时实现如权利要求1至权利要求5任一项所述的分布式系统数据透传方法的步骤。7. A storage medium storing program instructions, wherein the program instructions, when executed, implement the steps of the distributed system data transparent transmission method according to any one of claims 1 to 5.8.一种分布式系统数据透传系统,其特征在于:包括存储器,用于存储计算机程序;处理器,用于运行所述计算机程序以实现如权利要求1至权利要求5任一权利要求所述的分布式系统数据透传方法的步骤。8. A distributed system data transparent transmission system, characterized by: comprising a memory for storing a computer program; a processor for running the computer program to implement the steps of the distributed system data transparent transmission method as claimed in any one of claims 1 to 5.
CN202210287687.6A2022-03-222022-03-22 Distributed system data transparent transmission method, device, storage medium and systemActiveCN114500674B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210287687.6ACN114500674B (en)2022-03-222022-03-22 Distributed system data transparent transmission method, device, storage medium and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210287687.6ACN114500674B (en)2022-03-222022-03-22 Distributed system data transparent transmission method, device, storage medium and system

Publications (2)

Publication NumberPublication Date
CN114500674A CN114500674A (en)2022-05-13
CN114500674Btrue CN114500674B (en)2025-06-24

Family

ID=81489094

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210287687.6AActiveCN114500674B (en)2022-03-222022-03-22 Distributed system data transparent transmission method, device, storage medium and system

Country Status (1)

CountryLink
CN (1)CN114500674B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116233175A (en)*2022-12-292023-06-06浪潮云信息技术股份公司 Method and system for realizing IoT data processing engine based on kafka and flinkSQL

Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109413083A (en)*2018-11-122019-03-01山东鲁能智能技术有限公司A kind of intelligent station communication network shutdown data transparent transmission method and system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN100356340C (en)*2004-03-312007-12-19华为技术有限公司Distributed test assembly frame system and test assembly transparent transmission method
CN105493471B (en)*2014-01-202019-01-15华为技术有限公司 Transparent data transmission method and public service entity
CN112825496B (en)*2019-11-212021-11-19中国移动通信有限公司研究院Processing method and device for time information transmission and storage medium
CN111045942A (en)*2019-12-122020-04-21同盾控股有限公司Application testing method, system, storage medium and electronic equipment
CN111614546A (en)*2020-04-302020-09-01南京南瑞信息通信科技有限公司 Real-time information interaction method, device and storage medium for OA system
CN112738042A (en)*2020-12-222021-04-30上海上实龙创智能科技股份有限公司Internet of things equipment model based on MQTT protocol and data penetration method thereof
CN112667359B (en)*2020-12-302024-01-30深圳市科思科技股份有限公司Data transparent transmission method, electronic equipment and storage medium
CN113438628B (en)*2021-06-232022-07-05京东科技控股股份有限公司 Method and apparatus for data interaction
CN113992448B (en)*2021-12-282022-04-12北京瑞莱智慧科技有限公司Data transparent transmission method, system, medium and computing device
CN114172948B (en)*2022-02-092022-06-17北京数码视讯技术有限公司IP transparent transmission gateway transmission system and method based on UDP

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109413083A (en)*2018-11-122019-03-01山东鲁能智能技术有限公司A kind of intelligent station communication network shutdown data transparent transmission method and system

Also Published As

Publication numberPublication date
CN114500674A (en)2022-05-13

Similar Documents

PublicationPublication DateTitle
CN112527528B (en) Data transmission method, device and storage medium based on message queue
CN106131213B (en)Service management method and system
CN110058987B (en)Method, apparatus, and computer readable medium for tracking a computing system
RU2648966C2 (en)Apparatus and method for processing multiple open api
CN106453536B (en)A kind of network request processing method, server and system
CN106936932B (en) A way to access robot software packages via cloud service protocol
US20180063290A1 (en)Networked device management data collection
CN105359487B (en) A method to monitor NAT behavior by referring to a URI in a web browser
CN111026982A (en)Intelligent contract processing method, computer equipment and storage medium
FI125393B (en) Procedure, device and system for use in a web service
CN110704200B (en) Method and device for converting calling interface
CN110086759B (en)Method and device for realizing message transmission between heterogeneous systems
CN113535419B (en) A service arrangement method and device
CN112417016B (en)Data exchange method, system, equipment and storage medium
CN111447170A (en)Data processing method and system, computer system and computer readable medium
US11294740B2 (en)Event to serverless function workflow instance mapping mechanism
CN114466047A (en)Method, platform, equipment and medium for conveniently accessing Internet of things equipment to Internet of things platform
CN114500674B (en) Distributed system data transparent transmission method, device, storage medium and system
CN115250233B (en)Gray scale routing control method, gray scale routing assembly and computer equipment
CN114979144B (en)Cloud edge communication method and device and electronic equipment
CN108768727A (en)Access method, electronic device and the readable storage medium storing program for executing of third party's service
CN102479082A (en) Method and system for providing client interface information, and client interface generating device
CN113778499B (en)Method, apparatus, device and computer readable medium for publishing services
CN113992641A (en)Data processing method, device, equipment and storage medium
CN116980495A (en)Data conversion method, device, computer equipment, medium and product

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp