CN115002213A - Data transmission method and framework - Google Patents

Data transmission method and framework Download PDF

Info

Publication number
CN115002213A
CN115002213A CN202210617238.3A CN202210617238A CN115002213A CN 115002213 A CN115002213 A CN 115002213A CN 202210617238 A CN202210617238 A CN 202210617238A CN 115002213 A CN115002213 A CN 115002213A
Authority
CN
China
Prior art keywords
client
server
data
path information
path
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210617238.3A
Other languages
Chinese (zh)
Inventor
刘武扬
彭易宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiache Information Technology Co ltd
Original Assignee
Shanghai Jiache Information 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 Shanghai Jiache Information Technology Co ltd filed Critical Shanghai Jiache Information Technology Co ltd
Priority to CN202210617238.3A priority Critical patent/CN115002213A/en
Publication of CN115002213A publication Critical patent/CN115002213A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a data transmission method and a framework, wherein the data transmission method is applied to an intermediate server; the intermediate server side comprises: a client side transmission layer and a server side transmission layer; the method comprises the following steps: establishing a client path by a client transport layer; the client path connects the client and the client transmission layer; generating server side path information by the server side transmission layer according to the client side path information; the server path is connected with the server transmission layer and the third-party server; and the client transmission layer receives the data according to the client path information and transmits the data to the third-party server according to the server path information. The data transmission method provided by the embodiment of the application reduces the processes of frequently creating the long link and closing the long link among the client, the intermediate server and the server, thereby reducing the consumption of system memory, computing resources and network resources; the transmission efficiency of data is improved.

Description

