The present invention relates to network communication technology field, more particularly to a kind of source messages conversion equipment and its message conversion side
Method, object message conversion equipment and its message forwarding method.
The content of the invention
Embodiment of the present invention provides a kind of source messages conversion equipment and its message forwarding method, object message conversion equipment
And its message forwarding method, can by SRIO networks by the IB message transmissions of source IB networks to target IB networks, so as to pass through
IB message transmissions between the different IB networks of SRIO real-time performances.
First aspect provides a kind of message forwarding method of source messages conversion equipment, source messages conversion equipment and source IB networks
Connection, and with SRIO network connections, this method includes:Receive the IB messages from source IB networks;Obtain the report positioned at IB messages
The IB addresses of the target IB equipment in the destination address region of literary head, wherein target IB equipment are located at target IB networks;By target IB
The IB address conversions of equipment are the SRIO addresses of corresponding object message conversion equipment, and wherein object message conversion equipment is located at
SRIO networks, and with target IB network connections;The SRIO addresses of object message conversion equipment are placed in the heading of SRIO messages
Destination address region, and IB messages are placed in the load region of SRIO messages, to generate the SRIO messages corresponding to IB messages;
SRIO messages are sent to SRIO networks.
It is corresponding mesh by the IB address conversions of target IB equipment in the first possible implementation of first aspect
The SRIO addresses of mark message conversion equipment include:Address mapping table is read, wherein address mapping table record has target IB equipment
The corresponding relation of IB addresses and the SRIO addresses of object message conversion equipment;Obtained and target IB equipment according to address mapping table
The SRIO addresses of the corresponding object message conversion equipment in IB addresses.
In second of possible implementation of first aspect, the SRIO addresses of object message conversion equipment are placed in
The destination address region of the heading of SRIO messages, and IB messages are placed in the load region of SRIO messages, corresponded to generating
The SRIO messages of IB messages include:Obtain the message length in the message length region for the heading for being located at IB messages;Judge message
Whether length is more than preset data length, and IB messages are divided into serial number if so, being measured on the basis of preset data length
Multiple data segment informations, and multiple data segment informations are respectively placed in the load region of multiple SRIO messages, by object message
The SRIO addresses of conversion equipment are placed in the destination address region of the heading of multiple SRIO messages, serial number are placed in multiple
The reserved bit region of the heading of SRIO messages, to generate multiple SRIO messages corresponding to IB messages.
In the third possible implementation of first aspect, receive after the IB messages from source IB networks, the side
Method further comprises:The IB addresses of the source IB equipment in the source address region for the heading for being located at IB messages are obtained, wherein source IB is set
It is standby to be located at source IB networks;By the SRIO addresses that the IB address conversions of source IB equipment are corresponding source messages conversion equipment;Source is reported
The SRIO addresses of literary conversion equipment are placed in the source address region of the heading of SRIO messages.
With reference to the third possible implementation of first aspect, in the 4th kind of possible implementation, by the source
The IB address conversions of IB equipment include for the SRIO addresses of the corresponding source messages conversion equipment:Address mapping table is read, its
Middle address mapping table records the corresponding relation of the IB addresses of active IB equipment and the SRIO addresses of source messages conversion equipment;Base area
Location mapping table obtains the SRIO addresses of source messages conversion equipment corresponding with the IB addresses of source IB equipment.
In the 5th kind of possible implementation of first aspect, generation is further wrapped corresponding to the SRIO messages of IB messages
Include:The Format Type region of the heading of SRIO messages is set to user's defined function.
Second aspect provides a kind of message forwarding method of object message conversion equipment, object message conversion equipment and target
IB network connections, and with SRIO network connections, this method includes:Receive the SRIO messages from SRIO networks, wherein SRIO reports
The load region of text is equipped with IB messages, and the destination address region of the heading of SRIO messages is equipped with object message conversion equipment
SRIO addresses, the destination address region of the heading of IB messages is equipped with the IB addresses of target IB equipment, and target IB equipment is located at mesh
Mark in IB networks;IB messages are obtained from the load region of SRIO messages;IB messages are sent to target IB networks.
In the first possible implementation of second aspect, receiving the SRIO messages from SRIO networks includes:Connect
Multiple SRIO messages from SRIO networks are received, the load region of each of which SRIO messages is equipped with data segment information, many numbers
IB messages are constituted according to segment information, the destination address region of the heading of every SRIO messages is equipped with object message conversion equipment
SRIO addresses, the reserved bit region of the heading of every SRIO messages is equipped with the corresponding serial number of data segment information;From SRIO
The load region of message, which obtains IB messages, to be included:Multiple data segment informations are obtained from the load regions of multiple SRIO messages, from many
The reserved bit region of the heading of individual SRIO messages obtains multiple serial numbers, according to serial number by multiple data segment information groups
Synthesize IB messages.
In second of possible implementation of second aspect, the source address region of the heading of SRIO messages is further
The SRIO addresses of source messages conversion equipment are equipped with, this method further comprises:From the source address region of the heading of SRIO messages
Obtain the SRIO addresses of source messages conversion equipment.
In the third possible implementation of second aspect, from the load regions of SRIO messages obtain IB messages be
What preparatory condition was performed after being satisfied, preparatory condition is:The Format Type region of the heading of SRIO messages is set to user's definition
Function.
The third aspect provides a kind of source messages conversion equipment, source messages conversion equipment and source IB network connections, and and SRIO
Network connection, source messages conversion equipment includes:IB message receiving modules, for receiving the IB messages from source IB networks;IB is set
Standby address acquisition module, the IB addresses of the target IB equipment in the destination address region for obtaining the heading positioned at IB messages,
Wherein target IB equipment is located at target IB networks;Address conversion module, for being correspondence by the IB address conversions of target IB equipment
Object message conversion equipment SRIO addresses, wherein object message conversion equipment be located at SRIO networks, and with target IB networks
Connection;SRIO message generation modules, the heading for the SRIO addresses of object message conversion equipment to be placed in SRIO messages
Destination address region, and IB messages are placed in the load region of SRIO messages, to generate the SRIO messages corresponding to IB messages;
SRIO message sending modules, for SRIO messages to be sent to SRIO networks.
In the first possible implementation of the third aspect, source messages conversion equipment further comprises address of cache
Table, wherein address mapping table record have the IB addresses of target IB equipment are corresponding with the SRIO addresses of object message conversion equipment to close
System, address conversion module is used for:Read address mapping table;Obtain corresponding with the IB addresses of target IB equipment according to address mapping table
Object message conversion equipment SRIO addresses.
In second of possible implementation of the third aspect, SRIO message generation modules are used for:Obtain and be located at IB reports
The message length in the message length region of the heading of text;Judge whether message length is more than preset data length, if so, with pre-
IB messages are divided into multiple data segment informations with serial number if being measured on the basis of data length, and by multiple data segment informations
The load region of multiple SRIO messages is respectively placed in, the SRIO addresses of object message conversion equipment are placed in multiple SRIO messages
The destination address region of heading, serial number is placed in the reserved bit region of the heading of multiple SRIO messages, with generation pair
Should be in multiple SRIO messages of IB messages.
In the third possible implementation of the third aspect, target IB device addresses acquisition module is further used for:
The IB addresses of the source IB equipment in the source address region for the heading for being located at IB messages are obtained, wherein source IB equipment is located at source IB nets
Network;Address conversion module is further used for:By the SRIO that the IB address conversions of source IB equipment are corresponding source messages conversion equipment
Address;SRIO message generation modules are further used for:The SRIO addresses of source messages conversion equipment are placed in the message of SRIO messages
The source address region of head.
With reference to the third possible implementation of the third aspect, in the 4th kind of possible implementation, device enters one
Step includes address mapping table, wherein address mapping table with recording the IB addresses of active IB equipment and the SRIO of source messages conversion equipment
The corresponding relation of location, address conversion module is used for:Read address mapping table;IB with source IB equipment is obtained according to address mapping table
The SRIO addresses of the corresponding source messages conversion equipment in address.
In the 5th kind of possible implementation of the third aspect, SRIO message generation modules are further used for:By SRIO
The Format Type region of the heading of message is set to user's defined function.
Fourth aspect provides a kind of object message conversion equipment, object message conversion equipment and target IB network connections, and
With SRIO network connections, object message conversion equipment includes:SRIO message receiving modules, for receiving from SRIO networks
SRIO messages, the load region of wherein SRIO messages is equipped with IB messages, and the destination address region of the heading of SRIO messages is equipped with
The SRIO addresses of object message conversion equipment, the destination address region of the heading of IB messages is with being equipped with the IB of target IB equipment
Location, target IB equipment is located in target IB networks;IB Receive message modules, for obtaining IB reports from the load region of SRIO messages
Text;IB message sending modules, for IB messages to be sent to target IB networks.
In the first possible implementation of fourth aspect, SRIO message receiving modules are used for:Receive and come from SRIO
Multiple SRIO messages of network, the load region of each of which SRIO messages is equipped with data segment information, multiple data segment information groups
Into IB messages, the destination address region of the heading of every SRIO messages is equipped with the SRIO addresses of object message conversion equipment, often
The reserved bit region of the heading of one SRIO messages is equipped with the corresponding serial number of data segment information;IB Receive messages module is used
In:Multiple data segment informations are obtained from the load region of multiple SRIO messages, from the reserved bit of the heading of multiple SRIO messages
Region obtains multiple serial numbers, and multiple data segment informations are combined into IB messages according to serial number.
In second of possible implementation of fourth aspect, the source target area of the heading of SRIO messages is further
The SRIO addresses of source messages conversion equipment are equipped with, IB Receive message modules are further used for:From the source of the heading of SRIO messages
Address area obtains the SRIO addresses of source messages conversion equipment.
In the third possible implementation of fourth aspect, IB Receive messages module after preparatory condition is satisfied from
The load region of SRIO messages obtains IB messages, and preparatory condition is:The Format Type region of the heading of SRIO messages is set to use
Family defined function.
Embodiment of the present invention provide source messages conversion equipment and its message forwarding method, object message conversion equipment and
Its message forwarding method, by receiving the IB messages from source IB networks, obtains the mesh in the message head region of IB messages
The IB addresses of IB equipment are marked, by the SRIO addresses that the IB address conversions of target IB equipment are corresponding object message conversion equipment,
The SRIO addresses of object message conversion equipment are placed in the message head region of SRIO messages, and IB messages are placed in SRIO messages
Load region, to generate the SRIO messages corresponding to IB messages and send to SRIO networks, also, passes through the load from SRIO messages
Lotus region obtains IB messages, and IB messages are sent to target IB networks, can be reported the IB of source IB networks by SRIO networks
Text is transmitted to target IB networks, so as to pass through the IB message transmissions between the different IB networks of SRIO real-time performances.
Embodiment
The present invention is described in detail with embodiment below in conjunction with the accompanying drawings.
Referring firstly to Fig. 1, Fig. 1 is provided with the source messages conversion equipment of the present invention, the net of object message conversion equipment
The system architecture diagram of network environment.As shown in figure 1, the network environment includes source IB networks 10, target IB networks 20, SRIO networks
30th, source messages conversion equipment 40 and object message conversion equipment 50.
Source IB networks 10 include source IB equipment 101, IB equipment 102, IB interchangers 103 and IB interchangers 104, target IB
Network 20 includes IB equipment 201, target IB equipment 202, IB interchangers 203 and IB interchangers 204.
SRIO networks 30 include SRIO equipment 301, SRIO interchangers 302 and SRIO equipment 303.
Source messages conversion equipment 40 is connected with source IB networks 10, and is connected with SRIO networks 30.Object message conversion equipment
50 are connected with target IB networks 20, and are connected with SRIO networks 30.
Specifically, source messages conversion equipment 40, so as to access source IB networks 10, is passed through by being connected with IB interchangers 104
It is connected with SRIO interchangers 302, so as to access SRIO networks 30.Object message conversion equipment 50 with IB interchangers 203 by connecting
Connect, so that target IB networks 20 are accessed, by being connected with SRIO interchangers 302, so as to access SRIO networks 30.
In embodiments of the present invention, source messages conversion equipment 40 is in addition to SRIO addresses, with more IB addresses, source report
The SRIO addresses of literary conversion equipment 40 may be such that source messages conversion equipment 40 is identified in SRIO networks 30, source messages converting means
The IB addresses for putting 40 may be such that source messages conversion equipment 40 is identified in source IB networks 10.
Similarly, object message conversion equipment 50 is in addition to SRIO addresses, with more IB addresses, object message conversion
The SRIO addresses of device 50 may be such that object message conversion equipment 50 is identified in SRIO networks 30, object message conversion equipment
50 IB addresses may be such that object message conversion equipment 50 is identified in target IB networks 20.
In source IB networks 10, IB interchangers 103 and IB interchangers 104 can be used for completing IB messages in source IB networks 10
Distribution and transmission, specifically, message can be sent to the corresponding IB in the address by reading the destination address in message and set
It is standby.
In target IB networks 20, IB interchangers 203 and IB interchangers 204 can be used for completing IB messages in target IB nets
Distribution and transmission in network 20, specifically, can by read the destination address in message by message be sent to the address correspondence
IB equipment.
In SRIO networks 30, SRIO interchangers 302 can be used for completing distribution of the SRIO messages in SRIO networks 30
And transmission, specifically, the corresponding SRIO equipment in the address can be sent to by reading the destination address in message by message.
In the prior art, IB messages can only source IB networks 10 or target IB networks 20 internal transmission, it is impossible to pass through
SRIO networks 30, and the technical problems to be solved by the invention be IB messages in source IB networks 10 to be caused can be by SRIO
Network 30 is transmitted to target IB networks 20.
Fig. 2 is referred to below, and Fig. 2 is the flow of the message forwarding method first embodiment of source messages conversion equipment of the present invention
Figure.In the present embodiment, it is specifically described using the source messages conversion equipment 40 shown in Fig. 1 as main body, as shown in Fig. 2 this
The message forwarding method of the source messages conversion equipment of embodiment comprises the following steps:
Step 401:Receive the IB messages from source IB networks.Specifically, IB messages are that source IB equipment 101 is sent,
Assuming that the destination address of the IB messages is that (it is located in target IB networks 20 target IB equipment 202, without in source IB networks 10
In), therefore, IB interchangers 104 can not find corresponding destination address in source IB networks 10, therefore without corresponding in source IB networks 10
IB equipment receive the message, the IB messages are then received by source messages conversion equipment 40.
, can be with further reference to Fig. 3 in order to more clearly illustrate, Fig. 3 is the message of source messages conversion equipment of the present invention
The IB message format schematic diagrames of conversion method first embodiment.As shown in figure 3, IB messages 902 are arranged on starting delimiter and knot
Between beam delimiter, wherein IB messages 902 include heading, payload (Payload) and check code.
Specifically, heading includes LRH (Local Route Header, local routing head) information, GRH (Global
Routing Header, the overall situation route head) information, BTH (Base Transport Header, basic transmission head) information, ETH
(Extended Transport Header extend transmission head) information, check code includes ICRC (Invariant Cyclic
Redundancy Check, standard cyclic redundancy code check) check code and VCRC (Variant Cyclic Redundancy
Check, mutation CRC) check code.
Wherein, LRH information specifically includes region as shown in table 1:
Table 1:
Step 402:Obtain the address of the target IB equipment in the DLID regions for the heading for being located at IB messages, wherein target IB
Equipment is located at target IB networks.
Step 403:By the SRIO addresses that the IB address conversions of target IB equipment are corresponding object message conversion equipment.Tool
For body, can in the following manner by by the IB address conversions of target IB equipment be corresponding object message conversion equipment SRIO
Address:
Address mapping table is read, wherein address mapping table record has IB addresses and the object message converting means of target IB equipment
The corresponding relation for the SRIO addresses put, obtains object message corresponding with the IB addresses of target IB equipment according to address mapping table and turns
The SRIO addresses of changing device.
With reference to Fig. 1, address mapping table is as shown in table 2:
Table 2:
The IB addresses of IB equipment 201 |
The SRIO addresses of object message conversion equipment 50 |
The IB addresses of target IB equipment 202 |
The SRIO addresses of object message conversion equipment 50 |
Therefore, table 2 is address mapping table, its IB address for listing target IB equipment 202 and object message conversion equipment
The corresponding relation of 50 SRIO addresses.Turn it is worth noting that, address mapping table can also record IB equipment 201 with object message
The corresponding relation of changing device 50.
And Fig. 4 is referred to, Fig. 4 is the message lattice of the message forwarding method first embodiment of source messages conversion equipment of the present invention
Formula transition diagram, as shown in figure 4, the packet of IB messages 902 specifically includes heading 9021, load region 9022 and school
Test symbol 9023.Specifically can by reading the IB addresses of the target IB equipment 202 in IB messages 902, wherein, target IB equipment 202
IB addresses be recorded in DLID regions in the local routing header of the heading of IB messages 902.And the ground according to table 2
Location mapping table obtains the SRIO addresses of the corresponding object message conversion equipment 50 in IB addresses of target IB equipment 202.
Step 404:The SRIO addresses of object message conversion equipment are placed in the destination address area of the heading of SRIO messages
Domain, and IB messages are placed in the load region of SRIO messages, to generate the SRIO messages corresponding to IB messages.
Fig. 5 specifically is referred to, Fig. 5 is the SRIO of the message forwarding method first embodiment of source messages conversion equipment of the present invention
Message format schematic diagram.As shown in figure 5, SRIO messages specifically include heading, load region and check character.
Wherein, heading specifically includes response address, reserved bit, priority, device identification length, Format Type, target
Address, source address and logical layer information.
Step 405:SRIO messages are sent to SRIO networks.
Fig. 6 is referred to below, and Fig. 6 is the stream of the message forwarding method first embodiment of object message conversion equipment of the present invention
Cheng Tu, in the present embodiment, is illustrated using the object message conversion equipment 50 shown in Fig. 1 as main body, as shown in fig. 6, this
The message forwarding method of subject invention message conversion equipment comprises the following steps:
Step 501:Receive the SRIO messages from SRIO networks.
Step 502:IB messages are obtained from the load region of SRIO messages.
Step 503:IB messages are sent to target IB networks.
Due in the message forwarding method first embodiment of source messages conversion equipment of the present invention, source messages conversion equipment 40
SRIO messages are sent to SRIO networks 30, and in the SRIO messages, its load region is equipped with IB messages, the mesh of its heading
Mark address is equipped with the SRIO addresses of object message conversion equipment 50, and therefore, SRIO messages can be forwarded to via SRIO interchangers 302
Object message conversion equipment 50 so that object message conversion equipment 50 can receive the SRIO messages from SRIO networks 30.
Object message conversion equipment 50 obtains IB messages from the load region of SRIO messages, and IB messages are sent to target
IB networks 20.
Because the DLID regions of the heading of IB messages are equipped with the IB addresses of target IB equipment 202, therefore, IB messages are in mesh
Mark IB networks being forwarded to up to target IB equipment 202 via IB interchangers 203 and IB interchangers 204.
Therefore, in the message forwarding method first embodiment and object message converting means of source messages conversion equipment of the present invention
In the message forwarding method first embodiment put, the work of source messages conversion equipment and object message conversion equipment is specifically described
Mode.Embodiment of the present invention provide source messages conversion equipment and its message forwarding method, object message conversion equipment and its
Message forwarding method, at source messages conversion equipment end:By receiving the IB messages from source IB networks, obtain positioned at IB messages
The IB addresses of target IB equipment in message head region, the IB address conversions of target IB equipment are changed for corresponding object message
The SRIO addresses of device, the SRIO addresses of object message conversion equipment are placed in the message head region of SRIO messages, and IB is reported
Text is placed in the load region of SRIO messages, to generate the SRIO messages corresponding to IB messages and send to SRIO networks;Also,
Object message conversion equipment end:By obtaining IB messages from the load region of SRIO messages, and IB messages are sent to target IB
Network, so that by SRIO networks by the IB message transmissions of source IB networks 10 to target IB networks, by SRIO real-time performances not
IB message transmissions between same IB networks.
Fig. 7 is referred to below, and Fig. 7 is the flow of the message forwarding method second embodiment of source messages conversion equipment of the present invention
Figure, as shown in fig. 7, the message forwarding method of source messages conversion equipment of the present invention comprises the following steps:
Step 601:Receive the IB messages from source IB networks.
Step 602:Obtain the IB addresses of the target IB equipment in the DLID regions for the heading for being located at IB messages.Wherein target
IB equipment is located at target IB networks.
Step 603:By the SRIO addresses that the IB address conversions of target IB equipment are corresponding object message conversion equipment.Its
Middle object message conversion equipment be located at SRIO networks 3, and with target IB network connections.
Step 604:Obtain the message length in the PktLen regions for the heading for being located at IB messages;
Step 605:Judge whether message length is more than preset data length, if so, step 606 is performed, if it is not, performing step
Rapid 608.Specifically, preset data length can be arranged as required to by user, it is however generally that, because IB messages are located in
The load region of SRIO messages, and the data length of the load region of SRIO messages is 256 bytes, therefore preset data length can
It is set to 256 bytes.But, preset data length can also be arranged between 1-256 bytes by user according to actual needs, this hair
It is bright that this is not especially limited.
Step 606:Measured on the basis of preset data length and IB messages are divided into multiple data segments letter with serial number
Breath.Wherein, serial number is used for arrangement position of the flag data segment information in IB messages, specifically, if IB messages are divided into n
Individual data segment information, then the serial number of the n data segment information from the beginning to the end be respectively 1,2,3 ..., n.
Step 607:Multiple data segment informations are respectively placed in the load region of multiple SRIO messages, object message is changed
The SRIO addresses of device are placed in the destination address region of the heading of multiple SRIO messages, and serial number is placed in into multiple SRIO reports
The reserved bit region (specific as shown in Figure 5) of the heading of text, to generate multiple SRIO messages corresponding to IB messages.
Step 608:The SRIO addresses of object message conversion equipment are placed in the destination address area of the heading of SRIO messages
Domain, and IB messages are placed in the load region of SRIO messages, to generate the SRIO messages corresponding to IB messages.
Step 609:SRIO messages are sent to SRIO networks.
Fig. 8 is referred to below, and Fig. 8 is the stream of the message forwarding method second embodiment of object message conversion equipment of the present invention
Cheng Tu, in the present embodiment, is illustrated using the object message conversion equipment 50 shown in Fig. 1 as main body, and, it is assumed that above
In the message forwarding method second embodiment of described source messages conversion equipment 40, multiple SRIO messages are generated.Such as Fig. 8 institutes
Show, the message forwarding method of object message conversion equipment of the present invention comprises the following steps:
Step 701:Multiple SRIO messages from SRIO networks are received, the load region of each of which SRIO messages is equipped with
Data segment information, multiple data segment informations constitute IB messages, and the destination address region of the heading of every SRIO messages is equipped with mesh
Mark the SRIO addresses of message conversion equipment, the corresponding order of reserved bit area data segment information of the heading of every SRIO messages
Numbering.
Step 702:Multiple data segment informations are obtained from the load region of multiple SRIO messages, from the report of multiple SRIO messages
The reserved bit region of literary head obtains multiple serial numbers, and multiple data segment informations are combined into IB messages according to serial number.
Step 703:IB messages are sent to target IB networks.
If it is worth noting that, in the message forwarding method second embodiment of source messages conversion equipment described above, producing
Single SRIO messages are given birth to, then the message forwarding method first embodiment that can refer to object message conversion equipment of the present invention carries out phase
It should handle, the present invention is not repeated this.
In the message forwarding method second embodiment and object message conversion equipment of source messages conversion equipment of the present invention
In message forwarding method second embodiment, the work side of source messages conversion equipment and object message conversion equipment is specifically described
Formula.Source messages conversion equipment and its message forwarding method, object message conversion equipment and its report that embodiment of the present invention is provided
Literary conversion method, at source messages conversion equipment end:By receiving the IB messages from source IB networks, the report positioned at IB messages is obtained
The IB addresses of target IB equipment in literary head region, are corresponding object message converting means by the IB address conversions of target IB equipment
The SRIO addresses put, obtain the message length in the PktLen regions for the heading for being located at IB messages, judge whether message length is big
In preset data length, IB messages are divided into multiple data with serial number if so, being measured on the basis of preset data length
Segment information, and multiple data segment informations are respectively placed in the load region of multiple SRIO messages, by object message conversion equipment
SRIO addresses are placed in the destination address region of the heading of multiple SRIO messages, and serial number is placed in the report of multiple SRIO messages
The reserved bit region of literary head, to generate multiple SRIO messages corresponding to IB messages;Also, at object message conversion equipment end:
Multiple SRIO messages are received from SRIO networks, multiple data segment informations are obtained from the load region of multiple SRIO messages, from multiple
The reserved bit region of the heading of SRIO messages obtains multiple serial numbers, is combined multiple data segment informations according to serial number
Sent into IB messages, and by IB messages to target IB networks, so that by SRIO networks by the IB message transmissions of source IB networks 10
To target IB networks, to pass through the IB message transmissions between the different IB networks of SRIO real-time performances.
The message forwarding method second embodiment of source messages conversion equipment of the present invention and the report of object message conversion equipment
Literary conversion method second embodiment emphasis considers the situation that IB message lengths are more than preset data length, by the way that IB messages is long
Degree carries out cutting, to produce multiple data segment informations, and is placed into multiple SRIO messages by multiple data segment informations respectively
Row transmission, so that the present embodiment is suitably applied network environment relatively large to IB message lengths in practical application.
It is worth noting that, in the alternative embodiment of the message forwarding method of source messages conversion equipment of the present invention, source report
Literary conversion equipment can further obtain the IB addresses of the source IB equipment positioned at the SLID regions of the heading of IB messages, wherein source IB
Equipment is located at source IB networks, and IB messages are sent by source IB equipment.The IB address conversions of source IB equipment are reported for corresponding source
The SRIO addresses of literary conversion equipment.The SRIO addresses of source messages conversion equipment are placed in the source address field of the heading of SRIO messages
Domain.
By the source address region for the heading that the SRIO addresses of source messages conversion equipment are placed in SRIO messages, it may be such that
Object message conversion equipment can know the source address of SRIO messages after the SRIO messages are received.
Specifically, source messages conversion equipment can be by reading address mapping table, by the IB address conversions of source IB equipment
For the SRIO addresses of corresponding source messages conversion equipment.Wherein address mapping table records IB addresses and the source messages of active IB equipment
The corresponding relation of the SRIO addresses of conversion equipment, and source report corresponding with the IB addresses of source IB equipment is obtained according to address mapping table
The SRIO addresses of literary conversion equipment.
Table 3 is referred to below, and wherein table 3 is further provided with the IB addresses of source IB equipment on the basis of table 2 and source is reported
The corresponding relation of the SRIO addresses of literary conversion equipment, with reference to Fig. 1, address mapping table is as shown in table 3:
Table 3:
The IB addresses of IB equipment 201 |
The SRIO addresses of object message conversion equipment 50 |
The IB addresses of target IB equipment 202 |
The SRIO addresses of object message conversion equipment 50 |
The IB addresses of source IB equipment 101 |
The SRIO addresses of source messages conversion equipment 40 |
The IB addresses of IB equipment 102 |
The SRIO addresses of source messages conversion equipment 40 |
Wherein, table 3 records what the IB addresses of all IB equipment in active IB networks 10 were connected with source IB networks 40
The IB addresses of all IB equipment in the corresponding relation of the SRIO addresses of source messages conversion equipment 40, and target IB networks 20 with
The corresponding relation of the SRIO addresses for the object message conversion equipment 50 being connected with target IB networks 20.
Also, can be by the message of SRIO messages in the alternative embodiment of the message forwarding method in source messages conversion equipment
The Format Type region of head is set to user's defined function, and object message conversion equipment 50 can be by judging the headings of SRIO messages
Format Type (Ftype, Format type) region (as shown in Figure 5) whether be set to user's defined function, it is common to distinguish
SRIO messages and the SRIO messages with IB messages disclosed in the embodiment of the present invention, so that disclosed in the embodiment of the present invention
Technical scheme can be applied to while there is common SRIO messages and disclosed SRIO messages with IB messages
In SRIO networks.
Fig. 9 is referred to, Fig. 9 is the apparatus structure schematic diagram of the first embodiment of source messages conversion equipment 40 of the present invention, wherein,
Source messages conversion equipment 40 and source IB network connections, and with SRIO network connections, source messages conversion equipment 40 includes:
IB messages receiving module 4401, for receiving the IB messages from source IB networks;
IB device addresses acquisition module 4402, sets for obtaining the target IB in DLID regions of the heading positioned at IB messages
Standby IB addresses, wherein target IB equipment are located at target IB networks;
Address conversion module 4403, for being corresponding object message conversion equipment by the IB address conversions of target IB equipment
SRIO addresses, wherein object message conversion equipment be located at SRIO networks, and with target IB network connections;
SRIO message generation modules 4404, the report for the SRIO addresses of object message conversion equipment to be placed in SRIO messages
The destination address region of literary head, and IB messages are placed in the load region of SRIO messages, to generate the SRIO corresponding to IB messages
Message;
SRIO messages sending module 4405, for SRIO messages to be sent to SRIO networks.
Alternatively, source messages conversion equipment 40 further comprises address mapping table, and wherein address mapping table record has target
The corresponding relation of the IB addresses of IB equipment and the SRIO addresses of object message conversion equipment, address conversion module 4403 is used for:
Read address mapping table;
The SRIO of object message conversion equipment corresponding with the IB addresses of target IB equipment is obtained according to address mapping table
Location.
Alternatively, SRIO message generation modules 4404 are further used for:Obtain the PktLen of the heading positioned at IB messages
The message length in region;Judge whether message length is more than preset data length, will if so, being measured on the basis of preset data length
IB messages are divided into multiple data segment informations with serial number, and multiple data segment informations are respectively placed in into multiple SRIO messages
Load region, the SRIO addresses of object message conversion equipment are placed in the destination address area of the heading of multiple SRIO messages
Domain, serial number is placed in the reserved bit region of the heading of multiple SRIO messages, to generate corresponding to the multiple of IB messages
SRIO messages.SRIO messages sending module 4405 sends the plurality of SRIO messages to SRIO networks.
Alternatively, IB device addresses acquisition module 4402 is used for:Obtain the SLID regions for the heading for being located at IB messages
The IB addresses of source IB equipment, wherein source IB equipment are located at source IB networks;Address conversion module 4403 is by the IB addresses of source IB equipment
Be converted to the SRIO addresses of corresponding source messages conversion equipment 40;SRIO message generation modules 4404 are by source messages conversion equipment 40
SRIO addresses be placed in SRIO messages heading source address region.
Alternatively, source messages conversion equipment 40 further comprises address mapping table, and wherein address mapping table records active IB
The corresponding relation of the IB addresses of equipment and the SRIO addresses of source messages conversion equipment 40, address conversion module 4403 is used for:Read
Address mapping table;The SRIO of source messages conversion equipment 40 corresponding with the IB addresses of source IB equipment is obtained according to address mapping table
Location.
Alternatively, SRIO message generation modules 4404 are used for:The Format Type region of the heading of SRIO messages is set to
User's defined function.
Specifically, each functional module of the above can be realized using field programmable gate array or application specific integrated circuit,
Also, it in some cases, can also be realized with program, hereafter disclose what is used during using the program realization present invention by detailed
Hardware structure.
Figure 10 is referred to below, and Figure 10 is the apparatus structure signal of the first embodiment of object message conversion equipment 50 of the present invention
Figure, object message conversion equipment 50 and target IB network connections, and with SRIO network connections, object message conversion equipment 50 wraps
Include:
SRIO messages receiving module 5501, the load for receiving SRIO messages, wherein SRIO messages from SRIO networks
Lotus region is equipped with IB messages, and the destination address region of the heading of SRIO messages is with being equipped with the SRIO of object message conversion equipment 50
Location, the DLID regions of the heading of IB messages are equipped with the IB addresses of target IB equipment, and target IB equipment is located in target IB networks;
IB Receive messages module 5502, for obtaining IB messages from the load region of SRIO messages;
IB messages sending module 5503, for IB messages to be sent to target IB networks.
Alternatively, SRIO messages receiving module 5501 is used for:Multiple SRIO messages from SRIO networks are received, wherein often
The load region of one SRIO messages is equipped with data segment information, and multiple data segment informations constitute IB messages, the report of every SRIO messages
The destination address region of literary head is equipped with the SRIO addresses of object message conversion equipment 50, the reservation of the heading of every SRIO messages
The corresponding serial number of position area data segment information;
IB Receive messages module 5502 is used for:Multiple data segment informations are obtained from the load region of multiple SRIO messages, from
The reserved bit region of the heading of multiple SRIO messages obtains multiple serial numbers, according to serial number by multiple data segment informations
It is combined into IB messages.
Alternatively, the source target area of the heading of SRIO messages is with being further equipped with the SRIO of source messages conversion equipment
Location, IB Receive messages module 5502 is further used for:Source messages conversion is obtained from the source address region of the heading of SRIO messages
The SRIO addresses of device.
Alternatively, the Format Type region of the heading of SRIO messages is set to user's defined function, IB Receive message modules
5502 obtain IB messages after preparatory condition is satisfied from the load region of SRIO messages, and preparatory condition is:IB Receive message moulds
The Format Type region that block 5502 determines the heading of SRIO messages is set to user's defined function.
Figure 11 is referred to below, and Figure 11 is the apparatus structure schematic diagram of source messages conversion equipment second embodiment of the present invention,
Source messages conversion equipment 40 and source IB network connections, and with SRIO network connections, source messages conversion equipment 40 includes processor
4411st, SRIO interfaces 4412, memory 4413, IB interfaces 4414 and bus 4415, processor 4411, SRIO interfaces 4412,
Memory 4413, IB interfaces 4414 are connected with bus 4415 respectively, to interact communication.
Specifically, source messages conversion equipment 40 is by IB interfaces 4414 and source IB network connections, and passes through SRIO interfaces
4412 with SRIO network connections.Wherein:
IB interfaces 4414, for receiving the IB messages from source IB networks;
Memory 4413, for storage program, the program is used for:
Obtain the IB addresses of the target IB equipment in the DLID regions for the heading for being located at IB messages, wherein target IB equipment position
In target IB networks;
By the SRIO addresses that the IB address conversions of target IB equipment are corresponding object message conversion equipment, wherein target report
Literary conversion equipment be located at SRIO networks, and with target IB network connections;
The SRIO addresses of object message conversion equipment are placed in the destination address region of the heading of SRIO messages, and by IB
Message is placed in the load region of SRIO messages, to generate the SRIO messages corresponding to IB messages;
Processor 4411, for running the program.
SRIO interfaces 4412, for SRIO messages to be sent to SRIO networks.
Alternatively, memory 4413 is stored with address mapping table, and wherein address mapping table record has the IB of target IB equipment
The corresponding relation of address and the SRIO addresses of object message conversion equipment, the program is used for:Read address mapping table;According to address
Mapping table obtains the SRIO addresses of object message conversion equipment corresponding with the IB addresses of target IB equipment.
Alternatively, the program is further used for:Obtain the message length in the PktLen regions for the heading for being located at IB messages;
Judge whether message length is more than preset data length, carried if so, being measured on the basis of preset data length and being divided into IB messages
Multiple data segment informations of serial number, and multiple data segment informations are respectively placed in the load region of multiple SRIO messages, will
The SRIO addresses of object message conversion equipment are placed in the destination address region of the heading of multiple SRIO messages, and serial number is put
In the reserved bit region of the heading of multiple SRIO messages, to generate multiple SRIO messages corresponding to IB messages.SRIO interfaces
4412 send the plurality of SRIO messages to SRIO networks.
Alternatively, the program is used for:The IB addresses of the source IB equipment in the SLID regions for the heading for being located at IB messages are obtained,
Wherein IB equipment in source is located at source IB networks;By the SRIO that the IB address conversions of source IB equipment are corresponding source messages conversion equipment 40
Address;The SRIO addresses of source messages conversion equipment 40 are placed in the source address region of the heading of SRIO messages.
Alternatively, address mapping table further records the IB addresses of active IB equipment and the SRIO of source messages conversion equipment 40
The corresponding relation of address, the program is used for:Read address mapping table;IB addresses with source IB equipment are obtained according to address mapping table
The SRIO addresses of corresponding source messages conversion equipment 40.
Alternatively, SRIO interfaces 4412 are used for:The Format Type region of the heading of SRIO messages is set to user's definition
Function.
Figure 12 is referred to below, and Figure 12 is the apparatus structure signal of the second embodiment of object message conversion equipment 50 of the present invention
Figure, object message conversion equipment 50 and target IB network connections, and with SRIO network connections, object message conversion equipment 50 includes
Processor 5511, SRIO interfaces 5512, memory 5513, IB interfaces 5514 and bus 5515, processor 5511, SRIO interfaces
5512nd, memory 5513, IB interfaces 5514 are connected with bus 5515 respectively, to interact communication.
Specifically, object message conversion equipment 50 is by IB interfaces 5514 and target IB network connections, and passes through SRIO
Interface 5512 and SRIO network connections.Wherein:
SRIO interfaces 5512, for receiving the SRIO messages from SRIO networks, the load region of wherein SRIO messages is put
There are IB messages, the destination address region of the heading of SRIO messages is equipped with the SRIO addresses of object message conversion equipment 50, IB reports
The DLID regions of the heading of text are equipped with the IB addresses of target IB equipment, and target IB equipment is located in target IB networks;
Memory 5513, has program stored therein, and the program is used to obtain IB messages from the load region of SRIO messages,
IB messages are sent to target IB networks.
Alternatively, SRIO interfaces 5512 are used for:Receive multiple SRIO messages from SRIO networks, each of which SRIO reports
The load region of text is equipped with data segment information, and multiple data segment informations constitute IB messages, the mesh of the heading of every SRIO messages
Mark address area is equipped with the SRIO addresses of object message conversion equipment 50, the reserved bit number of regions of the heading of every SRIO messages
According to the corresponding serial number of segment information.
The program is used for:Multiple data segment informations are obtained from the load region of multiple SRIO messages, from multiple SRIO messages
The reserved bit region of heading obtain multiple serial numbers, multiple data segment informations are combined into by IB reports according to serial number
Text.
Alternatively, the source target area of the heading of SRIO messages is with being further equipped with the SRIO of source messages conversion equipment
Location, the program is further used for:From the source address region of the heading of SRIO messages with obtaining the SRIO of source messages conversion equipment
Location.
Alternatively, the Format Type region of the heading of SRIO messages is set to user's defined function, and the program is in default bar
Part obtains IB messages after being satisfied from the load region of SRIO messages, and preparatory condition is:Determine the heading of SRIO messages
Format Type region is set to user's defined function.
Refer to Figure 13 below, Figure 13 is provided with the source messages conversion equipment of the present invention, object message conversion equipment
The system architecture diagram of another network environment.As shown in figure 13, the network environment include source IB networks 810, target IB networks 811,
SRIO networks 800, source messages conversion equipment 40 and object message conversion equipment 50.
In the present embodiment, illustrated with a more extreme example, i.e.,:Source IB networks 810 only include source IB equipment
8101, target IB network 811 only includes target IB equipment 8111.
SRIO networks 800 include SRIO equipment 801, SRIO equipment 802, SRIO equipment 803, SRIO equipment 804, SRIO reports
Literary interchanger 805, SRIO message exchangers 806 and SRIO message exchangers 807.
Similarly, the IB messages that source IB equipment 8101 is sent are loaded into SRIO messages by source messages conversion equipment 40, concurrently
SRIO networks 800 are delivered to, specifically, SRIO messages can be sent to SRIO message exchangers 807, SRIO messages are reported through SRIO
Literary interchanger 807 is forwarded to object message conversion equipment 50, and object message conversion equipment 50 obtains IB messages from SRIO messages,
And send to target IB equipment 8111.
Therefore, the present invention, which can be also suitably used for source IB networks 10, only includes single IB equipment, and target IB networks 20 only include single
The network environment of individual IB equipment.
Therefore, the source messages conversion equipment and its message forwarding method of embodiment of the present invention offer, object message conversion
Device and its message forwarding method, by receiving the IB messages from source IB networks, obtain the message head region positioned at IB messages
In target IB equipment IB addresses, by the IB address conversions of target IB equipment be corresponding object message conversion equipment SRIO
Address, the SRIO addresses of object message conversion equipment is placed in the message head region of SRIO messages, and IB messages are placed in into SRIO
The load region of message, to generate the SRIO messages corresponding to IB messages and send to SRIO networks, also, by being reported from SRIO
The load region of text obtains IB messages, and IB messages is sent to target IB networks, can be by SRIO networks by source IB networks
IB message transmissions to target IB networks, so as to pass through the IB message transmissions between the different IB networks of SRIO real-time performances.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this
Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technology leads network, is included within the scope of the present invention.