Data transmission method, device, equipment, medium and product
By introducing a proxy server into HCDN, the problem of home broadband terminals being difficult to access from the public network in a private network environment is solved, efficient and secure data transmission is achieved, and the efficiency and stability of data transmission between user terminals and home broadband terminals are improved.
Patent Information
- Application Number
- CN202510825061.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-19
AI Technical Summary
Existing private network penetration methods in HCDN have problems such as waste of public IP address resources, security risks, high configuration requirements and strong protocol adaptability, making it difficult for user terminals to directly access home broadband terminals, resulting in low transmission efficiency and security.
A proxy server is introduced at the edge of the network to assist user terminals and home broadband terminals in establishing communication links through its public network address. Heartbeat messages are used to maintain the link and select appropriate home broadband terminals to transmit media content, using standard protocols for data transmission.
It achieves efficient, secure and easy-to-implement private network penetration of home broadband terminals, improves the efficiency and stability of data transmission between user terminals and home broadband terminals, and reduces configuration complexity and security risks.
Smart Images

Figure CN120675767A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of media transmission technology, and in particular to a data transmission method, network equipment and storage medium. Background Art
[0002] HCDN (Home Content Delivery Network), a new content distribution technology, has garnered widespread attention and application in recent years. By leveraging the storage and media service capabilities of a large number of home devices distributed across a home network as lightweight CDN (Content Delivery Network) nodes, and leveraging global scheduling and load balancing strategies, HCDN provides users with more efficient content download, playback, and transmission services. With its low cost and strong scalability, HCDN is well-suited to handling burst traffic during peak CDN traffic periods, complementing traditional CDNs.
[0003] However, HCDN faces a key challenge in practical application: home broadband terminals reside within the private network of the home gateway, making it difficult for servers or user terminals on the public network to directly access them. This makes private network penetration a pressing issue. Existing private network penetration methods all have varying degrees of flaws. For example, the public network address announcement method wastes public IP address resources, poses security risks, and requires high configuration requirements. The P2P method also requires strong protocol compatibility, significant service response latency, and certain requirements for the home gateway's NAT type.
[0004] Therefore, it is necessary to propose a more efficient, secure and easy-to-implement private network penetration solution to meet the needs of data transmission. Summary of the Invention
[0005] The main purpose of this application is to provide a data transmission method, device, storage medium and computer program product, aiming to provide a more efficient, secure and easy-to-implement private network penetration solution to improve the efficiency, security and stability of data transmission.
[0006] To achieve the above objectives, an embodiment of the present application provides a data transmission method, which is applied to a proxy server and includes:
[0007] In response to receiving a target service request sent by a user terminal, sending a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request;
[0008] receiving target content data sent by the at least one broadband terminal;
[0009] The target content is sent to the user terminal according to the target content data.
[0010] An embodiment of the present application further provides a data transmission method, which is applied to at least one broadband terminal, and includes:
[0011] In response to receiving a target content collection request sent by a proxy server, sending target content data to the proxy server according to the target content collection request, so that the proxy server can send the target content to the user terminal according to the target content data;
[0012] The target content collection request is sent by the proxy server to the at least one broadband terminal according to the target service request sent by the user terminal.
[0013] An embodiment of the present application further provides a data transmission method, which is applied to a user terminal and includes:
[0014] Sending a target service request to a proxy server, so that the proxy server sends a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request, and the proxy server sends the target content to the user terminal according to the target content data;
[0015] Receive the target content sent by the proxy server.
[0016] An embodiment of the present application further provides a data transmission device, which is applied to a proxy server and includes:
[0017] a response module, configured to, in response to receiving a target service request sent by a user terminal, send a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request;
[0018] A receiving module, configured to receive target content data sent by the at least one broadband terminal;
[0019] The returning module is configured to send the target content to the user terminal according to the target content data.
[0020] An embodiment of the present application further provides a network device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data transmission method described above.
[0021] An embodiment of the present application further provides a storage medium, characterized in that the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data transmission method described above are implemented.
[0022] The embodiments of the present application disclose a data transmission method, apparatus, device, medium and product. The data transmission method is applied to a proxy server. The method includes: in response to receiving a target service request sent by a user terminal, sending a target content collection request to at least one home broadband terminal according to the target service request, so that the at least one home broadband terminal sends target content data to the proxy server according to the target content collection request; receiving the target content data sent by the at least one home broadband terminal, and sending the target content to the user terminal according to the target content data, providing an easy-to-implement private network penetration solution, solving the problem that the home broadband terminal is in a private network environment and is difficult to be directly accessed by the user terminal of the public network through the proxy server, thereby improving the efficiency, security and stability of data transmission between the user terminal and the home broadband terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of the system configuration in an embodiment of the present application;
[0024] Figure 2 This is a schematic diagram of an exemplary flow chart of a data transmission method in an embodiment of the present application;
[0025] Figure 3 This is a schematic diagram of the first interaction process in an embodiment of the present application;
[0026] Figure 4 This is a schematic diagram of the second interaction process in an embodiment of the present application;
[0027] Figure 5 is another exemplary flow chart of the data transmission method in an embodiment of the present application;
[0028] Figure 6 This is a schematic diagram of the first request process in an embodiment of the present application;
[0029] Figure 7 This is a schematic diagram of the interaction timing of the first request process in an embodiment of the present application;
[0030] Figure 8 This is a schematic diagram of the second request process in an embodiment of the present application;
[0031] Figure 9 Schematic diagram of the interaction sequence of the second request process in an embodiment of the present application;
[0032] Figure 10Schematic diagram of another exemplary flow chart of the data transmission method in the embodiment of the present application;
[0033] Figure 11 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;
[0034] Figure 12 Schematic diagram of the device structure of the hardware operating environment involved in the data transmission method in the embodiment of the present application.
[0035] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0036] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0037] Technical terms involved in the embodiments of this application:
[0038] CDN: Content Delivery Network, content distribution network;
[0039] HCDN: Home Content Delivery Network, home content delivery network;
[0040] P2P: Peer-to-Peer, point-to-point;
[0041] PCDN: P2P Content Delivery Network, peer-to-peer content distribution network;
[0042] UPnP: Universal Plug and Play;
[0043] IP: Internet Protocol;
[0044] NAT: Network Address Translation;
[0045] STUN: Session Traversal Utilities for NAT, NAT session traversal utility;
[0046] TURN: Traversal Using Relays around NAT, using relays to penetrate NAT;
[0047] UDP: User Datagram Protocol, User Datagram Protocol;
[0048] TCP: Transmission Control Protocol;
[0049] HTTP: Hypertext Transfer Protocol, Hypertext Transfer Protocol;
[0050] RTSP: Real-Time Streaming Protocol, real-time streaming protocol;
[0051] HG: Home Gateway;
[0052] DHT: Distributed Hash Table, distributed hash;
[0053] HCM: Home CDN Control Management, home terminal CDN control management;
[0054] HTSN: Home Termination Server Node, home terminal service node;
[0055] RAG: Retrieval-Augmented Generation, retrieval information enhancement.
[0056] Traditional CDNs cache and distribute content by deploying servers in local IDCs to improve user access speed and user experience. However, with the explosive growth of internet content, especially data-heavy content like videos and large files, traditional CDNs face challenges such as high costs and heavy server load. Operators need to continuously increase the number of servers and bandwidth resources to meet demand, significantly increasing operating costs.
[0057] Against this backdrop, HCDN technology has emerged. Its core concept is to use a large number of home terminals distributed across the home broadband network as lightweight CDN nodes, providing a certain level of storage capacity for small amounts of media content. Simultaneously, each home broadband terminal also provides a certain level of media service capabilities. Combined with global scheduling and load balancing strategies, HCDN can provide media content download, playback, and transmission services to end-user terminals. Compared to traditional CDNs, HCDN offers the advantages of low cost and strong scalability. It is well-suited for handling bursts of CDN traffic during peak periods, complementing traditional CDNs.
[0058] When a home broadband terminal is located in the private network of a home gateway and needs to access a server on the public network, the home gateway converts the private network address of the home broadband terminal into a public network address and then sends it to the server on the public network. Conversely, servers or user terminals on the public network cannot directly access the home broadband terminal and require an auxiliary communication method. Existing methods for accessing home broadband terminals in private networks include:
[0059] Method 1: Public network address declaration method. The home broadband user applies to the operator for a public network address and configures the public network address on the home broadband terminal. The service process on the home broadband terminal listens for CDN services on the port of the public network address, and then uses UPnP to declare the public network address to the external address of the home gateway, exposing the public network address of the home broadband terminal to the public network. The user terminal establishes a communication connection with the public network address and port of the home broadband terminal, transmits data based on the link, and obtains CDN services. Problems with this method include: each home broadband terminal needs to be allocated a public network IP address, and the number of home broadband terminals is large, resulting in serious waste of public network IP address resources; the public network address of the home broadband terminal is exposed to the public network, posing a major security risk; the home gateway where the home broadband terminal is located needs to enable UPnP declaration, and its firewall needs to open ports, which has high configuration requirements.
[0060] Method 2, the P2P method, involves the user terminal and home broadband terminal being located within different home gateways and in separate private networks, preventing direct intercommunication. Instead, STUN and TURN servers must be established on the public network to assist in establishing a communication link between the user terminal and home broadband terminal. The user terminal and home broadband terminal first attempt to drill a hole using the STUN server. If successful, they establish a mutually accessible network link and transmit data over this link. If the hole drilling fails, communication packets between the user terminal and home broadband terminal are relayed by the TURN server before being sent to the other party. Issues with this method include: both STUN and TURN require UDP encapsulation for transmission, requiring both the client and server applications on the user terminal to adapt to the media transmission protocols between the user terminal and home broadband terminal, such as HTTP / RTSP / WebSocket, making it highly invasive. The communication link negotiation process between the user terminal and home broadband terminal involves multiple steps, resulting in significant service response latency for the user terminal and a poor user experience. Furthermore, certain requirements apply to the NAT type of the home gateway, such as symmetric NAT, which can easily cause communication link negotiation failure.
[0061] In an embodiment of the present application, a solution is proposed, which introduces a proxy server with a public network address at the edge of the network to assist user terminals and home broadband terminals in the private network under the home gateway to establish a communication link and transmit media data. Regardless of whether there is a user terminal requesting a service, all home broadband terminals initiate a link establishment request with the public network address of the proxy server as the target address. When the message of the link establishment request passes through the home gateway, the home gateway maps the address of the home broadband terminal to a public network address and then forwards it to the proxy server, thereby establishing a first link between the home broadband terminal and the proxy server, and the home broadband terminal continuously sends heartbeat messages based on the link. The proxy server maintains the links of all home broadband terminals and continuously updates the online and load status of the home broadband terminals based on the heartbeat messages. Thereafter, the user terminal establishes a second media transmission link with the proxy server with the public network address of the proxy server as the target address, and uses the standard media transmission protocol on the link to send a media service request containing a media content identifier to the proxy server. The proxy server selects a home broadband terminal with media content, an active first link, and available transmission capacity from among the home broadband terminals with established first links, based on the media content identifier in the media service request of the user terminal. The proxy server then initiates a media content collection request to the home broadband terminal on the first link. The home broadband terminal returns the corresponding media content based on the media content collection request sent by the proxy server. The proxy server finally returns the media content to the user terminal, and the user terminal further processes the media content returned by the proxy server.
[0062] For example, the data transmission system used in the embodiments of the present application mainly includes the following three parts:
[0063] User terminal: A user terminal requesting HCDN services can be a mobile phone, tablet, computer, embedded device, IoT terminal, etc. User terminals can access the system through wireless networks, IoT networks, home broadband networks, etc. to obtain HCDN services. Depending on the network access method, user terminals can directly access the public network with a public network address, or they can access the public network after address mapping through a home broadband gateway;
[0064] Home broadband terminals: These are media content carriers on the HCDN network, located within the user's home broadband gateway. These terminals are numerous and can include computers, tablets, mobile phones, optical modems, set-top boxes, smart speakers, and other devices. These terminals have certain storage and network transmission capabilities and can provide certain service capabilities after installing special media service applications.
[0065] Network side: mainly provides communication assistance or communication proxy servers between user terminals and home broadband terminals, including STUN servers, TURN servers and the proxy server proposed in this invention. These servers have public network addresses and are used to assist user terminals and home broadband terminals in establishing communication links and transmitting media data.
[0066] Exemplarily, the interaction process between the various parts mainly includes:
[0067] The home broadband terminal under the home gateway actively establishes a first link to the proxy server. The link penetrates the home gateway, and the home gateway maps the private network address of the home broadband terminal in the link to a public network address.
[0068] The user terminal establishes a second link with the proxy server and initiates a media service request;
[0069] The proxy server selects one or more home broadband terminals that have established first links, and initiates a media content collection request to the home broadband terminal based on the first links of the selected home broadband terminals;
[0070] The home broadband terminal sends the media content data to the proxy server via the first link;
[0071] The proxy server sends the media content data returned by the home broadband terminal to the user terminal through the second link of the user terminal.
[0072] For example, the main network communication technologies involved in the embodiments of this application include:
[0073] UPnP: Universal Plug and Play, based on the TCP / IP protocol suite, employs a distributed, decentralized architecture. Devices on the network send specific messages to announce their presence and capabilities. Other devices can listen to these messages and discover newly added devices. Furthermore, devices can interact with each other using a standard message format to control device functions and query their status.
[0074] NAT: Network Address Translation Protocol, used to convert IP addresses between the internal network and the external network of a local area network. It allows multiple devices in a local area network to access the Internet using the same public IP address, converting the private IP addresses of the internal network into legal public IP addresses, thereby saving public IP address resources;
[0075] STUN: Session Traversal Tool for NAT protocol, primarily used to help devices behind NAT discover their public IP address and port number, as well as the NAT type. In P2P applications, a STUN server helps two peers traverse their respective home broadband gateways and establish a communication link.
[0076] TURN: NAT traversal relay technology. When the STUN protocol cannot directly establish a connection, the TURN protocol acts as a relay solution, providing data forwarding services for devices behind NAT to enable communication between devices.
[0077] Media Transfer Protocol: CDN nodes use a seven-layer network protocol to provide file downloading, file transfer, and media playback to user terminals. Typical protocols include HTTP, RTSP, and WebSocket.
[0078] Reference Figure 1 , Figure 1 Schematic diagram of the system structure in the embodiment of the present application. Figure 1 As shown, the data transmission system in the embodiment of the present application mainly includes:
[0079] 101 User terminal: This refers to a terminal device used by an end user of the HCDN service. Specific forms include, but are not limited to, computers, tablets, mobile phones, optical modems, set-top boxes, smart speakers, etc. In this application, the user terminal is capable of establishing a second link with the proxy server and using a standard media transfer protocol to send media content download / play / transfer requests to the proxy server, receive media content data returned by the proxy server, and perform further service presentation of the media content, such as file storage and video playback.
[0080] 102 Proxy server, used to assist the communication link between the user terminal and the home broadband terminal, transmit media data, and is deployed at the edge of the network. In the present invention, the proxy server is required to have a public network address, and it listens to the user terminal's link establishment / service request and the home broadband terminal's link establishment / registration request on the public network address; it can passively accept link requests from multiple home broadband terminals, establish a first link with the home broadband terminal, and receive the home broadband terminal's heartbeat request on this link, and update the home broadband terminal's online status and load status information; it can also receive link establishment requests from user terminals, establish a second link with the user terminal, and receive media content service requests sent by the user terminal using a standard media transmission protocol on this link, select a suitable home broadband terminal based on the media content identifier in the request, and send a media content collection request in reverse on the first link of the home broadband terminal. After receiving the media content, it returns the media content to the user terminal; corresponding to the terminal CDN specification, the proxy server is the Proxy module in the HCM subsystem;
[0081] One or more home broadband sites, each of which includes:
[0082] 103 Home Broadband Gateway: The entrance for home broadband user terminals to access the public network, usually a home router or optical modem device. Its main functions include address translation, port mapping, network isolation and security protection. In this application, the home gateway is connected to the public network through a public network address and to the home broadband terminal through a private network address. It can accept the request message for the home broadband terminal to access the public network, and convert the private network address in the message for the home broadband terminal to access the public network into a public network address, and forward it to the proxy server on the public network. Conversely, the home gateway can map the public network address of the media content collection request sent by the proxy server to the home broadband terminal into a private network address and send it to the home broadband terminal.
[0083] 104 Home broadband terminal: a terminal device under the home gateway, which has certain computing, storage and network service capabilities, and can be a computer, tablet, mobile phone, optical modem, set-top box, smart speaker, etc., which can store media content and provide external media transmission services. There can be many home broadband terminal devices under a home broadband node, and their forms can also be different. In the present invention, the home broadband terminal: has a private network address, and can access the public network through the home gateway; supports the media content injection interface, and can consume a certain amount of storage space to store part or all of the media content; can actively initiate device registration to the proxy server, establish a first link, and periodically send a keep-alive heartbeat based on the first link; at the same time, the home broadband terminal can also accept the media content collection request sent from the proxy server on the first link, and return the corresponding media content data to the proxy service on the first link according to the media content identifier in the request; corresponding to the terminal CDN technical specification, the home broadband terminal corresponds to the HTSN module.
[0084] Reference Figure 2 , Figure 2 This is an exemplary flow chart of a data transmission method in an embodiment of the present application. Figure 2 As shown, the data transmission method includes:
[0085] Step S10, in response to receiving a target service request sent by a user terminal, sending a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request;
[0086] Exemplarily, before the step of sending a target content collection request to at least one broadband terminal according to the target service request, the method further includes:
[0087] At least one broadband terminal that meets preset conditions is selected or determined according to the target service request.
[0088] Exemplarily, the step of selecting or determining at least one broadband terminal that meets a preset condition according to the target service request includes:
[0089] From the home broadband terminals storing the content data corresponding to the target service request, a home broadband terminal that is online and has a transmission capability is selected or determined as the at least one home broadband terminal that meets the preset condition.
[0090] Exemplarily, the step of sending a target content collection request to at least one broadband terminal according to the target service request includes:
[0091] According to the target service request, the target content collection request is sent to at least one broadband gateway corresponding to the at least one broadband terminal through the first link, so that the at least one broadband gateway maps the public network address of the target content collection request to a private network address and then sends it to the at least one broadband terminal.
[0092] Exemplarily, before the step of sending the target content collection request to at least one broadband gateway corresponding to the at least one broadband terminal through the first link according to the target service request, the method further includes:
[0093] receiving a first link establishment request sent by the at least one broadband terminal;
[0094] The first link is established according to the first link establishment request.
[0095] Exemplarily, after the step of establishing the first link according to the first link establishment request, the method further includes:
[0096] Heartbeat information sent by the at least one broadband terminal through the first link is received, wherein the heartbeat information is used to determine an online status and / or transmission capability of the at least one broadband terminal.
[0097] Reference Figure 3 , Figure 3 This is a schematic diagram of the first interactive process in the embodiment of the present application, such as Figure 3 As shown, the method for establishing a first link between a home broadband terminal and a proxy server in an embodiment of the present application mainly includes:
[0098] 201. The proxy server listens to the home broadband terminal link establishment request on the public network address and the first port;
[0099] 202. The home broadband terminal actively establishes a first connection with the proxy service, using the private network address of its own network as the source address and the public network address and first port of the proxy server as the destination address and destination port. This connection establishment process consists of multiple uplink messages and downlink messages. The uplink message transmission process is shown in steps 203-204, and the downlink message transmission process is shown in steps 205-206.
[0100] Exemplarily, the uplink message transmission process between the home broadband terminal and the proxy server mainly includes:
[0101] 203. The home broadband gateway receives the uplink message sent by the home broadband terminal and maps the source address and port in the uplink message into a large network address;
[0102] 204. The home broadband gateway forwards the uplink message after address mapping to the proxy server.
[0103] Exemplarily, the downlink message transmission process between the home broadband terminal and the proxy server mainly includes:
[0104] 205. The proxy server receives the uplink message forwarded by the home broadband gateway, obtains the source address and source port in the uplink message, and returns a downlink message to the home gateway using the source address and source port as the destination address and destination port;
[0105] 206. The home gateway maps the destination address and port in the downlink message returned by the proxy server to the private network address and port of the home broadband terminal, and then sends the message to the home broadband terminal;
[0106] 207. After penetrating the home gateway and the proxy server to establish a first link, the home broadband terminal periodically sends a heartbeat message to the proxy server on the first link. The protocols of the heartbeat message include but are not limited to HTTP / RTSP / WebSocket, etc. The heartbeat message contains the identification and / or load status of the home broadband terminal; optionally, the heartbeat message can also be composed of several uplink messages and several downlink messages. The transmission process of the uplink message is 203-204, and the transmission process of the downlink message is 205-206.
[0107] Step S20, receiving target content data sent by the at least one broadband terminal;
[0108] Exemplarily, the step of receiving the target content data sent by the at least one broadband terminal includes:
[0109] The target content data after address mapping sent by the at least one broadband gateway is received through the first link, wherein the target content data after address mapping is obtained by the at least one broadband network mapping the private network address of the target content data sent by the at least one broadband terminal to a public network address.
[0110] Exemplarily, the step of sending a target content collection request to at least one broadband terminal according to the target service request includes:
[0111] In a case where the content data corresponding to the target service request exists on different home broadband terminals, data segmentation is performed on the content data corresponding to the target service request to determine a plurality of slice data;
[0112] The target content collection requests corresponding to the plurality of slice data are respectively sent to the home broadband terminals corresponding to the plurality of slice data.
[0113] Exemplarily, the step of determining target content according to the target content data includes:
[0114] The target content data sent by the different home broadband terminals are sorted and reorganized to obtain the target content.
[0115] For example, in an embodiment of the present application, after receiving a media content playback / download / transfer request from a user terminal, the proxy server can divide the media content into multiple media content slices based on the requested media content identifier and content size, select a different home broadband terminal for each media content slice, and send a reverse request to collect the media content slices on a first link to the selected multiple home broadband terminals, downloading the media content slices in parallel; each home broadband terminal only returns the media content slice data to the proxy server. When the proxy server collects the media content slices returned by different home broadband terminals, it sorts and reorganizes the media content slice data and returns the media content slices to the user terminal on a second link.
[0116] For example, as the computing power of terminals increases, home broadband terminals have the ability to run audio and video algorithms and AI reasoning algorithms. These algorithms can be run on terminals distributed across various NAT gateways, and then aggregated for external audio analysis, video parsing, RAG knowledge retrieval, etc. The proxy-based method for accessing private network home broadband terminal devices proposed in the embodiments of this application is also applicable to deploying algorithm programs in private network home broadband terminals and providing algorithm services to user terminals accessing the public network.
[0117] Exemplarily, when there is no at least one broadband terminal that meets the preset conditions or the reception of the target content data fails, the proxy server sends a back-to-source request to the proxy server's upper-level content distribution network and / or source station, so that the upper-level content distribution network and / or source station sends the target content data to the proxy server according to the back-to-source request; and receives the target content data sent by the upper-level content distribution network and / or source station.
[0118] For example, after a proxy server receives a service request for media content from a user terminal, the following situations may occur: First, there is no home broadband terminal online with available transmission capacity and the requested media content; Second, the proxy server sends a media content collection request back to the home broadband terminal, but the collection fails. In these cases, the proxy server can further backtrack to the upper-level CDN node or origin site, download the media content, and then return it to the user terminal. In this way, the user terminal can be successfully served even when the HCDN is unavailable, without the user terminal being aware of it.
[0119] Step S30: sending target content to the user terminal according to the target content data.
[0120] Exemplarily, the step of sending target content to the user terminal according to the target content data includes:
[0121] Target content is determined according to the target content data, and the target content is sent to the user terminal via the second link.
[0122] Exemplarily, in response to receiving a target service request sent by a user terminal, before the step of sending a target content collection request to at least one broadband terminal according to the target service request, the method further includes:
[0123] A target service request sent by the user terminal is received through the second link.
[0124] Exemplarily, before the step of receiving the target service request sent by the user terminal through the second link, the method further includes:
[0125] receiving a second link establishment request sent by the user terminal;
[0126] The second link is established according to the second link establishment request.
[0127] Exemplarily, the step of receiving, through the second link, the target service request sent by the user terminal includes:
[0128] The target service request after address mapping is received from the user home broadband gateway corresponding to the user terminal through the second link, wherein the target service request after address mapping is obtained by the user home broadband gateway mapping the private network address of the target service request sent by the user terminal to a public network address.
[0129] Exemplarily, the step of sending the target content to the user terminal through the second link includes:
[0130] The target content is sent to the user home broadband gateway corresponding to the user terminal through the second link, so that the user home broadband gateway maps the public network address of the target content to a private network address and then sends it to the user terminal.
[0131] Reference Figure 4 , Figure 4 This is a schematic diagram of the second interaction process in the embodiment of the present application, such as Figure 4 As shown, the method for a user terminal to download media content provided in an embodiment of the present application includes:
[0132] 301. The proxy service listens on the second port on the public network address and receives the link establishment and media service requests from the user terminal;
[0133] 302. The user terminal establishes a second link to the proxy server using the public network address of the proxy server as the target address and the second port of the proxy server as the target port, and initiates a media service request based on the link. The requested protocol includes but is not limited to HTTP / RTSP, and includes a media content identifier;
[0134] 303. The proxy server receives the media service request from the user terminal and selects a suitable home broadband terminal from among the home broadband terminals that have established the first link, are in normal status, and have the media content slice available, based on the media content identifier in the request;
[0135] 304. The proxy server sends a media content collection request in reverse on the first link of the selected home broadband terminal, and sends a media content download request to the home gateway, wherein the media content collection request carries media content information, and the media content information includes at least a media content identifier;
[0136] 305. The home broadband gateway performs reverse address translation on the media content collection request sent by the proxy server, maps the public network address of the proxy server to the private network address of the home broadband terminal, and forwards the media content slicing request to the home broadband terminal;
[0137] 306. The home broadband terminal receives the media content download request on the first link, reads the relevant media content from the local storage according to the identifier of the media content, and returns it to the home broadband gateway;
[0138] 307. The home broadband gateway maps the address of the media content slice message returned by the home broadband terminal into a large network address and forwards it to the proxy server;
[0139] 308. When the proxy server receives the media content data returned by the home broadband terminal, it returns the media content data to the user terminal via the second link;
[0140] Illustratively, in the media content collection interaction process between the proxy server and the home broadband terminal 304-308, each request message and response consists of multiple uplink messages and downlink messages. The transmission process of the uplink message refers to 203-204, and the transmission process of the downlink message is 205-206.
[0141] This embodiment adopts the above-mentioned scheme, specifically, by the proxy server responding to the target service request sent by the user terminal, sending a target content collection request to at least one home broadband terminal according to the target service request, so that the at least one home broadband terminal sends the target content data to the proxy server according to the target content collection request; receiving the target content data sent by the at least one home broadband terminal, and sending the target content to the user terminal according to the target content data, thereby providing an easy-to-implement private network penetration solution, and solving the problem that the home broadband terminal is in a private network environment and is difficult to be directly accessed by the user terminal of the public network through the proxy server, thereby improving the efficiency, security and stability of data transmission between the user terminal and the home broadband terminal.
[0142] Reference Figure 5 , Figure 5 This is another exemplary flow chart of the data transmission method in the embodiment of the present application. Figure 5 As shown, the data transmission method includes:
[0143] Step A10, in response to receiving a target content collection request sent by a proxy server, sending target content data to the proxy server according to the target content collection request, so that the proxy server can send the target content to the user terminal according to the target content data;
[0144] The target content collection request is sent by the proxy server to the at least one broadband terminal according to the target service request sent by the user terminal.
[0145] Exemplarily, in response to receiving a target content collection request sent by a proxy server, before the step of sending target content data to the proxy server according to the target content collection request, at least one broadband terminal further includes:
[0146] Receiving, through at least one broadband gateway, the target content collection request sent by the proxy server through the first link, and mapping, through the at least one broadband gateway, the public network address of the target content collection request to a private network address, thereby obtaining the target content collection request after address mapping;
[0147] Receive the target content collection request after address mapping sent by the at least one broadband gateway.
[0148] Exemplarily, before the step of at least one broadband terminal receiving the target content collection request sent by the proxy server through the first link through at least one broadband gateway, the step further includes:
[0149] Sending a first link establishment request to the proxy server, so that the proxy server establishes the first link according to the first link establishment request.
[0150] Exemplarily, after the step of sending the first link establishment request to the proxy server so that the proxy server establishes the first link according to the first link establishment request, the method further includes:
[0151] The heartbeat information corresponding to the at least one broadband terminal is sent to the proxy server via the first link, wherein the heartbeat information is used to determine the online status and / or transmission capability of the at least one broadband terminal.
[0152] Exemplarily, the step of sending target content data to the proxy server according to the target content collection request includes:
[0153] determining the target content data according to the target content collection request;
[0154] Sending the target content data to the at least one broadband gateway, so that the at least one broadband gateway maps the private network address of the target content data to a public network address, thereby obtaining the target content data after address mapping;
[0155] The target content data after address mapping is sent to the proxy server through the at least one broadband gateway.
[0156] Exemplarily, the step of determining the target content data according to the target content collection request includes:
[0157] Retrieving the target content data according to the target content collection request; and / or,
[0158] Knowledge base information is retrieved according to the target content collection request, and the retrieved information is integrated into the target content data through at least one model.
[0159] For example, in the embodiment of the present application, media data can be transmitted through a communication link established between a user terminal and a home broadband terminal, or an algorithm program deployed in the home broadband terminal can be used to provide algorithm services to a user terminal connected to a public network.
[0160] Reference Figure 6 , Figure 6 This is a schematic diagram of the first request process in an embodiment of the present application, such as Figure 6As shown, the user terminal is a terminal device (such as a mobile phone) that needs to download the media content vod.mp4. The proxy server is the HCDN traffic entrance and is the central node responsible for request distribution and content integration. The public network address is IP1. The proxy server can request media data from multiple home broadband sites at the same time, where home broadband gateway 1 is the address translation device of the first home broadband network, and set-top box 1 is the home broadband terminal device deployed in home broadband network 1; home broadband gateway 2 is the address translation device of the second home broadband network, and set-top box 2 is the home broadband terminal device deployed in home broadband network 2. Before the proxy server sends a target content collection request to the home broadband terminal, it first divides the media content vod.mp4 to be downloaded into two slices. The media content data corresponding to slice 1 is stored in set-top box 1, and the media content data corresponding to slice 2 is stored in set-top box 2.
[0161] Reference Figure 7 , Figure 7 This is a schematic diagram of the interaction sequence of the first request process in the embodiment of the present application, such as Figure 7 As shown in Figure 2, the implementation process of media data request mainly includes the following stages:
[0162] Initialization phase:
[0163] 501. The proxy server starts port monitoring on Port1 and Port2 on IP1;
[0164] Node registration phase:
[0165] 502. Set-top box 1 actively establishes a long connection (first connection) with proxy server IP1 and Port1;
[0166] 503. Set-top box 1 periodically sends heartbeat packets to the proxy server to maintain the connection;
[0167] 504. Set-top box 2 actively establishes a long connection (first connection) with proxy server IP1 and Port1;
[0168] 505. Set-top box 2 periodically sends heartbeat packets to the proxy server to maintain the connection;
[0169] Content request phase:
[0170] 506. The user terminal establishes a new connection (second connection) with the proxy server IP1 and Port2 and sends an HTTP media download request;
[0171] Request processing phase:
[0172] 507. The proxy server divides the request content into two data slices, and selects set-top box 1 as the backend service node for slice 1, and selects set-top box 2 as the backend service node for slice 2;
[0173] Slice 1 transmission process:
[0174] 508. The proxy server sends a data collection request for slice 1 to home broadband gateway 1 based on the first link of set-top box 1;
[0175] 509. The home broadband gateway 1 performs address translation on the request and forwards it to the set-top box 1;
[0176] 510. Set-top box 1 reads the data packet of slice 1 and returns it to home broadband gateway 1;
[0177] 511. Home broadband gateway 1 performs address translation on the data of slice 1 and forwards it back to the proxy server;
[0178] Slice 2 transmission process:
[0179] 512. The proxy server sends a data collection request for slice 2 to home broadband gateway 2 based on the first link of set-top box 2;
[0180] 513. Home broadband gateway 2 performs address translation on the request and forwards it to set-top box 2;
[0181] 514. Set-top box 2 generates a data packet for slice 2 and returns it to home broadband gateway 2;
[0182] 515. Home broadband gateway 2 performs address translation on the slice 2 data and forwards it back to the proxy server;
[0183] Data integration phase:
[0184] 516. The proxy server reassembles and merges the two received data slices to restore them into vod.mp4;
[0185] Result return stage:
[0186] 517. The proxy server returns the complete media content data of vod.mp4 to the mobile phone;
[0187] The mobile phone receives the complete content and saves it locally as a vod.mp4 file, completing the file download process.
[0188] Reference Figure 8 , Figure 8 This is a schematic diagram of the second request process in an embodiment of the present application, such as Figure 8As shown, the user terminal is a terminal device that needs to request AI services, which contains the Prompt program; the proxy server is the access entrance for the home broadband AI RAG service, responsible for providing RAG knowledge question and answer services, and its public network address is IP1; the proxy server can request AI services from multiple home broadband sites at the same time, home broadband gateway 1 is the address translation device of the first home broadband network, personal computer 1 is a personal computer deployed in home broadband network 1 (i.e., home broadband terminal), with a GPU card, and DeepSeekR1 deployed; home broadband gateway 2 is the address translation device of the second home broadband network, personal computer 2 is a personal computer deployed in home broadband network 2 (i.e., home broadband terminal), with a GPU card, and DeepSeekR1 deployed.
[0189] Reference Figure 9 , Figure 9 This is a schematic diagram of the interaction timing of the second request process in an embodiment of the present application, such as Figure 9 As shown in the figure, the implementation process of AI service request mainly includes:
[0190] 701. The proxy server starts port monitoring on Port1 and Port2 on IP1;
[0191] 702. Personal computer 1 actively establishes a persistent connection (first connection) with proxy server IP1 and Port1;
[0192] 703. PC 1 periodically sends heartbeat packets to the proxy server to maintain the connection;
[0193] 704. Personal computer 2 actively establishes a persistent connection (first connection) with proxy server IP1 and Port1;
[0194] 705. PC 2 periodically sends heartbeat packets to the proxy server to maintain the connection;
[0195] 706. The prompt program establishes a new connection (second connection) with the proxy server IP1 and Port2 and sends a RAG request, such as "What is RAG and what are its application scenarios?";
[0196] 707. The proxy server selects PC 1 to provide RAG service for the Prompt program based on the online and load status of PC 1 and PC 2;
[0197] 708. The proxy server sends a RAG request to the home broadband gateway 1 based on the first link of the personal computer 1;
[0198] 709. Home broadband gateway 1 performs address translation on the request and forwards it to personal computer 1;
[0199] 710. PC 1 invokes the local DeepSeek R1 service to generate RAG search results. "RAG (Retrieval-Augmented Generation) is an AI framework that combines retrieval technology with generative models. It first retrieves relevant information from an external knowledge base and then integrates it into the output using a model. Its advantage lies in overcoming model knowledge limitations and improving content accuracy and timeliness."
[0200] 711. The home broadband gateway 1 performs address translation on the RAG search result and forwards it back to the proxy server;
[0201] 712. The proxy server returns the media content data of the RAG search result to the Prompt program, and the Prompt program displays the RAG search result on the console.
[0202] This embodiment adopts the above-mentioned scheme, specifically, at least one home broadband terminal responds to a target content collection request received from a proxy server, and sends target content data to the proxy server according to the target content collection request, so that the proxy server can send the target content to the user terminal according to the target content data; wherein, the target content collection request is sent by the proxy server to the at least one home broadband terminal according to the target service request sent by the user terminal, providing an easy-to-implement private network penetration solution, and solves the problem that the home broadband terminal is in a private network environment and is difficult to be directly accessed by the user terminal of the public network through the proxy server, thereby improving the efficiency, security and stability of data transmission between the user terminal and the home broadband terminal.
[0203] Reference Figure 10 , Figure 10 This is another exemplary flow chart of the data transmission method in the embodiment of the present application, as shown in FIG. Figure 10 As shown, the data transmission method includes:
[0204] Step B10: Sending a target service request to a proxy server, so that the proxy server sends a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request, and the proxy server sends the target content to the user terminal according to the target content data;
[0205] Step B20: receiving the target content sent by the proxy server.
[0206] Exemplarily, the step of sending the target service request to the proxy server includes:
[0207] The target service request is sent to the proxy server via a second link.
[0208] Exemplarily, before the step of sending the target service request to the proxy server via the second link, the step further includes:
[0209] Send a second link establishment request to the proxy server, so that the proxy server establishes the second link according to the second link establishment request.
[0210] Exemplarily, the step of sending the target service request to the proxy server through the second link includes:
[0211] The target service request is sent to the user home broadband gateway corresponding to the user terminal through the second link, so that the user home broadband gateway maps the private network address of the target service request to a public network address, obtains the target service request after address mapping, and sends the target service request after address mapping to the proxy server through the second link.
[0212] Exemplarily, the step of receiving the target content sent by the proxy server includes:
[0213] The target content sent by the proxy server is received through the user home broadband gateway, so that the user home broadband gateway maps the public network address of the target content to a private network address and then sends it to the user terminal.
[0214] For example, as one embodiment, the network between the user terminal and the proxy server can be direct. As another embodiment, the user terminal can also be within the home broadband gateway. The user terminal sets a private network address. When the user terminal initiates a media content download request to the proxy server, it can be mapped to a public network address through the home broadband gateway where the user terminal is located, and then reach the proxy server.
[0215] For example, a home broadband site may have multiple levels of NAT gateways. The first link established by the home broadband terminal to the proxy server may be the first-level NAT described in the embodiment of the present application, that is, the home broadband terminal can access the public network by penetrating one home gateway; or it may be a multi-level NAT gateway. In this case, the first link between the home broadband terminal and the proxy server needs to go through multiple mappings of the multi-level NAT gateway before accessing the public network. This method is a simple transformation of the method in the embodiment of the present application and also falls within the scope of protection of the present application.
[0216] For example, in an embodiment of the present application, a proxy server with an independent public IP is set up on the public Internet, and the media transmission protocol between the user terminal and the proxy server is a standard non-tunnel encapsulation protocol such as RTSP / HTTP / RTMP / WebRTC, rather than the UDP encapsulated STUN / TURN protocol.
[0217] For example, when there is no end-user terminal accessing, there is still a long communication link between the home broadband terminal and the proxy server, and there are a large number of long links of the home broadband terminals on the proxy server.
[0218] For example, when an end user terminal accesses the proxy server, the proxy server does not establish a new link with the home broadband terminal, but downloads content in the opposite direction on the existing home broadband terminal link, and data transmission traffic exists in the direction from the home broadband terminal to the proxy server.
[0219] For example, both the user terminal and the home broadband terminal can directly sense the existence of the proxy server and actively initiate registration or media download requests to the proxy server. Therefore, the user terminal and the home broadband terminal can directly adopt conventional media transmission protocols (HTTP / RTSP / WebSocket), etc. The software on the user terminal and the home broadband terminal is non-invasive and can use a conventional protocol stack.
[0220] For example, the home broadband terminal in the embodiments of this application can use a private network address to communicate with the proxy server after penetrating the home gateway, thus reducing public IP usage. Because the link between the home broadband terminal and the proxy server is initiated by the home broadband terminal, it can be used even in scenarios with strict NAT type restrictions. No UPnP declaration is required on the home broadband gateway, and no firewall with specific ports enabled is required, making this highly practical. Furthermore, the home broadband terminal uses a private network address and only accepts communications from the proxy server, minimizing security risks.
[0221] For example, since the communication link between the proxy server and the home broadband terminal is established in advance, when the media service / download request of the user terminal arrives, the proxy server directly selects the existing home broadband terminal link and directly initiates a download request for the media content in the reverse direction. Compared with the prior art process that requires P2P STUN hole punching to establish a link and TURN relay, the response of the user terminal to download media content in this application is more timely, and the user experience is better.
[0222] For example, when a user terminal requests to download relatively large content, compared to the prior art, the program on the user terminal side needs to split the file into multiple files, trigger multiple download transactions, and then reassemble them, making it impossible to complete the download of the large file in one download transaction. The method in the embodiment of the present application divides the file downloaded by the user into multiple slices through the proxy server, and downloads different slices in parallel from multiple home broadband terminals, and then reassembles and returns them to the user terminal. On the one hand, the user terminal can complete the download of the large file in one download transaction, and on the other hand, the proxy server downloads different slices from multiple home broadband terminals in parallel, which can increase the download rate.
[0223] This embodiment uses the above-mentioned scheme, specifically by sending a target service request to a proxy server through a user terminal, so that the proxy server sends a target content collection request to at least one home broadband terminal according to the target service request, so that the at least one home broadband terminal sends target content data to the proxy server according to the target content collection request, and the proxy server sends the target content to the user terminal according to the target content data; receiving the target content sent by the proxy server, provides an easy-to-implement private network penetration solution, and solves the problem that the home broadband terminal is in a private network environment and is difficult to be directly accessed by the user terminal of the public network through the proxy server, thereby improving the efficiency, security and stability of data transmission between the user terminal and the home broadband terminal.
[0224] Reference Figure 11 , Figure 11 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application. Figure 11 The data transmission device shown can be used to perform part or all of the functions of the method embodiment described in the above embodiment. Figure 11 As shown, the data transmission device is applied to a proxy server, and the device includes:
[0225] a response module 10 configured to, in response to receiving a target service request sent by a user terminal, send a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request;
[0226] The receiving module 20 is configured to receive target content data sent by the at least one broadband terminal;
[0227] The returning module 30 is configured to send target content to the user terminal according to the target content data.
[0228] The present application provides a data transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the data transmission method in the above-mentioned embodiment one.
[0229] Reference below Figure 12, which shows a schematic diagram of the structure of a data transmission device suitable for implementing the embodiments of the present application. The data transmission device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 12 The data transmission device shown is merely an example and should not limit the functions and scope of use of the embodiments of the present application.
[0230] like Figure 12 As shown, the data transmission device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory 1002 or programs loaded from a storage device 1003 into a random access memory 1004. Random access memory 1004 also stores various programs and data required for the operation of the data transmission device. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems may be connected to the input / output interface 1006: an input device 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the data transmission device to communicate with other devices wirelessly or wired to exchange data. Although the figures show a data transmission device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0231] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are performed.
[0232] The data transmission device provided in this application utilizes the data transmission method of the above-described embodiment to solve the technical problem of data transmission. Compared with the prior art, the beneficial effects of the data transmission device provided in this application are the same as those of the data transmission method provided in the above-described embodiment. Other technical features of the data transmission device are the same as those disclosed in the above-described embodiment and are not further described here.
[0233] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0234] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0235] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, wherein the computer-readable program instructions are used to execute the data transmission method in the above embodiment.
[0236] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. 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 thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0237] The computer-readable storage medium may be included in the data transmission device, or may exist independently without being assembled into the data transmission device.
[0238] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the data transmission device, the data transmission device: responds to receiving a target service request sent by a user terminal, sends a target content collection request to at least one home broadband terminal according to the target service request, so that the at least one home broadband terminal sends the target content data to the proxy server according to the target content collection request; receives the target content data sent by the at least one home broadband terminal, and sends the target content to the user terminal according to the target content data, providing an easy-to-implement private network penetration solution, which solves the problem that the home broadband terminal is in a private network environment and is difficult to be directly accessed by the user terminal of the public network through the proxy server, thereby improving the efficiency, security and stability of data transmission between the user terminal and the home broadband terminal.
[0239] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0240] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0241] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0242] The computer-readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned data transmission method, thereby resolving the technical issues surrounding data transmission. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the data transmission method provided in the aforementioned embodiments, and are not further elaborated here.
[0243] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned data transmission method when executed by a processor.
[0244] The computer program product provided in this application can solve the technical problem of data transmission. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the data transmission method provided in the above embodiment, which will not be repeated here.
[0245] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A data transmission method, characterized in that: The data transmission method is applied to a proxy server, and the method includes: In response to receiving a target service request sent by a user terminal, sending a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request; receiving target content data sent by the at least one broadband terminal; The target content is sent to the user terminal according to the target content data.
2. The data transmission method according to claim 1, wherein: Before the step of sending the target content collection request to at least one broadband terminal according to the target service request, the step further includes: At least one broadband terminal that meets preset conditions is selected or determined according to the target service request.
3. The data transmission method according to claim 2, wherein: The step of selecting or determining at least one broadband terminal that meets preset conditions according to the target service request includes: From the home broadband terminals storing the content data corresponding to the target service request, a home broadband terminal that is online and has a transmission capability is selected or determined as the at least one home broadband terminal that meets the preset condition.
4. The data transmission method according to claim 2, wherein: Before the step of sending the target content to the user terminal according to the target content data, the step further includes: In the absence of at least one broadband terminal that meets the preset conditions or in the case where reception of the target content data fails, sending a back-to-source request to the upper-level content distribution network and / or the source station of the proxy server, so that the upper-level content distribution network and / or the source station sends the target content data to the proxy server according to the back-to-source request; Receive target content data sent by the upper-level content distribution network and / or the source station.
5. The data transmission method according to claim 1, wherein: Also include at least one of the following: The step of sending a target content collection request to at least one broadband terminal according to the target service request includes: Sending the target content collection request to at least one broadband gateway corresponding to the at least one broadband terminal through a first link according to the target service request, so that the at least one broadband gateway maps the public network address of the target content collection request to a private network address and then sends it to the at least one broadband terminal; The step of receiving target content data sent by the at least one broadband terminal includes: Receiving, via the first link, target content data after address mapping sent by the at least one broadband gateway, wherein the target content data after address mapping is obtained by the at least one broadband gateway by mapping a private network address of the target content data sent by the at least one broadband terminal to a public network address; Before the step of sending a target content collection request to at least one broadband terminal according to the target service request in response to receiving the target service request sent by the user terminal, the method further includes: receiving a target service request sent by the user terminal through a second link; The step of sending the target content to the user terminal according to the target content data includes: Target content is determined according to the target content data, and the target content is sent to the user terminal via the second link.
6. The data transmission method according to claim 5, wherein: Before the step of sending the target content collection request to at least one broadband gateway corresponding to the at least one broadband terminal through the first link according to the target service request, the step further includes: receiving a first link establishment request sent by the at least one broadband terminal; The first link is established according to the first link establishment request.
7. The data transmission method according to claim 6, wherein: After the step of establishing the first link according to the first link establishment request, the following step further comprises: Heartbeat information sent by the at least one broadband terminal through the first link is received, wherein the heartbeat information is used to determine an online status and / or transmission capability of the at least one broadband terminal.
8. The data transmission method according to claim 5, wherein: The step of sending a target content collection request to at least one broadband terminal according to the target service request includes: In a case where the content data corresponding to the target service request exists on different home broadband terminals, data segmentation is performed on the content data corresponding to the target service request to determine a plurality of slice data; The target content collection requests corresponding to the plurality of slice data are respectively sent to the home broadband terminals corresponding to the plurality of slice data.
9. The data transmission method according to claim 8, wherein: The step of determining the target content according to the target content data comprises: The target content data sent by the different home broadband terminals are sorted and reorganized to obtain the target content.
10. The data transmission method according to claim 5, wherein: Before the step of receiving the target service request sent by the user terminal through the second link, the step further includes: receiving a second link establishment request sent by the user terminal; The second link is established according to the second link establishment request.
11. The data transmission method according to claim 5, wherein: Also include at least one of the following: The step of receiving the target service request sent by the user terminal through the second link includes: Receiving, through the second link, a target service request after address mapping sent by a user home broadband gateway corresponding to the user terminal, wherein the target service request after address mapping is obtained by the user home broadband gateway by mapping a private network address of the target service request sent by the user terminal to a public network address; The step of sending the target content to the user terminal through the second link includes: The target content is sent to the user home broadband gateway corresponding to the user terminal through the second link, so that the user home broadband gateway maps the public network address of the target content to a private network address and then sends it to the user terminal.
12. A data transmission method, characterized in that: The data transmission method is applied to at least one broadband terminal, and the method includes: In response to receiving a target content collection request sent by a proxy server, sending target content data to the proxy server according to the target content collection request, so that the proxy server can send the target content to the user terminal according to the target content data; The target content collection request is sent by the proxy server to the at least one broadband terminal according to the target service request sent by the user terminal.
13. The data transmission method according to claim 12, wherein: Before the step of sending target content data to the proxy server according to the target content collection request in response to receiving the target content collection request sent by the proxy server, the step further includes: Receiving, through at least one broadband gateway, the target content collection request sent by the proxy server through the first link, and mapping, through the at least one broadband gateway, the public network address of the target content collection request to a private network address, thereby obtaining the target content collection request after address mapping; Receive the target content collection request after address mapping sent by the at least one broadband gateway.
14. The data transmission method according to claim 13, wherein: Before the step of receiving, through at least one broadband gateway, the target content collection request sent by the proxy server through the first link, the following step is further included: Sending a first link establishment request to the proxy server, so that the proxy server establishes the first link according to the first link establishment request.
15. The data transmission method according to claim 14, wherein: After the step of sending the first link establishment request to the proxy server so that the proxy server establishes the first link according to the first link establishment request, the step further includes: The heartbeat information corresponding to the at least one broadband terminal is sent to the proxy server via the first link, wherein the heartbeat information is used to determine the online status and / or transmission capability of the at least one broadband terminal.
16. The data transmission method according to claim 13, wherein: The step of sending target content data to the proxy server according to the target content collection request includes: determining the target content data according to the target content collection request; Sending the target content data to the at least one broadband gateway, so that the at least one broadband gateway maps the private network address of the target content data to a public network address, thereby obtaining the target content data after address mapping; The target content data after address mapping is sent to the proxy server through the at least one broadband gateway.
17. The data transmission method according to claim 16, wherein: The step of determining the target content data according to the target content collection request includes: Retrieving the target content data according to the target content collection request; and / or, Knowledge base information is retrieved according to the target content collection request, and the retrieved information is integrated into the target content data through at least one model.
18. A data transmission method, characterized in that: The data transmission method is applied to a user terminal, and the method includes: Sending a target service request to a proxy server, so that the proxy server sends a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request, and the proxy server sends the target content to the user terminal according to the target content data; Receive the target content sent by the proxy server.
19. The data transmission method according to claim 18, wherein: The step of sending the target service request to the proxy server includes: The target service request is sent to the proxy server via a second link.
20. The data transmission method according to claim 19, wherein: Before the step of sending the target service request to the proxy server via the second link, the step also includes Send a second link establishment request to the proxy server, so that the proxy server establishes the second link according to the second link establishment request.
21. The data transmission method according to claim 19, wherein: Also include at least one of the following: The step of sending the target service request to the proxy server via the second link includes: Sending the target service request to the user home broadband gateway corresponding to the user terminal through the second link, so that the user home broadband gateway maps the private network address of the target service request to a public network address, obtains the target service request after address mapping, and sends the target service request after address mapping to the proxy server through the second link; The step of receiving the target content sent by the proxy server includes: The target content sent by the proxy server is received through the user home broadband gateway, so that the user home broadband gateway maps the public network address of the target content to a private network address and then sends it to the user terminal.
22. A data transmission device, characterized in that: The data transmission device is applied to a proxy server, and the device includes: a response module, configured to, in response to receiving a target service request sent by a user terminal, send a target content collection request to at least one broadband terminal according to the target service request, so that the at least one broadband terminal sends target content data to the proxy server according to the target content collection request; A receiving module, configured to receive target content data sent by the at least one broadband terminal; The returning module is configured to send the target content to the user terminal according to the target content data.
23. A network device, characterized in that: The network device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the data transmission method according to any one of claims 1 to 21.
24. A storage medium, characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 21 are implemented.
25. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the data transmission method according to any one of claims 1 to 21 are implemented.