CN105975410A - Inter-storage device controller communication method and system - Google Patents

Inter-storage device controller communication method and system Download PDF

Info

Publication number
CN105975410A
CN105975410A CN201610270522.2A CN201610270522A CN105975410A CN 105975410 A CN105975410 A CN 105975410A CN 201610270522 A CN201610270522 A CN 201610270522A CN 105975410 A CN105975410 A CN 105975410A
Authority
CN
China
Prior art keywords
controller
control command
communication channel
communication
described control
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.)
Pending
Application number
CN201610270522.2A
Other languages
Chinese (zh)
Inventor
陈思聪
陈良华
杜彦魁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201610270522.2A priority Critical patent/CN105975410A/en
Publication of CN105975410A publication Critical patent/CN105975410A/en
Pending legal-status Critical Current

Links

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/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1605Handling requests for interconnection or transfer for access to memory bus based on arbitration
    • G06F13/1652Handling requests for interconnection or transfer for access to memory bus based on arbitration in a multiprocessor architecture

Abstract

The invention discloses an inter-storage device controller communication method and system. The method comprises the steps that a source controller determines a communication channel from the source controller to a target controller of a control command according to a preset communication rule, and sends the control command by utilizing the determined communication channel; and a destination controller receives the control command, compares a destination controller identifier with a target controller identifier in the control command, determines whether the destination controller is the target controller or not, executes control operation corresponding to the control command if the destination controller is the target controller, and serves as the source controller and sends the control command if the destination controller is not the target controller. According to the method and system, the controller determines the corresponding communication channel according to the preset communication rule when the control command needs to be forwarded, instead of determining the corresponding communication channel according to hardware in the prior art, so that the inter-controller communication design can shield difference of hardware design, the inter-controller communication flexibility can be improved, and the inter-controller communication is easier to realize and maintain.

Description

