CN117061623B - FC route realization method and switching equipment - Google Patents
FC route realization method and switching equipment Download PDFInfo
- Publication number
- CN117061623B CN117061623B CN202311315630.3A CN202311315630A CN117061623B CN 117061623 B CN117061623 B CN 117061623B CN 202311315630 A CN202311315630 A CN 202311315630A CN 117061623 B CN117061623 B CN 117061623B
- Authority
- CN
- China
- Prior art keywords
- routing
- interface
- module
- protocol
- route
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000006243 chemical reaction Methods 0.000 claims abstract description 60
- 230000008569 process Effects 0.000 claims description 14
- 230000004044 response Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 10
- 230000008901 benefit Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 3
- 239000004744 fabric Substances 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present disclosure provides an FC routing implementation method and a switching device, including that the switching module receives routing information sent by the input interface and protocol types sent by the multiple interfaces; routing information sent by the input interface and protocol types sent by the interfaces are sent to the FC routing module; the FC route module looks up a route according to route information sent by the input interface to obtain a route result; according to the protocol type of the input interface and the protocol type of the output interface, obtaining protocol conversion parameters, and sending the protocol conversion parameters and the routing result to the exchange module; and the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter and sends the format to the output interface. In this way, FC routing can still be normally performed in a scenario where multiple protocols coexist, and the protocols can be mutually converted.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of communication technology, in particular to an FC route realization method and switching equipment.
Background
The FC (Fibre Channel, or mesh Channel) protocol is one of the most widely used protocols in storage networks, essentially a collection of hardware and transport protocols that provide high-speed transmission, providing high-speed, high-data transmission performance that is more efficient than ethernet and TCP/IP (Transmission Control Protocol/Internet Protocol ) protocols. FC networks are capable of transporting many upper layer protocol data, including SCSI (Small Computer System Interface ), IP (Internet Protocol, internet protocol), cluster Virtual Interface (VIA), high performance parallel interface (HIPPI), fiber optic connection (FICON), etc., currently primarily carrying SCSI.
There are three basic types of topologies for FC networks: point-to-point, arbitration ring, and switching fabric, switching fabric is widely used at present based on performance and wide application factors. Considering the problem of incompatibility of the devices used and the conventional network, those skilled in the art will often use FC switches for FC routing. However, this method is a routing method that can only be compatible with FC protocols alone, and cannot meet the requirement that a user can coexist a plurality of protocols and mutually convert each protocol under a multiprotocol network environment.
Therefore, how to provide an FC routing implementation manner suitable for multiple protocol conversions is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the disclosure provides an FC route implementation method and switching equipment.
In a first aspect, an embodiment of the present disclosure provides an FC routing implementation method, applied to a switching module, where the switching device includes a plurality of interfaces, the switching module, and an FC routing module, where the plurality of interfaces includes an input interface and an output interface, and the method includes:
the exchange module receives the route information sent by the input interface and the protocol types sent by the interfaces;
the switching module sends the routing information sent by the input interface and the protocol types sent by the interfaces to the FC routing module;
the FC route module looks up a route according to route information sent by the input interface to obtain a route result, wherein the route result comprises indication information of the output interface;
the FC route module obtains protocol conversion parameters according to the protocol type of the input interface and the protocol type of the output interface, and sends the protocol conversion parameters and the route result to the exchange module;
the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter and sends the format to the output interface.
Optionally, each of the plurality of interfaces includes at least one internal port; and
before the switching module receives the routing information sent by the input interface and the protocol types sent by the interfaces, the method further includes:
each interface polls and acquires an internal port with the highest priority in at least one corresponding internal port, and the internal port is respectively used as a target internal port of each interface;
and each interface takes the routing information of the corresponding target internal port as the routing information of each interface respectively.
Optionally, each interface carries any one of a plurality of protocol types, including FC protocol types.
Optionally, the switching module receives routing information sent by the input interface, including:
the switching module receives routing information sent by a plurality of input interfaces;
the switching module sends the routing information sent by the input interface and the protocol types sent by the interfaces to the FC routing module, and includes:
the exchange module acquires an interface with a protocol type of FC protocol type in the plurality of input interfaces to obtain at least one polling interface;
the exchange module polls and acquires the priority of the at least one polling interface;
the exchange module sequentially sends the route information sent by the at least one polling interface to the FC route module according to the priority of the at least one polling interface;
and the switching module sends the protocol types sent by the interfaces to the FC routing module.
Optionally, the above FC routing module looks up a route according to the routing information sent by the above input interface, to obtain a routing result, including:
the FC route module obtains the indication information of the corresponding output interface from the route table according to the route information sent by the input interface;
the FC route module routes the route information sent by the input interface to obtain route parameters;
and the FC routing module generates a routing result according to the indication information of the output interface and the routing parameter.
Optionally, the number of beats used in the process of obtaining the indication information of the corresponding output interface in the routing table by the FC routing module according to the routing information sent by the input interface is higher than the number of clock beats used in the process of sending the protocol types sent by the interfaces to the FC routing module by the switching module.
Optionally, the switching module converts the routing result into a format compatible with a protocol type of the output interface according to the protocol conversion parameter, and sends the format to the output interface, and the switching module includes:
the exchange module analyzes the protocol conversion parameters to obtain an analysis result;
responding to the analysis result that the conversion is needed, the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter and sends the format to the output interface;
and the switching module sends the routing result to the output interface in response to the analysis result that conversion is not needed.
In a second aspect, embodiments of the present disclosure provide a switching device including a plurality of interfaces including an input interface and an output interface, a switching module, and an FC routing module;
the interfaces are used for sending the protocol types of the interfaces;
the input interface is also used for sending the route information of the input interface;
the switching module is used for receiving the route information sent by the input interface and the protocol types sent by the interfaces; transmitting the routing information transmitted by the input interface and the protocol types transmitted by the interfaces to the FC routing module; converting the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameters, and sending the format to the output interface;
the FC route module is used for looking up a route according to route information sent by the input interface to obtain a route result, wherein the route result comprises indication information of the output interface; according to the protocol type of the input interface and the protocol type of the output interface, obtaining protocol conversion parameters, and sending the protocol conversion parameters and the routing result to the exchange module;
and the output interface is used for receiving the routing result which is sent by the switching module and has a format compatible with the protocol type of the output interface.
Optionally, each of the plurality of interfaces includes at least one internal port; and
each interface of the plurality of interfaces is used for polling and acquiring an internal port with the highest priority from at least one corresponding internal port, and the internal port is used as a target internal port of each interface; and respectively taking the routing information of the corresponding target internal port as the routing information of each interface.
Optionally, each interface carries any one of a plurality of protocol types, including FC protocol types.
In order to implement FC routing capable of mutual conversion between protocols in a multiprotocol network environment, embodiments of the present disclosure provide an FC routing implementation method and a switching device to which the method is applied, the switching device including a plurality of interfaces including an input interface and an output interface, a switching module, and an FC routing module. Receiving, by the switching module, routing information sent by the input interface and protocol types sent by the plurality of interfaces; the switching module sends the routing information sent by the input interface and the protocol types sent by the interfaces to the FC routing module; the FC route module looks up a route according to route information sent by the input interface to obtain the route result, wherein the route result comprises the output interface; the FC route module obtains protocol conversion parameters according to the protocol type of the input interface and the protocol type of the output interface, and sends the protocol conversion parameters and the route result to the exchange module; the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter and sends the format to the output interface. Therefore, the routing result of the FC protocol type is converted into the routing result compatible with other protocol types in the routing network through the protocol conversion parameters, and the FC routing can still be normally performed in a scene of coexistence of multiple protocols, so that the mutual conversion among the protocols is ensured.
Drawings
Other features, objects and advantages of the present disclosure will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the disclosure. In the drawings:
FIG. 1 is a schematic diagram of a prior art FC route implementation method;
FIG. 2 is a timing diagram of one embodiment of an FC route implementation method of the present disclosure;
FIG. 3 is a schematic diagram of an FC routing module implementation of one embodiment of the FC routing implementation method of the present disclosure;
FIG. 4 is an FC routing principle of one embodiment of the FC routing implementation method of the present disclosure;
fig. 5 is a schematic diagram of the structure of one embodiment of a switching apparatus of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Referring to fig. 1, which illustrates the principle of an existing FC routing implementation method, an existing FC routing uses a switching fabric, and performs routing processing in units of single interfaces (Bank 0, bank 1..bankn). Accessing the exchange module by using the internal ports of each Bank (for example, the number of the internal ports of each Bank is 1, 2, 4 or 8, etc.); the exchange module preferentially performs sequence arrangement of the Bank (the arrangement sequence polls with effective signals) so as to determine the sequence of the Bank entering the FC routing module; the internal port of the single Bank enters the FC routing module and is subjected to polling sequence processing by taking the effective signal as the reference; the route results are all route results output of a single internal port and are returned to the switching module. And after the results of the port routing processing, such as the Bank number, the address, the routing destination port and the like, are processed by the switching module, the data is distributed to the destination port (namely the output port).
However, this method is to perform routing processing in units of single banks, because each Bank needs to sequentially send routing information of each internal port to the FC routing module, and actually, sequential routing processing is performed in units of single internal ports. The routing information of each Bank needs to be pre-cached in advance, the internal ports of a single Bank share a routing ram table, the occupied routing ram tables are separated and independent by taking the Bank as a unit, ram resources are greatly wasted, and port caching operation is carried out by each Bank, so that the occupation of cache resources is increased. Meanwhile, the FC routing mode can only perform routing processing aiming at the FC protocol, and can not perform protocol conversion in a multi-protocol network environment.
With continued reference to fig. 2, there is shown a timing diagram of one embodiment of an FC route implementation method according to the present disclosure, the FC route implementation method comprising the steps of:
in step 201, each interface polls and acquires the internal port with the highest priority in at least one corresponding internal port, and the internal port is used as the target internal port of each interface.
The interface is also called a Bank. The entire switching device may have multiple interfaces, wherein the interfaces may be generic hardware interfaces. Each interface may carry any one of a plurality of protocols (such as FC protocol, ethernet protocol, etc.), and specifically, one of the protocols is configured by a user to be selected as the protocol carried by the current interface. Thus, a multi-protocol network environment can be formed on the original structure.
Since each interface may include at least one internal port (also referred to as a port), each interface may first poll for the highest priority internal port as the target internal port before entering the switching module.
Step 202, each interface uses the routing information of the corresponding target internal port as the routing information of each interface.
And each interface takes the routing information of the corresponding target internal port as the routing information of each interface respectively. Therefore, for a single interface, each interface only allows the input of one internal port data signal at the same time, and the information entering the switching module can be changed from the routing information of a plurality of internal ports to the determined routing information of a single internal port, so that the data quantity of the internal port cached in the switching module is reduced, and the cache resource occupation can be saved to a certain extent.
In step 203, the switching module receives the routing information sent by the input interface and the protocol types sent by the multiple interfaces.
The input interface may be any interface in the entire switching network that requires FC routing. Each input interface can send the route information of the corresponding target internal port to the exchange module as the route information of the input interface. The routing information of the input interface may be one or more, as the case may be.
Since any interface in the entire FC network may become an output interface (i.e., an interface that receives the routing result of an input interface), multiple interfaces are all interfaces in the entire switching network, and whether or not they are input interfaces, it is necessary to send their protocol types from the switching module. The protocol types carried by all interfaces are obtained in the step, so that the protocol conversion parameters corresponding to the protocol types carried by the output interfaces can be conveniently called in the subsequent step, and the routing result is subjected to format conversion, so that the effect of adapting to the multi-protocol network environment is achieved.
In step 204, the switching module sends the routing information sent by the input interface and the protocol types sent by the multiple interfaces to the FC routing module.
Because the FC routing module can only route the routing information with the protocol type FC protocol type, before sending the routing information to the FC routing module, the routing information with the protocol type FC protocol type needs to be filtered out, and the rest of the routing information will not be processed.
When the input interface is one, if the protocol type of the input interface is FC protocol type, the route information of the input interface and the protocol types of all interfaces can be directly sent to the FC route without format conversion.
When the input interface is plural, step 204 may include the sub-steps of:
in the sub-step 2041, the exchange module obtains an interface with a protocol type being an FC protocol type from the plurality of interfaces, and obtains at least one polling interface.
Because the FC routing module can only route the FC protocol type, it is necessary to screen out the interface with the FC protocol type from the multiple input interfaces (the screened interface is referred to as a polling interface), and then uniformly poll the screened interfaces, so that the multiple interfaces are arranged in a single interface to be input into the FC routing module for routing.
In a sub-step 2042, the switching module polls for priority of at least one polling interface.
Since each interface has been polled before being input to the switching module, it includes only one internal port, the target internal port. Thus, the port priority of the at least one polling interface is polled, i.e., the port priority of the at least one target internal port is polled.
Sub-step 2043, the switching module sequentially sends routing information sent by the at least one polling interface to the FC routing module according to the priority of the at least one polling interface.
And entering the at least one polling interface into the FC route according to the port priority of the at least one polling interface obtained by the polling according to the time stamp arranged sequence. Therefore, each interface does not carry out routing processing in an independent unit, all ports can share the routing table, repeated ram occupation of the routing table is reduced, a port polling mechanism in the interface is simplified, occupation of cache resources is reduced to a certain extent, and the structure has obvious advantages in terms of resource utilization especially under the condition that the number of ports is increased.
Sub-step 2044, the switching module sends the protocol types sent by the plurality of interfaces to the FC routing module.
In step 205, the fc routing module looks up the route according to the routing information sent by the input interface, and obtains the routing result.
Referring to fig. 3, a schematic diagram of FC routing module execution according to one embodiment of the FC routing implementation method of the present disclosure is shown. The process of performing table lookup routing according to the routing information of the single port is the basic behavior of the existing FC routing module. The result output by the whole FC route module comprises a route result, wherein the route result comprises route destination port information (namely output interface information corresponding to an input interface).
Specifically, the process of the FC routing module lookup routing in step 205 includes the following sub-steps:
sub-step 2051: and the FC routing module acquires the indication information of the corresponding output interface from the routing table according to the routing information sent by the input interface.
Sub-step 2052: and the FC routing module routes the routing information sent by the input interface to obtain the routing parameters.
The routing parameters include various parameters generated by the normal route, without limitation.
Sub-step 2053: and the FC routing module generates a routing result according to the indication information of the output interface and the routing parameters.
As a possible implementation, the number of beats used in the process of sub-step 2051 (FC routing module obtains the indication information of the corresponding output interface in the routing table according to the routing information sent by the input interface) is higher than the number of clock beats used in the process of sub-step 2044 (switching module sends the protocol types sent by the interfaces to FC routing module).
With continued reference to fig. 3, compared with the prior art, the present embodiment adds a new protocol type collection process. The process of table lookup routing and protocol type collection processing can be performed in two ways simultaneously, and because the table lookup process is a pipeline process, parameters collected by the protocol type are synchronized with the table lookup result when the table lookup result is completed, so as to improve the routing efficiency, the clock beat number used in step 2051 should be higher than that of step 2044.
In step 206, the fc routing module obtains the protocol conversion parameters according to the protocol type of the input interface and the protocol type of the output interface.
The FC route collects the protocol type of the input interface and the protocol type of the output interface according to the received multiple port protocol types.
When the protocol type of the input interface is inconsistent with the protocol type of the output interface, collecting parameters required for converting the protocol type of the input interface into the protocol type of the output interface, namely protocol conversion parameters, wherein the protocol conversion parameters can be analyzed into analysis results required to be converted. The protocol conversion parameter may be a preset parameter, or may be obtained by analyzing a protocol type of the input interface and a protocol type of the output interface, which is not limited herein.
When the protocol type of the input interface is consistent with the protocol type of the output interface, format conversion is not needed, and therefore, the collection protocol conversion parameter is null. The protocol conversion parameters can be analyzed as no conversion is needed, no format conversion is needed, and only the routing result is directly sent to the output interface.
In step 207, the fc routing module sends the protocol conversion parameters and the routing result to the switching module.
And transmitting the protocol conversion parameters and the routing result to the exchange module, so that the exchange module can perform format conversion on the routing result to generate an information format adapting to the output interface protocol type.
In step 208, the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter, and sends the format to the output interface.
The above step 208 may include the sub-steps of:
sub-step 2081: the exchange module analyzes the protocol conversion parameters to obtain an analysis result.
Substep 2082: and in response to the analysis result being that conversion is required, the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter and sends the routing result to the output interface.
Sub-step 2083: and the switching module sends the routing result to the output interface in response to the analysis result that conversion is not needed.
In summary, referring to fig. 4, which illustrates an FC routing principle according to an embodiment of the FC routing implementation method of the present disclosure, each interface in the method provided in the foregoing embodiment may carry multiple protocols, and by collecting protocol types, an adapted protocol conversion parameter is obtained, so that an FC routing result may be converted into a routing result adapted to multiple protocols, thereby meeting the requirement that multiple protocols coexist and each protocol can be converted mutually in a multiprotocol network environment. And secondly, the interfaces respectively poll a single internal port before entering the switching module, and then the switching module polls the single port from the whole interfaces, so that the whole interfaces share one routing table, the occupation of repeated ram is reduced, and meanwhile, the occupation of cache resources is reduced. In the case of an increased number of ports, the advantage of this structure in terms of resource utilization is significantly increased.
Referring to fig. 5, which illustrates a structure in which the present disclosure provides one embodiment of a switching device, the apparatus embodiment corresponds to the method embodiment illustrated in fig. 2.
The switching device includes a plurality of interfaces 501, a switching module 502, and an FC routing module 503, where the plurality of interfaces includes an input interface and an output interface;
the interfaces 501 are configured to send protocol types of the interfaces;
the input interface is also used for sending the route information of the input interface;
the switching module 502 is configured to receive routing information sent by the input interface and protocol types sent by the multiple interfaces; transmitting the routing information transmitted by the input interface and the protocol types transmitted by the interfaces to the FC routing module; converting the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameters, and sending the format to the output interface;
the FC routing module 503 is configured to look up a route according to the routing information sent by the input interface, to obtain the routing result, where the routing result includes indication information of the output interface; according to the protocol type of the input interface and the protocol type of the output interface, obtaining protocol conversion parameters, and sending the protocol conversion parameters and the routing result to the exchange module;
and the output interface is used for receiving the routing result which is sent by the switching module and has a format compatible with the protocol type of the output interface.
As a possible implementation, each of the plurality of interfaces includes at least one internal port; and
each interface of the plurality of interfaces is used for polling and acquiring an internal port with the highest priority from at least one corresponding internal port, and the internal port is used as a target internal port of each interface; and respectively taking the routing information of the corresponding target internal port as the routing information of each interface.
As one possible implementation, each interface may carry any of a number of protocol types, including FC protocol types.
As a possible implementation manner, the switching module 502 is further configured to receive routing information sent by a plurality of input interfaces; acquiring an interface with a protocol type of FC protocol type in the plurality of input interfaces to obtain at least one polling interface; polling to obtain the priority of the at least one polling interface; sequentially sending the routing information sent by the at least one polling interface to the FC routing module according to the priority of the at least one polling interface; and transmitting the protocol types transmitted by the interfaces to the FC routing module.
As a possible implementation manner, the FC routing module 503 is further configured to obtain, according to the routing information sent by the input interface, indication information of a corresponding output interface in a routing table; routing is carried out on the routing information sent by the input interface, and routing parameters are obtained; and generating a routing result according to the indication information of the output interface and the routing parameters.
As a possible implementation manner, the number of beats used in the process of acquiring the indication information of the corresponding output interface in the routing table according to the routing information sent by the input interface by the FC routing module is higher than the number of clock beats used in the process of sending the protocol types sent by the interfaces to the FC routing module by the switching module.
As a possible implementation manner, the switching module 502 is further configured to analyze the protocol conversion parameter to obtain an analysis result; responding to the analysis result to be converted, converting the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter, and sending the format to the output interface; and transmitting the routing result to the output interface in response to the analysis result being that conversion is not required.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and apparatus according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules referred to in the embodiments described in the present disclosure may be implemented in software or hardware. The name of the module is not limited to the module itself in some cases, and for example, the FC routing module may be also described as "routing information for transmitting the above-described input interface".
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Claims (9)
1. An FC routing implementation method, applied to a switching device, where the switching device includes a plurality of interfaces, a switching module, and an FC routing module, where the plurality of interfaces includes an input interface and an output interface, the method includes:
the exchange module receives the route information sent by the input interface and the protocol types sent by the interfaces;
the exchange module sends the route information sent by the input interface and the protocol types sent by the interfaces to the FC route module;
the FC route module looks up a route according to route information sent by the input interface to obtain a route result, wherein the route result comprises indication information of the output interface;
the FC routing module obtains protocol conversion parameters according to the protocol type of the input interface and the protocol type of the output interface, and sends the protocol conversion parameters and the routing result to the switching module;
the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter and sends the format to the output interface;
the switching module receives the routing information sent by the input interface, and the routing information comprises:
the switching module receives routing information sent by a plurality of input interfaces;
the switching module sends the routing information sent by the input interface and the protocol types sent by the interfaces to the FC routing module, and the switching module includes:
the exchange module acquires an interface with a protocol type being an FC protocol type in the plurality of input interfaces to obtain at least one polling interface;
the exchange module polls and acquires the priority of the at least one polling interface;
the exchange module sequentially sends the route information sent by the at least one polling interface to the FC route module according to the priority of the at least one polling interface;
and the exchange module sends the protocol types sent by the interfaces to the FC routing module.
2. The method of claim 1, wherein each interface of the plurality of interfaces comprises at least one internal port; and
before the switching module receives the routing information sent by the input interface and the protocol types sent by the interfaces, the method further includes:
each interface polls and acquires an internal port with the highest priority in at least one corresponding internal port, and the internal port is respectively used as a target internal port of each interface;
and each interface takes the routing information of the corresponding target internal port as the routing information of each interface respectively.
3. The method of claim 1, wherein each interface carries any one of a plurality of protocol types, including an FC protocol type.
4. The method of claim 1, wherein the FC routing module looks up a route according to the routing information sent by the input interface, and obtains a routing result, including:
the FC route module obtains indication information of a corresponding output interface from a route table according to route information sent by the input interface;
the FC route module routes the route information sent by the input interface to obtain route parameters;
and the FC routing module generates a routing result according to the output interface and the routing parameter.
5. The method according to claim 4, wherein the number of beats used in the process of obtaining the indication information of the corresponding output interface in the routing table according to the routing information sent by the input interface is higher than the number of clock beats used in the process of sending the protocol types sent by the plurality of interfaces to the FC routing module by the switching module.
6. The method of claim 1, wherein the switching module converting the routing result into a format compatible with a protocol type of the output interface according to the protocol conversion parameter, and transmitting the routing result to the output interface, comprises:
the exchange module analyzes the protocol conversion parameters to obtain an analysis result;
responding to the analysis result that the conversion is needed, the switching module converts the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameter and sends the format to the output interface;
and in response to the analysis result being that conversion is not needed, the switching module sends the routing result to the output interface.
7. A switching device, comprising a plurality of interfaces, a switching module and an FC routing module, wherein the plurality of interfaces comprise an input interface and an output interface;
the interfaces are used for sending the protocol types of the interfaces;
the input interface is also used for sending the route information of the input interface;
the switching module is used for receiving the route information sent by the input interface and the protocol types sent by the interfaces; routing information sent by the input interface and protocol types sent by the interfaces are sent to the FC routing module; converting the routing result into a format compatible with the protocol type of the output interface according to the protocol conversion parameters, and sending the format to the output interface;
the FC route module is used for looking up a route according to route information sent by the input interface to obtain a route result, wherein the route result comprises indication information of the output interface; according to the protocol type of the input interface and the protocol type of the output interface, obtaining protocol conversion parameters, and sending the protocol conversion parameters and the routing result to the exchange module;
the output interface is used for receiving the routing result of the format compatible with the protocol type of the output interface, which is sent by the switching module;
the switching module is further used for receiving the route information sent by the plurality of input interfaces; acquiring an interface with a protocol type of FC protocol type in the plurality of input interfaces to obtain at least one polling interface; polling to obtain the priority of the at least one polling interface; sequentially sending the routing information sent by the at least one polling interface to the FC routing module according to the priority of the at least one polling interface; and transmitting the protocol types transmitted by the interfaces to the FC routing module.
8. The apparatus of claim 7, wherein each of the plurality of interfaces comprises at least one internal port; and
each interface in the plurality of interfaces is used for polling and acquiring an internal port with the highest priority in at least one corresponding internal port, and the internal port is used as a target internal port of each interface; and respectively taking the routing information of the corresponding target internal port as the routing information of each interface.
9. The device of claim 7, wherein each interface carries any one of a plurality of protocol types, including an FC protocol type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311315630.3A CN117061623B (en) | 2023-10-12 | 2023-10-12 | FC route realization method and switching equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311315630.3A CN117061623B (en) | 2023-10-12 | 2023-10-12 | FC route realization method and switching equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117061623A CN117061623A (en) | 2023-11-14 |
CN117061623B true CN117061623B (en) | 2024-02-23 |
Family
ID=88657593
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311315630.3A Active CN117061623B (en) | 2023-10-12 | 2023-10-12 | FC route realization method and switching equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117061623B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420386A (en) * | 2008-12-09 | 2009-04-29 | 南京西倍特科技有限公司 | Multi-field integrated metering network interconnecting routing method |
CN102170430A (en) * | 2011-03-24 | 2011-08-31 | 华中科技大学 | Multi-port multi-network protocol converter |
WO2012167566A1 (en) * | 2011-11-18 | 2012-12-13 | 华为技术有限公司 | Route switching device, network switching system and route switching method |
CN110535788A (en) * | 2019-07-12 | 2019-12-03 | 中国人民解放军战略支援部队信息工程大学 | Multiprotocol controller and multi-protocol exchange chip |
CN114222209A (en) * | 2022-02-21 | 2022-03-22 | 北京国科天迅科技有限公司 | Method and device for realizing routing of hybrid protocol switching network and network switching equipment |
-
2023
- 2023-10-12 CN CN202311315630.3A patent/CN117061623B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420386A (en) * | 2008-12-09 | 2009-04-29 | 南京西倍特科技有限公司 | Multi-field integrated metering network interconnecting routing method |
CN102170430A (en) * | 2011-03-24 | 2011-08-31 | 华中科技大学 | Multi-port multi-network protocol converter |
WO2012167566A1 (en) * | 2011-11-18 | 2012-12-13 | 华为技术有限公司 | Route switching device, network switching system and route switching method |
CN110535788A (en) * | 2019-07-12 | 2019-12-03 | 中国人民解放军战略支援部队信息工程大学 | Multiprotocol controller and multi-protocol exchange chip |
CN114222209A (en) * | 2022-02-21 | 2022-03-22 | 北京国科天迅科技有限公司 | Method and device for realizing routing of hybrid protocol switching network and network switching equipment |
Non-Patent Citations (1)
Title |
---|
基于FPGA的FC交换机设计与验证;吕冬炜;柴小丽;武鑫;;信息技术(第08期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN117061623A (en) | 2023-11-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8996720B2 (en) | Method and apparatus for mirroring frames to a remote diagnostic system | |
US9455873B2 (en) | End-to-end analysis of transactions in networks with traffic-altering devices | |
US20140341568A1 (en) | High-Throughput Network Traffic Monitoring through Optical Circuit Switching and Broadcast-and-Select Communications | |
CN110009201B (en) | Electric power data link system and method based on block chain technology | |
Hall et al. | The Rainbow-II gigabit optical network | |
US20160323182A1 (en) | Centralized route determination in communication networks | |
CN107104782A (en) | Data transmission method and device | |
US11206216B2 (en) | Flexible ethernet frame forwarding method and apparatus | |
Xu et al. | Emergency OPM recreation and telemetry for disaster recovery in optical networks | |
US20140029437A1 (en) | Information processing system, information processing method, and relay apparatus | |
CN109088957B (en) | NAT rule management method, device and equipment | |
CN113328956B (en) | Message processing method and device | |
CN117061623B (en) | FC route realization method and switching equipment | |
JP2009260652A (en) | Radio communication system | |
US20120294307A1 (en) | Apparatus and Method for Identifier Management | |
Sanaee et al. | Backdraft: a lossless virtual switch that prevents the slow receiver problem | |
US4760395A (en) | Arrangement for communications between equipment belonging to different network architectures | |
CN112817539A (en) | Industrial data storage method and system, electronic device and storage medium | |
CN114253792A (en) | Log tracking method, device, equipment and storage medium | |
CN117194562A (en) | Data synchronization method and device, electronic equipment and computer readable medium | |
CN109358820B (en) | Data access method and device, electronic equipment and computer readable storage medium | |
KR101949761B1 (en) | Integrated replication system | |
CN108809795B (en) | Transparent shunting method and device in local area network environment | |
CN107181701B (en) | The collection method and device of common gateway interface data | |
CN115277504A (en) | Network traffic monitoring method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |