Network request transmission method and apparatus, device, storage medium, and program product

CN119652976BActive Publication Date: 2026-09-22TENCENT MUSIC ENTERTAINMENT TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411584740.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2026-09-22
Estimated Expiration
2044-11-07

AI Technical Summary

Technical Problem

然而,终端与服务器的网络连接可能因为各种原因无法触达,如链路过载、丢包过高、时延过大、运营商限制等原因,尤其是在终端处于弱网环境下时,经常会出现网络请求发送失败的情况,从而导致终端的网络请求成功率较低

Benefits of technology

[0018]上述网络请求传输方法、装置、设备、存储介质和程序产品,在目标终端启动后,目标终端向服务器发送设备获取请求;接收服务器响应于设备获取请求反馈的至少一个目标转发设备的设备连接信息;针对每个目标转发设备,基于目标转发设备的设备连接信息,创建目标终端与目标转发设备之间的连接通道,获得目标转发设备对应的第一连接通道;通过预先创建的目标终端与服务器之间的第二连接通道,向服务器发送网络请求;若网络请求发送失败,则针对每个目标转发设备,通过目标转发设备对应的第一连接通道向目标转发设备发送网络请求,以使目标转发设备通过预先创建的目标转发设备与服务器之间的第三连接通道,将网络请求转发至服务器。相较于传统的网络请求传输方案,本申请通过在目标终端在启动后向服务器请求目标转发设备,以构建终端请求服务器的第二个传输通道。一旦目标终端向服务器发送网络请求失败,则可以通过向目标转发设备发送网络请求,并通过目标转发设备将网络请求转发至服务器,可以提升终端的网络请求成功率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652976B_ABST
    Figure CN119652976B_ABST
Patent Text Reader

Abstract

The application relates to a network request transmission method and device, equipment, a storage medium and a program product. The method comprises the following steps: sending a device acquisition request to a server after starting a target terminal; receiving device connection information of at least one target forwarding device fed back by the server in response to the device acquisition request; for each target forwarding device, creating a connection channel between the target terminal and the target forwarding device based on the device connection information of the target forwarding device, and obtaining a first connection channel corresponding to the target forwarding device; sending a network request to the server through a second connection channel between the target terminal and the server; if the network request fails to be sent, sending the network request to the target forwarding device through the first connection channel corresponding to each target forwarding device, so that the target forwarding device forwards the network request to the server through a third connection channel between the target forwarding device and the server. The method can improve the network request success rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a network request transmission method, apparatus, device, storage medium, and program product. Background Technology

[0002] When a terminal running a target application requests services from a server that provides those services, it needs to send a network request to the server. In traditional technologies, the terminal typically sends the network request to the server through a connection channel between the terminal and the server to request the relevant services. However, the network connection between the terminal and the server may fail for various reasons, such as link overload, high packet loss, excessive latency, or carrier restrictions. This is especially true when the terminal is in a weak network environment, where network request transmission often fails, resulting in a low success rate for network requests. Summary of the Invention

[0003] Therefore, it is necessary to provide a network request transmission method, apparatus, device, storage medium, and program product that can improve the success rate of network requests, addressing the aforementioned technical problems.

[0004] In a first aspect, this application provides a network request transmission method, applied to a target terminal; the method includes:

[0005] After the target terminal is started, it sends a device acquisition request to the server;

[0006] Receive device connection information of at least one target forwarding device in response to the device's acquisition request from the server;

[0007] For each target forwarding device, based on the device connection information of the target forwarding device, a connection channel is created between the target terminal and the target forwarding device to obtain the first connection channel corresponding to the target forwarding device;

[0008] A network request is sent to the server through a pre-created second connection channel between the target terminal and the server;

[0009] If the network request fails to be sent, then for each target forwarding device, the network request is sent to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the network request to the server through the pre-created third connection channel between the target forwarding device and the server.

[0010] Secondly, this application provides a network request transmission apparatus for use with a target terminal; the apparatus includes:

[0011] The sending module is used to send a device acquisition request to the server after the target terminal is started.

[0012] The receiving module is configured to receive device connection information of at least one target forwarding device from the server in response to the device's acquisition request;

[0013] A creation module is used to create a connection channel between the target terminal and the target forwarding device for each target forwarding device based on the device connection information of the target forwarding device, and obtain the first connection channel corresponding to the target forwarding device;

[0014] The sending module is further configured to send a network request to the server through a pre-created second connection channel between the target terminal and the server; if the network request fails to be sent, the network request is sent to each target forwarding device through a first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the network request to the server through a pre-created third connection channel between the target forwarding device and the server.

[0015] Thirdly, this application provides a target terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the various method embodiments of this application.

[0016] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the various method embodiments of this application.

[0017] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the steps in the various method embodiments of this application.

[0018] The aforementioned network request transmission method, apparatus, device, storage medium, and program product, after the target terminal starts up, involves the target terminal sending a device acquisition request to the server; receiving device connection information of at least one target forwarding device from the server in response to the device acquisition request; for each target forwarding device, creating a connection channel between the target terminal and the target forwarding device based on the device connection information of the target forwarding device, obtaining a first connection channel corresponding to the target forwarding device; sending a network request to the server through a pre-created second connection channel between the target terminal and the server; if the network request fails to send, then for each target forwarding device, sending a network request to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the network request to the server through a pre-created third connection channel between the target forwarding device and the server. Compared to traditional network request transmission schemes, this application constructs a second transmission channel for the terminal to request the server by requesting the target forwarding device from the server after the target terminal starts up. If the target terminal fails to send a network request to the server, it can send a network request to the target forwarding device, which then forwards the network request to the server, thereby improving the success rate of the terminal's network request. Attached Figure Description

[0019] Figure 1 This is a diagram illustrating the application environment of a network request transmission method in one embodiment.

[0020] Figure 2 This is a flowchart illustrating a network request transmission method in one embodiment;

[0021] Figure 3 This is a flowchart illustrating a network request transmission method in another embodiment;

[0022] Figure 4 This is a structural block diagram of a network request transmission device in one embodiment;

[0023] Figure 5 This is an internal structure diagram of the target terminal in one embodiment. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0025] The network request transmission method provided in this application can be applied to, for example... Figure 1In the application environment shown, after the target terminal 102 starts up, it can send a device acquisition request to the server 104 and receive device connection information of at least one target forwarding device 106 from the server 104 in response to the device acquisition request. For each target forwarding device 106, the target terminal 102 can create a connection channel between itself and the target forwarding device 106 based on the device connection information of the target forwarding device 106, thus obtaining a first connection channel corresponding to the target forwarding device 106. The target terminal 102 can send a network request to the server 104 through a pre-created second connection channel between itself and the server 104. If the network request fails to be sent, for each target forwarding device 106, the target terminal 102 can send a network request to the target forwarding device 106 through the first connection channel corresponding to the target forwarding device 106, so that the target forwarding device 106 can forward the network request to the server 104 through a pre-created third connection channel between itself and the server 104.

[0026] In one embodiment, such as Figure 2 As shown, a network request transmission method is provided, applied to a target terminal; it includes the following steps:

[0027] Step 202: After the target terminal starts up, send a device acquisition request to the server.

[0028] The device acquisition request is used to request device connection information from the server for the target forwarding device. This device connection information includes the target forwarding device's IP (Internet Protocol) address and its connection type information. The connection type information describes whether the target forwarding device and the target terminal can be directly connected.

[0029] Specifically, after the target terminal is started, it can create a second connection channel between itself and the server. Then, the target terminal can send a device acquisition request to the server through this second connection channel.

[0030] Step 204: Receive device connection information of at least one target forwarding device from the server in response to the device acquisition request.

