This application is related to U.S. patent application Ser. No. 09/738,960, entitled “Caching System and Method for a Network Storage System” by Lin-Sheng Chiou, Mike Witkowski, Hawkins Yao, Cheh-Suei Yang, and Sompong Paul Olarig, which was filed on Dec. 14, 2000 and which is incorporated herein by reference in its entirety for all purposes; U.S. patent application Ser. No. 10/015,047 entitled “System, Apparatus and Method for Address Forwarding for a Computer Network” by Hawkins Yao, Cheh-Suei Yang, Richard Gunlock, Michael L. Witkowski, and Sompong Paul Olarig, which was filed on Oct. 26, 2001 and which is incorporated herein by reference in its entirety for all purposes; U.S. patent application Ser. No. 10/039,190 entitled “Network Processor Interface System” by Sompong Paul Olarig, Mark Lyndon Oelke, and John E. Jenne, which was filed on Dec. 31, 2001, and which is incorporated herein by reference in its entirety for all purposes; U.S. patent application Ser. No. 10/039,189 entitled “Xon/Xoff Flow Control for Computer Network” by Hawkins Yao, John E. Jenne, and Mark Lyndon Oelke, which was filed on Dec. 31, 2001, and which is incorporated herein by reference in its entirety for all purposes; and U.S. patent application Ser. No. 10/039,184 entitled “Buffer to Buffer Flow Control for Computer Network” by John E. Jenne, Mark Lyndon Oelke and Sompong Paul Olarig, which was filed on Dec. 31, 2001, and which is incorporated herein by reference in its entirety for all purposes. This application is also related to the following four U.S. patent applications which are being filed concurrently: U.S. patent application Ser. No. 10/117,418, entitled “System and Method for Linking a Plurality of Network Switches,” by Ram Ganesan Iyer, Hawkins Yao and Michael Witkowski, which was filed on Apr. 5, 2002, and which is incorporated herein by reference in its entirety for all purposes; U.S. patent application Ser. No. 10/117,040, entitled “System and Method for Expansion of Computer Network Switching System Without Disruption Thereof,” by Mark Lyndon Oelke, John E. Jenne, Sompong Paul Olarig, Gary Benedict Kotzur and Matthew John Schumacher, which was filed on Apr. 5, 2002, and which is incorporated herein by reference in its entirety for all purposes; U.S. patent application Ser. No. 10/117,266, entitled “System and Method for Guaranteed Link Layer Flow Control,” by Hani Ajus and Chung Dai, which was filed on Apr. 5, 2002, and which is incorporated herein by reference in its entirety for all purposes; U.S. patent application Ser. No. 10/117,290, entitled “Method and System for Reduced Distributed Event Handling in a Network Environment,” by Ruotao Huang and Ram Ganesan Iyer, which was filed on Apr. 5, 2002, and which is incorporated herein by reference in its entirety for all purposes.
The present invention is related to computer networks. More specifically, the present invention is related to providing Fibre Channel protocol functions using network processors.
The design of networking products has undergone continuous evolution as the speed and functionality of local and wide-area networks have grown. In the early days of packet-based networking, networking devices (such as bridges and routers) were built with a combination of general purpose central processing units (CPUs), discrete logic, and Application Specific Standard Products (ASSPs), including interface controllers and transceivers. The software-based nature of these devices was key to adapting to new protocol standards and the additional functionality required by networks, such as the early Internet. Although these designs were large, complex, and comparatively slow, they met the needs of these early networks, e.g., Ethernet or Token Ring connections.
Over time, as network interface speeds and densities increased, the performance of general-purpose processors fell short of what was needed. This led network vendors to develop simpler, fixed function devices, e.g., Layer 2 Ethernet switches, that could be built with Application Specific Integrated Circuits (ASICs). ASICs traded-off the programmability of software-based designs for hardware-based speed. As ASIC technology progressed, more and more functionality was incorporated into the hardware. This was made possible by protocol consolidation around IP and Ethernet as the dominant enterprise network technology, which reduced the need for product flexibility.
New protocols have developed, e.g., Fibre Channel, ATM/SONET, Gigabit Ethernet, and the like. These protocols have traditionally been implemented with an ASIC and a software layer running on a general-purpose microprocessor. In this traditional implementation, the Fibre Channel ASIC handles all FC-1 layer functions with hardware assists for some FC-2 layer sequence/exchange management.
However, design flexibility without hardware changes are difficult when using ASICs. What is needed is a way of implementing Fibre Channel protocol using a system architecture which is more flexible so as to allow software to be easily adapted to support any upper and lower layer protocols without having the constraint of changing hardware (ASIC) design.
The invention overcomes the above-identified problems as well as other shortcomings and deficiencies of existing technologies by providing a system architecture comprising network processors and software running the network processors which may be easily adapted for supporting any Fibre Channel upper and lower layer protocols without hardware changes.
The present invention is directed to a method for providing Fibre Channel ingress data flow with network processors by receiving a frame from a network. Moving the frame into a buffer memory. Parsing the frame header. Decoding addresses in the frame header. Performing a cyclic redundancy check on the frame for detecting transmission errors. Performing a table lookup for determining a destination port. Creating a frame descriptor having a data structure describing where the frame is stored in the buffer memory and to what egress port number the frame is to be sent. Imbedding the destination port into the frame descriptor. Queuing the frame descriptor for transmission to a fabric processor. And forwarding cells of the frame to a switch fabric interface bridge. According to the invention, receiving a frame also may comprise receiving a frame at an ingress port of an ingress network processor, the ingress port being coupled to the network. The fabric processor may be associated with the ingress network processor. The buffer memory may be coupled to the ingress network processor. The ingress network processor may also be a plurality of ingress network processors. The plurality of ingress network processors may be arranged in a cluster for sharing operational activities. Sharing operational activities may include pipelining of operational activities.
The present invention is also directed to a method for providing Fibre Channel egress data flow with network processors by receiving cells of a frame from a switch fabric interface bridge. Reassembling the frame from the received cells and storing the frame in a buffer memory, wherein when a first cell of the frame is received a frame descriptor is allocated for keeping track of the frame location in the buffer memory. Determining which port to send the frame upon receiving a start of frame cell. Queuing the frame for transmission when an end of frame cell is received. And transmitting the frame from the port. According to the invention, reassembling the frame from the received cells also may comprise reassembling the frame with an egress fabric processor associated with an egress network processor. The buffer memory may be coupled to the egress network processor. Queuing the frame for transmission may be done with the egress fabric processor. The egress network processor may be a plurality of egress network processors. The plurality of egress network processors may be arranged in a cluster for sharing operational activities. Sharing operational activities may include pipelining the operational activities.
The present invention is also directed to a method for providing Fibre Channel ingress control flow with network processors by (a) receiving a frame from a network; (b) moving the frame into a buffer memory; (c) parsing the frame header; (d) decoding addresses in the frame header; (e) performing a cyclic redundancy check on the frame for detecting transmission errors; (f) performing a table lookup for determining a destination port; (g) creating a frame descriptor having a data structure describing where the frame is stored in the buffer memory and to what egress port number the frame is to be sent; (h) queuing the frame descriptor for sending to a line card processor; (i) processing the frame, wherein, if the frame is valid, then queuing the frame for transmission to the line card processor and then going to (j) below, if not, then sending a negative-acknowledge character or dropping the frame, and then terminating ingress control flow for that frame; (j) moving the frame data to a local memory of the line card processor; and (k) notifying the line card processor that the frame is in the line card processor local memory. Receiving a frame may comprise receiving the frame at an ingress port of an ingress network processor, the ingress port being coupled to the network. Queuing the frame descriptor may be queuing the frame descriptor to an executive processor associated with the ingress network processor. Processing the frame may be done with the executive processor. Moving the frame data may be done with the executive processor. The ingress network processor may be a plurality of ingress network processors. The plurality of ingress network processors may be arranged in a cluster for sharing operational activities. Sharing operational activities may include pipelining the operational activities.
The present invention is also directed to a method for providing Fibre Channel egress control flow with network processors by notifying an egress network processor to send a frame. Transferring the frame into a memory of the egress network processor. Formatting the frame. Determining an egress port for transmission of the frame. Queuing the frame for transmission from the egress port. And transmitting the frame from the egress port to a destination. Queuing the frame for transmission from the egress port may comprise receiving the frame with an executive processor associated with the egress network processor, formatting the frame with the executive processor, determining with the executive processor which egress port to use for transmitting the frame, and queuing the frame with the executive processor for transmitting the frame from the egress port. The egress network processor may be a plurality of egress network processors. The plurality of egress network processors may be arranged in a cluster for sharing operational activities. Sharing operational activities may include pipelining the operational activities.
The present invention is also directed to a method for providing Fibre Channel data flow with network processors by receiving a frame from a network with a first network processor. Moving the frame into a first buffer memory coupled to the first network processor. Parsing the frame header with the first network processor. Decoding addresses in the frame header with the first network processor. Performing a cyclic redundancy check on the frame for detecting transmission errors with the first network processor. Performing a table lookup for determining a destination port with the first network processor. Creating a frame descriptor with the first network processor, the frame descriptor having a data structure describing where the frame is stored in the first buffer memory and to what egress port number the frame is to be sent Imbedding the destination port into the frame descriptor. Queuing the frame descriptor for transmission to a fabric processor associated with the first network processor. Forwarding cells of the frame to a switch fabric interface bridge with the first network processor. Receiving cells of the frame from the switch fabric interface bridge with a second network processor. Reassembling the frame from the received cells with the second network processor and storing the frame in a second buffer memory coupled to the second network processor, wherein when a first cell of the frame is received a frame descriptor is allocated for keeping track of the frame location in the second buffer memory. Determining with the second network processor which port to send the frame upon receiving a start of frame cell. Queuing the frame for transmission with the second network processor when an end of frame cell is received by the second network processor. And transmitting the frame with the second network processor from an egress port.
The present invention is also directed to a method for providing Fibre Channel control flow with network processors by (a) receiving a frame from a network with a first network processor, (b) moving the frame into a buffer memory coupled to the first network processor, (c) parsing the frame header with the first network processor, (d) decoding addresses in the frame header with the first network processor, (e) performing a cyclic redundancy check with the first network processor on the frame for detecting transmission errors, (f) performing a table lookup with the first network processor for determining a destination port; (g) creating a frame descriptor with the first network processor, the frame descriptor having a data structure describing where the frame is stored in the first buffer memory and to what egress port number the frame is to be sent, (h) queuing the frame descriptor for sending to a line card processor, (i) processing the frame, wherein, if the frame is valid, then queuing the frame for transmission to the line card processor and then going to (j) below, if not, then sending a negative-acknowledge character or dropping the frame, and then terminating ingress control flow for that frame, (l) moving the frame data to a local memory of the line card processor, (k) notifying the line card processor with the first network processor that the frame is in the line card processor local memory, (l) notifying a second network processor to send the frame, (m) transferring the frame into a local memory of the second network processor, (n) formatting the frame, (o) determining the egress port for transmission of the frame, (p) queuing the frame for transmission from the egress port, and (l) transmitting the frame from the egress port to a destination.
A more complete understanding of the present disclosure and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, wherein:
While the present invention is susceptible to various modifications and alternative forms, specific exemplary embodiments thereof have been shown by way of example in the drawings and are herein described in detail. It should be understood, however, that the description herein of specific embodiments is not intended to limit the invention to the particular forms disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention as defined by the appended claims.
The present invention is directed to a system and method of implementing a Fibre Channel protocol using a system architecture comprising a network processor(s) controlled by software to implement a plurality of upper and lower layer protocols without requiring specialized hardware design or changes. The present invention utilizes the software program(s) running on the network processor(s) to implement, for example but not limited to, the FC-1 and FC-2 layer functions that were typically done with a specific dedicated purpose Fibre Channel ASIC.
A network processor (NP) or Network Processing Unit (NPU) is a device that may be software programmed for the functionality of communication data forwarding. The NPU may be programmed for all levels of the communications protocol stack, e.g., from Layer 2 through Layer 7. In the NPs the packet and cell data handling are managed through micro-engine RISC cores operating with a data-flow architecture. The RISC cores may be programmed in C and may provide complete access to any information necessary to make forwarding decisions without being burdened down with the tasks of packet parsing and data manipulation. The programmable elements inside of a NPU are not constructed to handle specific protocols, but instead provide primitives that allow any protocol to be processed or extended. This universal programmability allows protocol support that can include packets, cells, and data streams (separately or in combination) across various interface requirements. Dedicated coprocessors may be shared by all NPs. These coprocessors may be used for table searches, buffer management and queue management.
The following description of an exemplary embodiment of the present invention contains a number of technical terms using abbreviations and/or acronyms which are defined herein and used hereinafter:
Referring now to the drawings, the details of a specific exemplary embodiment of the invention is schematically illustrated. Like elements in the drawings will be represented by like numbers, and similar elements will be represented by like numbers with a different lower case letter suffix.
The ASs 106 provide higher level processing of frames and data streams in the Storage Network Switch 100. The ASs 106 have more advanced programmability and functionality than the IOSs 104, but rely on the control and data information provided by the IOSs 104 to maintain high performance packet throughput. Typical applications that can run on the ASs 106 are caching, storage virtualization, file serving, and high level protocol conversion. The SCSs 108 provide the overall management of the Storage Network Switch 100. Most of the low level switching and routing protocol functions are executed on the SCSs 108. In addition, management access functions such as an SNMP agent, web server, telnet server, and a direct command line interface may reside on the SCSs 108. The hardware and software executing on the SCSs 108 are responsible for managing the other subsystems (102, 104, 106) in the Storage Network Switch 100.
Referring now to
The channel processors 216 and the associated serial data processors 218 may be aggregated into clusters to provide sufficient processing power for the Fibre Channel protocol and, for example, to handle a gigabit per second physical interface. Within each cluster there may be four channel processors 216a-216d and four serial data processors 218a-218d grouped together, each dedicated to perform either the receive function or the transmit function. The aggregated processors (216, 218) in a cluster may share the same code but can have separate variable space so the code preferably executes independently to achieve a pipelining effect during the data processing. It is contemplated and within the scope of the invention that any number of channel processors 216 and serial data processor 218 may be grouped in a cluster.
The executive processor (XP) 208 may perform initialization, interfacing with a general-purpose host processor, and other management functions. The fabric processor (FP) 206 may be used for interfacing to the switch fabric subsystem (SFS) 102, segmentation and framing conforming to the switch fabric interface in the SFS 102, and flow control for switch fabric frames to and from the SFS 102. The table lookup unit (TLU) 212 may be used for any complex table lookup, state lookup to assists the operation of software state machines, and sequence/exchange context lookup for protocol processing. The buffer management unit (BMU) 214 and queue management unit (QMU) 210 perform typical functions of buffer and queue management, respectively. The network processor software may be partitioned into the following modules.
Executive Processor (XP)
Channel Processors and Serial Data Processors (CPs and SDPs)
Fabric Processor (FP)
Referring to
Referring to
During initialization of the Storage Network Switch 100, a primary function of the XP 208 is network processor boot and code download. When the Network Processors 204 are taken out of reset, the XP 208 is the first processor to load and execute its program. A boot loader within XP 208 may also be used for reading a network processor code package and then loading the program into the instruction and data memories of all the channel processor RISC cores 510 and serial data processors 418. Additionally, XP 208 may distribute data from the package to Content Addressable Memories (CAMs)(not shown) and instruction storage for all the logic within the channel processors (CPs 216) and the fabric processor (FP) 206.
Referring now to
Referring back to
Referring back to
Referring now to
As soon as processing control of a frame is passed from a serial data processor 218 to the channel processor RISC core 510, the serial data also passes the receive token to the next serial data processor 218 in the cluster. This allows the receive frame processing to proceed in a pipelining fashion in which the next serial data processor will process the next received frame while routing decision and Fibre Channel zone enforcement is being performed in the current channel processor RISC core 510.
At the destination network processor 204b, the receive fabric processor 206c extracts the header and reassembles the data payload and sends it to the buffer management unit 214b for buffering. By examining the header, the fabric processor 206 determines the correct output channel processor cluster and queues the frame for transmission. Finally, the channel processor 216 within that cluster dequeues the transmit request and sends the frame out the output port. A similar pipelined processing is performed whereby the channel processor RISC core also passes the token to the next processor RISC core as soon as the transmit control of a frame has been passed to the serial data processor. This allows the next transmit processing to occur in the next RISC core while the current serial data processor streams the data out the physical output port 610.
Referring now to
Referring to
Referring to
Referring to
Referring to
The invention, therefore, is well adapted to carry out the objects and attain the ends and advantages mentioned, as well as others inherent therein. While the invention has been depicted, described, and is defined by reference to exemplary embodiments of the invention, such references do not imply a limitation on the invention, and no such limitation is to be inferred. The invention is capable of considerable modification, alternation, and equivalents in form and function, as will occur to those ordinarily skilled in the pertinent arts and having the benefit of this disclosure. The depicted and described embodiments of the invention are exemplary only, and are not exhaustive of the scope of the invention. Consequently, the invention is intended to be limited only by the spirit and scope of the appended claims, giving full cognizance to equivalents in all respects.
Number | Name | Date | Kind |
---|---|---|---|
4755930 | Wilson, Jr. et al. | Jul 1988 | A |
5140682 | Okura et al. | Aug 1992 | A |
5247649 | Bandoh | Sep 1993 | A |
5394556 | Oprescu | Feb 1995 | A |
5515376 | Murthy et al. | May 1996 | A |
5530832 | So et al. | Jun 1996 | A |
5602841 | Lebizay et al. | Feb 1997 | A |
5606669 | Bertin et al. | Feb 1997 | A |
5611049 | Pitts | Mar 1997 | A |
5699548 | Choudhury et al. | Dec 1997 | A |
5778429 | Sukegawa et al. | Jul 1998 | A |
5835756 | Caccavale | Nov 1998 | A |
5835943 | Yohe et al. | Nov 1998 | A |
5845280 | Treadwell, III et al. | Dec 1998 | A |
5845324 | White et al. | Dec 1998 | A |
5852717 | Bhide et al. | Dec 1998 | A |
5864854 | Boyle | Jan 1999 | A |
5873100 | Adams et al. | Feb 1999 | A |
5878218 | Maddalozzo, Jr. et al. | Mar 1999 | A |
5881229 | Singh et al. | Mar 1999 | A |
5918244 | Percival | Jun 1999 | A |
5930253 | Brueckheimer et al. | Jul 1999 | A |
5933849 | Srbljic et al. | Aug 1999 | A |
5944780 | Chase et al. | Aug 1999 | A |
5944789 | Tzelnic et al. | Aug 1999 | A |
5978841 | Berger | Nov 1999 | A |
5978951 | Lawler et al. | Nov 1999 | A |
5987223 | Narukawa et al. | Nov 1999 | A |
5991810 | Shapiro et al. | Nov 1999 | A |
6041058 | Flanders et al. | Mar 2000 | A |
6044406 | Barkey et al. | Mar 2000 | A |
6081883 | Popelka et al. | Jun 2000 | A |
6085234 | Pitts et al. | Jul 2000 | A |
6098096 | Tsirigotis et al. | Aug 2000 | A |
6105062 | Andrews et al. | Aug 2000 | A |
6128306 | Simpson et al. | Oct 2000 | A |
6138209 | Krolak et al. | Oct 2000 | A |
6147976 | Shand et al. | Nov 2000 | A |
6243358 | Monin | Jun 2001 | B1 |
6252514 | Nolan et al. | Jun 2001 | B1 |
6289386 | Vangemert | Sep 2001 | B1 |
6361343 | Daskalakis et al. | Mar 2002 | B1 |
6400730 | Latif et al. | Jun 2002 | B1 |
6424657 | Voit et al. | Jul 2002 | B1 |
6457048 | Sondur et al. | Sep 2002 | B2 |
6470013 | Barach et al. | Oct 2002 | B1 |
6484209 | Momirov | Nov 2002 | B1 |
6532501 | McCracken | Mar 2003 | B1 |
6584101 | Hagglund et al. | Jun 2003 | B2 |
6594701 | Forin | Jul 2003 | B1 |
6597689 | Chiu et al. | Jul 2003 | B1 |
6597699 | Ayres | Jul 2003 | B1 |
6601186 | Fox et al. | Jul 2003 | B1 |
6615271 | Lauck et al. | Sep 2003 | B1 |
6654895 | Henkhaus et al. | Nov 2003 | B1 |
6657962 | Barri et al. | Dec 2003 | B1 |
6687247 | Wilford et al. | Feb 2004 | B1 |
6704318 | Stuart et al. | Mar 2004 | B1 |
6721818 | Nakamura | Apr 2004 | B1 |
6731644 | Epps et al. | May 2004 | B1 |
6731832 | Alvarez et al. | May 2004 | B2 |
6735174 | Hefty et al. | May 2004 | B1 |
6747949 | Futral | Jun 2004 | B1 |
6754206 | Nattkemper et al. | Jun 2004 | B1 |
6757791 | O'Grady et al. | Jun 2004 | B1 |
6758241 | Pfund et al. | Jul 2004 | B1 |
6762995 | Drummond-Murray et al. | Jul 2004 | B1 |
6765871 | Knoebel et al. | Jul 2004 | B1 |
6765919 | Banks et al. | Jul 2004 | B1 |
6792507 | Chiou et al. | Sep 2004 | B2 |
6822957 | Schuster et al. | Nov 2004 | B1 |
6839750 | Bauer et al. | Jan 2005 | B1 |
6847647 | Wrenn | Jan 2005 | B1 |
6876668 | Chawla et al. | Apr 2005 | B1 |
6879559 | Blackmon et al. | Apr 2005 | B1 |
6889245 | Taylor et al. | May 2005 | B2 |
6973229 | Tzathas et al. | Dec 2005 | B1 |
7010715 | Barbas et al. | Mar 2006 | B2 |
7013084 | Battou et al. | Mar 2006 | B2 |
7035212 | Mittal et al. | Apr 2006 | B1 |
7079485 | Lau et al. | Jul 2006 | B1 |
7190695 | Schaub et al. | Mar 2007 | B2 |
20010023443 | Fichou et al. | Sep 2001 | A1 |
20010037435 | Van Doren | Nov 2001 | A1 |
20010043564 | Bloch et al. | Nov 2001 | A1 |
20020004842 | Ghose et al. | Jan 2002 | A1 |
20020010790 | Ellis et al. | Jan 2002 | A1 |
20020012344 | Johnson et al. | Jan 2002 | A1 |
20020024953 | Davis et al. | Feb 2002 | A1 |
20020071439 | Reeves et al. | Jun 2002 | A1 |
20020078299 | Chiou et al. | Jun 2002 | A1 |
20020103921 | Nair et al. | Aug 2002 | A1 |
20020186703 | West et al. | Dec 2002 | A1 |
20020188786 | Barrow et al. | Dec 2002 | A1 |
20030002506 | Moriwaki et al. | Jan 2003 | A1 |
20030012204 | Czeiger et al. | Jan 2003 | A1 |
20030014540 | Sultan et al. | Jan 2003 | A1 |
20030037177 | Sutton et al. | Feb 2003 | A1 |
20030048792 | Xu et al. | Mar 2003 | A1 |
20030063348 | Posey, Jr. | Apr 2003 | A1 |
20030074449 | Smith et al. | Apr 2003 | A1 |
20030084219 | Yao et al. | May 2003 | A1 |
20030093541 | Lolayekar et al. | May 2003 | A1 |
20030093567 | Lolayekar et al. | May 2003 | A1 |
20030126223 | Jenne et al. | Jul 2003 | A1 |
20030126280 | Hawkins et al. | Jul 2003 | A1 |
20030126297 | Olarig et al. | Jul 2003 | A1 |
20030128703 | Zhao et al. | Jul 2003 | A1 |
20030154301 | McEachern et al. | Aug 2003 | A1 |
20030163555 | Battou et al. | Aug 2003 | A1 |
20030195956 | Bramhall et al. | Oct 2003 | A1 |
20030198231 | Kalkunte et al. | Oct 2003 | A1 |
20030202520 | Witkowski et al. | Oct 2003 | A1 |
20050018619 | Banks et al. | Jan 2005 | A1 |
20050018709 | Barrow et al. | Jan 2005 | A1 |
20050044354 | Hagerman | Feb 2005 | A1 |
20050243734 | Nemlrovsky et al. | Nov 2005 | A1 |