# US 2019/0319894 A1 · Heterogeneous multi-protocol stack method, apparatus, and system

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

- Number: US 2019/0319894 A1
- Document ID: US20190319894A1
- Status: Published application
- Kind: A1
- Application number: 16/453,988
- Filed: 2019-06-26
- Published: 2019-10-17
- Earliest claimed: 2016-12-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Lingling TANG; Kai ZHENG; Rujie CHEN
- Web page: https://patentgrep.com/patent/US20190319894A1

## CPC

- H04L 69/30: Definitions, standards or architectural aspects of layered protocol stacks
- H04L 41/5003: Managing SLA; Interaction between SLA and QoS
- H04L 47/6215: {Individual queue per QOS, rate or priority}
- H04L 47/805: {QOS or priority aware}
- H04L 69/12: Protocol engines
- H04L 69/18: Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
- H04L 69/321: Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A heterogeneous multi-protocol stack system including a plurality of heterogeneous protocol stack instances is described. Resource allocation between the protocol stack instances is unbalanced, and algorithms are independently configured, so that QoS capacities of different protocol stack instances are different. Data packets of applications or connections with different QoS requirements can be dispatched by a dispatcher to corresponding protocol stack instances at a high speed. When system resources are limited, the heterogeneous multi-protocol stack system is capable of simultaneously supporting classification optimization processing performed on data of a high-concurrency application, a high-throughput application, and a low-delay application, so as to meet QoS requirements of different types of applications, thereby improving user experience.

## Claims

### Claim 1

A server, comprising:
a manager configured to allocate resources to a first protocol stack instance and a second protocol stack instance, wherein a resource configuration of the first protocol stack instance is different from that of the second protocol stack instance, and wherein the resource configuration indicates a type of an allocated resource and a quota of each type of resource; and wherein the first protocol stack instance is configured to process a data packet of a first-type application, and the second protocol stack instance is configured to process a data packet of a second-type application; and
a dispatcher configured to: receive a data packet, determine, based on characteristic information of the data packet, a protocol stack instance that matches the data packet, and dispatch the data packet to the matched protocol stack instance, wherein the matched protocol stack instance is the first protocol stack instance or the second protocol stack instance.

### Claim 2 (depends on 1)

The server of claim 1, wherein the resource configuration of the first protocol stack instance meets a quality of service (QoS) requirement of the first-type application, and the resource configuration of the second protocol stack instance meets a QoS requirement of the second-type application; and
the dispatcher is configured to: dispatch the data packet to the first protocol stack instance when it is determined, based on the characteristic information of the data packet, that the data packet belongs to the first-type application, or dispatch the data packet to the second protocol stack instance when it is determined that the data packet belongs to the second-type application.

### Claim 3 (depends on 1)

The server of claim 1, wherein the server further comprises a rule repository, the rule repository stores a dispatching rule indicating a dispatching policy of the data packet; and
the dispatcher is configured to determine, based on the characteristic information of the data packet and the dispatching rule in the rule repository, the protocol stack instance that matches the data packet.

### Claim 4 (depends on 2)

The server of claim 2, wherein the characteristic information comprises one or more of a source internet protocol (IP) address, a source port, a destination IP address, a destination port, a uniform resource locator (URL), or a protocol name.

### Claim 5 (depends on 1)

The server of claim 1, wherein the resource type comprises a socket resource, a data buffer resource, and a central processing unit (CPU) resource.

### Claim 6 (depends on 1)

The server of claim 1, wherein the first-type application is a high-concurrency application and the second-type application is a high-throughput application; and a socket resource quota of the first protocol stack instance is greater than a socket resource quota of the second protocol stack instance.

### Claim 7 (depends on 1)

The server of claim 1, wherein the manager is configured to:
calculate a quota of each type of resource of the first protocol stack instance and that of the second protocol stack instance based on resource weights of the first protocol stack instance and the second protocol stack instance and a total quantity of available resources; and
allocate, based on the calculated resource quotas, a corresponding quantity of socket resources, data buffer resources, and CPU resources to each of the first protocol stack instance and the second protocol stack instance, wherein a quota of a socket resource allocated to the first protocol stack instance is Mx, a quota of a data buffer resource is Nx, and a quota of a CPU resource is Lx; a quota of a socket resource allocated by the manager to the second protocol stack instance is My, a quota of a data buffer resource is Ny, and a quota of a CPU resource is Ly; and the resource configurations of the first protocol stack instance and the second protocol stack instance meet at least one of the following conditions: Mx≠My, Nx≠Ny, or Lx≠Ly.

### Claim 8 (depends on 1)

The server of claim 1, further comprising a coordinator configured to: dynamically adjust the resource configurations of the first protocol stack instance and the second protocol stack instance based on resource utilization and/or load statuses of the first protocol stack instance and the second protocol stack instance.

### Claim 9 (depends on 1)

The server of claim 1, wherein the server comprises a plurality of dispatchers, and each dispatcher is associated with at least one of the first protocol stack instance and the second protocol stack instance and is configured to dispatch a received data packet to a protocol stack instance associated with the dispatcher.

### Claim 10

A terminal, comprising:
a storage that stores a protocol stack program, a first application, and a second application, wherein an application type of the first application is different from that of the second application;
a communications subsystem configured to receive a first data packet; and
an application processor that executes the protocol stack program to:
create a first protocol stack instance and a second protocol stack instance,
allocate resources to the first protocol stack instance and the second protocol stack instance, wherein a resource configuration of the first protocol stack instance is different from that of the second protocol stack instance, and wherein the resource configuration indicates a type of an allocated resource and a quota of each type of resource,
determine, based on characteristic information of the data packet, a protocol stack instance that matches the data packet, and
dispatch the data packet to the matched protocol stack instance, wherein the matched protocol stack instance is the first protocol stack instance or the second protocol stack instance.

### Claim 11 (depends on 10)

The terminal of claim 10, wherein the resource configuration of the first protocol stack instance meets a quality of service (QoS) requirement of the first application, and the resource configuration of the second protocol stack instance meets a QoS requirement of the second application, further comprising:
the application processor to execute the protocol stack program to: determine, based on the characteristic information of the data packet, that the data packet belongs to the first application, and dispatch the data packet to the first protocol stack instance.

### Claim 12 (depends on 10)

The terminal of claim 10, wherein the storage further stores a dispatching rule indicating a dispatching policy of the data packet, further comprising:
the application processor to execute the protocol stack program to: determine, based on the characteristic information of the data packet and the dispatching rule in a rule repository, the protocol stack instance that matches the data packet.

### Claim 13 (depends on 10)

The terminal of claim 10, wherein the application processor is further configured to:
dynamically adjust the resource configurations of the first protocol stack and the second protocol stack based on resource utilization and/or load statuses of the first protocol stack instance and the second protocol stack instance.

### Claim 14 (depends on 10)

The terminal of claim 10, wherein the type of resource comprises a socket resource, a data buffer resource, and a central processing unit (CPU) resource.

### Claim 15 (depends on 10)

The terminal of claim 10, wherein an application type comprises a high-concurrency application, a high-throughput application, and a low-delay application.

### Claim 16 (depends on 15)

The terminal of claim 15, wherein the first application is a high-concurrency application and the second application is a high-throughput application; and a socket resource quota of the first protocol stack instance is greater than a socket resource quota of the second protocol stack instance.

### Claim 17

A data processing method, comprising:
creating a first protocol stack instance and a second protocol stack instance;
allocating resources to the first protocol stack instance and the second protocol stack instance, wherein a resource configuration of the first protocol stack instance is different from that of the second protocol stack instance, and wherein the resource configuration indicates a type of an allocated resource and a quota of each type of resource; and wherein the first protocol stack instance is configured to process a data packet of a first-type application, and the second protocol stack instance is configured to process a data packet of a second-type application;
determining, based on characteristic information of a data packet, a protocol stack instance that matches the data packet, and
dispatching the data packet to the matched protocol stack instance, wherein the matched protocol stack instance is the first protocol stack instance or the second protocol stack instance.

### Claim 18 (depends on 17)

The method of claim 17, wherein the determining, based on characteristic information of the data packet, the protocol stack instance that matches the data packet comprises:
determining, based on the characteristic information of the data packet and a dispatching rule configured in a rule repository, the protocol stack instance that matches the data packet.

### Claim 19 (depends on 17)

The method of claim 17, wherein the allocating resources to the first protocol stack instance and the second protocol stack instance comprises:
calculating a quota of each type of resource of the first protocol stack instance and that of the second protocol stack instance based on a weight of each type of resource of the first protocol stack instance and the second protocol stack instance and a total quantity of available resources; and
allocating, based on the calculated resource quotas, a corresponding quantity of socket resources, data buffer resources, and central processing unit (CPU) resources to each of the first protocol stack instance and the second protocol stack instance, wherein a quota of a socket resource allocated to the first protocol stack instance is Mx, a quota of a data buffer resource is Nx, and a quota of a CPU resource is Lx; a quota of a socket resource allocated to the second protocol stack instance is My, a quota of a data buffer resource is Ny, and a quota of a CPU resource is Ly; and the resource configurations of the first protocol stack instance and the second protocol stack instance meet at least one of the following conditions: Mx≠My, Nx≠Ny, or Lx≠Ly.

### Claim 20 (depends on 8)

The method of claim 8, further comprising:
dynamically adjusting the resource configurations of the first protocol stack instance and the second protocol stack instance based on resource utilization and/or load statuses of the first protocol stack instance and the second protocol stack instance.
