CN111885199A - Data transmission method - Google Patents

Data transmission method Download PDF

Info

Publication number
CN111885199A
CN111885199A CN202010762274.XA CN202010762274A CN111885199A CN 111885199 A CN111885199 A CN 111885199A CN 202010762274 A CN202010762274 A CN 202010762274A CN 111885199 A CN111885199 A CN 111885199A
Authority
CN
China
Prior art keywords
target
module
communication
current
level
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.)
Granted
Application number
CN202010762274.XA
Other languages
Chinese (zh)
Other versions
CN111885199B (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.)
Beijing ThreatBook Technology Co Ltd
Original Assignee
Beijing ThreatBook 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 Beijing ThreatBook Technology Co Ltd filed Critical Beijing ThreatBook Technology Co Ltd
Priority to CN202010762274.XA priority Critical patent/CN111885199B/en
Publication of CN111885199A publication Critical patent/CN111885199A/en
Application granted granted Critical
Publication of CN111885199B publication Critical patent/CN111885199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5683Storage of data provided by user terminals, i.e. reverse caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data transmission method, which comprises the following steps: receiving a communication request sent by a lower-level communication device; establishing a downlink communication module in the communication equipment at the current level based on the communication request; receiving target data sent by subordinate communication equipment based on a downlink communication module in the current-level communication equipment; the target data comprises a target proxy server address; based on an uplink communication module in the communication equipment at the current level, forwarding the target data to the superior communication equipment according to the address of the target proxy server, so as to forward the target data to the target proxy server based on the superior communication equipment; or based on the uplink communication module, sending the target data to the target proxy server according to the address of the target proxy server. When the client requests the server for connection by utilizing the communication equipment of the level, the invention can timely master the online state of the client based on the communication equipment of the level so as to provide guarantee for data transmission.

Description

Data transmission method
Technical Field
The invention relates to the technical field of data transmission, in particular to a data transmission method.
Background
Currently, in data transmission, a client typically transmits data to a service server through a cascaded reverse proxy server. However, in the existing method, when data transmission is performed, the reverse proxy server does not care about the online state of the client, and needs to determine whether the client request is overtime or not according to the heartbeat of the receiving client by the service server.
Therefore, in the existing data transmission method, because there are many intermediate links, the service server is difficult to know the real-time online state of the client in time, and the timely and complete transmission of data cannot be ensured. And when the number of the clients is large, the load of the service server is increased, which causes a problem of low data transmission efficiency. In addition, if the number of cascading layers of the reverse proxy server is large, the heartbeat packet transmission is also unstable and unreliable due to network delay, disconnection of an intermediate node and the like, and the problem of low availability of the whole cascading process is caused.
Disclosure of Invention
The embodiment of the invention aims to provide a data transmission method, which is used for solving the problem that the prior art cannot ensure timely and complete data transmission.
In order to solve the technical problem, the embodiment of the application adopts the following technical scheme: a data transmission method, comprising the steps of:
receiving a communication request sent by a lower-level communication device;
establishing a downlink communication module in the communication equipment of the current level based on the communication request;
receiving target data sent by the subordinate communication equipment based on a downlink communication module in the current-level communication equipment; the target data comprises a target proxy server address;
based on an uplink communication module in the communication equipment at the current level, forwarding the target data to the superior communication equipment according to the address of the target proxy server, so as to forward the target data to the target proxy server based on the superior communication equipment; or based on the uplink communication module, sending the target data to the target proxy server according to the address of the target proxy server.
Optionally, the method further includes: and creating a target storage queue for storing the target data in a distributed publish-subscribe module in the communication equipment at the current stage based on the address of the client in the communication request.
Optionally, the method further includes:
and storing the target data received by the downlink communication module to a target storage queue in the distributed publish-subscribe module.
And acquiring the target data from a target storage queue in the distributed publishing and subscribing module based on an uplink communication module in the current-level communication equipment.
Optionally, the method further includes:
establishing a mapping relation between the address of the client in the communication request and the identification information of the target storage queue;
and storing the mapping relation in a coordination module of the communication equipment at the current stage.
Optionally, the distributed publish-subscribe module in the current-stage communication device is in communication connection with the distributed publish-subscribe modules of the plurality of standby communication devices to form a distributed publish-subscribe module cluster for data sharing; the coordination module in the current-level communication equipment is connected with the coordination module of each standby communication equipment to form a coordination module cluster for data sharing;
in a case that the uplink communication module cannot transmit the target data to a superior communication device or a target proxy server, the method further includes: sending the target data to a superior communication device or a target proxy server based on an uplink communication module in at least one standby communication device in parallel with the current-level communication device;
in a case that the downlink communication module cannot receive the target data sent by the lower-level communication device, the method further includes: and receiving the target data sent by the lower-level communication equipment based on a downlink communication module in at least one standby communication equipment which is parallel to the current-level communication equipment.
Optionally, the sending the target data to a superior communication device or a target proxy server based on an uplink communication module in at least one standby communication device that is parallel to the current-stage communication device specifically includes: and acquiring the target data from a target storage queue in the distributed publish-subscribe module cluster based on an uplink communication module in the standby communication equipment so as to forward the target data to a superior communication equipment or a target proxy server.
Optionally, the method further includes: and storing the target data received by the downlink communication module in the standby communication equipment into a target storage queue in the distributed publish-subscribe module cluster.
In order to solve the above problem, the present application provides a data transmission method, including the following steps:
receiving configuration information sent by superior communication equipment based on an uplink communication module in the current-level communication equipment; the configuration information comprises the address of a target client;
sending the configuration information to a lower-level communication device based on a downlink communication module in the current-level communication device according to the address of the target client, so as to forward the configuration information to the target client based on the lower-level communication device; or sending the configuration information to the target client based on the downlink communication module according to the address of the target client.
Optionally, the method further includes: storing the configuration information to a target storage queue in a distributed publish-subscribe module in the current-level communication equipment based on the uplink communication module according to the address of the target client;
and acquiring the configuration information from the target storage queue based on a downlink communication module in the current-stage communication equipment.
Optionally, the storing, by the uplink communication module, the configuration information to a target storage queue in a distributed publish-subscribe module in the current-level communication device according to the address of the target client includes:
searching a coordination module in the current-stage communication equipment based on the address of the target client to acquire identification information of a target storage queue corresponding to the address of the target client from the coordination module; the coordination module stores the mapping relation between the address of the client and the identification information of the storage queue;
determining a target storage queue based on the identification information of the target storage queue to store the configuration information into the target storage queue.
Correspondingly, the distributed publish-subscribe module in the current-level communication equipment is in communication connection with the distributed publish-subscribe modules of the standby communication equipment to form a distributed publish-subscribe module cluster for data sharing; the coordination module in the current-level communication equipment is connected with the coordination module of each standby communication equipment to form a coordination module cluster for data sharing;
in a case that the uplink communication module cannot receive the configuration information sent by the superior communication device, the method further includes: receiving the configuration information sent by the superior communication equipment based on an uplink communication module in at least one standby communication equipment which is parallel to the current-level communication equipment;
in the case that the downstream communication module is unable to send the configuration to a subordinate communication device or a target proxy server, the method further comprises: sending the configuration information to a subordinate communication device or a target proxy server based on a downlink communication module of at least one standby communication device in parallel with the current-level communication device;
optionally, the method further includes: storing the configuration information to a target storage queue in the distributed publish-subscribe module cluster based on an uplink communication module of the standby communication equipment according to the address of the target client;
optionally, the method further includes: and acquiring the configuration information from a target storage queue in the distributed publish-subscribe module cluster based on a downlink communication module of the standby communication equipment.
In the embodiment of the invention, when the client requests the server for connection by using the current-level communication equipment, the downlink communication module corresponding to the client is created, and the downlink communication module is used for communicating with the client, so that the online state of the client can be known in time, and the target data can be sent in time and quickly by using the uplink communication module corresponding to the superior-level communication equipment, thereby improving the data transmission efficiency.
Drawings
Fig. 1 is a schematic diagram of a communication relationship between a client, a proxy server and a service server in an embodiment of the present invention;
FIG. 2 is a flow chart of a data transmission method according to an embodiment of the present invention;
FIG. 3 is a timing flow chart of a data transmission method according to another embodiment of the present invention;
FIG. 4 is a timing flow chart of a data transmission method according to another embodiment of the present invention;
fig. 5 is a timing flowchart of a data transmission method according to another embodiment of the invention.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
An embodiment of the present invention provides a data transmission method, as shown in fig. 1, a client and a service server are in communication connection through a cascade connection communication device, and the communication device may specifically be a proxy server. The method in this embodiment is specifically applied to any one of the cascaded communication devices, that is, the present-level communication device. As shown in fig. 2, the present-stage communication apparatus includes: the system comprises a downlink communication module Lower, a distributed publishing and subscribing module Kafka, a coordination module Zookeeper and an uplink communication module Upper. When the client wants to upload the target data to the business server. The present level communication device will receive the data sent by the lower level communication device, as shown in fig. 2, the method specifically includes the following steps:
step S101, receiving a communication request sent by a lower-level communication device;
the lower-level communication device in this step may specifically be a target client or a lower-level proxy server connected between the target client and the current-level proxy server.
Step S102, a downlink communication module is established in the communication equipment of the current level based on the communication request;
in this step, taking the local level communication device as the local level proxy server as an example, the local level proxy server may create a downlink communication module Lower after receiving the communication request, and the downlink communication module Lower is specially responsible for docking the subordinate proxy server or the target client.
Step S103, receiving target data sent by the subordinate communication equipment based on a downlink communication module in the current-level communication equipment; the target data comprises a target proxy server address;
in this step, after the downlink communication module is created, the communication with the lower-level communication device can be performed based on the downlink communication module, and thus the target data can be received. In the implementation process, the step may store the received target data in the distributed publish-subscribe module Kafka. So that the uplink communication module Upper can acquire the target data.
Step S104, based on the uplink communication module in the current-level communication equipment, according to the address of the target proxy server, the target data is forwarded to the superior communication equipment, so that the target data is forwarded to the target proxy server based on the superior communication equipment; or based on the uplink communication module, sending the target data to the target proxy server according to the address of the target proxy server.
In this step, in a specific implementation process, the uplink communication module Upper may specifically obtain the target data from the distributed publish-subscribe module Kafka and then send the target data.
In this step, when the uplink communication module sends data, if the uplink communication module is connected with the upper-level proxy server, the target data needs to be forwarded step by step and then sent to the final target proxy server, and the processing process of each level of proxy server is the same as that of the current level of proxy server, and the data transmission method is adopted.
In the embodiment of the invention, when the client requests the server for connection by using the current-level communication equipment, the downlink communication module corresponding to the client is created, and the downlink communication module is used for communicating with the client, so that the online state of the client can be known in time, and the target data can be sent in time and quickly by using the uplink communication module corresponding to the superior-level communication equipment, thereby improving the data transmission efficiency.
Another embodiment of this embodiment provides a data transmission method, as shown in fig. 3, including the following steps:
step S201, receiving a communication request sent by a subordinate communication device;
the lower-level communication device in this step may specifically be a target client or a lower-level proxy server connected between the target client and the current-level proxy server.
Step S202, a downlink communication module is established in the communication equipment of the current level based on the communication request;
in this step, for example, the local communication device is the local proxy server, the local proxy server creates a downlink communication module Lower after receiving the communication request, and the downlink communication module Lower is specially responsible for docking the subordinate proxy server or the target client.
Step S203, based on the downlink communication module, creating a target storage queue for storing the target data in a distributed publish-subscribe module in the current-level communication device according to the address of the target client in the communication request.
The method comprises the following steps: the downlink communication module Power can create a target storage queue Topic to the distributed publish-subscribe module Kafka according to the ID of the client, where the name of Topic is: client _ [ ClientID ], the Topic corresponding to a target storage queue for storing target data.
Step S204, establishing a mapping relation between the address of the client in the communication request and the identification information of the target storage queue; and storing the mapping relation in a coordination module of the communication equipment at the current stage.
In the specific implementation process of this step, a correspondence between the ID of the client and the identification information of the Topic may be specifically established, so that the correspondence is stored in the coordination module Zookeeper. More specifically, the following manner may be adopted: registering with a Key-Value to a coordination module Zookeeper based on a downlink communication module Lower, wherein the Key: ClientID, Value: kafka Topic. Therefore, the corresponding relation between the ID of the client and the storage queue in the Kafka is stored.
Step S205, receiving target data sent by the subordinate communication device based on a downlink communication module in the current-level communication device; the target data comprises a target proxy server address;
step S206, storing the target data received by the downlink communication module to a target storage queue in the distributed publish-subscribe module based on the address of the target proxy server.
In this step, after the downstream communication module Lower receives the target data, the target data may be transmitted to a fixed Topic of the distributed publish-subscribe module Pafka (the Topic may be the Topic corresponding to the client ID), and then the target data is stored in a target storage queue corresponding to the Topic in Kafka.
Step S207, obtaining the target data from the distributed publish-subscribe module based on the uplink communication module in the current-level communication device.
Step S208, based on the uplink communication module in the current-level communication device, according to the address of the target proxy server, the target data is forwarded to the superior communication device, so that the target data is forwarded to the target proxy server based on the superior communication device; or based on the uplink communication module, sending the target data to the target proxy server according to the address of the target proxy server.
In this embodiment, the uplink communication module in the current-level communication device corresponds to the upper-level communication device, so that target data can be quickly sent to the upper-level communication device.
On the basis of the foregoing embodiment, as shown in fig. 4, in this embodiment, a current-stage communication device is parallel to at least one standby communication device, and a distributed publish-subscribe module in the current-stage communication device is in communication connection with a distributed publish-subscribe module of each standby communication device to form a distributed publish-subscribe module Cluster Kafka Cluster for data sharing; and the coordination module in the current-stage communication equipment is connected with the coordination module of each standby communication equipment to form a coordination module Cluster Zookeeper Cluster for data sharing.
In this embodiment, when the local communication device is broken down, the standby communication device in parallel with the local communication device may be used to receive and transmit data. Two cases may be included:
in the first case: in a case that the uplink communication module Upper in the current-level communication device Proxy1 cannot send the target data to a higher-level communication device or a target Proxy server, the method in this embodiment may further include: and sending the target data to a superior communication device or a target proxy server based on an uplink communication module in at least one standby communication device which is parallel to the current-stage communication device. In the specific implementation process, the following method can be adopted: and acquiring the target data from a target storage queue in the distributed publish-subscribe module cluster based on an uplink communication module Upper in the standby communication device Proxy2, so as to forward the target data to a superior communication device or a target Proxy server.
In the second case: in a case that the downlink communication module Lower cannot receive the target data sent by the subordinate communication device, the method in this embodiment further includes: and receiving the target data sent by the subordinate communication equipment based on a Lower communication module in at least one standby communication equipment Proxy2 which is parallel to the current-level communication equipment. In this embodiment, after the Lower communication module Lower of the backup communication device Proxy2 receives the target data, the target data may be further stored in a distributed publish-subscribe module of the downlink communication device and stored in a target storage queue in the distributed publish-subscribe module cluster.
In the embodiment of the present invention, multiple Proxy may be specifically used as the master/slave communication. Taking two Proxy as an example, by respectively forming Kafka and Zookeeper in the main and standby communication devices into a cluster, Lower in both communication devices can receive data, related data can be stored in the kakfa cluster, and information of all Lower cannot be lost. When one Proxy cannot be used due to an accident, the other Proxy can continue to work without losing any data. When problems of network delay, disconnection of intermediate nodes and the like occur in the transmission process, data transmission can still be carried out, timely and complete sending of target data is guaranteed, and stability of data transmission is improved.
Another embodiment of the present invention provides a data transmission method, where when a service server configures information to a lower side of a client, a current-stage communication device receives configuration information sent by a superior-stage communication device, including the following steps:
step S301, receiving configuration information sent by superior communication equipment based on an uplink communication module in the current-level communication equipment; the configuration information comprises the address of a target client;
in this embodiment, the present stage communication device may include a plurality of uplink communication modules Upper, and the uplink communication modules correspond to the Upper stage communication device, so that the Upper stage communication device can send the configuration information to the specified uplink communication module.
Step S302, based on the address of the target client, a downlink communication module in the current-level communication equipment sends the configuration information to lower-level communication equipment, so as to forward the configuration information to the target client based on the lower-level communication equipment; or sending the configuration information to the target client based on the downlink communication module according to the address of the target client.
In this step, after the uplink communication module of the current-stage communication device acquires the configuration information, the downlink communication module of the current-stage communication device may send the configuration information to the subordinate communication device or the target client.
In this embodiment, by setting the uplink communication module that communicates with the upper communication device, the configuration information can be received in time, and a guarantee is provided for timely transmission of data.
Another embodiment of the present invention provides a data transmission method, as shown in fig. 5, including the following steps:
step S401, receiving configuration information sent by superior communication equipment based on an uplink communication module in the current-level communication equipment; the configuration information comprises the address of a target client;
step S402, based on the uplink communication module according to the address of the target client, storing the configuration information to a target storage queue in a distributed publish-subscribe module in the current-level communication equipment;
step S402, based on the address of the target client, the downlink communication module in the current-level communication equipment sends the configuration information to the lower-level communication equipment, so as to forward the configuration information to the target client based on the lower-level communication equipment; or sending the configuration information to the target client based on the downlink communication module according to the address of the target client.
In a specific implementation process of this step, a coordination module Zookeeper in the local-level communication device may be searched based on an address of the target client, that is, an ID of the target client, so as to obtain identification information of a target storage queue corresponding to the address of the target client from the coordination module Zookeeper; the coordination module stores the mapping relation between the address of the client and the identification information of the storage queue; determining a target storage queue based on the identification information of the target storage queue to store the configuration information into the target storage queue. For example, the Upper queries kafka Topic (Client _ [ ClientID ]) from the Zookeeper according to the ID of the target Client, that is, according to the ClientID, so that a target storage queue corresponding to the Topic (Client _ [ ClientID ]) can be determined, and then the configuration information is stored in the target storage queue.
Step S403, obtaining the configuration information from the target storage queue based on a downlink communication module in the current-stage communication device.
In the specific implementation process of this step, the downlink communication module Lower may read data in the target storage queue at predetermined time intervals, so that when the configuration information is stored in the target storage queue, the downlink communication module Lower may obtain the configuration information.
In the implementation of the invention, the configuration information is stored in the distributed publish-subscribe module kafka, so that the data loss can be prevented, and the complete and timely transmission of the data is guaranteed.
On the basis of the above embodiment, in this embodiment, the present invention provides a data transmission method, where a local-level communication device is parallel to at least one standby communication device, and a distributed publish-subscribe module in the local-level communication device is in communication connection with a distributed publish-subscribe module of each standby communication device to form a distributed publish-subscribe module Cluster Kafka Cluster for data sharing; and the coordination module in the current-stage communication equipment is connected with the coordination module of each standby communication equipment to form a coordination module Cluster Zookeeper Cluster for data sharing.
In this embodiment, when the local-level communication device is broken down, the standby communication device in parallel with the local-level communication device may be used to receive and transmit data. Two cases may be included:
the first case is: in a case that the uplink communication module of the current-stage communication device cannot receive the configuration information sent by the superior-stage communication device, the method in this implementation may include: and receiving the configuration information sent by the superior communication equipment based on an uplink communication module in at least one standby communication equipment which is parallel to the current-level communication equipment. In a specific implementation process, the configuration information may be stored to a target storage queue in the distributed publish-subscribe module cluster based on an uplink communication module of the standby communication device according to an address of the target client. For example: the uplink communication module of the standby equipment searches the coordination module cluster according to the address of the target client so as to acquire identification information of a target storage queue corresponding to the address of the target client from the coordination module cluster; the coordination module cluster is stored with a mapping relation between the address of the client and the identification information of the storage queue; and then determining a target storage queue based on the identification information of the target storage queue so as to store the configuration information into the target storage queue.
The second case is: in a case that the downlink communication module Lower of the present level communication device cannot send the configuration to the Lower level communication device or the target proxy server, the method in this embodiment may include: and sending the configuration information to subordinate communication equipment or a target proxy server based on a downlink communication module Lower of at least one standby communication equipment parallel to the current-level communication equipment. In a specific implementation process, the configuration information may be acquired from a target storage queue in the distributed publish-subscribe module cluster based on a downlink communication module of the standby communication device.
In the embodiment of the present invention, multiple Proxy may be specifically used as the master/slave communication. Taking two Proxy as an example, by respectively forming Kafka and Zookeeper in the main and standby communication devices into a cluster, Lower in both the two communication devices can receive data, related data can be stored in the Kakfa cluster, and information of all Lower cannot be lost. When one Proxy cannot be used due to an accident, the other Proxy can continue to work without losing any data. When problems of network delay, disconnection of intermediate nodes and the like occur in the transmission process, data transmission can still be carried out, timely and complete sending of target data is guaranteed, and stability of data transmission is improved.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (10)

1. A data transmission method, comprising the steps of:
receiving a communication request sent by a lower-level communication device;
establishing a downlink communication module in the communication equipment of the current level based on the communication request;
receiving target data sent by the subordinate communication equipment based on a downlink communication module in the current-level communication equipment; the target data comprises a target proxy server address;
based on an uplink communication module in the communication equipment at the current level, forwarding the target data to the superior communication equipment according to the address of the target proxy server, so as to forward the target data to the target proxy server based on the superior communication equipment; or based on the uplink communication module, sending the target data to the target proxy server according to the address of the target proxy server.
2. The method of claim 1, wherein the method further comprises: and creating a target storage queue for storing the target data in a distributed publish-subscribe module in the communication equipment at the current stage based on the address of the client in the communication request.
3. The method of claim 2, wherein the method further comprises:
and storing the target data received by the downlink communication module to a target storage queue in the distributed publish-subscribe module.
And acquiring the target data from a target storage queue in the distributed publishing and subscribing module based on an uplink communication module in the current-level communication equipment.
4. The method of claim 2, wherein the method further comprises:
establishing a mapping relation between the address of the client in the communication request and the identification information of the target storage queue;
and storing the mapping relation in a coordination module of the communication equipment at the current stage.
5. The method of claim 1, wherein the distributed publish-subscribe module in the current-level communication device is communicatively connected with the distributed publish-subscribe modules of several standby communication devices to form a distributed publish-subscribe module cluster for data sharing; a coordination module in the current-stage communication device is connected with a coordination module of each standby communication device to form a coordination module cluster for data sharing;
in a case that the uplink communication module cannot transmit the target data to a superior communication device or a target proxy server, the method further includes: sending the target data to a superior communication device or a target proxy server based on an uplink communication module in at least one standby communication device in parallel with the current-level communication device;
in a case that the downlink communication module cannot receive the target data sent by the lower-level communication device, the method further includes: and receiving the target data sent by the lower-level communication equipment based on a downlink communication module in at least one standby communication equipment which is parallel to the current-level communication equipment.
6. The method of claim 5,
the sending the target data to a superior communication device or a target proxy server based on an uplink communication module in at least one standby communication device parallel to the current-stage communication device specifically includes: and acquiring the target data from a target storage queue in the distributed publish-subscribe module cluster based on an uplink communication module in the standby communication equipment so as to forward the target data to a superior communication equipment or a target proxy server.
7. The method of claim 5, wherein the method further comprises: and storing the target data received by the downlink communication module in the standby communication equipment into a target storage queue in the distributed publish-subscribe module cluster.
8. A data transmission method, comprising the steps of:
receiving configuration information sent by superior communication equipment based on an uplink communication module in the current-level communication equipment; the configuration information comprises the address of a target client;
sending the configuration information to a lower-level communication device based on a downlink communication module in the current-level communication device according to the address of the target client, so as to forward the configuration information to the target client based on the lower-level communication device; or sending the configuration information to the target client based on the downlink communication module according to the address of the target client.
9. The method of claim 8, wherein the method further comprises:
storing the configuration information to a target storage queue in a distributed publish-subscribe module in the current-level communication equipment based on the uplink communication module according to the address of the target client;
and acquiring the configuration information from the target storage queue based on a downlink communication module in the current-stage communication equipment.
10. The method according to claim 9, wherein the storing the configuration information to a target storage queue in a distributed publish-subscribe module in the current-level communication device based on the uplink communication module according to the address of the target client specifically includes:
searching a coordination module in the current-stage communication equipment based on the address of the target client to acquire identification information of a target storage queue corresponding to the address of the target client from the coordination module; the coordination module stores the mapping relation between the address of the client and the identification information of the storage queue;
determining a target storage queue based on the identification information of the target storage queue to store the configuration information into the target storage queue.
CN202010762274.XA 2020-07-31 2020-07-31 Data transmission method Active CN111885199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010762274.XA CN111885199B (en) 2020-07-31 2020-07-31 Data transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010762274.XA CN111885199B (en) 2020-07-31 2020-07-31 Data transmission method

Publications (2)

Publication Number Publication Date
CN111885199A true CN111885199A (en) 2020-11-03
CN111885199B CN111885199B (en) 2021-08-27

Family

ID=73205549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010762274.XA Active CN111885199B (en) 2020-07-31 2020-07-31 Data transmission method

Country Status (1)

Country Link
CN (1) CN111885199B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335561A (en) * 2008-08-01 2008-12-31 京信通信***(中国)有限公司 Long-drawing data interchanging equipment and data interchanging method thereof
EP2164231A1 (en) * 2008-09-15 2010-03-17 Jentro Technologies GmbH Mobile phone optimized online communication
CN101917492A (en) * 2010-08-06 2010-12-15 北京乾唐视联网络科技有限公司 Communication method and communication system of novel network
CN106230896A (en) * 2016-07-18 2016-12-14 深圳国泰安教育技术股份有限公司 A kind of information push method, Apparatus and system
CN106603647A (en) * 2016-12-07 2017-04-26 襄阳萤火虫光电科技有限公司 Method for rapid communication between distributed modules
US20170322850A1 (en) * 2012-11-16 2017-11-09 China Mobile Communications Corporation Data synchronization method, system, data synchronization server and terminal
CN108064443A (en) * 2017-09-30 2018-05-22 深圳前海达闼云端智能科技有限公司 A kind of agency retransmission method and device, proxy server and Multistage Proxy network
CN109451072A (en) * 2018-12-29 2019-03-08 广东电网有限责任公司 A kind of message caching system and method based on Kafka

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101335561A (en) * 2008-08-01 2008-12-31 京信通信***(中国)有限公司 Long-drawing data interchanging equipment and data interchanging method thereof
EP2164231A1 (en) * 2008-09-15 2010-03-17 Jentro Technologies GmbH Mobile phone optimized online communication
CN101917492A (en) * 2010-08-06 2010-12-15 北京乾唐视联网络科技有限公司 Communication method and communication system of novel network
US20170322850A1 (en) * 2012-11-16 2017-11-09 China Mobile Communications Corporation Data synchronization method, system, data synchronization server and terminal
CN106230896A (en) * 2016-07-18 2016-12-14 深圳国泰安教育技术股份有限公司 A kind of information push method, Apparatus and system
CN106603647A (en) * 2016-12-07 2017-04-26 襄阳萤火虫光电科技有限公司 Method for rapid communication between distributed modules
CN108064443A (en) * 2017-09-30 2018-05-22 深圳前海达闼云端智能科技有限公司 A kind of agency retransmission method and device, proxy server and Multistage Proxy network
CN109451072A (en) * 2018-12-29 2019-03-08 广东电网有限责任公司 A kind of message caching system and method based on Kafka

