US-20260129007-A1 - Switch, Switch Cabinet, and Data Switching Method
Abstract
A switch includes at least two interface modules, a switching module, and an ingress processing module. The at least two interface modules include a first interface and a second interface. The first interface is configured to send and receive a first packet that is based on a first protocol, and the second interface is configured to send and receive a second packet that is based on a second protocol. The interface module is configured to obtain a to-be-forwarded packet, where the to-be-forwarded packet is one of the first packet and the second packet. The ingress processing module is configured to receive the to-be-forwarded packet from the interface module, and obtain first indication information corresponding to the to-be-forwarded packet, where the first indication information indicates a destination interface corresponding to the to-be-forwarded packet.
Inventors
- Xiaoyong Ming
- Xiaopeng Peng
- Jun Li
- Guoding Liu
Assignees
- HUAWEI TECHNOLOGIES CO., LTD.
Dates
- Publication Date
- 20260507
- Application Date
- 20251231
- Priority Date
- 20230704
Claims (20)
- 1 . A switch, comprising: at least two interfaces configured to: receive a to-be-forwarded packet; and send the to-be-forwarded packet based on a first protocol or a second protocol, wherein the at least two interfaces comprise: a first interface configured to send and receive a first packet based on the first protocol; and a second interface configured to send and receive a second packet based on the second protocol, and wherein the to-be-forwarded packet is the first packet or the second packet; an ingress processing apparatus configured to: receive the to-be-forwarded packet; obtain first indication information corresponding to the to-be-forwarded packet, wherein the first indication information indicates a destination interface in each of the at least two interfaces corresponding to the to-be-forwarded packet; and send the first indication information; and a switching apparatus configured to: receive the to-be-forwarded packet and the first indication information; and send the to-be-forwarded packet to the destination interface based on the first indication information.
- 2 . The switch of claim 1 , wherein the ingress processing apparatus is further configured to connect to the at least two interfaces.
- 3 . The switch of claim 1 , further comprising an egress processing apparatus configured to: receive the to-be-forwarded packet and the first indication information from the switching apparatus; and send the to-be-forwarded packet to one of the at least two interfaces, wherein one of the at least two interfaces comprises the destination interface.
- 4 . The switch of claim 3 , wherein the egress processing apparatus is configured to connect to the at least two interfaces.
- 5 . The switch of claim 3 , wherein the first indication information indicates the destination interface corresponding to the to-be-forwarded packet.
- 6 . The switch of claim 1 , wherein the first protocol and the second protocol are a Compute eXpress Link (CXL) protocol or a unified buffer (UB) protocol.
- 7 . A switch, comprising: at least two interfaces and configured to: receive a to-be-forwarded packet; and send the to-be-forwarded packet based on a first protocol or a second protocol, wherein the at least two interfaces comprise: a first interface configured to send and receive a first packet based on the first protocol; and a second interface configured to send and receive a second packet based on the second protocol, and wherein the to-be-forwarded packet is the first packet or the second packet; a multi-protocol conversion apparatus configured to: receive the to-be-forwarded packet; convert the to-be-forwarded packet into a third packet based on a configuration, wherein the third packet and the to-be-forwarded packet are based on different protocols; and send the third packet; an ingress processing apparatus configured to: receive the to-be-forwarded packet; obtain indication information corresponding to the to-be-forwarded packet, wherein the indication information indicates a destination interface in each of the at least two interfaces corresponding to the to-be-forwarded packet; and send the indication information; and a first switching apparatus configured to: receive the third packet and the indication information; and send the third packet to a corresponding destination interface of the at least two interfaces based on the indication information.
- 8 . The switch of claim 7 , wherein the at least two interfaces are connected to the ingress processing apparatus, and wherein the ingress processing apparatus is connected to the multi-protocol conversion apparatus.
- 9 . The switch of claim 7 , wherein the interface apparatus is connected to the multi-protocol conversion apparatus, and wherein the multi-protocol conversion apparatus is connected to the ingress processing apparatus.
- 10 . The switch of claim 7 , further comprising a second switching apparatus connected to the ingress processing apparatus, wherein the interface apparatus is connected to the ingress processing apparatus and to the multi-protocol conversion apparatus.
- 11 . The switch of claim 7 , further comprising an egress processing apparatus configured to: receive the to-be-forwarded packet and the indication information; and send the to-be-forwarded packet to one of the interface apparatus, wherein each of the at least two interfaces comprise the destination interface.
- 12 . The switch of claim 11 , wherein the indication information indicates the destination interface corresponding to the to-be-forwarded packet.
- 13 . The switch of claim 11 , wherein the multi-protocol conversion apparatus is configured to receive the to-be-forwarded packet according to a first configuration of the ingress processing apparatus and a second configuration of the egress processing apparatus.
- 14 . The switch of claim 7 , wherein the first protocol and the second protocol are a Compute eXpress Link (CXL) protocol or a unified buffer (UB) protocol.
- 15 . A switch cabinet, comprising: a switch comprising: at least two interfaces configured to: receive a to-be-forwarded packet; and send the to-be-forwarded packet based on a first protocol or a second protocol, wherein the at least two interfaces comprise: a first interface configured to send and receive a first packet based on the first protocol; and a second interface configured to send and receive a second packet based on the second protocol, and wherein the to-be-forwarded packet is the first packet or the second packet; an ingress processing apparatus configured to: receive the to-be-forwarded packet; obtain first indication information corresponding to the to-be-forwarded packet, wherein the first indication information indicates a corresponding destination interface of the at least two interfaces that corresponds to the to-be-forwarded packet; and send the first indication information; a first switching apparatus configured to: receive the to-be-forwarded packet and the first indication information; and send the to-be-forwarded packet to the destination interface of the at least two interfaces based on the first indication information; at least one server electrically connected to the switch; and at least one resource pool electrically connected to the switch, wherein the at least one resource pool comprises at least one of a plurality of memory resources, a plurality of hard disk resources, and a plurality of accelerator resources.
- 16 . The switch cabinet of claim 15 , further comprising a multi-protocol conversion apparatus electrically connected to the switch and configured to receive the to-be-forwarded packet.
- 17 . The switch cabinet of claim 16 , wherein the multi-protocol conversion apparatus is further configured to: convert the to-be-forwarded packet into a third packet based on a configuration, wherein the third packet and the to-be-forwarded packet are based on different protocols; and send the third packet.
- 18 . The switch cabinet of claim 16 , further comprising an egress processing apparatus, wherein the multi-protocol conversion apparatus is configured to receive the to-be-forwarded packet according to a first configuration of the ingress processing apparatus and a second configuration of the egress processing apparatus.
- 19 . The switch cabinet of claim 16 , further comprising a second switching apparatus connected to the ingress processing apparatus, wherein the interface apparatus is connected to the ingress processing apparatus and to the multi-protocol conversion apparatus.
- 20 . The switch cabinet of claim 15 , further comprising an egress processing apparatus configured to: receive the to-be-forwarded packet and the first indication information; and send the to-be-forwarded packet to a corresponding destination interface of the at least two interfaces.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This is a continuation of International Patent Application No. PCT/CN2024/101703 filed on Jun. 26, 2024, which claims priority to Chinese Patent Application No. 202310814632.0 filed on Jul. 4, 2023. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD Embodiments of this disclosure relate to the field of electronic information, and in particular, to a switch, a switch cabinet, and a data switching method. BACKGROUND With popularization of cloud computing and high-performance computing, more applications and data are migrated to data centers. Services and an amount of data processed by the data centers grow explosively, and requirements on computing power of the data centers are increasingly high. However, due to limitations of Moore's Law and slowdown in processor performance growth, a domain specific architecture (DSA) gradually becomes a trend, and more heterogeneous processors/accelerators are introduced into the data centers. In addition, based on a memory wall, both a capacity and a bandwidth of a memory of a single server become bottlenecks for performance of a high-performance processor. Therefore, a disaggregated data center is promoted. In an example, key resources such as a heterogeneous processor, an accelerator, and a memory are pooled, to meet continuously growing computing power and memory requirements. In this architecture, a communication delay and a transmission bandwidth between different types of resources limit performance of the high-performance processor. SUMMARY This disclosure provides a switch, a switch cabinet, and a data switching method, to optimize networking in the switch cabinet and improve resource utilization in the cabinet. According to a first aspect, this disclosure provides a switch, for example including at least two interface modules, a switching module, and an ingress processing module. The at least two interface modules include a first interface and a second interface. The first interface is configured to send and receive a first packet that is based on a first protocol, and the second interface is configured to send and receive a second packet that is based on a second protocol. The interface module is configured to obtain a to-be-forwarded packet, where the to-be-forwarded packet is one of the first packet and the second packet. The ingress processing module is configured to receive the to-be-forwarded packet from the interface module, and obtain first indication information corresponding to the to-be-forwarded packet, where the first indication information indicates a destination interface corresponding to the to-be-forwarded packet. The switching module is configured to receive the to-be-forwarded packet and the first indication information from the ingress processing module, and send the to-be-forwarded packet to the destination interface based on the first indication information. A plurality of interfaces supporting different protocols, the ingress processing module supporting switching of at least one protocol, and a switching module supporting different protocols are configured for the switch, to receive, process, switch, and forward packets of a plurality of different protocols, so as to reduce costs and power consumption of a switch device. In addition, local resources (such as a memory, a hard disk, and an accelerator) that are originally configured in a server and that overflow may be configured outside a cabinet as pooled resources, and data transmission is implemented through a bus and a top-of-rack (ToR) switch that supports switching of a plurality of protocols. This further reduces system costs and power consumption, and also removes a limitation that the local resources are used by only the server, thereby improving resource utilization, implementing flexible resource configuration, and implementing a plurality of new services. In an implementation, the ToR switch further includes an egress processing module, configured to receive the to-be-forwarded packet and the first indication information from the switching module, and send the to-be-forwarded packet to the interface module. The interface module includes the destination interface. In an implementation, the ingress processing module in the switch is configured to connect to at least two interfaces, where the at least two interfaces include the first interface and the second interface. The ingress processing module is enabled to work in different protocols, to reduce a quantity of ingress processing modules that are necessary in the switch, so as to reduce system costs and power consumption. In an implementation, the egress processing module in the switch is configured to connect to at least two interfaces, where the at least two interfaces include the first interface and the second interface. The egress processing module is enabled to work in different protocols, to reduce a quantity o