Host-initiated link reset in storage area networks

The host-initiated link reset method in SANs addresses synchronization issues by calculating buffer credit imbalances and resetting links when necessary, ensuring stable and efficient data transmission.

JP7572134B2Active Publication Date: 2024-10-23INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022559988
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-04-28
Filing Date
2021-03-19
Publication Date
2024-10-23
Estimated Expiration
2041-03-19

AI Technical Summary

Technical Problem

Fiber Channel frames containing acknowledgments are often corrupted during transmission in storage area networks (SANs) due to optical system failures, bad cables, loose connections, or hardware malfunctions, leading to synchronization issues between sender and receiver, which can affect performance or halt link transmission.

Method used

A host-initiated method to identify and reset links in a SAN by calculating buffer credit imbalances and resetting the link when the imbalance exceeds a threshold, using host devices to manage buffer credit recovery, including channel and switch ports.

Benefits of technology

The method effectively addresses synchronization issues by resetting links proactively, maintaining optimal buffer credit levels and preventing performance degradation or transmission halts in SANs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007572134000001
    Figure 0007572134000001
  • Figure 0007572134000002
    Figure 0007572134000002
  • Figure 0007572134000003
    Figure 0007572134000003
Patent Text Reader

Abstract

An embodiment includes performing a host-initiated link reset in a storage area network (SAN). The embodiment includes identifying, by a host in communication with the SAN, each link in the SAN, where each link is defined by a pair of ports. The embodiment also includes obtaining, by the host, a buffer credit balance for each port in the SAN and calculating, by the host, a buffer credit imbalance for each link in the SAN. The embodiment further includes causing a reset of the link based on determining that the buffer credit imbalance for the link exceeds a threshold.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to storage area networks (SANs), and more specifically to host initiated link resets in a SAN. [Background technology]

[0002] During normal operation of a SAN, Fibre Channel frames containing acknowledgments may be corrupted in transmission. Such corruption may be caused by optics failures, bad cables, loose connections, out-of-tolerance optical budgets, intermittent hardware malfunctions, etc.

[0003] When the receiving side of a Fibre Channel connection fails to recognize the start of frame (SOF) in the header of an incoming frame, the receiving side does not respond with the appropriate acknowledgment. In one example, the sender decrements its available buffer credits by one when sending a frame, but does not receive the corresponding acknowledgment. As a result, synchronization between the sender and receiver in terms of buffer credits becomes distorted. When this condition occurs, it becomes persistent, gradually reducing the number of buffer credits perceived as available to the point that it impacts performance, or even causes link transmission to stop completely.

[0004] Currently, the buffer credit recovery mechanism provided in the Fibre Channel standard attempts to prevent errors in the synchronization of buffer credits between senders and receivers. The standard supports two modes of buffer credit recovery: 1) link reset and 2) simple calculation that results in credit replenishment. However, both modes of buffer credit recovery are performed exclusively by network devices such as switches and only for switch ports. Summary of the Invention

[0005] An embodiment of the present invention is directed to a computer-implemented method for host-initiated link resets in a storage area network (SAN). A non-limiting example of the computer-implemented method includes identifying, by a host in communication with the SAN, each link in the SAN, where each link is defined by a pair of ports. The method also includes obtaining, by the host, a buffer credit balance for each port in the SAN, and calculating, by the host, a buffer credit imbalance for each link in the SAN. The method further includes causing a reset of the link based on determining that the buffer credit imbalance for the link exceeds a threshold.

[0006] An embodiment of the present invention is directed to a storage area network (SAN). A non-limiting example of a SAN includes one or more network devices and a plurality of end devices, each coupled to at least one of the one or more network devices. One of the plurality of end devices is a host device configured to identify each link in the SAN, each link being defined by a pair of ports. The host device is also configured to obtain a buffer credit balance for each port in the SAN and to calculate a buffer credit imbalance for each link in the SAN. The host device is further configured to cause a reset of the link based on a determination that the buffer credit imbalance for the link exceeds a threshold.

