Packet forwarding method and device, and computer readable storage medium

US12598139B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12598139-B2
Application numberUS-202118020672-A
CountryUS
Kind codeB2
Filing dateAug 17, 2021
Priority dateAug 21, 2020
Publication dateApr 7, 2026
Grant dateApr 7, 2026

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.

The present application relates to the field of communication technology, and discloses a packet forwarding method and device, and a computer readable storage medium. The packet forwarding method includes: determining a forwarding type of a packet, and acquiring configuration information corresponding to the forwarding type, the configuration information including a comparison type and an offset address of at least one set of comparators; configuring the at least one set of comparators according to the comparison type; acquiring a comparison data source of the at least one set of comparators according to the offset address; and determining a forwarding rule of the packet according to the comparison type of the at least one set of comparators as configured and the comparison data source of the at least one set of comparators as configured.

First claim

Opening claim text (preview).

What is claimed is: 1 . A packet forwarding method, implemented by a packet process cell comprised in a programmable forwarding chip, comprising: determining a forwarding type of a packet, and acquiring configuration information corresponding to the forwarding type, the configuration information comprising a comparison type and an offset address corresponding to at least one set of comparators; configuring the at least one set of comparators according to the comparison type; acquiring a comparison data source of the at least one set of comparators according to the offset address; and determining a forwarding rule of the packet according to the comparison type of the at least one set of comparators as configured and the comparison data source of the at least one set of comparators as configured. 2 . The packet forwarding method of claim 1 , wherein the determining the forwarding type of the packet comprises: determining the forwarding type of the packet according to a characteristic field of the packet and a node access mode, and allocating a label to the forwarding type, wherein the node access mode is a forwarding mode configured by a node in which the programmable forwarding chip is located, and comprises at least one of a Layer 2 Media Access Control (MAC) address forwarding mode, a Layer 3 Internet Protocol (IP) routing address forwarding mode, or a Multiple Protocol Label Switching (MPLS) label forwarding mode. 3 . The packet forwarding method of claim 2 , wherein, one label corresponds to one type of configuration information; or at least two labels correspond to one type of configuration information. 4 . The packet forwarding method of claim 1 , wherein the acquiring the comparison data source of the at least one set of comparators according to the offset address comprises: acquiring the comparison data source of the at least one set of comparators from the packet according to the offset address; or acquiring the comparison data source of the at least one set of comparators from meta-frame information according to the offset address. 5 . The packet forwarding method of claim 2 , wherein the determining the forwarding rule of the packet according to the comparison type of the at least one set of comparators as configured and the comparison data source of the at least one set of comparators as configured comprises: inputting the comparison data source of an i-th set of comparators to the i-th set of comparators to obtain an i-th comparison result, where 1≤i≤X, i denotes an integer index identifying one of the at least one set of comparators, and X is a number of comparator sets comprised in the configuration information; and determining the forwarding rule of the packet according to X comparison results, the label and a forwarding rule matching table, the forwarding rule of the packet comprising at least one of a packet search or an instruction execution set. 6 . The packet forwarding method of claim 5 , wherein, in a case where the i-th set of comparators comprises two comparators, the inputting the comparison data source of the i-th set of comparators to the i-th set of comparators to obtain the i-th comparison result comprises: inputting a first comparison data source of the i-th set of comparators to a first comparator in the i-th set of comparators to obtain a first sub-result, and inputting a second comparison data source of the i-th set of comparators to a second comparator in the i-th set of comparators to obtain a second sub-result; judging whether the label, the first sub-result and the second sub-result match a condition of the i-th set of comparators; outputting the i-th comparison result as true in response to a fact that the label, the first sub-result and the second sub-result match the condition of the i-th set of comparators; and outputting the i-th comparison result as false in response to a fact that the label, the first sub-result and the second sub-result do not match the condition of the i-th set of comparators. 7 . The packet forwarding method of claim 5 , wherein, in a case where the i-th set of comparators comprises three comparators, the inputting the comparison data source of the i-th set of comparators to the i-th set of comparators to obtain the i-th comparison result comprises: inputting a first comparison data source of the i-th set of comparators to a first comparator in the i-th set of comparators to obtain a first sub-result, inputting a second comparison data source of the i-th set of comparators to a second comparator in the i-th set of comparators to obtain a second sub-result, and inputting a third comparison data source of the i-th set of comparators to a third comparator in the i-th set of comparators to obtain a third sub-result; judging whether the label, the first sub-result, the second sub-result and the third sub-result match a condition of the i-th set of comparators; outputting the i-th comparison result as true in response to a fact that the label, the first sub-result, the second sub-result and the third sub-result match the condition of the i-th set of comparators; and outputting the i-th comparison result as false in response to a fact that the label, the first sub-result, the second sub-result and the third sub-result do not match the condition of the i-th set of comparators. 8 . The packet forwarding method of claim 1 , wherein the comparison type comprises at least one of greater than, less than, equal to, not equal to, not less than, or not greater than. 9 . A programmable forwarding chip comprising a packet process cell configured to: determine a forwarding type of a packet, and acquire configuration information corresponding to the forwarding type, the configuration information comprising a comparison type and an offset address corresponding to at least one set of comparators; configure the at least one set of comparators according to the comparison type; acquire a comparison data source of the at least one set of comparators according to the offset address; and determine a forwarding rule of the packet according to the comparison type of the at least one set of comparators as configured and the comparison data source of the at least one set of comparators as configured. 10 . A non-transitory computer readable storage medium storing thereon a computer program which, when executed by a packet process cell of a programmable forwarding chip, implements the packet forwarding method of claim 1 . 11 . The programmable forwarding chip of claim 9 , wherein the determining the forwarding type of the packet comprises: determining the forwarding type of the packet according to a characteristic field of the packet and a node access mode, and allocating a label to the forwarding type, wherein the node access mode is a forwarding mode configured by a node in which the programmable forwarding chip is located, and comprises at least one of a Layer 2 MAC address forwarding mode, a Layer 3 IP routing address forwarding mode, or an MPLS label forwarding mode. 12 . The programmable forwarding chip of claim 11 , wherein, one label corresponds to one type of configuration information; or at least two labels correspond to one type of configuration information. 13 . The programmable forwarding chip of claim 9 , wherein the acquiring the comparison data source of the at least one set of comparators according to the offset address comprises: acquiring the comparison data source of the at least one set of comparators from the packet according to the offset address; or acquiring the comparison data source of the at least one set of comparators from meta-frame in

Assignees

Inventors

Classifications

  • Splitting route computation layer and forwarding layer, e.g. routing according to path computational element [PCE] or based on OpenFlow functionality · CPC title

  • Route determination based on the nature of the carried application · CPC title

  • H04L45/745Primary

    Address table lookup; Address filtering · 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 US12598139B2 cover?
The present application relates to the field of communication technology, and discloses a packet forwarding method and device, and a computer readable storage medium. The packet forwarding method includes: determining a forwarding type of a packet, and acquiring configuration information corresponding to the forwarding type, the configuration information including a comparison type and an offse…
Who is the assignee on this patent?
Sanechips Tech Co Ltd
What technology area does this patent fall under?
Primary CPC classification H04L45/745. Mapped technology areas include Electricity.
When was this patent published?
Publication date Tue Apr 07 2026 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 3 related publications on this page (citations in our corpus or others sharing the same primary CPC).