# US 2025/0227166 A1 · Data uploading method and apparatus, device, and medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0227166 A1
- Document ID: US20250227166A1
- Status: Published application
- Kind: A1
- Application number: 18/844,904
- Filed: 2023-02-28
- Published: 2025-07-10
- Earliest claimed: 2022-03-09
- Assignees: Beijing Bytedance Network Technology Co., Ltd.
- Applicants: Beijing Bytedance Network Technology Co., Ltd.
- Inventors: Qian MA; Liyang SUN; Mingming SHEN; Hao DONG; Lei ZHAI
- Web page: https://patentgrep.com/patent/US20250227166A1

## CPC

- H04L 69/18: Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
- H04L 43/0864: Round trip delays
- H04L 43/0888: Throughput
- H04L 43/50: Testing arrangements
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present disclosure disclose a data uploading method and apparatus, a device, and a medium. The method includes: in response to a preset operation triggered by a user before uploading application data, obtaining at least two data uploading protocols; performing data uploading performance testing on each data uploading protocol on the basis of a preset performance testing means, and determining a target uploading protocol that matches with a current network on the basis of a performance testing result; and in response to an application data uploading operation triggered by the user, uploading current target application data to be uploaded on the basis of the target uploading protocol.

## Claims

### Claim 1

A data uploading method, comprising:
in response to a preset operation triggered by a user before uploading application data, obtaining at least two data uploading protocols;
based on a preset performance test mode, performing data uploading performance tests on each data uploading protocol, and based on a performance test result, determining a target uploading protocol matched with current network; and
in response to an application data uploading operation triggered by the user, and based on the target uploading protocol, uploading target application data currently to be uploaded.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the application data comprises: an audio, a video, an image or a file; and the preset operation comprises: a data collecting operation, a data importing operation or a data editing operation.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the based on a preset performance test mode, performing data uploading performance tests on each data uploading protocol, comprises:
based on the each data uploading protocol, uploading a preset data packet, and determining the performance test result corresponding to the each data uploading protocol.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the performance test result comprises: information about whether a speed test is successful, network speed information and round-trip time information.

### Claim 5 (depends on 1)

The method according to claim 1, further comprises:
in response to that the performance test is not completely completed in the case where the user triggers the application data uploading operation, determining the target uploading protocol matched with the current network based on at least two performance test results currently completed, or, determining the target uploading protocol matched with the current network based on at least one of device model information of an uploading terminal and historical uploading information of the user.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the data uploading protocol comprises: an uploading protocol based on a transmission control protocol TCP, an uploading protocol based on a user datagram protocol UDP or a self-defined uploading protocol.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the based on the target uploading protocol, uploading target application data currently to be uploaded, comprises:
in response to that the target uploading protocol is the self-defined uploading protocol, performing a configuration optimization on the self-defined uploading protocol based on a performance test result corresponding to the self-defined uploading protocol to obtain optimized target configuration information; and
based on the self-defined uploading protocol and the target configuration information, uploading the target application data currently to be uploaded.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
monitoring an uploading performance index in an uploading process of the target application data;
in response to that the uploading performance index meets a preset protocol switching condition, stopping an uploading operation, re-determining the target uploading protocol matched with the current network, and uploading remaining application data which is not uploaded currently based on re-determined target uploading protocol.

### Claim 9 (depends on 1)

The method according to claim 1, after obtaining at least two data uploading protocols, further comprising:
calling a domain name acquiring interface of a server and acquiring a currently available domain name corresponding to the each data uploading protocol.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the based on a preset performance test mode, performing data uploading performance tests on each data uploading protocol, comprises:
base on the preset performance test mode and the currently available domain name corresponding to the each data uploading protocol, performing the data uploading performance tests on the each data uploading protocol;
wherein the based on the target uploading protocol, uploading target application data currently to be uploaded, comprises:
based on the target uploading protocol and the currently available domain name corresponding to the target uploading protocol, uploading the target application data currently to be uploaded.

### Claim 11 (depends on 9)