[0007] An embodiment of the present invention is directed to a computer program product for host-initiated link reset in a storage area network (SAN), the computer program product comprising a computer-readable storage medium having program instructions embodied therein. The program instructions are executable by a processor to cause the processor to perform the method. A non-limiting example of the method includes identifying, by a host in communication with the SAN, each link in the SAN, each link being defined by a pair of ports. The method also includes obtaining, by the host, a buffer credit balance for each port in the SAN, and calculating, by the host, a buffer credit imbalance for each link in the SAN. The method further includes causing a reset of the link based on a determination that the buffer credit imbalance for the link exceeds a threshold.

[0008] Additional technical features and advantages are realized through the techniques of the present invention. Embodiments and aspects of the present invention are described in detail herein and are considered a part of the claimed subject matter. For a better understanding, reference is made to the detailed description and drawings.

[0009] The particulars of the exclusive rights set forth herein are particularly pointed out and distinctly claimed in the claims at the conclusion of this specification. These and other features and advantages of embodiments of the present invention will become apparent from the following detailed description when considered in conjunction with the accompanying drawings. [Brief description of the drawings]

[0010] [Figure 1] 1 is a schematic diagram of a computer system according to an embodiment of the present invention. [Diagram 2] 1 is a schematic diagram of a storage area network according to an embodiment of the present invention. [Diagram 3] 1 is a flow diagram of a method for performing a host-initiated link reset in a storage area network in accordance with an embodiment of the present invention. [Figure 4]11 is a flow diagram of a method for performing a host-initiated link reset in a storage area network in accordance with another embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] The diagrams shown herein are for illustrative purposes. There may be many variations in the diagrams or the operations described therein without departing from the spirit of the invention. For example, actions may be performed in a different order, or actions may be added, deleted, or modified. Also, the term "coupled" and variations thereof describe having a communication path between two elements, and do not imply a direct connection between the elements without an intervening element / connection between them. All of these variations are considered part of this specification.

[0012] Exemplary embodiments include methods, systems, and computer program products for host-initiated link resets in a storage area network (SAN). In exemplary embodiments, a host device connected to the SAN is configured to monitor buffer credits reported as available at all ports in the SAN, including channel ports and switch ports. The host device is further configured to cause a link reset in the SAN upon determining that a buffer credit imbalance between two ports at either end of the link exceeds a threshold value. The link reset forces buffer credit counters for both ports of the link to return to their maximum default values.

[0013] Referring now to FIG. 1, a computer system 100 according to an embodiment is generally shown. The computer system 100 can be an electronic, computer framework that comprises and / or uses any number and combination of computing devices and networks utilizing various communication technologies, as described herein. The computer system 100 can be easily scalable, extensible, and modular, with the ability to modify or reconfigure some functions into different services independently of others. The computer system 100 can be, for example, a server, a desktop computer, a laptop computer, a tablet computer, or a smartphone. In some examples, the computer system 100 can be a cloud computing node. The computer system 100 can be described in the general context of computer system executable instructions, such as program modules, executed by the computer system. Generally, program modules can include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system 100 may be practiced in a distributed cloud computing environment where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.

[0014] As shown in FIG. 1, computer system 100 has one or more central processing units (CPUs) 101a, 101b, 101c, etc. (collectively or generically referred to as processor 101). Processor 101 may be a single core processor, a multi-core processor, a computing cluster, or any number of other configurations. Processor 101, also referred to as a processing circuit, is coupled to system memory 103 and various other components through a system bus 102. System memory 103 may include read only memory (ROM) 104 and random access memory (RAM) 105. ROM 104 is coupled to system bus 102 and may include a basic input / output system (BIOS) that controls some basic functions of computer system 100. RAM is a read-write memory coupled to system bus 102 for use by processor 101. System memory 103 provides memory space for the execution of said instructions during operation. The system memory 103 may include random access memory (RAM), read-only memory, flash memory, or any other suitable memory system.

[0015] Computer system 100 includes an input / output (I / O) adapter 106 and a communications adapter 107 coupled to system bus 102. I / O adapter 106 may be a small computer system interface (SCSI) adapter that communicates with a hard disk 108 and / or any other similar components. I / O adapter 106 and hard disk 108 are collectively referred to herein as mass storage device 110.

