Data transmission method and device, and data transmission system

Through the connection between the terminal device and the redirecting server, the target data server is determined using the allocation strategy and network type of the redirecting server, which solves the problems of complex connections and low reliability of terminal devices in the prior art, and realizes fast and reliable data transmission and dynamic expansion of the data server.

CN115242795BActive Publication Date: 2025-03-04CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110435579.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-22
Publication Date
2025-03-04
Estimated Expiration
2041-04-22

AI Technical Summary

Technical Problem

In the prior art, terminal devices need to configure multiple parameters when connecting to the data server, resulting in complex connections and low reliability, and it is difficult to achieve real-time dynamic expansion of the data server.

Method used

By establishing a communication connection between the terminal device and the redirecting server, the redirecting server obtains the Internet interconnection protocol address of the terminal device, determines the network type, and determines the target server among multiple data servers according to the allocation strategy, generates a server identification and sends it to the terminal device, so that it can connect with the target server.

Benefits of technology

The speed of terminal devices to access the data server and the reliability of data transmission are improved, real-time dynamic expansion of the data server is realized, and access problems caused by deactivation of some data servers is prevented.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115242795B_ABST
    Figure CN115242795B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of data transmission, and specifically to a data transmission method and device, and a data transmission system, wherein the method comprises: establishing a communication connection between a terminal device and a redirection server; the redirection server obtains the Internet Protocol address of the terminal device, and determines the network type corresponding to the Internet Protocol address; the redirection server determines a target server among multiple data servers according to an allocation strategy, and determines the server identifier of the target server according to the network type, and sends it to the terminal device; the terminal device receives the server identifier, and connects to the target server according to the server identifier. The technical solution of the embodiment of the present disclosure improves the convenience of establishing a connection between a terminal device and a data server and the reliability of data transmission in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data transmission, and in particular to a data transmission method and device, and a data transmission system. Background Art

[0002] With the construction of large-scale monitoring systems, more and more data servers and devices are connected using the GB / T 28181 protocol (international protocol).

[0003] In the prior art, when a terminal device is connected to a data server, it is necessary to configure a variety of parameters, and the same terminal device is connected to a fixed data server, which has low reliability and low data transmission.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The purpose of the present disclosure is to provide a data transmission method, a data transmission device, and a data transmission system, thereby at least to a certain extent improving the convenience of directly establishing a connection between a terminal device and a data server and the reliability of data transmission in the prior art.

[0006] According to a first aspect of the present disclosure, there is provided a data transmission method, comprising: establishing a communication connection between a terminal device and a redirection server;

[0007] The redirection server obtains the Internet Protocol address of the terminal device and determines the network type corresponding to the Internet Protocol address;

[0008] The redirection server determines a target server from a plurality of data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the identifier to the terminal device;

[0009] The terminal device receives the server identifier and connects to the target server according to the server identifier.

[0010] According to a second aspect of the present disclosure, a data transmission method is provided, including:

[0011] Obtaining an Internet Protocol address of a terminal device, and determining a network type corresponding to the Internet Protocol address;

[0012] determining a target server among a plurality of data servers according to an allocation strategy;

[0013] The server identifier of the target server is determined according to the network type and sent to the terminal device, so that the terminal device is connected to the target server according to the server identifier.

[0014] According to a third aspect of the present disclosure, there is provided a data transmission apparatus, comprising a terminal device, a redirection server and a data server, wherein:

[0015] The terminal device is in communication connection with the redirection server;

[0016] The redirection server is in communication connection with at least one data server, and the redirection server is used for the Internet protocol address of the terminal device, and the network type corresponding to the Internet protocol address is determined;

[0017] The redirection server determines a target server from a plurality of data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the identifier to the terminal device;

[0018] The terminal device is connected to the target server according to the server identifier.

[0019] According to a fourth aspect of the present disclosure, a data transmission system is provided, including a terminal device, a redirection server, a data server, a third-party platform, a proxy server, and a registration center, wherein:

[0020] The terminal device is in communication connection with the redirection server;

[0021] The redirection server is in communication connection with at least one data server, and the redirection server is used for the Internet protocol address of the terminal device, and the network type corresponding to the Internet protocol address is determined;

[0022] The redirection server determines a target server from a plurality of data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the identifier to the terminal device;

[0023] The terminal device is connected to the target server according to the server identifier;

[0024] The proxy server is connected to the third-party platform and writes the registration information of the proxy server to the registration center;

