Packet forwarding
AssigneeNew H3C Technologies Co., Ltd.
InventorJiajia Liu
Life of this patent
Estimating the term…
Abstract
A receiving core reads a packet from an ingress interface, wherein the ingress interface is an interface corresponding to a forwarding group to which the receiving core belongs; the receiving core sends the read packet to a forwarding core in the forwarding group; and the forwarding core sends the packet to a corresponding egress interface.
Claims10
A method for forwarding a packet, applicable to each non-uniform memory architecture (NUMA) node included in a network function virtualization (NFV) device, wherein the each NUMA node comprises a forwarding group comprising a receiving core and a forwarding core, at least one core of a plurality of cores included in the each NUMA node and at least one core of the other cores of the plurality of cores being configured as a receiving core and a forwarding core of the forwarding group of the each NUMA node respectively, and the method comprises:
- creating, by a designated core in the NFV device, the forwarding group for the NUMA node, wherein the forwarding group comprises all cores of the NUMA node;
- configuring, by the designated core, the cores in the forwarding group as a control core, a receiving core or a forwarding core;
- configuring, by the designated core, a corresponding ingress interface for the forwarding group;
- reading, by a receiving core of the each NUMA node, a packet from an ingress interface, wherein the ingress interface is an interface corresponding to a forwarding group to which the receiving core of the each NUMA node belongs;
- sending, by the receiving core of the each NUMA node, the packet read by itself to a forwarding core in the forwarding group to which the receiving core of the each NUMA node belongs;
- and
- sending, by the forwarding core in the forwarding group to which the receiving core of the each NUMA node belongs, the packet sent by the receiving core of the each NUMA node to a corresponding egress interface.
A device for forwarding a packet, comprising:
- a receiving core;
- a forwarding core;
- a control core which is a designated core of the device for forwarding a packet;
- and
- a non-transitory machine readable storage medium storing machine readable instructions,
- wherein the receiving core and the forwarding core which belong to a same forwarding group included in each non-uniform memory architecture (NUMA) node, the each NUMA node comprising a plurality of cores, at least one core of the plurality of cores included in the each NUMA node and at least one core of the other cores of the plurality of cores being configured as a receiving core and a forwarding core of the forwarding group of the each NUMA node respectively,
- the machine readable instructions cause the control core to:
- create the forwarding group for the NUMA node, wherein the forwarding group comprises all cores of the NUMA node;
- configure the cores in the forwarding group as a control core, a receiving core or a forwarding core;
- and
- configure a corresponding ingress interface for the forwarding group,
- the machine readable instructions are executable by the receiving core of the each NUMA node to:
- read a packet from an ingress interface, wherein the ingress interface is an interface corresponding to a forwarding group to which the receiving core of the each NUMA node belongs;
- send the read packet to a forwarding core in the forwarding group to which the receiving core of the each NUMA node belongs;
- and
- the machine readable instructions are executable by the forwarding core in the forwarding group to which the receiving core of the each NUMA node belongs to:
- send the packet sent by the receiving core of the each NUMA node to a corresponding egress interface.
Dependencies are inferred from the claim text.