[0016] Software 111 for execution on computer system 100 may be stored in mass storage device 110. Mass storage device 110 is an example of a tangible storage medium readable by processor 101, in which software 111 is stored as instructions for execution by processor 101 to operate computer system 100, such as those described herein below with respect to various figures. Examples of computer program products and execution of such instructions are discussed in more detail herein. Communications adapter 107 interconnects system bus 102 to network 112, which may be an external network, enabling computer system 100 to communicate with other such systems. In one embodiment, a portion of system memory 103 and mass storage device 110 collectively store an operating system, which may be any suitable operating system, such as z / OS® or AIX® operating systems from IBM Corporation, for coordinating the functions of the various components shown in FIG. 1.

[0017] Additional input / output devices are shown connected to the system bus 102 through a display adapter 115 and an interface adapter 116. In one embodiment, adapters 106, 107, 115, and 116 may be connected to one or more I / O buses connected to the system bus 102 through an intermediate bus bridge (not shown). A display 119 (e.g., a screen or display monitor) is connected to the system bus 102 by a display adapter 115, which may include a graphics controller and a video controller to improve performance of graphics-intensive applications. A keyboard 121, a mouse 122, a speaker 123, and the like may be interconnected to the system bus 102 through an interface adapter 116, which may include, for example, a super I / O chip that integrates multiple device adapters into a single integrated circuit. Suitable I / O buses for connecting peripheral devices, such as hard disk controllers, network adapters, and graphics adapters, typically include a common protocol, such as Peripheral Component Interconnect (PCI). Thus, as configured in FIG. 1, computer system 100 includes processing capability in the form of processor 101, storage capability including system memory 103 and mass storage device 110, input means such as keyboard 121 and mouse 122, and output capability including speakers 123 and display 119.

[0018] In some embodiments, the communications adapter 107 can transmit data using any suitable interface or protocol, such as an Internet-Small Computer System interface, among others. The network 112 can be a cellular network, a wireless network, a wide area network (WAN), a local area network (LAN), or the Internet, among others. An external computing device can connect to the computer system 100 through the network 112. In some examples, the external computing device can be an external web server or a cloud computing node.

[0019] It should be understood that the block diagram of Figure 1 is not intended to indicate that computer system 100 includes all of the components shown in Figure 1. Rather, computer system 100 may include any suitable fewer or additional components not shown in Figure 1 (e.g., additional memory components, embedded controllers, modules, additional network interfaces, etc.). Additionally, the embodiments described herein with respect to computer system 100 may be implemented using any suitable logic, which as referred to herein may, in various embodiments, include any suitable hardware (e.g., a processor, an embedded controller, or an application specific integrated circuit, among others), software (e.g., an application, among others), firmware, or any suitable combination of hardware, software, and firmware.

[0020] FIG. 2 is a diagram of a storage area network (SAN) 200, according to an embodiment. The SAN 200 includes multiple terminal devices 210, 220, each connected to one or more network devices 230, such as a switch. The network devices 230 include memory circuits and processing circuits (including, for example, monitoring and limiting circuits). The network topology of the SAN 200 can be a switched fabric, with the network devices 230 being switches. In some embodiments, a particular switch 230 can be configured in switch mode or N-Port ID Virtualization (NPIV) mode. In an exemplary embodiment, at least one of the terminal devices 210, 220 in the SAN device 210 is configured as a host device 210. In one embodiment, the host device 210 is embodied in a computer system, such as that shown in FIG. 1.

[0021] In the exemplary embodiment, each of the network devices 230 includes multiple ports that connect the network device 230 to various end devices 210, 220 through links 225. In addition, each end device 210, 220 includes one or more ports that connect the end device to one or more network devices 230 or other end devices 220. In the exemplary embodiment, each link 225 is defined by two ports connected to the link 225. The ports of the end devices 220, 210 are referred to as channel ports, and the ports of the network device 230 are referred to as switch ports.

[0022] In an exemplary embodiment, network device 230 supports Fibre Channel (FC) and / or Fibre Channel over Ethernet (FCoE) protocols. For example, a particular fixed port network device may support FC and / or FCoE protocols. As another example, if a particular network device includes multiple line cards, at least some of them may support FC protocols, or at least some of them may support FCoE protocols, or both. It is noted that a particular port on a particular network device 230 may support FC protocols or FCoE protocols by default or as configured (e.g., if a particular port is a universal port). Optionally, network device 230 supports one or more other protocols, such as, for example, Simple Network Management Protocol (SNMP) for gathering information for output on management device 210.

