CN112667359B - Data transparent transmission method, electronic equipment and storage medium - Google Patents

Data transparent transmission method, electronic equipment and storage medium Download PDF

Info

Publication number
CN112667359B
CN112667359B CN202011630375.8A CN202011630375A CN112667359B CN 112667359 B CN112667359 B CN 112667359B CN 202011630375 A CN202011630375 A CN 202011630375A CN 112667359 B CN112667359 B CN 112667359B
Authority
CN
China
Prior art keywords
data
server
request data
interface
processing
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
CN202011630375.8A
Other languages
Chinese (zh)
Other versions
CN112667359A (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 Consys Technology Co ltd
Original Assignee
Shenzhen Consys Technology 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 Consys Technology Co ltd filed Critical Shenzhen Consys Technology Co ltd
Priority to CN202011630375.8A priority Critical patent/CN112667359B/en
Publication of CN112667359A publication Critical patent/CN112667359A/en
Application granted granted Critical
Publication of CN112667359B publication Critical patent/CN112667359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses a data transparent transmission method, electronic equipment and a storage medium, which relate to the technical field of communication and can avoid the problem of data sticking and package and improve the transmission efficiency of data transparent transmission by acquiring request data sent by an application program through a program interface of a calling virtual machine and sending the request data to a server after establishing communication connection with the server through a preset communication protocol so as to enable the server to call the server interface to perform data processing on the request data.

Description

Data transparent transmission method, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a data transparent transmission method, an electronic device, and a storage medium.
Background
The data transparent transmission refers to a data transmission mode which is irrelevant to a medium, a modulation-demodulation mode, a transmission mode and a transmission protocol of a transmission network, and is only responsible for transmitting the transmitted content from a source address to a destination address without changing the content of the service data in communication regardless of the transmitted service content.
With the widespread use of cloud computing technology, deploying software applications of users through virtualization is a very mature software architecture mode at present. In the virtualization mode, a virtual computer carrier replaces a physical computer carrier, so that a plurality of independent virtual computer running environments can be virtualized in a real physical computer through a virtualization technology, and the virtual computer running environments are generally called virtual machines.
The problem of data sticking can occur when the data is transmitted in a data transparent mode in a virtualized environment, communication connection and threads are required to be frequently established, the time consumption is long, and the data transmission efficiency is affected.
Disclosure of Invention
The present application aims to solve at least one of the technical problems existing in the prior art. Therefore, the data transparent transmission method can avoid the problem of data sticking, and improves the transmission efficiency of data transparent transmission.
The application also provides another data transparent transmission method.
The application also provides electronic equipment with the data transparent transmission method.
The application also provides a computer readable storage medium with the data transparent transmission method.
According to the data transparent transmission method of the embodiment of the first aspect of the application, request data sent by an application program through a program interface of a calling virtual machine is obtained; establishing communication connection with a server through a preset communication protocol; and sending the request data to the server so that the server calls a server interface to perform data processing on the request data.
The data transparent transmission method according to the embodiment of the application has at least the following beneficial effects: the method has the advantages that the request data sent by the application program through calling the program interface of the virtual machine is obtained, the request data is sent to the server after communication connection is established between the application program and the server through a preset communication protocol, so that the server calls the server interface to process the request data, the problem of data sticking can be avoided, and the transmission efficiency of data transparent transmission is improved.
According to some embodiments of the application, the sending the request data to the server includes: judging whether the communication protocol adopted by the request data is consistent with the preset communication protocol, and if so, sending the request data to the server through the communication connection established with the server.
According to some embodiments of the application, further comprising: and if the communication connection between the application program and the server through the preset communication protocol fails, returning a first error identification to the application program, and performing error checking by the application program according to the first error identification. According to some embodiments of the application, further comprising:
acquiring processing data returned by the server through the communication connection established with the server, wherein the processing data is generated after the server processes the request data;
analyzing the processing data to generate analysis data;
and returning the analysis data to the application program so that the application program can perform data analysis on the analysis data.
According to a second aspect of the present application, a data transparent transmission method includes:
establishing communication connection with a client through a preset communication protocol;
acquiring request data sent by the client, wherein the request data is sent by the client through a program interface of the virtual machine;
and calling a server interface according to the request data to perform data processing on the request data.
The data transparent transmission method according to the embodiment of the application has at least the following beneficial effects: after communication connection is established between the client and the client through a preset communication protocol, request data sent by the client are acquired, the request data are sent by the client through a program interface of a virtual machine called by an application program, and the server interface is called according to the request data to process the request data, so that the problem of data sticking can be avoided, and the transmission efficiency of data transparent transmission is improved.
According to some embodiments of the present application, invoking a server interface to perform data processing on the request data according to the request data includes: carrying out data analysis on the request data to obtain an analysis result; calling a server interface according to the analysis result; acquiring a corresponding interface function according to the called server interface; and processing the request data according to the interface function.
According to some embodiments of the application, further comprising:
if the server interface call according to the request data fails, generating a second error identification;
and sending the error identification to the client so that the client analyzes the error identification and returns the error identification to the application program.
According to some embodiments of the present application, after processing the request data according to the interface function, the method further includes:
generating processing data according to the processing result of the request data and the preset communication protocol;
and sending the processing data to the client through the communication connection so that the client returns the processing data to the application program.
An electronic device according to an embodiment of a third aspect of the present application includes: at least one processor, and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions that are executed by the at least one processor to cause the at least one processor to implement the data transmission method of the first and second aspects when the instructions are executed.
The electronic equipment has at least the following beneficial effects: by executing the data transparent transmission method mentioned in the embodiments of the first aspect and the second aspect, the problem of data sticking can be avoided, and the transmission efficiency of data transparent transmission can be improved.
A computer-readable storage medium according to an embodiment of the fourth aspect of the present application stores computer-executable instructions for causing a computer to perform the data transparent transmission method according to the first and second aspects.
A computer-readable storage medium according to the present application has at least the following advantageous effects: by executing the data transparent transmission method mentioned in the embodiments of the first aspect and the second aspect, the problem of data sticking can be avoided, and the transmission efficiency of data transparent transmission can be improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
FIG. 1 is a system architecture diagram of a data transparent transmission method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data transmission method in an embodiment of the present application;
fig. 3 is a schematic flowchart of step S150 of the data transparent transmission method in the embodiment of the present application;
FIG. 4 is a schematic diagram of a second flow of the data transmission method in the embodiment of the present application;
fig. 5 is a schematic flowchart of step S170 of the data transparent transmission method in the embodiment of the present application;
FIG. 6 is a third flow chart of a data transparent transmission method in an embodiment of the present application;
fig. 7 is a schematic flowchart of step S250 of the data transparent transmission method in the embodiment of the present application;
fig. 8 is a fourth flowchart of a data transparent transmission method in an embodiment of the present application.
Reference numerals:
a client 100; server 200.
Detailed Description
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
It should be noted that the logical order of illustration is depicted in a flowchart, but in some cases the steps shown or described may be performed in a different order in the flowchart. If "a number" is referred to, it means more than one, if "a plurality" is referred to, it means more than two, and if "a number" is referred to, it is understood that the number is included. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate embodiments of the application and does not pose a limitation on the scope of the application unless otherwise claimed. The description of the first and second is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
It is noted that, unless otherwise indicated, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. Furthermore, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used herein includes any combination of one or more of the associated listed items.
The data transparent transmission refers to a data transmission mode which is irrelevant to a medium, a modulation-demodulation mode, a transmission mode and a transmission protocol of a transmission network, and is only responsible for transmitting the transmitted content from a source address to a destination address without changing the content of the service data in communication regardless of the transmitted service content.
With the widespread use of cloud computing technology, deploying software applications of users through virtualization is a very mature software architecture mode at present. In the virtualization mode, a virtual computer carrier replaces a physical computer carrier, so that a plurality of independent virtual computer running environments can be virtualized in a real physical computer through a virtualization technology, and the virtual computer running environments are generally called virtual machines.
The problem of data sticking can occur when the data is transmitted in a data transparent mode in a virtualized environment, communication connection and threads are required to be frequently established, the time consumption is long, and the data transmission efficiency is affected.
Based on this, the embodiment of the application provides a data transparent transmission method, electronic equipment and storage medium, which can avoid the problem of data sticking and improve the transmission efficiency of data transparent transmission.
It should be noted that, in the system architecture of the virtual machine for data transparent transmission in the embodiment of the present application, as shown in fig. 1, in a virtualized environment, data transparent transmission is performed between a client 100 and a transparent server 200 through a virtualized network connection pool, where a thread pool is disposed in the transparent server 200, and the thread pool includes a plurality of processing threads, and a service device in each processing thread is connected with the transparent server 200 through an API (Application Programming Interface, application program interface) interface, so as to obtain transparent data sent by the client 100.
According to the method and the device, through a virtualized transparent transmission technology, cross-platform calling of a certain resource by different virtualized platforms is achieved, multiple nodes are supported to access the same resource, and resource calling between cross-hardware platforms and cross-operating systems is achieved.
In a first aspect, an embodiment of the present application provides a data transparent transmission method.
In some embodiments, referring to fig. 2, a flow chart of a data transparent transmission method in an embodiment of the present application is shown. The method specifically comprises the following steps:
s110, acquiring request data sent by an application program through a program interface of a calling virtual machine;
s130, establishing communication connection with a server through a preset communication protocol;
and S150, transmitting the request data to a server so that the server calls a server interface to perform data processing on the request data.
In step S110, in the embodiment of the present application, the application program in the request client 100 invokes the program interface of the virtual machine, and sends the request data through the program interface. The application program can load an interface function of the program interface by calling the program interface of the virtual machine, and the interface function is used for transmitting the request data. The program interface refers to an API interface of the virtual machine, and the client 100 simulates an original program interface in a manner of simulating virtualization, so that an application program can call the simulated program interface to input request data. In this embodiment of the present application, after an application program of the client 100 invokes a program interface of a virtual machine, the application program can interface with a virtualized network connection pool through the program interface, and request data is imported into the request data through the virtualized network connection pool.
In step S130, the client 100 establishes a communication connection with the server 200 through a preset communication protocol, wherein the preset communication protocol is a TCP/IP protocol (Transmission Control Protocol/Internet Protocol, transmission control protocol/interconnection protocol), and establishes a transmission channel between the client 100 and the server 200 through a specific communication protocol, i.e. a virtualized network connection pool as in fig. 1, so that the problem of data sticky packets in the case of high concurrent data transparent transmission can be avoided. And by establishing the virtualized network connection pool, the problems of high resource expense and long transmission time caused by frequent establishment of communication connection when the subsequent client 100 and the server 200 carry out data transparent transmission are avoided, and the resource consumption and the transmission efficiency are effectively reduced.
In some embodiments, if the client 100 fails to establish a communication connection with the server 200 through a preset communication protocol, a first error identifier is generated from the result of the establishment failure, and is returned to the application program, and after the application program receives the first error identifier, the application program performs error checking according to the first error identifier, so as to obtain the reason of the failure to establish the communication connection. The first error identifier is identifier data returned after the communication connection is established, and the application program can check the reason of the establishment failure according to the data structure of the identifier data.
In step S150, the client 100 transmits the request data to the server 200, and the client 100 transmits the request data to the server 200 through the established communication connection, and after receiving the request data by the server 200, invokes the server interface to perform data processing on the request data through the server interface.
In some embodiments, as shown in fig. 3, step S150 specifically further includes the steps of:
s151, judging whether a communication protocol adopted by the request data is consistent with a preset communication protocol;
s152, if the request data are consistent, sending the request data to the server through communication connection established with the server;
and S153, if the processing results are inconsistent, returning the processing results to the client.
In step S151, when the client 100 receives the request data via the program interface and transmits the request data to the server 200, it is necessary to determine whether or not the communication protocol used for the request data is consistent with the communication protocol of the transmission channel when the request data is transmitted via the transmission channel of the communication connection after the communication connection with the server 200 is established. By ensuring the consistency of the communication protocol of the request data and the communication protocol of the transmission channel, the request data is ensured to belong to legal data.
In step S152, if the communication protocol adopted by the request data is consistent with the preset communication protocol, the client 100 sends the request data to the server 200 through the communication connection established with the server 200, and enters the actual service phase of the server 200, and the server 200 performs the subsequent processing. Specifically, the client 100 selects a specific data channel of the device to be transmitted to, and sends the request data to the server 200 through the data channel.
In step S153, if the communication protocol adopted by the request data is inconsistent with the preset communication protocol, returning a failed processing result to the client 100, and analyzing the processing result by the client 100, and analyzing the data structure of the processing result to obtain a specific error cause.
In the embodiment of the application, the request data is subjected to data inspection through the preset communication protocol, so that the problem that the network data is stuck to the package under the conditions of high load and high concurrency of the virtual machine is avoided, and the data transmission efficiency is improved.
In some embodiments, after the client 100 transmits the request data to the server 200 through the established communication connection, as shown in fig. 4, the data transparent transmission method in the embodiment of the present application specifically further includes:
step S160, determining whether the transmission of the request data is completed.
In step S160, it is determined whether the transmission of the request data is completed, if the transmission is completed, the actual service stage of the server 200 is entered, that is, after the server 200 receives the request data, the server interface is called according to the request data to obtain a specified interface function, the request data is processed through the interface function, and finally the request data is transmitted to the service device with the same communication protocol for receiving.
In some embodiments, after the server 200 invokes the server interface to process the request data, as shown in fig. 5, the data transparent transmission method in the embodiments of the present application specifically further includes the steps of:
s171, processing data returned by the server is obtained through communication connection established with the server, and the processing data is generated after the server processes the request data;
s172, analyzing the processing data to generate analysis data;
and S173, returning the analysis data to the application program so that the application program can perform data analysis on the analysis data.
In step S171, the client 100 obtains the processing data returned by the server 200, wherein the processing data is processed by calling a server interface and a corresponding interface function by the server 200, and then the processed data is packaged according to the protocol format of the transmission channel of the communication connection to generate the processing data, and is transmitted to the client 100 through the TCP/IP protocol. On the other hand, when the server 200 fails to call the server interface, the processing data may not be processed, so that the data identifying the failure result may be packaged according to the protocol format of the transmission channel of the communication connection according to the failure result to generate the processing data, and transmitted to the client 100 through the TCP/IP protocol.
In step S172, the client 100 parses the processing data, and parses the processing data in the standard function interface format, thereby generating parsed data.
In step S173, the client 100 returns the analysis data generated by the analysis to the application program, and after the application program obtains the analysis data, the analysis is performed to obtain a processing result, so as to determine whether the server 200 has received the request data initiated by the application program.
The transmission channel mentioned in the embodiment of the application is a transmission channel with a long link of a pipelining TCP/IP (Transmission Control Protocol/Internet Protocol, transmission control protocol/interconnection protocol), so that the overhead of network transmission can be reduced to the maximum extent, pipelining processing and isolation of different interfaces are realized, and high availability and high reliability are ensured. The TCP/IP ensures reliable and orderly transmission, and simultaneously uses long-chain links to reduce handshake overhead when in network link as much as possible and uses network processing capacity as much as possible. The small data transparent transmission service is optimized, the message length is short, and the real-time requirement is high based on the small data transparent transmission service, so that the interaction rate is improved by using long links and compressing the message interaction times, and the real-time performance of the small data is improved.
In the embodiment of the application, the request data sent by the application program through calling the program interface of the virtual machine is obtained, and after communication connection is established between the application program and the server 200 through a preset communication protocol, the request data is sent to the server 200, so that the server 200 calls the server interface to perform data processing on the request data, the problem of data sticking can be avoided, and the transmission efficiency of data transparent transmission is improved.
In a second aspect, embodiments of the present application further provide a data transparent transmission method.
In some embodiments, referring to fig. 6, a flow chart of a data transparent transmission method in an embodiment of the present application is shown. The method specifically comprises the following steps:
s210, establishing communication connection with a client through a preset communication protocol;
s230, acquiring request data sent by a client, wherein the request data is sent by the client through a program interface of a virtual machine called by an application program;
s250, calling a server interface according to the request data to process the request data.
In step S210, the server 200 establishes communication connection with the client 100 through a preset communication protocol, where the preset communication protocol is a TCP/IP protocol, and establishes a transmission channel between the client 100 and the server 200 through a specific communication protocol, that is, a virtualized network connection pool as in fig. 1, so that the problem of data packet sticking under the condition of high concurrency data transparent transmission can be avoided, and by establishing the virtualized network connection pool and adopting a multi-line Cheng Xiancheng pool at the server 200 side, the problems of high resource overhead and long transmission duration caused by frequent newly-built communication connection and threads can be solved, and the consumption of resources and transmission efficiency can be effectively reduced.
In step S230, the server 200 obtains the request data sent by the client 100, where the request data is sent by the client 100 through a program interface that invokes a virtual machine with a program, specifically, the client 100 simulates an original program interface in a manner of simulating virtualization, so that an application program can invoke the simulated program interface to transfer the request data, and when the application program of the client 100 passes through the program interface that invokes the virtual machine, the application program can interface with a virtualized network connection pool through the program interface, and transfer the request data to the request data through the virtualized network connection pool.
In step S250, the server 200 calls the server interface according to the request data, specifically, the server 200 analyzes the request data according to the data structure of the request data, and determines that the request data satisfies the call format of the interface function, so that the corresponding server interface is called, that is, a designated interface function is selected, and the request data is processed through the designated interface function.
In some embodiments, as shown in fig. 7, in step S250, the method specifically further includes the steps of:
s251, carrying out data analysis on the request data to obtain an analysis result;
s252, calling a server interface according to the analysis result;
s253, acquiring a corresponding interface function according to the called server interface;
s254, processing the request data according to the interface function.
In step S251, the server 200 parses the request data according to the data structure of the request data, and determines that the request data satisfies the calling format of the interface function, where the parsing result is the calling format of the interface function corresponding to the request data.
In step S252, the server 200 calls a corresponding server interface according to the data structure of the parsed request data.
In step S253, the interface function of the server interface can be acquired from the called server interface.
In step S254, the acquired interface function is used to process the request data, thereby completing data transparent transmission with the client 100.
In some embodiments, the data transparent transmission method in the embodiments of the present application further includes: if the server interface is failed to be called according to the request data, generating a second error identification; the error identification is sent to the client 100 so that the client 100 parses the error identification and returns it to the application.
In a possible implementation example, when the server 200 calls a designated server interface, that is, an interface function, to fail, the data of the identification failure result is packaged according to the protocol format of the transmission channel of the communication connection, so as to generate a second error identification, the second error identification is transmitted to the client 100 through the transmission channel of the communication connection, the client 100 analyzes the second error identification, and the analysis result is returned to the application program for analysis, so as to obtain the error cause of the data transparent transmission.
In some embodiments, after step S250, that is, after the server interface is invoked according to the request data to perform data processing on the request data, as shown in fig. 8, the method further includes the steps of:
and S260, generating processing data according to the processing result of the request data and a preset communication protocol, and sending the processing data to the client through a communication connection so that the client returns the processing data to the application program.
In step S260, the server 200 calls the server interface and the corresponding interface function to process the request data, packages the processed data according to the protocol format of the transmission channel of the communication connection to generate the processed data, and transmits the processed data to the client 100 through the TCP/IP protocol. The client 100 parses the processing data, parses the processing data through a standard function interface format, thereby generating parsed data, the client 100 returns the parsed data generated by parsing to the application program, and after the application program obtains the parsed data, the client analyzes the parsed data to obtain a processing result, and determines whether the server 200 receives the request data initiated by the application program.
In the embodiment of the application, after the communication connection is established between the client 100 and the client 100 through the preset communication protocol, the request data sent by the client 100 is acquired, the request data is sent by the client 100 through the program interface of the application program calling virtual machine, and the server interface is called according to the request data to perform data processing on the request data, so that the problem of data sticking can be avoided, and the transmission efficiency of data transparent transmission can be improved.
In a third aspect, an embodiment of the present application further provides an electronic device, including: at least one processor, and a memory communicatively coupled to the at least one processor;
wherein the processor is configured to perform the data transparent method in the first aspect embodiment or the second aspect embodiment by invoking a computer program stored in the memory.
The memory is used as a non-transitory computer readable storage medium for storing a non-transitory software program and a non-transitory computer executable program, such as the data transparent transmission method in the embodiments of the first aspect or the embodiments of the second aspect of the application. The processor implements the data transparent method in the embodiments of the first aspect or the embodiments of the second aspect described above by running a non-transitory software program and instructions stored in a memory.
The memory may include a memory program area and a memory data area, wherein the memory program area may store an operating system, at least one application program required for a function; the storage data area may store data transparent methods performed in the embodiments of the first aspect or the embodiments of the second aspect described above. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The non-transitory software programs and instructions required to implement the data transmission method in the embodiments of the first or second aspect described above are stored in a memory and when executed by one or more processors, perform the data transmission method in the embodiments of the first or second aspect described above.
In a fourth aspect, embodiments of the present application further provide a computer-readable storage medium storing computer-executable instructions for: executing the data transparent transmission method in the first aspect embodiment or the second aspect embodiment;
in some embodiments, the computer-readable storage medium stores computer-executable instructions that are executed by one or more control processors, for example, by one processor in an electronic device according to an embodiment of the third aspect, and may cause the one or more processors to perform the data transmission method according to an embodiment of the first aspect or an embodiment of the second aspect.
The above described embodiments of the apparatus are only illustrative, wherein the units described as separate components may or may not be physically separate, i.e. may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
In the description of the present specification, descriptions with reference to the terms "some embodiments," "examples," "specific examples," or "some examples," etc., mean that a particular feature or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples.

Claims (8)

1. The data transparent transmission method is characterized by comprising the following steps of:
acquiring a program interface of an application program through calling a virtual machine, and interfacing with a virtualized network connection pool through the program interface to send request data;
establishing communication connection with a server through a preset communication protocol;
if the communication connection between the server and the request data is successful through the preset communication protocol, judging whether the communication protocol adopted by the request data is consistent with the preset communication protocol, if so, sending the request data to the server through the communication connection established with the server so that the server calls a server interface to process the request data, and if not, returning a failure processing result by the server so as to analyze the data structure of the processing result to acquire the failure reason;
if the communication connection between the application program and the server through the preset communication protocol fails, returning a first error identification to the application program, and performing error checking by the application program according to the first error identification; the first error mark is the mark data returned after the communication connection is established, and the application program checks the reason of the establishment failure according to the data structure of the mark data.
2. The data transparent transmission method according to claim 1, further comprising:
acquiring processing data returned by the server through the communication connection established with the server, wherein the processing data is generated after the server processes the request data;
analyzing the processing data to generate analysis data;
and returning the analysis data to the application program so that the application program can perform data analysis on the analysis data.
3. The data transparent transmission method is characterized by comprising the following steps of:
interfacing with the virtualized connection pool by invoking a program interface of the virtual machine to send request data;
establishing communication connection with a client through a preset communication protocol;
if the communication connection between the server and the client is established successfully through a preset communication protocol, judging whether the communication protocol adopted by the request data is consistent with the preset communication protocol, if so, acquiring a processing result of a server call service interface for data processing of the request through the communication connection established with the client, and if not, processing and analyzing a processing result of failure returned from the server to acquire a cause of the failure;
if the communication connection between the server and the server through the preset communication protocol fails, a first error identification is obtained, and error checking is carried out according to the first error identification; the first error identifier is identifier data returned after the communication connection establishment fails.
4. A data transparent transmission method according to claim 3, wherein invoking a server interface for data processing of the request data according to the request data comprises:
carrying out data analysis on the request data to obtain an analysis result;
calling a server interface according to the analysis result;
acquiring a corresponding interface function according to the called server interface;
and processing the request data according to the interface function.
5. The data transparent transmission method according to claim 4, further comprising:
if the server interface call according to the request data fails, generating a second error identification;
and sending the error identification to the client so that the client analyzes the error identification and returns the error identification to an application program.
6. The data transparent method according to claim 5, further comprising, after processing the request data according to the interface function:
generating processing data according to the processing result of the request data and the preset communication protocol;
and sending the processing data to the client through the communication connection so that the client returns the processing data to the application program.
7. An electronic device, comprising:
at least one processor, and,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions that are executed by the at least one processor to cause the at least one processor to implement the data transmission method of any one of claims 1 to 6 when the instructions are executed.
8. Computer readable storage medium, characterized in that it stores computer executable instructions for causing a computer to perform the data transmission method according to any one of claims 1 to 6.
CN202011630375.8A 2020-12-30 2020-12-30 Data transparent transmission method, electronic equipment and storage medium Active CN112667359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011630375.8A CN112667359B (en) 2020-12-30 2020-12-30 Data transparent transmission method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011630375.8A CN112667359B (en) 2020-12-30 2020-12-30 Data transparent transmission method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112667359A CN112667359A (en) 2021-04-16
CN112667359B true CN112667359B (en) 2024-01-30

Family

ID=75412910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011630375.8A Active CN112667359B (en) 2020-12-30 2020-12-30 Data transparent transmission method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112667359B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500674A (en) * 2022-03-22 2022-05-13 康键信息技术(深圳)有限公司 Distributed system data transparent transmission method, device, storage medium and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559075A (en) * 2013-10-30 2014-02-05 华为技术有限公司 Data transmission method, device and system and internal storage device
CN105847142A (en) * 2016-03-22 2016-08-10 华为技术有限公司 Message transmission method and device
CN106713320A (en) * 2016-12-23 2017-05-24 腾讯科技(深圳)有限公司 Terminal data transmission method and device
CN107046495A (en) * 2016-02-06 2017-08-15 阿里巴巴集团控股有限公司 Methods, devices and systems for building VPN
CN109922053A (en) * 2019-02-22 2019-06-21 北京三快在线科技有限公司 Data transmission method, device, electronic equipment and readable storage medium storing program for executing
CN110971498A (en) * 2018-09-30 2020-04-07 北京京东尚科信息技术有限公司 Communication method, communication device, electronic apparatus, and storage medium
CN111338747A (en) * 2020-02-06 2020-06-26 视联动力信息技术股份有限公司 Data communication method, device, terminal equipment and storage medium
CN112118594A (en) * 2020-08-07 2020-12-22 深圳市圣麾科技有限公司 Data uploading method, data downloading method, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103559075A (en) * 2013-10-30 2014-02-05 华为技术有限公司 Data transmission method, device and system and internal storage device
CN107046495A (en) * 2016-02-06 2017-08-15 阿里巴巴集团控股有限公司 Methods, devices and systems for building VPN
CN105847142A (en) * 2016-03-22 2016-08-10 华为技术有限公司 Message transmission method and device
CN106713320A (en) * 2016-12-23 2017-05-24 腾讯科技(深圳)有限公司 Terminal data transmission method and device
CN110971498A (en) * 2018-09-30 2020-04-07 北京京东尚科信息技术有限公司 Communication method, communication device, electronic apparatus, and storage medium
CN109922053A (en) * 2019-02-22 2019-06-21 北京三快在线科技有限公司 Data transmission method, device, electronic equipment and readable storage medium storing program for executing
CN111338747A (en) * 2020-02-06 2020-06-26 视联动力信息技术股份有限公司 Data communication method, device, terminal equipment and storage medium
CN112118594A (en) * 2020-08-07 2020-12-22 深圳市圣麾科技有限公司 Data uploading method, data downloading method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112667359A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN110351156B (en) Test method and device
US8732694B2 (en) Method and system for performing services in server and client of client/server architecture
CN111885004B (en) Application layer message transmission method and communication interface platform
CN112667359B (en) Data transparent transmission method, electronic equipment and storage medium
CN114553730A (en) Application identification method and device, electronic equipment and storage medium
CN112929210B (en) Method and system for gateway routing application plug-in built on WebFlux framework and application of gateway routing application plug-in
EP3097662B1 (en) Methods, systems and computer readable media for testing network devices using simulated application traffic
CN114500510B (en) Request information response method, apparatus, communication device and storage medium
CN110753363A (en) Intelligent device wireless debugging system and method
CN113810370B (en) TCP acceleration method based on Socket docking TOE drive
CN111769910B (en) Data transmission method and device
CN114401127A (en) Data packet transmission method, device and equipment based on zeroMQ
CN112422457B (en) Message processing method and device and computer storage medium
CN111857964A (en) Method and equipment for transmitting data of virtual machine CAN port to physical machine CAN port equipment
CN111858379A (en) Application testing method and device
CN113411250B (en) Real-time message processing method, system, equipment and storage medium
CN110177026B (en) Network port terminal detection method, storage medium and server
CN114390024B (en) Access network protocol stack test method, system and storage medium
CN112532478B (en) Link relation tracking method, system, checking method, device and equipment
CN117615009A (en) Proxy forwarding method, device and equipment for message
CN108738061B (en) Short message sending performance test method and system based on cmpp3.0 protocol
CN115269382A (en) Application program testing method and device and computer equipment
CN117478524A (en) Method, device, equipment and medium for server simulation test
CN114064310A (en) Process communication method and system
CN114817899A (en) Inter-process communication method, device, electronic equipment and medium

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