# US 2025/0220072 A1 · Resource allocation method and related apparatus

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

- Number: US 2025/0220072 A1
- Document ID: US20250220072A1
- Status: Published application
- Kind: A1
- Application number: 19/083,742
- Filed: 2025-03-19
- Published: 2025-07-03
- Earliest claimed: 2023-03-14
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Bo WU
- Web page: https://patentgrep.com/patent/US20250220072A1

## CPC

- H04L 67/1008: based on parameters of servers, e.g. available memory or workload (monitoring of computer activity G06F11/30)
- H04L 67/1012: based on compliance of requirements or conditions with available server resources
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An apparatus, computer-readable memory storing a program, and method for resource allocation, including receiving a traffic flow request packet from a first terminal, the packet comprising one or more pieces of historical content traffic flow consumption time length information; determining a content traffic flow consumption time length feature of the first terminal based on the one or more pieces of historical content traffic flow consumption time length information; obtaining a load quantity of one or more servers based on the content traffic flow consumption time length feature meeting a historical content traffic flow consumption time length condition, each second terminal having a content traffic flow consumption time length greater than a first traffic flow time length threshold; determining a server with the least load quantity among the one or more servers as a first server; and transmitting the traffic flow request packet to the first server.

## Claims

### Claim 1

A resource allocation method, performed by a computer device, the method comprising:
receiving a traffic flow request packet transmitted by a first terminal, the traffic flow request packet comprising one or more pieces of historical content traffic flow consumption time length information;
determining a content traffic flow consumption time length feature of the first terminal based on the historical content traffic flow consumption time length information;
obtaining a load quantity of one or more servers based on the content traffic flow consumption time length feature meeting a historical content traffic flow consumption time length condition;
wherein the load quantity of each server is determined based on a number of second terminals accessing each server, each second terminal has a content traffic flow consumption time length greater than a first traffic flow time length threshold;
determining a server with a least load quantity among the one or more servers as a first server; and
transmitting the traffic flow request packet to the first server.

### Claim 2 (depends on 1)

The resource allocation method according to claim 1,
wherein the traffic flow request packet comprises content identifier information,
the method further comprising:
obtaining stored content and definition of the content in the one or more servers based on the content traffic flow consumption time length feature not meeting the historical content traffic flow consumption time length condition;
determining a second server from the one or more servers based on the content identifier information, wherein the second server stores content that matches to-be-processed content based on the content identifier information and has lower definition than a definition threshold; and
transmitting the traffic flow request packet to the second server.

### Claim 3 (depends on 2)

The resource allocation method according to claim 2, further comprising:
obtaining definition information of to-be-processed content stored in the second server;
adding, based on the second server storing at least two pieces of to-be-processed content with different definition, a definition mark to the traffic flow request packet;
transmitting a traffic flow request packet comprising the definition mark to the second server, wherein the definition mark indicates the second server to transmit to-be-processed content that has lower definition than the definition threshold to the first terminal; and
transmitting the traffic flow request packet to the second server based on the definition of all the to-be-processed content lower than the definition threshold.

### Claim 4 (depends on 2)

The resource allocation method according to claim 2, further comprising:
periodically obtaining the content stored in the one or more servers and the definition of the content.

### Claim 5 (depends on 1)

The resource allocation method according to claim 1,
wherein the content traffic flow consumption time length feature is an average consumption time length value,
wherein the historical content traffic flow consumption time length condition is met based on the average consumption time length value being greater than a historical content traffic flow consumption time length threshold.

### Claim 6 (depends on 1)

The resource allocation method according to claim 1,
wherein the traffic flow request packet comprises key information and message verification information,
the method further comprising:
verifying the one or more pieces of historical content traffic flow consumption time length information based on the key information and the message verification information; and
obtaining, based on successful verification, the content traffic flow consumption time length feature with calculation based on the one or more pieces of historical content traffic flow consumption time length information.

### Claim 7 (depends on 6)

The resource allocation method according to claim 6, further comprising:
computing message authentication information of the one or more pieces of historical content traffic flow consumption time length information based on the key information; and
determining that verification succeeds based on the message authentication information matching the message verification information, or that verification fails based on the message authentication information not matching the message verification information.

### Claim 8 (depends on 6)

The resource allocation method according to claim 6, wherein the content traffic flow consumption time length feature is the average consumption time length value, the method further comprising:
decrypting the one or more pieces of historical content traffic flow consumption time length information based on the key information;
obtaining one or more pieces of historical content traffic flow consumption time length data;
calculating an average value of the one or more pieces of historical content traffic flow consumption time length data; and
obtaining the content traffic flow consumption time length feature.

### Claim 9 (depends on 6)

The resource allocation method according to claim 6, further comprising:
obtaining, based on unsuccessful verification, a packet quantity of traffic flow request packets that are already received from the one or more servers;
determining a server with a smallest packet quantity in the one or more servers as a third server; and
transmitting the traffic flow request packet to the third server.

### Claim 10 (depends on 1)

The resource allocation method according to claim 1, further comprising:
receiving a load quantity packet from the one or more servers;
parsing the load quantity; and
obtaining the load quantity of one or more servers.

### Claim 11 (depends on 1)