The method according to claim 9, wherein the calling a domain name acquiring interface of a server and acquiring a currently available domain name corresponding to the each data uploading protocol, comprises:
detecting whether a current cache duration of a last available domain name corresponding to the each data uploading protocol is greater than a preset effective duration;
in response to that the current cache duration of the last available domain name corresponding to the each data uploading protocol is greater than the preset effective duration, calling the domain name acquiring interface of the server and acquiring the currently available domain name corresponding to the data uploading protocol;
in response to that the current cache duration of the last available domain name corresponding to the each data uploading protocol is less than or equal to the preset effective duration, taking the last available domain name corresponding to the data uploading protocol as the currently available domain name corresponding to the data uploading protocol.

### Claim 12

(canceled)

### Claim 13

An electronic device, comprising:
at least one processor; and
a memory, configured to store at least one program;
wherein in the case where the at least one program is executed by the at least one processor, the at least one processor is caused to realize:
in response to a preset operation triggered by a user before uploading application data, obtaining at least two data uploading protocols;
based on a preset performance test mode, performing data uploading performance tests on each data uploading protocol, and based on a performance test result, determining a target uploading protocol matched with current network; and
in response to an application data uploading operation triggered by the user, and based on the target uploading protocol, uploading target application data currently to be uploaded.

### Claim 14

A non-transitory computer-readable storage medium, on which a computer program is stored, wherein in the case where the program is executed by a processor, a following method is achieved:
in response to a preset operation triggered by a user before uploading application data, obtaining at least two data uploading protocols;
based on a preset performance test mode, performing data uploading performance tests on each data uploading protocol, and based on a performance test result, determining a target uploading protocol matched with current network; and
in response to an application data uploading operation triggered by the user, and based on the target uploading protocol, uploading target application data currently to be uploaded.

### Claim 15 (depends on 13)

The electronic device according to claim 13, wherein in the case where the at least one program is executed by the at least one processor, the at least one processor further realizes:
based on the each data uploading protocol, uploading a preset data packet, and determining the performance test result corresponding to the each data uploading protocol.

### Claim 16 (depends on 13)

The electronic device according to claim 13, wherein in the case where the at least one program is executed by the at least one processor, the at least one processor further realizes:
in response to that the performance test is not completely completed in the case where the user triggers the application data uploading operation, determining the target uploading protocol matched with the current network based on at least two performance test results currently completed, or, determining the target uploading protocol matched with the current network based on at least one of device model information of an uploading terminal and historical uploading information of the user.

### Claim 17 (depends on 13)

The electronic device according to claim 13, wherein the data uploading protocol comprises: an uploading protocol based on a transmission control protocol TCP, an uploading protocol based on a user datagram protocol UDP or a self-defined uploading protocol.

### Claim 18 (depends on 17)

The electronic device according to claim 17, wherein in the case where the at least one program is executed by the at least one processor, the at least one processor further realizes:
in response to that the target uploading protocol is the self-defined uploading protocol, performing a configuration optimization on the self-defined uploading protocol based on a performance test result corresponding to the self-defined uploading protocol to obtain optimized target configuration information; and
based on the self-defined uploading protocol and the target configuration information, uploading the target application data currently to be uploaded.

### Claim 19 (depends on 13)

The electronic device according to claim 13, wherein in the case where the at least one program is executed by the at least one processor, the at least one processor further realizes:
monitoring an uploading performance index in an uploading process of the target application data;
in response to that the uploading performance index meets a preset protocol switching condition, stopping an uploading operation, re-determining the target uploading protocol matched with the current network, and uploading remaining application data which is not uploaded currently based on re-determined target uploading protocol.

### Claim 20 (depends on 13)

The electronic device according to claim 13, wherein in the case where the at least one program is executed by the at least one processor, the at least one processor further realizes:
calling a domain name acquiring interface of a server and acquiring a currently available domain name corresponding to the each data uploading protocol.

### Claim 21 (depends on 20)

The electronic device according to claim 20, wherein in the case where the at least one program is executed by the at least one processor, the at least one processor further realizes:
base on the preset performance test mode and the currently available domain name corresponding to the each data uploading protocol, performing the data uploading performance tests on the each data uploading protocol;
wherein the based on the target uploading protocol, uploading target application data currently to be uploaded, comprises:
based on the target uploading protocol and the currently available domain name corresponding to the target uploading protocol, uploading the target application data currently to be uploaded.
