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

Message generating device, server and method Download PDF

Info

Publication number
CN103491079A
CN103491079A CN201310416648.2A CN201310416648A CN103491079A CN 103491079 A CN103491079 A CN 103491079A CN 201310416648 A CN201310416648 A CN 201310416648A CN 103491079 A CN103491079 A CN 103491079A
Authority
CN
China
Prior art keywords
message
feedback
generating apparatus
address
unit
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.)
Granted
Application number
CN201310416648.2A
Other languages
Chinese (zh)
Other versions
CN103491079B (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

Images

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 apparatus, server and method
Technical field
The invention belongs to the backup field, relate in particular to a kind of message generating apparatus, server and method.
Background technology
As a kind of high performance processor, be subject to the favor of server field to strong (Xeon).For some to reliability, availability, service (Reliability, Availability, Serviceability, the server of RAS) having relatively high expectations, industries such as telecommunications, finance, service basic framework (server) once go wrong, even the service disruption of a few minutes just, the loss brought is also very huge, or even unacceptable; Therefore, more and more higher to the requirement of the RAS to strong, to build a kind of efficient, energy-conservation, reliable service basic framework.
Meanwhile, for the server that comprises that a plurality of Node Controllers (Node Controller, NC) and a plurality of processor (Central Processing Unit, CPU) form, RAS requirement to processor is only wherein a part of, also requires interconnected NC to meet RAS; If the NC for protocol processes in server makes mistakes, cause equally huge loss.Fig. 1 and Fig. 2 are respectively the system architecture of two kinds of traditional servers; As can be seen from Figure 1, this server adopts single NC interconnected (so CPU only can by Front Side Bus to an outgoing message of the NC for protocol processes), if should make mistakes for NC of protocol processes, will cause whole server to be hung dead; From the server shown in Fig. 2, find out, each CPU of this server all external two Front Side Buss is interconnected with two NC respectively, but, the mirror image that CPU does not support Front Side Bus with at one time to two outgoing messages of the NC for protocol processes (simultaneously, only can be from a Front Side Bus outgoing message, another is outgoing message simultaneously), therefore, can't double-purpose mutually standby in the NC of protocol processes.
Therefore, when a processor in server need to obtain data from other certain processor, if certain of process is made mistakes for the NC of protocol processes, can't realize the data communication between above-mentioned two processors.
Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of message generating apparatus, server and method, can't be a plurality of for mutual standby problem between the NC of protocol processes to realize to a plurality of transmission of the NC for protocol processes messages by Front Side Bus to solve processor.
First aspect, a kind of message generating apparatus, described message generating apparatus comprises:
Receiving element, for receiving message;
Allocation units, for carrying out described message mirror image to be sent at least two Section Point controller NC;
The message feedback unit, for receiving the feedback message of described the 2nd NC feedback, described feedback message is carried out generating after protocol processes to described message by described the 2nd NC;
Output unit, for exporting described feedback message.
In conjunction with first aspect, in the first of first aspect, in possible implementation, described message generating apparatus also comprises:
The address list unit, for preserving the operation address of described message, the address of described operation address for described message is carried out to the required access of protocol processes;
Judging unit, if do not store the operation address of the described message that described receiving element receives for described address list unit, by described allocation units, described message is carried out to mirror image to be sent at least two the 2nd NC, and preserve the operation address of the described described message received in described address list unit.
The possible implementation in conjunction with the first of first aspect or first aspect, at the second of first aspect, in possible implementation, described message generating apparatus also comprises:
Wait for unit, at waiting list, adding the described message that described receiving element receives;
Described judging unit, also for:
If described address list unit has stored the operation address of the described message that described receiving element receives, by described wait unit, add the described message that described receiving element receives in waiting list.
Possible implementation or the possible implementation of the second of first aspect in conjunction with the first of first aspect or first aspect, in the third possible implementation of first aspect, described allocation units, also for:
Specify the resource of each described the 2nd NC for carrying on an agreement and processing, record resource number corresponding to described resource.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, described message generating apparatus also comprises:
Filter element, if receive for the first time described feedback message for described message feedback unit, by described output unit, export described feedback message, and record the message characteristic value of described feedback message, delete described resource number, if described message feedback unit receives described feedback message for the last time, delete the message characteristic value of described feedback message, from described address list unit, delete at the operation address of the message before processing and generate described feedback message that carries on an agreement.
Possible implementation or possible implementation or the third possible implementation of first aspect or the 4th kind of possible implementation of first aspect of the second of first aspect in conjunction with the first of first aspect or first aspect, in the 5th kind of possible implementation of first aspect, described receiving element comprises:
The interconnected QPI interface of express passway, for receiving the message from described processor;
The interconnected NI interface of one or more nodes, each described NI interface receives the message of a self-corresponding described NC;
In conjunction with the 5th kind of possible implementation of first aspect or first aspect, in the 6th kind of possible implementation of first aspect, described output unit, specifically for:
The feedback addresses and the type of message that according to described feedback message, comprise, export described feedback message or export described feedback message from described QPI interface from described NI interface.
Second aspect, a kind of server, described server comprises the 6th kind of message generating apparatus that possible implementation provides of the 5th kind of possible implementation or the first aspect of the 4th kind of possible implementation of the third possible implementation of implementation that the second of implementation that the first of first aspect or first aspect is possible or first aspect is possible or first aspect or first aspect or first aspect.
The third aspect, a kind of message forming method, described message forming method comprises:
Receive message;
Described message is carried out to mirror image to be sent at least two the 2nd NC;
Receive the feedback message of described the 2nd NC feedback, described feedback message is carried out generating after protocol processes to described message by described the 2nd NC;
Export described feedback message.
In conjunction with the third aspect, in the first of the third aspect, in possible implementation, described message forming method also comprises:
Judge the operation address that whether stores the described message received in address list, if not, described message is carried out to mirror image to be sent at least two described the 2nd NC, and preserve the operation address of described message in described address list.
The possible implementation in conjunction with the first of the third aspect or the third aspect, at the second of the third aspect, in possible implementation, described message forming method also comprises:
If described address list has stored the operation address of the described message received, in waiting list, add described message.
Possible implementation or the possible implementation of the second of the third aspect in conjunction with the first of the third aspect or the third aspect, in the third possible implementation of the third aspect, described described message is carried out to mirror image to be sent to the step of at least two the 2nd NC, also comprises:
Specify the resource of each described the 2nd NC for carrying on an agreement and processing, record resource number corresponding to described resource.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation of the third aspect, described message forming method also comprises:
If receive for the first time described feedback message, export described feedback message, and record the message characteristic value of described feedback message, delete described resource number;
If receive for the last time described feedback message, delete the message characteristic value of described feedback message, from described address list, delete at the operation address of the message before processing and generate described feedback message that carries on an agreement.
Possible implementation or possible implementation or the third possible implementation of the third aspect or the 4th kind of possible implementation of the third aspect of the second of the third aspect in conjunction with the first of the third aspect or the third aspect, in the 5th kind of possible implementation of the third aspect, the step of described reception message comprises:
Receive the message of self processor from the QPI interface;
Receive the message from a NC of one or more correspondences from one or more NI interfaces;
In conjunction with the 5th kind of possible implementation of the third aspect or the third aspect, in the 6th kind of possible implementation of the third aspect, the step of the described feedback message of described output is specially:
The feedback addresses and the type of message that according to described feedback message, comprise, export described feedback message or export described feedback message from described QPI interface from described NI interface.
In the present invention, the message generating apparatus adopts mirror image technology that message is distributed to a plurality of the 2nd NC for protocol processes to complete protocol processes, has effectively realized mutually standby between the NC of protocol processes.
The accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the network architecture diagram of the server that provides of background technology;
Fig. 2 is the network architecture diagram of another server of providing of background technology;
Fig. 3 is the composition structure chart of a kind of message generating apparatus of providing of the embodiment of the present invention one;
Fig. 4 is the composition structure chart of the another kind of message generating apparatus that provides of the embodiment of the present invention two;
Fig. 5 is the composition structure chart of the server based on the message generating apparatus that provides of the embodiment of the present invention two;
Fig. 6 is a kind of two the 2nd NC that the message generating apparatus provided based on embodiment mono-that the embodiment of the present invention two provides may cause message process charts when same message is carried out to protocol processes;
Fig. 7 is the concrete structure figure of a kind of message generating apparatus of providing of inventive embodiments three;
Fig. 8 is the flow chart of a kind of message forming method of providing of inventive embodiments four.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, below by specific embodiment, describe.
It should be noted that, the embodiment of the present invention provides a kind of message generating apparatus, is applicable to server, and wherein, server comprises a plurality of processors and a plurality of NC, and wherein, each processor is all communicated by letter with a plurality of NC by a message generating apparatus.Wherein, NC comprises at least two the 2nd NC for protocol processes, and this message generating apparatus is connected between each the 2nd NC and processor.Meanwhile, described NC comprises the one or more NC that are connected with described message generating apparatus; Wherein, a described NC can be described the 2nd NC, can not be also described the 2nd NC.
What deserves to be explained is, the message received for described message generating apparatus, described message generating apparatus can be determined at least two the 2nd NC for protocol processes; And, for the different messages that receive, may be that same described the 2nd NC carries out protocol processes.
Thereby, when described message generating apparatus receives the message of self processor or during from the message of a NC, described message generating apparatus can realize the mirror image of message and be distributed at least two NC for protocol processes so that this message is carried out to protocol processes, and the feedback addresses comprised according to described feedback message and type of message are with to a NC or processor feedback.Thereby, in the server that comprises a plurality of processors and a plurality of NC, effectively improved the RAS of the data communication between processor and other processor.
embodiment mono-:
Fig. 3 shows the composition structure of the message generating apparatus that the present embodiment provides, and for convenience of description, only shows the part relevant to the embodiment of the present invention, and details are as follows:
A kind of message generating apparatus, described message generating apparatus comprises:
Receiving element 31, for receiving message;
Allocation units 32, for carrying out described message mirror image to be sent at least two the 2nd NC;
Message feedback unit 33, for receiving the feedback message of described the 2nd NC feedback, described feedback message is carried out generating after protocol processes to described message by described the 2nd NC;
Output unit 34, for exporting described feedback message.
In the present embodiment, receiving element 31 receives described message; Because the 2nd NC for protocol processes is a plurality of, described message is carried out to mirror image to send to a plurality of the 2nd NC simultaneously; Described the 2nd NC can generate described feedback message and feed back to the message generating apparatus in real time after completing protocol processes; After the message that receives feedback until output unit 34, processor or the described NC to appointment feeds back in real time.
As another embodiment of the present invention, receiving element 31 receives described message; When the 2nd NC for protocol processes is one, to this 2nd NC, send described message; After the message that receives this 2nd NC feedback until output unit 34, processor or the 2nd NC to appointment feeds back in real time.
As one embodiment of the invention, described message comprises: from the message of the described processor be connected with described message generating apparatus, or from the message of the one or more NC that are connected with described message generating apparatus.
It should be noted that, the described message from a NC comprises described feedback message.
Fig. 5 shows the composition structure of the server based on the message generating apparatus that the present embodiment provides, and for convenience of description, only shows the part relevant to the embodiment of the present invention,
Preferably, for above-mentioned two kinds of messages, from different interfaces, receive respectively, therefore described receiving element 31 comprises:
Express passway interconnected (QuickPath Interconnect, QPI) interface, for receiving the message of self processor;
One or more nodes interconnected (Node Interconnect, NI) interface, each described NI interface receives the message of a self-corresponding described NC.
It should be noted that, a described NI interface is connected with a described NC, and therefore, a described NI interface receives the message of a self-corresponding NC.
Like this, because the type of message of the message that carrys out self processor exists different from the type of message of message from a described NC, and/or because the data communication format of the message that carrys out self processor may exist different from the data communication format of message from a described NC, therefore, the coupling that the message generating apparatus adopts the QPI interface to carry out message to the message that carrys out self processor receives, and adopts the NI interface to mate reception to the message that carrys out a self-corresponding described NC.
Preferably, described output unit 34, specifically for:
The feedback addresses and the type of message that according to described feedback message, comprise, export described feedback message or export described feedback message from described QPI interface from described NI interface.
It should be noted that, described feedback addresses is: processor is for receiving the address of described feedback message or a described NC for receiving the address of described feedback message; Wait to get the described feedback addresses of described feedback message, by described QPI interface, send described feedback message to described processor, or send described feedback message to a corresponding described NC by certain NI interface.
It should be noted that, it is different from the type of message that described NI interface received/sent message that described QPI interface receives/send the type of message of message.Like this, feedback addresses and the type of message that need to comprise according to described feedback message, determine it is to send described feedback message by described QPI interface to processor, or determine by which described NI interface and send described feedback message to the described NC of correspondence.
embodiment bis-:
In the present embodiment, the message generating apparatus provided based on embodiment mono-, the described message of the portion received for receiving element 31, the output unit 34 that the message generating apparatus comprises is only exported a described feedback message.
Under normal circumstances, the described feedback message that same described message carries out generating after protocol processes through a plurality of described the 2nd NC should be the same, so the output unit 34 of this enforcement can only be exported the described feedback message that a described message is corresponding.
It should be noted that, when described the 2nd NC carries out protocol processes to a plurality of described messages, adopt polling mode to determine the processing sequence between a plurality of described messages.Many parts of messages that receive when receiving element 31 are data of using different operation address when completing protocol processes, many parts of described messages only carry out read/write operation to corresponding operation address in each described the 2nd NC, thereby, after message feedback unit 33 receives described feedback message, the described feedback message of output unit 34 outputs can be the same.
But, in the many parts of messages that receiving element 31 receives, exist when same operation address is carried out at least two parts of messages of read/write operation, due to the processing sequence difference of the message that same operation address is carried out to read/write operation, may produce abnormal (same described message generates different described feedback messages after protocol processes); The message handling process shown in Fig. 6 of take is example, and details are as follows:
Wherein, CPU0, CPU1 are different processors; HA is memory; NC0 is a described NC, and NC1 and NC2 are different described the 2nd NC.The NI interface of message generating apparatus and QPI interface is external NC0 and CPU0 respectively, and RdInvOwn, SnpInvOwn, WbMtoI, WbIData, SnpInvOwn, Cmp, RspI, RSPFwdI_DataM, DataC_M, RspFwdI, Cmp, WBIData, WBCmp, DataC_E_Cmp are message; CPU1 is for certain address reading data from CPU0 (CPU1 is from the message flow of the operation of certain address reading data of CPU0 to as shown in the dotted line as Fig. 6), send RdInvOwn to memory, then memory sends SnpInvOwn to NC0, and then the receiving element 31 of message generating apparatus receives from the NI interface SnpInvOwn that NC0 sends.CPU0, in order to write data (CPU0 writes the message flow of operation of data to as shown in the solid line as in Fig. 6 to HA) to HA, sends WbIData, WbMtoI to the message generating apparatus; The receiving element 31 of message generating apparatus receives from the QPI interface WbIData, the WbMtoI that CPU0 sends;
After if allocation units 32 are all distributed to respectively NC1 and NC2 by SnpInvOwn, WbIData and WbMtoI simultaneously, no matter be in NC1 or NC2, from the WbIData of CPU0 with from the SnpInvOwn of NC0, need to use same operation address complete protocol processes; Meanwhile, NC1 or NC2 adopt polling mode to determine the processing sequence of WbIData and SnpInvOwn.Because NC1 first processes the WbIData from CPU0 from the SnpInvOwn reprocessing of NC0, NC1 is to message generating apparatus feedback SnpInvOwn, output unit 34 according to the type of message of SnpInvOwn and feedback addresses (CPU0) by the QPI interface to CPU0 output SnpInvOwn with from this certain address reading data, after NC1 handles WbIData, directly by the QPI interface, to CPU0 output Cmp(, finish CPU0 and write the operation of data to HA, but unrealized this operation) with; Then, CPU0 sends RspI by the QPI interface to the message generating apparatus, the message generating apparatus completes NC1 the RSPFwdI_DataM generated after protocol processes and feeds back to NC0 by the NI interface, then, NC0 finishes the operation of CPU1 to certain address reading data of CPU0 to CPU1 feedback DataC_M(, and has realized this operation).Because NC2 first processes the SnpInvOwn from NC0 from the WbIData reprocessing of CPU0, NC2 is to message generating apparatus feedback WBIData, output unit 34 is according to type of message and the feedback addresses (NC0) of WBIData, send WBIData by the NI interface to NC0, then, NC0 writes data with realization to the assigned address in HA to HA transmission WbMtoI and WbIData, then HA feeds back Cmp to NC0, then the NI interface of message generating apparatus receives the WBCmp that NC0 sends, the message generating apparatus completes NC2 the Cmp feedback CPU0 generated after protocol processes, then the message generating apparatus completes the RspI that generates after the SnpInvOwn of protocol processes from NC0 by NI interface feedback NC0 by NC2, then NC0 feeds back RspI to HA, then HA finishes the operation of CPU1 to certain address reading data of CPU0 to CPU1 feedback DataC_E_Cmp(, but unrealized this operation).
Because NC1 first processes the WbIData from CPU0 from the SnpInvOwn reprocessing of NC0, it is SnpInvOwn that SnpInvOwn is completed to the message generated after protocol processes, and it is Cmp that WbIData is completed to the message generated after protocol processes; Because NC2 first processes the SnpInvOwn from NC0 from the WbIData reprocessing of CPU0, it is RspI that SnpInvOwn is completed to the message generated after protocol processes, and it is WBIData that WbIData is completed to the message generated after protocol processes.Thereby cause CPU1 to write the operation failure of data to HA to operation failure or the CPU0 of certain address reading data of CPU0.
Thereby, in the many parts of messages that receiving element 31 receives, exist when same operation address is carried out at least two parts of messages of read/write operation, output unit 34 may be exported different described feedback messages, cause the server None-identified, also can't realize a plurality of for realizing backup mutually between the 2nd NC of protocol processes in same server.
For this reason, only export a described feedback message in order to guarantee output unit 34, and accessing same operation address for fear of needs is assigned with unit 32 with a plurality of messages that complete protocol processes simultaneously and is assigned to the 2nd NC, Fig. 4 shows the composition structure of another message generating apparatus that the present embodiment provides, for convenience of description, only show the part relevant to the embodiment of the present invention.
As one embodiment of the invention, described message generating apparatus also comprises:
Address list unit 41, for preserving the operation address of described message, the address of described operation address for described message is carried out to the required access of protocol processes;
Judging unit 42, if do not store the operation address of the described message that described receiving element 31 receives for described address list unit 41, by described allocation units 32, described message is carried out to mirror image to be sent at least two the 2nd NC, and preserve the operation address of the described described message received in described address list unit 41.
Preferably, described operation address is specially: the memory address of putting down in writing in described message, need to access while carrying out protocol processes.
It should be noted that, distribute at least two described the 2nd NC to carry out all described message of protocol processes for allocation units 32, until, before each described the 2nd NC all feeds back described feedback message, described address list unit 41 stores the operation address that described message is corresponding always; That is,, after all described the 2nd NC have fed back described feedback message, just can be in address list unit 41 delete the operation address that does not carry out the described message before protocol processes that described feedback message is corresponding.
Like this, rigidly connect the described message of receiving for receiving element 31, extract the operation address of described message from described message; If judging unit 42 does not find the operation address identical with the operation address of the described message received after traveling through in address list unit 41 and searching, in address list unit 41, add the operation address of the described message received; Meanwhile, carry out allocation units 32 to allow a plurality of described the 2nd NC described message be carried out to protocol processes simultaneously.
Preferably, meanwhile, described message generating apparatus also comprises:
Described wait unit 43, for adding at waiting list the described message that described receiving element 31 receives;
Described judging unit 42, also for:
If described address list unit 41 has stored the operation address of the described message that described receiving element 31 receives, by described wait unit 43, in waiting list, added the described message that described receiving element receives.
It should be noted that, when the operation address of the described message in described waiting list is deleted in described address list unit 41, carry out allocation units 32 so that described the 2nd NC carries out protocol processes to described message.
Like this, for rigidly connecting operation address corresponding to described message of receiving, the situation of identical recordings has been arranged in described address list unit 41, judging unit 42 jumps to waits for unit 43 execution, the described message received is added in waiting list simultaneously.
Preferably, when allocation units 32 are distributed to described message a plurality of the 2nd NC and are carried out protocol processes, for the described feedback message that guarantees each described the 2nd NC feedback is all the same, described allocation units 32, also for:
Specify the resource of each described the 2nd NC for carrying on an agreement and processing, record resource number corresponding to described resource.
It should be noted that, the described resource of processing for carrying on an agreement comprises the software and hardware resources that operation address that needs access, storage resources, cache resources etc. are required for the processing procedure that carries on an agreement.The described resource number of record in allocation units 32, for identifying described the 2nd NC required resource while processing that carries on an agreement.
Like this, after described allocation units 32 complete the appointment of described resource, the resource that each described the 2nd NC processes for carrying on an agreement (processing procedure that especially carries on an agreement needs the operation address of access) is the same, thereby the described feedback message generated is also the same.
Preferably, the described feedback message produced due to each described the 2nd NC is the same, and described message generating apparatus also comprises:
Filter element 44, if receive for the first time described feedback message for described message feedback unit 33, export described feedback message by described output unit 34, and record the message characteristic value of described feedback message, deletes described resource number.
It should be noted that, the described feedback message that same described message generates after described the 2nd NC carries out protocol processes has same message characteristic value; And described message characteristic value is documented in described feedback message.
Like this, for to same described message, although it is different to the time of advent of message feedback unit 33 that above-mentioned all described the 2nd NC feed back described feedback message,, output unit 34 only sends the described message feedback unit 33 described feedback message that at first once (for the first time) receives; In this simultaneously, the message characteristic value of the described feedback message that filter element 44 records once arrive at first, so that filter out the described feedback message that described message that receive later, same generates through protocol processes.
Preferably, described filter element 44, also for:
If described message feedback unit 33 receives described feedback message for the last time, delete the message characteristic value of described feedback message, from described address list unit 41, delete at the operation address of the message before processing and generate described feedback message that carries on an agreement.
Like this, for all described the 2nd NC that same described message is carried out to protocol processes, message feedback unit 33 has all been received the feedback message of each described the 2nd NC feedback, thus the message characteristic value of deleting described feedback message; Meanwhile, delete the operation address of the message before processing that carrying on an agreement that described feedback message is corresponding in described address list unit 41.
Meanwhile, exist in waiting list with described message and need same operation address when completing the message of protocol conversion, after allocation units 32 carry out mirror image by this waits queue, message that use same operation address, a plurality of the 2nd NC of transmission are with the processing that carries on an agreement; Thereby, effectively avoided the 2nd NC to carry out protocol processes to a plurality of messages that use same address simultaneously, guaranteed that the feedback message that same message carries out generating after protocol processes is the same.
As one embodiment of the invention, through Preset Time, the message characteristic value of deleting described feedback message, from described address list unit 41, delete at the operation address of the message before processing and generate described feedback message that carries on an agreement.
Make mistakes and, not in time to the described feedback message of message feedback unit 33 feedback, preset described Preset Time for fear of certain the 2nd NC for protocol processes.Another purpose that presets described Preset Time is: after described Preset Time, the protocol processes that means this message finishes, for fear of affecting in waiting list, use the message that needs same operation address with described message, allocation units 32 in this wait queue, message that use same operation address to be carried out sending a plurality of the 2nd NC with the processing that carries on an agreement after mirror image in time.
embodiment tri-:
A kind of specific embodiment of the message generating apparatus that the message generating apparatus that the present embodiment provides provides as embodiment bis-, as shown in Figure 7, for convenience of description, only show the part relevant to the embodiment of the present invention.Wherein, it should be noted that, for the message handling process of illustrating between message generating apparatus and a plurality of the 2nd NC, two the 2nd NC of only take are example.
Wherein, the message generating apparatus that the present embodiment provides comprises:
QPI PHY Rx is: the physical layer receiving terminal that receives the message of self processor by the QPI interface;
QPI Link Rx is: the data link layer receiving terminal that receives the message of self processor by the QPI interface;
QPI PHY Tx is: by the QPI interface, send the physical layer transmitting terminal of feedback message to processor;
QPI Link Tx is: by the QPI interface, send the data link layer transmitting terminal of feedback message to processor;
NI PHY Rx is: by the NI interface, receive the physical layer receiving terminal from the message of a NC;
NI Link Rx is: by the NI interface, receive the data link layer receiving terminal from the message of a NC;
NI PHY Tx is: the physical layer transmitting terminal that sends feedback message to the NC by the NI interface;
NI Link Tx is: the data link layer transmitting terminal that sends feedback message to the NC by the NI interface;
H PHY Rx is: the physical layer receiving terminal that receives the feedback message of the 2nd NC feedback;
H Link Rx is: the data link layer receiving terminal that receives the feedback message of the 2nd NC feedback;
H PHY Tx is: the physical layer transmitting terminal that sends message to the 2nd NC;
H Link Tx is: the data link layer transmitting terminal that sends message to the 2nd NC;
Address list administration module (Addr Table Management, ATM), carrying out the operation address that the message of protocol processes need to be accessed for preserving the 2nd NC, and the address of preserving the message in waiting list.
ID administration module (ID Management, IDM), for preserving resource number, described resource number and described the 2nd NC have mapping relations for the resource of processing that carries on an agreement.
Packet filtering module (Packet Filter, PF), for many parts of feedback messages are screened and sort, 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 be sent to a plurality of the 2nd NC to message.
It should be noted that, the combination of QPI PHY Rx, QPI Link Rx, QPI interface, NI PHY Rx, NI Link Rx and NI interface that receiving element 31 and the present embodiment that embodiment bis-provides provides has identical function; The combination of QPI PHY Tx, the QPI LinkTx that the transmitting element that embodiment bis-provides and the present embodiment provide, QPI interface, NI PHY Tx, NI Link Tx and NI interface has identical function; The combination of IDM, H ROUT, H PHY Tx and H Link Tx that allocation units 32 and the present embodiment that embodiment bis-provides provides has identical function; The H PHY Rx that message feedback unit 33 and the present embodiment that embodiment bis-provides provides and the combination of H Link Rx have identical function; The PF that filter element 44 and the present embodiment that embodiment bis-provides provides has identical function; The 2nd NC that the 2nd NC that embodiment bis-provides and the present embodiment provide has identical function; The address list unit 41 that embodiment bis-provides, judging unit 42 and wait unit 43 have identical function with the ATM that the present embodiment provides.
In the present embodiment, the QPI interface receives the message of self processor, and this message arrives H ROUT through QPI PHY Rx and QPI Link Rx; The NI interface receives the message from a described NC, and this message arrives H ROUT through NI PHY Rx and NI Link Rx.
Carry out the required operation address of protocol processes if put down in writing the message that H ROUT is received in ATM, ATM adds the address of described message in waiting list to.
Message H ROUT received if do not put down in writing in ATM carries out the required operation address of protocol processes, and ATM records the operation address of described message; Then, IDM is each the 2nd NC allocated resource, and records corresponding resource number; Then, IDM is sent to H ROUT by resource number, be sent to a plurality of the 2nd NC(wherein together with H ROUT generates resource number message with mirror image, message and resource number are sent to respectively the 2nd corresponding NC after being distributed by H ROUT after H Link Tx, H PHY Tx).
The feedback message of each the 2nd NC feedback is sent to PF through corresponding H PHY Rx and H Link Rx.If PF receives described feedback message for the first time, record the message characteristic value of described feedback message, simultaneously, with PF, keep the IDM of communication to delete protocol processes and generate the resource number that described feedback message is corresponding; Simultaneously, feedback addresses and type of message according to described feedback message, determine it is to send described feedback message through QPI PHY Tx, QPI LinkTx, QPI interface to processor, or send described feedback message through NI PHY Tx, NI Link Tx, NI interface to a described NC.PF continues to receive feedback message other, the 2nd NC feedback, to the last once receive described feedback message (due to when H ROUT distributes described message, determined the number of the 2nd NC, the 2nd NC can generate a described feedback message, therefore, according to the number of the 2nd NC, can determine whether as last received a feedback message), delete the message characteristic value of described feedback message, the ATM deletion that keeps communicate by letter with PF carries on an agreement and processes and generate the operation address of the message before described feedback message.Because PF only feeds back by QPI interface or NI interface the described feedback message received for the first time, the identical feedback message received is later carried out filtering and do not feed back by QPI interface or NI interface.Thereby realized mutual standby between a plurality of the 2nd NC, guaranteed that only feeding back a feedback message for a message does not exist unnecessary message finally to guarantee the communication between the processor in same server.
embodiment tetra-:
The message generating apparatus that the message forming method that the present embodiment provides and embodiment mono-provide is mutually applicable; Fig. 8 shows the realization flow of the message forming method that the present embodiment provides, and for convenience of description, only shows the part relevant to the embodiment of the present invention, and details are as follows for its realization flow:
Step S11, reception message;
Step S12, described message is carried out to mirror image to be sent at least two the 2nd NC;
Step S13, receive the feedback message of described the 2nd NC feedback, described feedback message is carried out generating after protocol processes to described message by described the 2nd NC;
Step S14, export described feedback message.
Like this, step S12 carries out can sending to a plurality of the 2nd NC to carry out protocol processes after mirror image to described message simultaneously, thereby realizes a plurality of standby mutually between the 2nd NC of protocol processes.
After the message generating apparatus receives described message, perform step successively S11, step S12, step S13, step S14, the message generating apparatus will be exported described feedback message.
As one embodiment of the invention, described message comprises: from the message of the processor be connected with the message generating apparatus, or from the message of the one or more NC that are connected with described message generating apparatus.
It should be noted that, the described message from a described NC comprises described feedback message.Particularly, server comprises a plurality of NC, the message generating apparatus of a plurality of processors and corresponding number, wherein communicating by letter between a processor and another processor may need a plurality of NC through wherein to carry out message transmissions, therefore, may there is following situation: the message that a processor sends to a message generating apparatus, this message generating apparatus is distributed to the described feedback message that a plurality of the 2nd NC carry out the protocol processes generation, before entering another processor, need to be sent to from the NI interface another message generating apparatus be connected with described another processor using described feedback message as described message, this another message generating apparatus carries out again being sent to described another processor after protocol processes to described feedback message.
Meanwhile, described step S11 comprises:
Receive the message of self processor from the QPI interface;
Receive the message from a NC of one or more correspondences from one or more NI interfaces.
It should be noted that, a described NI interface is connected with a described NC, and therefore, a described NI interface receives the message of a self-corresponding NC.
Preferably, described step S14 is specially:
The feedback addresses and the type of message that according to described feedback message, comprise, export described feedback message or export described feedback message from described QPI interface from described NI interface.
embodiment five:
The message forming method provided based on embodiment tetra-, the present embodiment is further optimized: the described message of the portion received for step S11, only export a corresponding described feedback message during execution step S14.
It should be noted that, the message generating apparatus that the message forming method that the present embodiment provides and embodiment bis-provide is mutually applicable;
As one embodiment of the invention, in order to guarantee only to export a described feedback message, and to access same operation address for fear of needs and be assigned to the 2nd NC with a plurality of messages that complete protocol processes simultaneously, described message forming method also comprises:
Judge the operation address that whether stores the described message received in address list, if not, described message is carried out to mirror image and performs step S12 to be sent at least two described the 2nd NC(), and preserve the operation address of described message in described address list.
Preferably, described message forming method also comprises:
If described address list has stored the operation address of the described message received, in waiting list, add described message.
As one embodiment of the invention, at step S12, described message is distributed to before a plurality of the 2nd NC carry out protocol processes, for the described feedback message that guarantees each described the 2nd NC feedback is all the same, described step S12 also comprises:
Specify the resource of each described the 2nd NC for carrying on an agreement and processing, record resource number corresponding to described resource.
As one embodiment of the invention, the described feedback message produced due to each described the 2nd NC is the same, and the present embodiment wishes only to carry out a step S14 to export a described feedback message, and therefore, described message forming method also comprises:
If receive for the first time described feedback message, export described feedback message (performing step S14), and record the message characteristic value of described feedback message, delete described resource number.
Preferably, described message forming method also comprises:
If receive for the last time described feedback message, delete the message characteristic value of described feedback message, from described address list, delete at the operation address of the message before processing and generate described feedback message that carries on an agreement.
In invention the present embodiment, server comprises a plurality of processors and a plurality of NC, and wherein, each processor all comprises at least two the 2nd NC by a message generating apparatus with the described NC of a plurality of NC() communicate by letter; Therefore, when the processor in server and another processor carry out data communication, the message generating apparatus be connected with processor, receive the message of self processor from the QPI interface by receiving element; Allocation units carry out mirror image to be sent at least two the 2nd NC by described message; The message feedback unit receives the feedback message of described the 2nd NC feedback; Output unit is exported described feedback message; Meanwhile, the a message received for input unit, by the assist process of address list unit, judging unit, wait unit and filter element, guarantee that each is the same for the feedback message of the 2nd NC output of protocol processes, then output unit is only exported a feedback message; According to feedback addresses and the type of message of feedback message, the output feedback message from the QPI interface to processor, or from the NI interface to a NC output feedback message.Thereby the message of realizing a processor sends message (feedback message) through the message generating apparatus to a NC, this message arrives a NC adjacent with another processor through the forwarding between one or more NC, and this adjacent NC generates the message of this forwarding message (feedback message) through the message generating apparatus has sent a data communication to this another processor; If this another processor need to, to this processor feedback, can carry out reverse link communication by above-mentioned data communication mode.
In embodiments of the present invention, the message generating apparatus adopts mirror image technology that message is distributed to a plurality of the 2nd NC to complete protocol processes, has effectively realized mutually standby between the 2nd NC of protocol processes.
It will be appreciated by those skilled in the art that: the message generating apparatus that embodiment mono-and embodiment bis-provide, can be the unit that the software unit, hardware cell or the software and hardware that run on server combines, also can be used as independently suspension member and be integrated into or run in server.
It will be appreciated by those skilled in the art that the unit that comprises for above-described embodiment one and embodiment bis-is just divided according to function logic, but be not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, 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 comprises the message generating apparatus that embodiment mono-, embodiment bis-or embodiment tri-provide.
Those of ordinary skills it is also understood that, realize that all or part of step in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be in being stored in a read/write memory medium, described storage medium, comprise ROM/RAM, disk, CD etc.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For the general technical staff of the technical field of the invention; make without departing from the inventive concept of the premise some alternative or obvious modification that are equal to; and performance or purposes identical, all should be considered as belonging to the present invention's scope of patent protection definite by submitted to claims.

Claims (13)

1. a message generating apparatus, is characterized in that, described message generating apparatus comprises:
Receiving element, for receiving message;
Allocation units, for carrying out described message mirror image to be sent at least two Section Point controller NC;
The message feedback unit, for receiving the feedback message of described the 2nd NC feedback, described feedback message is carried out generating after protocol processes to described message by described the 2nd NC;
Output unit, for exporting described feedback message.
2. message generating apparatus as claimed in claim 1, is characterized in that, described message generating apparatus also comprises:
The address list unit, for preserving the operation address of described message, the address of described operation address for described message is carried out to the required access of protocol processes;
Judging unit, if do not store the operation address of the described message that described receiving element receives for described address list unit, by described allocation units, described message is carried out to mirror image to be sent at least two the 2nd NC, and preserve the operation address of the described described message received in described address list unit.
3. message generating apparatus as claimed in claim 2, is characterized in that, described message generating apparatus also comprises:
Wait for unit, at waiting list, adding the described message that described receiving element receives;
Described judging unit, also for:
If described address list unit has stored the operation address of the described message that described receiving element receives, by described wait unit, add the described message that described receiving element receives in waiting list.
4. message generating apparatus as claimed in claim 3, is characterized in that, described allocation units, also for:
Specify the resource of each described the 2nd NC for carrying on an agreement and processing, record resource number corresponding to described resource.
5. message generating apparatus as claimed in claim 4, is characterized in that, described message generating apparatus also comprises:
Filter element, if receive for the first time described feedback message for described message feedback unit, by described output unit, export described feedback message, and record the message characteristic value of described feedback message, delete described resource number, if described message feedback unit receives described feedback message for the last time, delete the message characteristic value of described feedback message, from described address list unit, delete at the operation address of the message before processing and generate described feedback message that carries on an agreement.
6. message generating apparatus as claimed in claim 1, is characterized in that,
Described receiving element comprises:
The interconnected QPI interface of express passway, for receiving the message from described processor;
The interconnected NI interface of one or more nodes, each described NI interface receives the message of a self-corresponding described NC;
Described output unit, specifically for:
The feedback addresses and the type of message that according to described feedback message, comprise, export described feedback message or export described feedback message from described QPI interface from described NI interface.
7. a server, is characterized in that, described server comprises the described message generating apparatus of claim 1 to 6 any one.
8. a message forming method, is characterized in that, described message forming method comprises:
Receive message;
Described message is carried out to mirror image to be sent at least two the 2nd NC;
Receive the feedback message of described the 2nd NC feedback, described feedback message is carried out generating after protocol processes to described message by described the 2nd NC;
Export described feedback message.
9. message forming method as claimed in claim 8, is characterized in that, described message forming method also comprises:
Judge the operation address that whether stores the described message received in address list, if not, described message is carried out to mirror image to be sent at least two described the 2nd NC, and preserve the operation address of described message in described address list.
10. message forming method as claimed in claim 9, is characterized in that, described message forming method also comprises:
If described address list has stored the operation address of the described message received, in waiting list, add described message.
11. message forming method as claimed in claim 10, is characterized in that, described described message carried out to mirror image to be sent to the step of at least two the 2nd NC, also comprises:
Specify the resource of each described the 2nd NC for carrying on an agreement and processing, record resource number corresponding to described resource.
12. message forming method as claimed in claim 11, is characterized in that, described message forming method also comprises:
If receive for the first time described feedback message, export described feedback message, and record the message characteristic value of described feedback message, delete described resource number;
If receive for the last time described feedback message, delete the message characteristic value of described feedback message, from described address list, delete at the operation address of the message before processing and generate described feedback message that carries on an agreement.
13. message forming method as claimed in claim 8, is characterized in that, the step of described reception message comprises:
Receive the message of self processor from the QPI interface;
Receive the message from a NC of one or more correspondences from one or more NI interfaces;
The step of the described feedback message of described output is specially:
The feedback addresses and the type of message that according to described feedback message, comprise, export described feedback message or export described feedback message from described QPI interface from described NI interface.
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 true CN103491079A (en) 2014-01-01
CN103491079B 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)