[0023] Referring now to FIG. 3, a flow diagram of a method 300 of performing a host-initiated link reset in a storage area network is shown, in accordance with an embodiment of the present invention. As shown in block 302, the method 300 includes identifying each link in the SAN by a host communicating with the SAN. In an exemplary embodiment, each link in the SAN is defined by a pair of ports, which may be one of a channel port and a switch port, or two switch ports in the case of an inter-switch link. The method 300 also includes obtaining, by the host, a buffer credit balance for each port in the SAN, as shown in block 304. Next, as shown in block 306, the method 300 includes calculating, by the host, a buffer credit imbalance for each link in the SAN. In one embodiment, the buffer credit imbalance is calculated by determining the difference in the buffer credit balances of the two ports of the link. In another embodiment, the buffer credit imbalance is calculated by determining the percentage difference in the buffer credit balances of the two ports of the link.

[0024] The method 300 also includes determining whether the buffer credit imbalance for the link exceeds a threshold, as shown at decision block 308. If the buffer credit imbalance for the link exceeds the threshold, the method 300 proceeds to block 310 and causes a reset of the link. Otherwise, the method 300 returns to block 304. In an exemplary embodiment, the threshold is set by a user of the host device. In an exemplary embodiment, obtaining the buffer credit balance for each port in the SAN is performed on a periodic basis. For example, in one embodiment, the host device is configured to obtain the buffer credit balance for each port in the SAN every 15 minutes or other predetermined interval set by a user of the host device.

[0025] In one embodiment, determining that the buffer credit imbalance for the link exceeds a threshold includes determining that a difference between the buffer credit balances for each port of the pair of ports is greater than a predetermined number. In one example, a link is defined by a first port and a second port, and the buffer credit balance for the first port is 8 and the buffer credit balance for the second port is 5. If the threshold is 2, then the link will be reset. However, if the threshold is 3, then the link will not be reset at this point.

[0026] In another embodiment, the threshold is a predetermined percentage and the buffer credit imbalance is calculated by dividing the larger buffer credit balance of the link's port pair by the smaller buffer credit balance of the link's port pair and subtracting 1. In one example, a link is defined by a first port and a second port, the buffer credit balance for the first port is 8 and the buffer credit balance for the second port is 5, and the threshold is 50% or 0.5. In this example, the buffer credit imbalance for the link is (8 / 5)-1=0.6, so the link will be reset.

[0027] In an exemplary embodiment, after it is determined that a link needs to be reset, the action taken to reset the link depends on the type of ports that define the link. In one embodiment, based on a determination that at least one of the port pairs for the link is a channel port, the host device causes the link to be reset by issuing a command to the channel port to reset the link. In another embodiment, based on a determination that none of the port pairs is a channel port, the host device causes the link to be reset by instructing a network device in a SAN associated with the link to perform a reset of the link. In one embodiment, the command is sent to the network device using a Control Unit Protocol (CUP).

[0028] In an exemplary embodiment, the SAN utilizes Fibre Channel for communication between nodes. Fibre Channel is configured to send packets of data, called frames, that contain frame delimiters that define start of frame (SOF) or end of frame (EOF) boundaries. Primitive signals that represent events on a transmitting port include an acknowledgement signal (R_RDY) and a buffer-to-buffer status change (BB_SC) signal. The BB_RDY_N variable is typically used to keep a count of received R_RDY primitives, and BB_FRM_N keeps a count of received frames. The buffer-to-buffer status change count (BB_SC_N) reflects a value that specifies the number of frames between BB_SCs primitives and the number of R_RDYs between BB_SCr primitives. The buffer-to-buffer status change R_RDY (BB_SCr) signal is transmitted periodically to allow the attached port to determine if any R_RDYs have been lost. The Buffer-to-Buffer State Change SOF (BB_SCs) signal is transmitted to allow the attached ports to determine if any frames have been lost.

