CN103731375B - A kind of FC port virtualization method, device - Google Patents
A kind of FC port virtualization method, device Download PDFInfo
- Publication number
- CN103731375B CN103731375B CN201210393565.1A CN201210393565A CN103731375B CN 103731375 B CN103731375 B CN 103731375B CN 201210393565 A CN201210393565 A CN 201210393565A CN 103731375 B CN103731375 B CN 103731375B
- Authority
- CN
- China
- Prior art keywords
- address
- information
- port
- query information
- virtual port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
本发明涉及计算机应用领域,公开了一种FC端口虚拟化的方法及装置。该方法中,待虚拟化的FC端口与相连接的FC端口之间为仲裁环Loop模式,通过二者间形成的仲裁环路,实现所述待虚拟化的FC端口与相连接的FC端口之间的信息交互,能够使所述待虚拟的FC端口根据环路组长产生地址问询信息后,在所述地址问询信息中加载虚拟端口的地址信息,从而使与所述待虚拟化的FC端口相连接的主机,能够根据所述加载的地址信息分配端口资源,建立虚拟端口。在这个过程中,只需FC端口支持Loop模式即可,而FC端口的基本功能就是支持Loop模式,不需要对其进行较高配置,因而不需要较高配置的FC端口就能实现虚拟化,减少了成本。
The invention relates to the field of computer applications, and discloses a method and device for FC port virtualization. In this method, the FC port to be virtualized and the connected FC port are in an arbitrated loop Loop mode, and through the arbitrated loop formed between the two, the connection between the FC port to be virtualized and the connected FC port is realized. The information exchange among them can make the FC port to be virtualized generate address inquiry information according to the ring group leader, and load the address information of the virtual port in the address inquiry information, so as to make the FC port to be virtualized The host connected to the FC port can allocate port resources and establish a virtual port according to the loaded address information. In this process, it is only necessary that the FC port supports the Loop mode, and the basic function of the FC port is to support the Loop mode. It does not need to be configured at a high level, so virtualization can be realized without a high-level configuration of the FC port. Reduced costs.
Description
技术领域technical field
本发明涉及计算机应用领域,特别是涉及一种FC端口虚拟化方法、装置。The invention relates to the field of computer applications, in particular to an FC port virtualization method and device.
背景技术Background technique
虚拟化(Virtualization Technology,VT)技术最早起源于20世纪70年代,IBM研究中心在实验室中实现的主机镜像,在随后的时间里,虚拟化技术应用日益广泛。所谓虚拟化技术,是指将一台物理的计算机软件环境分割为多个独立分区,每个分区均可以按照需求模拟出一台完整计算机的技术。模拟出来的计算机称为虚拟机(Virtual Machine,VM)。虚拟化技术的实质是通过中间层次实现计算机资源的管理和再分配,实现资源利用的最大化,虚拟化分区带来的最大好处是使同一物理平台能够同时运行多个同类或不同类型的操作系统,以分别作为不同业务和应用的支撑平台。Virtualization (Virtualization Technology, VT) technology first originated in the 1970s, when the IBM Research Center implemented host mirroring in the laboratory. In the following time, virtualization technology has become increasingly widely used. The so-called virtualization technology refers to the technology of dividing a physical computer software environment into multiple independent partitions, and each partition can simulate a complete computer according to requirements. The simulated computer is called a virtual machine (Virtual Machine, VM). The essence of virtualization technology is to realize the management and redistribution of computer resources through the middle layer to maximize the utilization of resources. The biggest benefit brought by virtualization partition is to enable the same physical platform to run multiple operating systems of the same type or different types at the same time. , as the supporting platforms for different businesses and applications.
对于虚拟化的系统,需要支持中央处理器(Central Processing Unit,CPU)虚拟化、内存虚拟化和输入/输出(Input/Output,I/O)设备的虚拟化。而对于光纤信道(FiberChannel,FC)端口这种I/O设备来说,当前要实现虚拟化,主要是通过SR_IOV/MR_IOV芯片技术或者NPIV软件技术实现的。其中,通过SR_IOV芯片技术实现FC端口的虚拟化时,需要具有SR_IOV功能的FC端口向主机上报多个虚拟设备,从而使每个虚拟机具有相对应的一个独立的虚拟设备;通过MR_IOV芯片技术实现FC端口的虚拟化时,可以使多个虚拟设备共享一个FC端口;通过NPIV软件技术实现FC端口的虚拟化时,需要将FC端口与交换机相连接,所述FC端口通过向交换机发送FDISC命令,获取多个虚拟端口地址,从而实现了FC端口的虚拟化。For a virtualized system, it is necessary to support central processing unit (Central Processing Unit, CPU) virtualization, memory virtualization, and input/output (Input/Output, I/O) device virtualization. For I/O devices such as Fiber Channel (FC) ports, virtualization is currently implemented mainly through SR_IOV/MR_IOV chip technology or NPIV software technology. Among them, when the virtualization of the FC port is realized through the SR_IOV chip technology, the FC port with the SR_IOV function needs to report multiple virtual devices to the host, so that each virtual machine has a corresponding independent virtual device; it is realized through the MR_IOV chip technology When FC ports are virtualized, multiple virtual devices can share one FC port; when FC port virtualization is realized through NPIV software technology, it is necessary to connect the FC port to the switch, and the FC port sends the FDISC command to the switch, Obtain multiple virtual port addresses, thereby realizing the virtualization of FC ports.
但是,发明人在本申请的研究过程中发现,若通过SR_IOV/MR_IOV芯片技术实现FC端口的虚拟化,则所述FC端口必须支持SR_IOV或MR_IOV技术,需要较高成本的FC端口;而通过NPIV软件技术实现FC端口的虚拟化,则必须配置额外的交换机,耗费成本高,且不利于大范围应用。However, the inventor found in the research process of this application that if the virtualization of FC ports is realized through SR_IOV/MR_IOV chip technology, then the FC ports must support SR_IOV or MR_IOV technology, which requires relatively high-cost FC ports; and through NPIV If software technology realizes the virtualization of FC ports, an additional switch must be configured, which is costly and unfavorable for large-scale applications.
发明内容Contents of the invention
有鉴于此,本发明的目的在于提供一种FC端口虚拟化的方法、装置及系统,以减少FC端口在虚拟化时的成本。In view of this, the object of the present invention is to provide a method, device and system for FC port virtualization, so as to reduce the cost of FC port virtualization.
所述光纤信道FC端口虚拟化方法,应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路节点,与其相连接的FC端口包含环路组长,所述方法的第一方面包括:The fiber channel FC port virtualization method is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected to other FC ports, wherein the FC port to be virtualized is an arbitration A loop node in the loop, the FC port connected to it comprises a loop group leader, and the first aspect of the method includes:
获取与所述待虚拟化的FC端口相连接的主机所传输的虚拟端口的地址信息;Obtaining the address information of the virtual port transmitted by the host connected to the FC port to be virtualized;
接收所述环路组长传输的地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的所述主机根据所述加载后的地址问询信息中的地址信息分配端口资源,建立虚拟端口。receiving the address query information transmitted by the ring leader, and loading the address information of the virtual port into the address query information when the address query information satisfies the loading condition, so as to be compatible with the virtual port to be virtualized The host connected to the FC port allocates port resources according to the address information in the loaded address query information, and establishes a virtual port.
结合第一方面,在第一方面的第一种可能的实现方式中,所述在地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息的方法包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, when the address query information satisfies a loading condition, the method for loading the address information of the virtual port in the address query information includes :
接收所述环路组长传输的交换机分配地址问询信息,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息中加载所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息,产生前地址问询信息;在所述虚拟端口的地址信息中不包含有为交换机分配的地址信息时,将接收到的所述交换机分配地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息,产生前地址问询信息;receiving the switch assignment address inquiry information transmitted by the ring group leader, and loading the address information for the switch into the switch assignment address inquiry information when the address information of the virtual port contains the address information assigned to the switch assigned address information, and transmit the loaded switch assignment address query information to the ring leader, so that the ring leader generates the previous address query according to the received switch assignment address query information information; when the address information of the virtual port does not include the address information allocated for the switch, the received switch address allocation query information is transmitted to the ring leader, so that the ring leader generating previous address query information according to the received switch assignment address query information;
接收所述环路组长传输的前地址问询信息,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息中加载所述为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息,产生静态硬件地址问询信息;在所述虚拟端口的地址信息中不包含有为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息,产生静态硬件地址问询信息;receiving the previous address query information transmitted by the ring leader, and loading the previous address query information into the previous address query information when the address information of the virtual port contains the address information allocated for the virtual port once used; address information assigned to the virtual port once used, and transmit the loaded pre-address inquiry information to the ring leader, so that the loop leader can generate Static hardware address query information; when the address information of the virtual port does not contain the address information allocated for the virtual port once used, the received previous address query information is transmitted to the ring leader , so that the ring leader generates static hardware address query information according to the received previous address query information;
接收所述环路组长传输的静态硬件地址问询信息,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息;在所述虚拟端口的地址信息中不包含有为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息;receiving the static hardware address query information transmitted by the ring leader, and loading the static hardware address query information into the static hardware address query information when the address information of the virtual port contains address information allocated for the static hardware The address information assigned by the static hardware, and the loaded static hardware address query information is transmitted to the ring leader, so that the loop leader generates a software address according to the received static hardware address query information Inquiry information; when the address information of the virtual port does not contain address information allocated for static hardware, the received static hardware address inquiry information is transmitted to the ring leader, so that the ring The road team leader generates software address inquiry information according to the received static hardware address inquiry information;
接收所述环路组长传输的软件地址问询信息,在所述虚拟端口的地址信息中包含有由软件分配的地址信息时,在所述软件地址问询信息中加载所述由软件分配的地址信息;在所述虚拟端口的地址信息中不包含有由软件分配的地址信息时,不再对所述软件地址问询信息进行加载处理。receiving the software address query information transmitted by the ring leader, and loading the address information allocated by the software into the software address query information when the address information of the virtual port contains the address information allocated by the software; address information; when the address information of the virtual port does not include the address information allocated by the software, the software address query information is no longer loaded.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,在所述地址问询信息中加载所述虚拟端口的地址信息后,还包括:With reference to the first possible implementation of the first aspect, in the second possible implementation, after loading the address information of the virtual port in the address query information, the method further includes:
接收所述环路组长传输的地址报告信息;receiving the address report information transmitted by the ring leader;
在所述地址报告信息中加载各个虚拟端口的地址信息,并将加载有所述地址信息的地址报告信息传输至所述环路组长,以由所述环路组长根据接收到的所述地址报告信息产生地址通报信息,所述地址通报信息中包含根据所述地址报告信息获取到的所述各个虚拟端口的地址信息;The address information of each virtual port is loaded in the address report information, and the address report information loaded with the address information is transmitted to the ring leader, so that the ring leader can The address report information generates address notification information, and the address notification information includes the address information of each virtual port obtained according to the address report information;
接收所述环路组长传输的地址通报信息并存储至所述各个虚拟端口中。The address notification information transmitted by the ring leader is received and stored in each virtual port.
本发明还公开了另一种光纤信道FC端口虚拟化方法,所述方法应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路组长,与其相连接的FC端口为环路节点,所述方法的第一方面包括:The present invention also discloses another virtualization method for fiber channel FC ports, the method is applied in the arbitrated ring mode, in the arbitrated ring mode, the FC port to be virtualized is connected with other FC ports, wherein the The FC port to be virtualized is the ring leader in the arbitrated ring, and the FC port connected to it is a ring node, and the first aspect of the method includes:
获取与所述待虚拟化的FC端口相连接的主机传输的虚拟端口的地址信息;Obtaining the address information of the virtual port transmitted by the host connected to the FC port to be virtualized;
产生地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的主机根据所述地址信息分配端口资源,建立虚拟端口。Generate address query information, and when the address query information satisfies the loading condition, load the address information of the virtual port in the address query information, so that the host connected to the FC port to be virtualized The above address information is used to allocate port resources and establish virtual ports.
结合第一方面,在第一方面的第一种可能的实现方式中,所述在地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息的方法包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, when the address query information satisfies a loading condition, the method for loading the address information of the virtual port in the address query information includes :
产生交换机分配地址问询信息,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息中加载为所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的交换机分配地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为交换机分配的地址信息时,将所述交换机分配地址问询信息传输至所述环路节点,以便所述环路节点将所述交换机分配地址问询信息返回至所述待虚拟化的FC端口;Generate switch allocation address query information, when the address information of the virtual port contains the address information allocated for the switch, load the address information allocated for the switch in the switch allocation address query information, and The loaded switch assignment address inquiry information is transmitted to the ring node, so that the ring node returns the loaded switch assignment address inquiry information to the FC port to be virtualized; When the address information of the port does not include the address information allocated for the switch, the switch allocation address query information is transmitted to the ring node, so that the ring node returns the switch allocation address query information to the Describe the FC ports to be virtualized;
根据接收到的所述交换机分配地址问询信息产生前地址问询信息,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息中加载为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的前地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息传输至所述环路节点,以便所述环路节点将所述前地址问询信息返回至所述待虚拟化的FC端口;Generate previous address query information according to the received address query information assigned by the switch, and when the address information of the virtual port contains the address information allocated for the virtual port once used, the previous address query information Load the address information allocated for the virtual port once used, and transmit the pre-loaded address query information to the loop node, so that the loop node returns the loaded pre-address query information to The FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the virtual port once used, transmit the received previous address inquiry information to the loop node , so that the loop node returns the previous address query information to the FC port to be virtualized;
根据接收到的所述前地址问询信息,产生静态硬件地址问询信息,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的静态硬件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息传输至所述环路节点,以便所述环路节点将所述静态硬件地址问询信息返回至所述待虚拟化的FC端口;Generate static hardware address query information according to the received previous address query information, and when the address information of the virtual port includes address information allocated for static hardware, in the static hardware address query information loading the address information allocated for the static hardware, and transmitting the loaded static hardware address query information to the loop node, so that the loop node returns the loaded static hardware address query information to The FC port to be virtualized; when the address information of the virtual port does not include address information allocated for static hardware, the received static hardware address query information is transmitted to the ring node, so that The loop node returns the static hardware address query information to the FC port to be virtualized;
根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息,在所述虚拟端口的地址信息中包含由软件分配的地址信息时,在所述软件地址问询信息中加载所述由软件分配的地址信息,并将加载后的软件地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的软件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含由软件分配的地址信息时,将接收到的所述软件地址问询信息传输至所述环路节点,以便所述环路节点将所述软件地址问询信息返回至所述待虚拟化的FC端口。Generate software address query information according to the received static hardware address query information, and load the software address query information into the software address query information when the address information of the virtual port includes address information assigned by software address information assigned by software, and transmit the loaded software address query information to the loop node, so that the loop node returns the loaded software address query information to the to-be-virtualized FC port; when the address information of the virtual port does not include the address information assigned by the software, the received software address inquiry information is transmitted to the loop node, so that the loop node sends the The software address query information is returned to the FC port to be virtualized.
另外,本发明还公开了一种光纤信道FC端口虚拟化装置,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路节点,与其相连接的FC端口包含环路组长,所述装置的第一方面包括:In addition, the present invention also discloses a fibre-channel FC port virtualization device, the device is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected with other FC ports, wherein, The FC port to be virtualized is a loop node in an arbitrated loop, and the FC port connected to it includes a loop leader, and the first aspect of the device includes:
获取模块,用于获取与所述待虚拟化的FC端口相连接的主机所传输的虚拟端口的地址信息;An obtaining module, configured to obtain address information of a virtual port transmitted by a host connected to the FC port to be virtualized;
地址信息加载模块,用于接收所述环路组长传输的地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的所述主机根据所述加载后的地址问询信息中的地址信息分配端口资源,建立虚拟端口。The address information loading module is configured to receive the address query information transmitted by the ring leader, and load the address information of the virtual port into the address query information when the address query information meets the loading condition, so that the host connected to the FC port to be virtualized allocates port resources according to the address information in the loaded address query information, and establishes a virtual port.
结合第一方面,在第一方面的第一种可能的实现方式中,所述地址信息加载模块包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the address information loading module includes:
交换机地址信息加载单元,用于接收所述环路组长传输的交换机分配地址问询信息,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息中加载所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息,产生前地址问询信息;在所述虚拟端口的地址信息中不包含有为交换机分配的地址信息时,将接收到的所述交换机分配地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息,产生前地址问询信息;The switch address information loading unit is configured to receive the switch allocation address inquiry information transmitted by the ring leader, and when the address information of the virtual port contains the address information allocated for the switch, when the switch allocation address query information Load the address information assigned to the switch in the query information, and transmit the loaded switch address query information to the ring leader, so that the ring leader can assign the address according to the received switch. Inquiry information to generate previous address inquiry information; when the address information of the virtual port does not contain the address information assigned to the switch, transmit the received inquiry information on the assigned address of the switch to the ring leader , so that the ring leader generates previous address query information according to the received switch assignment address query information;
前地址信息加载单元,用于接收所述环路组长传输的前地址问询信息,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息中加载所述为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息,产生静态硬件地址问询信息;在所述虚拟端口的地址信息中不包含有为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息,产生静态硬件地址问询信息;The previous address information loading unit is configured to receive the previous address query information transmitted by the ring leader, and when the address information of the virtual port contains the address information allocated for the virtual port once used, the The address information assigned to the previously used virtual port is loaded in the address inquiry information, and the loaded former address inquiry information is transmitted to the ring leader, so that the ring leader can The preceding address query information generates static hardware address query information; when the address information of the virtual port does not contain the address information allocated for the virtual port once used, the received previous address query information transmit to the loop leader, so that the loop leader generates static hardware address query information according to the received previous address query information;
静态硬件地址信息加载单元,用于接收所述环路组长传输的静态硬件地址问询信息,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息;在所述虚拟端口的地址信息中不包含有为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息;A static hardware address information loading unit, configured to receive the static hardware address query information transmitted by the ring leader, and when the address information of the virtual port contains address information allocated for static hardware, the static hardware The address information allocated for the static hardware is loaded into the address inquiry information, and the loaded static hardware address inquiry information is transmitted to the ring leader, so that the ring leader can Hardware address query information, generating software address query information; when the address information of the virtual port does not contain address information allocated for static hardware, the received static hardware address query information is transmitted to the The loop leader, so that the loop leader generates software address query information according to the received static hardware address query information;
软件地址信息记载单元,用于接收所述环路组长传输的软件地址问询信息,在所述虚拟端口的地址信息中包含有依靠软件分配的地址信息时,在所述软件地址问询信息中加载所述软件分配的地址信息;在所述虚拟端口的地址信息中不包含有软件分配的地址信息时,不再对所述软件地址问询信息进行加载处理。A software address information recording unit, configured to receive the software address inquiry information transmitted by the ring leader, and when the address information of the virtual port includes address information assigned by software, the software address inquiry information Load the address information allocated by the software; when the address information of the virtual port does not contain the address information allocated by the software, the software address inquiry information is no longer loaded.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述装置还包括:With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the device further includes:
地址报告信息接收模块,用于接收所述环路组长传输的地址报告信息;An address report information receiving module, configured to receive the address report information transmitted by the ring leader;
地址报告信息加载模块,用于在所述地址报告信息中加载各个虚拟端口的地址信息,并将加载有所述地址信息的地址报告信息传输至所述环路组长,以由所述环路组长产生根据接收到的所述地址报告信息产生地址通报信息,所述地址通报信息中包含根据所述地址报告信息获取到的所述各个虚拟端口的地址信息;The address report information loading module is used to load the address information of each virtual port in the address report information, and transmit the address report information loaded with the address information to the loop group leader, so that the loop can The group leader generates address notification information according to the received address report information, and the address notification information includes the address information of each virtual port obtained according to the address report information;
地址通报信息接收模块,用于接收所述环路组长传输的地址通报信息并存储。The address notification information receiving module is configured to receive and store the address notification information transmitted by the ring leader.
另外,本发明还公开了一种光纤信道FC端口虚拟化装置,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路组长,与其相连接的FC端口为环路节点,在第一方面中,所述装置包括:In addition, the present invention also discloses a fibre-channel FC port virtualization device, the device is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected with other FC ports, wherein, The FC port to be virtualized is the ring leader in the arbitrated loop, and the FC port connected to it is a loop node. In the first aspect, the device includes:
地址信息获取模块,用于获取与所述待虚拟化的FC端口相连接的主机传输的虚拟端口的地址信息;An address information obtaining module, configured to obtain address information of a virtual port transmitted by a host connected to the FC port to be virtualized;
地址问询信息产生模块,用于产生地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的主机根据所述地址信息分配端口资源,建立虚拟端口。An address query information generating module, configured to generate address query information, and load address information of the virtual port into the address query information when the address query information satisfies the loading condition, so as to be compatible with the virtual port to be virtualized The host connected to the normalized FC port allocates port resources according to the address information, and establishes a virtual port.
结合第一方面,在第一方面的第一种可能的实现方式中,所述地址问询信息产生模块包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the address inquiry information generation module includes:
交换机分配地址问询信息产生单元,用于产生交换机分配地址问询信息,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息中加载为所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的交换机分配地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为交换机分配的地址信息时,将所述交换机分配地址问询信息传输至所述环路节点,以便所述环路节点将所述交换机分配地址问询信息返回至所述待虚拟化的FC端口;A switch allocation address query information generating unit, configured to generate switch allocation address query information, when the address information of the virtual port contains address information allocated for the switch, load the switch allocation address query information as The address information allocated for the switch, and the loaded switch allocation address query information is transmitted to the ring node, so that the loop node returns the loaded switch allocation address query information to the The FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the switch, the switch allocation address inquiry information is transmitted to the ring node, so that the ring node will The switch assigns address inquiry information and returns to the FC port to be virtualized;
前地址问询信息产生单元,用于根据接收到的所述交换机分配地址问询信息产生前地址问询信息,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息中加载为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的前地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息传输至所述环路节点,以便所述环路节点将所述前地址问询信息返回至所述待虚拟化的FC端口;A previous address query information generating unit, configured to generate previous address query information according to the received address query information assigned by the switch, and the address information of the virtual port includes the address information assigned to the virtual port once used , load the address information assigned to the virtual port once used in the former address inquiry information, and transmit the loaded former address inquiry information to the ring node, so that the ring node will transfer the The pre-loaded address query information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the virtual port once used, the received pre-address transmitting the query information to the loop node, so that the loop node returns the previous address query information to the FC port to be virtualized;
静态硬件地址问询信息产生单元,用于根据接收到的所述前地址问询信息,产生静态硬件地址问询信息,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的静态硬件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息传输至所述环路节点,以便所述环路节点将所述静态硬件地址问询信息返回至所述待虚拟化的FC端口;A static hardware address query information generating unit, configured to generate static hardware address query information according to the received previous address query information, when the address information of the virtual port includes address information allocated for static hardware , loading the address information allocated for static hardware into the static hardware address query information, and transmitting the loaded static hardware address query information to the loop node, so that the loop node can transfer the The loaded static hardware address query information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the static hardware, the received static hardware address query The query information is transmitted to the loop node, so that the loop node returns the static hardware address query information to the FC port to be virtualized;
软件地址问询信息产生单元,用于根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息,在所述虚拟端口的地址信息中包含由软件分配的地址信息时,在所述软件地址问询信息中加载所述由软件分配的地址信息,并将加载后的软件地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的软件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含由软件分配的地址信息时,将接收到的所述软件地址问询信息传输至所述环路节点,以便所述环路节点将所述软件地址问询信息返回至所述待虚拟化的FC端口。A software address query information generating unit, configured to generate software address query information according to the received static hardware address query information, and when the address information of the virtual port includes address information allocated by software, the Load the address information assigned by the software into the software address query information, and transmit the loaded software address query information to the loop node, so that the loop node can query the loaded software address Inquiry information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information assigned by the software, the received software address inquiry information is transmitted to the loop node , so that the loop node returns the software address query information to the FC port to be virtualized.
另外,本发明还公开了一种光纤信道FC端口虚拟化装置,其特征在于,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路节点,与其相连接的FC端口包含环路组长,在本装置的第一方面,所述装置包括至少一个处理器和与所述至少一个处理器相连接的存储器,其中In addition, the present invention also discloses a fiber channel FC port virtualization device, which is characterized in that the device is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected to other FC ports. connection, wherein the FC port to be virtualized is a loop node in an arbitrated loop, and the FC port connected to it includes a loop leader, and in the first aspect of the device, the device includes at least one processor and memory coupled to said at least one processor, wherein
所述处理器,用于获取与所述待虚拟化的FC端口相连接的主机所传输的虚拟端口的地址信息,并接收所述环路组长传输的地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的所述主机根据所述加载后的地址问询信息中的地址信息分配端口资源,建立虚拟端口;The processor is configured to acquire the address information of the virtual port transmitted by the host computer connected to the FC port to be virtualized, and receive the address query information transmitted by the ring leader, and perform the address query When the query information satisfies the loading condition, load the address information of the virtual port in the address query information, so that the host connected to the FC port to be virtualized is based on the loaded address query information Allocate port resources according to the address information and establish a virtual port;
所述存储器,用于存储包含有运行程序的信息。The memory is used to store information including running programs.
另外,本发明还公开了一种光纤信道FC端口虚拟化装置,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路组长,与其相连接的FC端口为环路节点,在本装置的第一方面中,所述装置包括处理器和与所述处理器相连接的存储器,其中,In addition, the present invention also discloses a fibre-channel FC port virtualization device, the device is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected with other FC ports, wherein, The FC port to be virtualized is the loop leader in the arbitrated loop, and the FC port connected to it is the loop node. In the first aspect of the device, the device includes a processor and the processing tor connected memory, where,
所述处理器,用于获取与所述待虚拟化的FC端口相连接的主机传输的虚拟端口的地址信息,并产生地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的主机根据所述地址信息分配端口资源,建立虚拟端口。The processor is configured to obtain address information of a virtual port transmitted by a host connected to the FC port to be virtualized, and generate address query information, and when the address query information satisfies a loading condition, the The address information of the virtual port is loaded into the address query information, so that the host connected to the FC port to be virtualized allocates port resources according to the address information and establishes a virtual port.
所述存储器,用于存储包含有运行程序的信息。The memory is used to store information including running programs.
本发明所公开的FC端口虚拟化方法,能够为所述待虚拟化的FC端口申请多个地址信息,通常将该地址称为AL_PA(Arbitrated Loop Physical Address,仲裁环路物理地址)地址,从而使主机为每个AL_PA地址分配端口资源,建立虚拟端口。这种情况下,只要求FC端口支持Loop模式即可,而Loop模式为FC端口所支持的基本模式,普通FC端口即支持Loop模式,因而采用本发明提供的方法实现FC端口的虚拟化时,不需要配备对硬件要求较高的FC端口,而只使用普通端口即可,另外,通过普通的直连设备,如光纤、线缆、磁盘阵列等,将待虚拟的FC端口和对端端口连接起来即可,不需要额外配置交换机,节省了成本,适用于大范围推广。The FC port virtualization method disclosed in the present invention can apply for multiple address information for the FC port to be virtualized, and the address is usually called AL_PA (Arbitrated Loop Physical Address, arbitrated loop physical address) address, so that The host allocates port resources for each AL_PA address and establishes a virtual port. In this case, only the FC port is required to support the Loop mode, and the Loop mode is the basic mode supported by the FC port, and the common FC port supports the Loop mode. Therefore, when the method provided by the present invention is used to realize the virtualization of the FC port, It does not need to be equipped with FC ports that have high hardware requirements, but only ordinary ports can be used. In addition, through ordinary direct connection devices, such as optical fibers, cables, disk arrays, etc., connect the virtual FC port to the peer port Just stand up, no need to configure additional switches, saving costs, and suitable for large-scale promotion.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例公开的一种FC端口虚拟化方法的示例性虚拟化系统的结构示意图;FIG. 1 is a schematic structural diagram of an exemplary virtualization system of an FC port virtualization method disclosed in an embodiment of the present invention;
图2为本发明实施例公开的一种FC端口虚拟化方法的工作流程图;Fig. 2 is the working flowchart of a kind of FC port virtualization method disclosed by the embodiment of the present invention;
图3为本发明实施例公开的地址问询信息的帧格式的示意图;FIG. 3 is a schematic diagram of a frame format of address inquiry information disclosed in an embodiment of the present invention;
图4为本发明实施例公开的AL_PL位图的格式示意图;4 is a schematic diagram of the format of the AL_PL bitmap disclosed in the embodiment of the present invention;
图5为本发明实施例公开的一种FC端口虚拟化方法中,对地址问询信息进行处理的工作流程示意图;FIG. 5 is a schematic diagram of a workflow for processing address query information in an FC port virtualization method disclosed in an embodiment of the present invention;
图6为本发明实施例公开的一种FC端口虚拟化方法中,对交换机分配地址问询信息进行处理的工作流程示意图;FIG. 6 is a schematic workflow diagram of processing switch allocation address query information in a FC port virtualization method disclosed in an embodiment of the present invention;
图7为本发明实施例公开的一种FC端口虚拟化方法中,重新构建AL_PA位图的工作流程示意图;FIG. 7 is a schematic diagram of a workflow for rebuilding an AL_PA bitmap in an FC port virtualization method disclosed in an embodiment of the present invention;
图8为本发明实施例公开的一种FC端口虚拟化方法中,LIRP帧和LILP帧的格式示意图;8 is a schematic diagram of the formats of LIRP frames and LILP frames in an FC port virtualization method disclosed in an embodiment of the present invention;
图9为本发明实施例公开的一种FC端口虚拟化装置的结构示意图。FIG. 9 is a schematic structural diagram of an FC port virtualization device disclosed in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
本发明公开了一种光纤信道FC端口虚拟化方法,以降低FC端口在虚拟化时的成本。The invention discloses a method for fictitious channel FC port virtualization to reduce the cost of FC port virtualization.
图1描述的是可以实现FC端口虚拟化的各实施例的示例性虚拟化系统。其中,待虚拟化的FC端口和其他的FC端口通过任意的链接设备,如普通直连设备实现连接,同时,通过对FC端口和相连接的对端FC端口所在的主机设置为Loop模式,即仲裁环模式,或一端设置为Loop模式,一端设置为的自适应模式所述自适应模式支持Loop模式及其它模式,从而使所述FC端口和对端端口形成仲裁环。在所述仲裁环中,有一个FC端口为环路组长,其他的FC端口则为环路节点,所述环路组长能够产生信息帧,而环路节点能够接收所述信息帧并按照一定方式对所述信息帧进行处理。本发明通过Loop模式的特点,实现了FC端口的虚拟化。FIG. 1 depicts an exemplary virtualization system that can implement various embodiments of FC port virtualization. Among them, the FC port to be virtualized and other FC ports are connected through any link device, such as a common direct connection device. Arbitrated loop mode, or one end is set to Loop mode, and the other end is set to Adaptive mode. The adaptive mode supports Loop mode and other modes, so that the FC port and the peer port form an arbitrated loop. In the arbitrated ring, one FC port is the ring leader, and the other FC ports are loop nodes. The ring leader can generate information frames, and the loop nodes can receive the information frames and follow the The information frame is processed in a certain manner. The invention realizes the virtualization of the FC port through the characteristics of the Loop mode.
本发明实施例一公开了一种FC端口虚拟化的方法,所述方法应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路节点,与其相连接的FC端口包含环路组长,也就是说,当与所述待虚拟化的FC端口相连的FC端口为多个时,其中一个FC端口为环路组长,其他的FC端口为环路节点。参见图2所示的工作流程,其具体步骤如下:Embodiment 1 of the present invention discloses a method for FC port virtualization. The method is applied in an arbitrated loop mode. In the arbitrated loop mode, the FC port to be virtualized is connected to other FC ports, wherein the The FC port to be virtualized is a loop node in the arbitrated loop, and the FC port connected to it includes the ring leader, that is to say, when the FC port connected to the FC port to be virtualized is a plurality of , one of the FC ports is the ring leader, and the other FC ports are ring nodes. Referring to the workflow shown in Figure 2, the specific steps are as follows:
步骤S1、所述待虚拟化的FC端口获取与所述待虚拟化的FC端口相连接的主机传输的虚拟端口的地址信息。Step S1, the FC port to be virtualized obtains address information of a virtual port transmitted by a host connected to the FC port to be virtualized.
在对所述FC端口进行虚拟化之前,工作人员根据实际需要,会预先获知所需的虚拟端口的地址信息,并将所述地址信息传输至所述待虚拟化的FC端口所在的主机,并由主机传输至所述待虚拟化的FC端口,从而由所述FC端口获取所需的虚拟端口的地址信息;Before virtualizing the FC port, the staff will know the address information of the required virtual port in advance according to actual needs, and transmit the address information to the host where the FC port to be virtualized is located, and transmitted by the host to the FC port to be virtualized, so that the address information of the required virtual port is obtained by the FC port;
步骤S2、所述待虚拟化的FC端口接收所述环路组长传输的地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的所述主机根据所述加载后的地址问询信息中的地址信息分配端口资源,建立虚拟端口。Step S2, the FC port to be virtualized receives the address inquiry information transmitted by the ring leader, and loads the virtual port in the address inquiry information when the address inquiry information satisfies the loading condition address information, so that the host connected to the FC port to be virtualized allocates port resources according to the address information in the loaded address query information, and establishes a virtual port.
通过步骤S1至步骤S2的操作,能够为所述待虚拟化的FC端口申请多个虚拟端口的地址信息,通常将该地址称为AL_PA(Arbitrated Loop Physical Address,仲裁环路物理地址)地址,从而使主机为每个AL_PA地址分配端口资源,建立虚拟端口。这种情况下,只要求FC端口支持Loop模式即可,而Loop模式为FC端口所支持的基础模式,普通FC端口均支持Loop模式,不需要配备对硬件要求较高的FC端口,另外,通过普通的直连设备,如光纤、线缆、磁盘阵列等,将待虚拟的FC端口和对端端口连接起来即可,不需要额外配置交换机,节省了成本,适用于大范围推广。Through the operations from step S1 to step S2, the address information of multiple virtual ports can be applied for for the FC port to be virtualized, and the address is usually called AL_PA (Arbitrated Loop Physical Address, arbitrated loop physical address) address, thereby Make the host allocate port resources for each AL_PA address and establish a virtual port. In this case, it is only required that the FC port supports the Loop mode, and the Loop mode is the basic mode supported by the FC port. Common FC ports support the Loop mode, and there is no need to configure an FC port with high hardware requirements. In addition, the Ordinary direct-connection devices, such as optical fibers, cables, disk arrays, etc., just connect the FC port to be virtualized with the peer port. No additional switches are required, which saves costs and is suitable for large-scale promotion.
另外,所述地址问询信息包括:LIFA(Loop initial fabric AL_PA,交换机分配地址)帧、LIPA(Loop initial past AL_PA,使用原地址)帧、LIHA(Loop initial hard AL_PA,使用静态硬件地址)帧和LISA(Loop initial soft AL_PA,软件分配地址)帧。In addition, the address query information includes: LIFA (Loop initial fabric AL_PA, address assigned by the switch) frame, LIPA (Loop initial past AL_PA, using the original address) frame, LIHA (Loop initial hard AL_PA, using a static hardware address) frame and LISA (Loop initial soft AL_PA, software assigned address) frame.
其中,所述LIFA帧、LIPA帧、LIHA帧和LISA帧的格式如图3所示,在上述帧信息中,包含有AL_PA位图,所述AL_PA位图如图4所示,在仲裁环中,每个端口最多可以有127个可分配的地址,所述AL_PA位图具有128bit,在进行虚拟化之前,环路组长对所述AL_PA位图进行初始化,初始后的AL_PA位图中,Bit Word,即比特位所对应的位置为0,当待虚拟的FC端口分配了AL_PA地址后,所述AL_PA位图中,AL_PA地址对应Bit Word处标记为1,表示该AL_PA地址已经被占用。Wherein, the format of the LIFA frame, LIPA frame, LIHA frame and LISA frame is as shown in Figure 3, and the above frame information includes an AL_PA bitmap, and the AL_PA bitmap is as shown in Figure 4, in the arbitrated ring , each port can have up to 127 assignable addresses, and the AL_PA bitmap has 128 bits. Before virtualization, the ring leader initializes the AL_PA bitmap. In the AL_PA bitmap after initialization, Bit Word, that is, the position corresponding to the bit is 0. After the AL_PA address is allocated to the FC port to be virtualized, the bit word corresponding to the AL_PA address in the AL_PA bitmap is marked as 1, indicating that the AL_PA address has been occupied.
其中,参见图5所示的工作流程示意图,在地址问询信息满足加载条件时,所述待虚拟的FC端口在所述地址问询信息中加载所述虚拟端口的地址信息,将加载后的地址问询信息返回所述环路组长的方法包括:Wherein, referring to the schematic workflow diagram shown in FIG. 5, when the address query information meets the loading condition, the FC port to be virtualized loads the address information of the virtual port in the address query information, and loads the loaded The method for returning the address query information to the ring leader includes:
步骤S11、所述待虚拟的FC端口接收所述环路组长传输的交换机分配地址问询信息LIFA帧,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息LIFA帧中加载所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息LIFA帧传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息LIFA帧,产生前地址问询信息LIPA帧;在所述虚拟端口的地址信息中不包含有为交换机分配的地址信息时,将接收到的所述交换机分配地址问询信息LIFA帧传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息,产生前地址问询信息LIPA帧;Step S11, the FC port to be virtualized receives the switch assignment address query information LIFA frame transmitted by the ring leader, and when the address information of the virtual port contains the address information assigned to the switch, in the Load the address information assigned to the switch in the switch allocation address query information LIFA frame, and transmit the loaded switch allocation address query information LIFA frame to the ring group leader, so that the ring group leader according to the received The received switch assigns an address query information LIFA frame to generate a previous address query information LIPA frame; when the address information of the virtual port does not include the address information assigned to the switch, the received switch is assigned The address query information LIFA frame is transmitted to the ring leader, so that the loop leader generates the previous address query information LIPA frame according to the received address query information assigned by the switch;
在所述LIFA帧中,加载有“11 02 00 00”的数据字,用以标识所述LIFA帧,当所述环路组长接收到所述LIFA帧时,将“11 02 00 00”的数据字修改为“11 03 00 00”,则将所述LIFA帧转化为LIPA帧;In the LIFA frame, the data word "11 02 00 00" is loaded to identify the LIFA frame. When the ring leader receives the LIFA frame, the "11 02 00 00" The data word is modified to "11 03 00 00", then the LIFA frame is converted into a LIPA frame;
其中,对LIFA帧和LIPA帧的标识方法本领域普通技术人员可以想到的有多种,只要能实现对LIFA、LIPA帧的标识即可,在此不一一列举;Among them, there are many methods for identifying LIFA frames and LIPA frames that those of ordinary skill in the art can think of, as long as the identification of LIFA and LIPA frames can be realized, they will not be listed one by one here;
步骤S12、接收所述环路组长传输的前地址问询信息LIPA帧,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息LIPA帧中加载所述为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息LIPA帧传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息LIPA帧,产生静态硬件地址问询信息LIHA帧;在所述虚拟端口的地址信息中不包含有为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息LIPA帧传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息LIPA帧,产生静态硬件地址问询信息LIHA帧;Step S12: Receive the previous address query information LIPA frame transmitted by the loop leader, and when the address information of the virtual port contains the address information allocated for the virtual port once used, the previous address query The information LIPA frame is loaded with the address information allocated for the once-used virtual port, and the pre-address query information LIPA frame after loading is transmitted to the ring leader, so that the ring leader The former address inquiry information LIPA frame generates a static hardware address inquiry information LIHA frame; when the address information of the virtual port does not include the address information allocated for the virtual port once used, the received The former address inquiry information LIPA frame is transmitted to the loop leader, so that the loop leader generates a static hardware address inquiry information LIHA frame according to the received former address inquiry information LIPA frame;
当所述环路组长接收到所述LIPA帧时,将“11 03 00 00”的数据字修改为“11 0400 00”,则将所述LIPA帧转化为LIHA帧;When the loop leader receives the LIPA frame, modify the data word of "11 03 00 00" to "11 0400 00", then convert the LIPA frame into a LIHA frame;
其中,对LIHA帧的标识方法本领域普通技术人员可以想到的有多种,只要能实现对LIHA的标识即可,在此不一一列举;Among them, there are many methods for identifying LIHA frames that those of ordinary skill in the art can think of, as long as the identification of LIHA can be realized, they will not be listed one by one here;
步骤S13、接收所述环路组长传输的静态硬件地址问询信息LIHA帧,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息LIHA帧中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息LIHA帧传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息LIHA帧,产生软件地址问询信息LISA帧;在所述虚拟端口的地址信息中不包含有为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息LIHA帧传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息LIHA帧,产生软件地址问询信息LISA帧;Step S13: Receive the static hardware address inquiry information LIHA frame transmitted by the loop leader, and when the address information of the virtual port contains address information allocated for static hardware, the static hardware address inquiry information Load the address information allocated for the static hardware in the LIHA frame, and transmit the loaded static hardware address inquiry information LIHA frame to the ring leader, so that the ring leader can Hardware address inquiry information LIHA frame, generating software address inquiry information LISA frame; when the address information of the virtual port does not include address information allocated for static hardware, the received static hardware address inquiry information The LIHA frame is transmitted to the loop leader, so that the loop leader generates a software address query information LISA frame according to the received static hardware address query information LIHA frame;
当所述环路组长接收到所述LIHA帧时,将“11 04 00 00”的数据字修改为“11 0500 00”,则将所述LIPA帧转化为LISA帧;When the loop group leader receives the LIHA frame, modify the data word of "11 04 00 00" to "11 0500 00", then convert the LIPA frame into a LISA frame;
其中,对LISA帧的标识方法本领域普通技术人员可以想到的有多种,只要能实现对LISA的标识即可,在此不一一列举;Among them, there are many methods for identifying LISA frames that those of ordinary skill in the art can think of, as long as the identification of LISA can be realized, they will not be listed one by one here;
步骤S14、接收所述环路组长传输的软件地址问询信息LISA帧,在所述虚拟端口的地址信息中包含有由软件分配的地址信息时,在所述软件地址问询信息LISA帧中加载所述由软件分配的地址信息,并将加载后的软件地址问询信息LISA帧传输至所述环路组长;在所述虚拟端口的地址信息中不包含软件分配的地址信息时,将接收到的所述软件地址问询信息LISA帧传输至所述环路组长。Step S14, receiving the software address inquiry information LISA frame transmitted by the ring leader, when the address information of the virtual port contains address information assigned by software, in the software address inquiry information LISA frame Load the address information assigned by the software, and transmit the loaded software address inquiry information LISA frame to the ring leader; when the address information of the virtual port does not include the address information assigned by the software, the The received LISA frame of the software address inquiry information is transmitted to the ring leader.
另外,在步骤S14中,在所述软件地址问询信息中加载所述由软件分配的地址信息后,或在判断出不需要加载地址信息后,还可以将所述软件地址问询信息传输至环路组长。In addition, in step S14, after the address information assigned by the software is loaded in the software address inquiry information, or after it is determined that the address information does not need to be loaded, the software address inquiry information may also be transmitted to Ring leader.
其中,步骤S11中,接收所述交换机分配地址问询信息,根据不同条件对所述交换机分配地址问询信息进行处理的方式,参见如图6的工作流程示意图,包括:Wherein, in step S11, the manner of receiving the switch assignment address inquiry information, and processing the exchange assignment address inquiry information according to different conditions, see the workflow diagram shown in FIG. 6 , including:
步骤S111、接收所述环路组长传输的交换机分配地址问询信息LIFA帧;Step S111, receiving the switch assignment address inquiry information LIFA frame transmitted by the ring leader;
步骤S112、根据获取的所述地址信息,判断是否需要为交换机分配地址信息,若是,执行步骤S113的操作,若否,执行步骤S115的操作;在实际应用情况下,有时并不需要为交换机设置虚拟端口,因此需要进行判断过程;Step S112, according to the acquired address information, determine whether it is necessary to assign address information to the switch, if so, perform the operation of step S113, if not, perform the operation of step S115; in actual application situations, sometimes it is not necessary to set the switch for the switch Virtual ports, so a judgment process is required;
步骤S113、根据获取的所述地址信息中包含的为交换机分配的地址信息,在所述交换机分配地址问询信息LIFA中加载所述交换机的地址信息;具体的,在所述AL_PA位图中,为交换机分配的AL_PA地址处置1,表明该地址已经被占用;Step S113: Load the address information of the switch into the switch allocation address inquiry information LIFA according to the address information allocated to the switch included in the acquired address information; specifically, in the AL_PA bitmap, The AL_PA address assigned to the switch is set to 1, indicating that the address is already occupied;
步骤S114、将加载有所述交换机的地址信息的交换机分配地址问询信息传输至所述环路组长;Step S114, transmitting the switch assignment address inquiry information loaded with the address information of the switch to the ring leader;
步骤S115、将接收到的所述交换机分配地址问询信息返回至所述环路组长。Step S115 , returning the received query information of the address assigned by the switch to the ring leader.
另外,当所述环路组长接收到所述LIFA帧后,会产生LIPA帧,若本次对FC端口进行虚拟化的操作为首次操作,则不存在所述的为曾经使用的虚拟端口分配的地址,或者,本次虚拟化不需要使用曾经使用的虚拟端口的地址,这种情况下,则所述地址信息中不包含为曾经使用的虚拟端口分配的AL_PA地址,所述待虚拟的FC端口会在判断后,直接将LIPA帧返回所述环路组长端口。当需要加载时,所述环路节点会在所述LIPA帧的AL_PA位图中加载所需的为原虚拟地址分配的AL_PA地址。In addition, when the ring leader receives the LIFA frame, it will generate a LIPA frame. If this operation of virtualizing the FC port is the first operation, there will be no allocation of the previously used virtual port. or, this virtualization does not need to use the address of the previously used virtual port, in this case, the address information does not include the AL_PA address allocated for the previously used virtual port, and the FC to be virtualized The port will directly return the LIPA frame to the ring leader port after judging. When loading is required, the loop node will load the required AL_PA address allocated for the original virtual address in the AL_PA bitmap of the LIPA frame.
当所述环路组长接收到所述LIPA帧后,会产生LIHA帧,对于某些静态硬件,如跳线、背板线等,通常会分配固定的虚拟地址,以简化配置,便于后续的分析处理,这种情况下,会为硬件分配固定的虚拟地址,这种情况下,所述待虚拟化的FC端口经过判断后,在所述静态硬件地址问询信息LIHA帧中加载所述静态硬件的地址信息,也就是说,在相应的AL_PA地址处置1,表明该地址已经被占用,如不需要加载,则直接将所述LIHA帧返回所述环路组长节点。When the loop group leader receives the LIPA frame, it will generate a LIHA frame. For some static hardware, such as jumpers, backplane lines, etc., a fixed virtual address is usually assigned to simplify configuration and facilitate subsequent Analysis and processing. In this case, a fixed virtual address will be assigned to the hardware. In this case, after the FC port to be virtualized is judged, the static hardware address inquiry information LIHA frame is loaded with the static The address information of the hardware, that is to say, setting 1 in the corresponding AL_PA address indicates that the address is already occupied, and if it does not need to be loaded, the LIHA frame is directly returned to the ring leader node.
当所述环路组长接收到所述LIHA帧后,会产生LISA帧,在上述步骤中,经过对LIFA、LIPA、LIHA帧的加载,已经在AL_PA位图中加载了一定的地址信息,为交换机、硬件分配了AL_PA地址,并在所述AL_PA位图中加载了前虚拟端口的地址信息,这种情况下,如果已经加载的地址信息不能满足对虚拟端口的需求,则需要软件分配地址信息,例如,需要100个虚拟端口,而在上述步骤中,通过为交换机、曾经使用的虚拟端口和静态硬件只分配了20个地址,这种情况下,则需在LISA帧中加载软件分配的地址信息。软件在所述LISA帧中加载软件分配的地址信息时,分配的AL_PA地址并不固定,一般从AL_PA位图中找到的第一个空余的AL_PA地址开始,按照优先级从高到低的顺序进行加载,依次对AL_PA位图中相应的地址置1。After the loop group leader receives the LIHA frame, a LISA frame will be generated. In the above steps, through the loading of LIFA, LIPA, and LIHA frames, certain address information has been loaded in the AL_PA bitmap, for The switch and hardware allocate the AL_PA address, and load the address information of the previous virtual port in the AL_PA bitmap. In this case, if the loaded address information cannot meet the requirements for the virtual port, the address information needs to be allocated by software , for example, 100 virtual ports are required, and in the above steps, only 20 addresses are assigned by the switch, used virtual ports and static hardware, in this case, the address assigned by the software needs to be loaded in the LISA frame information. When the software loads the address information allocated by the software in the LISA frame, the allocated AL_PA address is not fixed, generally starting from the first free AL_PA address found in the AL_PA bitmap, and proceeding in order of priority from high to low Load, and set 1 to the corresponding address in the AL_PA bitmap in turn.
另外,在仲裁环模式中,整个仲裁环路上的端口数量不能大于126,假如有其他设备,例如,在该仲裁环路中已经有5个端口,那么主机只能再为121个AL_PA地址分配端口资源,建立虚拟端口。当所需的虚拟端口数量较多时,例如,需要200个虚拟端口,则所述AL_PA位图中的地址不能满足需求,则所需的过多的虚拟端口无法建立,一般这种情况下,可以说所述过多的虚拟端口为非参与模式的虚拟端口。In addition, in the arbitrated loop mode, the number of ports on the entire arbitrated loop cannot exceed 126. If there are other devices, for example, there are already 5 ports in the arbitrated loop, then the host can only allocate ports for 121 AL_PA addresses resources, create a virtual port. When the number of required virtual ports is large, for example, 200 virtual ports are required, the addresses in the AL_PA bitmap cannot meet the requirements, and the required excessive virtual ports cannot be established. Generally, in this case, you can Say the excess virtual port is a non-participating mode virtual port.
在步骤S14之后,当环路组长收到LISA帧,说明AL_PA地址分配过程全部结束,所有端口或者是分配到唯一的AL_PA地址,或者进入非参与模式。由于AL_PA地址分配过程是任意的,为了便于配置管理或问题分析,则重新构建一张AL_PA位图。为了实现重新构建环路位图,环路节点在所述地址问询信息中加载所述地址信息后,参见图7,还包括以下步骤:After step S14, when the loop leader receives the LISA frame, it means that the AL_PA address allocation process is all over, and all ports are either allocated to a unique AL_PA address, or enter a non-participating mode. Since the AL_PA address allocation process is arbitrary, in order to facilitate configuration management or problem analysis, an AL_PA bitmap is reconstructed. In order to realize rebuilding the loop bitmap, after the loop node loads the address information in the address inquiry information, referring to FIG. 7, the following steps are also included:
步骤S15、所述待虚拟化的FC端口接收所述环路组长传输的地址报告信息LIRP(Loop initialization report position,地址报告过程)帧;在接收到所述待虚拟化的FC端口返回的软件地址问询信息后,所述环路组长会产生地址报告信息;Step S15, the FC port to be virtualized receives the address report information LIRP (Loop initialization report position, address reporting process) frame transmitted by the loop leader; after receiving the software returned by the FC port to be virtualized After the address query information, the ring leader will generate address report information;
步骤S16、在所述地址报告信息LIRP帧中加载各个虚拟端口的地址信息,并将加载有所述地址信息的地址报告信息LIRP帧传输至环路组长,以由所述环路组长根据接收到的所述地址报告信息LIRP帧产生LILP(Loop initialization loop position,通报位置过程)帧,所述地址通报信息LILP帧中包含根据所述地址报告信息获取到的所述各个虚拟端口的地址信息;其中所述LIRP帧和LILP帧的格式如图8所示,所述环路节点在接收到所述环路组长产生的LIRP帧后,会在所述LIRP帧中的AL PA位图中,依次将各个虚拟端口对应的AL_PA地址处置1,并在所有虚拟端口对应的AL_PA地址均置1后,环路节点会将LIRP帧传输至环路组长,所述环路组长接收到LIRP帧,将帧标识改为(11 07 00 00),形成LILP帧并转发到环路节点上。非参与模式的虚拟端口没有与其对应的AL_PA地址,因而在所述LIRP帧中,不需要加载非参与模式的虚拟端口对应的AL_PA地址信息;Step S16, loading the address information of each virtual port in the address report information LIRP frame, and transmitting the address report information LIRP frame loaded with the address information to the ring leader, so that the loop leader can The received address report information LIRP frame generates a LILP (Loop initialization loop position, notification position process) frame, and the address report information LILP frame includes the address information of each virtual port obtained according to the address report information ; Wherein the format of the LIRP frame and the LILP frame is as shown in Figure 8, the loop node will be in the AL PA bitmap in the LIRP frame after receiving the LIRP frame produced by the loop group leader , set the AL_PA address corresponding to each virtual port to 1 in turn, and after all the AL_PA addresses corresponding to all virtual ports are set to 1, the ring node will transmit the LIRP frame to the ring leader, and the ring leader receives the LIRP frame, change the frame identifier to (11 07 00 00), form a LILP frame and forward it to the ring node. The virtual port of the non-participating mode does not have an AL_PA address corresponding to it, so in the LIRP frame, the AL_PA address information corresponding to the virtual port of the non-participating mode does not need to be loaded;
步骤S17、接收所述环路组长传输的地址通报信息LILP帧并存储至所述各个虚拟端口中,以获得完整的AL_PA位图以备后用。Step S17 , receiving the address announcement information LILP frame transmitted by the ring leader and storing it in each virtual port, so as to obtain a complete AL_PA bitmap for later use.
通过步骤S15至步骤S17的操作,环路节点会获取重新构建的AL_PA位图,其中加载有各个虚拟端口对应的AL_PA地址,并将所述AL_PA位图存储至各个虚拟端口中,以便以后进行问题分析时使用。Through the operation from step S15 to step S17, the loop node will obtain the reconstructed AL_PA bitmap, which is loaded with the AL_PA address corresponding to each virtual port, and store the AL_PA bitmap into each virtual port, so that the problem can be solved later used during analysis.
在某些情况下,并不需要重新构建AL_PA位图,或者设备并不支持重新构建AL_PA位图时,环路节点会将LISA帧的帧标识的第二个字节改为00,即将原帧标识11 05 01 00修改为11 05 00 00,再发送给环路组长,当环路组长收到LISA帧时,会检查该字节以决定是否执行构建位图过程,当看到LISA帧标识的第二字节已经修改,则不再执行重新构建AL_PA位图的操作。In some cases, it is not necessary to rebuild the AL_PA bitmap, or the device does not support rebuilding the AL_PA bitmap, the loop node will change the second byte of the frame ID of the LISA frame to 00, that is, the original frame Change the identification 11 05 01 00 to 11 05 00 00, and then send it to the ring leader. When the ring leader receives the LISA frame, he will check this byte to decide whether to execute the process of building the bitmap. When he sees the LISA frame If the second byte of the flag has been modified, the operation of rebuilding the AL_PA bitmap will not be performed.
另外,环路节点在每次收到环路组长传输的信息,如LIFA、LIPA、LIHA、LISA和LILIP帧,并在其中加载相应的AL_PA地址信息后,都可由执行加载操作的环路节点根据加载后的地址计算CRC(Cyclic Redundancy Check,循环冗余校验码),以避免误差。In addition, each time the ring node receives the information transmitted by the ring leader, such as LIFA, LIPA, LIHA, LISA, and LILIP frames, and loads the corresponding AL_PA address information in it, the ring node that performs the loading operation can Calculate CRC (Cyclic Redundancy Check, cyclic redundancy check code) according to the loaded address to avoid errors.
通过本实施例公开的FC端口虚拟化方法,待虚拟化的FC端口在仲裁环Loop模式下,和其他端口建立仲裁环路,并接收环路组长传输的地址问询信息,在所述地址问询信息加载所需的虚拟端口的AL_PA地址信息,便于主机为每个AL_PA地址分配端口资源,建立虚拟端口。这种情况下,只要求FC端口支持Loop模式即可,而普通FC端口均支持Loop模式,不需要配备对硬件要求较高的FC端口,而只使用普通端口即可,另外,通过普通的直连设备,如光纤、线缆和磁盘阵列等,将待虚拟的FC端口和对端端口连接起来即可,不需要额外配置交换机,节省了成本,适用于大范围推广。Through the FC port virtualization method disclosed in this embodiment, the FC port to be virtualized establishes an arbitrated loop with other ports in the Loop mode of the arbitrated loop, and receives the address query information transmitted by the loop leader. The query information loads the required AL_PA address information of the virtual port, so that the host can allocate port resources for each AL_PA address and establish a virtual port. In this case, only the FC ports are required to support the Loop mode, and all common FC ports support the Loop mode. There is no need to configure FC ports with high hardware requirements, and only ordinary ports can be used. Connecting devices, such as optical fibers, cables, and disk arrays, just connect the FC port to be virtualized with the peer port. No additional switches are required, which saves costs and is suitable for large-scale promotion.
相应的,本发明还公开了一种FC端口虚拟化方法,所述方法应用于仲裁环Loop模式中,在所述Loop模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路组长,与其相连接的FC端口为环路节点,所述方法包括:Correspondingly, the present invention also discloses a method for FC port virtualization. The method is applied in an arbitrated ring Loop mode. In the Loop mode, the FC port to be virtualized is connected to other FC ports, wherein the The FC port to be virtualized is the ring leader in the arbitrated ring, and the FC port connected to it is a ring node, and the method includes:
步骤S3、所述待虚拟化的FC端口获取与所述待虚拟化的FC端口相连接的主机传输的虚拟端口的地址信息;Step S3, the FC port to be virtualized obtains the address information of the virtual port transmitted by the host connected to the FC port to be virtualized;
步骤S4、所述待虚拟化的FC端口产生地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的主机根据所述地址信息分配端口资源,建立虚拟端口。Step S4, the FC port to be virtualized generates address query information, and when the address query information satisfies the loading condition, loads the address information of the virtual port into the address query information so as to be compatible with the The host connected to the FC port to be virtualized allocates port resources according to the address information, and establishes a virtual port.
通过步骤S3和S4的操作,所述环路组长,即待虚拟化的FC端口,在产生地址问询信息时,会在所述地址问询信息中加载所需的AL_PA地址,以便主机根据AL_PA位图中加载的AL_PA地址,分配端口资源,建立虚拟端口。Through the operations of steps S3 and S4, the ring leader, that is, the FC port to be virtualized, will load the required AL_PA address in the address inquiry information when generating the address inquiry information, so that the host can The AL_PA address loaded in the AL_PA bitmap allocates port resources and establishes virtual ports.
其中,所述步骤S4中,在地址问询信息满足加载条件时,在所述地址问询信息中加载地址信息的方法包括:Wherein, in the step S4, when the address inquiry information satisfies the loading condition, the method for loading the address information in the address inquiry information includes:
步骤S41、所述待虚拟化的FC端口产生交换机分配地址问询信息LIFA帧,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息LIFA帧中加载所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息LIFA帧传输至所述环路节点,以便所述环路节点将所述加载后的交换机分配地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含有为交换机分配的地址信息时,将交换机分配地址问询信息LIFA帧传输至所述环路节点,以便所述环路节点将所述交换机分配地址问询信息返回至所述待虚拟化的FC端口;所述环路组长,即待虚拟化的FC端口,在所述LIFA帧中,加载有“11 02 00 00”的数据字,用以标识所述LIFA帧,或者,也可以采用其他的标识方式;Step S41, the FC port to be virtualized generates a switch allocation address query information LIFA frame, and when the address information of the virtual port contains address information allocated for the switch, the switch allocation address query information LIFA The frame loads the address information allocated for the switch, and transmits the loaded switch allocation address inquiry information LIFA frame to the loop node, so that the loop node will query the loaded switch allocation address The information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information assigned to the switch, the switch is assigned an address inquiry information LIFA frame and is transmitted to the loop node, so that The loop node returns the switch allocation address inquiry information to the FC port to be virtualized; the loop group leader, that is, the FC port to be virtualized, is loaded with " 11 02 00 00", used to identify the LIFA frame, or other identification methods can also be used;
步骤S42、根据接收到的所述交换机分配地址问询信息LIFA帧产生前地址问询信息LIPA帧,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息LIPA帧中加载所述为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息LIPA帧传输至所述环路节点,以便所述环路节点将所述加载后的前地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含有为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息LIPA帧传输至所述环路节点,以便所述环路节点将所述前地址问询信息返回至所述待虚拟化的FC端口;所述环路组长,即待虚拟化的FC端口,将所述LIFA帧中,加载的“11 02 00 00”的数据字修改为“11 03 00 00”,用以标识所述LIPA帧,或者,也可以采用其他的标识方式;Step S42: Generate the pre-address query information LIPA frame according to the received LIFA frame of the switch assignment address query information. When the address information of the virtual port contains the address information allocated for the virtual port once used, The address information allocated for the once-used virtual port is loaded in the LIPA frame of the previous address query information, and the loaded LIPA frame of the previous address query information is transmitted to the loop node, so that the loop node Return the pre-loaded address query information to the FC port to be virtualized; when the address information of the virtual port does not contain the address information allocated for the virtual port once used, the received The LIPA frame of the previous address query information is transmitted to the loop node, so that the loop node returns the previous address query information to the FC port to be virtualized; the loop group leader, namely For the FC port to be virtualized, modify the data word "11 02 00 00" loaded in the LIFA frame to "11 03 00 00" to identify the LIPA frame, or other identifications can also be used Way;
步骤S43、根据接收到的所述前地址问询信息LIPA帧,产生静态硬件地址问询信息LIHA帧,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息LIHA帧中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息LIHA帧传输至所述环路节点,以便所述环路节点将所述加载后的静态硬件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含所述为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息LIHA帧传输至所述环路节点,以便所述环路节点将所述静态硬件地址问询信息返回至所述待虚拟化的FC端口;所述环路组长,即待虚拟化的FC端口,将所述LIPA帧中,加载的“11 03 00 00”的数据字修改为“11 04 00 00”,用以标识所述LIHA帧,或者,也可以采用其他的标识方式;Step S43: Generate a static hardware address query information LIHA frame according to the received previous address query information LIPA frame, and when the address information of the virtual port contains address information allocated for static hardware, the The static hardware address inquiry information LIHA frame loads the address information allocated for the static hardware, and transmits the loaded static hardware address inquiry information LIHA frame to the loop node, so that the loop node can transfer the The loaded static hardware address query information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the static hardware, the received static hardware The address query information LIHA frame is transmitted to the loop node, so that the loop node returns the static hardware address query information to the FC port to be virtualized; The FC port of the described LIPA frame, the data word of loading " 11 03 00 00 " is changed to " 11 04 00 00 ", in order to identify the described LIHA frame, or, also can adopt other identification modes;
步骤S44、根据接收到的所述静态硬件地址问询信息LIHA帧,产生软件地址问询信息LISA帧,在所述虚拟端口的地址信息中包含由软件分配的地址信息时,在所述软件地址问询信息LISA帧中加载所述由软件分配的地址信息,并将加载后的软件地址问询信息LISA帧传输至所述环路节点,以便所述环路节点将所述加载后的软件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含由软件分配的地址信息时,将接收到的所述软件地址问询信息LISA帧传输至所述环路节点,以便所述环路节点将所述软件地址问询信息返回至所述待虚拟化的FC端口。所述环路组长,即待虚拟化的FC端口,将所述LIHA帧中,加载的“11 04 00 00”的数据字修改为“11 05 00 00”,用以标识所述LISA帧,或者,也可以采用其他的标识方式。Step S44: Generate a software address inquiry information LISA frame according to the received static hardware address inquiry information LIHA frame, and when the address information of the virtual port includes address information assigned by software, the software address The address information assigned by the software is loaded in the inquiry information LISA frame, and the loaded software address inquiry information LISA frame is transmitted to the loop node, so that the loop node can send the loaded software address Inquiry information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information assigned by the software, the received software address inquiry information LISA frame is transmitted to the A loop node, so that the loop node returns the software address query information to the FC port to be virtualized. The loop group leader, that is, the FC port to be virtualized, modifies the data word of "11 04 00 00" loaded in the LIHA frame to "11 05 00 00" to identify the LISA frame, Alternatively, other identification methods may also be used.
其中,步骤S41中,产生交换机分配地址问询信息LIFA帧并根据不同条件对所述LIFA帧进行处理的方法,包括:Wherein, in step S41, the method for generating a LIFA frame of switch assignment address inquiry information and processing the LIFA frame according to different conditions includes:
步骤S411、产生交换机分配地址问询信息LIFA帧;Step S411, generating a LIFA frame of switch assignment address inquiry information;
步骤S412、根据获取的所述地址信息,判断是否包含为交换机分配的地址信息,若是,执行步骤S413的操作,若否,执行步骤S415的操作;Step S412. According to the obtained address information, it is judged whether the address information allocated for the switch is included, if yes, perform the operation of step S413, if not, perform the operation of step S415;
步骤S413、根据获取的所述地址信息中包含的为交换机分配的地址信息,在所述交换机分配地址问询信息LIFA帧中加载所述为交换机分配的地址信息;Step S413, according to the address information allocated to the switch included in the acquired address information, loading the address information allocated to the switch in the LIFA frame of the switch allocation address inquiry information;
步骤S414、将加载有所述为交换机分配的地址信息的交换机分配地址问询信息LIFA帧传输至环路节点;Step S414, transmitting the switch-allocated address query information LIFA frame loaded with the address information allocated for the switch to the loop node;
步骤S415、将产生的交换机分配地址问询信息LIFA帧传输至环路节点。Step S415, transmitting the generated LIFA frame of switch assignment address inquiry information to the ring node.
同样的,所述环路组长在对LIPA、LIHA、LISA帧进行地址信息的加载时,也遵循类似的方法,由待虚拟化的FC端口判断获取到的地址信息中是否含有需要加载的信息,并根据判断结果进行处理。Similarly, when the loop group leader loads the address information of the LIPA, LIHA, and LISA frames, he also follows a similar method, and the FC port to be virtualized judges whether the acquired address information contains information that needs to be loaded , and process it according to the judgment result.
在步骤S4后,当环路组长收到环路节点返回的LISA帧后,说明AL_PA地址分配过程全部结束,所有端口或者是分配到唯一的AL_PA地址,或者进入非参与模式。由于AL_PA地址分配过程是任意的,为了便于配置管理或问题分析,则重新构建一张环路位图。为了实现重新构建环路位图,环路组长在所述地址问询信息中加载所述地址信息后,还包括以下步骤:After step S4, when the ring leader receives the LISA frame returned by the ring node, it means that the AL_PA address allocation process is all over, and all ports are either allocated to a unique AL_PA address, or enter a non-participating mode. Since the AL_PA address allocation process is arbitrary, in order to facilitate configuration management or problem analysis, a loop bitmap is reconstructed. In order to realize rebuilding the ring bitmap, after the ring leader loads the address information in the address inquiry information, the following steps are also included:
所述待虚拟化的FC端口产生地址报告信息LIRP帧;The FC port to be virtualized generates an address report information LIRP frame;
在所述地址报告信息中加载各个虚拟端口的地址信息,以形成地址通报信息LILP帧并存储,所述LILP帧中包含根据所述地址报告信息LIRP帧获取到的所述各个虚拟端口的地址信息The address information of each virtual port is loaded in the address report information to form and store an address notification information LILP frame, and the LILP frame includes the address information of each virtual port obtained according to the address report information LIRP frame
相应的,本发明还公开了一种光纤信道FC端口虚拟化装置,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路节点,与其相连接的FC端口包含环路组长,参见图9所示的结构示意图,所述装置包括:获取模块11、地址信息加载模块12,其中Correspondingly, the present invention also discloses a fibre-channel FC port virtualization device, which is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected to other FC ports, wherein , the FC port to be virtualized is a loop node in an arbitrated loop, and the FC port connected to it includes a loop group leader. Referring to the structural diagram shown in FIG. 9 , the device includes: an acquisition module 11, an address Information loading module 12, wherein
所述获取模块11,用于获取与所述待虚拟化的FC端口相连接的主机所传输的、虚拟端口的地址信息;The acquiring module 11 is configured to acquire the address information of the virtual port transmitted by the host connected to the FC port to be virtualized;
所述地址信息加载模块12,用于接收所述环路组长传输的地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的所述主机根据所述加载后的地址问询信息中的地址信息分配端口资源,建立虚拟端口。The address information loading module 12 is configured to receive address query information transmitted by the ring leader, and load the address query information of the virtual port into the address query information when the address query information meets the loading condition. address information, so that the host connected to the FC port to be virtualized allocates port resources according to the address information in the loaded address query information, and establishes a virtual port.
其中所述地址信息加载模块12包括:交换机地址信息加载单元121、前地址信息加载单元122、静态硬件地址信息加载单元123和软件地址信息加载单元124,其中Wherein the address information loading module 12 includes: a switch address information loading unit 121, a previous address information loading unit 122, a static hardware address information loading unit 123 and a software address information loading unit 124, wherein
所述交换机地址信息加载单元121,用于接收所述环路组长传输的交换机分配地址问询信息,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息中加载所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息,产生前地址问询信息;在所述虚拟端口的地址信息中不包含有为交换机分配的地址信息时,将接收到的所述交换机分配地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述交换机分配地址问询信息,产生前地址问询信息;The switch address information loading unit 121 is configured to receive the switch allocation address query information transmitted by the ring leader, and when the address information of the virtual port contains address information allocated for the switch, the switch will The address information assigned to the switch is loaded in the address allocation query information, and the loaded switch address allocation query information is transmitted to the ring leader, so that the ring leader Assigning address inquiry information, generating pre-address inquiry information; when the address information of the virtual port does not contain the address information allocated for the switch, transmitting the received address inquiry information of the switch to the ring a road group leader, so that the ring group leader generates previous address query information according to the received address query information assigned by the switch;
所述前地址信息加载单元122,用于接收所述环路组长传输的前地址问询信息,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息中加载所述为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息,产生静态硬件地址问询信息;在所述虚拟端口的地址信息中不包含有为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述前地址问询信息,产生静态硬件地址问询信息;The previous address information loading unit 122 is configured to receive the previous address query information transmitted by the ring leader, and when the address information of the virtual port contains the address information allocated for the virtual port once used, Load the address information allocated for the virtual port once used in the former address inquiry information, and transmit the loaded former address inquiry information to the ring group leader, so that the ring group leader receives The previously received address query information is generated to generate static hardware address query information; when the address information of the virtual port does not contain the address information allocated for the previously used virtual port, the received previous address The query information is transmitted to the ring leader, so that the loop leader generates static hardware address query information according to the received previous address query information;
所述静态硬件地址信息加载单元123,用于接收所述环路组长传输的静态硬件地址问询信息,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息;在所述虚拟端口的地址信息中不包含有为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息传输至所述环路组长,以便所述环路组长根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息;The static hardware address information loading unit 123 is configured to receive the static hardware address query information transmitted by the ring leader, and when the address information of the virtual port contains address information allocated for static hardware, the Load the address information allocated for the static hardware into the static hardware address inquiry information, and transmit the loaded static hardware address inquiry information to the loop leader, so that the loop leader can The static hardware address query information generates software address query information; when the address information of the virtual port does not include address information allocated for static hardware, transmit the received static hardware address query information to the loop leader, so that the loop leader generates software address query information according to the received static hardware address query information;
所述软件地址信息记载单元124,用于接收所述环路组长传输的软件地址问询信息,在所述虚拟端口的地址信息中包含有依靠软件分配的地址信息时,在所述软件地址问询信息中加载所述软件分配的地址信息;在所述虚拟端口的地址信息中不包含有软件分配的地址信息时,不再对所述软件地址问询信息进行加载处理。The software address information recording unit 124 is configured to receive the software address inquiry information transmitted by the loop leader, and when the address information of the virtual port includes address information assigned by software, the software address The address information allocated by the software is loaded into the inquiry information; when the address information of the virtual port does not contain the address information allocated by the software, the software address inquiry information is no longer loaded.
另外,所述装置还包括:地址报告信息接收模块、地址报告信息加载模块和地址通报信息接收模块,其中In addition, the device also includes: an address report information receiving module, an address report information loading module, and an address notification information receiving module, wherein
所述地址报告信息接收模块,用于接收所述环路组长传输的地址报告信息;The address report information receiving module is configured to receive the address report information transmitted by the ring leader;
所述地址报告信息加载模块,用于在所述地址报告信息中加载各个虚拟端口的地址信息,并将加载有所述地址信息的地址报告信息传输至所述环路组长,以由所述环路组长产生根据接收到的所述地址报告信息产生地址通报信息,所述地址通报信息中包含根据所述地址报告信息获取到的所述各个虚拟端口的地址信息;The address report information loading module is configured to load the address information of each virtual port in the address report information, and transmit the address report information loaded with the address information to the ring leader, so that the The loop group leader generates address notification information according to the received address report information, and the address notification information includes the address information of each virtual port obtained according to the address report information;
所述地址通报信息接收模块,用于接收所述环路组长传输的地址通报信息并存储。The address notification information receiving module is configured to receive and store the address notification information transmitted by the ring leader.
另外,本发明还公开了一种光纤信道FC端口虚拟化装置,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路组长,与其相连接的FC端口为环路组长,所述装置包括:地址信息获取模块、地址问询信息产生模块,其中In addition, the present invention also discloses a fibre-channel FC port virtualization device, the device is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected with other FC ports, wherein, The FC port to be virtualized is the ring leader in the arbitrated loop, and the FC port connected to it is the ring leader, and the device includes: an address information acquisition module and an address query information generation module, wherein
所述地址信息获取模块,用于获取与所述待虚拟化的FC端口相连接的主机传输的、虚拟端口的地址信息;The address information obtaining module is configured to obtain the address information of the virtual port transmitted by the host connected to the FC port to be virtualized;
所述地址问询信息产生模块,用于产生地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的主机根据所述地址信息分配端口资源,建立虚拟端口。The address query information generating module is configured to generate address query information, and when the address query information meets the loading condition, load the address information of the virtual port into the address query information so as to be compatible with the The host connected to the FC port to be virtualized allocates port resources according to the address information, and establishes a virtual port.
其中,所述地址问询信息产生模块包括:Wherein, the address query information generation module includes:
交换机分配地址问询信息产生单元,用于产生交换机分配地址问询信息,在所述虚拟端口的地址信息中包含有为交换机分配的地址信息时,在所述交换机分配地址问询信息中加载为所述为交换机分配的地址信息,并将加载后的交换机分配地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的交换机分配地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为交换机分配的地址信息时,将所述交换机分配地址问询信息传输至所述环路节点,以便所述环路节点将所述交换机分配地址问询信息返回至所述待虚拟化的FC端口;A switch allocation address query information generating unit, configured to generate switch allocation address query information, when the address information of the virtual port contains address information allocated for the switch, load the switch allocation address query information as The address information allocated for the switch, and the loaded switch allocation address query information is transmitted to the ring node, so that the loop node returns the loaded switch allocation address query information to the The FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the switch, the switch allocation address inquiry information is transmitted to the ring node, so that the ring node will The switch assigns address inquiry information and returns to the FC port to be virtualized;
前地址问询信息产生单元,用于根据接收到的所述交换机分配地址问询信息产生前地址问询信息,在所述虚拟端口的地址信息中包含有为曾经使用的虚拟端口分配的地址信息时,在所述前地址问询信息中加载为曾经使用的虚拟端口分配的地址信息,并将加载后的前地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的前地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为曾经使用的虚拟端口分配的地址信息时,将接收到的所述前地址问询信息传输至所述环路节点,以便所述环路节点将所述前地址问询信息返回至所述待虚拟化的FC端口;A previous address query information generating unit, configured to generate previous address query information according to the received address query information assigned by the switch, and the address information of the virtual port includes the address information assigned to the virtual port once used , load the address information assigned to the virtual port once used in the former address inquiry information, and transmit the loaded former address inquiry information to the ring node, so that the ring node will transfer the The pre-loaded address query information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the virtual port once used, the received pre-address transmitting the query information to the loop node, so that the loop node returns the previous address query information to the FC port to be virtualized;
静态硬件地址问询信息产生单元,用于根据接收到的所述前地址问询信息,产生静态硬件地址问询信息,在所述虚拟端口的地址信息中包含有为静态硬件分配的地址信息时,在所述静态硬件地址问询信息中加载所述为静态硬件分配的地址信息,并将加载后的静态硬件地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的静态硬件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含为静态硬件分配的地址信息时,将接收到的所述静态硬件地址问询信息传输至所述环路节点,以便所述环路节点将所述静态硬件地址问询信息返回至所述待虚拟化的FC端口;A static hardware address query information generating unit, configured to generate static hardware address query information according to the received previous address query information, when the address information of the virtual port includes address information allocated for static hardware , loading the address information allocated for static hardware into the static hardware address query information, and transmitting the loaded static hardware address query information to the loop node, so that the loop node can transfer the The loaded static hardware address query information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information allocated for the static hardware, the received static hardware address query The query information is transmitted to the loop node, so that the loop node returns the static hardware address query information to the FC port to be virtualized;
软件地址问询信息产生单元,用于根据接收到的所述静态硬件地址问询信息,产生软件地址问询信息,在所述虚拟端口的地址信息中包含由软件分配的地址信息时,在所述软件地址问询信息中加载所述由软件分配的地址信息,并将加载后的软件地址问询信息传输至所述环路节点,以便所述环路节点将所述加载后的软件地址问询信息返回至所述待虚拟化的FC端口;在所述虚拟端口的地址信息中不包含由软件分配的地址信息时,将接收到的所述软件地址问询信息传输至所述环路节点,以便所述环路节点将所述软件地址问询信息返回至所述待虚拟化的FC端口。A software address query information generating unit, configured to generate software address query information according to the received static hardware address query information, and when the address information of the virtual port includes address information allocated by software, the Load the address information assigned by the software into the software address query information, and transmit the loaded software address query information to the loop node, so that the loop node can query the loaded software address Inquiry information is returned to the FC port to be virtualized; when the address information of the virtual port does not include the address information assigned by the software, the received software address inquiry information is transmitted to the loop node , so that the loop node returns the software address query information to the FC port to be virtualized.
在本发明所公开的FC端口虚拟化装置中,待虚拟化的FC端口与相连接的FC端口之间为Loop模式,通过形成的仲裁环路,实现所述待虚拟化的FC端口与相连接的FC端口之间的信息交互,能够使所述待虚拟的FC端口在接收到环路组长产生的地址问询信息后,在所述地址问询信息中加载所需的虚拟端口的地址信息,从而使所述待虚拟的FC端口侧的主机,能够根据所述地址信息分配端口资源,建立虚拟端口。在这个过程中,只需要FC端口支持Loop模式即可,而FC端口的基本功能就是支持Loop模式,不需要对其进行较高配置,因而不需要较高配置的FC端口就能实现虚拟化,减少了成本。In the FC port virtualization device disclosed in the present invention, the FC port to be virtualized and the connected FC port are in Loop mode, and the FC port to be virtualized is connected to the FC port through the formed arbitration loop. The information interaction between the FC ports can enable the FC port to be virtualized to load the address information of the required virtual port in the address query information after receiving the address query information generated by the ring leader , so that the host on the side of the FC port to be virtualized can allocate port resources according to the address information and establish a virtual port. In this process, only the FC port needs to support the Loop mode, and the basic function of the FC port is to support the Loop mode. It does not need to be configured at a higher level, so virtualization can be realized without a higher configuration of the FC port. Reduced costs.
另外,本发明中,只依靠普通的直连设备实现所述待虚拟化的FC端口与相连接的FC端口之间的连接即可,不需要再额外配置交换机,减少了成本,并简化了配置,有利于实现大范围的推广。In addition, in the present invention, the connection between the FC port to be virtualized and the connected FC port can be realized only by ordinary direct-connection equipment, and no additional switches are required, which reduces costs and simplifies configuration , which is conducive to the realization of large-scale promotion.
相应的,本发明还公开了一种光纤信道FC端口虚拟化装置,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路节点,与其相连接的FC端口包含环路组长,所述装置包括至少一个处理器和与所述至少一个处理器相连接的存储器,其中Correspondingly, the present invention also discloses a fibre-channel FC port virtualization device, which is applied in an arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected to other FC ports, wherein , the FC port to be virtualized is a loop node in an arbitrated loop, the FC port connected to it includes a loop leader, and the device includes at least one processor and a node connected to the at least one processor storage, where
所述处理器,用于获取与所述待虚拟化的FC端口相连接的主机所传输的虚拟端口的地址信息,并接收所述环路组长传输的地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的所述主机根据所述加载后的地址问询信息中的地址信息分配端口资源,建立虚拟端口;The processor is configured to acquire the address information of the virtual port transmitted by the host computer connected to the FC port to be virtualized, and receive the address query information transmitted by the ring leader, and perform the address query When the query information satisfies the loading condition, load the address information of the virtual port in the address query information, so that the host connected to the FC port to be virtualized is based on the loaded address query information Allocate port resources according to the address information and establish a virtual port;
所述存储器,用于存储包含有运行程序的信息。The memory is used to store information including running programs.
另外,本发明还公开了另一种光纤信道FC端口虚拟化装置,所述装置应用于仲裁环模式中,在所述仲裁环模式中,待虚拟化的FC端口与其他FC端口相连接,其中,所述待虚拟化的FC端口为仲裁环路中的环路组长,与其相连接的FC端口为环路节点,所述装置包括处理器和与所述处理器相连接的存储器,其中,In addition, the present invention also discloses another fibre-channel FC port virtualization device, which is applied in the arbitrated ring mode, and in the arbitrated ring mode, the FC port to be virtualized is connected with other FC ports, wherein , the FC port to be virtualized is the ring leader in the arbitrated loop, and the FC port connected to it is a loop node, and the device includes a processor and a memory connected to the processor, wherein,
所述处理器,用于获取与所述待虚拟化的FC端口相连接的主机传输的虚拟端口的地址信息,并产生地址问询信息,在所述地址问询信息满足加载条件时,在所述地址问询信息中加载所述虚拟端口的地址信息,以便与所述待虚拟化的FC端口连接的主机根据所述地址信息分配端口资源,建立虚拟端口;The processor is configured to obtain address information of a virtual port transmitted by a host connected to the FC port to be virtualized, and generate address query information, and when the address query information satisfies a loading condition, the The address information of the virtual port is loaded in the address query information, so that the host connected to the FC port to be virtualized allocates port resources according to the address information and establishes a virtual port;
所述存储器,用于存储包含有运行程序的信息。The memory is used to store information including running programs.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes. .
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210393565.1A CN103731375B (en) | 2012-10-16 | 2012-10-16 | A kind of FC port virtualization method, device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210393565.1A CN103731375B (en) | 2012-10-16 | 2012-10-16 | A kind of FC port virtualization method, device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103731375A CN103731375A (en) | 2014-04-16 |
| CN103731375B true CN103731375B (en) | 2016-12-21 |
Family
ID=50455307
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210393565.1A Active CN103731375B (en) | 2012-10-16 | 2012-10-16 | A kind of FC port virtualization method, device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103731375B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108040020A (en) * | 2017-12-21 | 2018-05-15 | 郑州云海信息技术有限公司 | A kind of fiber optic network switching port virtual management system and method |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101119252A (en) * | 2006-08-01 | 2008-02-06 | 华为技术有限公司 | Access network system, access device, ARP proxy and IP bridging and forwarding method |
| US7467191B1 (en) * | 2003-09-26 | 2008-12-16 | Network Appliance, Inc. | System and method for failover using virtual ports in clustered systems |
| CN201919016U (en) * | 2010-11-30 | 2011-08-03 | 潍坊东升电子股份有限公司 | Device for implementing rapid spanning tree protocol (RSTP) in Ethernet passive optical network (EPON) system |
-
2012
- 2012-10-16 CN CN201210393565.1A patent/CN103731375B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7467191B1 (en) * | 2003-09-26 | 2008-12-16 | Network Appliance, Inc. | System and method for failover using virtual ports in clustered systems |
| CN101119252A (en) * | 2006-08-01 | 2008-02-06 | 华为技术有限公司 | Access network system, access device, ARP proxy and IP bridging and forwarding method |
| CN201919016U (en) * | 2010-11-30 | 2011-08-03 | 潍坊东升电子股份有限公司 | Device for implementing rapid spanning tree protocol (RSTP) in Ethernet passive optical network (EPON) system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103731375A (en) | 2014-04-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20200278880A1 (en) | Method, apparatus, and system for accessing storage device | |
| US10305823B2 (en) | Network interface card configuration method and resource management center | |
| CN103530167B (en) | The moving method and relevant apparatus of a kind of virtual machine memory data and group system | |
| JP6355114B2 (en) | Resource processing method, operating system, and device | |
| CN103942087B (en) | Live migration of virtual machine method and relevant apparatus and group system | |
| US8495255B2 (en) | Discovery and configuration of device configurations | |
| CN106776998B (en) | Database service providing method and server | |
| US9558025B2 (en) | Inter-board virtualization management for managing hardware resources corresponding to interrupts | |
| CN108667859A (en) | A kind of method and device for realizing scheduling of resource | |
| CN103414535B (en) | Data sending method, data receiving method and relevant devices | |
| US20160328348A1 (en) | Computer and computer i/o control method | |
| CN103609077B (en) | Method, apparatus and system for data transmission, and physical adapter | |
| US10372639B2 (en) | System and method to avoid SMBus address conflicts via a baseboard management controller | |
| CN106445628A (en) | Virtualization method, apparatus and system | |
| JP2012521611A5 (en) | ||
| US7539987B1 (en) | Exporting unique operating system features to other partitions in a partitioned environment | |
| CN104205780B (en) | A method and device for storing data | |
| CN106537336A (en) | Cloud firmware | |
| CN105739930A (en) | Storage framework as well as initialization method, data storage method and data storage and management apparatus therefor | |
| CN106844008A (en) | A kind of method of data manipulation, equipment and system | |
| CN119759499A (en) | A data acquisition method, device, equipment and storage medium | |
| CN113535319A (en) | A method, device and storage medium for realizing multi-RDMA network card virtualization | |
| CN109947676A (en) | Data access method and device | |
| US20220137998A1 (en) | Storage virtualization device supporting virtual machine, operation method thereof, and operation method of system having the same | |
| CN110196750B (en) | A method for distributing equipment and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |