CN103491079B - Message generating device, server and method - Google Patents

Message generating device, server and method Download PDF

Info

Publication number
CN103491079B
CN103491079B CN201310416648.2A CN201310416648A CN103491079B CN 103491079 B CN103491079 B CN 103491079B CN 201310416648 A CN201310416648 A CN 201310416648A CN 103491079 B CN103491079 B CN 103491079B
Authority
CN
China
Prior art keywords
message
feedback
unit
address
generating means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310416648.2A
Other languages
Chinese (zh)
Other versions
CN103491079A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital Technologies 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 Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201310416648.2A priority Critical patent/CN103491079B/en
Publication of CN103491079A publication Critical patent/CN103491079A/en
Application granted granted Critical
Publication of CN103491079B publication Critical patent/CN103491079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention belongs to the field of backups, and provides a message generating device, server and method. The message generating device comprises a receiving unit used for receiving messages, a distributing unit used for carrying out mirror image processing on the messages and sending the messages to at least two second NCs, a message feedback unit used for receiving feedback messages fed back from the second NCs, and an outputting unit used for outputting the feedback messages which are generated after the second NCs carry out protocol processing on the messages. Therefore, through the mirror image technology, the message generating device distributes the messages to a plurality of second NCs used for protocol processing to complete protocol processing, and mutual backup of the NCs used for protocol processing is effectively realized.

Description

