[go: up one dir, main page]

WO2016078322A1 - Io channel allocation method and device - Google Patents

Io channel allocation method and device Download PDF

Info

Publication number
WO2016078322A1
WO2016078322A1 PCT/CN2015/077093 CN2015077093W WO2016078322A1 WO 2016078322 A1 WO2016078322 A1 WO 2016078322A1 CN 2015077093 W CN2015077093 W CN 2015077093W WO 2016078322 A1 WO2016078322 A1 WO 2016078322A1
Authority
WO
WIPO (PCT)
Prior art keywords
controller
interface
configuration file
memory
switching
Prior art date
Application number
PCT/CN2015/077093
Other languages
French (fr)
Chinese (zh)
Inventor
胡上贺
陈明
王小军
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2016078322A1 publication Critical patent/WO2016078322A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to an IO (Input/Output) channel allocation method and apparatus.
  • IO Input/Output
  • the storage controller generally includes at least two controllers, each of which can insert multiple IO cards and establish a connection with an external application server through the IO card.
  • the first controller of the at least two controllers and the second controller adjacent to the first controller back up the respective cache data through the mirror channel, so that when the first controller fails, the second control
  • the data is saved for the data that is not written to the hard disk in the first controller in time.
  • the IO cards that are respectively linked by the two controllers are connected to the same application server through the switch to form a multi-path networking. When a path fails, the application server can switch the current service to another path to protect business continuity. As shown in Figure 1, the IO card, backplane, and controller form a complete storage hardware system.
  • each controller since the hardware design of each controller and the configuration files stored in each controller are the same, only a specific switching interface in each controller can be configured as a mirror interface, thereby Each controller establishes a link channel through a mirrored interface.
  • the switching interface P3 of Switch B in controller A can only establish a link channel with the switching interface P3 of Switch B in controller B.
  • the solution has the following disadvantages: First, the transmission path of the mirror channel is too long, resulting in excessive attenuation of the link transmission rate. Second, the link channel of the mirror interface intersects with the link channel of the IO card, which reduces data transmission. reliability.
  • the invention provides an IO channel allocation method and device.
  • the transmission path of the mirror channel can be reduced to improve the reliability of data transmission.
  • a first aspect of the present invention provides an IO channel allocation method, including:
  • the first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
  • the intersection of the second controller in the first controller is configured as a mirrored interface.
  • the switch interface is configured as a mirrored interface.
  • the method further includes:
  • the target switching interface in the other switching interfaces establishes a link channel with the IO card adjacent to the target switching interface.
  • the method further includes:
  • the target switching interface in the other switching interfaces establishes a link channel with the IO card adjacent to the target switching interface.
  • the reading the slot identification information on the backplane to determine whether the first controller is After being disposed on the backboard the method further includes:
  • a second aspect of the present invention provides an IO channel distribution apparatus, including:
  • a file loading module configured to read and load a first configuration file that is written into the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
  • An interface configuration module configured to configure a switching interface of the first controller in the first controller as a mirroring interface
  • a link connection module configured to establish a link channel between the mirror interface in the first controller and a mirror interface in the second controller, where the second controller according to the second configuration file
  • the switching interface adjacent to the first controller is configured as a mirroring interface.
  • the link connection module is further configured to, according to the first configuration file, a target switching interface in another switching interface and an IO adjacent to the target switching interface.
  • the card establishes a link channel.
  • the device further includes:
  • an information reading module configured to read slot identification information on the backplane to determine whether the first controller is electrically connected to the backboard.
  • the device further includes:
  • the information reading module is further configured to issue a warning prompt if the slot identification information on the backboard fails to be read.
  • a third aspect of the present invention provides an IO channel allocation apparatus, the apparatus comprising a network interface, a memory, and a processor, wherein the memory stores a set of program codes, and the processor is configured to call program code stored in the memory, for Do the following:
  • the first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
  • the switch interface is configured as a mirrored interface.
  • the first controller first reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file, The switching interface of the controller adjacent to the second controller is configured as a mirroring interface; finally, the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to the The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
  • FIG. 1 is a schematic diagram of an IO channel allocation method in a prior art solution provided by the present invention
  • FIG. 2 is a flow chart of a first embodiment of an IO channel allocation method proposed by the present invention
  • FIG. 3 is a flow chart of another embodiment of an IO channel allocation method proposed by the present invention.
  • 4A is a first schematic diagram showing an IO channel allocation method according to an embodiment of the present invention.
  • 4B is a second schematic diagram of an IO channel allocation method according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an IO channel allocation apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural view of another embodiment of an IO channel distribution device according to the present invention.
  • FIG. 2 is a flowchart of a first embodiment of an IO channel allocation method provided by the present invention. As shown, the IO channel allocation method includes:
  • the first controller reads and loads a first configuration file that is written into the memory, where the first configuration file includes link connection information of the switching interface of the first controller.
  • the user can pre-write the configuration files corresponding to each controller, and then program the configuration files into the respective memories.
  • each controller loads the configuration file separately.
  • the device includes at least two controllers, a backboard and a plurality of IO cards.
  • the at least two controllers are respectively disposed on the backplane, and the at least two controllers respectively include a plurality of switch interfaces.
  • the plurality of switch interfaces are respectively disposed on the first side of the backboard, and the plurality of IO cards are respectively disposed side by side on the backplane.
  • the second side of the first side is opposite the second side.
  • the first controller further includes a memory, the memory is connected to the switch interface, the memory is used to store the first configuration file, and the memory may be an E2PROM (Electrically Erasable Programmable Read-Only Memory), the first controller It also includes a management module and a CPU (Central Processing Unit) processing module.
  • E2PROM Electrically Erasable Programmable Read-Only Memory
  • the first controller includes a P0-Pn switching interface
  • the second controller also includes switching interfaces P0-Pn
  • the second controller is located at a right adjacent position of the first controller.
  • First A controller configures the switch interface Pn in the first controller as a mirror port according to the first configuration file
  • the second controller configures the switch interface P0 in the second controller as a mirror port according to the second configuration file.
  • the first controller includes switching interfaces P0-Pn
  • the second controller also includes switching interfaces P0-Pn
  • the second controller is located at a position adjacent to the left side of the first controller, and the first controller is configured according to the first A configuration file configures the switch interface P0 in the first controller as a mirror port
  • the second controller configures the switch interface Pn in the second controller as a mirror port according to the second configuration file.
  • S203 Establish a link channel between the mirroring interface in the first controller and a mirroring interface in the second controller, where the second controller is adjacent to the first according to the second configuration file.
  • the switch interface of the controller is configured as a mirror interface.
  • the target switching interface in the other switching interface establishes a link channel with the IO card adjacent to the target switching interface.
  • the second controller is located at a right adjacent position of the first controller, and may establish a link channel between the mirror interface Pn in the first controller and the mirror interface P0 in the second controller, and The switch interfaces P0 to Pn-1 in the first controller are respectively associated with the IO cards A1 to An to establish a link channel.
  • the second controller is located at a position adjacent to the left side of the first controller, and may establish a link channel between the mirror interface P0 in the first controller and the mirror interface Pn in the second controller, and The switching interfaces P1 to Pn in a controller respectively establish a link channel corresponding to the IO cards A1 to An.
  • the first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file,
  • the switching interface of the first controller adjacent to the second controller is configured as a mirroring interface;
  • the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
  • FIG. 3 is a flowchart of a second embodiment of an IO channel allocation method provided by the present invention. As shown, the IO channel allocation method includes:
  • S301 Read slot identification information on the backplane to determine whether the first controller is powered. Connect to the backplane.
  • the slot identification information on the backplane fails to be read, a warning prompt is issued; if the slot identification information on the backplane is successfully read, it is determined that the first controller is electrically connected to the backboard, and The switch interface in the first controller is configured.
  • the backplane includes a plurality of slot identifier connectors, and the plurality of slot identifier connectors are respectively connected to the plurality of controllers, and the slot identifier connector is used by the controller to read the slot identifier information on the backplane.
  • the first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller.
  • the user can pre-write the configuration files corresponding to each controller, and then program the configuration files into the respective memories.
  • each controller loads the configuration file separately.
  • the device includes at least two controllers, a backboard and a plurality of IO cards.
  • the at least two controllers are respectively disposed on the backplane, and the at least two controllers respectively include a plurality of switch interfaces.
  • the plurality of switch interfaces are respectively disposed on the first side of the backboard, and the plurality of IO cards are respectively disposed side by side on the backplane.
  • the second side of the first side is opposite the second side.
  • the first controller further includes a memory connected to the switch interface, the memory is configured to store the first configuration file, the memory may be an E2PROM erasable programmable read only memory, and the first controller further includes a management module and a CPU processing module .
  • the first controller includes a P0-Pn switching interface
  • the second controller also includes switching interfaces P0-Pn
  • the second controller is located at a right adjacent position of the first controller.
  • the first controller configures the switch interface Pn in the first controller as a mirror port according to the first configuration file
  • the second controller configures the switch interface P0 in the second controller as a mirror port according to the second configuration file.
  • the first controller includes switching interfaces P0-Pn
  • the second controller also includes switching interfaces P0-Pn
  • the second controller is located at a position adjacent to the left side of the first controller, and the first controller is configured according to the first A configuration file configures the switch interface P0 in the first controller as a mirror port
  • the second controller configures the switch interface Pn in the second controller as a mirror port according to the second configuration file.
  • the target switching interface in the other switching interface establishes a link channel with the IO card adjacent to the target switching interface.
  • the second controller is located at a right adjacent position of the first controller, and may establish a link channel between the mirror interface Pn in the first controller and the mirror interface P0 in the second controller, and The switch interfaces P0 to Pn-1 in the first controller are respectively associated with the IO cards A1 to An to establish a link channel.
  • the second controller is located at a position adjacent to the left side of the first controller, and may establish a link channel between the mirror interface P0 in the first controller and the mirror interface Pn in the second controller, and The switching interfaces P1 to Pn in a controller respectively establish a link channel corresponding to the IO cards A1 to An.
  • the first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file,
  • the switching interface of the first controller adjacent to the second controller is configured as a mirroring interface;
  • the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
  • FIG. 5 is a schematic structural diagram of an IO channel allocation apparatus according to an embodiment of the present invention.
  • the IO channel allocation device in the embodiment of the present invention includes:
  • the file loading module 502 is configured to read and load a first configuration file that is written into the memory, where the first configuration file includes link connection information of the switching interface of the first controller.
  • the user can pre-write the configuration files corresponding to each controller, and then program the configuration files into the respective memories.
  • each controller loads the configuration file separately.
  • the device includes at least two controllers, a backboard and a plurality of IO cards.
  • the at least two controllers are respectively disposed on the backplane, and the at least two controllers respectively include a plurality of switch interfaces.
  • the plurality of switch interfaces are respectively disposed on the first side of the backboard, and the plurality of IO cards are respectively disposed side by side on the backplane.
  • the second side of the first side is opposite the second side.
  • the first controller further includes a memory connected to the switch interface, the memory is configured to store the first configuration file, the memory may be an E2PROM erasable programmable read only memory, and the first controller further includes a management module and A CPU processing module.
  • the interface configuration module 503 is configured to configure a switching interface of the first controller that is adjacent to the second controller as a mirroring interface.
  • the first controller includes a P0-Pn switching interface
  • the second controller also includes switching interfaces P0-Pn
  • the second controller is located at a right adjacent position of the first controller.
  • the first controller configures the switch interface Pn in the first controller as a mirror port according to the first configuration file
  • the second controller configures the switch interface P0 in the second controller as a mirror port according to the second configuration file.
  • the first controller includes switching interfaces P0-Pn
  • the second controller also includes switching interfaces P0-Pn
  • the second controller is located at a position adjacent to the left side of the first controller, and the first controller is configured according to the first A configuration file configures the switch interface P0 in the first controller as a mirror port
  • the second controller configures the switch interface Pn in the second controller as a mirror port according to the second configuration file.
  • a link connection module 504 configured to establish a link channel between the mirror interface in the first controller and a mirror interface in the second controller, where the second controller is configured according to the second configuration file.
  • the switch interface adjacent to the first controller is configured as a mirror interface.
  • the link connection module 504 is further configured to establish a link channel between the target switch interface in the other switch interface and the IO card adjacent to the target switch interface according to the first configuration file.
  • the second controller is located at a right adjacent position of the first controller, and may establish a link channel between the mirror interface Pn in the first controller and the mirror interface P0 in the second controller, and The switch interfaces P0 to Pn-1 in the first controller are respectively associated with the IO cards A1 to An to establish a link channel.
  • the second controller is located at a position adjacent to the left side of the first controller, and may establish a link channel between the mirror interface P0 in the first controller and the mirror interface Pn in the second controller, and The switching interfaces P1 to Pn in a controller respectively establish a link channel corresponding to the IO cards A1 to An.
  • the IO channel allocation apparatus may further include:
  • the information reading module 501 is configured to read slot identification information on the backplane to determine whether the first controller is electrically connected to the backplane.
  • the slot identification information on the backplane fails to be read, a warning prompt is issued; if the slot identification information on the backplane is successfully read, it is determined that the first controller is electrically connected to the backboard, Configure the switch interface in the first controller.
  • the backplane includes a plurality of slot identifier connectors, and the plurality of slot identifier connectors are respectively connected to the plurality of controllers, and the slot identifier connector is used by the controller to read the slot identifier information on the backplane.
  • the first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file,
  • the switching interface of the first controller adjacent to the second controller is configured as a mirroring interface;
  • the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
  • FIG. 6 is a schematic structural view of another embodiment of an IO channel distribution device according to the present invention.
  • the apparatus can include at least one processor 601, such as a CPU, at least one receiver 603, at least one memory 604, at least one transmitter 605, and at least one communication bus 602.
  • the communication bus 602 is used to implement connection communication between these components.
  • the receiver 603 and the transmitter 605 of the device in the embodiment of the present invention may be a wired sending port, or may be a wireless device, for example, including an antenna device, for performing signaling or data communication with other node devices.
  • the memory 604 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 604 can optionally also be at least one storage device located remotely from the aforementioned processor 601.
  • a set of program codes is stored in the memory 604, and the processor is configured to call program code stored in the memory for performing the following operations:
  • the first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
  • the switch interface is configured as a mirrored interface.
  • the program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Hardware Redundancy (AREA)
  • Debugging And Monitoring (AREA)