[0025] The registration center receives the registration data of the proxy server so that the data server is connected to the proxy server in communication according to the registration data.

[0026] According to a fifth aspect of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0027] The data transmission method provided by an embodiment of the present disclosure establishes a communication connection between a terminal device and a redirection server; the redirection server obtains the Internet Protocol address of the terminal device and determines the network type corresponding to the Internet Protocol address; the redirection server determines the target server from multiple data servers according to the allocation strategy, determines the server identifier of the target server according to the network type, and sends it to the terminal device; the terminal device receives the server identifier and connects to the target server according to the server identifier; compared with the prior art, on the one hand, when the terminal device accesses the data server, it is not necessary to configure multiple parameters, and the redirection server can determine the target server according to the allocation strategy, and then determine the server identifier of the target server under the network type according to the network type to realize the connection between the terminal device and the target server, thereby improving the speed of the terminal device accessing the data server; on the other hand, through the allocation strategy, the same terminal device can connect to different data servers, thereby improving the reliability of data transmission between the terminal device and the data server, and facilitating the real-time dynamic expansion of the data server. On the other hand, the problem that the terminal device cannot access the data server due to the deactivation of some data servers is prevented, thereby improving the reliability of data transmission between the terminal device and the data server.

[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0030] Figure 1 A schematic diagram of configuring access parameters in the related art is schematically shown;

[0031] Figure 2 A schematic diagram of configuring audio and video parameters in the related art is schematically shown;

[0032] Figure 3 A flowchart schematically illustrates a data transmission method in an exemplary embodiment of the present disclosure;

[0033] Figure 4A schematic diagram of data interaction between various interaction terminals in an exemplary embodiment of the present disclosure is schematically shown;

[0034] Figure 5 A data flow diagram schematically illustrating data transmission in an exemplary embodiment of the present disclosure;

[0035] Figure 6 A flowchart schematically illustrates a data transmission method performed by a redirect server in an exemplary embodiment of the present disclosure;

[0036] Figure 7 A flow chart schematically illustrates a data transmission system in an exemplary embodiment of the present disclosure;

[0037] Figure 8 A data flow diagram schematically illustrates data transmission between a terminal device and a third-party platform in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0038] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0039] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0040] In related technologies, with the construction of large-scale monitoring systems, more and more platforms and devices are connected using the GB / T28181 protocol (national standard protocol). However, since the national standard protocol was initially customized, its target was a local area network or a private network, and the configuration was complex and difficult to configure. It required a fixed server address and had extremely high requirements for server stability. In a single project, since each video surveillance manufacturer generally has a single national standard server with a concurrent number of about 4,000 and cannot connect to multiple heterogeneous networks, it is impossible to form a large-scale clustered monitoring system. A multi-level cascade solution is often used for deployment, which is costly and requires huge maintenance, resulting in a large waste of resources.

[0041] Reference Figure 1 and Figure 2As shown in the figure, data server access configuration is complex and difficult to configure, and it is difficult to deploy on a large scale for large-scale access implementation; terminal access under heterogeneous network conditions (Internet, local area network, private network, etc.) requires configuration of different data server addresses, which is difficult to deploy uniformly; for a terminal device, access through the national standard requires configuration of 8 parameters, and the terminal device docking configuration of a fixed data server is difficult to achieve high performance, high reliability, high disaster tolerance, and real-time dynamic rapid expansion. .

[0042] The data transmission method, data transmission device and data transmission system according to the exemplary embodiments of the present disclosure are described in detail below.

[0043] Figure 3 The flowchart of a data transmission method in this exemplary embodiment includes the following steps:

[0044] Step S310, establishing a communication connection between the terminal device and the redirection server;

[0045] Step S320, the redirection server obtains the Internet Protocol address of the terminal device and determines the network type corresponding to the Internet Protocol address;

[0046] Step S330, the redirection server determines a target server from a plurality of data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the server identifier to the terminal device;

[0047] Step S340: the terminal device receives the server identifier and connects to the target server according to the server identifier.

[0048] Compared with the prior art, on the one hand, when the terminal device accesses the data server, it does not need to configure multiple parameters. The redirection server can determine the target server according to the allocation strategy, and then determine the server identifier of the target server under the network type according to the network type to achieve the connection between the terminal device and the target server, thereby improving the speed of the terminal device accessing the data server. On the other hand, through the allocation strategy, the same terminal device can connect to different data servers, thereby improving the reliability of data transmission between the terminal device and the data server, and facilitating the real-time dynamic expansion of the data server. On the other hand, the problem of the terminal device being unable to access the data server due to the deactivation of some data servers is prevented, thereby improving the reliability of data transmission between the terminal device and the data server.