A kind of message generating means, server and method
Technical field
The invention belongs to backup field, more particularly, to a kind of message generating means, server and method.
Background technology
To strong (xeon) as a kind of high performance processor, receive the favor of server field.For some to can Require higher service by property, availability, service (reliability, availability, serviceability, ras) The industry such as device, such as telecommunications, finance, service basic framework (server) is once go wrong, even the service of simply a few minutes Interrupt, the loss being brought is also very huge, even unacceptable;Therefore, require more and more higher to strong ras, To build a kind of efficient, energy-conservation, reliable service basic framework.
Meanwhile, for the multiple Node Controllers of inclusion (node controller, nc) and multiple processor The server that (central processing unit, cpu) forms, requires to be only a portion to the ras of processor, also The nc requiring interconnection meets ras;If the nc error for protocol processes in server, again result in huge loss.Fig. 1 and Fig. 2 is respectively the system architecture of two kinds of traditional servers;As can be seen from Figure 1, (therefore cpu is only using single nc interconnection for this server Can be by Front Side Bus to a nc outgoing message being used for protocol processes), if this is used for the nc error of protocol processes, will lead to Whole server is hung dead;Server shown in from Fig. 2 is found out, all external two Front Side Bus of each cpu of this server are respectively Interconnect with two nc, but, cpu does not support the mirror image of Front Side Bus with simultaneously to two nc outgoing messages being used for protocol processes (i.e. in the same time, be only capable of from a Front Side Bus outgoing message, and another then can not outgoing message simultaneously), therefore, no Method double-purpose in protocol processes nc mutually standby.
Therefore, when one of server processor needs to obtain data from certain processor other, if pass through Certain is used for the nc error of protocol processes, then cannot realize the data communication between above-mentioned two processor.
Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of message generating means, server and method, to solve to process Device cannot by Front Side Bus to multiple nc for protocol processes send message realize multiple nc for protocol processes it Between mutually standby problem.
In a first aspect, a kind of message generating means, described message generating means include:
Receiving unit, for receiving message;
Allocation unit, for carrying out mirror image to send at least two Section Point controller nc by described message;
Message feedback unit, for receiving the feedback message of described 2nd nc feedback, described feedback message is by described second Nc carries out to described message generating after protocol processes;
Output unit, for exporting described feedback message.
In conjunction with a first aspect, in the first possible implementation of first aspect, described message generating means are also wrapped Include:
Address list unit, for preserving the operation address of described message, described operation address is that described message is carried out The required address accessing of protocol processes;
Judging unit, if be not stored with the described message that described receiving unit receives for described address list unit Operation address, then carry out mirror image to send at least two the 2nd nc by described allocation unit by described message, and described The operation address of the described message receiving described in preserving in the list cell of location.
In conjunction with the first possible implementation of first aspect or first aspect, may in the second of first aspect Implementation in, described message generating means also include:
Wait unit, for adding the described message that described receiving unit receives in waiting list;
Described judging unit, is additionally operable to:
The operation address of the described message that described receiving unit receives if described address list unit has been stored with, by Described wait unit adds the described message that described receiving unit receives in waiting list.
The second of the first the possible implementation in conjunction with first aspect or first aspect or first aspect can The implementation of energy, in the third possible implementation of first aspect, described allocation unit, it is additionally operable to:
Specify each described 2nd nc to be used for executing the resource of protocol processes, record the corresponding resource number of described resource.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect In, described message generating means also include:
Filter element, if receive described feedback message for described message feedback unit first time, by described output Unit exports described feedback message, and records the described message characteristic value feeding back message, deletes described resource number, if described message Feedback unit receives described feedback message for the last time, then delete the message characteristic value of described feedback message, from described address Delete in execution protocol processes and generate the operation address of the message before described feedback message in list cell.
The second of the first the possible implementation in conjunction with first aspect or first aspect or first aspect can The implementation of energy or the third possible implementation of first aspect or the 4th kind of possible realization of first aspect Mode, in the 5th kind of possible implementation of first aspect, described receiving unit includes:
Quick Path Interconnect qpi interface, for receiving the message from described processor;
One or more nodes interconnect ni interface, and each described ni interface comes a self-corresponding one described nc's Message;
In conjunction with the 5th kind of possible implementation of first aspect or first aspect, in the 6th kind of possibility of first aspect Implementation in, described output unit, specifically for:
The feedback addresses being included according to described feedback message and type of message, export described feedback message from described ni interface Or export described feedback message from described qpi interface.
Second aspect, a kind of server, described server include first aspect or first aspect the first is possible The possible implementation of the second of implementation or first aspect or the third possible implementation of first aspect Or the 4th kind of possible implementation of first aspect or the 5th kind of possible implementation or first of first aspect The message generating means that 6th kind of possible implementation of aspect provides.
The third aspect, a kind of message forming method, described message forming method includes:
Receive message;
Described message is carried out mirror image to send at least two the 2nd nc;
Receive the feedback message of described 2nd nc feedback, described feedback message is assisted to described message by described 2nd nc View generates after processing;
Export described feedback message.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described message forming method also wraps Include:
The operation address of the described message that whether judging is stored with address list receives, if it is not, then by described message Carry out mirror image to send to the 2nd nc described at least two, and preserve the operation address of described message in described address list.
In conjunction with the first possible implementation of the third aspect or the third aspect, may in the second of the third aspect Implementation in, described message forming method also includes:
The operation address of the described message receiving if described address list has been stored with, adds institute in waiting list State message.
The second of the first the possible implementation in conjunction with the third aspect or the third aspect or the third aspect can Can implementation, in the third possible implementation of the third aspect, described described message is carried out mirror image to send To the step of at least two the 2nd nc, also include:
Specify each described 2nd nc to be used for executing the resource of protocol processes, record the corresponding resource number of described resource.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect In, described message forming method also includes:
If receiving described feedback message for the first time, exporting described feedback message, and recording the report of described feedback message Civilian characteristic value, deletes described resource number;
If receiving described feedback message for the last time, delete the message characteristic value of described feedback message, from described Delete in execution protocol processes and generate the operation address of the message before described feedback message in the list of location.
The second of the first the possible implementation in conjunction with the third aspect or the third aspect or the third aspect can The implementation of energy or the third possible implementation of the third aspect or the 4th kind of possible realization of the third aspect Mode, in the 5th kind of possible implementation of the third aspect, the described step receiving message includes:
It is derived from the message of processor from qpi interface;
It is derived from the message of one or more corresponding nc from one or more ni interface;
In conjunction with the 5th kind of possible implementation of the third aspect or the third aspect, in the 6th kind of possibility of the third aspect Implementation in, described output described feedback message step, particularly as follows:
The feedback addresses being included according to described feedback message and type of message, export described feedback message from described ni interface Or export described feedback message from described qpi interface.
In the present invention, message generating means using mirror image technology by message distribute to multiple for the second of protocol processes Nc is to complete protocol processes, mutually standby between have effectively achieved for the nc of protocol processes.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to embodiment or description of the prior art In required use accompanying drawing be briefly described it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the network architecture diagram of the server that background technology provides;
Fig. 2 is the network architecture diagram of another server that background technology provides;
Fig. 3 is a kind of composition structure chart of message generating means that the embodiment of the present invention one provides;
Fig. 4 is the composition structure chart of another kind of message generating means that the embodiment of the present invention two provides;
Fig. 5 is the composition structure chart of the server based on message generating means that the embodiment of the present invention two provides;
Fig. 6 is may be caused based on the message generating means that embodiment one provides that the embodiment of the present invention two provides Plant two the 2nd nc and same message is carried out with Message processing flow chart during protocol processes;
Fig. 7 is a kind of concrete structure diagram of message generating means that inventive embodiments three provide;
Fig. 8 is a kind of flow chart of message forming method that inventive embodiments four provide.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, below in conjunction with drawings and Examples, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only in order to explain the present invention, and It is not used in the restriction present invention.
In order to technical solutions according to the invention are described, to illustrate below by specific embodiment.
It should be noted that the embodiment of the present invention provides a kind of message generating means it is adaptable to server, wherein, service Device includes multiple processors and multiple nc, and wherein, each processor is all communicated with multiple nc by message generating means.Its In, nc includes at least two the 2nd nc being used for protocol processes, and this message generating means is connected to each the 2nd nc and place Between reason device.Meanwhile, described nc includes the one or more nc being connected with described message generating means;Wherein, institute Stating a nc can be for described 2nd nc it is also possible to not be described 2nd nc.
What deserves to be explained is, the message that described message generating means are received, described message generating means can determine whether At least two the 2nd nc being used for protocol processes;And, for the different messages receiving it may be possible to same described 2nd nc enters Row protocol processes.
Thus, when described message generating means receive the message from processor or the message from a nc, institute State message generating means be capable of the mirror image to message and be distributed at least two for protocol processes nc with to this message Carry out protocol processes, the feedback addresses including according to described feedback message and type of message are with to a nc or processor feedback. Thus, in including the server of multiple processors and multiple nc, it is effectively improved between processor and other processor Data communication ras.
Embodiment one:
Fig. 3 show the present embodiment provide message generating means composition structure, for the ease of description, illustrate only with The related part of the embodiment of the present invention, details are as follows:
A kind of message generating means, described message generating means include:
Receiving unit 31, for receiving message;
Allocation unit 32, for carrying out mirror image to send at least two the 2nd nc by described message;
Message feedback unit 33, for receiving the feedback message of described 2nd nc feedback, described feedback message is by described the Two nc carry out to described message generating after protocol processes;
Output unit 34, for exporting described feedback message.
In the present embodiment, receiving unit 31 receives described message;Because the 2nd nc for protocol processes is multiple, then Described message is carried out mirror image to send to multiple 2nd nc simultaneously;Described 2nd nc can generate described anti-after completing protocol processes Feedback message simultaneously feeds back to message generating means in real time;After unit 34 to be output receives the message of feedback, in real time to specified place Reason device or a described nc feedback.
As another embodiment of the present invention, receiving unit 31 receives described message;When the 2nd nc for protocol processes is When one, send described message to this 2nd nc;After unit 34 to be output receives the message of this 2nd nc feedback, in real time To specified processor or the 2nd nc feedback.
As one embodiment of the invention, described message includes: from the described process being connected with described message generating means The message of device, or the message from the one or more nc being connected with described message generating means.
It should be noted that the described message being derived from a nc includes described feedback message.
Fig. 5 shows the composition structure of the server based on message generating means that the present embodiment provides, for the ease of retouching State, illustrate only the part related to the embodiment of the present invention,
Preferably, for above two message, respectively from different interface, therefore described receiving unit 31 wraps Include:
Quick Path Interconnect (quickpath interconnect, qpi) interface, for receiving the report from processor Literary composition;
One or more nodes interconnect (node interconnect, ni) interface, and it is right that each described ni interface is derived from The message of the described nc answering.
It should be noted that described ni interface nc described with is connected, therefore, a described ni interface Receive the message of a self-corresponding nc.
So, because the type of message of the message from processor is deposited with the type of message of the message from a described nc In difference, and/or the data communication format due to the message from processor is logical with the data of the message from a described nc Letter form there may be difference, therefore, message generating means using qpi interface the message from processor is carried out message Connect receipts, coupling is carried out to the message carrying out a self-corresponding described nc using ni interface and receives.
Preferably, described output unit 34, specifically for:
The feedback addresses being included according to described feedback message and type of message, export described feedback message from described ni interface Or export described feedback message from described qpi interface.
It should be noted that described feedback addresses are: processor is used for receiving the address or described the of described feedback message One nc is used for receiving the address of described feedback message;Described feedback addresses to described feedback message to be obtained, by described qpi Interface sends the described message that feeds back to described processor, or it is extremely corresponding described to send described feedback message by certain ni interface First nc.
It should be noted that the type of message of described qpi interface/transmission message and described ni interface/transmission The type of message of message is different.As such, it is desirable to feed back, according to described, feedback addresses and the type of message that message includes, determination is logical Cross described qpi interface and send described feedback message to processor, or determine by which described ni interface to corresponding described the One nc sends described feedback message.
Embodiment two:
In the present embodiment, the message generating means being provided based on embodiment one, that receiving unit 31 is received The described message of part, the output unit 34 that message generating means comprise only exports a described feedback message.
Under normal circumstances, the described feedback that same described message generates after multiple described 2nd nc carry out protocol processes Message should be the same, and the output unit 34 of therefore this enforcement can only export the corresponding described feedback report of a described message Literary composition.
It should be noted that when described 2nd nc carries out protocol processes to multiple described messages, using polling mode Determine the processing sequence between multiple described messages.When the many parts of messages that receiving unit 31 receives are using different operations When the data of address is to complete protocol processes, many parts of described messages only enter to corresponding operation address in each described 2nd nc Row read/write operation, thus receiving after described feedback message after message feedback unit 33, the described feedback of output unit 34 output Message can be the same.
But, when existing in the many parts of messages that receiving unit 31 receives, read/write operation is carried out to same operation address During at least two parts of messages, the processing sequence due to same operation address is carried out with the message of read/write operation is different, may produce Abnormal (same described message generates different described feedback messages after protocol processes);With the Message processing stream shown in Fig. 6 As a example journey, details are as follows:
Wherein, cpu0, cpu1 are different processors;Ha is memory;Nc0 is a described nc, nc1 and nc2 is not Same described 2nd nc.The ni interface of message generating means and qpi interface external nc0 and cpu0 respectively, rdinvown, snpinvown、wbmtoi、wbidata、snpinvown、cmp、rspi、rspfwdi_datam、datac_m、rspfwdi、 Cmp, wbidata, wbcmp, datac_e_cmp are message;Cpu1 in order to from certain address reading data of cpu0 (cpu1 from The message of the operation of certain address reading data of cpu0 flows to as shown in the dotted line in Fig. 6), send to memory Rdinvown, then memory to nc0 send snpinvown, then the receiving unit 31 of message generating means connect from ni interface Receive the snpinvown that nc0 sends.In order to write data to ha, (cpu0 writes the message flow direction of the operation of data as in Fig. 6 to cpu0 to ha Shown in solid), to message generating means send wbidata, wbmtoi;The receiving unit 31 of message generating means connects from qpi Mouth receives wbidata, wbmtoi that cpu0 sends;
If allocation unit 32 snpinvown, wbidata and wbmtoi is respectively allocated to after nc1 and nc2, no simultaneously By being in nc1 or nc2, the wbidata from the cpu0 and snpinvown from nc0 be all need using same operatively Location completes protocol processes;Meanwhile, nc1 or nc2 is the process determining wbidata and snpinvown using polling mode Sequentially.Post-process the wbidata being derived from cpu0 because nc1 is first processed from the snpinvown of nc0, then nc1 generates dress to message Put feedback snpinvown, output unit 34 passes through qpi interface according to the type of message of snpinvown and feedback addresses (cpu0) To cpu0 output snpinvown from this certain address reading data, to have processed after wbidata after nc1, directly connect by qpi Mouth terminates, to cpu0 output cmp(, the operation that cpu0 writes data to ha, but is not implemented this operation) with;Then, cpu0 passes through Qpi interface sends rspi to message generating means, and nc1 is completed the rspfwdi_ generating after protocol processes by message generating means Datam feeds back to nc0 by ni interface, and then, nc0 terminates cpu1 certain address to cpu0 to cpu1 feedback datac_m( Read the operation of data, and achieve this operation).Because the wbidata post processing that nc2 is first processed from cpu0 is derived from nc0's Snpinvown, then nc2 to message generating means feed back wbidata;Output unit 34 is according to the type of message of wbidata and anti- Feedback address (nc0), sends wbidata by ni interface to nc0, and then, nc0 sends wbmtoi and wbidata to realize to ha Write data to the specified address in ha, then ha feeds back cmp to nc0, then the ni interface of message generating means is sent out to nc0 The wbcmp sending, nc2 is completed the cmp feedback cpu0 generating after protocol processes by message generating means, and then message generating means will The rspi that nc2 completes to generate after protocol processes are derived from the snpinvown of nc0 feeds back nc0 by ni interface, and then nc0 is anti-to ha Present rspi, then ha feeds back, to cpu1, the operation that datac_e_cmp(terminates certain address reading data to cpu0 for the cpu1, But it is not implemented this operation).
Post-process the wbidata being derived from cpu0 because nc1 is first processed from the snpinvown of nc0, complete to snpinvown The message generating after becoming protocol processes is snpinvown, and the message that wbidata is completed with generate after protocol processes is cmp;Due to Nc2 first processes and post-processes, from the wbidata of cpu0, the snpinvown being derived from nc0, and snpinvown is completed after protocol processes The message generating is rspi, and the message that wbidata is completed with generate after protocol processes is wbidata.Thus lead to cpu1 to The operation failure of certain address reading data of cpu0 or cpu0 write the operation failure of data to ha.
Thus, when existing in the many parts of messages that receiving unit 31 receives, read/write operation is carried out to same operation address During at least two parts of messages, output unit 34 may export different described feedback messages, leads to server None- identified, also no Method realizes multiple in same server for realizing between the 2nd nc of protocol processes mutually backing up.
For this reason, in order to ensure that output unit 34 only exports a described feedback message, and in order to avoid need to access with One operation address is assigned to the 2nd nc with the simultaneously allocated unit of multiple messages 32 completing protocol processes, and Fig. 4 shows this reality The composition structure of another message generating means of example offer is provided, for the ease of description, illustrate only related to the embodiment of the present invention Part.
As one embodiment of the invention, described message generating means also include:
Address list unit 41, for preserving the operation address of described message, described operation address is that described message is entered The required address accessing of row protocol processes;
Judging unit 42, if be not stored with described in described receiving unit 31 receives for described address list unit 41 The operation address of message, then carry out mirror image to send at least two the 2nd nc by described allocation unit 32 by described message, and The operation address of the described message receiving described in preserving in described address list unit 41.
Preferably, described operation address, particularly as follows: described in described message, carry out needing during protocol processes accessing Memory address.
It should be noted that distributing to the 2nd nc described at least two to carry out the institute of protocol processes for allocation unit 32 There is described message, before each described 2nd nc all feeds back described feedback message, described address list unit 41 is deposited always Contain the corresponding operation address of described message;That is, after all of described 2nd nc has fed back described feedback message, just meeting Address list unit 41 is deleted described feedback message is corresponding do not carry out protocol processes before described message operation address.
So, the described message just having received for receiving unit 31, extracts the behaviour of described message from described message Make address;If judging unit 42 travels through after searching in address list unit 41, the described message not finding and receiving Operation address identical operation address, then add the operation address of the described message receiving in address list unit 41;With This executes allocation unit 32 to allow multiple described 2nd nc carry out protocol processes to described message simultaneously simultaneously.
Preferably, meanwhile, described message generating means also include:
Described wait unit 43, for adding the described message that described receiving unit 31 receives in waiting list;
Described judging unit 42, is additionally operable to:
The operation address of the described message that described receiving unit 31 receives if described address list unit 41 has been stored with, Then the described message that described receiving unit receives is added in waiting list by described wait unit 43.
It should be noted that treating the operation address of the described message in described waiting list in described address list unit 41 During middle deletion, then execution allocation unit 32 is so that described 2nd nc carries out protocol processes to described message.
So, in described address list unit 41, there is phase for the corresponding operation address of described message just having received With the situation of record, judging unit 42 jumps to wait unit 43 and executes, and the described message receiving is added into wait simultaneously In queue.
Preferably, when described message is distributed to multiple 2nd nc and carried out protocol processes by allocation unit 32, in order to protect The described feedback message demonstrate,proving each described 2nd nc feedback is all the same, and described allocation unit 32 is additionally operable to:
Specify each described 2nd nc to be used for executing the resource of protocol processes, record the corresponding resource number of described resource.
It should be noted that the described resource for executing protocol processes includes the operation address of needs access, storage money Source, cache resources etc. are used for executing required software and hardware resources in agreement process.The described money of record in allocation unit 32 Source number, executes required resource during protocol processes for identifying described 2nd nc.
So, after described allocation unit 32 complete described resource specify after, each described 2nd nc is used for executing agreement The resource (being especially carried out needing the operation address accessing in agreement process) processing is the same, thus generate is described Feedback message is also the same.
Preferably, because the described feedback message that the 2nd nc each described produces is the same, described message generates dress Put and also include:
Filter element 44, if receive described feedback message for described message feedback unit 33 first time, by described Output unit 34 exports described feedback message, and records the described message characteristic value feeding back message, deletes described resource number.
It should be noted that the described feedback report that same described message generates after described 2nd nc carries out protocol processes Stationery has same message characteristic value;And, described message characteristic value is documented in described feedback message.
So, for same described message although above-mentioned all of described 2nd nc feedback described feedback message extremely The arrival time of message feedback unit 33 is different, but, output unit 34 only sends described message feedback unit 33 at first The described feedback message that secondary (for the first time) receives;Simultaneously, filter element 44 records the described feedback once reaching at first The message characteristic value of message, in order to filter out described message that receive below, same through described in protocol processes generation Feedback message.
Preferably, described filter element 44, is additionally operable to:
If described message feedback unit 33 receives described feedback message for the last time, delete the report of described feedback message Civilian characteristic value, deletes the message before executing protocol processes and generating described feedback message from described address list unit 41 Operation address.
So, for all described 2nd nc that same described message is carried out with protocol processes, message feedback unit 33 is all Have received the feedback message of each described 2nd nc feedback, thus deleting the message characteristic value of described feedback message;Meanwhile, The operation address of the message before the corresponding protocol processes in execution of described feedback message is deleted in described address list unit 41.
Meanwhile, need same operation address to complete the report of protocol conversion with described message when existing in waiting list Wen Shi, allocation unit 32 carries out sending multiple second after mirror image by this waiting list, using the message of same operation address Nc is to execute protocol processes;Thus, efficiently avoid the 2nd nc and agreement is carried out to the multiple messages using same address simultaneously Process it is ensured that the feedback message that same message generates after carrying out protocol processes is the same.
As one embodiment of the invention, through Preset Time, delete the message characteristic value of described feedback message, from described Delete in execution protocol processes and generate the operation address of the message before described feedback message in location list cell 41.
Do not feed back described in time to message feedback unit 33 in order to avoid certain is used for the 2nd nc error of protocol processes Feedback message, presets described Preset Time.The another object presetting described Preset Time is: through described default Then it represents that the protocol processes of this message terminate after time, in order to avoid impact waiting list in using with described message Need the message of same operation address, allocation unit 32 is in time by message in this waiting list, using same operation address Multiple 2nd nc are sent to execute protocol processes after carrying out mirror image.
Embodiment three:
The one kind of the message generating means that the message generating means that the present embodiment provides provide as embodiment two is specifically real Apply example, as shown in fig. 7, for the ease of description, illustrate only the part related to the embodiment of the present invention.Wherein it is desired to explanation It is, in order to illustrate the Message processing flow process between message generating means and multiple 2nd nc, only taking two the 2nd nc as a example.
Wherein, the message generating means that the present embodiment provides include:
Qpi phy rx is: is derived from the physical layer receiving terminal of the message of processor by qpi interface;
Qpi link rx is: is derived from the data link layer receiving terminal of the message of processor by qpi interface;
Qpi phy tx is: sends feedback message to the physical layer transmitting terminal of processor by qpi interface;
Qpi link tx is: sends feedback message to the data link layer transmitting terminal of processor by qpi interface;
Ni phy rx is: is derived from the physical layer receiving terminal of the message of a nc by ni interface;
Ni link rx is: is derived from the data link layer receiving terminal of the message of a nc by ni interface;
Ni phy tx is: sends feedback message to the physical layer transmitting terminal of a nc by ni interface;
Ni link tx is: sends feedback message to the data link layer transmitting terminal of a nc by ni interface;
H phy rx is: receives the physical layer receiving terminal of the feedback message of the 2nd nc feedback;
H link rx is: receives the data link layer receiving terminal of the feedback message of the 2nd nc feedback;
H phy tx is: sends the physical layer transmitting terminal of message to the 2nd nc;
H link tx is: sends the data link layer transmitting terminal of message to the 2nd nc;
Address list management module (addr table management, atm), is assisted for preserving the 2nd nc The message that view is processed needs the operation address accessing, and the address preserving the message in waiting list.
Id management module (id management, idm), for preserving resource number, described resource number is used with described 2nd nc Resource in execution protocol processes has mapping relations.
Packet filtering module (packet filter, pf), for being screened to many parts of feedback messages and being sorted, and Same feedback message only sends a to qpi link tx or ni link tx;
Message routing (h rout), for carrying out mirror image to send to multiple 2nd nc to message.
It should be noted that qpi phy rx, qpi that the receiving unit 31 that embodiment two provides is provided with the present embodiment Link rx, qpi interface, the combination of ni phy rx, ni link rx and ni interface have identical function;Embodiment two provides Transmitting element and the present embodiment provide qpi phy tx, qpi linktx, qpi interface, ni phy tx, ni link tx And the combination of ni interface has identical function;Idm, h that the allocation unit 32 that embodiment two provides is provided with the present embodiment The combination of rout, h phy tx and h link tx has identical function;Message feedback unit 33 and this that embodiment two provides The h phy rx that embodiment provides and the combination of h link rx have identical function;The filter element 44 that embodiment two provides with The pf that the present embodiment provides has identical function;The 2nd nc that the 2nd nc that embodiment two provides is provided with the present embodiment has phase Congenerous;Address list unit 41, judging unit 42 and wait unit 43 and the present embodiment that embodiment two provides provides Atm has identical function.
In the present embodiment, to the message from processor, this message is through qpi phy rx and qpi for qpi interface Link rx reaches h rout;Ni interface is derived from the message of a described nc, and this message is through ni phy rx and ni link Rx reaches h rout.
If having recorded the operation address message that h rout receives being carried out needed for protocol processes in atm, atm is by institute The address stating message is added in waiting list.
If not recording the operation address message that h rout receives being carried out needed for protocol processes in atm, atm records The operation address of described message;Then, idm is that each the 2nd nc specifies resource, and records corresponding resource number;Then, idm will Resource number sends to multiple 2nd nc(wherein together with sending the message generating resource number and mirror image to h rout, h rout, report After literary composition and resource number are by h rout distribution, respectively through sending after h link tx, h phy tx to corresponding 2nd nc).
The feedback message of each the 2nd nc feedback sends to pf through corresponding h phy rx and h link rx.If pf is Receive described feedback message for the first time, then record the message characteristic value of described feedback message, communicate with pf holding meanwhile Idm deletes protocol processes and generates the described feedback corresponding resource number of message;Meanwhile, the feedback addresses according to described feedback message And type of message, determination is to send described feedback message through qpi phy tx, qpi linktx, qpi interface to processor, also It is to send described feedback message through ni phy tx, ni link tx, ni interface to a described nc.In addition pf continues to , the 2nd nc feedback feedback message, to the last once receive described feedback message (due to h rout distribute described report It has been determined that the number of the 2nd nc when civilian, the 2nd nc can generate a described feedback message, therefore, according to the 2nd nc Number may determine whether as last received a feedback message), delete the message characteristic value of described feedback message, with pf The operation address of the message before keeping the atm of communication to delete execution protocol processes and generate described feedback message.Because pf is only right The described feedback message receiving for the first time passes through qpi interface or ni interface feedback, to the identical feedback report receiving below Literary composition is filtered and is fed back not by qpi interface or ni interface.It is achieved thereby that mutually standby between multiple 2nd nc it is ensured that A feedback message is only fed back for a message do not deposit with the communication between the final processor ensureing in same server In unnecessary message.
Example IV:
The message forming method that the present embodiment provides is mutually applicable with the message generating means that embodiment one provides;Fig. 8 shows Gone out the message forming method that the present embodiment provides realizes flow process, for the ease of description, illustrate only and the embodiment of the present invention Related part, it realizes flow process, and details are as follows:
Step s11, reception message;
Step s12, described message is carried out mirror image to send at least two the 2nd nc;
Step s13, the feedback message of the described 2nd nc feedback of reception, described feedback message is by described 2nd nc to described report Literary composition generates after carrying out protocol processes;
Step s14, the described feedback message of output.
So, step s12 carries out to described message being sent to multiple 2nd nc after mirror image and carries out protocol processes simultaneously, Thus realize multiple for mutually standby between the 2nd nc of protocol processes.
After message generating means receive described message, execution step s11, step s12, step s13, step s14 successively, report Civilian generating means will export described feedback message.
As one embodiment of the invention, described message includes: from the report of the processor being connected with message generating means Literary composition, or the message from the one or more nc being connected with described message generating means.
It should be noted that the described message from a described nc includes described feedback message.Specifically, server bag Include the message generating means of multiple nc, multiple processor and corresponding number, logical between wherein one processor and another processor Letter may need multiple nc therethrough to carry out message transmissions, accordingly, it is possible to there is situations below: a processor is to a message The message that generating means send, this message generating means distributes to the described feedback report that multiple 2nd nc carry out protocol processes generation Literary composition, before entering another processor, needs to send to another with described described feedback message from ni interface as described message Another message generating means that one processor connects, this another message generating means carries out agreement again to described feedback message Send after process to described another processor.
Meanwhile, described step s11 includes:
It is derived from the message of processor from qpi interface;
It is derived from the message of one or more corresponding nc from one or more ni interface.
It should be noted that described ni interface nc described with is connected, therefore, a described ni interface connects Receive the message of a self-corresponding nc.
Preferably, described step s14, particularly as follows:
The feedback addresses being included according to described feedback message and type of message, export described feedback message from described ni interface Or export described feedback message from described qpi interface.
Embodiment five:
The message forming method being provided based on example IV, the present embodiment is further optimized: receives for step s11 The described message of portion arriving, only exports a corresponding described feedback message during execution step s14.
It should be noted that the message generating means phase that the message forming method that the present embodiment provides is provided with embodiment two Mutually it is suitable for;
As one embodiment of the invention, in order to ensure only to export a described feedback message, and in order to avoid needing to visit The multiple messages asking same operation address to complete protocol processes are simultaneously accommodated within the 2nd nc, and described message forming method is also Including:
The operation address of the described message that whether judging is stored with address list receives, if it is not, then by described message Carrying out mirror image to send to the 2nd nc(described at least two is execution step s12), and preserve described in described address list The operation address of message.
Preferably, described message forming method also includes:
The operation address of the described message receiving if described address list has been stored with, adds institute in waiting list State message.
As one embodiment of the invention, step s12 by described message distribute to multiple 2nd nc carry out protocol processes it Before, the described feedback message in order to ensure each described 2nd nc feedback is all the same, and described step s12 also includes:
Specify each described 2nd nc to be used for executing the resource of protocol processes, record the corresponding resource number of described resource.
As one embodiment of the invention, because the described feedback message that the 2nd nc each described produces is the same, and this Embodiment wishes to be only performed once step s14 to export a described feedback message, and therefore, described message forming method also wraps Include:
If receiving described feedback message for the first time, exporting described feedback message (i.e. execution step s14), and recording institute State the message characteristic value of feedback message, delete described resource number.
Preferably, described message forming method also includes:
If receiving described feedback message for the last time, delete the message characteristic value of described feedback message, from described Delete in execution protocol processes and generate the operation address of the message before described feedback message in the list of location.
In invention the present embodiment, server includes multiple processors and multiple nc, and wherein, each processor is all by one Individual message generating means include at least two the 2nd nc with nc described in multiple nc() communicate;Therefore, the processor in server When entering row data communication with another processor, the message generating means that are connected with processor, connect from qpi interface by receiving unit Receive the message from processor;Described message is carried out mirror image to send at least two the 2nd nc by allocation unit;Message feeds back Unit receives the feedback message of described 2nd nc feedback;Output unit exports described feedback message;Meanwhile, for input A message that unit receives, by the assist process of address list unit, judging unit, wait unit and filter element, Ensure that each is used for the feedback message of the 2nd nc output of protocol processes equally, then output unit only exports a feedback report Literary composition;Feedback addresses according to feedback message and type of message, export feedback message from qpi interface to processor, or from ni interface To a nc output feedback message.Thus the message realizing a processor sends message through message generating means to a nc (feedback message), this message forwarding between one or more nc reaches a nc adjacent with another processor, The message (feedback message) that this message forwarding is generated by this adjacent nc through message generating means is to this another process Device sends to complete a data communication;If this another processor needs to feed back to this processor, then can pass through above-mentioned Data communication mode carries out reverse link communication.
In embodiments of the present invention, message generating means adopt mirror image technology that message is distributed to multiple 2nd nc to complete Protocol processes, mutually standby between have effectively achieved for the 2nd nc of protocol processes.
It will be appreciated by those skilled in the art that: the message generating means of embodiment one and embodiment two offer, can be fortune Unit that row combines in the software unit of server, hardware cell or software and hardware is it is also possible to integrated as independent suspension member To or run in server.
It will be appreciated by those skilled in the art that the unit including for above-described embodiment one and embodiment two simply according to Function logic is divided, but is not limited to above-mentioned division, as long as being capable of corresponding function;In addition, it is each The specific name of functional unit also only to facilitate mutual distinguish, is not limited to protection scope of the present invention.
The embodiment of the present invention also provides a kind of server, and described server includes embodiment one, embodiment two or embodiment The message generating means of three offers.
Those of ordinary skill in the art are further appreciated that all or part of step realizing in above-described embodiment method is can Completed with the hardware instructing correlation by program, described program can be in being stored in a read/write memory medium, institute The storage medium stated, including rom/ram, disk, CD etc..
Above content is to further describe it is impossible to assert with reference to specific preferred embodiment is made for the present invention Being embodied as of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, Without departing from making some equivalent substitutes or obvious modification on the premise of present inventive concept, and performance or purposes are identical, all should It is considered as belonging to the scope of patent protection that the present invention is determined by the claims submitted to.