Also Published As

Publication number Publication date
CN111885199B (en) 2021-08-27

Similar Documents

Publication Publication Date Title
KR101887581B1 (en) Flow-based packet transport device and packet management method thereof
EP3629521B1 (en) Rating method for service node, domain name system (dns) scheduling method and server
CN109218349A (en) A kind of method and device of management server cluster
CN103581276A (en) Cluster management device and system, service client side and corresponding method
CN108632931B (en) Data transmission method, device, equipment and medium based on 5G network
CN109995839B (en) Load balancing method, system and load balancer
US20160196073A1 (en) Memory Module Access Method and Apparatus
CN108063832B (en) Cloud storage system and storage method thereof
CN106991008B (en) Resource lock management method, related equipment and system
CN103326925B (en) A kind of information push method and device
CN108123901A (en) A kind of message transmitting method and device
EP4033719A1 (en) System for providing exact communication delay protection of request response for distributed service
CN111787058A (en) Lightweight information subscription and push method in cross-domain virtual data space
CN105162623A (en) Cloud processing method and cloud server
CN108509297A (en) A kind of data back up method and system
CN106817387A (en) A kind of method of data synchronization, device and system
CN111885199B (en) Data transmission method
US8250140B2 (en) Enabling connections for use with a network
US20210096962A1 (en) Data backup method, device and system
CN106209680A (en) Information processor and method
US8724518B2 (en) Communication system, node, terminal, program and communication method
CN104639379A (en) Proxy testing method and device
CN102215248A (en) Apparatus and method for registering node and searching for floating internet protocol address using distributed network
CN101667910A (en) Data synchronism method and system thereof of fast network
CN110474781B (en) Method and device for forwarding multicast data

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Data Transmission Method

Effective date of registration: 20230905

Granted publication date: 20210827

Pledgee: Beijing Zhongguancun bank Limited by Share Ltd.

Pledgor: BEIJING THREATBOOK TECHNOLOGY CO.,LTD.

Registration number: Y2023990000444

PE01 Entry into force of the registration of the contract for pledge of patent right