[0049] In step S310, a communication connection is established between the terminal device and the redirection server.

[0050] In this example implementation, a redirection address may be configured in the terminal device, specifically by setting the Internet as a DNS domain name and the rest of the network as an IP address. When the terminal device needs to access a data server, a communication connection may be first established between the terminal device and the redirection server.

[0051] In this example implementation, the communication connection method may be a wired or wireless communication link or an optical fiber cable, etc., which is not specifically limited in this example implementation.

[0052] In step S320, the redirection server obtains the Internet Protocol address of the terminal device and determines the network type corresponding to the Internet Protocol address.

[0053] In an example implementation of the present disclosure, the Internet Protocol address of the terminal device, that is, the IP address of the terminal device, can be determined, and then the correspondence between the Internet Protocol address of the terminal device and the network type determined by the data management module can be obtained, thereby determining the network type corresponding to the Internet Protocol address of the terminal device.

[0054] In step S330, the redirection server determines a target server from a plurality of data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the server identifier to the terminal device.

[0055] In an example implementation of the present disclosure, after determining the network type of the above-mentioned terminal device, the redirect server can determine the target server from multiple data servers according to the allocation strategy. Specifically, the registration information of each data server can be first obtained, wherein the above-mentioned registration information includes the load information of the data server. Then, the priority of each data server to be connected by the terminal device can be determined according to the load information. The priority of the data server with the lowest load can be set to the highest, and the priority of the data server with the highest load can be set to the lowest, that is, the above-mentioned priority is negatively correlated with the load of the data server.

[0056] In this example implementation, the data server with the lowest load can be determined as the target server, and then the server identifier of the target server under the network type can be determined according to the network type of the above-mentioned terminal device, that is, the IP of the target server under the network type, and the server identifier can be sent to the above-mentioned terminal device.

[0057] In this example implementation, the data server can periodically report load information and device information to the distributed cache so that the redirection service can use the load information to perform load algorithms in the business process; during the device request process, it can find out whether the terminal device is online and, if so, which data server it is on.

[0058] In this example implementation, the fields of device information may include the following: Device ID: ID of the terminal device; Device source IP: source IP of the terminal device when it is connected to the data server; Device source port: source port of the terminal device when it is connected to the data server; Device network type: device network type (Internet, local area network, private network, etc.) mapped by the data server based on the source IP of the device and the network type association relationship configured by the data management unit; Data server instance ID: unique ID of the data server, used to match a unique data server. No specific limitation is made in this example implementation.

[0059] In step S340, the terminal device receives the server identifier and connects to the target server according to the server identifier.

[0060] In this example implementation, the terminal device receives the server identifier sent by the redirection server, and connects to the target server according to the server, thereby achieving data transmission.

[0061] Specifically, refer to Figure 4 As shown, a communication connection is established between a terminal device and a redirection server; the redirection server obtains the Internet Protocol address of the terminal device and determines the network type corresponding to the Internet Protocol address; the redirection server obtains the load information of the data server, and determines the target server among multiple data servers according to the load information, and determines the server identifier of the target server according to the network type, and sends it to the terminal device; the terminal device receives the server identifier, and connects to the target server according to the server identifier.

[0062] In the real-time mode of this example, after the target server is connected to the terminal device, the terminal device can send a heartbeat signal to the target server at intervals of a preset time, so that the target server can determine the connection status of the terminal device based on the heartbeat signal, wherein the preset time can be 30 seconds, 20 seconds, 40 seconds, etc., which is not specifically limited in this example implementation.

[0063] In this example implementation, a timeout period may be determined, where the timeout period may be 3 times, 4 times, etc., of a preset time, or may be customized by a user, which is not specifically limited in this example implementation.

[0064] In the real-time mode of this example, if the target server does not receive the heartbeat signal sent by the above-mentioned terminal device after the timeout period, it is determined that the above-mentioned terminal device is in an offline state. At this time, the target server generates offline information, obtains the device information of the above-mentioned terminal device, and detects whether the above-mentioned terminal device is connected to other data servers. If the above-mentioned terminal device is already connected to other servers, the target server does not process the above-mentioned offline information. If the above-mentioned terminal device has not been connected to other data servers, the target server transmits the offline information of the above-mentioned terminal device to the above-mentioned redirection server, so that the above-mentioned redirection server can reallocate the data server to the above-mentioned terminal device.

