Stateful service processing method and apparatus

US12199883B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12199883-B2
Application numberUS-202217965112-A
CountryUS
Kind codeB2
Filing dateOct 13, 2022
Priority dateApr 17, 2020
Publication dateJan 14, 2025
Grant dateJan 14, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A stateful service processing method and apparatus are provided, related to the field of communication technologies. The method includes: preprocessing a received first packet to obtain a coalescing message of the first packet; coalescing the first packet into a first queue based on the coalescing message of the first packet, where the first queue is used to coalesce packets of a first connection to which the first packet belongs, and the first connection is a connection in which a stateful service is located; when a preset condition is met, processing, based on a context of the first connection, a plurality of packets coalesced in the first queue to obtain a second packet, where the context of the first connection is an updated context obtained after a previous second packet of the first connection is obtained; and transmitting the second packet to the host.

First claim

Opening claim text (preview).

What is claimed is: 1. A stateful service processing method, the method applied to a network interface card, and the network interface card is connected to a host, the method comprising: preprocessing a received first packet to obtain a coalescing message of the first packet; coalescing the first packet into a first queue based on the coalescing message of the first packet, wherein the first queue is used to coalesce packets of a first connection to which the first packet belongs and the first connection is a connection in which a stateful service is located; wherein coalescing the first packet into the first queue based on the coalescing message of the first packet further comprises: when the coalescing message of the first packet does not meet the coalescing context of the first queue: coalescing the first packet to a Y chain of the first queue as a basic node; and updating the coalescing context of the first queue based on the coalescing message of the first packet; when a preset condition is met, processing, based on a context of the first connection, a plurality of packets coalesced in the first queue to obtain a second packet, wherein the context of the first connection indicates related information of the first connection and the context of the first connection is an updated context obtained after a previous second packet of the first connection is obtained; and transmitting the second packet to the host. 2. The stateful service processing method according to claim 1 , wherein the coalescing message of the first packet comprises at least one of the following: an identifier of the first connection, a function identifier, and metadata. 3. The stateful service processing method according to claim 1 , wherein coalescing the first packet into the first queue based on the coalescing message of the first packet further comprises: when the coalescing message of the first packet meets a coalescing context of the first queue, coalescing the first packet to an X chain of the first queue as a coalescing node, wherein the coalescing context of the first queue indicates a coalescing message of the first queue. 4. The stateful service processing method according to claim 1 , wherein processing the plurality of packets in the first queue further comprises: editing and chaining a plurality of packets that belong to a same X chain in the first queue. 5. The stateful service processing method according to claim 1 , wherein the preset condition comprises any one of the following: coalescing duration reaches specified duration, a quantity of coalesced packets reaches a preset threshold, and a volume of coalesced data reaches a preset data volume. 6. The stateful service processing method according to claim 1 , further comprising: providing a receive bandwidth for the first queue from an available bus bandwidth; and transmitting the second packet to the host by using the receive bandwidth. 7. A stateful service processing apparatus, the apparatus applied to a network interface card, and the network interface card is connected to a host, the apparatus comprising: a preprocessor unit, configured to preprocess a received first packet to obtain a coalescing message of the first packet; a coalescing unit, configured to coalesce the first packet into a first queue based on the coalescing message of the first packet, wherein the first queue is used to coalesce packets of a first connection to which the first packet belongs and the first connection is a connection in which a stateful service is located; wherein the coalescing unit is further configured to: when the coalescing message of the first packet does not meet the coalescing context of the first queue: coalesce the first packet to a Y chain of the first queue as a basic node: and update the coalescing context of the first queue based on the coalescing message of the first packet; a processing unit, configured to: when a preset condition is met, process, based on a context of the first connection, a plurality of packets coalesced in the first queue to obtain a second packet, wherein the context of the first connection indicates related information of the first connection and the context of the first connection is an updated context obtained after a previous second packet of the first connection is obtained; and a transmitting unit, configured to transmit the second packet to the host. 8. The stateful service processing apparatus according to claim 7 , wherein the coalescing message of the first packet comprises at least one of the following: an identifier of the first connection, a function identifier, and metadata. 9. The stateful service processing apparatus according to claim 7 , wherein the coalescing unit is further configured to: when the coalescing message of the first packet meets a coalescing context of the first queue, coalesce the first packet to an X chain of the first queue as a coalescing node, wherein the coalescing context of the first queue indicates a coalescing message of the first queue. 10. The stateful service processing apparatus according to claim 7 , wherein the processing unit is further configured to: edit and chain a plurality of packets that belong to a same X chain in the first queue. 11. The stateful service processing apparatus according to claim 7 , wherein the preset condition comprises any one of the following: coalescing duration reaches specified duration, a quantity of coalesced packets reaches a preset threshold, and a volume of coalesced data reaches a preset data volume. 12. The stateful service processing apparatus according to claim 7 , further comprising: a bandwidth provision unit, configured to provide a receive bandwidth for the first queue from an available bus bandwidth, wherein the transmitting unit is further configured to transmit the second packet to the host by using the receive bandwidth. 13. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores instructions, and when the instructions are run on a computer, the computer is enabled to perform the stateful service processing method according to claim 1 .

Assignees

Inventors

Classifications

  • for service slots or service orders · CPC title

  • Altering the ordering of packets in an individual queue · CPC title

  • Fixed service order, e.g. Round Robin · CPC title

  • H04L47/10Primary

    Flow control; Congestion control · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12199883B2 cover?
A stateful service processing method and apparatus are provided, related to the field of communication technologies. The method includes: preprocessing a received first packet to obtain a coalescing message of the first packet; coalescing the first packet into a first queue based on the coalescing message of the first packet, where the first queue is used to coalesce packets of a first connecti…
Who is the assignee on this patent?
Huawei Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification H04L47/6225. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Jan 14 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 1 related publication on this page (citations in our corpus or others sharing the same primary CPC).