Data transmission method and framework
Technical Field
The present application relates to the field of data transmission, and in particular, to a data transmission method and a framework.
Background
With the rapid development of artificial intelligence technology, the function of speech learning is widely applied; if the intelligent home broadcasts the path by the star voice through the voice control switch and the navigation software. Voice training can be carried out through cell-phone APP, and the speech data transmission that cell-phone APP will record trains to third party's specialty speech training service to carry out quick speech data and handle.
In the process, voice data can be interacted among a client (namely, an APP), an intermediate server, a third-party server and the intermediate server, and data transmission is carried out between the data interaction parties in a mode of establishing a long link at present; each interactive party can frequently establish/close long links, so that the data transmission efficiency is low.
Disclosure of Invention
In view of the foregoing problems, an object of the embodiments of the present application is to provide a data transmission method and a framework, where the data transmission method performs data interaction between a client and an intermediate server and between the intermediate server and a third-party server by establishing a long chain; and data interaction is carried out between the client side and the server side in the middle server side in a key value pair mode. Therefore, frequent connection establishment and long link closing are reduced, and consumption of a system memory is reduced; the problem of low data transmission efficiency caused by frequent establishment/closing of long links by each interactive party at present is solved.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method is applied to an intermediate server; the intermediate server side comprises: a client side transmission layer and a server side transmission layer; the method comprises the following steps: establishing a client path by a client transport layer; the client path connects the client and the client transmission layer; generating server side path information by the server side transmission layer according to the client side path information; the server path is connected with the server transmission layer and the third-party server; and the client transmission layer receives the data according to the client path information and transmits the data to the third-party server according to the server path information.
In the implementation process, after the client transmission layer establishes the client path, the server transmission layer generates server path information according to the client path information, and stores the client path and the server path in the cache of the intermediate transmission layer. After the data is transmitted from the client to the intermediate server, the client transmission layer of the intermediate server receives the data according to the client path information and transmits the data to the third-party server according to the server path information, and therefore complete transmission of the data from the client to the third-party server is completed. When the data is transmitted in the middle server, the path is not established again, and the data is transmitted according to the client path information and the server path information, so that the system memory is saved, and the data transmission efficiency is improved.
Optionally, in this embodiment of the present application, establishing, by the client transport layer, a client path includes: the client service layer acquires an intermediate server address; and the client service layer establishes a client path according to the intermediate server address.
In the implementation process, before the client sends data, the client service layer of the intermediate server acquires the address of the intermediate server, and establishes a client path according to the address of the intermediate server. After the client path is established, data can be transmitted from the client to the server according to the client path information, and therefore efficient transmission of data between client transmission layers of the client and the intermediate server is achieved.
Optionally, in this embodiment of the present application, after the server transport layer generates the server path information according to the client path information, the method further includes: and storing the client path information and the server path information in a cache pool of the intermediate server.
In the implementation process, after the client path information and the server path information are established, the client path information and the server path information are stored in a cache pool of the intermediate server. Therefore, the calling can be carried out when the data transmission is carried out next time, and the problems that the path is repeatedly established and the memory is occupied are solved.
Optionally, in this embodiment of the present application, the cache pool includes: a key-value pair or database; storing the client path information and the server path information in a cache pool of an intermediate server, comprising: storing the client side path information and the server side path information in a key value of the key value pair; and storing the client side path information and the server side path information in a database.
In the implementation process, after the client path information and the server path information are established, the client path information and the server path information may be stored in a cache pool, and the cache pool may have a key value pair or a database, that is, both the key value pair or the database may be used to store the client path information and the server path information generated in the embodiment of the present application. No matter the key value pair or the database, the data can be quickly transmitted in the middle server side as long as the client side path information and the server side path information can be called again after being stored.
Optionally, in this embodiment of the present application, the server transport layer receives the processed data according to the server path; and the server transmission layer sends the processed data to the client according to the client path information.
In the implementation process, after the data is processed by the third-party server, the data is transmitted to a server transmission layer in the intermediate server through a server path; and the server transmission layer transmits the processed data to the client through the client transmission path. In the process of returning the processed data, the used paths are a client path and a server path which are established in the process of transmitting the data from the client to the third-party server for the first time. The whole process of data transmission, processing and returning only establishes the path twice, thereby greatly improving the efficiency of data transmission.
Optionally, in this embodiment of the present application, sending the processed data to the client according to the client path information includes: the server side transmission layer acquires the client side path information from the cache pool; and the server transmission layer sends the processed data to the client according to the client path information.
In the implementation process, after the data is processed by the third-party server, the data is transmitted to a server transmission layer in the intermediate server through a server path; and the server transmission layer acquires the client path information in the cache pool and transmits the processed data to the client through the client transmission path. According to the data transmission method provided by the embodiment of the application, the path information established for the first time is directly called from the cache pool when the data is returned, so that the occupation of the memory caused by frequently establishing/closing the path is reduced.
Optionally, in this embodiment of the application, the intermediate server further includes: a log cache area; the log cache region is used for recording interactive data among the client, the middle server and the third-party server.
In the implementation process, the intermediate server also comprises a log cache region, and currently, a log related to data interaction is generally recorded on a mobile phone provided with an APP, so that certain difficulty is brought to operation and maintenance personnel; thereby facilitating the maintenance of the system by operation and maintenance personnel.
In a second aspect, an embodiment of the present application provides a data transmission framework, where the data transmission framework is applied to an intermediate server, and the data transmission framework includes: the system comprises a client data processing module and a server data processing module; the client data processing module is used for establishing a client path by the client transmission layer, and the client path is connected with the client and the client transmission layer; the server data processing module is used for generating server path information by the server transmission layer according to the client path information, and the server path is connected with the server transmission layer and a third-party server; the client data processing module is also used for receiving data by the client transmission layer according to the client path information; and the server data processing module is also used for transmitting the data to a third-party server by the server transmission layer according to the server path information.
In the implementation process, a client transmission layer establishes a client path in a client data processing module; a server transmission layer in a server data processing module generates server path information according to client path information; a client transmission layer in a client data processing module receives data according to client path information; and the server transmission layer in the server data processing module transmits the data to the third-party server according to the server path information. In the whole process, a client path and a server path are used, the client path and the server path are established at one time, and are stored after being established, and the client path and the server path are called in time for subsequent use. By using the data interaction framework provided by the embodiment of the application, the transmission efficiency is improved, and the consumption of the CPU caused by frequent connection creation and connection closing is reduced.
In a third aspect, an embodiment of the present application provides a data transmission method, where the method is applied to a system including a client, a third-party server, and an intermediate server having a client transport layer and a server transport layer, and the method includes: identifying a client path and acquiring data by a client; transmitting, by the client, the data to a client transport layer according to the client path; establishing a client path by a client transport layer; the client path connects the client and the client transmission layer; generating server side path information by the server side transmission layer according to the client side path information; the server path is connected with the server transmission layer and the third-party server; receiving, by the client transport layer, data according to the client path information; transmitting the data to a third-party server by the server transmission layer according to the server path information; receiving and processing the data by a third-party server to obtain processed data; the third-party server sends the processed data according to the server path; receiving, by the server transport layer, the processed data according to the server path; and the server transmission layer sends the processed data to the client according to the client path information.
In the implementation process, the client transmission layer establishes a client path, identifies the client path and acquires data; and further transmitting the data to the client transmission layer according to the client path. And the server transmission layer generates server path information according to the client path information and receives data according to the client path information. And the server side transmission layer transmits the data to the third-party server according to the server side path information. And the third-party server receives and processes the data to obtain the processed data, and sends the processed data according to the server path. The server transmission layer receives the processed data according to the server path; and then the processed data is sent to the client according to the client path information. Therefore, frequent connection establishment and long link closing are reduced, and consumption of a system memory is reduced; the problem of low data transmission efficiency caused by frequent establishment/closing of long links by each interactive party at present is solved.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are read and executed by a processor, the steps in any of the above implementation manners are performed.
In a fifth aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a memory and a processor, where the memory stores program instructions, and the processor executes the steps in any one of the foregoing implementation manners when reading and executing the program instructions.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a flow chart of a quorum intermediary server for a data transfer method according to an embodiment of the present application;
fig. 2 is a flowchart for establishing a client path according to an embodiment of the present disclosure;
fig. 3 is a flowchart of data backhaul according to an embodiment of the present application;
fig. 4 is a schematic diagram of a middle transport layer module of a data transport framework according to an embodiment of the present application;
fig. 5 is a schematic interaction diagram between a client, an intermediate server, and a third-party server according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. For example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
In the research process, the applicant finds that voice data can be interacted inside an APP (application) end, an intermediate server end, a third-party server and the intermediate server end in the voice training process, and data transmission is carried out between all parties of data interaction in a mode of establishing long links at present; each interactive party can frequently establish/close long links, so that the data transmission efficiency is low.
Based on the data transmission method, long chains are established between the client and the intermediate server and between the intermediate server and the third-party server to carry out data interaction; and data interaction is carried out between the client side and the server side in the middle server side in a key value pair mode. Therefore, frequent connection establishment and long link closing are reduced, and the problem of low data transmission efficiency caused by frequent establishment/closing of long links by various interaction parties at present is solved.
Referring to fig. 1, fig. 1 is a flowchart of a legal intermediate server of a data transmission method according to an embodiment of the present application; the method comprises the following steps:
step S100: the client transport layer establishes a client path.
In the above step S100, the client transport layer establishes a client path. It should be noted that the client path is a path between the connection client and the client transport layer in the intermediate server.
Step S101: and generating the server path information by the server transmission layer according to the client path information.
In step S101, the server transport layer of the intermediate server further generates server path information according to the path information of the client path generated by the client transport layer. It should be noted that the server path is a path connecting the third-party server and a server transport layer in the intermediate server.
Step S102: and the client transmission layer receives the data according to the client path information and transmits the data to the third-party server according to the server path information.
In step S102, the server transport layer of the intermediate server transmits the data to the third-party server according to the server path information.
Therefore, according to the legal intermediate server flow chart of the data transmission method provided by the embodiment of the application, after the client transmission layer establishes the client path, the server transmission layer generates the server path information according to the client path information, after the data is transmitted from the client to the intermediate server, the client transmission layer of the intermediate server receives the data according to the client path information and transmits the data to the third-party server according to the server path information, and therefore complete transmission of the data from the client to the third-party server is completed. When the data is transmitted in the middle server, the path is not established again, and the data is transmitted according to the client path information and the server path information, so that the system memory is saved, and the data transmission efficiency is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating establishing a client path according to an embodiment of the present application, where the data transmission method includes:
step S200: and the client service layer acquires the address of the intermediate server.
In the step S200, the client transport layer in the intermediate server obtains the address of the intermediate server, and it should be noted that the address of the intermediate server may be an IP address or other addresses capable of establishing communication.
Step S201: and the client service layer establishes a client path according to the intermediate server address.
In step S201, the client service layer in the intermediate server establishes a client path according to the address of the intermediate server acquired in step S200.
It should be noted that, the client path and the server path in the above embodiments of fig. 1 and fig. 2 may be long links, and it is understood that a long link refers to a connection that multiple data packets can be continuously sent; during link maintenance, if no data packets are sent, a link check packet needs to be sent in both directions to maintain the link. In practical applications, the client path and the server path may be established as follows: creating a WebSocket server class MyWebSocketServer in a server transmission layer, and adding @ Server endpoint (value "/WebSocket") annotation in front of the class, wherein the annotation indicates that the WebSocket server is operated at an access endpoint of ws:// service domain name (network address)/WebSocket; realize methods of onOpen, onClose, onMessage, onError, etc. Further, a WebSocket client-like MyWebSocketClient is created in a client transport layer, and inherits the WebSocketClient, so that a constructor is realized, and methods such as open, onClose, onMessage, oneError and the like are realized.
Therefore, in the flowchart for establishing the client path provided in the embodiment of the present application, before the client sends data, the client service layer of the intermediate server obtains the address of the intermediate server, and establishes the client path according to the address of the intermediate server. After the client path is established, data can be transmitted from the client to the server according to the client path information, and therefore efficient transmission of data between client transmission layers of the client and the intermediate server is achieved.
In an optional embodiment, after the server transport layer generates the server path information according to the client path information, the method further includes: and storing the client path information and the server path information in a cache pool of the intermediate server. The data transmission method provided by the embodiment of the application can directly call the saved client path and server path when data transmission is carried out, so that the problems of repeated establishment of the paths and memory occupation are avoided
In an optional embodiment, the cache pool includes: a key-value pair or database; storing the client path information and the server path information in a cache pool of an intermediate server, comprising: storing the client path information and the server path information in a key value of the key value pair; or storing the client side path information and the server side path information in a database. No matter the key value pair or the database, the data can be quickly transmitted in the middle server side as long as the client side path information and the server side path information can be called again after being stored. It should be understood that the purpose of using the cache pool in the embodiment of the present application is to store the client path and the server path; in practical applications, the cache pool may be a key value pair, a database, or other virtual locations that can store the path information, and the key value pair and the database in this embodiment should not be construed as limitations to the cache.
Referring to fig. 3, fig. 3 is a flowchart of data backhaul provided in an embodiment of the present application, where the data transmission method includes:
step S300: and receiving the processed data by the server transmission layer according to the server path.
In step S300, after the data is processed by the third-party server, the server transport layer receives the processed data according to the server path.
Step S301: and the server transmission layer sends the processed data to the client according to the client path information.
In step S301, the server transport layer of the intermediate server sends the processed data to the client according to the client path information.
According to the data feedback flow chart provided by the embodiment of the application, after the data is processed by the third-party server, the data is transmitted to the server transmission layer in the intermediate server through the server path; and the server transmission layer transmits the processed data to the client through the client transmission path. In the process of returning the processed data, the used path is a client path and a server path established in the process of transmitting the data from the client to the third-party server for the first time. The whole process of data transmission, processing and returning only establishes the path twice, thereby greatly improving the efficiency of data transmission.
In an optional embodiment, sending the processed data to the client according to the client path information includes: the server side transmission layer acquires the client side path information from the cache pool; and the server transmission layer sends the processed data to the client according to the client path information. According to the data transmission method provided by the embodiment of the application, the path information established for the first time is directly called from the cache pool when the data is returned, so that the occupation of the memory caused by frequently establishing/closing the path is reduced.
In an optional embodiment, the intermediate server further includes: a log cache area; the log cache region is used for recording interactive data among the client, the intermediate server and the third-party server. It should be noted that the intermediate server is generally deployed on a cloud server, and a log related to data interaction is generally recorded on a mobile phone installed with an APP at present, so that certain difficulty is brought to operation and maintenance personnel; thereby facilitating the maintenance of the system by operation and maintenance personnel.
Referring to fig. 4, fig. 4 is a schematic diagram of an intermediate transmission layer module of a data transmission framework according to an embodiment of the present application, where the data transmission framework 400 is applied to an intermediate server, and the data transmission framework 400 includes: client data processing module 401 and server data processing module 402.
A client data processing module 401, configured to establish a client path by a client transport layer, where the client path connects a client and the client transport layer; a server data processing module 402, configured to the server transport layer generate server path information according to the client path information, where the server path connects the server transport layer and a third-party server; the client data processing module 401 is further configured to receive data by the client transport layer according to the client path information; the server data processing module 402 is further configured to transmit data to a third-party server by the server transport layer according to the server path information.
In an alternative embodiment, the client path is established by client data processing module 401, comprising: the client data processing module 401 obtains an intermediate server address; and the client data processing module 401 establishes a client path according to the intermediate server address.
In an optional embodiment, after the server data processing module 402 generates the server path information according to the client path information, the method further includes: the client path information and the server path information are stored in the data transmission framework 400 in a cache pool in the data transmission framework 400.
In an alternative embodiment, the buffer pool in the data transmission framework 400 includes: a key-value pair or database; storing the client path information and the server path information in a cache pool of the data transmission framework 400 includes: storing the client side path information and the server side path information in a key value of the key value pair; or storing the client side path information and the server side path information in a database.
In an optional embodiment, the server data processing module 402 receives the processed data according to the server path; and the server data processing module 402 sends the processed data to the client according to the client path information.
In an optional embodiment, the sending, by the server data processing module 402, the processed data to the client according to the client path information includes: the server data processing module 402 obtains the client path information from the cache pool; and the server data processing module 402 sends the processed data to the client according to the client path information.
In an optional embodiment, the data transmission framework 400 further comprises: a log cache area; the log cache region is used for recording interactive data among the client, the middle server and the third-party server.
Referring to fig. 5, fig. 5 is a schematic view of interaction among a client, an intermediate server, and a third-party server according to an embodiment of the present application, where the data transmission method includes:
step S501: a client path is established by the client transport layer.
Step S502: identifying client path and obtaining data
Step S503: and transmitting the data to the client transmission layer according to the client path.
Step S504: and the server transmission layer generates server path information according to the client path information.
Step S505: and the client transmission layer receives data according to the client path information.
Step S506: and the server side transmission layer transmits the data to the third-party server according to the server side path information.
Step S507: the data is received and processed to obtain processed data.
Step S508: and sending the processed data according to the server path.
Step S509: and the server transmission layer receives the processed data according to the server path.
Step S510: and the server transmission layer is used for transmitting the data processed according to the client path information to the client.
In practical application, after a Socket connection is established between a client and a client transmission layer of an intermediate server, the connection can be marked as connection a; after connection is established, an onOpen method in a client transmission layer of the intermediate server side is triggered, and the client transmission layer is instantiated in the onOpen method; let the transport layer of the client establish a Socket connection with the third-party server, which can be denoted as ConnectionB. In the embodiment of the present application, connection a and connection b represent a client transmission path and a server transmission path, respectively. After the establishment of ConnectionA and ConnectionB is completed, a key value pair with ConnectionB as a key and ConnectionA as a value can be established, and ConnectionA and ConnectionB are stored in a single instance of Map < ConnectionB, ConnectionA > in the form of the key value pair; therefore, only one example is ensured in one class, the whole system only needs one global object of Map < ConnectionB and ConnectionA >, and the data transmission efficiency of the whole system is effectively improved.
Further, after receiving the data of the client, the client transmission layer of the intermediate server sends the data to the third-party server through the connection b; and after the third-party server finishes data processing, returning the data to a client transmission layer of the intermediate server, acquiring a connection ConnectionA between the server transmission layer and the client from the single-instance Map by the client transmission layer through ConnectionB, and sending the message to the client through the ConnectionA.
According to the interaction schematic diagram between the client, the intermediate server and the third-party server, the client transmission layer establishes a client path, identifies the client path and acquires data; and further transmitting the data to the client transmission layer according to the client path. And the server transmission layer generates server path information according to the client path information and receives data according to the client path information. And the server side transmission layer transmits the data to the third-party server according to the server side path information. And the third-party server receives and processes the data to obtain the processed data, and sends the processed data according to the server path. The server transmission layer receives the processed data according to the server path; and then the processed data is sent to the client according to the client path information. The data transmission method provided by the embodiment of the application can effectively overcome the problems that the connection is frequently established and disconnected, and the network burden and the calculation burden of a system are increased; the connection establishment and disconnection times in the interaction process can be obviously reduced, and the consumption of system resources in the communication process is saved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. An electronic device 600 provided in an embodiment of the present application includes: a processor 601 and a memory 602, the memory 602 storing machine-readable instructions executable by the processor 602, the machine-readable instructions, when executed by the processor 602, performing the method as above.
Based on the same inventive concept, embodiments of the present application further provide a computer-readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the steps in any of the above-mentioned implementation manners are executed.
The computer-readable storage medium may be a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), or other various media capable of storing program codes. The storage medium is used for storing a program, and the processor executes the program after receiving an execution instruction.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
Alternatively, all or part of the implementation may be in software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are all or partially generated when the computer program instructions are loaded and executed on a computer.
The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.).
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data transmission method is characterized in that the method is applied to an intermediate server; the intermediate server side comprises: a client side transmission layer and a server side transmission layer; the method comprises the following steps:
establishing a client path by the client transport layer; wherein the client path connects a client with the client transport layer;
generating server side path information by the server side transmission layer according to the client side path information; the server path is connected with the server transmission layer and a third-party server; and
and the client transmission layer receives data according to the client path information and transmits the data to the third-party server according to the server path information.
2. The method according to claim 1, wherein said establishing, by said client transport layer, a client path comprises:
the client service layer acquires the intermediate server address; and
and the client service layer establishes the client path according to the intermediate server address.
3. The method of claim 1, wherein after said generating, by the server transport layer, server path information from client path information, the method further comprises: and storing the client path information and the server path information in a cache pool of the intermediate server.
4. The method of claim 3, wherein the cache pool comprises: a key-value pair or database;
the storing the client path information and the server path information in a cache pool of the intermediate server includes:
storing the client side path information and the server side path information in a key value of the key value pair; or
And storing the client side path information and the server side path information in the database.
5. The method of claim 3, further comprising:
receiving, by the server transport layer, the processed data according to the server path; and
and the server transmission layer sends the processed data to the client according to the client path information.
6. The method of claim 5, wherein sending the processed data to the client according to the client path information comprises:
the server transmission layer acquires the client path information from the cache pool; and
and the server transmission layer sends the processed data to the client according to the client path information.
7. The method of claim 1, wherein the intermediate server further comprises: a log cache area;
the log cache region is used for recording interactive data among the client, the intermediate server and the third-party server.
8. A data transmission framework, wherein the data transmission framework is applied to an intermediate server, and the data transmission framework comprises: the system comprises a client data processing module and a server data processing module;
the client data processing module is used for establishing a client path by the client transmission layer, and the client path is connected with the client and the client transmission layer;
the server data processing module is used for the server transmission layer to generate server path information according to the client path information, and the server path is connected with the server transmission layer and a third-party server;
the client data processing module is also used for receiving data by the client transmission layer according to the client path information;
and the server data processing module is also used for transmitting the data to the third-party server by the server transmission layer according to the server path information.
9. A data transmission method is applied to a system comprising a client, a third-party server and an intermediate server with a client transmission layer and a server transmission layer, and the method comprises the following steps:
establishing a client path by the client transport layer; wherein the client path connects a client with the client transport layer;
identifying a client path and acquiring data by the client;
transmitting, by the client, the data to a client transport layer according to the client path;
generating server side path information by the server side transmission layer according to the client side path information; the server path is connected with the server transmission layer and a third-party server;
receiving, by the client transport layer, the data according to the client path information;
transmitting the data to the third-party server by the server side transmission layer according to the server side path information;
receiving and processing the data by the third-party server to obtain processed data;
the third-party server sends the processed data according to the server-side path;
receiving, by the server transport layer, the processed data according to the server path;
and the server transmission layer sends the processed data to the client according to the client path information.
10. A computer-readable storage medium having computer program instructions stored thereon for execution by a processor to perform the steps of the method of any one of claims 1-7 and 9.
CN202210617238.3A 2022-06-01 2022-06-01 Data transmission method and framework Pending CN115002213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210617238.3A CN115002213A (en) 2022-06-01 2022-06-01 Data transmission method and framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210617238.3A CN115002213A (en) 2022-06-01 2022-06-01 Data transmission method and framework

