The application claims priority to Chinese Patent Application No. 200710076307.X, filed Jun. 29, 2007, entitled “Method and System of Data Communication, Switching Network Board,” the contents of which are hereby incorporated by reference in their entirety.
The present invention relates to a switching technology in the data communication field, and more particularly, to a method and system of data communication, switching network board for multiple chassis (line card chassis).
An IP network device system mainly includes two planes: a data forwarding plane and a routing controlling plane. The routing controlling plane provides functions such as processing a routing protocol, generating a routing table and forwarding table, and provides a management interface to the outside. The data forwarding plane provides real-time processing functions such as data packet receiving, table checking, classifying, filtering, QoS processing, and switching. Therefore, the design of the data forwarding plane is critical to realizing support for multiple services while maintaining the line-rate forwarding on a high-speed interface.
With the expansion of the network scale, for the purpose of utilizing network resources more effectively and realizing accessing more nodes on one network node, and thereby achieving a larger switching and forwarding capacity, there is a need to expand the capacity of the data forwarding plane. The current switching network generally adopts a 3-stage Clos switching network structure as shown in
In the system shown in
If the communication is performed between the line card in the current line card chassis and the line card in other line card chassis, the data forwarding process includes: The line card in the current line card chassis sends the data packet to an S1 switching chip in the current line card chassis. After receiving the data packet, the S1 switching chip sends the data packet to an S2 switching chip in the switching chassis. The S2 switching chip sends the data packet to the S3 switching chip of the line card chassis in which the destination line card is located. The S3 switching chip sends the data packet to the destination line card according to the destination address.
The inventor has found during the research that although the above networking mode may realize the capacity expansion, a series of problems still exist. In particular, all the line card chassis are connected to the switching chassis, so as to perform the data forwarding by the switching chassis. Once a failure occurs to the switching chassis, the entire system may crash. Therefore, the system is in a low reliability. Moreover, there is a need to add the switching chassis when expanding to multiple line card chassis, and especially when only a few line card chassis need to be cascaded, the adding of the switching chassis results in a high cost.
Embodiments of the present invention mainly provides a method and system of data communication, switching network board to reduce the networking complexity, save the networking cost and enhance the system reliability in the case that only a few line card chassis are cascaded.
A data communication system provided in the embodiment of the present invention includes multiple line card chassis. Each of the line card chassis includes multiple line cards, at least one switching chip and at least one relay chip. The line card is respectively connected to the switching chip and the relay chip of the same line card chassis. The switching chip of one line card chassis is connected to the relay chip of at least one of other line card chassis. The relay chip of the one line card chassis is connected to the switching chip of the at least one of other line card chassis.
The embodiment of the present invention provides a switching network board including the switching chip and the relay chip.
The switching chip is adapted to receive the message containing the destination address, and switch the message to the destination card or the relay chip according to the destination address.
The relay chip is adapted to relay the message to the switching chip of another switching network board.
The embodiment of the present invention provides a data communication method. The method includes:
receiving a message containing a destination address;
and sending the message to the destination card corresponding to the destination address or the relay chip of the line card chassis in which the destination line card is located, according to the destination address.
By implementing the above embodiments of the present invention, the networking complexity may be reduced, and the networking cost may be saved in the case that a few line card chassis are cascaded. Besides, when a failure occurs on a line card chassis, the chip configured in other line card chassis is adopted to ensure the normal operation of the system and avoid the situation in which the network fails to operate once a failure occurs on the switching chassis, thereby enhancing the system reliability.
The present invention is further illustrated below in combination with the accompanying drawings and particular embodiments, which are not to be construed as limiting the present invention.
In order to make those skilled in the art better understand technical schemes of the embodiments of the present invention, in all the following detailed embodiments, the source line card is the line card sending the message, the destination line card is the line card receiving the message, the destination address is the address corresponding to the destination line card, and the current line card chassis is the line card chassis in which the source line card is located.
When multiple switching planes are added in each line card chassis in the system shown in
The switching chip is adapted to send the message to the destination line card, the relay chip of the current line card chassis, or the relay chip of other line card chassis connected to the switching chip according to the destination address of the message.
The relay chip is adapted to send the message from the source line card or the switching chip of the current line card chassis to the switching chip of other line card chassis connected to the relay chip and send the message from the switching chip of other line card chassis to the destination line card.
Particularly, the switching chip includes the first judgment module and the second judgment module.
The first judgment module is adapted to judge whether the destination line card is located in the current line card chassis according to the destination address of the message and send the message to the destination line card or the second judgment module according to the judgment result. If the destination line card is located in the current line card chassis, the message is sent to the destination line card; if the destination line card is not located in the current line card chassis, the first judgment module sends the message to the second judgment module.
The second judgment module is adapted to judge whether the switching chip is connected to the line card chassis in which the destination line card is located and send the message to the relay chip of the line card chassis in which the destination line card is located or the relay chip of the current line card chassis according to the judgment result. If the switching chip is connected to the line card chassis in which the destination line card is located, the second judgment module sends the message to the relay chip of the line card chassis in which the destination line card is located; if the switching chip is not connected to the line card chassis in which the destination line card is located, the second judgment module sends the message to the relay chip of the current line card chassis.
Preferably, a judgment module and a load balancing module are arranged in the system shown in
As shown in
The switching chip is adapted to send the message to the destination line card or the relay chip of the line card chassis in which the destination line card is located according to the destination address of the message.
The relay chip is adapted to send the message from the source line card to the switching chip of other line card chassis connected to the relay chip or send the message from the switching chip of other line card chassis to the destination line card.
Particularly, the switching chip includes a third judgment module.
The third judgment module is adapted to judge whether the destination line card is located in the current line card chassis according to the destination address of the message, and send the message to the destination line card or the relay chip of other line card chassis in which the destination line card is located according to the judgment result. If the destination line card is located in the current line card chassis, the third judgment module sends the message to the destination line card; if the destination line card is not located in the current line card chassis, the third judgment module sends the message to the relay chip of the line card chassis in which the destination line card is located.
A switching network board is further provided in the embodiments of the present invention. The switching network board includes a relay chip, a switching chip, a judgment module, and a load balancing module. The relay chip is adapted to relay the message to the destination address or the switching chip of other switching network board. The switching chip of the switching network board is adapted to switch the message to the destination address or the corresponding relay chip according to the destination address of the message. The judgment module is adapted to judge whether the destination address of the message is located in the same line card chassis as the source address. The load balancing module is adapted to send the message to the switching chip or the relay chip according to the destination address thereof and the load balancing principle based on the judgment result of the judgment module.
A data communication method is further provided in the embodiments of the present invention. The data communication method includes: receiving the message containing the destination address; and sending the message to the destination line card corresponding to the destination address or the relay chip of the line card chassis in which the destination line card is located according to the destination address.
A flowchart illustrating one embodiment of the data communication method by utilizing the systems shown in
Block 701: The address of the destination line card is added in the message to be sent by the source line card, i.e., the destination address is added in the message to be sent. Before this block, generally, a routing table is created at a corresponding position in the switching network board or the line card chassis to realize the forwarding of the message according to the network protocol or the destination address of the message.
Block 702: The source line card sends the message to the switching network board in the current line card chassis.
In the single-plane data communication system shown in
Block 703: The switching network board judges whether the destination line card is in the current line card chassis according to the destination address of the message, and if the destination line card is in the current line card chassis, the process proceeds to block 704; if the destination line card is not in the current line card chassis, the process proceeds to block 706.
Block 704: The switching network board sends the message to the switching chip in the current line card chassis according to the destination address of the message.
In general, preferably, the switching network board sends the message to the switching chip of its own according to the destination address of the message and the load balancing principle.
Block 705: The switching chip receiving the message switches the message to the destination line card according to the destination address of the message, and this process ends.
Block 706: The switching network board sends the message to the relay chip in the current line card chassis.
In general, the switching network board sends the message to the relay chip of its own according to the destination address of the message and the load balancing principle.
Block 707: The relay chip receiving the message relays the message to the switching chip in the line card chassis in which the destination line card is located.
The relay chip receiving the message may directly relay the message to the switching chip in the line card chassis in which the destination line card is located or relay the message to switching chip in the line card chassis in which the destination line card is located via the switching network board in the line card chassis in which the destination line card is located.
Block 708: The switching chip in the line card chassis in which the destination line card is located switches the message to the destination line card, and this process ends.
Data switching between different line cards may be realized through the above blocks.
A flowchart illustrating another embodiment of the data communication method by utilizing the systems shown in
Block 801: The address of the destination line card is added in the message to be sent by the source line card, i.e., the destination address is added in the message to be sent.
Before this block, generally, an address table should be created at the corresponding position in the switching network board or the line card chassis to realize the data switching.
Block 802: The source line card sends the message to the switching network board in the current line card chassis.
In the single-plane data communication system shown in
Block 803: The switching network board judges whether the destination line card is in the current line card chassis according to the destination address of the message, and if the destination line card is in the current line card chassis, the process proceeds to block 804; if the destination line card is not in the current line card chassis, the process proceeds to Block 808.
Block 804: The switching network board sends the message to the relay chip in the current line card chassis according to the destination address of the message.
In general, preferably, the switching network board sends the message to the relay chip of its own according to the destination address of the message and the load balancing principle.
Block 805: The relay chip receiving the message relays the message to the switching chip in other line card chassis according to the destination address of the message.
In general, preferably, the relay chip receiving the message should relay the message to the switching chip in the line card chassis in which the destination line card is located. Obviously, the relay chip receiving the message may also relay the message to other switching chips capable of being connected to the line card chassis in which the destination line card is located.
Block 806: After switching the message, the switching chip in other line card chassis receiving the message sends the message to the relay chip in the current line card chassis.
Preferably, after switching the message, the switching chip in the current line card chassis sends the message to the relay chip in the current line card chassis.
Block 807: The relay chip in the current line card chassis receiving the message relays the message to the destination line card, and this process ends.
Block 808: The switching network board sends the message to the switching chip in the current line card chassis.
In general, preferably, the switching network board sends the message to the switching chip of its own according to the destination address of the message and the load balancing principle.
Block 809: After switching the message, the switching chip receiving the message sends the message to the relay chip in other line card chassis.
In general, preferably, the switching chip receiving the message should switch the message to the relay chip in the line card chassis in which the destination line card is located. Obviously, the switching chip receiving the message may also switch the message to other relay chips capable of being connected to the line card chassis in which the destination line card is located.
Block 810: The relay chip in other line card chassis receiving the message relays the message to the destination line card, and this process ends.
Preferably, the relay chip in the line card chassis in which the destination line card is located relays the message to the destination line card.
A flowchart illustrating implementation of the data communication by utilizing the system shown in
Block 901: The address of a destination line card is added in the message to be sent by the source line card, i.e., the destination address is added in the message to be sent.
Block 902: The source line card sends the message to the switching chip or the relay chip connected to the line card chassis in which the destination address is located according to the destination address. If the switching chip of the current line card chassis is not connected to the line card chassis in which the destination address is located, the source line card sends the message to the relay chip of the current line card chassis, and the process proceeds to block 903. If the switching chip of the current line card chassis is connected to the line card chassis in which the destination address is located, the source line card sends the message to the switching chip in the current line card chassis, and the process proceeds to block 905.
For example, in the system shown in
Block 903: When the source line card sends the message to the relay chip in the line card chassis in which the source line card is located, the relay chip receives the message and relays the message to the switching chip of other line card chassis connected to the relay chip.
For example, in the system shown in
Block 904: The switching chip of other line card chassis receives the message, and the process proceeds to block 906.
Block 905: When the source line card sends the message to the switching chip of the current line card chassis, the switching chip of the current line card chassis receives the message.
Block 906: The switching chip currently receiving the message judges whether the destination line card is in the line card chassis in which the switching chip receiving the message is located according to the destination address of the message, and if the destination line card is in the line card chassis in which the switching chip receiving the message is located, the process proceeds to block 907; if the destination line card is not in the line card chassis in which the switching chip receiving the message is located, the process proceeds to block 908.
Block 907: The switching chip receiving the message switches the message to the destination line card according to the destination address of the message, and then this process ends.
Block 908: The switching chip receiving the message sends, according to the destination address of the message, the message to the relay chip of other line card chassis connected to the switching chip.
Block 909: The relay chip of other line card chassis receiving the message directly sends the message to the destination line card, and then this process ends.
Data switching between different line cards may be realized through the above blocks.
In the technical scheme of the embodiment, the source line card judges the sending path of the message according to the destination address of the message. That is, the source line card judges the message should be sent to the switching chip or the relay chip of the line card chassis in which the source line card is located according to the destination address of the message to realize the data switching between different line cards. In addition, an alternative technical scheme may be adopted as follows. The source line card may send all the messages to the switching chip of the current line card chassis. The switching chip of the current line card chassis judges the sending paths of the messages according to the destination addresses of the messages. If the destination line card is located in the current line card chassis, the switching chip of the current line card chassis forwards the message to the destination line card of the current line card chassis. If the destination line card is not located in the current line card chassis, the switching chip of the current line card chassis further judges whether the switching chip of the current line card chassis is connected to the line card chassis in which the destination address is located. If the switching chip of the current line card chassis is connected to the line card chassis in which the destination line card is located, the switching chip of the current line card chassis sends the message to the relay chip of the line card chassis in which the destination line card is located, and the relay chip of the line card chassis in which the destination line card is located sends the message to the destination line card. If the switching chip of the current line card chassis is not connected to the line card chassis in which the destination line card is located, the switching chip of the current line card chassis forwards the message to the relay chip of the current line card chassis, the relay chip forwards the message to the switching chip of other line card chassis connected to the relay chip of the current line card chassis, and the switching chip of other line card chassis sends the message to the destination line card.
A flowchart illustrating implementation of the data communication by utilizing the system shown in
Block 1001: The address of the destination line card is added in the message to be sent by the source line card, i.e., the destination address is added in the message to be sent.
Block 1002: The source line card sends the message to the switching chip or the relay chip in the current line card chassis according to the load balancing principle. When the source line card sends the message to the relay chip in the current line card chassis, the process proceeds to block 1003. When the source line card sends the message to the switching chip in the current line card chassis, the process proceeds to block 1005.
Block 1003: When the source line card sends the message to the relay chip in the current line card chassis, the relay chip receives the message, and relays the message to the switching chip of other line card chassis connected to the relay chip.
Block 1004: The switching chip of other line card chassis receives the message, and the process proceeds to block 1006.
Block 1005: When the source line card sends the message to the switching chip in the current line card chassis, the switching chip of the current line card chassis receives the message.
Block 1006: The switching chip currently receiving the message judges whether the destination line card is in the line card chassis in which the switching chip receiving the message is located according to the destination address of the message, and if the destination line card is in the line card chassis in which the switching chip receiving the message is located, the process proceeds to block 1007; if the destination line card is not in the line card chassis in which the switching chip receiving the message is located, the process proceeds to block 1008.
Block 1007: The switching chip receiving the message switches the message to the destination line card according to the destination address of the message, and then this process ends.
Block 1008: The switching chip receiving the message sends the message to the relay chip of other line card chassis connected to the switching chip according to the destination address of the message.
Block 1009: The relay chip of other line card chassis receiving the message directly forwards the message to the corresponding destination line card of the destination address, and then this process ends.
Data switching between different line cards may be realized through the above blocks.
In all the above embodiments of the present invention, the switching chips and the relay chips of the same line card chassis may be integrated on the same switching network board. Or, the switching chips and the relay chips of the same line card chassis may be integrated respectively as a functional module on the same chip. The integrated switching network board or chip has both functions of forwarding and relaying the message data.
By implementing the above embodiments of the present invention, in the case that a few line card chassis are cascaded, the networking complexity may be reduced, the networking cost may be saved, and the situation in the prior art in which the network fails to operate once the failure occurs to the switching chassis may be avoided, thus enhancing the system reliability.
Though the exemplary implementations of the present invention have been described above, they are not intended to limit the present invention. Any ordinary substitutions and variations made within the scope of the embodiments of the present invention by those skilled in the art should fall within the scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
200710076307.X | Jun 2007 | CN | national |