Data transmission link establishment method and device, equipment and medium

Through the point-to-point data transmission link between the client and the device, the data is directly transmitted using KCP or WG protocol, which solves the resource consumption and delay problems when remote clients play NVR videos, and achieves efficient data transmission.

CN119031026APending Publication Date: 2024-11-26SUZHOU WANDIANZHANG NETWORK TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411170034.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

When remote clients play NVR videos, the existing technology requires video streaming through the public network streaming server, resulting in large public network traffic consumption, high resource usage of streaming servers, increased transmission delay and excessive service link dependence on streaming media nodes. , reduces transmission efficiency.

Method used

Directly establish a point-to-point data transmission link between the client and the device side, and use KCP or WG protocol to transmit data, avoid transit through the streaming media node, and directly complete data transmission between the client and the device side.

Benefits of technology

Reduces resource consumption during data transmission, improves transmission efficiency, reduces dependence on streaming media nodes, reduces transmission delay, and reduces communication costs for users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031026A_ABST
    Figure CN119031026A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission link establishment method and device, equipment and a medium, and relates to the technical field of computers, and the data transmission link establishment method comprises the steps: obtaining a connection establishment request which is sent by a client and carries client network information and equipment end representation information; forwarding the connection establishment request to a device end corresponding to the device end characterization information, so that the device end sends a first connection establishment message to the client based on the client network information, and sends the device end network information to the server; and sending the device end network information to the client, so that the client sends a second connection establishment message to the device end based on the device end network information, thereby completing establishment of a data transmission link, and carrying out point-to-point data transmission between the client and the device end by using the data transmission link. Resource consumption can be reduced and transmission efficiency can be improved based on point-to-point data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and medium for establishing a data transmission link. Background Art

[0002] Currently, when a remote client plays NVR (Network Video Recorder) video, it needs to first transmit the local video stream to the public network streaming server, and then the streaming server distributes the video stream to the client. This method not only consumes public network traffic, but also occupies streaming server resources, so it requires a large number of streaming nodes and bandwidth. At the same time, this distribution mode also increases transmission delay and makes the entire business link more dependent on streaming nodes.

[0003] In summary, how to reduce resource consumption and improve transmission efficiency during data transmission is a problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, the object of the present invention is to provide a method, device, equipment and medium for establishing a data transmission link, which can reduce resource consumption and improve transmission efficiency during data transmission. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a method for establishing a data transmission link, which is applied to a server, comprising:

[0006] Obtain the connection establishment request sent by the client that carries the client network information and device representation information;

[0007] Forwarding the connection establishment request to the device end corresponding to the device end representation information, so that the device end sends a first connection establishment message to the client end based on the client end network information, and sends the device end network information to the server end;

[0008] The device-side network information is sent to the client, so that the client sends a second connection establishment message to the device side based on the device-side network information to complete the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device side.

[0009] Optionally, forwarding the connection establishment request to the device corresponding to the device representation information, so that the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server, includes:

[0010] The connection establishment request is forwarded to the device management service corresponding to the client, so that after the device management service forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server through the device management service.

[0011] Optionally, forwarding the connection establishment request to a device corresponding to the device representation information includes:

[0012] Verify whether the client has permission to establish a connection;

[0013] If the client has the connection establishment permission, the connection establishment request is forwarded to the device corresponding to the device representation information.

[0014] Optionally, the first connection establishment message and the second connection establishment message are User Datagram Protocol messages.

[0015] Optionally, the device end is a network video recorder device end or a network camera device or a network video recorder device mounted with several network cameras.

[0016] In a second aspect, the present application discloses a method for establishing a data transmission link, which is applied to a client and includes:

[0017] The connection establishment request carrying the client network information and the device characterization information is sent to the server, so that after the server forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server;

[0018] Acquire the first connection establishment message sent by the device end and the device end network information sent by the server end;

[0019] A second connection establishment message is sent to the device end based on the device end network information to complete the establishment of a data transmission link so as to utilize the data transmission link for point-to-point data transmission between the client and the device end.

[0020] In a third aspect, the present application discloses a method for establishing a data transmission link, which is applied to a device, and includes:

[0021] Obtain a connection establishment request sent by a server and carrying client network information and device characterization information; wherein the connection establishment request is a request sent by the client to the server; and the device is a device corresponding to the device characterization information;