Publications (1)

Publication Number Publication Date
CN115002213A true CN115002213A (en) 2022-09-02

Family

ID=83030744

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210617238.3A Pending CN115002213A (en) 2022-06-01 2022-06-01 Data transmission method and framework

Country Status (1)

Country Link
CN (1) CN115002213A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060047821A1 (en) * 2004-05-28 2006-03-02 Samsung Electronics Co., Ltd. System, method, and medium for relaying data using socket application program
CN103118077A (en) * 2013-01-15 2013-05-22 百度在线网络技术(北京)有限公司 Cross equipment content transmission method, system and client-side
US20140258465A1 (en) * 2013-03-11 2014-09-11 Cisco Technology, Inc. Identification of originating ip address and client port connection to a web server via a proxy server
CN105897849A (en) * 2015-12-22 2016-08-24 乐视云计算有限公司 Cross-process service method and system and proxy server
US20200145422A1 (en) * 2018-11-01 2020-05-07 Gigcasters, Llc Methods and systems for providing a customized network
CA3131954A1 (en) * 2020-09-29 2022-03-29 10353744 Canada Ltd. Information synchronization method, system, apparatus, computer device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060047821A1 (en) * 2004-05-28 2006-03-02 Samsung Electronics Co., Ltd. System, method, and medium for relaying data using socket application program
CN103118077A (en) * 2013-01-15 2013-05-22 百度在线网络技术(北京)有限公司 Cross equipment content transmission method, system and client-side
US20140258465A1 (en) * 2013-03-11 2014-09-11 Cisco Technology, Inc. Identification of originating ip address and client port connection to a web server via a proxy server
CN105897849A (en) * 2015-12-22 2016-08-24 乐视云计算有限公司 Cross-process service method and system and proxy server
US20200145422A1 (en) * 2018-11-01 2020-05-07 Gigcasters, Llc Methods and systems for providing a customized network
CA3131954A1 (en) * 2020-09-29 2022-03-29 10353744 Canada Ltd. Information synchronization method, system, apparatus, computer device and storage medium