[0031] Specifically, the server corresponds to multiple candidate forwarding devices. The server can receive a device acquisition request sent by the target terminal, and in response to the device acquisition request, select at least one target forwarding device from the multiple candidate forwarding devices corresponding to the server. Then, the server can send the device connection information of the selected target forwarding device to the target terminal, and the target terminal can receive the device connection information of at least one target forwarding device fed back by the server in response to the device acquisition request.

[0032] In one embodiment, in response to a device acquisition request, the server may select a target forwarding device from a plurality of candidate forwarding devices corresponding to the server. Then, the server may send the device connection information of the selected target forwarding device to the target terminal, and the target terminal may receive the device connection information of the target forwarding device fed back by the server in response to the device acquisition request.

[0033] In one embodiment, in response to a device acquisition request, the server may select multiple target forwarding devices from a pool of candidate forwarding devices corresponding to the server. The server may then send the device connection information of these selected target forwarding devices to the target terminal, which can receive the device connection information of the multiple target forwarding devices as a response to the device acquisition request. Thus, because there are multiple target forwarding devices, even if some of them fail to successfully forward the network request to the server for various reasons, others can still successfully forward the network request, further improving the success rate of network requests from the terminal.

[0034] Step 206: For each target forwarding device, based on the device connection information of the target forwarding device, create a connection channel between the target terminal and the target forwarding device to obtain the first connection channel corresponding to the target forwarding device.

[0035] Step 208: Send a network request to the server through a pre-created second connection channel between the target terminal and the server.

[0036] Specifically, after the target terminal starts up, it can establish a second connection channel between itself and the server. The target terminal can then send network requests to the server through this second connection channel. It can be understood that if the network request is successfully sent to the server through this second connection channel, the target forwarding device will not be activated to forward the network request. If the network request fails to be sent to the server through this second connection channel, the target forwarding device will be activated to forward the network request.

[0037] Step 210: If the network request fails to be sent, then for each target forwarding device, a network request is sent to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the network request to the server through the pre-created third connection channel between the target forwarding device and the server.

[0038] In one embodiment, if sending a network request to the server via the second connection channel between the target terminal and the server fails, then for each target forwarding device, the target terminal can send a network request to that target forwarding device via the first connection channel corresponding to that target forwarding device. The target forwarding device can receive the network request and forward it to the server via a pre-established third connection channel between the target forwarding device and the server. It can be understood that the third connection channel between the target forwarding device and the server is created immediately after the target forwarding device is started.

[0039] In the aforementioned network request transmission method, after the target terminal starts up, it sends a device acquisition request to the server; receives device connection information of at least one target forwarding device from the server in response to the device acquisition request; for each target forwarding device, based on the device connection information of the target forwarding device, a connection channel is created between the target terminal and the target forwarding device, obtaining a first connection channel corresponding to the target forwarding device; a network request is sent to the server through a pre-created second connection channel between the target terminal and the server; if the network request fails to send, a network request is sent to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the network request to the server through a pre-created third connection channel between the target forwarding device and the server. Compared with traditional network request transmission schemes, this application constructs a second transmission channel for the terminal to request the server by requesting the target forwarding device from the server after the target terminal starts up. Once the target terminal fails to send a network request to the server, it can send a network request to the target forwarding device, and the target forwarding device forwards the network request to the server, thereby improving the success rate of the terminal's network request.

[0040] In one embodiment, the method further includes: for each target forwarding device, receiving request-response data forwarded by the target forwarding device; the request-response data is generated by the server in response to a network request and sent to the target forwarding device.

[0041] In one embodiment, after the target terminal starts up, it can send a device acquisition request to the server and receive device connection information of at least one target forwarding device from the server in response to the device acquisition request. For each target forwarding device, the target terminal can create a connection channel between itself and the target forwarding device based on the device connection information of that target forwarding device, thus obtaining a first connection channel corresponding to that target forwarding device. The target terminal can send a network request to the server through a pre-created second connection channel between itself and the server. If the network request fails to send, for each target forwarding device, the target terminal can send a network request to that target forwarding device through the first connection channel corresponding to that target forwarding device, so that the target forwarding device can forward the network request to the server through a pre-created third connection channel between itself and the server. The server can generate request-response data in response to the network request and send the request-response data to the target forwarding device. The target forwarding device can forward the request-response data to the target terminal, and the target terminal can receive the request-response data forwarded by the target forwarding device.