[0022] A first connection establishment message is sent to the client based on the client-side network information, and device-side network information is sent to the server, so that after the server sends the device-side network information to the client, the client sends a second connection establishment message to the device based on the device-side network information to complete the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device.

[0023] In a fourth aspect, the present application discloses a data transmission link establishment device, which is applied to a server, comprising:

[0024] A request acquisition module is used to acquire a connection establishment request sent by a client and carrying client network information and device representation information;

[0025] An information forwarding module, configured to forward the connection establishment request to the device end corresponding to the device end representation information, so that the device end sends a first connection establishment message to the client end based on the client end network information, and sends the device end network information to the server end;

[0026] An information sending module is used to send the device-side network information to the client, so that the client sends a second connection establishment message to the device side based on the device-side network information to complete the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device side.

[0027] In a fifth aspect, the present application discloses an electronic device, including:

[0028] Memory, used to store computer programs;

[0029] The processor is used to execute the computer program to implement the aforementioned disclosed method for establishing a data transmission link.

[0030] In a sixth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed method for establishing a data transmission link is implemented.

[0031] It can be seen that the present application obtains a connection establishment request sent by the client that carries the client network information and the device characterization information; forwards the connection establishment request to the device corresponding to the device characterization information, so that the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server; sends the device network information to the client, so that the client sends a second connection establishment message to the device based on the device network information, and completes the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device. It can be seen that the present application directly establishes a point-to-point data transmission link between the client and the device, and realizes point-to-point data transmission between the client and the device, without the need to use streaming media nodes or other transit, thereby reducing resource consumption and improving transmission efficiency during data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0033] Figure 1 A flow chart of a method for establishing a data transmission link disclosed in this application;

[0034] Figure 2 A flowchart of a specific method for establishing a data transmission link disclosed in this application;

[0035] Figure 3 A flowchart of a specific method for establishing a data transmission link disclosed in this application;

[0036] Figure 4 A schematic diagram of a data transmission link establishment process disclosed in this application;

[0037] Figure 5 A schematic diagram of the structure of a data transmission link establishment device disclosed in this application;

[0038] Figure 6 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] Currently, when a remote client plays an NVR video, it needs to first transmit the local video stream to the public network streaming server, and then the streaming server distributes the video stream to the client. This method not only consumes public network traffic, but also occupies streaming server resources, so it requires a large number of streaming nodes and bandwidth. At the same time, this distribution mode also increases transmission delay and makes the entire business link more dependent on streaming nodes.

[0041] To this end, an embodiment of the present application proposes a data transmission link establishment solution that can reduce resource consumption and improve transmission efficiency during data transmission.

[0042] The present application discloses a method for establishing a data transmission link. Figure 1 As shown, applied to the server, the method includes:

[0043] Step S11: obtaining a connection establishment request sent by the client and carrying client network information and device characterization information.

[0044] In this embodiment, the client can first select a point-to-point transmission model, which can be KCP (Fast and Reliable Transport Protocol) mode or WG (Virtual Private Network Protocol, WireGuard) mode, and the subsequent operations are the same; KCP (Fast and Reliable Transport Protocol, Kung Cong Protocol) mode: Data is transmitted through the KCP protocol at both ends (i.e., the client and the device), and only the transmission of the video stream is realized. WG (Virtual Private Network Protocol) mode: Intranet penetration is achieved by deploying WG services on both the device and the client. The client can not only directly access the stream address of the device, but also access the background configuration related operations of the device.

[0045] It should be pointed out that P2P (Peer-to-Peer) transmission is a network communication architecture in which two or more nodes can exchange data directly without going through a central server. This technology is used in many applications, including file sharing, instant messaging, distributed computing, etc. KCP is a reliable transmission protocol based on UDP, which improves the performance and stability of network applications by optimizing and controlling delays and packet loss during transmission. KCP combines the advantages of TCP (Transmission Control Protocol) and UDP (User Datagram Protocol), and exchanges lower latency and higher transmission speed at a lower bandwidth cost. It is particularly suitable for application scenarios with high requirements for real-time and transmission speed, such as online games, video calls, etc. WG is a modern, high-performance virtual private network (VPN) protocol. It aims to provide a faster, more secure and easier-to-use VPN solution. WireGuard is designed to be simple, fast and secure, while keeping the code readable and easy to audit.

