# US 10,958,581 B2 · Data transmission method and communications apparatus

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

- Number: US 10,958,581 B2
- Document ID: US10958581B2
- Status: Granted
- Kind: B2
- Application number: 15/933,316
- Filed: 2018-03-22
- Published: 2018-07-26
- Granted: 2021-03-23
- Earliest claimed: 2015-09-23
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Anni Wei; Chunshan Xiong; Xinpeng Wei
- Web page: https://patentgrep.com/patent/US10958581B2

## CPC

- H04L 47/193: at the transport layer, e.g. TCP related
- H04L 45/24: Multipath
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 69/14: Multichannel or multilink protocols
- H04L 69/161: {Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields}
- H04L 69/163: In-band adaptation of TCP data exchange; In-band control procedures
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present application provide a data transmission method and a communications apparatus. A Hypertext Transfer Protocol version 2 HTTP/2 adaptation layer is configured between an application layer and a Multipath Transmission Control Protocol MPTCP layer of a protocol stack. All frames belonging to a same HTTP/2 stream are allocated to a same MPTCP subflow for transmission, so that a data throughput is large, and system robustness is good, thereby improving HTTP/2 stream transmission performance.

## Claims

### Claim 1

A data transmission method, wherein the method is applicable to a communications apparatus, and a protocol stack of the communications apparatus comprises a Hypertext Transfer Protocol (HTTP/2) adaptation layer and a Multipath Transmission Control Protocol (MPTCP) layer, wherein the data transmission method comprises:
matching, by the HTTP/2 adaptation layer, all HTTP/2 frames belonging to a same HTTP/2 stream to a same MPTCP subflow; and
adding, by the MPTCP layer according to an instruction of the HTTP/2 adaptation layer, all the HTTP/2 frames belonging to the same HTTP/2 stream to one MPTCP subflow for transmission, wherein an MPTCP connection to which the MPTCP subflow belongs has at least one MPTCP subflow.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
identifying, by the HTTP/2 adaptation layer according to stream identifiers carried by HTTP/2 frames, that all the HTTP/2 frames belong to the same HTTP/2 stream.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
obtaining, by the HTTP/2 adaptation layer by using an interface between the HTTP/2 adaptation layer and the MPTCP layer, subflow information of the at least one MPTCP subflow that belongs to the MPTCP connection, wherein the subflow information identifies the at least one MPTCP subflow.

### Claim 4 (depends on 3)

The method according to claim 3, wherein
the subflow information comprises an MPTCP subflow identifier.

### Claim 5 (depends on 4)

The method according to claim 4, wherein
the MPTCP subflow identifier comprises address information of an MPTCP subflow; and, wherein
matching, by the HTTP/2 adaptation layer, all HTTP/2 frames belonging to the same HTTP/2 stream to the same MPTCP subflow comprises:
selecting, by the HTTP/2 adaptation layer, one MPTCP subflow according to address information of the at least one MPTCP subflow, wherein the selected MPTCP subflow carries all the HTTP/2 frames belonging to the same HTTP/2 stream; and
sending the HTTP/2 frames and the address information of the selected MPTCP subflow to the MPTCP layer; and, wherein
adding, by the MPTCP layer according to an instruction of the HTTP/2 adaptation layer, all the HTTP/2 frames belonging to the same HTTP/2 stream to the one MPTCP subflow for the transmission comprises:
adding, by the MPTCP layer, all the HTTP/2 frames belonging to the same HTTP/2 stream to the selected MPTCP subflow for transmission.

### Claim 6 (depends on 3)

The method according to claim 3, wherein information about the MPTCP subflow comprises a quantity of MPTCP subflows.

### Claim 7 (depends on 6)

The method according to claim 6, wherein
matching, by the HTTP/2 adaptation layer, all HTTP/2 frames belonging to the same HTTP/2 stream to the same MPTCP subflow comprises:
separately allocating, by the HTTP/2 adaptation layer, one MPTCP subflow identification number to each MPTCP subflow of the MPTCP subflows corresponding to the quantity of MPTCP subflows, wherein the MPTCP subflow identification number indicates a distinction between different MPTCP subflows;
making all the HTTP/2 frames belonging to the same HTTP/2 stream to correspond to one MPTCP subflow identification number; and
sending the HTTP/2 frames and the corresponding MPTCP subflow identification number to the MPTCP layer; and, wherein
adding, by the MPTCP layer according to an instruction of the HTTP/2 adaptation layer, all the HTTP/2 frames belonging to the same HTTP/2 stream to one MPTCP subflow for transmission comprises:
selecting, by the MPTCP layer, one MPTCP subflow to correspond to the MPTCP subflow identification number; and
allocating all the HTTP/2 frames belonging to the same HTTP/2 stream to the MPTCP subflow corresponding to the MPTCP subflow identification number for transmission.

### Claim 8

A communications apparatus, wherein the apparatus is configured to communicate with a peer apparatus, and comprises a processor and a memory; and
the memory is configured to store a group of program code, and the processor is configured to invoke the program code stored in the memory to match all Hypertext Transfer Protocol (HTTP/2) frames belonging to a same HTTP/2 stream to a same Multipath Transmission Control Protocol (MPTCP) subflow; and
add all the HTTP/2 frames belonging to the same HTTP/2 stream to one MPTCP subflow for transmission, wherein an MPTCP connection to which the MPTCP subflow belongs has at least one MPTCP subflow.

### Claim 9 (depends on 8)

The apparatus according to claim 8, wherein the processor is configured to invoke the program code store in the memory to:
identify, according to stream identifiers carried by HTTP/2 frames, that all the HTTP/2 frames belong to the same HTTP/2 stream.

### Claim 10 (depends on 8)

The apparatus according to claim 8, wherein the processor is configured to invoke the program code store in the memory to
obtain subflow information of at least one MPTCP subflow that belongs to the MPTCP connection, wherein the subflow information identifies the at least one MPTCP subflow.

### Claim 11 (depends on 10)

The apparatus according to claim 10, wherein
the subflow information comprises an MPTCP subflow identifier.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein
the MPTCP subflow identifier comprises address information of an MPTCP subflow; and, wherein
the processor is configured to invoke the program code store in the memory to:
select one MPTCP subflow according to address information of the at least one MPTCP subflow; and
add all the HTTP/2 frames belonging to the same HTTP/2 stream to the selected MPTCP subflow for transmission.

### Claim 13 (depends on 10)

The apparatus according to claim 10, wherein information about the MPTCP subflow comprises a quantity of MPTCP subflows.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the processor is configured to invoke the program code store in the memory to
separately allocate one MPTCP subflow identification number to each MPTCP subflow of the MPTCP subflows corresponding to the quantity of MPTCP subflows, wherein the MPTCP subflow identification number indicates a distinction between different MPTCP subflows;
make all the HTTP/2 frames belonging to the same HTTP/2 stream to correspond to one MPTCP subflow identification number;
select one MPTCP subflow to correspond to the MPTCP subflow identification number; and
allocate all the HTTP/2 frames belonging to the same HTTP/2 stream to the MPTCP subflow corresponding to the MPTCP subflow identification number for transmission.

### Claim 15

A non-transitory processor-readable medium having processor-executable instructions stored thereon for a communications apparatus, and a protocol stack of the communications apparatus comprises a Hypertext Transfer Protocol (HTTP/2) adaptation layer and a Multipath Transmission Control Protocol (MPTCP) layer,
the processor-executable instructions, when executed by a processor, for causing the apparatus to perform the following:
matching, by the HTTP/2 adaptation layer, all HTTP/2 frames belonging to a same HTTP/2 stream to a same MPTCP subflow; and
adding, by the MPTCP layer according to an instruction of the HTTP/2 adaptation layer, all the HTTP/2 frames belonging to the same HTTP/2 stream to one MPTCP subflow for transmission, wherein an MPTCP connection to which the MPTCP subflow belongs has at least one MPTCP subflow.

### Claim 16 (depends on 15)

The non-transitory processor-readable medium according to claim 15, further comprising instructions, when executed by the processor, for causing the apparatus to:
identify, by the HTTP/2 adaptation layer according to stream identifiers carried by HTTP/2 frames, that all the HTTP/2 frames belong to the same HTTP/2 stream.

### Claim 17 (depends on 16)

The non-transitory processor-readable medium according to claim 16, further comprising instructions, when executed by the processor, for causing the apparatus to:
obtain, by the HTTP/2 adaptation layer by using an interface between the HTTP/2 adaptation layer and the MPTCP layer, subflow information of at least one MPTCP subflow that belongs to the MPTCP connection, wherein the subflow information identifies the at least one MPTCP subflow.

### Claim 18 (depends on 17)

The non-transitory processor-readable medium according to claim 17, wherein the subflow information comprises at least one of an MPTCP subflow identifier and a quantity of MPTCP subflows.

### Claim 19 (depends on 15)

The non-transitory processor-readable medium according to claim 15, further comprising instructions, when executed by the processor, for causing the apparatus to:
obtain, by the HTTP/2 adaptation layer by using an interface between the HTTP/2 adaptation layer and the MPTCP layer, subflow information of at least one MPTCP subflow that belongs to the MPTCP connection, wherein the subflow information identifies the at least one MPTCP subflow.