Claims (11)

1. a kind of message generating means are it is characterised in that described message generating means include:
Receiving unit, for receiving message;
Allocation unit, for carrying out mirror image to send at least two Section Point controller nc by described message;
Message feedback unit, for receiving the feedback message of described 2nd nc feedback, described feedback message is by the described 2nd nc pair Described message generates after carrying out protocol processes;
Output unit, for exporting described feedback message;
Described receiving unit includes:
Quick Path Interconnect qpi interface, for receiving the message from processor;
One or more nodes interconnect ni interface, and each described ni interface carrys out the message of a self-corresponding nc;
Described output unit, specifically for:
According to the described feedback feedback addresses that include of message and type of message, from described ni interface output described feedback message or from Described qpi interface exports described feedback message.
2. message generating means as claimed in claim 1 are it is characterised in that described message generating means also include:
Address list unit, for preserving the operation address of described message, described operation address is to carry out agreement to described message Process the required address accessing;
Judging unit, if the operation of the described message that described receiving unit receives that is not stored with for described address list unit Address, then carry out mirror image to send at least two the 2nd nc by described allocation unit by described message, and in described address column The operation address of the described message receiving described in preserving in table unit.
3. message generating means as claimed in claim 2 are it is characterised in that described message generating means also include:
Wait unit, for adding the described message that described receiving unit receives in waiting list;
Described judging unit, is additionally operable to:
The operation address of the described message that described receiving unit receives if described address list unit has been stored with, by described Unit is waited to add the described message that described receiving unit receives in waiting list.
4. message generating means as claimed in claim 3, it is characterised in that described allocation unit, are additionally operable to:
Specify each described 2nd nc to be used for executing the resource of protocol processes, record the corresponding resource number of described resource.
5. message generating means as claimed in claim 4 are it is characterised in that described message generating means also include:
Filter element, if receive described feedback message for described message feedback unit first time, by described output unit Export described feedback message, and record the described message characteristic value feeding back message, delete described resource number, if described message feedback Unit receives described feedback message for the last time, then delete the message characteristic value of described feedback message, from described address list Delete in execution protocol processes and generate the operation address of the message before described feedback message in unit.
6. a kind of server is it is characterised in that the message that described server is included described in any one of claim 1 to 5 generates dress Put.
7. a kind of message forming method is it is characterised in that described message forming method includes:
Receive message;
Described message is carried out mirror image to send at least two Section Point controller nc;
Receive the feedback message of described 2nd nc feedback, described feedback message carries out agreement by described 2nd nc to described message Generate after reason;
Export described feedback message;
The described step receiving message includes:
It is derived from the message of processor from Quick Path Interconnect qpi interface;
Interconnect the message that ni interface is derived from one or more corresponding nc from one or more nodes;
The step of described output described feedback message, particularly as follows:
According to the described feedback feedback addresses that include of message and type of message, from described ni interface output described feedback message or from Described qpi interface exports described feedback message.
8. message forming method as claimed in claim 7 is it is characterised in that described message forming method also includes:
The operation address of the described message that whether judging is stored with address list receives, if it is not, then carry out described message Mirror image is to send to the 2nd nc described at least two, and preserves the operation address of described message in described address list.
9. message forming method as claimed in claim 8 is it is characterised in that described message forming method also includes:
The operation address of the described message receiving if described address list has been stored with, adds described report in waiting list Literary composition.
10. message forming method as claimed in claim 9 is it is characterised in that described carry out mirror image to send by described message To the step of at least two the 2nd nc, also include:
Specify each described 2nd nc to be used for executing the resource of protocol processes, record the corresponding resource number of described resource.
11. message forming methods as claimed in claim 10 are it is characterised in that described message forming method also includes:
If receiving described feedback message for the first time, exporting described feedback message, and it is special to record the message of described feedback message Value indicative, deletes described resource number;
If receiving described feedback message for the last time, delete the message characteristic value of described feedback message, from described address column Delete in execution protocol processes and generate the operation address of the message before described feedback message in table.
CN201310416648.2A 2013-09-12 2013-09-12 Message generating device, server and method Active CN103491079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310416648.2A CN103491079B (en) 2013-09-12 2013-09-12 Message generating device, server and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310416648.2A CN103491079B (en) 2013-09-12 2013-09-12 Message generating device, server and method

Publications (2)

Publication Number Publication Date
CN103491079A CN103491079A (en) 2014-01-01
CN103491079B true CN103491079B (en) 2017-01-18

Family

ID=49831038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310416648.2A Active CN103491079B (en) 2013-09-12 2013-09-12 Message generating device, server and method

Country Status (1)

Country Link
CN (1) CN103491079B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615564A (en) * 2015-02-05 2015-05-13 浪潮电子信息产业股份有限公司 Data transmission method based on QPI bus and computer system
CN109309615B (en) * 2017-07-27 2020-07-07 华为技术有限公司 Method and device for transmitting data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216815A (en) * 2008-01-07 2008-07-09 浪潮电子信息产业股份有限公司 Double-wing extendable multi-processor tight coupling sharing memory architecture
CN102301363A (en) * 2011-06-30 2011-12-28 华为技术有限公司 Data processsing node, system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5550089B2 (en) * 2009-03-30 2014-07-16 エヌイーシーコンピュータテクノ株式会社 Multiprocessor system, node controller, failure recovery method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101216815A (en) * 2008-01-07 2008-07-09 浪潮电子信息产业股份有限公司 Double-wing extendable multi-processor tight coupling sharing memory architecture
CN102301363A (en) * 2011-06-30 2011-12-28 华为技术有限公司 Data processsing node, system and method