[0046] In this embodiment, the device representation information includes but is not limited to the target device MAC address (Media Access Control or Medium Access Control), and the client network information includes but is not limited to the client public network address and port.

[0047] Step S12: forwarding the connection establishment request to the device corresponding to the device representation information, so that the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server.

[0048] In this embodiment, the device-side network information includes but is not limited to the public network address and port of the device itself; if there are several device ends, only the device end corresponding to the device-side network information needs to be used.

[0049] In this embodiment, a device management service is required to communicate between the server and the device, and the connection establishment request is forwarded to the device corresponding to the device characterization information so that the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server, including: forwarding the connection establishment request to the device management service corresponding to the client, so that after the device management service forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server through the device management service.

[0050] In this embodiment, the server side needs to verify the request and can transmit it to the device side only after the verification is passed to ensure accurate transmission. Specifically, forwarding the connection establishment request to the device side corresponding to the device side representation information includes: verifying whether the client side has the connection establishment authority; if the client side has the connection establishment authority, forwarding the connection establishment request to the device side corresponding to the device side representation information.

[0051] In this embodiment, the first connection establishment message and the second connection establishment message are User Datagram Protocol messages (UDP messages).

[0052] In this embodiment, the device end is a network video recorder device end or a network camera device or a network video recorder device mounted with several network cameras. Specifically, the device end can be a separate NVR device (network video recorder device), or an IPC device (Internet Protocol Camera, network camera device), or an NVR device mounted with multiple IPC devices, which is not limited here.

[0053] Step S13: Send the device-side network information to the client, so that the client sends a second connection establishment message to the device based on the device-side network information to complete the establishment of the data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device.

[0054] In summary, this application does not require the use of a third-party server's streaming subscription service, which greatly improves the communication speed; in addition, the established point-to-point network has low dependence on the central server, and the probability of network crash due to server failure or network failure is also greatly reduced, ensuring communication quality and reducing users' communication costs.

[0055] It should be pointed out that after the device and the client send the connection establishment message, they can monitor their respective local ports to ensure that information is not lost.

[0056] It can be seen that the present application obtains a connection establishment request sent by the client that carries the client network information and the device characterization information; forwards the connection establishment request to the device corresponding to the device characterization information, so that the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server; sends the device network information to the client, so that the client sends a second connection establishment message to the device based on the device network information, and completes the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device. It can be seen that the present application directly establishes a point-to-point data transmission link between the client and the device, and realizes point-to-point data transmission between the client and the device, without the need to use streaming media nodes or other transit, thereby reducing resource consumption and improving transmission efficiency during data transmission.

[0057] The embodiment of the present application discloses a specific method for establishing a data transmission link. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Figure 2 As shown, it is applied to the client, including:

[0058] Step S21: Send a connection establishment request carrying client network information and device characterization information to the server, so that after the server forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server.

[0059] In this embodiment, the server forwards the connection establishment request to the device management service corresponding to the client, so that after the device management service forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server through the device management service.

[0060] In this embodiment, when the server forwards the connection establishment request to the device end corresponding to the device end representation information, it first checks whether the client has the connection establishment permission; if the client has the connection establishment permission, the connection establishment request is forwarded to the device end corresponding to the device end representation information.

[0061] In this embodiment, the first connection establishment message and the second connection establishment message are User Datagram Protocol messages.

[0062] In this embodiment, the device end is a network video recorder device end or a network camera device or a network video recorder device mounted with several network cameras.

[0063] Step S22: Acquire the first connection establishment message sent by the device end and the device end network information sent by the server end.

[0064] Step S23: sending a second connection establishment message to the device end based on the device end network information to complete the establishment of the data transmission link so as to use the data transmission link to perform point-to-point data transmission between the client and the device end.

[0065] It can be seen that the connection establishment request carrying the client network information and the device characterization information sent by the present application is sent to the server, so that after the server forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server; obtains the first connection establishment message sent by the device and the device network information sent by the server; sends a second connection establishment message to the device based on the device network information, and completes the establishment of the data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device. It can be seen that the present application directly establishes a point-to-point data transmission link between the client and the device, and realizes point-to-point data transmission between the client and the device, without the need to use streaming media nodes or other transit, thereby reducing resource consumption and improving transmission efficiency during data transmission.