[0029] In an exemplary embodiment, BB_SC_N (Inter-Buffer State Change Number) is used to track the agreed upon buffer credit maximum value for the link between two ports. For example, when two ports connect, during login (FLOGI or PLOGI), the ports exchange link parameters (ELP) and send Intra-Link Service (ILS) frames to each other carrying those values. If the two ports have different values, the larger of the two values ​​is used by both ports. Typically, BB_SC_N ranges from 1 to 15. In an exemplary embodiment, the variable F is used to specify the number of frames to be sent between BB_SCs and the number of R_RDYs to be sent during the BB_SCr basic signal. In one embodiment, F is set to 2. BB_SC_N In other words, to establish a checkpoint, a BB_SCs signal is sent every F frames and a BB_SCr is sent every F R_RDYs. In one example, BB_SC_N=3, so F=8. In this example, each port will send BB_SCs every 8 frames subject to buffer-to-buffer flow control, and each port will send BB_SCr every 8 R_RDYs.

[0030] In an exemplary embodiment, each port keeps a count of the number of frames received between the completion of login and the receipt of the first BB_SCs, e.g., BB_FRM_N. In addition, each port also keeps a count between successive occurrences of BB_SCs. When the count of the number of frames reaches F, it wraps back to zero and starts over. However, if the counter is not zero when the BB_SCs arrive, this means that one or more of the frames have been lost.

[0031] In an exemplary embodiment, each port keeps a count of the number of R_RDYs received between the completion of login and the receipt of the first BB_SCr, e.g., BB_RDY_N. Each port also keeps a count between successive occurrences of BB_SCr. When the count of the number of R_RDYs reaches a calculated value, F, it wraps back to zero and starts over. However, if the count of the number of R_RDYs received is not zero when the BB_SCr is received, then one or more R_RDYs have been lost.

[0032] 4, a flow diagram of a method 400 for performing a host-initiated link reset in a storage area network is shown in accordance with another embodiment of the present invention. As shown in block 402, a BB_SCr or BB_SCs arrives at a port. It is then determined whether BB_RDY_N or BB_FRM_N is equal to zero, as shown in decision block 404. If BB_RDY_N or BB_FRM_N is equal to zero, the method 400 proceeds to block 406 and continues normal operation of the SAN. However, if one of BB_RDY_N and BB_FRM_N is not equal to zero, it is determined that one or more frames or R_RDYs have been lost, and the method 400 proceeds to decision block 408.

[0033] As will be appreciated by those skilled in the art, BB_RDY_N and BB_FRM_N are different embodiments of counting / tracking implementations allowed in the Fibre Channel standard. In an exemplary embodiment, it is normal for these counters to have a zero value and no action is required. However, when these counters have a non-zero value, this indicates that the R_RDY primitive is lost or missing and therefore the number of buffer credits available on the receiving side of the link is no longer their full or expected configured value. In an exemplary embodiment, a threshold is used to trigger the decision of when to perform buffer credit recovery. In a different embodiment, the threshold trigger can be a user configurable value based on a percentage of the port's logged in BB_Credit value, zero remaining buffer credits, buffer credits below a specified value (e.g., less than 5), or the number of instances of frame pacing delay reported during a configured RMF interval through RMF (Resource Measurement Function) 74-7 (FICON® Director Activity Report).

[0034] Continuing with reference to FIG. 4, at decision block 408, it is determined whether a threshold for buffer credit loss has been triggered. If so, the method 400 proceeds to decision block 410. If not, the method 400 proceeds to block 406 and continues normal operation of the SAN. At decision block 410, it is determined whether one or more of the ports of the link are channel ports or directly attached CU ports. If one or more of the ports of the link are channel ports or directly attached CU ports, the method proceeds to block 412 and the host device issues a command to the channel port to perform a link reset (LR). If not, the method proceeds to block 414 and the host device issues a command (through FICON CUP or SMI-S) to perform a LR. The method 400 concludes at block 416 when buffer credits on the link are restored. In an exemplary embodiment, during a LR, frames are not discarded; they are kept in the buffer until the LR is completed and the LR resets all involved counters to their initial values, effectively "replenishing" the "lost" buffer credits.

[0035] Various embodiments of the present invention are described herein with reference to the associated drawings. Alternative embodiments of the present invention may be devised without departing from the scope of the present invention. In the following description and in the drawings, various connections and relationships between elements (e.g., above, below, adjacent, etc.) are described. These connections and / or relationships may be direct or indirect unless otherwise specified, and the present invention is not limited in this respect. Thus, coupling of entities may refer to direct or indirect coupling, and relationships between entities may be direct or indirect relationships. Furthermore, various tasks and processing steps described herein may be incorporated into a more comprehensive procedure or process having additional steps or functions not detailed herein.