[0042] In the above embodiments, by forwarding the request response data generated by the server in response to the network request to the target terminal through the target forwarding device, the situation where the request response data cannot be successfully returned to the target terminal through the second connection channel between the target terminal and the server can be avoided, thereby improving the success rate of the terminal's network request.

[0043] In one embodiment, the method further includes: receiving an encryption key and a decryption key corresponding to the encryption key from the server in response to the device's acquisition request; if the network request fails to be sent, for each target forwarding device, sending a network request to the target forwarding device through a first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the network request to the server through a pre-created third connection channel between the target forwarding device and the server, including: if the network request fails to be sent, encrypting the network request using the encryption key to obtain encrypted request data; for each target forwarding device, sending encrypted request data to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the encrypted request data to the server through a pre-created third connection channel between the target forwarding device and the server; wherein, after receiving the encrypted request data, the server decrypts the encrypted request data using the decryption key to obtain the network request.

[0044] In one embodiment, after the target terminal starts up, it can send a device acquisition request to the server and receive device connection information of at least one target forwarding device from the server in response to the device acquisition request, as well as an encryption key and a decryption key corresponding to the encryption key from the server in response to the device acquisition request. For each target forwarding device, the target terminal can create a connection channel between the target terminal and the target forwarding device based on the device connection information of the target forwarding device, and obtain a first connection channel corresponding to the target forwarding device. The target terminal can send a network request to the server through a pre-created second connection channel between the target terminal and the server. If the network request fails to be sent, the target terminal can use the encryption key to encrypt the network request and obtain encrypted request data. For each target forwarding device, the target terminal can send encrypted request data to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device can forward the encrypted request data to the server through a pre-created third connection channel between the target forwarding device and the server. After receiving the encrypted request data, the server can use the decryption key to decrypt the encrypted request data and obtain the network request. The server can generate request response data in response to the network request and send the request response data to the target forwarding device. The target forwarding device can forward request and response data to the target terminal, and the target terminal can receive the request and response data forwarded by the target forwarding device.

[0045] In the above embodiments, the network request is encrypted using an encryption key agreed upon by the target terminal and the server before being sent to the target forwarding device. The target forwarding device then forwards the encrypted request data to the server, whereby the server decrypts the encrypted request data using the decryption key corresponding to the encryption key to obtain the network request. In this way, the target forwarding device can only obtain the encrypted request data, but not the network request itself, thus improving the security of network request transmission.

[0046] In one embodiment, receiving request-response data forwarded by each target forwarding device includes: receiving encrypted response data forwarded by each target forwarding device; the encrypted response data is obtained by encrypting the request-response data using an encryption key after the server generates request-response data in response to a network request; and decrypting the encrypted response data using a decryption key to obtain the request-response data.

[0047] In one embodiment, after the target terminal starts up, it can send a device acquisition request to the server and receive device connection information of at least one target forwarding device from the server in response to the device acquisition request, as well as an encryption key and a decryption key corresponding to the encryption key from the server in response to the device acquisition request. For each target forwarding device, the target terminal can create a connection channel between the target terminal and the target forwarding device based on the device connection information of the target forwarding device, and obtain a first connection channel corresponding to the target forwarding device. The target terminal can send a network request to the server through a pre-created second connection channel between the target terminal and the server. If the network request fails to be sent, the target terminal can use the encryption key to encrypt the network request and obtain encrypted request data. For each target forwarding device, the target terminal can send encrypted request data to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device can forward the encrypted request data to the server through a pre-created third connection channel between the target forwarding device and the server. After receiving the encrypted request data, the server can use the decryption key to decrypt the encrypted request data and obtain the network request. For each target forwarding device, the server can respond to a network request by generating request-response data, encrypting the request-response data using an encryption key to obtain encrypted response data, and sending the encrypted response data to the target forwarding device. The target forwarding device can then forward the encrypted response data to the target terminal. The target terminal can receive the encrypted response data forwarded by the target forwarding device, decrypt the encrypted response data using a decryption key, and obtain the request-response data.