[0066] The embodiment of the present application discloses a specific method for establishing a data transmission link. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Figure 3 As shown, it is applied to the device side, specifically including:

[0067] Step S31: Obtain a connection establishment request sent by the server and carrying client network information and device characterization information; wherein the connection establishment request is a request sent by the client to the server; and the device is a device corresponding to the device characterization information.

[0068] In this embodiment, the server will forward the connection establishment request to the device management service corresponding to the client, so that after the device management service forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server through the device management service.

[0069] In this embodiment, when the server forwards the connection establishment request to the device end corresponding to the device end representation information, it first checks whether the client has the connection establishment permission; if the client has the connection establishment permission, the connection establishment request is forwarded to the device end corresponding to the device end representation information.

[0070] In this embodiment, the first connection establishment message and the second connection establishment message are User Datagram Protocol messages.

[0071] In this embodiment, the device end is a network video recorder device end or a network camera device or a network video recorder device mounted with several network cameras.

[0072] Step S32: Send a first connection establishment message to the client based on the client network information, and send the device-side network information to the server, so that after the server sends the device-side network information to the client, the client sends a second connection establishment message to the device-side based on the device-side network information to complete the establishment of the data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device.

[0073] It can be seen that the present application obtains a connection establishment request sent by the server end that carries the client end network information and the device end characterization information; wherein the connection establishment request is a request sent by the client end to the server end; the device end is the device end corresponding to the device end characterization information; based on the client end network information, a first connection establishment message is sent to the client end, and the device end network information is sent to the server end, so that after the server end sends the device end network information to the client end, the client end sends a second connection establishment message to the device end based on the device end network information to complete the establishment of the data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client end and the device end. It can be seen that the present application directly establishes a point-to-point data transmission link between the client end and the device end, and realizes point-to-point data transmission between the client end and the device end, without the need to use streaming media nodes or other means for transit, thereby reducing resource consumption and improving transmission efficiency during data transmission.

[0074] See also Figure 4As shown, it is a schematic diagram of a data transmission link establishment process; in the figure, first, the client obtains its own network information from the server STUN through a request, and sends a request to establish a connection to the server with its own network information and the name of the target device (the target device MAC, the client's public network address and port, at this time the client's port is open to receive the message sent by the device later) (including 1); secondly, after receiving the request from the client, the server performs an authority check (checks whether the client has the authority and determines the device management service corresponding to the client), and after the check is passed, forwards the request message to the corresponding target device (including 2 and 3) based on the corresponding device management service; in addition, after receiving the request message, the target device returns its own network information (the device's own public network address and port) to the client via the corresponding device management service and the server. At the same time, the target device starts to send UDP messages (first messages) based on the public network address and port of the client to try to establish a link while listening to local ports (including 4, 6, 7 and 5); then, after receiving the public network address and port of the target device, the client sends a UDP message (second message) to the target device while listening to local ports (including 8); finally, when both parties accept each other's messages, the link is established successfully. Start transmitting video streams through the link (including 9).

[0075] Correspondingly, the embodiment of the present application also discloses a data transmission link establishment device, see Figure 5 As shown, applied to the server, the device includes:

[0076] The request acquisition module 11 is used to acquire the connection establishment request sent by the client and carrying the client network information and device representation information;

[0077] An information forwarding module 12, configured to forward the connection establishment request to the device end corresponding to the device end representation information, so that the device end sends a first connection establishment message to the client end based on the client end network information, and sends the device end network information to the server end;

[0078] The information sending module 13 is used to send the device-side network information to the client, so that the client sends a second connection establishment message to the device side based on the device-side network information to complete the establishment of the data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device side.

[0079] Among them, the more specific working process of each of the above modules can refer to the corresponding content disclosed in the above embodiments, which will not be repeated here.

[0080] It can be seen that the present application obtains a connection establishment request sent by the client that carries the client network information and the device characterization information; forwards the connection establishment request to the device corresponding to the device characterization information, so that the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server; sends the device network information to the client, so that the client sends a second connection establishment message to the device based on the device network information, and completes the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device. It can be seen that the present application directly establishes a point-to-point data transmission link between the client and the device, and realizes point-to-point data transmission between the client and the device, without the need to use streaming media nodes or other transit, thereby reducing resource consumption and improving transmission efficiency during data transmission.

[0081] Furthermore, an embodiment of the present application also provides an electronic device. Figure 6 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0082] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the data transmission link establishment method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0083] In this embodiment, the power supply 26 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 25 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 24 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0084] In addition, the memory 22, as a carrier for storing resources, may be a read-only memory, a random access memory, a disk or an optical disk, etc., and the resources stored thereon may include a computer program 221, and the storage method may be temporary storage or permanent storage. Among them, the computer program 221 includes not only a computer program that can be used to complete the data transmission link establishment method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, but also a computer program that can be used to complete other specific tasks.