The means of communication between a kind of storage device controller and system
Technical field
The present invention relates to computer communication technology field, particularly relate to a kind of storage device and control The means of communication between device and system.
Background technology
Now, in order to make storage device have High Availabitity, high bandwidth and the spy of high read-write speed Property, when designing storage device, it will usually configure multiple controllers for it, such as four controllers or Person's more multi-controller, these controllers are in state of activation, can externally provide data storage clothes Business.In this case, the work between configuration operation and each controller of storage device Coordinate particularly important, and everything all relies on efficient, reliable communicating between each controller.
In the prior art, the communication scheme between storage device controller is hard with storage device The binding of part structure, i.e. for different hardware configurations, need to design different communication modes. But, owing to there is multiple communication channel between multi-controller, including direct memory access (Dma), twin wire universal serial bus (I2c), high-speed peripheral bus (Pci-e) and Ethernet (Eth) etc., Also have multiple passage connected mode between multi-controller simultaneously, including ring-like, star-like, principal and subordinate Type etc..Obviously, these communication channels and the variation of connected mode so that between controller Communication modes exist and realize and safeguard complicated problem.
Based on this, need the communication side between a kind of storage device controller being easily achieved and safeguarding badly Method and system.
Summary of the invention
In view of this, the invention provides the means of communication between a kind of storage device controller and be System, the purpose being easily achieved with realization and safeguarding.
For solving above-mentioned technical problem, the present invention provides the communication between a kind of storage device controller Method, including:
Source controller, with reference to the communication rule preset, determines from self to the target control of control command The communication channel of device processed, and utilize the communication channel determined to send described control command;
Wherein, described control command includes that target controller identifies, described default communication rule Comprise any controller communication channel information to other controller;
Purpose controller receives described control command, in contrast self identification and described control command Described target controller mark, determine whether self is described target controller, if it is, Then perform the control operation corresponding with described control command, if it is not, then using self as institute State source controller and send described control command.
In said method, it is preferable that described source controller utilizes the communication channel determined to send Described control command, including:
When the bar number of the described communication channel determined is one, directly utilize described determine logical News passage sends described control command;
When the bar number of the described communication channel determined is a plurality of, at the described communication channel determined In arbitrarily select a communication channel to send described control command.
In said method, it is preferable that when the bar number of the described communication channel determined is a plurality of, Also include:
In the described communication channel determined, select one from self to described target controller on the way Amount controller minimum communication channel in footpath sends described control command.
In said method, it is preferable that utilize the communication channel determined to send out at described source controller Before sending described control command, also include:
Described control command is sent to the Central Retransmission Facility preset by described source controller, so that Described control command is forwarded to described target controller by described Central Retransmission Facility.
Present invention also offers the communication system between a kind of storage device controller, including:
Source controller, for reference to the communication rule preset, determining from self to control command The communication channel of target controller, and utilize the communication channel determined to send described control command;
Wherein, described control command includes that target controller identifies, described default communication rule Comprise any controller communication channel information to other controller;
Purpose controller, is used for receiving described control command, contrast self identification and described control Described target controller mark in order, determines whether self is described target controller, as Fruit is, then perform the control operation corresponding with described control command, if it is not, then by self As described source controller and send described control command.
In said system, it is preferable that described source controller comes for utilizing the communication channel determined Send described control command, specifically for:
When the bar number of the described communication channel determined is one, directly utilize described determine logical News passage sends described control command;When the bar number of the described communication channel determined is a plurality of, A communication channel is arbitrarily selected to order to send described control in the described communication channel determined Order.
In said system, it is preferable that described source controller is additionally operable to:
When the bar number of the described communication channel determined is a plurality of, at the described communication channel determined In, select one to lead to the communication that described target controller approach amount controller is minimum from self Road sends described control command.
In said system, it is preferable that this system also includes Central Retransmission Facility, described source controls Device is additionally operable to:
Described source controller utilize the communication channel that determines before sending described control command, Described control command is sent to the Central Retransmission Facility preset by described source controller, so that described Described control command is forwarded to described target controller by Central Retransmission Facility.
The means of communication between a kind of storage device controller that the above present invention provides and system, source Controller, with reference to the communication rule preset, determines from self to the target controller of control command Communication channel, and utilize the communication channel determined to send described control command;Purpose controller (be probably middle transcoder controller and be likely to be exactly target controller) receives described control command, right Identify than the described target controller in self identification and described control command, whether determine self For described target controller, grasp if it is, perform the control corresponding with described control command Make, if it is not, then self as described source controller and is sent described control command.
Visible, in the present invention, (included that source is controlled when needs forward control command by controller Device processed and middle transcoder controller) determine corresponding communication channel according to the communication rule preset, and Non-existing technology determines corresponding communication channel according to hardware, so that leading between controller News design can shield the difference of hardware designs, improves the motility controlling communication among unit, makes control Communication between device processed is more easily implemented and safeguards.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below The accompanying drawing used required in embodiment or description of the prior art will be briefly described, aobvious and Easily insight, the accompanying drawing in describing below is only embodiments of the invention, common for this area From the point of view of technical staff, on the premise of not paying creative work, it is also possible to attached according to provide Figure obtains other accompanying drawing.
The means of communication between a kind of storage device controller that Fig. 1 provides for the embodiment of the present invention Flow chart;
The schematic diagram that the four controller annulars that Fig. 2 provides for the embodiment of the present invention connect;
The schematic diagram that four controllers that Fig. 3 provides for the embodiment of the present invention connect two-by-two;
The signal that the controller that Fig. 4 provides for the embodiment of the present invention is connected by Central Retransmission Facility Figure;
Communication system between a kind of storage device controller that Fig. 5 provides for the embodiment of the present invention Structured flowchart schematic diagram.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, to the technical side in the embodiment of the present invention Case is clearly and completely described, it is clear that described embodiment is only the present invention one Divide embodiment rather than whole embodiments.Based on the embodiment in the present invention, this area is general The every other embodiment that logical technical staff is obtained under not making creative work premise, Broadly fall into the scope of protection of the invention.
The core of the present invention is to provide the means of communication between a kind of storage device controller and system, The purpose being easily achieved with realization and safeguarding.
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawings The present invention is described in further detail with detailed description of the invention.
A kind of storage device controller that the embodiment of the present invention provides is shown with reference to Fig. 1, Fig. 1 Between the flow chart of the means of communication, the method specifically may include steps of:
Step S100, source controller, with reference to the communication rule preset, determine from self to controlling life The communication channel of the target controller of order, and utilize the communication channel determined to carry out transmitting control commands.
In the present invention, for multiple storage device controllers (abbreviation controller), The controller just generating and sending control command is referred to as source controller;Resolve this control command and hold The corresponding controller controlling operation of row is referred to as target controller;In control command from source controller The controller playing forwarding effect involved between target controller is referred to as purpose control Device.It is understood that target controller is the mesh that control command is final during sending Controller.
For control command, it can include source controller identifier and target controller mark, this Sample, the controller receiving this control command just can know that who is source controller, and who is target control Device processed.Of course it is to be appreciated that control command also needs to comprise corresponding control information, This control information can allow target controller know, and oneself should perform those controls operation.
For default communication rule, wherein contain any controller leading to other controller News channel information, these communication channel information can be fitted mutually according to the difference of hardware designs The change answered;In actual application, this communication rule can be arranged and each controller In, in order to each controller can utilize rapidly this rule to determine corresponding communication channel.
When the bar number of the communication channel determined is one, directly utilizes the communication channel determined and come Transmitting control commands;When the bar number of the communication channel determined is a plurality of, lead in the communication determined Road arbitrarily select a communication channel carry out transmitting control commands.Further, in order to ensure control Order processed can quickly arrive target controller, when the bar number of the communication channel determined is a plurality of, One can also be selected to control to target controller approach from self in the communication channel determined The communication channel of device minimum number carrys out transmitting control commands.
Step S101, purpose controller receive control command, contrast self identification and control command In target controller mark, determine whether self is target controller, if it is, perform The control operation corresponding with control command, if it is not, then self is concurrent as source controller Send control command.
From the definition of above-mentioned target controller and purpose controller it can be seen that object here control Device processed is probably the middle transcoder controller only playing transfer control command effect, it is also possible to need exactly Perform the target controller that control operation corresponding with control command.When purpose controller receives During to a control command, it first identifies according to the target controller in this control command and judges Whether oneself is exactly target controller, if just resolving control command, is controlled Information, and perform the control operation corresponding with this control information;If it is understood that Determining oneself is not target controller, it is necessary to this control command is forwarded to target control Device, at this moment, this target controller just can serve temporarily as the role of source controller, i.e. performs State the scheme involved by step S100, i.e. with reference to the communication rule preset, determine from self to The communication channel of target controller, and utilize the communication channel determined to forward control command.Directly Target controller is arrived to described control command.
It addition, in actual applications, the control command between each controller can also be by one The equipment being specifically designed to forwarding realizes, and is herein referred to as Central Retransmission Facility.Specifically, Being that each controller configures a Central Retransmission Facility in advance, control command can be sent out by each controller Delivering to this Central Retransmission Facility, this Central Retransmission Facility can know from control command who is Target controller, and control command is sent to corresponding target controller, i.e. at source controller When generating control command, control command is sent to the Central Retransmission Facility preset, so that central Control command is forwarded to target controller by forwarding unit.
Visible, in the present invention, (included that source is controlled when needs forward control command by controller Device processed and middle transcoder controller) determine corresponding communication channel according to the communication rule preset, and Non-existing technology determines corresponding communication channel according to hardware, so that leading between controller News design can shield the difference of hardware designs, improves the motility controlling communication among unit, makes control Communication between device processed is more easily implemented and safeguards.
Based on the technical scheme disclosed in the invention described above embodiment, in another embodiment of the present invention In, with the connected mode between two kinds of conventional controllers, the specific design of communication rule is carried out Illustrate:
Fig. 2 shows the schematic diagram that four controller annulars connect, and wherein, four controllers include Controller 1, controller 2, controller 3 and controller 4, each controller all has 2 communications Passage (also referred to as communication link), is labeled as 1 and 2.Table 1 is to connect corresponding leading to this annular News rule.
Table 1 four controller annular connects corresponding communication rule
Wherein, current controller is designated mark or the mark of middle transcoder controller of source controller Know.By source controller be controller 1, target controller for controller 4 as a example by, just start, Source controller is as communication promoter, and it, as current controller, identifies according to current controller It is 1 and target controller is designated 4, determines that spendable communication link is designated 1 and 2, also That is, it can be controlled the transmission of order by optional communication link, if selected logical News link 1, then control command will be sent by it by communication link 1, and control instruction is taken Band target controller mark 4;Obviously, purpose controller now is controller 2, controller 2 Receive the control instruction that controller 1 sends, know by knowing that target controller is designated 4 Road oneself is not target controller, and at this moment, controller 2 is current controller, the most currently controls Device be designated 2 and target controller be designated 4, determine that spendable communication link identifies with this It is 2, and then control command be will send out by communication link 2 by controller 2;Now Purpose controller is controller 4, it is clear that it is exactly target controller, and controller 4 can be right Control command carries out resolving and perform to control operation accordingly.
For the implementation of other example, refer to the above-mentioned process that realizes, the present invention is at this not Repeat again.
Fig. 3 shows the schematic diagram that four controllers connect two-by-two, and wherein, each controller all has 3 communication links, are labeled as 1,2,3.Table 2 is the communication that four controllers connect correspondence two-by-two Rule.
Table 2 four controller connects the communication rule of correspondence two-by-two
Current controller identifies Target controller identifies Spendable communication link identifies
1 2 1
1 3 2
1 4 3
2 1 1
2 3 3
2 4 2
3 1 1
3 2 3
3 4 2
4 1 3
4 2 1
4 3 2
For using Central Retransmission Facility to realize process, citing is with reference to the controller shown in Fig. 4 The schematic diagram connected by Central Retransmission Facility, the most each controller only has 1 communication link, Being labeled as 1, forwarding unit, it is believed that be controller 5, has communication link 1,2,3,4. Table 3 is to connect corresponding communication rule by Central Retransmission Facility.
Table 3 connects corresponding communication rule by Central Retransmission Facility
Based on the means of communication between the storage device controller that the invention described above embodiment provides, this Inventive embodiments additionally provides the communication system between a kind of storage device controller, with reference to Fig. 5, This system 500 can include following content:
Source controller 501, for reference to the communication rule preset, determines from self to controlling life The communication channel of the target controller of order, and utilize the communication channel determined to carry out transmitting control commands;
Wherein, control command includes that target controller identifies, and the communication rule preset comprises arbitrary Controller is to the communication channel information of other controller;
Purpose controller 502, is used for receiving control command, contrast self identification and control command In target controller mark, determine whether self is target controller, if it is, perform The control operation corresponding with control command, if it is not, then self is concurrent as source controller Send control command.
In the present invention, source controller 501 sends control life for utilizing the communication channel determined Order, specifically may be used for: when the bar number of the communication channel determined is one, directly utilizes really Fixed communication channel carrys out transmitting control commands;When the bar number of the communication channel determined is a plurality of, A communication channel is arbitrarily selected to carry out transmitting control commands in the communication channel determined.
It addition, source controller 501 specifically can be also used for: when the bar number of the communication channel determined For time a plurality of, in the communication channel determined, select one from self to target controller approach The minimum communication channel of amount controller carrys out transmitting control commands.
In the present invention, this system 500 can also include Central Retransmission Facility, and based on this, source is controlled Device 501 processed specifically can be also used for: utilizes the communication channel determined to send control at source controller Before system order, control command is sent to the Central Retransmission Facility preset by source controller, so that Control command is forwarded to target controller by Central Retransmission Facility.
It should be noted that each embodiment in this specification all uses the mode gone forward one by one to retouch Stating, what each embodiment stressed is the difference with other embodiments, and each is implemented Between example, identical similar part sees mutually.For system class embodiment, due to It is with embodiment of the method basic simlarity, so describing fairly simple, relevant part sees method The part of embodiment illustrates.
Above to the means of communication between a kind of storage device controller provided by the present invention and be System is described in detail.Specific case used herein is to the principle of the present invention and embodiment party Formula is set forth, the explanation of above example be only intended to help to understand the method for the present invention and Its core concept.It should be pointed out that, for those skilled in the art, not On the premise of departing from the principle of the invention, it is also possible to the present invention is carried out some improvement and modification, this A little improvement and modification also fall in the protection domain of the claims in the present invention.