Abstract

An IO channel allocation method and device. The method comprises: a first controller reads and loads a first configuration file in a memory, wherein the first configuration file comprises link connection information of exchange interfaces of the first controller (S201); configure, according to the first configuration file, the exchange interface of the first controller adjacent to a second controller as a mirror interface (S202); and establish a link channel between the mirror interface of the first controller and a mirror interface of the second controller, wherein the second controller configures, according to a second configuration file, an exchange interface adjacent to the first controller as the mirror interface (S203). By using the method and the device, transmission paths of a mirror channel are reduced, and the reliability of data transmission is improved.

Description

一种IO通道分配方法及装置IO channel allocation method and device 技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种IO(Input/Output,输入/输出)通道分配方法及装置。The present invention relates to the field of electronic technologies, and in particular, to an IO (Input/Output) channel allocation method and apparatus.
背景技术Background technique
存储控制器一般包含至少两个控制器,每个控制器可插入多张IO卡,并通过IO卡和外部应用服务器建立连接。其中,至少两个控制器中的第一控制器与邻近第一控制器的第二控制器之间通过镜像通道对各自的缓存数据进行备份,以便当第一控制器出现故障时,第二控制器对未及时写入到第一控制器中硬盘的数据进行保存。两个控制器分别链接的IO卡通过交换机连接到同一应用服务器上,形成多路径组网。当某一路径出现故障后,应用服务器可将当前业务切换到另一路径,从而保护业务连续性。如图1所示,IO卡、背板和控制器构成一个完整的存储硬件系统。The storage controller generally includes at least two controllers, each of which can insert multiple IO cards and establish a connection with an external application server through the IO card. The first controller of the at least two controllers and the second controller adjacent to the first controller back up the respective cache data through the mirror channel, so that when the first controller fails, the second control The data is saved for the data that is not written to the hard disk in the first controller in time. The IO cards that are respectively linked by the two controllers are connected to the same application server through the switch to form a multi-path networking. When a path fails, the application server can switch the current service to another path to protect business continuity. As shown in Figure 1, the IO card, backplane, and controller form a complete storage hardware system.
在现有技术方案中,由于每个控制器的硬件设计及每个控制器中存储的配置文件均相同,因此只能将每个控制器中的某个特定交换接口配置为镜像接口,从而使得各个控制器通过镜像接口建立链路通道。例如:如图1所示,控制器A中Switch B的交换接口P3只能与控制器B中的Switch B的交换接口P3建立链路通道。该方案存在以下缺点:第一,镜像通道的传输路径过长,导致链路传输速率衰减过大,第二,镜像接口的链路通道与IO卡的链路通道存在交叉,降低了数据传输的可靠性。In the prior art solution, since the hardware design of each controller and the configuration files stored in each controller are the same, only a specific switching interface in each controller can be configured as a mirror interface, thereby Each controller establishes a link channel through a mirrored interface. For example, as shown in Figure 1, the switching interface P3 of Switch B in controller A can only establish a link channel with the switching interface P3 of Switch B in controller B. The solution has the following disadvantages: First, the transmission path of the mirror channel is too long, resulting in excessive attenuation of the link transmission rate. Second, the link channel of the mirror interface intersects with the link channel of the IO card, which reduces data transmission. reliability.
发明内容Summary of the invention
本发明提供一种IO通道分配方法及装置。可以减小镜像通道的传输路径,提高数据传输的可靠性。The invention provides an IO channel allocation method and device. The transmission path of the mirror channel can be reduced to improve the reliability of data transmission.
本发明第一方面提供了一种IO通道分配方法,包括:A first aspect of the present invention provides an IO channel allocation method, including:
第一控制器读取并加载存储器中的第一配置文件,所述第一配置文件包括所述第一控制器的交换接口的链路连接信息;The first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
根据所述第一配置文件,将所述第一控制器中的邻近第二控制器的交 换接口配置为镜像接口;According to the first configuration file, the intersection of the second controller in the first controller The interface is configured as a mirrored interface.
将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。Establishing a link channel between the mirror interface in the first controller and a mirror interface in the second controller, wherein the second controller is adjacent to the first controller according to the second configuration file The switch interface is configured as a mirrored interface.
在第一方面的第一种可能的实现方式中,所述读取并加载写入到存储器中的第一配置文件之后,还包括:In a first possible implementation manner of the first aspect, after the reading and loading the first configuration file that is written into the memory, the method further includes:
根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。According to the first configuration file, the target switching interface in the other switching interfaces establishes a link channel with the IO card adjacent to the target switching interface.
在第一方面的第二种可能的实现方式中,所述读取并加载写入到存储器中的第一配置文件之后,还包括:In a second possible implementation manner of the first aspect, after the reading and loading the first configuration file that is written into the memory, the method further includes:
根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。According to the first configuration file, the target switching interface in the other switching interfaces establishes a link channel with the IO card adjacent to the target switching interface.
结合第一方面的第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述读取所述背板上的槽位标识信息以确定所述第一控制器是否设置于所述背板上之后,还包括:In conjunction with the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the reading the slot identification information on the backplane to determine whether the first controller is After being disposed on the backboard, the method further includes:
若读取所述背板上的槽位标识信息失败,则发出警告提示。If the slot identification information on the backplane fails to be read, a warning prompt is issued.
本发明第二方面提供了一种IO通道分配装置,包括:A second aspect of the present invention provides an IO channel distribution apparatus, including:
文件加载模块,用于读取并加载写入到存储器中的第一配置文件,所述第一配置文件包括第一控制器的交换接口的链路连接信息;a file loading module, configured to read and load a first configuration file that is written into the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
接口配置模块,用于将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口;An interface configuration module, configured to configure a switching interface of the first controller in the first controller as a mirroring interface;
链路连接模块,用于将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。a link connection module, configured to establish a link channel between the mirror interface in the first controller and a mirror interface in the second controller, where the second controller according to the second configuration file The switching interface adjacent to the first controller is configured as a mirroring interface.
在第二方面的第一种可能的实现方式中,所述链路连接模块,还用于根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。In a first possible implementation manner of the second aspect, the link connection module is further configured to, according to the first configuration file, a target switching interface in another switching interface and an IO adjacent to the target switching interface. The card establishes a link channel.
在第二方面的第二种可能的实现方式中,所述装置还包括:In a second possible implementation manner of the second aspect, the device further includes:
信息读取模块,用于读取所述背板上的槽位标识信息以确定所述第一控制器是否电连到所述背板上。 And an information reading module, configured to read slot identification information on the backplane to determine whether the first controller is electrically connected to the backboard.
结合第二方面的第二种可能的实现方式,在第二方面的第三种可能的实现方式中,述装置还包括:With reference to the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the device further includes:
所述信息读取模块,还用于若读取所述背板上的槽位标识信息失败,则发出警告提示。The information reading module is further configured to issue a warning prompt if the slot identification information on the backboard fails to be read.
本发明第三方面提供了一种IO通道分配装置,所述装置包括网络接口、存储器以及处理器,其中,存储器中存储一组程序代码,且处理器用于调用存储器中存储的程序代码,用于执行以下操作:A third aspect of the present invention provides an IO channel allocation apparatus, the apparatus comprising a network interface, a memory, and a processor, wherein the memory stores a set of program codes, and the processor is configured to call program code stored in the memory, for Do the following:
第一控制器读取并加载存储器中的第一配置文件,所述第一配置文件包括所述第一控制器的交换接口的链路连接信息;The first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
根据所述第一配置文件,将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口;And configuring, according to the first configuration file, a switching interface of the first controller that is adjacent to the second controller as a mirroring interface;
将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。Establishing a link channel between the mirror interface in the first controller and a mirror interface in the second controller, wherein the second controller is adjacent to the first controller according to the second configuration file The switch interface is configured as a mirrored interface.
实施本发明实施例,首先第一控制器读取并加载存储器中的第一配置文件,第一配置文件包括第一控制器的交换接口的链路连接信息;然后根据第一配置文件,将第一控制器中的邻近第二控制器的交换接口配置为镜像接口;最后将第一控制器中的镜像接口与第二控制器中的镜像接口建立链路通道,其中,第二控制器根据第二配置文件将邻近第一控制器的交换接口配置为镜像接口。从而减小镜像通道的传输路径,使得镜像接口的链路通道与IO卡的链路通道不交叉,提高数据传输的可靠性。In the embodiment of the present invention, the first controller first reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file, The switching interface of the controller adjacent to the second controller is configured as a mirroring interface; finally, the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to the The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明提供的现有技术方案中一种IO通道分配方法的示意图;1 is a schematic diagram of an IO channel allocation method in a prior art solution provided by the present invention;
图2是本发明提出的一种IO通道分配方法的第一实施例的流程图;2 is a flow chart of a first embodiment of an IO channel allocation method proposed by the present invention;
图3是本发明提出的一种IO通道分配方法的另一实施例的流程图; 3 is a flow chart of another embodiment of an IO channel allocation method proposed by the present invention;
图4A是本发明实施例提供的一种IO通道分配方法的第一显示示意图;4A is a first schematic diagram showing an IO channel allocation method according to an embodiment of the present invention;
图4B是本发明实施例提供的一种IO通道分配方法的第二显示示意图;4B is a second schematic diagram of an IO channel allocation method according to an embodiment of the present invention;
图5是本发明实施例提出的一种IO通道分配装置的结构示意图;FIG. 5 is a schematic structural diagram of an IO channel allocation apparatus according to an embodiment of the present invention; FIG.
图6是本发明提出的一种IO通道分配装置的另一实施例的结构示意图。FIG. 6 is a schematic structural view of another embodiment of an IO channel distribution device according to the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参考图2,图2本发明提供的一种IO通道分配方法的第一实施例的流程图。如图所示,所述IO通道分配方法包括:Please refer to FIG. 2. FIG. 2 is a flowchart of a first embodiment of an IO channel allocation method provided by the present invention. As shown, the IO channel allocation method includes:
S201,第一控制器读取并加载写入到存储器中的第一配置文件,所述第一配置文件包括所述第一控制器的交换接口的链路连接信息。S201. The first controller reads and loads a first configuration file that is written into the memory, where the first configuration file includes link connection information of the switching interface of the first controller.
具体实现中,用户可以预先编写各个控制器对应的配置文件,然后将这些配置文件分别烧写到各个存储器中。装置启动之后,各个控制器分别加载配置文件。其中,装置中包括至少两个控制器、背板以及多个IO卡。至少两个控制器分别并排设置于背板上,至少两个控制器分别包括多个交换接口,多个交换接口分别设置于背板的第一侧边,多个IO卡分别并排设置于背板的第二侧边,第一侧边与第二侧边正对。第一控制器还包括存储器,存储器与交换接口连接,存储器用于存储第一配置文件,存储器可以为E2PROM(Electrically Erasable Programmable Read-Only Memory,可擦写可编程只读存储器),第一控制器还包括一个管理模块和一个CPU(Central Processing Unit,中央处理器)处理模块。In a specific implementation, the user can pre-write the configuration files corresponding to each controller, and then program the configuration files into the respective memories. After the device is started, each controller loads the configuration file separately. Wherein, the device includes at least two controllers, a backboard and a plurality of IO cards. The at least two controllers are respectively disposed on the backplane, and the at least two controllers respectively include a plurality of switch interfaces. The plurality of switch interfaces are respectively disposed on the first side of the backboard, and the plurality of IO cards are respectively disposed side by side on the backplane. The second side of the first side is opposite the second side. The first controller further includes a memory, the memory is connected to the switch interface, the memory is used to store the first configuration file, and the memory may be an E2PROM (Electrically Erasable Programmable Read-Only Memory), the first controller It also includes a management module and a CPU (Central Processing Unit) processing module.
S202,根据所述第一配置文件,将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口。S202. Configure, according to the first configuration file, a switching interface of the first controller that is adjacent to the second controller as a mirroring interface.
例如:如图4A所示,第一控制器包括P0~Pn交换接口,第二控制器同样包括交换接口P0~Pn,第二控制器位于第一控制器的右侧邻近位置。第 一控制器根据第一配置文件将第一控制器中的交换接口Pn配置为镜像端口,同时第二控制器根据第二配置文件将第二控制器中的交换接口P0配置为镜像端口。如图4B所示,第一控制器包括交换接口P0~Pn,第二控制器同样包括交换接口P0~Pn,第二控制器位于第一控制器的左侧邻近位置,第一控制器根据第一配置文件将第一控制器中的交换接口P0配置为镜像端口,同时第二控制器根据第二配置文件将第二控制器中的交换接口Pn配置为镜像端口。For example, as shown in FIG. 4A, the first controller includes a P0-Pn switching interface, the second controller also includes switching interfaces P0-Pn, and the second controller is located at a right adjacent position of the first controller. First A controller configures the switch interface Pn in the first controller as a mirror port according to the first configuration file, and the second controller configures the switch interface P0 in the second controller as a mirror port according to the second configuration file. As shown in FIG. 4B, the first controller includes switching interfaces P0-Pn, the second controller also includes switching interfaces P0-Pn, and the second controller is located at a position adjacent to the left side of the first controller, and the first controller is configured according to the first A configuration file configures the switch interface P0 in the first controller as a mirror port, and the second controller configures the switch interface Pn in the second controller as a mirror port according to the second configuration file.
S203,将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。S203. Establish a link channel between the mirroring interface in the first controller and a mirroring interface in the second controller, where the second controller is adjacent to the first according to the second configuration file. The switch interface of the controller is configured as a mirror interface.
可选的,根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。Optionally, according to the first configuration file, the target switching interface in the other switching interface establishes a link channel with the IO card adjacent to the target switching interface.
例如:如图4A所示,第二控制器位于第一控制器的右侧邻近位置,可以将第一控制器中的镜像接口Pn与第二控制器中的镜像接口P0建立链路通道,并将第一控制器中的交换接口P0~Pn-1分别与IO卡A1~An一一对应建立链路通道。如图4B所示,第二控制器位于第一控制器的左侧邻近位置,可以将第一控制器中的镜像接口P0与第二控制器中的镜像接口Pn建立链路通道,并将第一控制器中的交换接口P1~Pn分别与IO卡A1~An一一对应建立链路通道。For example, as shown in FIG. 4A, the second controller is located at a right adjacent position of the first controller, and may establish a link channel between the mirror interface Pn in the first controller and the mirror interface P0 in the second controller, and The switch interfaces P0 to Pn-1 in the first controller are respectively associated with the IO cards A1 to An to establish a link channel. As shown in FIG. 4B, the second controller is located at a position adjacent to the left side of the first controller, and may establish a link channel between the mirror interface P0 in the first controller and the mirror interface Pn in the second controller, and The switching interfaces P1 to Pn in a controller respectively establish a link channel corresponding to the IO cards A1 to An.
在本发明实施例中,首先第一控制器读取并加载存储器中的第一配置文件,第一配置文件包括第一控制器的交换接口的链路连接信息;然后根据第一配置文件,将第一控制器中的邻近第二控制器的交换接口配置为镜像接口;最后将第一控制器中的镜像接口与第二控制器中的镜像接口建立链路通道,其中,第二控制器根据第二配置文件将邻近第一控制器的交换接口配置为镜像接口。从而减小镜像通道的传输路径,使得镜像接口的链路通道与IO卡的链路通道不交叉,提高数据传输的可靠性。In the embodiment of the present invention, first, the first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file, The switching interface of the first controller adjacent to the second controller is configured as a mirroring interface; finally, the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
请参考图3,图3本发明提供的一种IO通道分配方法的第二实施例的流程图。如图所示,所述IO通道分配方法包括:Please refer to FIG. 3. FIG. 3 is a flowchart of a second embodiment of an IO channel allocation method provided by the present invention. As shown, the IO channel allocation method includes:
S301,读取所述背板上的槽位标识信息以确定所述第一控制器是否电 连到所述背板上。S301. Read slot identification information on the backplane to determine whether the first controller is powered. Connect to the backplane.
具体实现中,若读取背板上的槽位标识信息失败,则发出警告提示;若读取背板上的槽位标识信息成功,则确定第一控制器电连到背板上,可以对第一控制器中的交换接口进行配置。其中,背板包括多个槽位标识连接器,多个槽位标识连接器分别与多个控制器连接,槽位标识连接器用于控制器读取背板上的槽位标识信息。In the specific implementation, if the slot identification information on the backplane fails to be read, a warning prompt is issued; if the slot identification information on the backplane is successfully read, it is determined that the first controller is electrically connected to the backboard, and The switch interface in the first controller is configured. The backplane includes a plurality of slot identifier connectors, and the plurality of slot identifier connectors are respectively connected to the plurality of controllers, and the slot identifier connector is used by the controller to read the slot identifier information on the backplane.
S302,第一控制器读取并加载存储器中的第一配置文件,所述第一配置文件包括所述第一控制器的交换接口的链路连接信息。S302. The first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller.
具体实现中,用户可以预先编写各个控制器对应的配置文件,然后将这些配置文件分别烧写到各个存储器中。装置启动之后,各个控制器分别加载配置文件。其中,装置中包括至少两个控制器、背板以及多个IO卡。至少两个控制器分别并排设置于背板上,至少两个控制器分别包括多个交换接口,多个交换接口分别设置于背板的第一侧边,多个IO卡分别并排设置于背板的第二侧边,第一侧边与第二侧边正对。第一控制器还包括存储器,存储器与交换接口连接,存储器用于存储第一配置文件,存储器可以为E2PROM可擦写可编程只读存储器,第一控制器还包括一个管理模块和一个CPU处理模块。In a specific implementation, the user can pre-write the configuration files corresponding to each controller, and then program the configuration files into the respective memories. After the device is started, each controller loads the configuration file separately. Wherein, the device includes at least two controllers, a backboard and a plurality of IO cards. The at least two controllers are respectively disposed on the backplane, and the at least two controllers respectively include a plurality of switch interfaces. The plurality of switch interfaces are respectively disposed on the first side of the backboard, and the plurality of IO cards are respectively disposed side by side on the backplane. The second side of the first side is opposite the second side. The first controller further includes a memory connected to the switch interface, the memory is configured to store the first configuration file, the memory may be an E2PROM erasable programmable read only memory, and the first controller further includes a management module and a CPU processing module .
S303,根据所述第一配置文件,将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口。S303. Configure, according to the first configuration file, a switching interface of the first controller that is adjacent to the second controller as a mirroring interface.
例如:如图4A所示,第一控制器包括P0~Pn交换接口,第二控制器同样包括交换接口P0~Pn,第二控制器位于第一控制器的右侧邻近位置。第一控制器根据第一配置文件将第一控制器中的交换接口Pn配置为镜像端口,同时第二控制器根据第二配置文件将第二控制器中的交换接口P0配置为镜像端口。如图4B所示,第一控制器包括交换接口P0~Pn,第二控制器同样包括交换接口P0~Pn,第二控制器位于第一控制器的左侧邻近位置,第一控制器根据第一配置文件将第一控制器中的交换接口P0配置为镜像端口,同时第二控制器根据第二配置文件将第二控制器中的交换接口Pn配置为镜像端口。For example, as shown in FIG. 4A, the first controller includes a P0-Pn switching interface, the second controller also includes switching interfaces P0-Pn, and the second controller is located at a right adjacent position of the first controller. The first controller configures the switch interface Pn in the first controller as a mirror port according to the first configuration file, and the second controller configures the switch interface P0 in the second controller as a mirror port according to the second configuration file. As shown in FIG. 4B, the first controller includes switching interfaces P0-Pn, the second controller also includes switching interfaces P0-Pn, and the second controller is located at a position adjacent to the left side of the first controller, and the first controller is configured according to the first A configuration file configures the switch interface P0 in the first controller as a mirror port, and the second controller configures the switch interface Pn in the second controller as a mirror port according to the second configuration file.
S304,将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所 述第一控制器的交换接口配置为镜像接口。S304, establishing a link channel between the mirror interface in the first controller and a mirror interface in the second controller, where the second controller is adjacent to the second configuration file. The switching interface of the first controller is configured as a mirroring interface.
可选的,根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。Optionally, according to the first configuration file, the target switching interface in the other switching interface establishes a link channel with the IO card adjacent to the target switching interface.
例如:如图4A所示,第二控制器位于第一控制器的右侧邻近位置,可以将第一控制器中的镜像接口Pn与第二控制器中的镜像接口P0建立链路通道,并将第一控制器中的交换接口P0~Pn-1分别与IO卡A1~An一一对应建立链路通道。如图4B所示,第二控制器位于第一控制器的左侧邻近位置,可以将第一控制器中的镜像接口P0与第二控制器中的镜像接口Pn建立链路通道,并将第一控制器中的交换接口P1~Pn分别与IO卡A1~An一一对应建立链路通道。For example, as shown in FIG. 4A, the second controller is located at a right adjacent position of the first controller, and may establish a link channel between the mirror interface Pn in the first controller and the mirror interface P0 in the second controller, and The switch interfaces P0 to Pn-1 in the first controller are respectively associated with the IO cards A1 to An to establish a link channel. As shown in FIG. 4B, the second controller is located at a position adjacent to the left side of the first controller, and may establish a link channel between the mirror interface P0 in the first controller and the mirror interface Pn in the second controller, and The switching interfaces P1 to Pn in a controller respectively establish a link channel corresponding to the IO cards A1 to An.
在本发明实施例中,首先第一控制器读取并加载存储器中的第一配置文件,第一配置文件包括第一控制器的交换接口的链路连接信息;然后根据第一配置文件,将第一控制器中的邻近第二控制器的交换接口配置为镜像接口;最后将第一控制器中的镜像接口与第二控制器中的镜像接口建立链路通道,其中,第二控制器根据第二配置文件将邻近第一控制器的交换接口配置为镜像接口。从而减小镜像通道的传输路径,使得镜像接口的链路通道与IO卡的链路通道不交叉,提高数据传输的可靠性。In the embodiment of the present invention, first, the first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file, The switching interface of the first controller adjacent to the second controller is configured as a mirroring interface; finally, the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
请参考图5,图5是本发明实施例提出的一种IO通道分配装置的结构示意图。如图所示,本发明实施例中的IO通道分配装置包括:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an IO channel allocation apparatus according to an embodiment of the present invention. As shown in the figure, the IO channel allocation device in the embodiment of the present invention includes:
文件加载模块502,用于读取并加载写入到存储器中的第一配置文件,所述第一配置文件包括第一控制器的交换接口的链路连接信息。The file loading module 502 is configured to read and load a first configuration file that is written into the memory, where the first configuration file includes link connection information of the switching interface of the first controller.
具体实现中,用户可以预先编写各个控制器对应的配置文件,然后将这些配置文件分别烧写到各个存储器中。装置启动之后,各个控制器分别加载配置文件。其中,装置中包括至少两个控制器、背板以及多个IO卡。至少两个控制器分别并排设置于背板上,至少两个控制器分别包括多个交换接口,多个交换接口分别设置于背板的第一侧边,多个IO卡分别并排设置于背板的第二侧边,第一侧边与第二侧边正对。第一控制器还包括存储器,存储器与交换接口连接,存储器用于存储第一配置文件,存储器可以为E2PROM可擦写可编程只读存储器,第一控制器还包括一个管理模块和 一个CPU处理模块。In a specific implementation, the user can pre-write the configuration files corresponding to each controller, and then program the configuration files into the respective memories. After the device is started, each controller loads the configuration file separately. Wherein, the device includes at least two controllers, a backboard and a plurality of IO cards. The at least two controllers are respectively disposed on the backplane, and the at least two controllers respectively include a plurality of switch interfaces. The plurality of switch interfaces are respectively disposed on the first side of the backboard, and the plurality of IO cards are respectively disposed side by side on the backplane. The second side of the first side is opposite the second side. The first controller further includes a memory connected to the switch interface, the memory is configured to store the first configuration file, the memory may be an E2PROM erasable programmable read only memory, and the first controller further includes a management module and A CPU processing module.
接口配置模块503,用于将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口。The interface configuration module 503 is configured to configure a switching interface of the first controller that is adjacent to the second controller as a mirroring interface.
例如:如图4A所示,第一控制器包括P0~Pn交换接口,第二控制器同样包括交换接口P0~Pn,第二控制器位于第一控制器的右侧邻近位置。第一控制器根据第一配置文件将第一控制器中的交换接口Pn配置为镜像端口,同时第二控制器根据第二配置文件将第二控制器中的交换接口P0配置为镜像端口。如图4B所示,第一控制器包括交换接口P0~Pn,第二控制器同样包括交换接口P0~Pn,第二控制器位于第一控制器的左侧邻近位置,第一控制器根据第一配置文件将第一控制器中的交换接口P0配置为镜像端口,同时第二控制器根据第二配置文件将第二控制器中的交换接口Pn配置为镜像端口。For example, as shown in FIG. 4A, the first controller includes a P0-Pn switching interface, the second controller also includes switching interfaces P0-Pn, and the second controller is located at a right adjacent position of the first controller. The first controller configures the switch interface Pn in the first controller as a mirror port according to the first configuration file, and the second controller configures the switch interface P0 in the second controller as a mirror port according to the second configuration file. As shown in FIG. 4B, the first controller includes switching interfaces P0-Pn, the second controller also includes switching interfaces P0-Pn, and the second controller is located at a position adjacent to the left side of the first controller, and the first controller is configured according to the first A configuration file configures the switch interface P0 in the first controller as a mirror port, and the second controller configures the switch interface Pn in the second controller as a mirror port according to the second configuration file.
链路连接模块504,用于将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。a link connection module 504, configured to establish a link channel between the mirror interface in the first controller and a mirror interface in the second controller, where the second controller is configured according to the second configuration file. The switch interface adjacent to the first controller is configured as a mirror interface.
可选的,链路连接模块504还可以用于根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。Optionally, the link connection module 504 is further configured to establish a link channel between the target switch interface in the other switch interface and the IO card adjacent to the target switch interface according to the first configuration file.
例如:如图4A所示,第二控制器位于第一控制器的右侧邻近位置,可以将第一控制器中的镜像接口Pn与第二控制器中的镜像接口P0建立链路通道,并将第一控制器中的交换接口P0~Pn-1分别与IO卡A1~An一一对应建立链路通道。如图4B所示,第二控制器位于第一控制器的左侧邻近位置,可以将第一控制器中的镜像接口P0与第二控制器中的镜像接口Pn建立链路通道,并将第一控制器中的交换接口P1~Pn分别与IO卡A1~An一一对应建立链路通道。For example, as shown in FIG. 4A, the second controller is located at a right adjacent position of the first controller, and may establish a link channel between the mirror interface Pn in the first controller and the mirror interface P0 in the second controller, and The switch interfaces P0 to Pn-1 in the first controller are respectively associated with the IO cards A1 to An to establish a link channel. As shown in FIG. 4B, the second controller is located at a position adjacent to the left side of the first controller, and may establish a link channel between the mirror interface P0 in the first controller and the mirror interface Pn in the second controller, and The switching interfaces P1 to Pn in a controller respectively establish a link channel corresponding to the IO cards A1 to An.
可选的,如图5所示,所述IO通道分配装置还可以进一步包括:Optionally, as shown in FIG. 5, the IO channel allocation apparatus may further include:
信息读取模块501,用于读取所述背板上的槽位标识信息以确定所述第一控制器是否电连到所述背板上。The information reading module 501 is configured to read slot identification information on the backplane to determine whether the first controller is electrically connected to the backplane.
具体实现中,若读取背板上的槽位标识信息失败,则发出警告提示;若读取背板上的槽位标识信息成功,则确定第一控制器电连到背板上,可 以对第一控制器中的交换接口进行配置。其中,背板包括多个槽位标识连接器,多个槽位标识连接器分别与多个控制器连接,槽位标识连接器用于控制器读取背板上的槽位标识信息。In the specific implementation, if the slot identification information on the backplane fails to be read, a warning prompt is issued; if the slot identification information on the backplane is successfully read, it is determined that the first controller is electrically connected to the backboard, Configure the switch interface in the first controller. The backplane includes a plurality of slot identifier connectors, and the plurality of slot identifier connectors are respectively connected to the plurality of controllers, and the slot identifier connector is used by the controller to read the slot identifier information on the backplane.
在本发明实施例中,首先第一控制器读取并加载存储器中的第一配置文件,第一配置文件包括第一控制器的交换接口的链路连接信息;然后根据第一配置文件,将第一控制器中的邻近第二控制器的交换接口配置为镜像接口;最后将第一控制器中的镜像接口与第二控制器中的镜像接口建立链路通道,其中,第二控制器根据第二配置文件将邻近第一控制器的交换接口配置为镜像接口。从而减小镜像通道的传输路径,使得镜像接口的链路通道与IO卡的链路通道不交叉,提高数据传输的可靠性。In the embodiment of the present invention, first, the first controller reads and loads the first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller; and then according to the first configuration file, The switching interface of the first controller adjacent to the second controller is configured as a mirroring interface; finally, the mirroring interface in the first controller establishes a link channel with the mirroring interface in the second controller, wherein the second controller is configured according to The second configuration file configures the switching interface adjacent to the first controller as a mirroring interface. Therefore, the transmission path of the mirroring channel is reduced, so that the link channel of the mirroring interface does not cross the link channel of the IO card, thereby improving the reliability of data transmission.
图6是本发明提出的一种IO通道分配装置的另一实施例的结构示意图。如图所示,该装置可以包括:至少一个处理器601,例如CPU,至少一个接收器603,至少一个存储器604,至少一个发送器605,至少一个通信总线602。其中,通信总线602用于实现这些组件之间的连接通信。其中,本发明实施例中装置的接收器603和发送器605可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他节点设备进行信令或数据的通信。存储器604可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器604可选的还可以是至少一个位于远离前述处理器601的存储装置。存储器604中存储一组程序代码,且处理器用于调用存储器中存储的程序代码,用于执行以下操作:FIG. 6 is a schematic structural view of another embodiment of an IO channel distribution device according to the present invention. As shown, the apparatus can include at least one processor 601, such as a CPU, at least one receiver 603, at least one memory 604, at least one transmitter 605, and at least one communication bus 602. Among them, the communication bus 602 is used to implement connection communication between these components. The receiver 603 and the transmitter 605 of the device in the embodiment of the present invention may be a wired sending port, or may be a wireless device, for example, including an antenna device, for performing signaling or data communication with other node devices. The memory 604 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory. The memory 604 can optionally also be at least one storage device located remotely from the aforementioned processor 601. A set of program codes is stored in the memory 604, and the processor is configured to call program code stored in the memory for performing the following operations:
第一控制器读取并加载存储器中的第一配置文件,所述第一配置文件包括所述第一控制器的交换接口的链路连接信息;The first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
根据所述第一配置文件,将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口;And configuring, according to the first configuration file, a switching interface of the first controller that is adjacent to the second controller as a mirroring interface;
将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。Establishing a link channel between the mirror interface in the first controller and a mirror interface in the second controller, wherein the second controller is adjacent to the first controller according to the second configuration file The switch interface is configured as a mirrored interface.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不 受所描述的动作顺序的限制,因为依据本发明,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing various method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that the present invention does not This is limited by the sequence of actions described, as some steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not described in detail in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Flash disk, Read-Only Memory (ROM), Random Access Memory (RAM), disk or optical disk.
以上对本发明实施例所提供的内容下载方法及相关设备、系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The content downloading method and the related device and system provided by the embodiments of the present invention are described in detail above. The principles and implementation manners of the present invention are described in the specific examples. The description of the above embodiments is only used to help understand the present invention. The method of the invention and its core idea; at the same time, for the person of ordinary skill in the art, according to the idea of the present invention, there are some changes in the specific embodiment and the scope of application. In summary, the content of the specification should not be understood. To limit the invention.

