Cross-Reference to Related Application
This patent application is related to application Ser. No. 08/329,032, filed Oct. 24, 1994, now U.s. Pat. No. 5,598,541, filed concurrently herewith for NODE LOOP PORT SUPER CORE FOR USE IN FIBRE CHANNEL.
Background of the Invention
This invention relates generally to data communication and processing, and more particularly the invention relates to a Node Loop Core for implementing the transmission protocol in a Fibre Channel Node Port and which is flexible in structure and in operation with a Node Loop Port Super Core for implementing the Fibre Channel Standard as adopted by ANSI.
The Fibre Channel Standard (FCS) as adopted by ANSI provides a low cost, high speed interconnect standard for workstations, mass storage devices, printers, and displays. The Fibre Channel (FC) is ideal for distributed system architectures and image intensive LANs and clusters. FC is media independent and provides multi-vendor interoperability.
Current FC transfer rates exceed 100 Mbytes per second in each direction. FC data transfer rates can also be scaled to 50, 25, and 12.5 Mbytes per second. The aggregate bandwidth is unlimited.
Fibre Channel technology provides a single interface that supports both channel and network connections for both switched and shared mediums. FC simplifies device interconnections and software, and reduces hardware costs since each device needs only a single FC port for both channel and network interfaces. Network, point to point, and peripheral interfaces can be accessed through the same hardware connection with the transfer of data of any format for the sending device buffer to the receiving device buffer.
FCS can also be implemented using a low-cost Arbitrated Loop configuration. The aggregate bandwidth is limited by the FC maximum bandwidth, but this is the best configuration for controlling disk arrays. The Node Loop Port (NL.sub.-- Port) provides the necessary functions for Arbitrated Loop.
FIGS. 1A-1D illustrate several topologies for implementing the Fibre Channel.
FIG. 1A illustrates a Point-to-Point topology. FIG. 1B shows a simple fabric topology. FIG. 1C shows a Closed Arbitrated Loop, and FIG. 1D illustrates an Open Arbitrated Loop. The fabric link in FIG. 1D uses circuit switching much like a telephone network. The FC creates multiple, temporary, direct connections that each provide full bandwidth. Further, the bandwidth can be expanded by adding more paths.
A Fibre Channel Fabric can be as simple as a single cable connecting two devices or as complex as a large number of FC switches incorporating both circuit and packet switching that connect up to 16,000,000 devices. A device attached to an FC fabric can transmit data to any other device and receive data from any other device attached to the fabric.
An FC fabric uses circuit switching much like a telephone network. The FC creates multiple, temporary, direct connections that each provide the full bandwidth. Each connection can use the entire bandwidth so it does not become congested by adding more workstations and peripherals. The bandwidth can be expanded by adding more paths.
The FC hardware routes the transmissions. A device connected to the fabric that wants to transmit requests connection to the receiving device. The FC attempts to route the call by querying the availability of the receiving device. If the device responds that it is available, the FC confirms the route back to the sending device. If the connection fails, the FC re-routes the transmission.
Setting up frequent connections is not time intensive (less than 10 .mu.s per connection).
Every Node Port logs in with the port to which it is attached, either an F.sub.-- Port or an N.sub.-- Port.
The Fibre Channel Standard includes bridges and routers that can simultaneously transport other data communications protocols, so already existing devices need only be enhanced by attaching adapters rather than being replaced. The FCS provides for new media technologies to be easily added. Currently the FCS provides interconnection to the following higher-level protocols:
FDDI (Fibre Distributed Data Interface)
HIPPI (High Performance Parallel Interface)
SCSI (Small Computer Systems Interface)
IPI (Intelligent Peripheral Interface)
IBM's Block Multiplexer Channel
ATM (In process)
FC is a solution to the following applications that require large volume information storage and transfers:
Medical Imaging
Engineering CAD
Scientific Visualization
Computer Generated 3D Animation and Full-motion Video
Simulation
Multimedia
Video Conferencing
Image-based Document Storage and retrieval
Large Transaction Databases
Off-site Large Volume Backups--decouples mass storage from CPU--simple, quick, offsite backup
Communications Channels for Supercomputer Emulation (workstation clustering)
These applications require data transfers up to Mbits per second (30 32-bit color 1024.times.768 pixel images per second) uncompressed. Most of the current connection technologies are unable to transfer data fast enough to meet these needs. Fibre Channel can transfer uncompressed video data at rates that can generate full-screen real-time color displays.
The following tables define the Fibre Channel Standard (FCS levels (layers).
Following are brief definitions of some of the FCS Framing Protocol (FC-2) terminology.
Two possible FC frame formats with FC frames being separated from each other by at least six four-byte IDLEs.
Following are illustrations of two Fibre Channel frames with a table defining the frame fields:
Each frame is an indivisible unit of information used by the signaling protocol (FC-2) and there are four major FC-2 frame types:
Device.sub.-- Data frames carry data of the upper level protocol type.
Link.sub.-- Data frames which carry a built-in protocol called Link Services.
Link.sub.-- Control frames which implement flow control, error detection, and error handling functions.
Video.sub.-- Data frames which carry video data that is directed to a video buffer.
The following table shows the FC-2 Frame Header (FHDR) structure:
The following table defines the FHDR R.sub.-- CTL routing bits.
FIG. 2 is a functional block diagram of the NL Core 10 and the Super Core 12 which implement the FC-1 and FC-2 transmission and signalling protocols of the Fibre Channel standard. Heretofore, these protocols have been implemented with application specific integrated circuits (ASIC) with a host computer. This structure requires large and complex logic and has proved to be limited in achieving the 80 Mbytes/sec sustained throughput required.
The present invention provides a Node Loop Core for use in a modular super core structure with an imbedded processor which supports a full-featured Fibre Channel operation at 80 Mbytes/second sustained throughput. The structure can be designed in an application specific integrated circuit with custom specific functions appended thereto.
Summary of the Invention
The Node Loop Core in accordance with the invention includes a Decode Word unit and an Encode.sub.-- Word unit for interfacing with the Fibre Channel Cable, an Arbitrated Loop, and Receive and Transmit Units for interfacing with the Super Core for the transmission of data to and from the Fibre Channel Cable and attached apparatus.
The Decode Word unit functions to convert 10-bit data to 8-bit data with error checking, recognize a comma character, and to construct parity protected words from half-words or bytes.
The Encode.sub.-- Word unit functions to convert 8-bit data to 10-bit encoded data and generate the comma character for use with transmitted data. The unit also checks parity error of input words and divides the words into half-words or bytes as programmed.
The Arbitrated Loop performs initialization protocol and arbitration functions while recognizing all primitive signals and sequences pertinent to the loop.
The Receive Unit performs frame parsing and frame steering, error checking, primitive detection, and offset computation if offset is used.
The Transmit Unit provides frame construction from multiple sources, CRC generation, and primitive signal and sequence generation. The unit also implements hardware managed sequences and provides the mechanism for software managed single frame.
The Node Loop Port Core, in accordance with the invention, functions with the Super Core in supporting an Arbitrated Loop topology in attaching multiple communicating ports in a loop without hubs and switches and provides maximum possible data transfer bandwidth at the speeds of 100, 50, 25, and 12.5 Mbits/second.
The invention and objects and features there of will be more readily apparent from the following detailed description and appended claims when taken with the drawing.
Brief Description of the Drawings
FIGS. 1A-1D are functional block diagrams illustrating topologies of the Fibre Channel.
FIG. 2 is a functional block diagram of the NL Core and Super Core in implementing the transmission and framing protocols of the Fibre Channel Standard.
FIG. 3 is a functional block diagram of a Node Loop Core in accordance with the invention.
FIG. 4 is a functional block diagram of the Decode.sub.-- Word block of FIG. 3.
FIG. 5 is a functional block diagram of the Encode.sub.-- Word block of FIG. 3.
FIG. 6 is a functional block diagram of the Arbitrated Loop block of FIG. 3.
FIG. 7 is a functional block diagram of the Receive Block of FIG. 3.
FIG. 8 is a functional block diagram of the Transmit Block of FIG. 3.
FIG. 9 illustrates signals for bit level logic interface of the Node Loop Core.
FIGS. 10A-10C are flow diagrams of a receive operation.
FIGS. 11A-11D are timing diagrams for reception of a class 1 frame, reception of class 2/3 receive frame, reception of a class 2/3 data frame, and reception of a class 1 data frame, respectively.
FIG. 12 illustrates a receive word synchronization state machine diagram.
FIGS. 13A-13B are flow diagrams of a transmit operation.
FIGS. 14A-14D are timing diagrams for transmission of a single data frame, transmission of a link frame, transmission of back-to-back frames for a hardware managed sequence with optional headers present, and for transmission of a frame in a hardware managed sequence when an optional header is not present, respectively.
FIG. 15 is a functional block diagram illustrating the flow control mechanism.
FIG. 16 illustrates a transmit state diagram.
FIG. 17 illustrates a receive frame interface format (FIF).
FIG. 18 illustrates a transmit frame interface format.
Detailed Description of Illustrative Embodiment
FIG. 3 is a functional block diagram of a Node Loop Core in accordance with the invention. The basic functional blocks include a Decode.sub.-- Word unit 10 and an Encode.sub.-- Word unit 12 which interface with the Fibre Channel Cable through a serializer/deserializer unit (not shown). The Decode.sub.-- Word unit converts 10-bit to 8-bit data with error checking and performs comma character recognition in incoming data stream. The unit also constructs 32-bit parity protected words from half-words or bytes as programmed. Similarly, the Encode.sub.-- Word unit converts 8-bit data to 10-bit encoded data with comma character generation. The unit also checks parity error of input words and divides the words into half-words or bytes as programmed.
An Arbitrated Loop 14 interfaces with the Decode.sub.-- Word unit 10 and Encode.sub.-- Word unit 12 along with a Receive Unit 16 and a Transmit Unit 18 and performs loop initialization protocol and loop arbitration functions. The Arbitrated Loop recognizes all primitive signals and sequences pertinent to the loop and includes a Loop State Machine and Loop Buffer.
Receive Unit 16 functions in frame parsing, frame steering, CRC error and logical error checking, primitive detection, and offset computation if offset is used.
The Transmit Block 18 performs frame construction from multiple sources, CRC generation, and primitive signal and sequence generation. The block also performs hardware managed sequences and software managed single frame sequence. The block also provides data frame sequence transmission and flow control.
FIG. 4 is a more detailed functional block diagram of the Decode.sub.-- Word block of FIG. 3. The block includes a 20-bit input 40 which is the direct 20-bit data path used when this mode is enabled. A 10-bit input 42 is provided as the direct 10-bit data path when this mode is enabled. The input contains logic to convert the data path from 10 to 20 bits and to divide the incoming clock by 2. A decoder 44 contains two parallel 10-bit to 8-bit decoders with full error checking. Detected errors are posted via the Decode.sub.-- Word status interface. A parity generator 46 operates and appends odd parity immediately after a decode, one parity bit per byte. This parity accompanies data throughout the NL Core.
A word assembler 48 assembles 32-bit parity protected data for the Arbitrated Loop. The receive word control (r.sub.-- word.sub.-- cntl) 49 receives status symbols and detects error signals and controls all operations in the Decode.sub.-- Word block.
FIG. 5 is a more detailed functional block diagram of the Encode.sub.-- Word block 12 of FIG. 3. The block includes a 20-bit output 50 which provides the direct 20-bit data path when this mode is enabled. A 10-bit output 52 is a direct 10-bit data path when this mode is enabled. It contains logic to convert the data path from 10 to 20 bits and to divide the incoming clock by 2.
An Encoder 54 includes two parallel 8-bit to 10-bit encoders, and a parity checker 56 checks odd parity prior to encode and strips off the parity bit, one parity bit per byte.
Word Disassembler 58 disassembles 32-pit parity protected data into 16-bit parity protected data for the parity checker and encoder logic. The transmit word controller (t.sub.-- word.sub.-- cntl) 59 receives status signals and controls all the operations of the Encode.sub.-- Word block. The transmit word clock (T.sub.-- word.sub.-- clk) is derived by this module using the T.sub.-- clk input.
FIG. 6 illustrates the architecture of the Arbitrated Loop 14 of FIG. 3. A Loop State Machine 60 performs loop initialization protocol, loop arbitration, and detects all ordered sets pertinent to the Arbitrated Loop. The Loop State Machine is used to acquire Arbitrated Loop physical addresses at Power On, and after loop initialization the NL.sub.-- Port goes into a monitoring state. When the loop is idle and the NL.sub.-- Port wants to communicate with another NL.sub.-- Port, loop arbitration protocol is performed by the Loop State Machine 60. When arbitration is won by any loop port, all the intermediate loop ports act as repeaters of transmission words. In this case, a loop buffer is used to provide the elasticity to re-time the data and send data to the transmitter. The Loop State Machine also looks for the primitive sequence which indicates that the present Arbitrated Loop connection is over.
A Loop Buffer 62 is six words deep so that received words are re-timed and transmitted through the Encode.sub.-- Word block and transmitter.
A MUX1 unit 64 is a 36-bit multiplexer and is controlled by the Loop State Machine. When the NL.sub.-- Port is participating in the communication with another NL.sub.-- Port, then the data is presented to downstream logic through the Receive Block. When the NL.sub.-- Port is not participating in the communication between any other two NL.sub.-- Ports, the data is presented to the Loop Buffer 62.
A MUX2 unit 66 is a 36-bit multiplexer and is controlled by the Loop State Machine. When the NL.sub.-- Port is participating in the communication with another NL.sub.-- Port, then the data is received from downstream logic through the Transmit Block. When the NL.sub.-- Port is not participating in the communication between any other NL.sub.-- Ports, the data is received from Loop Buffer 62.
FIG. 7 illustrates the architecture of the Receive Block 16 of FIG. 3. A Detect Ordered Set 70 detects primitive signals, primitive sequences, and frame delimiters. A CRC Generate Check 71 (Cycle Redundancy Check) is a 32-bit parallel CRC check network. This block generates a CRC for incoming frames (data imbedded between Start Of Frame (SOF) and End Of Frame (EOF) and checks for correct CRC. Detected errors are posted via the r.sub.-- status interface.
Receive Pipe 72 provides decoded words for performing various computations in the Receive Engine. The output word will be either the pipeline stages or from the Receive Control.
Steering Control 73 provides all logic signals, performs frame parsing and steering. In steering unmodified mode, all frames with no modifications are presented to downstream logic so that custom steering mechanisms may be implemented with the help of frame status symbols. In the steering header class scheme, the headers are steered into different buffers than the device data or video data payload. All headers are modified for the convenience of the downstream logic using frame interface formats. All basic link control frames are steered in entirety to buffer to buffer flow control header buffers.
MUX 74 is a multiplier which provides data to the downstream logic. All Frame Interface Format (FIF) header changes are provided to downstream logic through the multiplexer which is controlled by the Receive Control 75.
The Frame Interface Formats unit 76 (FIF) converts frames from the FCS format to FIF, if this option is programmed. The FIF modifies SOF word, EOF word, and inserts two new words before the EOF word. FIF modifies the SOF field by writing a SOF code in horizontal format to the header HOF slot. At the completion of writing data to PL buffer, CRC is written to the Header Buffer, then the base address if offset is used.
Frame control 77 provides all necessary frame parsing information to downstream logic, which can be used for the custom steering implementations.
The Base Address Register 78 provides the base address for vectoring device data or video data frames to RAM. This has to be programmed prior to reception of a first frame of a sequence. If offset is used, the starting address for each new frame is computed and presented to downstream logic. The following table describes the function of the Base Address Register bits:
BAR Bits Description [31:0] Base byte address
This is used for Class 1 frame sequences. This can be used for Class 2 sequences if sequence streaming is prohibited, and if the order of delivery is guaranteed. The FHDR sequence count is checked for validating all incoming Class 1 frames.
The Receive Control 75 provides all the required status signals to the downstream logic and controls functional blocks in the receive operation.
FIG. 8 illustrates the architecture of the Transmit Block 18 of FIG. 3. The CRC Generate Unit 80 generates the CRC for every frame excluding SOF and EOF delimiters. CRC is transmitted through the output MUX just before EOF and is controlled by transmit control.
The Transmit Control Unit 81 controls all of the blocks in the transmit operation. The major functions controlled by the Transmit Control are:
Single frames from the Frame Interface, through Payload FIFO.
A sequence of frames at the maximum FCS rate by utilizing the HMS mechanism. This is programmed using the register interface.
FCS Idles and Primitive Sequences
R.sub.-- RDY.sub.-- rcvd and Xmit.sub.-- R.sub.-- RDY for buffer-to-buffer flow control.
Frame delimiter generation, Frame Interface Formats option is programmed.
Offset generation for each data frame in the Hardware Managed Sequence (HMS), and transmitted as PARAMETER field in the frame header transmission.
CRC generation and transmitting CRC just before EOF transmission.
BB Flow Control 82 contains mechanisms for hardware-managed R.sub.-- RDY flow control. A Credit Counter contains a four-bit count representing the number of outstanding BBFLO frames. The Credit Counter is compared against a programmable Credit Limit that defines the number of BBFLO buffer in the remote link receiver. If the Credit Counter reaches the programmable limit, which means the remote link receiver has no open buffer space, the NL.sub.-- Core Transmit does not transmit any BBFLO frames until the remote link transmits a R.sub.-- RDY signal. An R.sub.-- RDY Counter keeps an 8-bit count of outstanding R.sub.-- RDYs to be transmitted. Signal Increment.sub.-- R.sub.-- RDY is used for incrementing the counter. The NL.sub.-- Core Transmit sends all outstanding R.sub.-- RDYs at the earliest possible moment.
The hardware sequencing parameters and registers 83 provides the necessary parameters for hardware managed sequences. Frame header is of 6 words, and the first frame header sent is stored in 6 word size registers. A Hardware Managed Sequence Control register contains control information for transmitting a hardware managed sequence. The following table describes bits of this register:
The HMS control register provides the Sequence Count (plus one) of the previous frame SEQ.sub.-- CNT of a HMS. This value is necessary because the exact final Sequence Count cannot always be predicted ahead of time. The Register provides the starting Sequence Count for the next HMS if the Sequence count of the next sequence is a continuation of the previous sequence.
Frame Data Mux 84 multiplexes the data the and the headers of a frame. The output of this multiplexer is fed to the CRC Generate. In the steering.sub.-- unmodified case, the header and payload come from the payload buffer. In steering.sub.-- header.sub.-- class case, the header comes form the Header MUX and the data from the Payload. This multiplexer is controlled by Transmit Control.
Header Mux 85 multiplexes the frame header from different sources depending on the class of service. If the hardware managed sequence is selected for a single sequence of any class, the header is selected form the Hardware Sequencing Parameters and the Registers blocks. Otherwise, the header is read from the hc1 port for class 1 frames and hc23 port for class 2/3. The multiplexer is controlled by Transmit Control 89.
The Output Mux 86 is the final multiplexer of the transmission words, before the words are presented to the Encode block through the multiplexer in the Arbitrated Loop. The multiplexer has three data paths; one path provides header and data, one provides SOF and EOF, and the third provides CRC to be transmitted just before EOF. The second path, which provides SOF and EOF delimiters, also provides primitive sequence and signal transmission.
PSSD Generation Block 87 performs Primitive Signal, Sequence, and Delimiter generation. Whenever primitive signal or primitive sequence or SOF/EOF delimiter is to be transmitted, the Xmit.sub.-- k28.5 signal is asserted.
Steering Control 88 provides various control signals required to control construction of frames from multiple sources depending on user selected steering mechanisms.
FIG. 9 illustrates the signal which comprise the bit level (logical) interface of the Fibre Channel NL.sub.-- Port Core. The following is a description of the signals:
Disclosed now are the core operation and formats, including Core Setup, Arbitrated Loop Programming, Receive Programming, Transmit Programming, and Frame Interface Formats (FIF).
Core Setup
Following is a description of the steps necessary for setting up the Node Loop core.
FIG. 14C shows the transmission of HMS frame when optional headers are present. For this frame, header is prepared by hardware, optional headers are read from hcl.sub.-- buffer or hbb.sub.-- buffer, payload are read from pl.sub.-- buffer, CRC and EOF are prepared by hardware. FIG. 14D shows back to back frame transmission of HMS, when optional headers are not present.
While the invention has been described with reference to a specific embodiment, the description is illustrative of the invention and is not to be construed as limiting the invention. Various modifications and applications may occur to those skilled in the art without departing from the true spirit and scope of the invention as defined by the appended claims.