Claims (8)

1. the means of communication between a storage device controller, it is characterised in that including:
Source controller, with reference to the communication rule preset, determines from self to the target control of control command The communication channel of device processed, and utilize the communication channel determined to send described control command;
Wherein, described control command includes that target controller identifies, described default communication rule Comprise any controller communication channel information to other controller;
Purpose controller receives described control command, in contrast self identification and described control command Described target controller mark, determine whether self is described target controller, if it is, Then perform the control operation corresponding with described control command, if it is not, then using self as institute State source controller and send described control command.
2. the method for claim 1, it is characterised in that described source controller utilizes The communication channel determined to send described control command, including:
When the bar number of the described communication channel determined is one, directly utilize described determine logical News passage sends described control command;
When the bar number of the described communication channel determined is a plurality of, at the described communication channel determined In arbitrarily select a communication channel to send described control command.
3. method as claimed in claim 2, it is characterised in that when the described communication determined When the bar number of passage is a plurality of, also include:
In the described communication channel determined, select one from self to described target controller on the way Amount controller minimum communication channel in footpath sends described control command.
4. the method as described in claims 1 to 3 any one, it is characterised in that in institute Stating source controller utilizes the communication channel determined before sending described control command, also includes:
Described control command is sent to the Central Retransmission Facility preset by described source controller, so that Described control command is forwarded to described target controller by described Central Retransmission Facility.
5. the communication system between a storage device controller, it is characterised in that including:
Source controller, for reference to the communication rule preset, determining from self to control command The communication channel of target controller, and utilize the communication channel determined to send described control command;
Wherein, described control command includes that target controller identifies, described default communication rule Comprise any controller communication channel information to other controller;
Purpose controller, is used for receiving described control command, contrast self identification and described control Described target controller mark in order, determines whether self is described target controller, as Fruit is, then perform the control operation corresponding with described control command, if it is not, then by self As described source controller and send described control command.
6. system as claimed in claim 5, it is characterised in that described source controller is used for Utilize the communication channel that determines to send described control command, specifically for:
When the bar number of the described communication channel determined is one, directly utilize described determine logical News passage sends described control command;When the bar number of the described communication channel determined is a plurality of, A communication channel is arbitrarily selected to order to send described control in the described communication channel determined Order.
7. system as claimed in claim 6, it is characterised in that described source controller is also used In:
When the bar number of the described communication channel determined is a plurality of, at the described communication channel determined In, select one to lead to the communication that described target controller approach amount controller is minimum from self Road sends described control command.
8. the system as described in claim 5 to 7 any one, it is characterised in that this is System also includes that Central Retransmission Facility, described source controller are additionally operable to:
Described source controller utilize the communication channel that determines before sending described control command, Described control command is sent to the Central Retransmission Facility preset by described source controller, so that described Described control command is forwarded to described target controller by Central Retransmission Facility.
CN201610270522.2A 2016-04-27 2016-04-27 Inter-storage device controller communication method and system Pending CN105975410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610270522.2A CN105975410A (en) 2016-04-27 2016-04-27 Inter-storage device controller communication method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610270522.2A CN105975410A (en) 2016-04-27 2016-04-27 Inter-storage device controller communication method and system

