# US 2022/0286409 A1 · Method and apparatus for configuring quality of service policy for service, and computing device

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

- Number: US 2022/0286409 A1
- Document ID: US20220286409A1
- Status: Published application
- Kind: A1
- Application number: 17/747,234
- Filed: 2022-05-18
- Published: 2022-09-08
- Earliest claimed: 2019-11-19
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Keyong SUN; Lei XIAO; Hongwei SUN
- Web page: https://patentgrep.com/patent/US20220286409A1

## CPC

- H04L 47/805: {QOS or priority aware}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- H04L 41/0823: characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability (for optimising operational conditions of wireless networks H04W24/02)
- H04L 41/0894: Policy-based network configuration management
- H04L 41/5003: Managing SLA; Interaction between SLA and QoS
- H04L 45/308: {Route determination based on user's profile, e.g. premium users}
- H04L 45/70: {Routing based on monitoring results}
- H04L 47/24: Traffic characterised by specific attributes, e.g. priority or QoS
- H04L 47/2425: for supporting services specification, e.g. SLA
- H04L 47/2441: relying on flow classification, e.g. using integrated services [IntServ]
- H04L 49/70: {Virtual switches}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This application provides a method and apparatus for configuring a quality of service policy for a service, and a computing device, and belongs to the field of network communications technologies. The method includes: obtaining a first data flow forwarded by a virtual switch; determining service information of the first data flow, where the service information includes a service type of the first data flow and an access path of the first data flow; determining, based on the service information of the first data flow, a quality of service QoS policy matching the first data flow; and configuring devices on the access path based on the matched QoS policy. According to this application, efficiency of configuring a quality of service policy for a service can be improved.

## Claims

### Claim 1

A method for configuring a quality of service policy for a service comprising a first data flow, wherein the method comprises:
obtaining the first data flow forwarded by a virtual switch;
determining service information of the first data flow, wherein the service information comprises a service type of the first data flow and an access path of the first data flow;
determining, based on the service information of the first data flow, a quality of service QoS policy matching the first data flow; and
configuring a plurality of devices on the access path based on the QoS policy.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining service information of the first data flow comprises:
determining a source identifier and a destination identifier of the first data flow based on information in the first data flow; and
determining the access path of the first data flow based on a stored network topology of a host, the source identifier of the first data flow, and the destination identifier of the first data flow, wherein the host includes the virtual switch.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining, based on the service information of the first data flow, a QoS policy matching the first data flow comprises:
determining, based on a stored correspondence between service types and service level agreements (SLAs), an SLA corresponding to the service type of the first data flow; and
determining, based on the SLA, the QoS policy.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the configuring a plurality of devices on the access path based on the QoS policy comprises:
determining, based on the QoS policy, a respective QoS sub-policy corresponding to each device of the plurality of devices on the access path; and
configuring said each device based on the respective corresponding QoS sub-policy.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining, based on the QoS policy, a respective QoS sub-policy corresponding to each device of the plurality of devices on the access path comprises:
obtaining a respective monitoring indicator of each device of the plurality of devices on the access path, wherein each said respective monitoring indicator comprises one or more of central processing unit (CPU) usage, memory usage, a packet loss ratio, and a transmission latency;
determining a key device in the plurality of devices on the access path based on the respective monitoring indicator of said each device, wherein the key device is a device of the plurality of devices that is determined as processing a data flow slowest on the access path;
determining the respective corresponding QoS sub-policy of the key device based on a minimum requirement of each monitoring indicator in the QoS policy; and
determining the QoS policy as the respective corresponding QoS sub-policy of a device other than the key device on the access path.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the method further comprises:
obtaining a disappearance message that is associated with the first data flow and sent by the virtual switch, or determining, based on information in a data flow forwarded by the virtual switch, that the data flow forwarded by the virtual switch does not comprise the first data flow; and
after the obtaining of the disappearance message or the determining that the data flow forwarded by the virtual switch does not comprise the first data flow, canceling configuration of the plurality of devices on the access path based on the QoS policy.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the method further comprises:
obtaining an addition message that is associated with the first data flow and sent by the virtual switch, or determining, based on information in another data flow forwarded by the virtual switch, that the first data flow is added to said another data flow forwarded by the virtual switch.

### Claim 8

An apparatus for configuring a quality of service policy for a service comprising a first data flow, wherein the apparatus comprises:
a processor; and
a memory storing instructions, wherein the instructions when executed by the processor cause the apparatus to:
obtain the first data flow forwarded by a virtual switch;
determine service information of the first data flow, wherein the service information comprises a service type of the first data flow and an access path of the first data flow; and
determine, based on the service information of the first data flow, a quality of service (QoS) policy matching the first data flow; and
configure a plurality of devices on the access path based on the QoS policy.

### Claim 9 (depends on 8)

The apparatus according to claim 8, wherein the processor is further configured to execute instructions to cause the apparatus to:
determine a source identifier and a destination identifier of the first data flow based on information in the first data flow; and
determine the access path of the first data flow based on a stored network topology of a host, the source identifier of the first data flow, and the destination identifier of the first data flow, wherein the host includes the virtual switch.

### Claim 10 (depends on 8)

The apparatus according to claim 8, wherein the processor is further configured to execute instructions to cause the apparatus to:
determine, based on a stored correspondence between service types and service level agreements (SLAs), an SLA corresponding to the service type of the first data flow; and
determine, based on the SLA, the QoS policy.

### Claim 11 (depends on 8)

The apparatus according to claim 8, wherein the processor is further configured to execute instructions to cause the apparatus to:
determine, based on the QoS policy, a respective QoS sub-policy corresponding to each device of the plurality of devices on the access path; and
configure said each device based on the respective corresponding QoS sub-policy.

### Claim 12 (depends on 11)

The apparatus according to claim 11, wherein the processor is further configured to execute instructions to cause the apparatus to:
obtain a respective monitoring indicator of each device of the plurality of devices on the access path, wherein each said respective monitoring indicator comprises one or more of central processing unit (CPU) usage, memory usage, a packet loss ratio, and a transmission latency;
determine a key device in the plurality of devices on the access path based on the respective monitoring indicator of said each device, wherein the key device is a device of the plurality of devices that is determined by the apparatus as processing a data flow slowest on the access path;
determine the respective corresponding QoS sub-policy of the key device based on a minimum requirement of each monitoring indicator in the QoS policy; and
determine the QoS policy as the respective corresponding QoS sub-policy of a device other than the key device on the access path.

### Claim 13 (depends on 8)

The apparatus according to claim 8, wherein the processor is further configured to execute instructions to cause the apparatus to:
obtain a disappearance message that is associated with the first data flow and sent by the virtual switch, or determine, based on information in a data flow forwarded by the virtual switch, that the data flow forwarded by the virtual switch does not comprise the first data flow; and
after the obtaining of the disappearance message or the determining that the data flow forwarded by the virtual switch does not comprise the first data flow, cancel configuration of the plurality of devices on the access path based on the QoS policy.

### Claim 14 (depends on 8)

The apparatus according to claim 8, wherein the processor is further configured to execute instructions to cause the apparatus to:
obtain an addition message that is associated with the first data flow and sent by the virtual switch, or determine, based on information in another data flow forwarded by the virtual switch, that the first data flow is added to said another data flow forwarded by the virtual switch.

### Claim 15

A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of an apparatus for configuring a quality of service policy for a service comprising a first data flow, causes the apparatus to perform operations comprising:
obtaining the first data flow forwarded by a virtual switch;
determining service information of the first data flow, wherein the service information comprises a service type of the first data flow and an access path of the first data flow; and
determining, based on the service information of the first data flow, a quality of service (QoS) policy matching the first data flow; and
configuring a plurality of devices on the access path based on the QoS policy.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the stored instructions, when executed by the processor, further causes the apparatus to:
determine a source identifier and a destination identifier of the first data flow based on information in the first data flow; and
determine the access path of the first data flow based on a stored network topology of a host, the source identifier of the first data flow, and the destination identifier of the first data flow, wherein the host includes the virtual switch.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the stored instructions, when executed by the processor, further causes the apparatus to:
determine, based on a stored correspondence between service types and service level agreements (SLAs), an SLA corresponding to the service type of the first data flow; and
determine, based on the SLA, the QoS policy.

### Claim 18 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the stored instructions, when executed by the processor, further causes the apparatus to:
determine, based on the QoS policy, a respective QoS sub-policy corresponding to each device of the plurality of devices on the access path; and
configure said each device based on the respective corresponding QoS sub-policy.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium according to claim 18, wherein the stored instructions, when executed by the processor, further causes the apparatus to:
obtain a respective monitoring indicator of each device of the plurality of devices on the access path, wherein each said respective monitoring indicator comprises one or more of central processing unit (CPU) usage, memory usage, a packet loss ratio, and a transmission latency;
determine a key device in the plurality of devices on the access path based on the respective monitoring indicator of said each device, wherein the key device is a device of the plurality of devices that is determined by the apparatus as processing a data flow slowest on the access path;
determine the respective corresponding QoS sub-policy of the key device based on a minimum requirement of each monitoring indicator in the QoS policy; and
determine the QoS policy as the respective corresponding QoS sub-policy of a device other than the key device on the access path.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium according to claim 15, wherein the stored instructions, when executed by the processor, further causes the apparatus to:
obtain a disappearance message that is associated with the first data flow and sent by the virtual switch, or determine, based on information in a data flow forwarded by the virtual switch, that the data flow forwarded by the virtual switch does not comprise the first data flow; and
after the obtaining of the disappearance message or the determining that the data flow forwarded by the virtual switch does not comprise the first data flow, cancel configuration of the plurality of devices on the access path based on the QoS policy.
