A kind of transmission method, equipment and the computer system of QPI message
Technical field
The present invention relates to interfacing field, in particular to a kind of transmission of the transmission method and QPI message of QPI message is set
Standby and computer system.
Background technique
One computer system is made of multiple component nodes, these component nodes may include CPU(Central
Processing Unit, central processing unit), memory and I/O(Input/Output, input and output)Equipment etc..In department of computer science
In system, component nodes(It is subsequent to be referred to as:Node)Between can pass through QPI(QuickPath Interconnect, express passway
Interconnection)Message is communicated.
Wherein, when node needs are communicated with another node, for ease of description, which is known as the
One node, another node are known as second node, and first node can send QPI message to second node as follows, with
Realization is communicated with second node, Ke Yiwei:In computing systems, two adjacent nodes of position are connected directly by QPI interface,
If first node is adjacent with second node position, first node directly can send QPI message to second by QPI interface
Node;If first node and second node position are non-conterminous, first node sends QPI message to the by preset path
Two nodes, the path are usually least by node by being separated by other nodes between first node and second node
Path, for example, be separated by third node and fourth node between first node and second node, preset path by third node and
Fourth node, and the path is by the least path of node, QPI message is sent to third section adjacent thereto by first node
The QPI message is transmitted to fourth node adjacent thereto by point, third node, fourth node again by the QPI message be transmitted to
Its adjacent second node.
In the implementation of the present invention, it is following to have found that the communication between existing computer module at least exists by inventor
Problem:
If two node locations are non-conterminous, the QPI message between two node needs to transmit by preset path, when
When the node that the path is passed through breaks down, which just can not be communicated.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of transmission methods of QPI message and QPI to report
The transmission device and computer system of text.The technical solution is as follows:
In a first aspect, a kind of computer system is provided, including multiple computer module nodes, the system also includes:
Ethernet and at least one transmission device, each computer module node in the multiple computer module node
A transmission device at least one described transmission device is respectively corresponded, and each computer module node is right by its
The transmission device answered is connected on the Ethernet;At least one described transmission device includes the first transmission device, the multiple
Computer module node includes first node;
First transmission device, the Quick Path Interconnect QPI message sent for receiving the first node, described the
One node is connected with first transmission device, and the QPI message carries the mark of second node, and the second node is except institute
State other computer module nodes other than first node;The mark of the second node is obtained according to the QPI Receive message,
According to the mark of the second node, the media access control MAC Address of the second node is obtained;Ether network packet is generated,
The MAC Address of the second node and having the ether network packet are set by the MAC Address of the ether network packet
Effect bearing part replaces with the QPI message;By the Ethernet, the ether network packet is sent to second section
Point.
With reference to first aspect, in the first possible implementation of above-mentioned first aspect,
Each computer module node in the multiple computer module node respectively corresponds at least one described transmission
A transmission device in equipment;
First transmission device, it is corresponding with MAC Address from node identification for the mark according to the second node
The media access control MAC Address of the second node is obtained in relationship.
With reference to first aspect, in second of possible implementation of above-mentioned first aspect,
Multiple computer module nodes correspond to same transmission device, and multiple computation module sections of corresponding same transmission device
The corresponding transmission device of point forms domain;
First transmission device, for the mark according to the second node, from node identification, node domain in identify
With the second node is obtained in the corresponding relationship of the MAC Address of transmission device domain in identify and the second node where
The MAC Address of the transmission device in domain is believed from address feature is extracted where the second node in the MAC Address of the transmission device in domain
Breath, transmission device of the address characteristic information for domain where second node described in unique identification, by the address of the extraction
Mark forms the MAC Address of the second node in the domain of characteristic information and the second node.
Second aspect provides a kind of transmission method of Quick Path Interconnect QPI message, the method includes:
The QPI message that first node is sent is received, the QPI message carries the mark of second node;
The mark of the second node is obtained according to the QPI Receive message, and according to the mark of the second node, is obtained
Take the media access control MAC Address of the second node;
Generate ether network packet, by the MAC Address of the ether network packet be set as the MAC Address of the second node with
And effective bearing part of the ether network packet is replaced with into the QPI message;
By Ethernet, the ether network packet is sent to the second node.
It is described according to described second in the first possible implementation of above-mentioned second aspect in conjunction with second aspect
The mark of node obtains the media access control MAC Address of the second node, including:
According to the mark of the second node, from obtaining second section in the corresponding relationship of node identification and MAC Address
The MAC Address of point.
It is described according to described second in second of possible implementation of above-mentioned second aspect in conjunction with second aspect
The mark of node obtains the MAC Address of the second node, including:
According to the mark of the second node, from node identification, node domain in mark and the MAC Address of transmission device
The MAC of the transmission device in domain where obtaining in the domain of the second node mark and the second node in corresponding relationship
Location;
From address characteristic information is extracted where the second node in the MAC Address of the transmission device in domain, the address is special
Reference breath is for transmission device described in unique identification;
Mark in the domain of the address characteristic information of the extraction and the second node is formed to the MAC of the second node
Address.
In conjunction with second of possible implementation of second aspect, in the third possible realization side of above-mentioned second aspect
In formula, the mark according to the second node before the MAC Address for obtaining the second node, further includes:
Judge the first node and the second node whether in same domain, if it is, forward the QPI message to
The second node obtains the MAC Address behaviour of the second node if it is not, then executing the mark according to the second node
Make.
In conjunction with second aspect, in the 4th kind of possible implementation of above-mentioned second aspect, the method also includes:
Ether network packet is received, the received ether network packet carries the mark of third node;
The mark of QPI message and the third node is extracted from the received ether network packet;
The QPI message of the extraction is sent to the third node according to the mark of the third node.
The third aspect, provides a kind of transmission device of Quick Path Interconnect QPI message, and the equipment includes:
Receiving module, for receiving the QPI message of first node transmission, the QPI message carries the mark of second node;
Module is obtained, for obtaining the second node according to the received QPI Receive message of the receiving module
Mark, and according to the mark of the second node, obtain the media access control MAC Address of the second node;
Generation module sets the acquisition mould for the MAC Address of the ether network packet for generating ether network packet
Block obtain the second node MAC Address and effective bearing part of the ether network packet is replaced with into the reception
The received QPI message of module;
Sending module, for by Ethernet, the ether network packet that the generation module generates to be sent to described second
Node.
In conjunction with the third aspect, in the first possible implementation of the above-mentioned third aspect,
The acquisition module is closed for the mark according to the second node from the mark of node is corresponding with MAC Address
The MAC Address of the second node is obtained in system.
In conjunction with the third aspect, in second of possible implementation of the above-mentioned third aspect, the acquisition module includes:
Acquiring unit, mark, the domain internal standard of node for the mark according to the second node, from stored node
Mark and second node institute in the domain of the second node are obtained in the corresponding relationship of the MAC Address of knowledge and transmission device
In the MAC Address of the transmission device in domain;
Extraction unit, for from extraction address feature is believed in the MAC Address of the transmission device in domain where the second node
Breath, the address characteristic information is for transmission device described in unique identification;
Component units, for that will be identified described in composition in the domain of the address characteristic information of the extraction and the second node
The MAC Address of second node.
In conjunction with second of possible implementation of the third aspect, in the third possible realization side of the above-mentioned third aspect
In formula, the equipment further includes:
Judgment module, for judging the first node and the second node whether in same domain;
Forwarding module in same domain, then forwards the QPI message to institute for working as the result that the judgment module judges
Second node is stated, if it is not, then executing the mark according to the second node, obtains the MAC Address operation of the second node.
In conjunction with the third aspect, in the 4th kind of possible implementation of the above-mentioned third aspect, which is characterized in that
The receiving module, is also used to receive ether network packet, and the received ether network packet carries third node
Mark;
Extraction module, for extracting QPI message and the third section from the received ether network packet of the receiving module
The mark of point;
The sending module is also used to mention according to the mark transmission of the third node of extraction module extraction
The QPI message that modulus block extracts gives the third node.
Technical solution bring beneficial effect provided in an embodiment of the present invention is:
Ether network packet can transmit between any two node in same Ethernet, therefore QPI message is encapsulated
At the defect that ether network packet can overcome QPI message that can only transmit tens centimetres, the node of any two access network based on ethernet it
Between can not via other nodes realize interconnect, this addresses the problem in the prior art when other nodes break down when, this two
The problem of a node can not communicate.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the mutual contact mode schematic diagram between multiple CPU in the prior art;
Fig. 2 is a kind of computer system schematic diagram that the embodiment of the present invention 1 provides;
Fig. 3 is a kind of computer system schematic diagram that the embodiment of the present invention 1 provides;
Fig. 4 is a kind of computer system schematic diagram that the embodiment of the present invention 1 provides;
Fig. 5 is a kind of transmission method flow chart for QPI message that the embodiment of the present invention one provides;
Fig. 6 is a kind of transmission method flow chart of QPI message provided by Embodiment 2 of the present invention;
Fig. 7 is the structural schematic diagram of QPI message provided by Embodiment 2 of the present invention;
Fig. 8 is a kind of structural schematic diagram for QPI message transmissions equipment that the embodiment of the present invention three provides;
Fig. 9 is a kind of structural schematic diagram for QPI message transmissions equipment that the embodiment of the present invention four provides.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing
Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific embodiment below.
It will be appreciated by those skilled in the art that without certain details, the present invention equally be can be implemented.In other example,
Method well known to those skilled in the art, means, element and circuit are not described in detail, in order to highlight master of the invention
Purport.
The transmission range of QPI is shorter, is typically only capable to the distance of tens centimetres of transmission, therefore when computer system includes
Node is more or distribution distance farther out when, can not directly interconnect and have to pass through between two nodes apart from each other is two in advance
The node transfer that the path of person's setting is passed through.By taking Fig. 1 as an example, CPU0 to CPU7 is the node for forming computer system, by
Between CPU0 and CPU2 because distance farther out due to cannot achieve direct interconnection, path is set between CPU0 and CPU2 in advance, this
Node cpu 1 is passed through in path, therefore CPU0 CPU2 to be accessed is needed by CPU1.
To avoid the QPI message between two nodes apart from each other from having to pass through other nodes, the present invention is proposed, will
QPI message is encapsulated as ether network packet, then transmits by Ethernet.Ethernet technology is the most common local area network of current application
Interconnection technique has highly developed exchanging policy and switching equipment.Ether network packet can be any in same Ethernet
Transmitted between two nodes, as long as therefore the computer system any two node that includes access same Ethernet, then two
The transmission of information is not just limited by space and distance between person.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
Referring to fig. 2, the embodiment of the invention provides a kind of computer systems.
The computer system includes multiple computer module nodes, Ethernet and at least one transmission device;Multiple calculating
Each computer module node in component nodes respectively corresponds a transmission device in an at least transmission device, and each
Computer module node is connected on Ethernet by its corresponding transmission device;At least one transmission device includes the first transmission
Equipment, multiple computer module nodes include first node;
First transmission device, for receiving the QPI message of first node transmission, first node and the first transmission device phase
Even, which carries the mark of second node, and second node is other computer module nodes in addition to first node;
The mark of second node is obtained according to the QPI Receive message, according to the mark of second node, obtains the MAC of second node
(Medium/MediaAccess Control, medium access control)Address;Ether network packet is generated, by the ether network packet
MAC Address is set as the MAC Address of second node and effective bearing part of the ether network packet is replaced with QPI report
Text;By Ethernet, which is sent to second node.
Wherein, each computer module node respectively corresponds a transmission device, and correspondingly, the first transmission device is used for
According to the mark of second node, from the MAC Address for obtaining second node in the corresponding relationship of node identification and MAC Address.Node
Mark and the corresponding relationship of MAC Address are set in advance in the first transmission device.For example, with reference to Fig. 2, computer system includes
Computer module node is respectively node 1, node 2 and node 3 etc., transmission device 1, transmission device 2 and transmission device 3 etc. and
Ethernet;Node 1, node 2 and node 3 are corresponded with transmission device 1, transmission device 2 and transmission device 3 respectively, node 1,
Node 2 and node 3 are connected on Ethernet by corresponding transmission device 1, transmission device 2 and transmission device 3 respectively.
It is assumed that node 1 needs to transmit QPI message to node 3, which is sent to its corresponding transmission and set by node 1
Standby 1, which carries the mark of node 3.Transmission device 1 is according to the mark of node 3 from stored node identification and MAC
The MAC Address that node 3 is obtained in the corresponding relationship of address, generates ether network packet, and the MAC Address of the ether network packet is arranged
The QPI message is replaced with for the MAC Address of node 3 and by effective bearing part of the ether network packet, then passes through Ethernet
The ether network packet is sent to node 3.The corresponding transmission device of node 3 receives the ether network packet, from the ether network packet
Middle extraction QPI message, and the QPI message is transmitted to node 3.
Wherein, multiple computation module nodes can also correspond to same transmission device, multiple computer module node with should
Transmission device forms a domain;Correspondingly, the first transmission device, for the mark according to second node, from node identification, node
Domain in mark and second node institute in the domain of second node are obtained in mark and the corresponding relationship of the MAC Address of transmission device
In the MAC Address of the transmission device in domain, feature letter in address is extracted where from second node in the MAC Address of the transmission device in domain
Breath, transmission device of the address characteristic information for domain where unique identification second node, by the address characteristic information of extraction and
The MAC Address of mark composition second node in the domain of second node.
It is identified in the corresponding domain of each node in domain, for identifying its own.For example, with reference to Fig. 3, node 4 and section
The corresponding transmission device 4 of point 5, node 4, node 5 and transmission device 4 form a domain, identify in this domain in the corresponding domain of node 4
Node 4 is identified, mark identifies node 5 in this domain in the corresponding domain of node 5.
It is assumed that node 1 needs to transmit QPI message to node 4, which is sent to its corresponding transmission and set by node 1
Standby 1, which carries the mark of node 4.Transmission device 1 is according to the mark of node 4, from the domain internal standard of node identification, node
The transmission device in mark and 4 place domain of node in the domain of node 4 is obtained in knowledge and the corresponding relationship of the MAC Address of transmission device
4 MAC Address extracts address characteristic information, the address characteristic information from the MAC Address of the transmission device 4 in 4 place domain of node
For the transmission device 4 in 4 place domain of unique identification node, by mark group section in the domain of the address characteristic information of extraction and node 4
4 MAC Address is put, ether network packet is generated, set the MAC Address of node 4 for the MAC Address of the ether network packet and is incited somebody to action
Effective bearing part of the ether network packet replaces with the QPI message, then the ether network packet is sent to section by Ethernet
The transmission device 4 in 4 place domains of point.Transmission device 4 receive the ether network packet, from the ether network packet extract QPI message with
And identified in the domain of node 4, which is transmitted to by node 4 according to mark in the domain of node 4.
Referring to fig. 4, two nodes adjacent for position can also be connected directly.For example, 2 position phase of node 1 and node
Neighbour, so node 1 and node 2 can be connected directly, when node 1 needs to send QOI message to node 2, node 1 can be direct
The QPI message is sent to node 2.
Embodiment two
In any computer system shown in embodiment one, a kind of transmission side of QPI message is present embodiments provided
Method, referring to Fig. 5, method flow provided in this embodiment is specific as follows:
S101, receives the QPI message that first node is sent, which carries the mark of second node.
Computer system is made of a plurality of types of nodes, and the message mutually accessed between node is QPI message, the present invention
The node for sending QPI message is known as first node by embodiment, and the node for receiving QPI message is known as second node.
The information such as second node mark, first node mark and message text are included at least in QPI message.Second node
Mark can be preset node serial number or title etc..
S102 obtains the mark of second node according to the QPI Receive message, and according to the mark of second node, obtains the
The MAC Address of two nodes.
The purpose of the present invention is QPI message is passed through Ethernet message transmissions, it is therefore desirable to obtain what second node used
MAC Address.
It specifically, can be according to the mark of second node, from the mark of stored node and the corresponding relationship of MAC Address
The middle MAC Address for obtaining second node.
The MAC Address that the mark and the node that node is stored in the corresponding relationship use.
S103, generate ether network packet, by the MAC Address of the ether network packet be set as the MAC Address of second node with
And effective bearing part of the ether network packet is replaced with into the QPI message.
The ether network packet is sent to second node by Ethernet by S104.
The ether network packet can be sent to destination node according to the MAC Address in the ether network packet by Ethernet.
Ether network packet can transmit between any two node in same Ethernet, therefore QPI message is encapsulated
At the defect that ether network packet can overcome QPI message that can only transmit tens centimetres, the node of any two access network based on ethernet it
Between can not via other nodes realize interconnect, this addresses the problem in the prior art when other nodes break down when, this two
The problem of a node can not communicate.
Further, it by being effective carrying of ether network packet by QPI message whole installation, may be implemented do not parsing
Under the premise of QPI message text content, QPI message is encapsulated as ether network packet, avoids parsing QPI message text content
Troublesome operation reduces the complexity that the present invention realizes, while ether network packet is also converted to QPI message for follow-up recipients
It provides convenience.
Embodiment three
In any computer system shown in embodiment one, a kind of transmission side of QPI message is present embodiments provided
Method.
Wherein, in embodiments of the present invention, first node needs to transmit QPI message to second node, and first node is meter
Any computer component nodes in calculation machine system, second node are other any calculating in addition to first node in computer system
Thermomechanical components node, the corresponding transmission device of first node are the first transmission device, and the corresponding transmission device of second node is second
Transmission device, and the method that can provide through the embodiment of the present invention of first node by the QPI message transmissions to second node,
Referring to Fig. 6, method flow provided in an embodiment of the present invention is specific as follows:
S201, corresponding first transmission device of first node receive the QPI message that first node is sent, which takes
Mark with second node.
In computer system shown in Fig. 4, i.e., two adjacent nodes of position are connected, and first node is sending QPI report
Before text, also judging it, whether position is adjacent with second node, if it is, sending the QPI message to second node, if not
It is to send the QPI message to give its corresponding first transmission device.First node adjacent node adjacent with its position in advance is established
QPI interface, so the mark of its adjacent node is stored in first node, so first node can directly judge itself and
Whether position is adjacent for two nodes.
S202, the first transmission device judge first node and second node whether in same domain, if it is, forwarding should
QPI message is to second node, if not, thening follow the steps S203.
If the first transmission device and multiple nodes form a domain, multiple node is connected with the first transmission device,
And first mark for being stored with each node in multiple node in transmission device.So the first transmission device judges its place
It, can be with if all existed with the presence or absence of the mark of the mark of first node and second node in each node identification that domain includes
Judge that first node and second node in same domain, otherwise, judge first node and second node not in same domain.
S203, the first transmission device obtain the MAC Address of second node according to the mark of second node.
This step can be by as follows(1)Extremely(5), to realize, including:
(1):According to the mark of second node, determine whether second node with other nodes forms a domain, if it is not,
Execute step(2), if so, executing step(3);
Specifically, according to the mark of second node, stored node listing is searched, includes computer in the node listing
In system it is all composition domains nodes mark, if find out do not include in node listing second node mark, it is determined that
Second node does not form a domain with other nodes, if finding out the mark in node listing including second node, really
Determine second node and other nodes form a domain.
(2):According to the mark of second node, from obtaining in the corresponding relationship of stored node identification and MAC Address
The MAC Address of two nodes terminates to return;
The corresponding relationship of node identification and MAC Address is previously stored in transmission device, for example, with reference to node shown in table 1
The corresponding relationship of mark and MAC Address, and computer is stored in the corresponding relationship of the node identification shown in table 1 and MAC Address
In system either with or without with other nodes composition domain node node identification and MAC Address.
Table 1
Node identification |
MAC Address |
ID1 |
MAC1 |
ID2 |
MAC2 |
…… |
…… |
(3):According to the mark of second node, from the mark of stored node, node domain in identify and transmission device
MAC Address corresponding relationship in obtain second node domain in mark and second node place domain transmission device MAC
Address, wherein domain where second node includes multiple nodes and a transmission device, multiple nodes respectively with transmission device phase
Even, the transmission device is for being converted to ether network packet for QPI message or ether network packet being converted to QPI message, the second section
Mark for identifying second node in this domain in the domain of point.
Be previously stored in transmission device node identification, in domain mark and the MAC Address of transmission device corresponding relationship, example
Such as, referring to being identified in node identification shown in table 2, domain and the corresponding relationship of MAC Address, and the node identification shown in table 2, section
The node in all composition domains in computer system is stored in the domain of point in the corresponding relationship of the MAC Address of mark and transmission device
The MAC Address of mark and the corresponding transmission device of the node in node identification and domain.
Table 2
Node identification |
It is identified in the domain of node |
The MAC Address of transmission device |
ID1 |
DomainID1 |
MAC1 |
ID2 |
DomainID2 |
MAC2 |
…… |
…… |
…… |
If second node and other nodes share a transmission device, second node and other nodes form a domain.
In the range of the domain, transmission device can identify corresponding node with mark in domain.
(4):Address characteristic information is extracted where from second node in the MAC Address of the transmission device in domain.
Address characteristic information is the preset several bits composition in the MAC Address of transmission device, such as to binary system shape
For 48 MAC Address of formula, 38 bits thereafter can be preset and be used for as address characteristic information, the address characteristic information
Identify the transmission device.
(5):By the MAC Address of mark composition second node in the domain of the address characteristic information of extraction and second node, return
Returning terminates.
Mark is specifically string number in the domain of second node, it and address characteristic information are with being spliced into a new MAC
Location.Such as binary system 48 MAC Address, mark can be the string number of 10 bits composition, it and MAC in domain
38 bit address characteristic informations of address are spliced into 48 new MAC Address together.
New MAC Address contains to be identified and the address characteristic information of former MAC Address in domain, thus for Ethernet and
Speech, he can make Ethernet be correctly found the transmission device of second node, and for transmission device, he can make transmission device
Quickly find the second node in domain.
S204, the first transmission device generate ether network packet, set second node for the MAC Address of the ether network packet
MAC Address and effective bearing part of the ether network packet is replaced with into the QPI message.
Fig. 7 shows the example data structure of ether network packet, and wherein field DA represents destination address, therefore by the second section
It is the MAC Address for setting the MAC Address of ether network packet to second node at the position DA that the MAC Address of point, which copies to,.Word
Section Payload represents effectively carrying, the i.e. text of ether network packet.QPI message is integrally copied at the position Payload and is
Effective bearing part of ether network packet is replaced with into the QPI message.
In addition, SA represents source address, Type/Len represents effectively carrying(Payload)Length.Through this embodiment
It can also include the source address for setting source MAC to initial ether network packet in another embodiment of extension(SA), will
The length of QPI message entirety is set as effectively carrying(Payload)Length(Type/Len).
S205, the first transmission device send the ether network packet by Ethernet.
Ethernet is according to the MAC Address of the second node in the ether network packet, by the Ethernet message routing to second
Corresponding second transmission device of node.
S206:Corresponding second transmission device of second node receives the ether network packet, obtains from the ether network packet
The QPI message is sent to second node by QPI message.
Specifically, if second node does not form a domain with other nodes, the second transmission device is from the Ethernet
QPI message is obtained in message, and the QPI message is directly sent to second node;If second node and other nodes form
One domain, then the second transmission device obtains QPI message from the ether network packet, and extracts second from the ether network packet
It is identified in the domain of node, according to identifying in the domain of second node, which is sent to second node.
Method provided in this embodiment, the case where forming a domain for second node and other nodes, the ether of encapsulation
MAC Address in network packet is substantially by identifying the address feature with the MAC Address of transmission device in corresponding second node domain
Information two parts composition.Ether network packet can be found described by the address characteristic information of the MAC Address of the transmission device
Transmission device, then transmission device can directly pass through the second section in the MAC Address after receiving the ether network packet
Mark finds corresponding second node and is sent to it QPI message in point domain, avoids having to first extract second from QPI message
Node identification identifies the operation for finding second node by the second node again, reduces the complexity of the present invention program realization
Degree.
Example IV
The transmission device for present embodiments providing a kind of QPI message, referring to Fig. 8, equipment provided in this embodiment is specifically wrapped
It includes:
Receiving module 301, for receiving the QPI message of first node transmission, the QPI message carries the mark of second node
Know.
Module 302 is obtained, the second node according to the receiving module 501 received QPI Receive message is used for
Mark obtain the MAC Address of the second node and according to the mark of second node;
Generation module 303 sets described for the MAC Address of the ether network packet and obtains for generating ether network packet
Modulus block 302 obtain the second node MAC Address and effective bearing part of the ether network packet is replaced with
The received QPI message of receiving module 301;
Sending module 304, for by Ethernet, the ether network packet that the generation module 503 generates to be sent to
The second node.
Wherein, first node obtains itself and the second section before sending QPI message to the transmission device of the embodiment of the present invention
Positional relationship between point forwards the QPI message to second node if the positional relationship is position neighbouring relations, if
The positional relationship is not position neighbouring relations, then sends QPI message to the transmission device of the embodiment of the present invention.
In computer systems, can be connected by QPI interface between two adjacent nodes of position, so working as first node
Positional relationship between second node is position neighbouring relations, and first node can directly transmit QPI message to second node,
Second node is transmitted to without transmission device through the embodiment of the present invention.
Further, described to obtain the specific mark that can be also used for according to the second node of module 302, from node
The MAC Address of the second node is obtained in mark and the corresponding relationship of MAC Address.
The corresponding relationship of node identification and MAC Address, and pair of node identification and MAC Address are previously stored in transmission device
Should be related to it is middle storage computer system in institute either with or without with other nodes form domain node node identification and MAC Address.
Further, the acquisition module 302 includes:
Acquiring unit, mark, the domain internal standard of node for the mark according to the second node, from stored node
Mark and second node institute in the domain of the second node are obtained in the corresponding relationship of the MAC Address of knowledge and transmission device
In the MAC Address of the transmission device in domain.
Wherein, domain where the second node includes multiple nodes and a transmission device, the multiple node respectively with
The transmission device is connected, and mark in the domain for identifying the second node in the domain of the second node.
Be previously stored in transmission device node identification, in domain mark and the MAC Address of transmission device corresponding relationship, and
Node identification, node domain in identify and transmission device MAC Address corresponding relationship in store computer system in all groups
At being identified in the node identification of the node in domain and domain and the MAC Address of the corresponding transmission device of the node.
Extraction unit, for from extraction address feature is believed in the MAC Address of the transmission device in domain where the second node
Breath, the transmission device in domain where the address characteristic information is used to identify the second node;
Component units, for that will be identified described in composition in the domain of the address characteristic information of the extraction and the second node
The MAC Address of second node.
In another extension embodiment of the present embodiment, the equipment further includes:
Judgment module, for judging the first node and the second node whether in same domain, if it is, forwarding
The QPI message gives the second node, if it is not, then executing the mark according to the second node, obtains second section
The MAC Address operation of point.
If transmission device and multiple nodes can form a domain, multiple node is connected with transmission device, and passes
The mark of each node in multiple node is stored in transfer device.So the judgment module that transmission device includes judges its institute
It can if all existed with the presence or absence of the mark of the mark of first node and second node in each node identification that domain includes
To judge that first node and second node in same domain, otherwise, judge first node and second node not in same domain.
In another extension embodiment of the present embodiment, the receiving module 301 is also used to receive ether network packet, institute
State the mark that received ether network packet carries third node;
Extraction module 306, for extracting QPI message from the received ether network packet of the receiving module 301;
The sending module 304 is also used to according to the mark transmission of the third node of the extraction module 306 extraction
The QPI message of extraction gives the third node.
Further, the receiving module 301, specifically includes:
QPI link layer unit, the link layer transfer for QPI message;
QPI physical layer element, the physical layer transmission for QPI message.
Further, the sending module 304, specifically includes:
Ethernet link layer unit, the link layer transfer for ether network packet;
Ethernet physical layer unit, the physical layer transmission for ether network packet.
Particularly, in another embodiment of the present embodiment extension, the transmission device of the QPI message includes:QPI PHY
(QPI physical layer element)For realizing the physical layer function of QPI;QPI LINK(QPI link layer unit)For realizing the chain of QPI
Road layer function;ETH MAC(Ethernet link layer unit)For realizing the link layer functionality of Ethernet;ETH PHY(Ethernet object
Manage layer unit)For realizing the physical layer function of Ethernet;Pack Engine(Generation module 303)For realizing a group packet function,
QPI message is packaged into ether network packet;Unpack Engine(Obtain module 303)For realizing function of unpacking, from Ethernet
QPI message is extracted in message.The transmission device workflow of the QPI message includes:QPI turns Ethernet and Ethernet turns
QPI.Wherein, QPI turns Ethernet and includes:
QPI PHY receives the QPI message from CPU, and is converted into QPI LINK and can recognize then data format is sent out
Out;
QPI LINK receives the QPI message issued through QPI PHY, and is converted into the identifiable number of Pack Engine
It is then issued according to format;
Pack Engine receives the QPI message issued through QPI Link, and is encapsulated and then sends out for ether network packet
Out;
ETH MAC receives the ether network packet issued through Pack Engine, and it is identifiable to be converted into ETH PHY
Then data format issues;
ETH PHY receives the ether network packet issued through ETH MAC, then forwards it to target ethernet node.
Ethernet turns QPI:
ETH PHY receives the ether network packet from distal end, and it is right to be converted into the identifiable data format of ETH MAC
After issue;
ETH MAC receives the ether network packet issued through ETH PHY, and is converted into Unpack Engine and can recognize
Data format, then issue;
Unpack Engine receives the too network packet issued through ETH MAC, and then sends out from QPI message is wherein disassembled out
Out;
QPI Link receives the QPI message issued through Unpack Engine, and it is identifiable to be converted into QPI PHY
Then data format issues;
QPI PHY receives the QPI message issued through QPI LINK, is then issued corresponding CPU.
The transmission device for the QPI message that the present embodiment provides is provided simultaneously with the function of sending and receiving QPI message, in this reality
It applies in another extension embodiment of example, the transmission device of the QPI message can only have the function of sending QPI message.
In another extension embodiment of the present embodiment, the transmission device of the QPI message can also only have reception QPI
The function of message.
Embodiment 5
The transmission device for present embodiments providing a kind of QPI message, referring to Fig. 9, equipment provided in this embodiment is specifically wrapped
It includes:
Receiver 401, for receiving the QPI message of first node transmission, the QPI message carries the mark of second node
Know;
Processor 402, for obtaining the second node according to the received QPI Receive message of the receiver 401
Mark obtain the media access control MAC Address of the second node and according to the mark of the second node;Generate with
Too network packet sets the MAC Address of the second node for the MAC Address of the ether network packet and by the Ethernet
Effective bearing part of message replaces with the received QPI message of the receiver 401;
The ether network packet that the processor 402 generates is sent to described for by Ethernet by transmitter 403
Two nodes.
The processor 402 obtains the media access control MAC of the second node according to the mark of the second node
The mode of address, including:
According to the mark of the second node, from obtaining described second in the corresponding relationship of the mark of node and MAC Address
The MAC Address of node;Alternatively,
According to the mark of the second node, from the mark of stored node, node domain in identify and transmission device
MAC Address corresponding relationship in obtain identified in the domain of the second node and the second node where the transmission in domain set
Standby MAC Address;From address characteristic information is extracted where the second node in the MAC Address of the transmission device in domain, describedly
Location characteristic information is for transmission device described in unique identification;By the domain of the address characteristic information of the extraction and the second node
Interior mark forms the MAC Address of the second node.
The processor 402, be also used to judge the first node and the second node whether in same domain, if
It is no, then the mark according to the second node is executed, the MAC Address operation of the second node is obtained.
The transmitter 403 is also used to work as the result that the processor 402 judges in same domain, then to forward the QPI
Message gives the second node;
The receiver 401, is also used to receive ether network packet, and the received ether network packet carries third node
Mark;
The processor 402 is also used to extract QPI message and institute from the received ether network packet of the receiver 401
State the mark of third node;
The transmitter 403 is also used to according to the mark transmission of the third node of the processor 402 extraction
The QPI message that processor 402 extracts gives the third node.
It will be appreciated by those skilled in the art that when implementing the transmission device of QPI message provided by the present invention, the QPI
The transmission device of message can only include receiving or sending for QPI message or receiving or sending for ether network packet, or more
Any combination of functional module, this is not limited by the present invention.
It should be noted that:The transmission device that above-described embodiment provides QPI message turns ether network packet in realization QPI message
When, only the example of the division of the above functional modules, in practical application, it can according to need and divide above-mentioned function
With being completed by different functional modules, i.e., the internal structure of equipment is divided into different functional modules, to complete above description
All or part of function.In addition, the sending, receiving method embodiment category of bridge piece provided by the above embodiment and QPI message
In same design, specific implementation process is detailed in embodiment of the method, and which is not described herein again.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
All or part of the steps in the embodiment of the present invention, can use software realization, and corresponding software program can deposit
It stores up in a readable storage medium, such as CD or hard disk.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.