This application is based upon and claims the benefit of priority of the prior Japanese Patent Application No. 2016-040901, filed on Mar. 3, 2016, the entire contents of which are incorporated herein by reference.
The present embodiments relate to a data relaying apparatus and a method of relaying data.
For example, in order to improve the band use efficiency or the communication path switching performance when a failure occurs, transparent interconnection of lots of links (TRILL) and shortest path bridging (SPB) have been devised newly as routing protocols. Each of TRILL and SPB may be used as a multi-way communication path and allows high speed switching when a failure occurs. Since, in TRILL or SPB, all network (NW) apparatus such as data relaying apparatus in the network incorporate the same protocol, in an urban area or at an important base, a communication path for the third way or the fourth way may be secured and communication having high reliability may be implemented.
On the other hand, at a deserted place, the main function may be required for a NW apparatus is a packet relaying function, and the switching function among three ways or four ways may not be required. However, in order to secure the coexistence of a NW at a deserted place with a NW in an urban area, also at the deserted place, NW apparatus that incorporate such a protocol as TRILL or SPB are installed. Therefore, the cost increases.
Thus, if the compatibility of a protocol may be secured between TRILL/SPB and Ethernet (registered trademark), a communication NW having high reliability may be implemented at a low cost. As a related art, there is Japanese National Publication of International Patent Application No. 2014-502126.
According to an aspect of the embodiments, a data relaying apparatus includes a first input port, a first output port, a memory and a processor coupled to the memory and configured to select, based on a destination of a data frame received by the first input port, one of a first process and a second process, the first process including removing first header information of the data frame and transmitting, to the first output port, the data frame from which the first header information is removed, and the second process including adding second header information to the data frame received by the first input port and transmitting, to the first output port, the data frame to which the second header information is added, and perform the selected one of the first process and the second process on the data frame received by the first input port, wherein the first output port is configured to output the data frame for which the selected process is performed.
The object and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the claims.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, as claimed.
Between TRILL and Ethernet or between SPB and Ethernet, many additional functions or components may be required in order to secure the compatibility between the different protocols, and therefore, the merits of coexistence of different protocols degrade. In short, it is the actual situation that, between TRILL and Ethernet, between SPB and Ethernet or the like at present, the compatibility between the different protocols is not yet assured successfully. Therefore, a system is demanded which may secure the compatibility between protocols different from each other with an additional cost suppressed while an existing switching function is used.
In the following, working examples of a data relaying apparatus and a data relaying method disclosed in the present application are described in detail with reference to the drawings. It is to be noted, however, that the disclosed technology shall not be restricted by the working examples. Further, the working examples described below may be combined suitably within a range within which no conflict is caused.
The TRILL SW 3A accommodates and couples to, for example, the terminals 2A and 2B. The TRILL SW 3B accommodates and couples to, for example, the terminal 2C. The TRILL SW 3C accommodates and couples to, for example, the terminal 2E. The TRILL SW 3D accommodates and couples to, for example, the terminal 2F.
In the data relaying system 1, when the terminal 2A transmits data to the terminal 2F, the data is relayed in order along the path of the TRILL SW 3A, the TRILL SW 3B, the L2 SW 4C, the L2 SW 4D, the TRILL SW 3C, and the TRILL SW 3D. In this case, the communication protocol changes in the order of TRILL, Ethernet, and TRILL.
In the data relaying system 1, when the terminal 2B transmits data to the terminal 2D, the data is relayed in the order of the TRILL SW 3A, the TRILL SW 3B, the L2 SW 4A, and the L2 SW 4B. In this case, the communication protocol changes in the order of TRILL and Ethernet.
The discrimination unit 11 extracts destination information and header information in a received frame and discriminates a frame type based on the header information in the received frame. It is to be noted, as the frame type, there are an Ethernet frame 50, a TRILL frame 60, and a transmission type TRILL frame 70 hereinafter described.
The distribution unit 12 distributes, if a received frame is a TRILL frame 60 without through the Ethernet based on a result of a discrimination by the discrimination unit 11, the TRILL frame 60 to the first output port P12. The distribution unit 12 distributes, if the received frame is a TRILL frame 60 destined for a terminal 2 subordinate to the Ethernet at the succeeding stage based on a result of the discrimination by the discrimination unit 11, the TRILL frame 60 to the second output port P22. The distribution unit 12 distributes, if the received frame is a TRILL frame 60 destined for a terminal 2 subordinate to the TRILL through the Ethernet based on a result of the discrimination by the discrimination unit 11, the TRILL frame 60 to the second frame conversion unit 15. The distribution unit 12 distributes, if the received frame is a transmission type TRILL frame 70 based on a result of the discrimination by the discrimination unit 11, the transmission type TRILL frame 70 to the third frame conversion unit 16.
The first frame conversion unit 13 converts a TRILL frame 60 into an Ethernet frame 50 by removing the TRILL header 61 in the TRILL frame 60. It is to be noted that the first frame conversion unit 13 is configured by coupling the second output port P22 and the second input port P21 to each other. The first frame conversion unit 13 outputs the received TRILL frame 60 from the second output port P22 to remove the TRILL header 61 from the TRILL frame 60 thereby to form an Ethernet frame 50. Further, the first frame conversion unit 13 inputs the Ethernet frame 50 after the removal of the TRILL header 61 outputted from the second output port P22 to the second input port P21 so as to transfer the Ethernet frame 50 to the transfer unit 14. The transfer unit 14 transfers the Ethernet frame 50 inputted from the second input port P21 to the first output port P12 so as to be outputted from the first output port P12.
The second frame conversion unit 15 encapsulates a TRILL frame 60 with the external Ethernet header 71 and fragments data of the payload of the TRILL frame 60 to convert the TRILL frame 60 into a transmission type TRILL frame 70. The second frame conversion unit 15 includes an encapsulation unit 21 and a fragmentation unit 22. The encapsulation unit 21 adds an external Ethernet header 71 to the TRILL frame 60 to generate a transmission type TRILL frame 70. It is to be noted that the frame length of the TRILL frame 60 sometimes becomes, for example, equal to or greater than 1524 bytes because the TRILL header 61 of the 24 bytes is added to the Ethernet frame 50.
The fragmentation unit 22 decides whether or not the frame length of the generated transmission type TRILL frame 70 exceeds a maximum transmission frame length of the L2 SW 4. It is to be noted that the maximum transmission frame length is 1500 bytes. The L2 SW 4 discards the received frame when the received frame has a length exceeding the maximum transmission frame length. When the frame length of the transmission type TRILL frame 70 does not exceed the maximum transmission frame length of the L2 SW 4, the fragmentation unit 22 outputs the transmission type TRILL frame 70 from the first output port P12. On the other hand, if the frame length of the transmission type TRILL frame 70 exceeds the maximum transmission frame length of the L2 SW 4, the fragmentation unit 22 divides the data of the payload 55 in the transmission type TRILL frame 70.
The third frame conversion unit 16 removes the external Ethernet header 71 from the transmission type TRILL frame 70 and defragments the fragments of the transmission type TRILL frame 70 to convert the transmission type TRILL frame 70 into a TRILL frame 60. The third frame conversion unit 16 includes a decapsulation unit 31 and a defragmentation unit 32. The decapsulation unit 31 decapsulates the transmission type TRILL frame 70 to remove the external Ethernet header 71 from the transmission type TRILL frame 70. Further, the defragmentation unit 32 refers to the fragment tag 82 in the transmission type TRILL frame 70 to defragment the divisional payloads 55A to 55C of each of the fragments 80A to 80C. Then, the defragmentation unit 32 converts the transmission type TRILL frame 70 into a TRILL frame 60 by defragmenting each of the fragments 80A to 80C and outputs the TRILL frame 60 to the first output port P12.
Next, operation of the data relaying system 1 of the working example 1 is described.
When the TRILL SW 3B receives the TRILL frame 60 destined for the terminal 2F, the TRILL SW 3B identifies, based on destination information in the TRILL frame 60, the TRILL frame 60 as a TRILL frame 60 that is to pass the L2 SWs 4A and 4B. As a result, the TRILL SW 3B encapsulates the TRILL frame 60 with an external Ethernet header 71 and fragments the data of the payload in the TRILL frame 60 to convert the TRILL frame 60 into a transmission type TRILL frame 70. Then, the TRILL SW 3B relays the transmission type TRILL frame 70 obtained by the conversion to the L2 SW 4C.
When the L2 SW 4C receives the transmission type TRILL frame 70, the L2 SW 4C relays the received transmission type TRILL frame 70 to the L2 SW 4D. Further, when the L2 SW 4D receives the transmission type TRILL frame 70, the L2 SW 4D relays the received transmission type TRILL frame 70 to the TRILL SW 3C.
Further, the TRILL SW 3C removes the external Ethernet header 71 in the received transmission type TRILL frame 70 and defragments the data of the fragments to covert the transmission type TRILL frame 70 into a TRILL frame 60. Then, when the TRILL SW 3C receives the TRILL frame 60, since the destination information in the TRILL frame 60 is the terminal 2F, the TRILL SW 3C removes the TRILL header 61 in the TRILL frame 60 and relays a resulting Ethernet frame 50 to the terminal 2F.
Further, if a transmission type TRILL frame 70 is received from the first input port P11, the discrimination unit 11 in the TRILL SW 3C discriminates destination information in and a frame type of the received transmission type TRILL frame 70 and notifies the distribution unit 12 of a result of the discrimination. The distribution unit 12 distributes the transmission type TRILL frame 70 from the first input port P11 to the third frame conversion unit 16. The third frame conversion unit 16 removes the external Ethernet header 71 in the transmission type TRILL frame 70 and defragments the fragments to covert the transmission type TRILL frame 70 into a TRILL frame 60. Then, the third frame conversion unit 16 outputs the TRILL frame 60 from the first output port P12. As a result, the TRILL SW 3C may relay the TRILL frame 60 in the transmission type TRILL frame 70.
If the TRILL SW 3B receives the TRILL frame 60 destined for the terminal 2D, the TRILL SW 3B identifies the TRILL frame 60, based on the destination information in the TRILL frame 60, as a frame destined for the terminal 2D subordinate to the L2 SW 4B in the Ethernet. As a result, the TRILL SW 3B removes the TRILL header 61 of the TRILL frame 60 to convert the TRILL frame 60 into an Ethernet frame 50 and relays the Ethernet frame 50 obtained by the conversion to the L2 SW 4A.
The L2 SW 4A transmits the Ethernet frame 50 destined for the terminal 2D to the L2 SW 4B. Further, when the L2 SW 4B receives the Ethernet frame 50, the L2 SW 4B relays the received Ethernet frame 50 to the terminal 2D.
In order to output the TRILL frame 60 received at the first input port P11 to the second output port P22, the TRILL SW 3 removes the TRILL header 61 in the TRILL frame 60. Then, the TRILL SW 3 transfers the Ethernet frame 50 after the removal of the TRILL header 61 to the first output port P12 so as to be outputted from the first output port P12. As a result, the L2 SW 4 may relay the data in the TRILL frame 60 to the terminal 2 subordinate to the Ethernet.
The TRILL SW 3 encapsulates the TRILL frame 60 received at the first input port P11 with the external Ethernet header 71 and outputs a resulting transmission type TRILL frame 70 to the first output port P12. As a result, the L2 SW 4 may relay the TRILL frame 60 using the transmission type TRILL frame 70.
The TRILL SW 3 removes the external Ethernet header 71 from the transmission type TRILL frame 70 received at the first input port P11 and outputs the TRILL frame 60 after the removal of the external Ethernet header 71 to the first output port P12. As a result, the TRILL SW 3 may relay the data of the TRILL frame 60 in the transmission type TRILL frame 70.
In the data relaying system 1 of the working example 1, when a wide-area mesh network is to be constructed, in a station that may not require a switching function, for example, for three ways, four ways or the like, the L2 SWs 4 that are less expensive may be disposed without using the TRILL SWs 3 that are expensive. As a result, the compatibility between different protocols may be secured at a low cost.
It is to be noted that, when the frame length of the transmission type TRILL frame 70 exceeds a maximum transmission frame length, the TRILL SW 3 fragments data of the payload in the transmission type TRILL frame 70. However, when the frame length of the transmission type TRILL frame 70 does not exceed the maximum transmission frame length, the TRILL SW 3 does not fragment the data of the payload in the transmission type TRILL frame 70.
In the data relaying system 1, the TRILL SWs 3 that relay a TRILL frame 60 are exemplified, and a case in which the TRILL frame 60 is converted into a transmission type TRILL frame 70 and another case in which the TRILL frame 60 is converted into an Ethernet frame 50 are exemplified. However, the data relaying system 1 is not limited to TRILL, for example, also may be applied to SPB. In this case, an embodiment of a data relaying system 1A in which an SPB SW 5 that relays an SPB frame is used in place of the TRILL SW 3 is described below as a working example 2.
The data relaying system 1A depicted in
The discrimination unit 11A extracts destination information in or header information of a received frame and discriminates a frame type based on the header information in the received frame. It is to be noted, as the frame type, there are an Ethernet frame 50, an SPB frame 90, and a transmission type SPB frame 100 hereinafter described.
The distribution unit 12A distributes, where a received frame is an SPB frame 90 without through the Ethernet based on a result of the discrimination by the discrimination unit 11A, the SPB frame 90 to the first output port P12. The distribution unit 12A distributes, where the received frame is an SPB frame 90 destined for a terminal 2 subordinate to the Ethernet at the succeeding stage based on a result of the discrimination by the discrimination unit 11A, the SPB frame 90 to the second output port P22. The distribution unit 12A distributes, where the received frame is an SPB frame 90 destined for a terminal 2 subordinate to the SPB through the Ethernet based on a result of the discrimination by the discrimination unit 11A, the SPB frame 90 to the second frame conversion unit 15A. The distribution unit 12A distributes, where the received frame is a transmission type SPB frame 100 based on a result of the discrimination by the discrimination unit 11A, the transmission type SPB frame 100 to the third frame conversion unit 16A.
The first frame conversion unit 13A converts an SPB frame 90 into an Ethernet frame 50 by removing the SPB header 91 in the SPB frame 90. It is to be noted that the first frame conversion unit 13A is configured by coupling the second output port P22 and the second input port P21. The first frame conversion unit 13A outputs the received SPB frame 90 from the second output port P22 to remove the SPB header 91 from the SPB frame 90 thereby to form an Ethernet frame 50. Further, the first frame conversion unit 13A inputs the Ethernet frame 50 after the removal of the SPB header 91 outputted from the second output port P22 to the second input port P21 so as to be transferred to the transfer unit 14A. The transfer unit 14A transfers the Ethernet frame 50 inputted to the second input port P21 to the first output port P12 so as to be outputted from the first output port P12.
The second frame conversion unit 15A fragments data in the SPB frame 90 to convert the SPB frame 90 into a transmission type SPB frame 100. The second frame conversion unit 15A includes a fragmentation unit 22A. It is to be noted that the frame length of the SPB frame 90 sometimes becomes, for example, equal to or greater than 1522 bytes because the SPB header 91 of 22 bytes is added to the Ethernet frame 50.
The fragmentation unit 22A decides whether or not the frame length of the transmission type SPB frame 100 exceeds a maximum transmission frame length of the L2 SW 4. It is to be noted that the maximum transmission frame length is 1500 bytes. When the frame length of the transmission type SPB frame 100 does not exceed the maximum transmission frame length of the L2 SW 4, the fragmentation unit 22A outputs the transmission type SPB frame 100 from the first output port P12. On the other hand, when the frame length of the transmission type SPB frame 100 exceeds the maximum transmission frame length of the L2 SW 4, the fragmentation unit 22A divides the data of the payload 55 in the transmission type SPB frame 100.
The third frame conversion unit 16A defragments the fragments in the transmission type SPB frame 100 to convert the transmission type SPB frame 100 into an SPB frame 90. The third frame conversion unit 16A includes a defragmentation unit 32A. The defragmentation unit 32A refers to the fragment tag 112 in the transmission type SPB frame 100 to defragment the divisional payloads 55A to 55C of each of the fragments 110A to 110C. Then, the defragmentation unit 32A converts the transmission type SPB frame 100 into an SPB frame 90 by defragmenting each of the fragments and outputs the SPB frame 90 to the first output port P12.
Further, if the discrimination unit 11A in the SPB SW 5C receives a transmission type SPB frame 100 from the first input port P11, the discrimination unit 11A discriminates destination information in and a frame type of the received transmission type SPB frame 100 and notifies the distribution unit 12A of a result of the discrimination. The distribution unit 12A distributes the transmission type SPB frame 100 from the first input port P11 to the third frame conversion unit 16A. The third frame conversion unit 16A defragments the fragments (divisional payloads) in the transmission type SPB frame 100 to convert the transmission type SPB frame 100 into an SPB frame 90. Then, the third frame conversion unit 16A outputs the SPB frame 90 from the first output port P12. As a result, the SPB SW 5C may relay the SPB frame 90 in the transmission type SPB frame 100.
In order to output the SPB frame 90 received at the first input port P11 to the second output port P22, the SPB SW 5 removes the SPB header 91 in the SPB frame 90 and transfers the Ethernet frame 50 after the removal to the first output port P12 so as to be outputted from the first output port P12. As a result, the L2 SW 4 may relay the data in the SPB frame 90 to the terminal 2 subordinate to the Ethernet.
The SPB SW 5 fragments the data (payload) in the SPB frame 90 received at the first input port P11 to convert the SPB frame 90 into a transmission type SPB frame 100. Then, the SPB SW 5 outputs the transmission type SPB frame 100 after the conversion to the first output port P12. As a result, the L2 SW 4 may relay the data of the SPB frame 90 using the transmission type SPB frame 100.
The SPB SW 5 defragments the fragments in the transmission type SPB frame 100 received at the first input port P11 to convert the transmission type SPB frame 100 into an SPB frame 90 and outputs the SPB frame 90 after the conversion to the first output port P12. As a result, the SPB SW 5 may relay the data of the SPB frame 90 in the transmission type SPB frame 100.
While, in the working examples 1 and 2 described above, the TRILL SW 3 and the SPB SW 5 are exemplified, respectively, the embodiment of the present application may be applied also to a TRILL/SPB SW in which both of the TRILL and the SPB are used.
Further, each component of each element depicted in the figures may not necessarily be configured physically in such a manner as depicted in the figures. For example, particular forms of disintegration and integration of each element are not limited to those depicted in the figures, and all or part of them may be functionally or physically disintegrated or integrated in an arbitrary unit in response to various loads, use situations and so forth.
Further, the various processing functions performed by each apparatus may be entirely or partly executed on a central processing unit (CPU), a digital signal processor (DSP), a field programmable gate array (FPGA) or the like. Further, the various processing functions may be entirely or partly executed on a program that is analyzed and executed by a CPU or the like or on hardware by wired logics.
The areas for storing various kinds of information may be configured, for example, from a read only memory (ROM) or from a random access memory (RAM) such as a synchronous dynamic random access memory (SDRAM), a magnetoresistive random access memory (MRAM), or a non volatile random access memory (NVRAM).
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the invention and the concepts contributed by the inventor to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions, nor does the organization of such examples in the specification relate to a showing of the superiority and inferiority of the invention. Although the embodiments of the present invention have been described in detail, it should be understood that the various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2016-040901 | Mar 2016 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
9847933 | Decusatis | Dec 2017 | B2 |
20140241364 | Raman | Aug 2014 | A1 |
20150016462 | Zhou | Jan 2015 | A1 |
20150092602 | Hao | Apr 2015 | A1 |
20150222533 | Birrittella | Aug 2015 | A1 |
20160134563 | Yu | May 2016 | A1 |
20160330141 | Vobbilisetty | Nov 2016 | A1 |
20170331640 | Hao | Nov 2017 | A1 |
20180013679 | Zhang | Jan 2018 | A1 |
Number | Date | Country |
---|---|---|
2014-502126 | Jan 2014 | JP |
WO 2012094216 | Jul 2012 | WO |
Number | Date | Country | |
---|---|---|---|
20170257236 A1 | Sep 2017 | US |