[0048] In the above embodiments, the request-response data is encrypted using an encryption key agreed upon by the target terminal and the server before being sent to the target forwarding device. The target forwarding device then forwards the encrypted response data (which is the encrypted version of the request-response data) to the target terminal, where the target terminal uses the decryption key corresponding to the encryption key to decrypt the encrypted response data and obtain the request-response data. In this way, the target forwarding device can only obtain the encrypted response data (which is the encrypted version of the request-response data), and cannot obtain the request-response data itself, thus improving the security of request-response data transmission.

[0049] In one embodiment, the server corresponds to multiple candidate forwarding devices; at least one target forwarding device is selected by the server from multiple candidate forwarding devices based on at least one of the following: the distance between the candidate forwarding device and the target terminal, the connection type information of the candidate forwarding device, or the operator information of the candidate forwarding device; the connection type information is used to describe whether the candidate forwarding device and the target terminal can be directly connected.

[0050] In one embodiment, the server may preferentially select candidate forwarding devices as target forwarding devices if the distance between the candidate forwarding device and the target terminal is relatively short, the connection type information of the candidate forwarding device indicates that the candidate forwarding device and the target terminal can be directly connected, or the operator information of the candidate forwarding device is consistent with the operator information of the target terminal.

[0051] In the above embodiments, by selecting a target forwarding device from multiple candidate forwarding devices based on at least one of the distance between the candidate forwarding device and the target terminal, the connection type information of the candidate forwarding device, or the operator information of the candidate forwarding device, a target forwarding device with a high success rate in forwarding network requests can be selected, thereby further improving the network request success rate of the terminal.

[0052] In one embodiment, the method further includes: if the network request is successfully sent, receiving request response data fed back by the server through the second connection channel; the request response data is generated by the server in response to the network request.

[0053] In one embodiment, after the target terminal starts up, it can send a device acquisition request to the server and receive device connection information of at least one target forwarding device from the server in response to the device acquisition request. For each target forwarding device, the target terminal can create a connection channel between itself and the target forwarding device based on the device connection information of that target forwarding device, thus obtaining a first connection channel corresponding to that target forwarding device. The target terminal can send a network request to the server through a pre-created second connection channel between itself and the server. If the network request is successfully sent, the server can generate request-response data in response to the network request and send the request-response data back to the target terminal through the second connection channel between itself and the server. The target terminal can receive the request-response data sent back by the server through the second connection channel.

[0054] In the above embodiments, if the network request is successfully sent, the request response data is directly fed back to the target terminal through the second connection channel between the target terminal and the server, which can improve the transmission efficiency of the request response data.

[0055] In one embodiment, the target terminal runs the target application; at least one target forwarding device includes at least one of a third-party terminal or an edge device of the target terminal; the third-party terminal is a terminal other than the target terminal that runs the target application.

[0056] In the above embodiments, by limiting the target forwarding device to include at least one of a third-party terminal or the edge device of the target terminal, the success rate of the terminal's network request can be further improved.