Publications (1)

Publication Number Publication Date
CN105975410A true CN105975410A (en) 2016-09-28

Family

ID=56993733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610270522.2A Pending CN105975410A (en) 2016-04-27 2016-04-27 Inter-storage device controller communication method and system

Country Status (1)

Country Link
CN (1) CN105975410A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471882A (en) * 2007-12-27 2009-07-01 株式会社日立制作所 Storage subsystem
CN102495814A (en) * 2011-12-16 2012-06-13 创新科存储技术有限公司 Communication method between controllers of storage device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101471882A (en) * 2007-12-27 2009-07-01 株式会社日立制作所 Storage subsystem
CN102495814A (en) * 2011-12-16 2012-06-13 创新科存储技术有限公司 Communication method between controllers of storage device

Similar Documents

Publication Publication Date Title
US8780701B2 (en) Communication apparatus and packet distribution method
EP3667982B1 (en) Bearer mapping method and apparatus, base station, and terminal
CN103095463B (en) PCIE switching network system and communication means
CN103973560A (en) Device and method for fault treatment of stack links in IRF (intelligent resilient framework) system
CN111147538B (en) Service function chain path selection method and system
CN103401707A (en) Link aggregation method and access equipment
JP2017539173A (en) Crossboard transfer method and apparatus, program, and recording medium
CN108418752B (en) A kind of creation method and device of aggregation group
EP3065329A3 (en) Aggregated data frame structures
CN102946651A (en) Long term evolution (LTE) base station and base band resource exchanging method
US20140082232A1 (en) Administration device, information processing device, and data transfer method
CN109644159A (en) Data packet forwarding unit in data transmission network
JP7086181B2 (en) How to control duplicate data transmission functions, terminals and computer storage media
CN105491419A (en) Combined TV and data sharing method
CN104219159A (en) Method and device for performing link aggregation based on virtual interface of virtual local area network
CN104348737B (en) The transmission method and interchanger of a kind of multicast message
CN106502841B (en) Data back up method and device
CN102638589B (en) Determining method of corresponding connection relation of channels, as well as related connecting ends and system
US20150263990A1 (en) Network device, control method, and program
CN109286564A (en) A kind of message forwarding method and device
CN106209634B (en) Learning method and device of address mapping relation
CN105975410A (en) Inter-storage device controller communication method and system
CN106372013B (en) Long-distance inner access method, device and system
CN104601346B (en) The method and apparatus for managing the network connection of interchanger
CN104539661B (en) Message queue treating method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160928

RJ01 Rejection of invention patent application after publication