The resource allocation method according to claim 1,
wherein the traffic flow request packet comprises a traffic flow request timestamp,
the method further comprising:
receiving a traffic flow close packet from the first terminal, the traffic flow close packet comprising a traffic flow close timestamp;
computing content traffic flow consumption time length data based on the traffic flow request timestamp and the traffic flow close timestamp;
encrypting the content traffic flow consumption time length data based on key information;
obtaining content traffic flow consumption time length information;
generating a content traffic flow consumption time length packet based on the content traffic flow consumption time length information and the key information; and
transmitting the content traffic flow consumption time length packet to the first terminal;
wherein the first terminal:
verifies the content traffic flow consumption time length information based on the key information; and
stores the content traffic flow consumption time length information and the key information in the content traffic flow consumption time length packet based on successful verification, or deletes the content traffic flow consumption time length packet based on unsuccessful verification.

### Claim 12 (depends on 1)

The resource allocation method according to claim 1, further comprising:
periodically obtaining the load quantity of the one or more servers.

### Claim 13

A resource allocation apparatus, comprising:
at least one memory configured to store program code; and
at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:
receiving code configured to cause at least one of the at least one processor to receive a traffic flow request packet transmitted by a first terminal, the traffic flow request packet comprising one or more pieces of historical content traffic flow consumption time length information;
determining code configured to cause at least one of the at least one processor to determine a content traffic flow consumption time length feature of the first terminal based on the one or more pieces of historical content traffic flow consumption time length information;
obtaining code configured to cause at least one of the at least one processor to obtain a load quantity of one or more servers based on the content traffic flow consumption time length feature meeting a historical content traffic flow consumption time length condition,
wherein the load quantity of each server is determined based on a number of second terminals accessing each server, each second terminal has a content traffic flow consumption time length greater than a first traffic flow time length threshold,
wherein the determining code is further configured to cause at least one of the at least one processor to determine a server with a least load quantity among the one or more servers as a first server; and
transmission code configured to cause at least one of the at least one processor to transmit the traffic flow request packet to the first server.

### Claim 14 (depends on 13)

The resource allocation apparatus according to claim 13,
wherein the traffic flow request packet further comprises content identifier information,
wherein the obtaining code is further configured to cause at least one of the at least one processor to obtain stored content and definition of the content in the one or more servers based on the content traffic flow consumption time length feature not meeting the historical content traffic flow consumption time length condition,
wherein the determining code is further configured to cause at least one of the at least one processor to determine a second server from the one or more servers based on the content identifier information,
wherein the second server stores content that matches to-be-processed content based on the content identifier information and has lower definition than a definition threshold, and
wherein the transmission code is further configured to cause at least one of the at least one processor to transmit the traffic flow request packet to the second server.

### Claim 15 (depends on 14)

The resource allocation apparatus according to claim 14,
wherein the obtaining code is further configured to cause at least one of the at least one processor to obtain definition of to-be-processed content stored in the second server,
wherein the program code further comprises:
adding code configured to cause at least one of the at least one processor to add, based on the second server storing at least two pieces of to-be-processed content with different definition, a definition mark to the traffic flow request packet,
wherein the transmission code is further configured to cause at least one of the at least one processor to transmit a traffic flow request packet comprising the definition mark to the second server,
wherein the definition mark indicates the second server to transmit to-be-processed content that has lower definition than the definition threshold to the first terminal, and
wherein the transmission code is further configured to cause at least one of the at least one processor to transmit the traffic flow request packet to the second server based on the definition of all the to-be-processed content lower than the definition threshold.

### Claim 16 (depends on 14)

The resource allocation apparatus according to claim 14,
wherein the obtaining code is further configured to cause at least one of the at least one processor to periodically obtain the stored content and definition of the content in the one or more servers.

### Claim 17 (depends on 13)

The resource allocation apparatus according to claim 13,
wherein the content traffic flow consumption time length feature comprises an average consumption time length value, and
wherein the historical content traffic flow consumption time length condition is met based on the average consumption time length value being greater than a historical consumption time length threshold.

### Claim 18 (depends on 13)

The resource allocation apparatus according to claim 13,
wherein the traffic flow request packet further comprises key information and verification information, and
wherein the program code further comprises:
verification code configured to cause at least one of the at least one processor to verify the one or more pieces of historical content traffic flow consumption time length information based on the key information and the verification information,
wherein the determining code is further configured to cause at least one of the at least one processor to determine the content traffic flow consumption time length feature based on the one or more pieces of historical content traffic flow consumption time length information and based on successful verification.

### Claim 19 (depends on 18)

The resource allocation apparatus according to claim 18,
wherein the program code further comprises:
computation code configured to cause at least one of the at least one processor to compute authentication information of the one or more pieces of historical content traffic flow consumption time length information based on the key information;
wherein the determining code is further configured to cause at least one of the at least one processor to:
determine that the verification succeeds based on the message authentication information matching the message verification information, or that the verification fails based on the message authentication information not matching the message verification information.

### Claim 20

A non-transitory computer-readable storage medium storing computer code which, when executed by at least one processor, causes the at least one processor to at least:
receive a traffic flow request packet transmitted by a first terminal, the traffic flow request packet comprising one or more pieces of historical content traffic flow consumption time length information;
determine a content traffic flow consumption time length feature of the first terminal based on the one or more pieces of historical content traffic flow consumption time length information;
obtaining a load quantity of one or more servers based on the content traffic flow consumption time length feature meeting a historical content traffic flow consumption time length condition,
wherein the load quantity of each server is determined based on a number of second terminals accessing each server, each second terminal has a content traffic flow consumption time length greater than a first traffic flow time length threshold;
determine a server with a least load quantity among the one or more servers as a first server; and
transmit the traffic flow request packet to the first server.