[0065] In this example implementation, when data is transmitted between the terminal device and the above-mentioned target server, the streaming media server will send a data acquisition request to the target server. After receiving the data acquisition request sent by the above-mentioned streaming media server, the target server will send the data acquisition request to the terminal device connected to the target server, and then the terminal device will respond to the above-mentioned data acquisition request and transmit the data information corresponding to the data acquisition request to the above-mentioned streaming media server.

[0066] Specifically, please refer to Figure 5 As shown, the data acquisition request may be a streaming request. In this example implementation, the streaming server 501 may execute steps S501 and S502, first generate streaming parameters, send a streaming request, and send the streaming request to the streaming gateway 502, the streaming gateway 502 executes steps S503, S504, and S505, and after receiving the streaming request, converts the streaming IP according to the network type of the device accessed. Specifically, the streaming request is converted according to the network type of the terminal device 504. The receiving IP address of the terminal device 504 is received, and the receiving request is sent to the target server 503. The target server 503 then executes steps S506, S507 and S508 to receive the receiving request, convert it into an international request, and send a stream pulling request. Specifically, the receiving address in the stream receiving request is converted into a target address that is adapted to the network type of the terminal device 504, and a stream pulling request is generated. The terminal device 504 executes step S509 to receive the stream pulling request, respond to the stream pulling request and send the data stream corresponding to the stream pulling request to the streaming media server 501.

[0067] Specifically, the specific parameters of the stream receiving request sent by the streaming media server 501 may include the stream receiving LAN address (192.168.1.72), the stream receiving port, the stream receiving ssrc identifier, the stream task ID and the streaming media service ID. The specific parameters of the stream receiving request sent by the streaming media gateway 502 may include the stream receiving address (public network: 182.145.195.234), the stream receiving port, the stream receiving ssrc identifier, the stream task ID and the streaming media service ID. The specific parameters in the stream pulling request sent to the terminal device 504 may include the stream receiving address (public network: 182.145.195.234), the stream receiving port, and the stream receiving ssrc identifier. Through the factory parameter presetting of the terminal device, the original 8 configuration parameters in the terminal device can be changed to a non-configuration mode, which cooperates with the cross-network support of the data server, greatly reducing the configuration work in the installation and maintenance process, and cooperating with the goal of the redirection server terminal configuration-free access.

[0068] Multiple data servers can adopt microservice architecture design. All data servers register the data server information with the registration center and refresh the data server information regularly. When the redirection server is working, it will read the registration information of the data server, which includes weight, load, data server port, data server host name, and whether it is available, so as to complete the service discovery action. For data servers that need to be removed, the data server information will be changed to unavailable first, and the redirection server will no longer assign devices to the data server. As the devices of the data server are redirected to other data servers one after another, the data server will be stopped; if the data server needs to be expanded horizontally, it only needs to be started directly. The redirection server will prioritize the allocation of devices to data servers with low load according to the established allocation strategy.

[0069] In this example implementation, the data server registration information is shown in the following table:

[0070]

[0071] As can be seen from the above table, the registration information of the data server can include the app name, app unique code, creation time, which is equivalent to the service start time, last refresh time, computer room, environment, host name, service address, version number, tenant information, weight, extended data, maximum load and current load.

[0072] Further, the present disclosure provides a data transmission method, which is executed by a redirection server, referring to Figure 6 As shown, the following steps may be included:

[0073] Step S610, obtaining an Internet Protocol address of a terminal device, and determining a network type corresponding to the Internet Protocol address;

[0074] Step S620, determining a target server among multiple data servers according to the allocation strategy;

[0075] Step S630: determine the server identifier of the target server according to the network type, and send the server identifier to the terminal device, so that the terminal device is connected to the target server according to the server identifier.

[0076] In this example implementation, the specific contents of each step executed by the redirect server in the above method have been described in detail above, and therefore, will not be repeated here.

[0077] Furthermore, the present disclosure also provides a data transmission device, referring to Figure 4 As shown, it includes a terminal device, a redirection server and a data server, wherein the terminal device is communicatively connected to the redirection server; the redirection server is communicatively connected to at least one data server, and the network type corresponding to the Internet protocol address used by the redirection server for the terminal device is determined; the redirection server determines a target server from multiple data servers according to an allocation strategy, determines a server identifier of the target server according to the network type, and sends it to the terminal device; the terminal device is connected to the target server according to the server identifier.