[0036] The following definitions and abbreviations are to be used for interpretation of the claims and the specification. As used herein, the terms "comprises," "comprising," "includes," "including," "has," "having," "contains," or any other variation thereof are intended to be inclusive of a non-exclusive inclusion. For example, a composition, mixture, process, method, product, or apparatus that comprises a list of elements is not necessarily limited to only those elements, but can include other elements not expressly listed or inherent to such composition, mixture, process, method, product, or apparatus.

[0037] Additionally, the term "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. The terms "at least one" and "one or more" may be understood to include any integer number greater than or equal to one, i.e., 1, 2, 3, 4, etc. The term "a plurality" may be understood to include any integer number greater than or equal to two, i.e., 2, 3, 4, 5, etc. The term "connected" may include both indirect and direct "connected."

[0038] The terms "about," "substantially," "approximately," and variations thereof are intended to include the degree of error associated with the measurement of a particular quantity, based on the equipment available at the time of filing this application. For example, "about" can include ±8% or 5% or 2% of a given value.

[0039] For the sake of brevity, conventional techniques relating to making and using aspects of the present invention may or may not be described in detail herein. In particular, various aspects of computing systems and specific computer programs for implementing various technical features described herein are well known. Thus, for the sake of brevity, many conventional implementation details are only briefly described herein or omitted entirely, without showing details of well-known systems and / or processes.

[0040] The present invention may be a system, method, or computer program product, or combination thereof, at any possible level of technical detail of integration. The computer program product may include a computer-readable storage medium having computer-readable program instructions thereon for causing a processor to perform aspects of the present invention.

[0041] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. A non-exhaustive list of more specific examples of computer readable storage media includes portable computer diskettes, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or grooved ridge structures having instructions recorded thereon, and any suitable combination thereof. As used herein, computer-readable storage media is not to be construed as being a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through electrical wires.

[0042] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device through a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may comprise copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in a computer readable storage medium in the respective computing / processing device.

[0043] The computer readable program instructions for carrying out the operations of the present invention may be source or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or object oriented programming languages ​​such as Smalltalk®, C++, and procedural programming languages ​​such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed as a stand-alone software package, exclusively on the user's computer, partially on the user's computer, partially on the user's computer and partially on a remote computer, or exclusively on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or wide area network (WAN), or a connection may be made to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry to perform aspects of the invention.

[0044] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0045] These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to cause the machine to create means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams, instructions that execute by the processor of the computer or other programmable data processing apparatus. These computer-readable program instructions may also be stored in a computer-readable storage medium that can instruct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner, such that the computer-readable storage medium on which the instructions are stored comprises an article of manufacture containing instructions that implement aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0046] The computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device such that the instructions executing on the computer, other programmable apparatus, or other device perform the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams, causing a series of operational steps to be performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process.

[0047] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions comprising one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks may occur in a different order than that noted in the figures. For example, two blocks shown in succession may in fact be executed substantially in parallel, or the blocks may sometimes be executed in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a dedicated hardware-based system that performs the specified functions or operations or executes a combination of dedicated hardware and computer instructions.

[0048] The description of various embodiments of the present invention has been presented for illustrative purposes, but is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used in this specification is selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found in the market, or to enable those skilled in the art to understand the embodiments described in this specification.

Claims

1. 1. A computer-implemented method for performing a host-initiated link reset in a storage area network (SAN), comprising: identifying, by a host communicating with the SAN, each link in the SAN, each link being defined by a pair of ports; obtaining, by the host, a buffer credit balance for each port in the SAN; calculating, by the host, a buffer credit imbalance for each link in the SAN; causing a reset of the link based on a determination that the buffer credit imbalance for the link exceeds a threshold; Including, the threshold is a predetermined percentage, and the buffer credit imbalance is calculated by dividing the larger buffer credit balance of the pair of ports of the link by the smaller buffer credit balance of the pair of ports of the link and subtracting one. The method.

2. 2. The computer-implemented method of claim 1, wherein obtaining the buffer credit balance for each port in the SAN occurs on a periodic basis.