Claims (9)

  1. 一种IO通道分配方法,其特征在于,所述方法包括:An IO channel allocation method, the method comprising:
    第一控制器读取并加载存储器中的第一配置文件,所述第一配置文件包括所述第一控制器的交换接口的链路连接信息;The first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
    根据所述第一配置文件,将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口;And configuring, according to the first configuration file, a switching interface of the first controller that is adjacent to the second controller as a mirroring interface;
    将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。Establishing a link channel between the mirror interface in the first controller and a mirror interface in the second controller, wherein the second controller is adjacent to the first controller according to the second configuration file The switch interface is configured as a mirrored interface.
  2. 如权利要求1所述的方法,其特征在于,所述读取并加载写入到存储器中的第一配置文件之后,还包括:The method of claim 1, wherein after the reading and loading the first configuration file written in the memory, the method further comprises:
    根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。According to the first configuration file, the target switching interface in the other switching interfaces establishes a link channel with the IO card adjacent to the target switching interface.
  3. 如权利要求1所述的方法,其特征在于,所述读取并加载写入到存储器中的第一配置文件之前,还包括:The method of claim 1, wherein before the reading and loading the first configuration file written in the memory, the method further comprises:
    读取所述背板上的槽位标识信息以确定所述第一控制器是否电连到所述背板上。The slot identification information on the backplane is read to determine whether the first controller is electrically connected to the backplane.
  4. 如权利要求3所述的方法,其特征在于,所述读取所述背板上的槽位标识信息以确定所述第一控制器是否设置于所述背板上之后,还包括:The method of claim 3, wherein the reading the slot identification information on the backplane to determine whether the first controller is disposed on the backplane further comprises:
    若读取所述背板上的槽位标识信息失败,则发出警告提示。If the slot identification information on the backplane fails to be read, a warning prompt is issued.
  5. 一种IO通道分配装置,其特征在于,所述装置包括:An IO channel distribution device, characterized in that the device comprises:
    文件加载模块,用于读取并加载写入到存储器中的第一配置文件,所述第一配置文件包括第一控制器的交换接口的链路连接信息;a file loading module, configured to read and load a first configuration file that is written into the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
    接口配置模块,用于将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口; An interface configuration module, configured to configure a switching interface of the first controller in the first controller as a mirroring interface;
    链路连接模块,用于将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。a link connection module, configured to establish a link channel between the mirror interface in the first controller and a mirror interface in the second controller, where the second controller according to the second configuration file The switching interface adjacent to the first controller is configured as a mirroring interface.
  6. 如权利要求5所述的装置,其特征在于,The device of claim 5 wherein:
    所述链路连接模块,还用于根据所述第一配置文件,将其他交换接口中的目标交换接口与邻近所述目标交换接口的IO卡建立链路通道。The link connection module is further configured to establish a link channel between the target switch interface in the other switch interface and the IO card adjacent to the target switch interface according to the first configuration file.
  7. 如权利要求5所述的装置,其特征在于,所述装置还包括:The device of claim 5, wherein the device further comprises:
    信息读取模块,用于读取所述背板上的槽位标识信息以确定所述第一控制器是否电连到所述背板上。And an information reading module, configured to read slot identification information on the backplane to determine whether the first controller is electrically connected to the backboard.
  8. 如权利要求7所述的装置,其特征在于,The device of claim 7 wherein:
    所述信息读取模块,还用于若读取所述背板上的槽位标识信息失败,则发出警告提示。The information reading module is further configured to issue a warning prompt if the slot identification information on the backboard fails to be read.
  9. 一种IO通道分配装置,其特征在于,所述装置包括网络接口、存储器以及处理器,其中,存储器中存储一组程序代码,且处理器用于调用存储器中存储的程序代码,用于执行以下操作:An IO channel allocation device, characterized in that the device comprises a network interface, a memory and a processor, wherein the memory stores a set of program codes, and the processor is configured to call program code stored in the memory for performing the following operations :
    第一控制器读取并加载存储器中的第一配置文件,所述第一配置文件包括所述第一控制器的交换接口的链路连接信息;The first controller reads and loads a first configuration file in the memory, where the first configuration file includes link connection information of the switching interface of the first controller;
    根据所述第一配置文件,将所述第一控制器中的邻近第二控制器的交换接口配置为镜像接口;And configuring, according to the first configuration file, a switching interface of the first controller that is adjacent to the second controller as a mirroring interface;
    将所述第一控制器中的所述镜像接口与所述第二控制器中的镜像接口建立链路通道,其中,所述第二控制器根据第二配置文件将邻近所述第一控制器的交换接口配置为镜像接口。 Establishing a link channel between the mirror interface in the first controller and a mirror interface in the second controller, wherein the second controller is adjacent to the first controller according to the second configuration file The switch interface is configured as a mirrored interface.