Similar Documents

Publication Publication Date Title
US10455091B1 (en) User input driven short message service (SMS) applications
CN102474432A (en) Social network virtual private network
US10135763B2 (en) System and method for secure and efficient communication within an organization
CN112714158B (en) Transaction processing method, relay network, cross-link gateway, system, medium and equipment
CN111198813A (en) Interface testing method and device
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN112269770B (en) Document sharing method, device and system and electronic equipment
EP3432559B1 (en) System and method for contextually based fulfillment of communicated service requests via a telephony platform
CN110708238B (en) Method and apparatus for processing information
CN115002213A (en) Data transmission method and framework
CN102523271A (en) Terminal and communication method and system thereof
CN114707951A (en) Alarm situation big data management method, device, equipment and storage medium
US20220206884A1 (en) Systems and methods for conducting an automated dialogue
CN111290873B (en) Fault processing method and device
CN108900575B (en) Long connection hierarchical communication method and system based on mobile terminal
CN113766437B (en) Short message sending method and device
KR20190136499A (en) Apparatus and method for messaging service
KR102592511B1 (en) System and method for providing lettering service
CN114745367B (en) Data transmission method, device, electronic equipment and storage medium
CN114726569B (en) Data aggregation method of cross-network environment and related equipment
CN113824625B (en) Information interaction method and device
US20230185853A1 (en) Identity Graph Data Structure System and Method with Entity-Level Opt-Outs
CN110011767B (en) Method and apparatus for TCP connection backup
CN114416383A (en) Multi-process communication method and device
CN114513548A (en) Directional call information processing method and device

Legal Events

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