Data scheduling and switching method, apparatus, system
AssigneeHuawei Technologies Co., Ltd.
InventorsXiaoling Yang, Dongyu Geng, Huixiao Ma
Life of this patent
Estimating the term…
Abstract
Embodiments of the present invention relate to the communications field, and in particular, to a data scheduling and switching method, apparatus, and system. A data packet is distributed to an optical switching unit or an electrical switching unit for switching by using a control policy. The data packet may be switched by using an electrical packet switching module of the data switching apparatus, or may be switched by using an optical packet switching module.
Claims20
A data scheduling method, wherein the method comprises:
- receiving a data packet, wherein the data packet carries control information, wherein the control information comprises routing information of the data packet and a packet length of the data packet;
- determining, according to the packet length of the data packet, whether to perform optical switching or perform electrical switching on the data packet, wherein determining whether to perform the optical switching or perform the electrical switching on the data packet comprises determining to perform the optical switching on the data packet when the packet length of the data packet is greater than or equal to a packet length threshold, and determining to perform the electrical switching on the data packet when the packet length of the data packet is less than the packet length threshold;
- implementing control of the optical switching on the data packet according to the routing information of the data packet when it is determined to perform the optical switching on the data packet;
- and
- implementing control of the electrical switching on the data packet according to the routing information of the data packet when it is determined to perform the electrical switching on the data packet.
A data scheduling apparatus, comprising:
- a receiver;
- a processor;
- and
- a controller;
- wherein the receiver is configured to receive a data packet, and to send the data packet to the processor;
- wherein the processor is configured to:
- receive the data packet sent by the receiver, wherein the data packet carries control information, wherein the control information comprises routing information of the data packet and a packet length of the data packet;
- and
- determine, according to the packet length of the data packet, whether optical switching or electrical switching is to be performed on the data packet, wherein determining whether the optical switching or the electrical switching is to be performed on the data packet comprises determining that the optical switching is to be performed on the data packet when the packet length of the data packet is greater than or equal to a packet length threshold, and determining that the electrical switching is to be performed on the data packet when the packet length of the data packet is less than the packet length threshold;
- and
- wherein the controller control unit is configured to:
- implement control of the optical switching on the data packet according to the routing information of the data packet when the processor determines that the optical switching is to be performed on the data packet;
- and
- implement control of the electrical switching on the data packet according to the routing information of the data packet when it is determined to perform the electrical switching on the data packet.
A data switching apparatus, the data switching apparatus comprising:
- a plurality of first input ports;
- a plurality of first output ports;
- a data packet distribution and scheduling unit;
- and
- an electrical switching unit;
- wherein the data packet distribution and scheduling unit is connected to a first input port of the data switching apparatus and is configured to receive a data packet through the first input port of the data switching apparatus, wherein the data packet carries control information, and the data packet distribution and scheduling unit is further configured to determine, according to the control information, whether optical switching or electrical switching is to be performed on the data packet, and wherein the data packet distribution and scheduling unit is further connected to a second input port of the electrical switching unit, so as to send, to the electrical switching unit, the data packet on which electrical switching is determined to be performed;
- wherein the electrical switching unit is configured to perform the electrical switching on the data packet sent by the data packet distribution and scheduling unit, the electrical switching unit comprising a plurality of second input ports, configured to receive the data packet sent by the data packet distribution and scheduling unit, and a plurality of second output ports connected to the data packet distribution and scheduling unit, and is configured to send a data packet obtained after the electrical switching to the data packet distribution and scheduling unit;
- and
- wherein the data packet distribution and scheduling unit is further connected to a first output port of the data switching apparatus, and is configured to receive the data packet that is obtained after the electrical switching and sent by the electrical switching unit, and to send, through the connected first output port of the data switching apparatus, the data packet obtained after the electrical switching.
A data scheduling method, comprising:
- receiving a data packet, wherein the data packet carries control information, wherein the control information comprises routing information of the data packet and a priority information of the data packet;
- determining whether to perform optical switching or perform electrical switching on the data packet;
- implementing control of the optical switching on the data packet according to the routing information of the data packet when it is determined to perform the optical switching on the data packet;
- and
- implementing control of the electrical switching on the data packet according to the routing information of the data packet when it is determined to perform the electrical switching on the data packet;
- wherein determining whether to perform the optical switching or perform the electrical switching on the data packet comprises:
- determining an output port of an optical switching unit corresponding to a destination address carried in the routing information of the data packet, wherein the optical switching unit is configured to perform the optical switching on the data packet;
- when the determined output port of the optical switching unit corresponding to the destination address carried in the routing information of the data packet is non-idle, determining to perform the electrical switching on the data packet;
- when the determined output port of the optical switching unit corresponding to the destination address carried in the routing information of the data packet is idle, determining whether a conflict data packet exists, wherein an input port of an optical switching unit corresponding to the conflict data packet is different from an input port of the optical switching unit corresponding to the destination address carried in the routing information of the data packet, an output port of the optical switching unit corresponding to the conflict data packet is the same as the output port of the optical switching unit corresponding to the destination address carried in the routing information of the data packet, and the input port of the optical switching unit corresponding to the conflict data packet is an input port of the optical switching unit corresponding to a source address in routing information of the conflict data packet;
- when the conflict data packet does not exist, determining to perform the optical switching on the data packet;
- and
- when the conflict data packet exists, determining, according to the priority information of the data packet, whether a priority of the data packet is higher than priorities of all conflict data packets, and when the priority of the data packet is higher than the priorities of all the conflict data packets, determining to perform the optical switching on the data packet.
A data scheduling apparatus, comprising:
- a receiver;
- a processor;
- a first optical switch;
- and
- a controller;
- wherein the receiver is configured to receive a data packet, and to send the data packet to the processor;
- wherein the processor is configured to:
- receive the data packet sent by the receiver, wherein the data packet carries control information, wherein the control information comprises routing information of the data packet and a priority information of the data packet;
- and
- determine, according to the priority information of the data packet, whether optical switching or electrical switching is to be performed on the data packet;
- and
- wherein the controller is configured to:
- implement control of the optical switching on the data packet according to the routing information of the data packet when the processor determines that the optical switching is to be performed on the data packet;
- implement control of the electrical switching on the data packet according to the routing information of the data packet when it is determined to perform the electrical switching on the data packet;
- and
- determine an output port of an optical switch corresponding to a destination address carried in the routing information of the data packet;
- wherein the first optical switch is configured to perform the optical switching on the data packet;
- wherein the processor is configured to determine that the electrical switching is to be performed on the data packet when the determined output port of the optical switch corresponding to the destination address carried in the routing information of the data packet is non-idle;
- wherein the processor is configured to determine whether a conflict data packet currently exists when the determined output port of the optical switch corresponding to the destination address carried in the routing information of the data packet is idle;
- wherein an input port of an optical switch corresponding to the conflict data packet is different from an input port of the optical switch corresponding to the destination address carried in the routing information of the data packet, an output port of the optical switch corresponding to the conflict data packet is the same as the output port of the optical switch corresponding to the destination address carried in the routing information of the data packet, and the input port of the optical switch corresponding to the conflict data packet is an input port of an optical switch corresponding to a source address in routing information of the conflict data packet;
- and
- wherein the processor is configured to, when no conflict data packet exists, determine to perform the optical switching on the data packet, and when a conflict data packet exists, determine, according to the priority information of the data packet, whether a priority of the data packet is higher than priorities of all conflict data packets, and when the priority of the data packet is higher than the priorities of all the conflict data packets, determine to perform the optical switching on the data packet.
Dependencies are inferred from the claim text.