PCT/CN2015/077093 2014-11-21 2015-04-21 Io channel allocation method and device WO2016078322A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410675623.9A CN104461968B (en) 2014-11-21 2014-11-21 A kind of I/O channel distribution method and device
CN201410675623.9 2014-11-21

Publications (1)

Publication Number Publication Date
WO2016078322A1 true WO2016078322A1 (en) 2016-05-26

Family

ID=52908050

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077093 WO2016078322A1 (en) 2014-11-21 2015-04-21 Io channel allocation method and device

Country Status (2)

Country Link
CN (1) CN104461968B (en)
WO (1) WO2016078322A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461968B (en) * 2014-11-21 2017-08-11 华为技术有限公司 A kind of I/O channel distribution method and device
EP3575899B1 (en) * 2018-06-01 2021-03-17 Selectron Systems AG Automation system, operating method for automation system and computer program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204246A1 (en) * 2001-04-04 2007-08-30 International Business Machines Corporation Method and system for logic verification using mirror interface
CN101212287A (en) * 2006-12-30 2008-07-02 北京三星通信技术研究有限公司 Port-Based Redundant Backup Method
CN102082696A (en) * 2011-03-10 2011-06-01 中控科技集团有限公司 Redundancy network system and message sending method based on same
CN104461968A (en) * 2014-11-21 2015-03-25 华为技术有限公司 I/O channel allocation method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103488435B (en) * 2013-09-24 2017-08-04 华为技术有限公司 RAID Subsystem and Its Data Reading and Writing Method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204246A1 (en) * 2001-04-04 2007-08-30 International Business Machines Corporation Method and system for logic verification using mirror interface
CN101212287A (en) * 2006-12-30 2008-07-02 北京三星通信技术研究有限公司 Port-Based Redundant Backup Method
CN102082696A (en) * 2011-03-10 2011-06-01 中控科技集团有限公司 Redundancy network system and message sending method based on same
CN104461968A (en) * 2014-11-21 2015-03-25 华为技术有限公司 I/O channel allocation method and device

Also Published As

Publication number Publication date
CN104461968A (en) 2015-03-25
CN104461968B (en) 2017-08-11

Similar Documents

Publication Publication Date Title
US8521929B2 (en) Virtual serial port management system and method
US11599482B2 (en) Systems, methods and apparatus for a storage controller with multi-mode PCIe functionalities
US10467163B1 (en) Solid state drive multiplexer
KR102191237B1 (en) Storage device with network access
US10614011B2 (en) Apparatus, method, and electronic device for implementing solid-state drive data interaction
CN107817953B (en) Method and device for accessing hard disk by double-control storage equipment
CN104461716A (en) Access method of multi-nucleus heterogeneous system and multi-nucleus heterogeneous system
KR20150058600A (en) Flexible server system
US10616348B2 (en) System and method for providing multiple IPMI serial over LAN (SOL) sessions in management controller stack
US9026685B2 (en) Memory module communication control
EP2950219A1 (en) Method and apparatus for using serial port in time division multiplexing manner
CN111984557A (en) Data processing method, device and system
US20140244879A1 (en) SAS Latency Based Routing
US11240100B2 (en) Using an out-of-band network to reconfigure a bus interface port
CN113645049A (en) Network card electrifying method, system, storage medium and equipment
CN105808374A (en) Snapshot processing method and associated equipment
US20160156518A1 (en) Server for automatically switching sharing-network
WO2016078322A1 (en) Io channel allocation method and device
CN114116415B (en) Hard disk backboard, hard disk lighting control system, method, device and medium
US8301801B2 (en) Blade system and method for establishing a shortest path to transmit packets among blade servers of the blade system
CN114116574A (en) Data transmission method and device, electronic equipment and storage medium
US20150067221A1 (en) Data transfer apparatus and method
CN112069108A (en) Flexible server configuration system and method based on PCIE Switch
US10579394B2 (en) Control method and control device
CN116886463B (en) Cascade communication method, device, equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15860400

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15860400

Country of ref document: EP

Kind code of ref document: A1