[0057] In one embodiment, such as Figure 3As shown, after the target terminal starts up, it can create a second connection channel between itself and the server. Then, the target terminal can send a device acquisition request to the server through this second connection channel. The server has multiple candidate forwarding devices. The server can receive the device acquisition request from the target terminal and, in response, select at least one target forwarding device from the multiple candidate forwarding devices. The server can then send the device connection information of the selected target forwarding device, as well as the encryption key and its corresponding decryption key provided by the server in response to the device acquisition request, to the target terminal. The target terminal can receive the device connection information of at least one target forwarding device, along with the encryption and decryption keys provided by the server in response to the device acquisition request. For each target forwarding device, the target terminal can create a connection channel between itself and the target forwarding device based on its device connection information, thus obtaining a first connection channel corresponding to the target forwarding device. The target terminal can send a network request to the server through the second connection channel. If the network request fails to send, the target terminal can use the encryption key to encrypt the network request and obtain encrypted request data. For each target forwarding device, the target terminal can send encrypted request data to that device via a first connection channel. This allows the target forwarding device to forward the encrypted request data to the server via a pre-established third connection channel between the target forwarding device and the server. Upon receiving the encrypted request data, the server can decrypt it using a decryption key to obtain the network request. For each target forwarding device, the server can respond to the network request by generating request-response data, encrypting the request-response data using an encryption key to obtain encrypted response data, and sending this encrypted response data to the target forwarding device. The target forwarding device can then forward the encrypted response data to the target terminal. The target terminal can receive the encrypted response data forwarded by the target forwarding device and decrypt it using a decryption key to obtain the request-response data.

[0058] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially, these steps are not necessarily executed in that order. Unless otherwise expressly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the above embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.

[0059] In one embodiment, such as Figure 4 As shown, a network request transmission device 400 is provided, applied to a target terminal; the device specifically includes:

[0060] The sending module 402 is used to send a device acquisition request to the server after the target terminal is started;

[0061] The receiving module 404 is used to receive device connection information of at least one target forwarding device in response to the server's response to the device acquisition request;

[0062] Module 406 is used to create a connection channel between the target terminal and the target forwarding device for each target forwarding device based on the device connection information of the target forwarding device, and obtain the first connection channel corresponding to the target forwarding device.

[0063] The sending module 402 is also used to send a network request to the server through a pre-created second connection channel between the target terminal and the server; if the network request fails to be sent, a network request is sent to the target forwarding device through the first connection channel corresponding to the target forwarding device for each target forwarding device, so that the target forwarding device forwards the network request to the server through a pre-created third connection channel between the target forwarding device and the server.

[0064] In one embodiment, the receiving module 404 is further configured to receive request-response data forwarded by each target forwarding device; the request-response data is generated by the server in response to a network request and sent to the target forwarding device.

[0065] In one embodiment, the receiving module 404 is further configured to receive the encryption key and the corresponding decryption key from the server in response to the device's acquisition request; the sending module 402 is further configured to encrypt the network request using the encryption key if the network request fails to be sent, thereby obtaining the encrypted request data; for each target forwarding device, the encrypted request data is sent to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the encrypted request data to the server through the pre-created third connection channel between the target forwarding device and the server; wherein, after receiving the encrypted request data, the server decrypts the encrypted request data using the decryption key to obtain the network request.

[0066] In one embodiment, the receiving module 404 is further configured to receive, for each target forwarding device, encrypted response data forwarded by the target forwarding device; the encrypted response data is obtained by encrypting the request-response data using an encryption key after the server generates request-response data in response to a network request; and decrypting the encrypted response data using a decryption key to obtain the request-response data.

[0067] In one embodiment, the server corresponds to multiple candidate forwarding devices; at least one target forwarding device is selected by the server from multiple candidate forwarding devices based on at least one of the following: the distance between the candidate forwarding device and the target terminal, the connection type information of the candidate forwarding device, or the operator information of the candidate forwarding device; the connection type information is used to describe whether the candidate forwarding device and the target terminal can be directly connected.

[0068] In one embodiment, the receiving module 404 is further configured to receive request response data fed back by the server through the second connection channel if the network request is successfully sent; the request response data is generated by the server in response to the network request.

[0069] In one embodiment, the target terminal runs the target application; at least one target forwarding device includes at least one of a third-party terminal or an edge device of the target terminal; the third-party terminal is a terminal other than the target terminal that runs the target application.

[0070] The aforementioned network request transmission device, after the target terminal starts up, sends a device acquisition request to the server; receives device connection information of at least one target forwarding device from the server in response to the device acquisition request; for each target forwarding device, based on the device connection information of the target forwarding device, creates a connection channel between the target terminal and the target forwarding device, obtaining a first connection channel corresponding to the target forwarding device; sends a network request to the server through a pre-created second connection channel between the target terminal and the server; if the network request fails to send, for each target forwarding device, sends a network request to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the network request to the server through a pre-created third connection channel between the target forwarding device and the server. Compared with traditional network request transmission schemes, this application constructs a second transmission channel for the terminal to request the server by requesting the target forwarding device from the server after the target terminal starts up. Once the target terminal fails to send a network request to the server, it can send a network request to the target forwarding device, and the target forwarding device forwards the network request to the server, thereby improving the success rate of the terminal's network request.

[0071] Each module in the aforementioned network request transmission device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the target terminal in hardware form or independent of it, or stored in the memory of the target terminal in software form, so that the processor can call and execute the operations corresponding to each module.

[0072] In one embodiment, a target terminal is provided, the internal structure of which can be as follows: Figure 5As shown, the target terminal includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a network request transmission method. The display unit of the target terminal is used to form a visually visible image. It can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the target terminal can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the shell of the target terminal, or external keyboards, touchpads, or mice, etc.

[0073] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the target terminal to which the present application is applied. A specific target terminal may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0074] In one embodiment, a target terminal is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0075] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0076] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0077] It should be noted that the user information (including but not limited to user device connection information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0078] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0079] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0080] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A network request transmission method, characterized in that, Applied to the target terminal; the method includes: After the target terminal is started, it sends a device acquisition request to the server; The server receives device connection information of at least one target forwarding device, an encryption key, and a decryption key corresponding to the encryption key, in response to the device's acquisition request. The device connection information includes the device IP address of the target forwarding device and the connection type information of the target forwarding device. The server has multiple candidate forwarding devices. The at least one target forwarding device is selected by the server from multiple candidate forwarding devices based on at least one of the following: the distance between the candidate forwarding device and the target terminal, the connection type information of the candidate forwarding device, or the operator information of the candidate forwarding device. The connection type information describes whether the candidate forwarding device and the target terminal can be directly connected. For each target forwarding device, based on the device connection information of the target forwarding device, a connection channel is created between the target terminal and the target forwarding device to obtain the first connection channel corresponding to the target forwarding device; A network request is sent to the server through a pre-created second connection channel between the target terminal and the server; If the network request fails to be sent, the network request is encrypted using the encryption key to obtain the encrypted request data; For each target forwarding device, the request encryption data is sent to the target forwarding device through the first connection channel corresponding to the target forwarding device, so that the target forwarding device forwards the request encryption data to the server through the third connection channel between the target forwarding device and the server, which is pre-created after the target forwarding device is started; wherein, after receiving the request encryption data, the server uses the decryption key to decrypt the request encryption data and obtain the network request.

2. The method according to claim 1, characterized in that, The method further includes: For each of the target forwarding devices, the server receives request-response data forwarded by the target forwarding device; the request-response data is generated by the server in response to the network request and sent to the target forwarding device.

3. The method according to claim 2, characterized in that, The step of receiving request-response data forwarded by each of the target forwarding devices includes: For each of the target forwarding devices, the server receives encrypted response data forwarded by the target forwarding device; the encrypted response data is obtained by encrypting the request response data using the encryption key after the server generates request response data in response to the network request. The encrypted response data is decrypted using the decryption key to obtain the request response data.

4. The method according to claim 1, characterized in that, The method further includes: If the network request is successfully sent, the server receives the request response data fed back through the second connection channel; the request response data is generated by the server in response to the network request.

5. The method according to any one of claims 1 to 4, characterized in that, The target terminal runs the target application; the at least one target forwarding device includes at least one of a third-party terminal or an edge device of the target terminal; the third-party terminal is a terminal other than the target terminal that runs the target application.

6. A target terminal, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Information processing method and device

    CN106332119A

  • Power station data sending method, device, terminal, system, server, power station, electronic equipment and medium

    CN117119560A