3. The computer-implemented method of claim 2 , wherein the frequency of the periodic base is configurable by a user of the host.

4. 2. The computer-implemented method of claim 1, wherein the determining that the buffer credit imbalance for the link exceeds the threshold comprises determining that a difference in the buffer credit balances for each port of the pair of ports is greater than a predetermined number.

5. The computer-implemented method of claim 1 , wherein the threshold is configurable by a user of the host.

6. issuing, by the host, a command to the channel port to reset the link based on a determination that the buffer credit imbalance for the link exceeds the threshold and that at least one of the pair of ports for the link is a channel port. The computer-implemented method of claim 1 , further comprising:

7. instructing a network device in the SAN associated with the link to perform a reset of the link based on a determination that the buffer credit imbalance for the link exceeds the threshold and that neither of the pair of ports is a channel port. The computer-implemented method of claim 1 , further comprising:

8. 1. A storage area network (SAN), comprising: one or more network devices; a plurality of terminal devices, each coupled to at least one of said one or more network devices; One of the plurality of terminal devices is identifying each link in the SAN, each link being defined by a pair of ports; obtaining a buffer credit balance for each port in the SAN; calculating a buffer credit imbalance for each link in the SAN; causing a reset of the link based on a determination that the buffer credit imbalance for the link exceeds a threshold; a host device configured to: the threshold is a predetermined percentage, and the buffer credit imbalance is calculated by dividing the larger buffer credit balance of the pair of ports of the link by the smaller buffer credit balance of the pair of ports of the link and subtracting one. The storage area network (SAN).

9. 9. The SAN of claim 8, wherein obtaining the buffer credit balance for each port in the SAN occurs on a periodic basis.

10. 10. The SAN of claim 9, wherein the frequency of the periodic base is configurable by a user of the host.

11. 9. The SAN of claim 8, wherein the determining that the buffer credit imbalance for the link exceeds the threshold comprises determining that a difference in the buffer credit balances for each port of the pair of ports is greater than a predetermined number.

12. The SAN of claim 8 , wherein the threshold is configurable by a user of the host.

13. The host device includes: issuing, by the host, a command to the channel port to reset the link based on a determination that the buffer credit imbalance for the link exceeds the threshold and that at least one of the pair of ports for the link is a channel port. The SAN of claim 8 further configured as follows:

14. The host device includes: instructing a network device in the SAN associated with the link to perform a reset of the link based on a determination that the buffer credit imbalance for the link exceeds the threshold and that neither of the pair of ports is a channel port. The SAN of claim 8 further configured as follows:

15. 1. A computer program product for performing a host initiated link reset in a storage area network (SAN), the computer program product comprising: identifying, by a host communicating with the SAN, each link in the SAN, each link being defined by a pair of ports; obtaining, by the host, a buffer credit balance for each port in the SAN; calculating, by the host, a buffer credit imbalance for each link in the SAN; causing a reset of the link based on a determination that the buffer credit imbalance for the link exceeds a threshold; Let them do so, the threshold is a predetermined percentage, and the buffer credit imbalance is calculated by dividing the larger buffer credit balance of the pair of ports of the link by the smaller buffer credit balance of the pair of ports of the link and subtracting one. The computer program.

16. 16. The computer program product of claim 15, wherein obtaining the buffer credit balance for each port in the SAN occurs on a periodic basis.

17. 17. The computer program product of claim 16, wherein the frequency of the periodic basis is configurable by a user of the host.

18. 16. The computer program product of claim 15, wherein the determining that the buffer credit imbalance for the link exceeds the threshold comprises determining that a difference in the buffer credit balances for each port of the pair of ports is greater than a predetermined number.

19. The computer program product of claim 15, wherein the threshold is configurable by a user of the host. based on a determination that the buffer credit imbalance for the link exceeds the threshold and that at least one of the pair of ports for the link is a channel port, issuing, by the host, a command to the channel port to reset the link; or instructing a network device in the SAN associated with the link to perform a reset of the link based on a determination that the buffer credit imbalance for the link exceeds the threshold and that neither of the pair of ports is a channel port.

16. The computer program product of claim 15, further comprising:

Citation Information

Patent Citations

  • Method for resource allocation for storage area network

    JP2017102925A

  • Credit-based flow control checking and correction method

    US6044406A