Also Published As

Publication number Publication date
CN103491079A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN101873339B (en) Flexibly integrating endpoint logic into varied platforms
CN1316366C (en) Flow scheduling and structure for network application apparatus
CN107078969A (en) Realize computer equipment, the system and method for load balancing
JP4763405B2 (en) Network-on-chip semi-automatic communication architecture for data flow applications
CN101454763B (en) Gateway for data transfer between serial buses
CN102291455B (en) Distributed cluster processing system and message processing method thereof
CN108733604A (en) A kind of 485 bus intelligent expansion method and devices based on modbus communications protocol
CN106484322A (en) A kind of method of carry file system, device and equipment
CN105989539A (en) Financial trading condition acquisition system and method
CN108600045A (en) A kind of service link monitoring method and device
CN106686129A (en) Load balancing method and load balancing system
CN101257457A (en) Method for network processor to copy packet and network processor
US9275415B2 (en) System for latency reduction in high frequency trading networks
WO2022170790A1 (en) Data communication method and apparatus
CN113259268A (en) Network port and serial port data forwarding gateway and method supporting redundancy architecture
CN115913937B (en) Container multi-network card network configuration method, device, equipment and storage medium
CN103986585A (en) Message preprocessing method and device
CN108259595A (en) The method and system of asynchronous call between a kind of service
CN103491079B (en) Message generating device, server and method
CN101808037B (en) Method and device for traffic management in switch network
CN106713010B (en) A kind of communication means and system of avionics network system
CN106789287A (en) Front end load balanced device, back-end server and register method
WO2021083375A1 (en) Method and apparatus for detecting link states
CN110290163A (en) A kind of data processing method and device
CN114205172B (en) Table entry issuing method and message forwarding method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200420

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310000, Binjiang District, Zhejiang, Hangzhou

Patentee before: Huawei Technologies Co.,Ltd.