[0078] The detailed steps of the specific execution steps of the terminal device, the redirection server and the data server have been described in detail above, so they will not be repeated here.

[0079] The present disclosure also provides a data transmission system, referring to Figure 7 As shown, it includes the above-mentioned data transmission device 710, as well as the third-party platform 730, the proxy server 720 and the registration center, that is, the above-mentioned data transmission system may include a terminal device, a redirection server, a data server, a third-party platform, a proxy server and a registration center, wherein the terminal device is communicatively connected to the redirection server; the redirection server is communicatively connected to at least one data server, and determines the network type corresponding to the Internet protocol address of the redirection server for the terminal device; the redirection server determines the target server from multiple data servers according to the allocation strategy, and determines the server identifier of the target server according to the network type, and sends it to the terminal device; the terminal device is connected to the target server according to the server identifier; the proxy server is connected to the third-party platform, and writes the registration information of the proxy server to the registration center; the registration center receives the registration data of the proxy server, so that the data server is communicatively connected to the proxy server according to the registration data.

[0080] In this example implementation, the specific steps executed by the terminal device, the redirection server and the data server have been described in detail above, so they will not be repeated here.

[0081] In an example implementation of the present disclosure, the proxy server 720 is connected to the third-party platform 730, and writes registration data of the proxy server 720 to a registration center. The registration center receives the registration data of the proxy server and realizes that the data service can communicate with the proxy server.

[0082] In this example implementation, refer to Figure 7 As shown, after establishing a communication connection between the above-mentioned data server and the proxy server 720, the third-party platform 730 can obtain the device information of the terminal device where the data to be obtained is located, and send a data acquisition instruction to the above-mentioned proxy server 720. The proxy server 720 determines the reference data server corresponding to the data acquisition instruction based on the device information, and sends the data acquisition instruction to the reference data server; the reference data server sends the data acquisition instruction to the terminal device; the terminal device sends the data to be sent to the proxy server according to the data acquisition instruction; the proxy server sends the data to be sent to the third-party platform.

[0083] In this example implementation, the data transmission device may include multiple data servers, such as a first data server, a second data server, etc., and may also be provided with multiple third-party platforms 730, such as a first third-party platform 730, a second third-party platform 730, etc. In this example implementation, the number of data servers and third-party platforms 730 is not specifically limited.

[0084] Specifically, refer to Figure 8As shown, the data acquisition instruction may be a stream pull request. In the present exemplary implementation, the third-party platform may first execute step S801 to send a stream pull request, and then the proxy server 720 executes step S802 to receive the stream pull request, and then executes step S803 to query the load; step S804 to determine whether a device exists, and step S805 to return failure; specifically, the proxy server 720 receives the stream pull request and queries the device load data in the repository 750, and determines whether the device that has the data required by the third-party platform is connected to the data server 740. If not, the third-party platform directly executes step S806 to fail to collect the stream. If so, the proxy server executes step S807 to send a stream pull request to the data server, and then the data server executes steps S808 and S809 to receive the stream pull request and obtain the local stream collection address, and then The receiving proxy server receives the receiving address of the streaming media proxy server 721, and then the streaming media proxy server 721 executes steps S810 and S811 to allocate the receiving address and the sending address, and returns the receiving address to the data server. The data server then executes steps S812 and S813 to return the receiving address and send the stream information to the device. Specifically, the generated stream information is sent to the terminal device 504. Then the terminal device 504 executes step S814 to receive and respond, and step S815 to send the data stream. Specifically, the terminal device receives the stream information and responds, and sends the data stream to the streaming media proxy server. Finally, the streaming media proxy server executes step S816 to receive the data stream, and step S817 to push the data stream to the third-party platform, receive the data stream and send the received data stream to the third-party platform to complete the data transmission.

[0085] In summary, in this exemplary embodiment, compared with the prior art, on the one hand, when a terminal device accesses a data server, it is not necessary to configure multiple parameters. The redirection server can determine the target server according to the allocation strategy, and then determine the server identifier of the target server under the network type according to the network type to achieve the connection between the terminal device and the target server, thereby improving the speed at which the terminal device accesses the data server. On the other hand, through the allocation strategy, the same terminal device can connect to different data servers, thereby improving the reliability of data transmission between the terminal device and the data server, and facilitating the real-time dynamic expansion of the data server. On the other hand, the problem of the terminal device being unable to access the data server due to the deactivation of some data servers is prevented, thereby improving the reliability of data transmission between the terminal device and the data server.

