Apparatus and packet processing method
AssigneeHuawei Technologies Co., Ltd.
InventorChenglong Ding
Life of this patent
Estimating the term…
Abstract
The method is applied to an SDN network, where the SDN network includes one target computing apparatus and a plurality of openflow switches. The target computing apparatus communicates with the plurality of openflow switches. The method includes: receiving, by the target computing apparatus, a first bridge protocol data unit (BPDU) packet sent by a first openflow switch, where the first BPDU packet carries a device identifier and a port identifier; generating, by the target computing apparatus, a feedback packet based on the first BPDU packet, where the feedback packet includes spanning tree protocol information of a conventional switching device, and carries the port identifier; and sending, by the target computing apparatus, the feedback packet to the first openflow switch based on the device identifier.
Claims9
A packet processing method, wherein the method is applied to a software-defined networking (SDN) network, the SDN network comprises a target computing apparatus and a plurality of openflow switches, and the target computing apparatus communicates with the plurality of openflow switches, the method comprising:
- receiving, by the target computing apparatus, a first bridge protocol data unit (BPDU) packet sent by a first openflow switch, wherein the first BPDU packet carries a device identifier and a port identifier, the device identifier is used to indicate the first openflow switch, the port identifier is used to indicate a port that is on the first openflow switch and that receives a second BPDU packet, the second BPDU packet is from a conventional switching device outside the SDN network, the first BPDU packet is obtained by adding the device identifier and the port identifier to the second BPDU packet, the second BPDU packet is used to compute spanning tree protocol information of the conventional switching device, and the plurality of openflow switches comprise the first openflow switch;
- generating, by the target computing apparatus, a feedback packet based on the first BPDU packet, wherein the feedback packet comprises the spanning tree protocol information of the conventional switching device, and carries the port identifier;
- and
- sending, by the target computing apparatus, the feedback packet to the first openflow switch based on the device identifier.
A target computing apparatus, wherein the target computing apparatus is included in a software-defined networking (SDN) network, the SDN network comprises the target computing apparatus and a plurality of openflow switches, and the target computing apparatus communicates with the plurality of openflow switches, and the target computing apparatus comprises:
- a memory configured to store a computer program instruction;
- and
- a processor configured to read the computer program instruction to perform:
- receiving a first BPDU packet sent by a first openflow switch, wherein the first bridge protocol data unit (BPDU) packet carries a device identifier and a port identifier, the device identifier is used to indicate the first openflow switch, the port identifier is used to indicate a port that is on the first openflow switch and that receives a second BPDU packet, the second BPDU packet is from a conventional switching device outside the SDN network, the first BPDU packet is obtained by adding the device identifier and the port identifier to the second BPDU packet, the second BPDU packet is used to compute spanning tree protocol information of the conventional switching device, and the plurality of openflow switches comprise the first openflow switch;
- generating a feedback packet based on the first BPDU packet, wherein the feedback packet comprises the spanning tree protocol information of the conventional switching device, and the feedback packet carries the port identifier;
- and
- sending the feedback packet to the first openflow switch based on the device identifier.
An openflow switch, wherein the openflow switch is included in a-software-defined networking (SDN) network, the SDN network comprises a target computing apparatus and a plurality of openflow switches, and the target computing apparatus communicates with the plurality of openflow switches, and the openflow switch comprises:
- a memory configured to store a computer program instruction;
- and
- a processor configured to read the computer program instruction to perform:
- receiving a second BPDU packet sent by a conventional switching device outside the SDN;
- sending a first bridge protocol data unit (BPDU) packet to the target computing apparatus, wherein the first BPDU packet carries a device identifier and a port identifier, the device identifier is used to indicate the openflow switch, the port identifier is used to indicate a port that is on the openflow switch and that receives the second BPDU packet, the first BPDU packet is obtained by adding the device identifier and the port identifier to the second BPDU packet, and the second BPDU packet is used to compute spanning tree protocol information of the conventional switching device;
- receiving a feedback packet sent by the target computing apparatus, wherein the feedback packet is generated by the target computing apparatus based on the first BPDU packet and comprises the spanning tree protocol information of the conventional switching device and carries the port identifier;
- and
- sending the feedback packet to the conventional switching device through the port corresponding to the port identifier.
Dependencies are inferred from the claim text.