Cited By (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
CN111917656A (en) * 2017-07-27 2020-11-10 华为技术有限公司 Method and device for transmitting data

Citations (3)

* 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
US20100251005A1 (en) * 2009-03-30 2010-09-30 Masaaki Kitano Multiprocessor system and failure recovering system
CN102301363A (en) * 2011-06-30 2011-12-28 华为技术有限公司 Data processsing node, system and method

Patent Citations (3)

* 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
US20100251005A1 (en) * 2009-03-30 2010-09-30 Masaaki Kitano Multiprocessor system and failure recovering system
CN102301363A (en) * 2011-06-30 2011-12-28 华为技术有限公司 Data processsing node, system and method

Cited By (3)

* 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
CN111917656A (en) * 2017-07-27 2020-11-10 华为技术有限公司 Method and device for transmitting data
CN111917656B (en) * 2017-07-27 2023-11-07 超聚变数字技术有限公司 Method and device for transmitting data

Also Published As

Publication number Publication date
CN103491079B (en) 2017-01-18

Similar Documents

Publication Publication Date Title
CN103098428B (en) A kind of message transmitting method, equipment and system realizing PCIE switching network
US8204054B2 (en) System having a plurality of nodes connected in multi-dimensional matrix, method of controlling system and apparatus
CN112130748B (en) Data access method, network card and server
US9397851B2 (en) Directed route load/store packets for distributed switch initialization
CN103257941B (en) Multi-protocol storage controller and system
CN108733604A (en) A kind of 485 bus intelligent expansion method and devices based on modbus communications protocol
US9596186B2 (en) Multiple processes sharing a single infiniband connection
CN111277616A (en) RDMA (remote direct memory Access) -based data transmission method and distributed shared memory system
JPH07321841A (en) Conversion adaptor device and computer system for transmitting/receiving data through parallel network
CN102404390A (en) Intelligent dynamic load balancing method for high-speed real-time database
CN103530066B (en) A kind of date storage method, Apparatus and system
CN115913937B (en) Container multi-network card network configuration method, device, equipment and storage medium
CN108829353A (en) A kind of networking storage system and method based on NVMe
Sun et al. Republic: Data multicast meets hybrid rack-level interconnections in data center
CN112099728B (en) Method and device for executing write operation and read operation
CN111684421B (en) Server system
WO2021012169A1 (en) Method of improving reliability of storage system, and related apparatus
CN103856511A (en) Data packet upload method, client terminal, nodes, information server and system
CN102843435A (en) Access and response method and access and response system of storing medium in cluster system
CN103491079A (en) Message generating device, server and method
CN111679918B (en) Message transmission method and device
WO2022267909A1 (en) Method for reading and writing data and related apparatus
CN104363269B (en) It is a kind of to pass through FC link transmissions, the method and device of reception NAS data
US10148518B2 (en) Method and apparatus for managing computer system
JP5148441B2 (en) Communication path redundancy and switching method in computer interconnection network, server device realizing the method, server module thereof, and program thereof

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.