[0085] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned disclosed method for establishing a data transmission link is implemented.

[0086] The specific steps of the method can refer to the corresponding contents disclosed in the above embodiments, which will not be repeated here.

[0087] The various embodiments in this application are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0088] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0089] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0090] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0091] The above is a detailed introduction to a method, device, equipment, and storage medium for establishing a data transmission link provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for establishing a data transmission link, characterized in that: Applied to the server, including: Obtain the connection establishment request sent by the client that carries the client network information and device representation information; Forwarding the connection establishment request to the device end corresponding to the device end representation information, so that the device end sends a first connection establishment message to the client end based on the client end network information, and sends the device end network information to the server end; The device-side network information is sent to the client, so that the client sends a second connection establishment message to the device side based on the device-side network information to complete the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device side.

2. The method for establishing a data transmission link according to claim 1, characterized in that: The forwarding of the connection establishment request to the device end corresponding to the device end representation information, so that the device end sends a first connection establishment message to the client end based on the client end network information, and sends the device end network information to the server end, including: The connection establishment request is forwarded to the device management service corresponding to the client, so that after the device management service forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server through the device management service.

3. The method for establishing a data transmission link according to claim 1, characterized in that: The forwarding the connection establishment request to the device end corresponding to the device end representation information includes: Verify whether the client has permission to establish a connection; If the client has the connection establishment permission, the connection establishment request is forwarded to the device corresponding to the device representation information.

4. The method for establishing a data transmission link according to claim 1, characterized in that: The first connection establishment message and the second connection establishment message are User Datagram Protocol messages.

5. The method for establishing a data transmission link according to any one of claims 1 to 4, characterized in that: The device end is a network video recorder device end or a network camera device or a network video recorder device mounted with several network cameras.

6. A method for establishing a data transmission link, characterized in that: Applied to the client, including: The connection establishment request carrying the client network information and the device characterization information is sent to the server, so that after the server forwards the connection establishment request to the device corresponding to the device characterization information, the device sends a first connection establishment message to the client based on the client network information, and sends the device network information to the server; Acquire the first connection establishment message sent by the device end and the device end network information sent by the server end; A second connection establishment message is sent to the device end based on the device end network information to complete the establishment of a data transmission link so as to utilize the data transmission link for point-to-point data transmission between the client and the device end.

7. A method for establishing a data transmission link, characterized in that: Applied to the device side, including: Obtain a connection establishment request sent by a server and carrying client network information and device characterization information; wherein the connection establishment request is a request sent by the client to the server; and the device is a device corresponding to the device characterization information; A first connection establishment message is sent to the client based on the client-side network information, and device-side network information is sent to the server, so that after the server sends the device-side network information to the client, the client sends a second connection establishment message to the device based on the device-side network information to complete the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device.

8. A data transmission link establishment device, characterized in that: Applied to the server, including: A request acquisition module is used to acquire a connection establishment request sent by a client and carrying client network information and device representation information; An information forwarding module, configured to forward the connection establishment request to the device end corresponding to the device end representation information, so that the device end sends a first connection establishment message to the client end based on the client end network information, and sends the device end network information to the server end; An information sending module is used to send the device-side network information to the client, so that the client sends a second connection establishment message to the device side based on the device-side network information to complete the establishment of a data transmission link, so as to use the data transmission link to perform point-to-point data transmission between the client and the device side.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the method for establishing a data transmission link as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the method for establishing a data transmission link as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Communication link establishment method and device, storage medium and product

    CN120091055A

  • Link communication method and system and electronic equipment

    CN120980059A