[0086] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0087] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.

[0088] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0089] In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0090] In addition, program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0091] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

[0092] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data transmission method, characterized in that: include: Configure a redirection address in the terminal device, and establish a communication connection between the terminal device and the redirection server; wherein the redirection address includes a DNS domain name + an Internet Protocol address; The redirection server obtains the Internet Protocol address of the terminal device, and determines the network type corresponding to the Internet Protocol address according to the correspondence between the Internet Protocol address and the network type; The redirect server obtains registration information of multiple data servers, the registration information including load information; determines the priority of each data server to be connected by the terminal device according to the load information of each data server; determines a target server among the multiple data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the target server identifier to the terminal device; The terminal device receives the server identifier and connects to the target server according to the server identifier; wherein the server identifier is the IP of the target server under the network type; The target server receives the data acquisition request sent by the streaming media server, and sends the data acquisition request to the terminal device connected to the target server; The terminal device responds to the data acquisition request and transmits data information corresponding to the data acquisition request to the streaming media server.

2. The method according to claim 1, characterized in that The method further comprises: The terminal device sends a heartbeat signal to the target server at a preset time interval to determine the connection status between the terminal device and the target server; If the connection state is disconnected, the target server acquires offline information of the generated terminal device, and acquires device information of the terminal device to determine whether the terminal device is connected to other data servers; If the terminal device is not connected to other data servers, the target server sends the offline information to the redirection server.

3. A data transmission device, characterized in that: It includes terminal equipment, redirection server and data server, among which: The terminal device is connected to the redirection server in communication; the terminal device is configured with a redirection address, and the redirection address includes a DNS domain name + an Internet Protocol address; The redirection server is in communication connection with at least one data server, and the redirection server is used to obtain the Internet Protocol address of the terminal device and determine the network type corresponding to the Internet Protocol address; The redirect server obtains registration information of multiple data servers, the registration information including load information; determines the priority of each data server to be connected by the terminal device according to the load information of each data server; determines a target server among the multiple data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the target server identifier to the terminal device; The terminal device is connected to the target server according to the server identifier; wherein the server identifier is the IP address of the target server under the network type; The target server receives the data acquisition request sent by the streaming media server, and sends the data acquisition request to the terminal device connected to the target server; The terminal device responds to the data acquisition request and transmits data information corresponding to the data acquisition request to the streaming media server.

4. A data transmission system, characterized in that: It includes terminal devices, redirection servers, data servers, third-party platforms, proxy servers and registration centers, among which: The terminal device is connected to the redirection server in communication; the terminal device is configured with a redirection address, and the redirection address includes a DNS domain name + an Internet Protocol address; The redirection server is in communication connection with at least one data server, and the redirection server is used to obtain the Internet Protocol address of the terminal device and determine the network type corresponding to the Internet Protocol address; The redirect server obtains registration information of the plurality of data servers, the registration information including load information; determines the priority of each data server to be connected by the terminal device according to the load information of each data server; determines a target server among the plurality of data servers according to the allocation strategy, determines a server identifier of the target server according to the network type, and sends the target server identifier to the terminal device; The terminal device is connected to the target server according to the server identifier; wherein the server identifier is the IP address of the target server under the network type; The target server receives the data acquisition request sent by the streaming media server, and sends the data acquisition request to the terminal device connected to the target server; The terminal device responds to the data acquisition request and transmits data information corresponding to the data acquisition request to the streaming media server; The proxy server is connected to the third-party platform and writes the registration data of the proxy server to the registration center; The registration center receives the registration data of the proxy server so that the data server is connected to the proxy server in communication according to the registration data.

5. The data transmission system according to claim 4, characterized in that: include: The third-party platform obtains device information of the terminal device where the data to be obtained is located, and sends a data acquisition instruction to the proxy server; The proxy server determines the reference data server corresponding to the data acquisition instruction according to the device information, and sends the data acquisition instruction to the reference data server; The reference data server sends the data acquisition instruction to the terminal device; The terminal device sends the data to be sent to the proxy server according to the data acquisition instruction; The proxy server sends the data to be sent to the third-party platform.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data transmission method as claimed in claim 1 or 2 is implemented.

Citation Information

Patent Citations

  • System for obtaining monitoring video of monitoring platform, and method thereof

    CN105163071A

  • Connection establishment method, connection establishment device, and communication system

    CN108667933A