CN101079815A - Message forwarding method, system and device - Google Patents
Message forwarding method, system and device Download PDFInfo
- Publication number
- CN101079815A CN101079815A CNA2007101182539A CN200710118253A CN101079815A CN 101079815 A CN101079815 A CN 101079815A CN A2007101182539 A CNA2007101182539 A CN A2007101182539A CN 200710118253 A CN200710118253 A CN 200710118253A CN 101079815 A CN101079815 A CN 101079815A
- Authority
- CN
- China
- Prior art keywords
- message
- equipment
- address
- receiving
- quiet lotus
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 240000002853 Nelumbo nucifera Species 0.000 claims description 144
- 235000006508 Nelumbo nucifera Nutrition 0.000 claims description 144
- 235000006510 Nelumbo pentapetala Nutrition 0.000 claims description 144
- 238000006243 chemical reaction Methods 0.000 claims description 69
- 230000008569 process Effects 0.000 claims description 28
- 238000005538 encapsulation Methods 0.000 claims description 26
- 230000015572 biosynthetic process Effects 0.000 claims description 9
- 101000701853 Rattus norvegicus Serine protease inhibitor A3N Proteins 0.000 claims description 8
- 101710142113 Serine protease inhibitor A3K Proteins 0.000 claims description 8
- 230000008859 change Effects 0.000 claims description 5
- 230000003068 static effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000005540 biological transmission Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 239000012467 final product Substances 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000013467 fragmentation Methods 0.000 description 1
- 238000006062 fragmentation reaction Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a report switching method, system and equipment between the first equipment with interface irrelative to address and the second equipment with interface relative to the address, which comprises the following steps: the first equipment packs the data to the second equipment in the static load part of the first report to send; the switching equipment receives the first report of the first equipment to converse the first report to the second report format, which transmits the second report to the second equipment; the first report is the report of interface protocol irrelative to the address; the second report is the report of interface protocol relative to the address. The invention reduces the realizing difficulty of the interface equipment irrelative to the address, which improves the report processing efficiency of the equipment effectively.
Description
Technical field
The present invention relates to the network communications technology, relate in particular to a kind of message forwarding method, system and device.
Background technology
System's packet switch interface 4 (SPI-4) is a kind of high speed transmission of signals interface, is used between physical layer (PHY) device and link layer (LINK) device the transmission of bag and cell, can support the message transmission rate up to 10Gb/s.Peripheral element extension interface (PCI-E) is a kind of interconnect bus of point-to-point serial framework fast, can improve the bus interconnection performance greatly, reduce system cost.
In some application scenario, need equipment (being called for short SPI-4 equipment) that will have the SPI-4 interface and equipment (being called for short PCI-E equipment) interconnection sometimes with PCI-E interface, carry out data communication.But, because the SPI-4 interface does not relate to the address, and the PCI-E interface relates to the address, the message format of the two is different, therefore, in order to support the interconnection of SPI-4 interface and PCI-E interface, need come SPI-4 message and PCI-E transport layer protocol (TLP) message are changed mutually by a conversion equipment.
Fig. 1 shows the transfer process schematic diagram of SPI-4 message (Packet) and PCI-E TLP message in the prior art.Referring to shown in Figure 1, the SPI-4 message generally comprises control (Control) field and quiet lotus (Payload) two parts; The TLP message comprises head (Header) and Payload two parts.When SPI-4 equipment during to the PCI-E equipment sending data, SPI-4 equipment at first will be constructed complete TLP message, the data that will send are placed on the quiet lotus part of TLP message, PCI-E operation address information is placed on the head of TLP message, and then will constructs the quiet lotus that good TLP message is put into the SPI-4 message and partly send; Conversion equipment is peeled off the control field of SPI-4 message after receiving the message that the SPI-4 side sends, and remaining TLP message transmission is given PCI-E equipment after will having peeled off control field.Mail to the message of SPI-4 equipment for PCI-E equipment, the TLP message from the PCI-E side that directly will receive after conversion equipment is received is encapsulated in the quiet lotus of SPI-4, then packaged SPI-4 message is sent to SPI-4 equipment; SPI-4 equipment need be disassembled the message of receiving after receiving the message that conversion equipment sends, and peels off the head of TLP message in the quiet lotus of SPI-4, obtains the quiet lotus data of TLP.
As seen, in the transfer process of existing SPI-4 message and PCI-E TLP message, have with the irrelevant interface in address be structure and the tear down operations that the SPI-4 equipment of SPI-4 interface need carry out the TLP message, can increase the realization difficulty of SPI-4 equipment like this, reduce the message treatment effeciency of SPI-4 equipment.In addition, other have and the equipment of the interface that the address is irrelevant and have and the equipment of the interface that the address is relevant between the message transfer process in, equally also have the problems referred to above.Such as, in the message transfer process of SPI-2 equipment and PCI-E equipment, SPI-3 equipment and PCI-E equipment and ethernet device and PCI-E equipment, these equipment with the interface that has nothing to do with the address such as SPI-2 equipment, SPI-3 equipment and PCI-E equipment need carry out the structure of TLP message equally and disassemble, thereby cause having with the realization difficulty of the equipment of the irrelevant interface in address higher, the message treatment effeciency is low.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of message forwarding method, system and device, reduces the realization difficulty of the equipment with the interface that has nothing to do with the address.
For achieving the above object, the invention provides a kind of message forwarding method, be applicable to have with first equipment of the irrelevant interface in address and have and second equipment of the interface that the address is relevant between message change, this method comprises:
The data encapsulation that first equipment will mail to second equipment partly sends the quiet lotus of first message;
Conversion equipment convert first message of receiving to second message format, and second message that will be converted to sends to second equipment after receiving first message that first equipment sends;
Wherein, described first message is for adopting the message of the irrelevant interface protocol in described and address, and described second message is for adopting the message of the described interface protocol relevant with the address.
The head of described first message carries the data manipulation initial address message (IAM);
The process that first message that described conversion equipment will be received converts second message format to comprises:
Conversion equipment carries out burst according to the maximum quiet lotus length of second message to the quiet lotus of first message, and be respectively each burst and add second header that comprises address information, be packaged into second message format, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst.
This method further comprises:
After conversion equipment was received second message that second equipment sends, the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sent to first equipment.
The process that the quiet lotus that the quiet lotus of described second message that will receive is encapsulated in first message partly sends to first equipment comprises:
Conversion equipment is second message received of buffer memory one by one, determine to constitute last second message of first message, the quiet lotus of described last second message and the quiet lotus of all second messages of buffer memory is encapsulated in same first message before this message quiet lotus are partly sent to first equipment, and discharge the buffer memory of all second messages that constitute this first message.
The process of last second message of described definite formation first message comprises:
Conversion equipment is after whenever receiving one second message, whether the address of judging current second message of receiving is continuous with the address of preceding second message of once receiving, if discontinuous, second message of once receiving before then determining is for constituting last second message of first message; If continuously, whether the quiet lotus length of then judging current second message of receiving less than the maximum quiet lotus length of second message, if less than, determine that then current second message of receiving is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
The process of last second message of described definite formation first message also comprises:
For first second message of receiving, whether the quiet lotus length that conversion equipment is judged this message less than the maximum quiet lotus length of second message, if less than, determine that then this message is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
This method further comprises:
Conversion equipment starts a timer after whenever receiving one second message, if do not receive next second message behind the timer expiry yet, determine that then described current second message of receiving is for constituting last second message of first message.
Described first equipment is to have the equipment of SPI-2 interface or for equipment with SPI-3 interface or for having the equipment of SPI-4 interface;
Described second equipment is the equipment with PCI-E interface.
The present invention also provides another kind of message forwarding method, be applicable to have with first equipment of the irrelevant interface in address and have and second equipment of the interface that the address is relevant between message change, this method comprises:
After conversion equipment was received second message that second equipment sends, the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sent to first equipment;
Wherein, described first message is for adopting the message of the irrelevant interface protocol in described and address, and described second message is for adopting the message of the described interface protocol relevant with the address.
The process that the quiet lotus that the quiet lotus of described second message that will receive is encapsulated in first message partly sends to first equipment comprises:
Conversion equipment is second message received of buffer memory one by one, determine to constitute last second message of first message, the quiet lotus of described last second message and the quiet lotus of all second messages of buffer memory is encapsulated in same first message before this message quiet lotus are partly sent to first equipment, and discharge the buffer memory of all second messages that constitute this first message.
The process of last second message of described definite formation first message comprises:
Conversion equipment is after whenever receiving one second message, whether the address of judging current second message of receiving is continuous with the address of preceding second message of once receiving, if discontinuous, second message of once receiving before then determining is for constituting last second message of first message; If continuously, whether the quiet lotus length of then judging current second message of receiving less than the maximum quiet lotus length of second message, if less than, determine that then current second message of receiving is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
The process of last second message of described definite formation first message also comprises:
For first second message of receiving, whether the quiet lotus length that conversion equipment is judged this message less than the maximum quiet lotus length of second message, if less than, determine that then this message is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
This method further comprises:
Conversion equipment starts a timer after whenever receiving one second message, if do not receive next second message behind the timer expiry yet, determine that then described current second message of receiving is for constituting last second message of first message.
Described first equipment is to have the equipment of SPI-2 interface or for equipment with SPI-3 interface or for having the equipment of SPI-4 interface;
Described second equipment is the equipment with PCI-E interface.
The present invention also provides a kind of message converting system, comprising: have with first equipment of the irrelevant interface in address, have second equipment and the conversion equipment of the interface relevant with the address, wherein,
First equipment is used for and will mails to the quiet lotus part of the data encapsulation of second equipment at first message, and the head that the data manipulation initial address is encapsulated in first message is sent;
Conversion equipment, be used for behind first message that first equipment of receiving sends, according to the maximum quiet lotus length of second message quiet lotus of first message is carried out burst, and be respectively each burst and add and comprise that second header of address information is packaged into second message format, second message that will obtain then sends to second equipment, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst;
Described first message is for adopting the message of the irrelevant interface protocol in described and address, and described second message is for adopting the message of the described interface protocol relevant with the address.
Wherein, described conversion equipment is further used for behind second message that second equipment of receiving sends, and the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sends to first equipment.
In addition, the present invention also provides a kind of conversion equipment, comprising: message encapsulation unit and packet sending unit, wherein,
The message encapsulation unit, be used for behind first message that first equipment of receiving sends, according to the maximum quiet lotus length of second message quiet lotus of first message is carried out burst, and be respectively each burst and add and comprise that second header of address information is packaged into second message format, second message that will obtain then sends to packet sending unit, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst;
Packet sending unit is used for second message that the message encapsulation unit sends is sent to second equipment;
Wherein, described first equipment is the equipment with the interface that has nothing to do with the address; Described second equipment is the equipment with interface relevant with the address; Described first message is for adopting the message described and interface protocol that the address is irrelevant, and its quiet lotus partly encapsulates the data that first equipment will mail to second equipment, and head carries the data manipulation initial address; Described second message is for adopting the message of the described interface protocol relevant with the address.
Described message encapsulation unit is further used for behind second message that second equipment of receiving sends, and the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sends to packet sending unit;
Described packet sending unit is further used for, and first message that the message encapsulation unit is sent sends to first equipment.
Described message encapsulation unit comprises: afterbody determining unit, quiet lotus module units and buffer unit, wherein,
The afterbody determining unit, be used for second message that second equipment sends is cached to buffer unit one by one, and after whenever receiving one second message, whether the address of judging current second message of receiving is continuous with the address of preceding second message of once receiving, if discontinuous, second message of once receiving before then determining is for constituting last second message of first message; If continuously, whether the quiet lotus length of then judging current second message of receiving less than the maximum quiet lotus length of second message, if less than, determine that then current second message of receiving is for constituting last second message of first message; If be not less than, then wait for receiving next second message; And after having determined to constitute last second message of first message, the information of last second message sends to quiet lotus module units with this;
Quiet lotus module units, be used for the quiet lotus of described last second message and the quiet lotus of all second messages of buffer memory is encapsulated in same first message before this message quiet lotus are partly sent to packet sending unit, and discharge the buffer memory that constitutes all second messages of this first message in the buffer unit.
Described afterbody determining unit is further used for starting a timer after whenever receiving one second message, if do not receive next second message behind the timer expiry yet, determine that then current second message of receiving is for constituting last second message of first message.
This shows that the present invention has following beneficial effect:
1) for having the data that mail to second equipment with first equipment of the irrelevant interface in address with interface relevant with the address, first equipment does not need to add the form that head configuration becomes second message for these data, get final product and only need the quiet lotus that the data that needs send directly be encapsulated in first message partly sent, thereby reduced the realization difficulty of first equipment, improved the message treatment effeciency of first equipment with the interface that has nothing to do with the address.
2) for second message from second equipment, the quiet lotus that conversion equipment only is encapsulated in the quiet lotus of second message first message partly sends to first equipment, rather than whole second message is encapsulated in first equipment that sends in first message.Like this, after first equipment is received, need not to carry out the data that disassembling of second message just can obtain needs, thereby reduced the realization difficulty of first equipment, improved the message treatment effeciency of first equipment.
Description of drawings
Fig. 1 is the transfer process schematic diagram of SPI-4 message and PCI-E TLP message in the prior art.
Fig. 2 is the message transfer process schematic diagram that the SPI-4 side arrives the PCI-E side in the embodiment of the invention.
Fig. 3 is the message transfer process schematic diagram that the PCI-E side arrives the SPI-4 side in the embodiment of the invention.
Fig. 4 is the message converting system structural representation in the embodiment of the invention.
Fig. 5 is the conversion equipment structural representation in the embodiment of the invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, the embodiment that develops simultaneously with reference to the accompanying drawings is described in further detail the present invention.
In order to solve the realization difficulty problem of higher of the equipment that has the interface that has nothing to do with the address in the prior art, the invention provides a kind of message forwarding method, its be applicable to have with first equipment of the irrelevant interface in address and have and second equipment of the interface that the address is relevant between message change, this method comprises:
For first equipment to second device orientation, the data encapsulation that first equipment directly will mail to second equipment partly sends the quiet lotus of first message, first message that first equipment is sent by conversion equipment converts second message format to and sends to second equipment then, and first equipment need not to carry out the structure of second message;
For second equipment to first device orientation, after conversion equipment is received second message that second equipment sends, the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sends to first equipment, rather than the quiet lotus that the second complete message is encapsulated in first message partly sent to first equipment, like this, first equipment just need not to carry out disassembling of second message.
Wherein, first message is for adopting the message of the irrelevant interface protocol in described and address, and second message is for adopting the message of the described interface protocol relevant with the address.Described first equipment is to have the equipment of SPI-2 interface or for equipment with SPI-3 interface or for having the equipment of SPI-4 interface; Described second equipment is the equipment with PCI-E interface.
For ease of understanding, be that SPI-4 equipment, second equipment are that PCI-E equipment, first message are that SPI-4 message, second message are that the PCI-E message is an example with first equipment below, message forwarding method provided by the invention is described in detail.
Described as seen by background technology, in existing message transfer process, SPI-4 equipment need carry out the structure of TLP message and operation such as disassemble, thereby causes the increase of SPI-4 equipment realization difficulty and the reduction of message treatment effeciency.In order to overcome the problems referred to above, the basic thought of message forwarding method provided by the invention is as follows:
Arrive the PCI-E side direction for the SPI-4 side, the data encapsulation that SPI-4 equipment directly will mail to PCI-E equipment partly sends the quiet lotus of SPI-4 message, the SPI-4 message that SPI-4 equipment is sent by conversion equipment is packaged into the TLP message format and sends to PCI-E equipment then, and SPI-4 equipment need not to carry out the structure of TLP message;
Arrive the SPI-4 side direction for the PCI-E side, after conversion equipment is received TLP message from PCI-E equipment, the quiet lotus of the TLP message received is encapsulated in the quiet lotus of SPI-4 message sends to SPI-4 equipment, rather than whole TLP message is encapsulated in sends to SPI-4 equipment in the SPI-4 message, can avoid the TLP message tear down operations of SPI-4 side like this.
For the purpose of clear more, respectively the message transfer process of SPI-4 side to the message transfer process of PCI-E side and PCI-E side to the SPI-4 side is elaborated below.
One, the SPI-4 side is to the message conversion of PCI-E side
Figure 2 shows that the SPI-4 side is to the message transfer process schematic diagram of PCI-E side in the embodiment of the invention.Wherein, the SPI-4 message that Fig. 2 sends for SPI-4 equipment in the left side, the quiet lotus of SPI-4 message partly for mailing to the data of PCI-E side, is equivalent to constitute in the prior art the quiet lotus part of each TLP message of SPI-4 message, rather than complete TLP message.In view of the address of each TLP message that generally constitutes same SPI-4 message all is continuous characteristic, here, the head that SPI-4 equipment only needs the initial address Addr with the PCI-E operation be carried at the SPI-4 message sends and gets final product.Such as, when SPI-4 equipment during to PCI-E equipment write data, the address field of SPI-4 header is filled in is the initial address of carrying out data writing operation.
Conversion equipment carries out burst according to the maximum quiet lotus length of TLP message to the SPI-4 message after receiving the SPI-4 message that SPI-4 equipment sends.The maximum quiet lotus length of supposing the TLP message is M, and the quiet lotus length of the SPI-4 message that SPI-4 equipment sends is L, and then the SPI-4 message will be divided into
Sheet, wherein,
Round in the expression.In Fig. 2, L is that the integral multiple of M is L=(n+1) M, so the SPI-4 message is divided into (n+1) sheet.
After Fragmentation finished, conversion equipment was all installed a TLP Header for each burst, was packaged into the form of TLP message, and then the TLP message that encapsulation finishes is sent to PCI-E equipment.Comprise a lot of fields among the TLPHeader, as address field, length field etc.Wherein, the address of first burst is identical with the address that the SPI-4 message carries, and is the initial address Addr of PCI-E operation; The address of second burst is the length of first burst of adding up on the address of first burst; The address of the 3rd burst is the length of second burst of adding up on the address of second burst; The address of follow-up burst like this rule and the like, be the address of previous burst and the length sum of previous burst.Decide about filling in of other field among the TLPHeader, repeat no more here on concrete application.
As seen, in Fig. 2, the data configuration that SPI-4 equipment does not need to mail to the PCI-E side becomes the form of TLP message, get final product and only need the quiet lotus that the data that needs send directly be encapsulated in the SPI-4 message partly sent, thereby reduced the realization difficulty of SPI-4 equipment, improved the message treatment effeciency of SPI-4 equipment.
Two, the PCI-E side is to the message conversion of SPI-4 side
Figure 3 shows that the PCI-E side is to the message transfer process schematic diagram of SPI-4 side in the embodiment of the invention.As seen from Figure 3, the TLP message that sends over for PCI-E equipment, the quiet lotus that conversion equipment only is encapsulated in the quiet lotus of the TLP message received the SPI-4 message partly sends to SPI-4 equipment, rather than whole TLP message all is encapsulated in sends to SPI-4 equipment in the SPI-4 message.Like this, after SPI-4 equipment is received, need not to carry out the data that disassembling of TLP message just can obtain needs, thereby reduced the realization difficulty of SPI-4 equipment, improved the message treatment effeciency of SPI-4 equipment.
The quiet lotus that is encapsulated in the SPI-4 message the quiet lotus of the TLP message that will receive partly sends in the process of SPI-4 equipment, conversion equipment need determine which TLP message constitutes a SPI-4 message, that is to say, need to determine which TLP message is last the TLP message that constitutes a SPI-4 message.Its deterministic process specifically can realize in the following manner:
Conversion equipment is the TLP message received of buffer memory one by one, and after whenever receiving a TLP message, whether the address of all judging the current TLP message of receiving is continuous with the address of the preceding TLP message of once receiving, if discontinuous, the TLP message of once receiving before then determining is for constituting last TLP message of SPI-4 message; If continuously, whether the quiet lotus length of then further judging the current TLP message of receiving less than the maximum quiet lotus length of TLP message, if less than, then determine the current TLP message of receiving last TLP message for formation SPI-4 message; If be not less than, then wait for receiving next TLP message.
For first TLP message of receiving, whether the quiet lotus length that conversion equipment is directly judged this message less than the maximum quiet lotus length of TLP message, if less than, determine that then this message is for constituting last TLP message of SPI-4 message; If be not less than, then wait for receiving next TLP message.
In addition, conversion equipment also can start a timer further after whenever receiving a TLP message, if do not receive next TLP message behind the timer expiry yet, determines that then the described current TLP message of receiving is for constituting last TLP message of SPI-4 message.
After having determined to constitute last TLP message of SPI-4 message, conversion equipment then partly sends to SPI-4 equipment with the quiet lotus of this last TLP message and the quiet lotus of all TLP messages of buffer memory is encapsulated in same SPI-4 message before this message quiet lotus, and discharges the buffer memory of all TLP messages that constitute this SPI-4 message.
Such as, suppose conversion equipment received continuously and buffer memory 5 TLP messages that the address is continuous, when the 6th TLP message arrives, conversion equipment at first carries out buffer memory, and whether the address of judging the address of the 6th TLP message and the 5th TLP message is continuous, if the address of the address of the 6th TLP message and the 5th TLP message is discontinuous, think that then the 6th TLP message belongs to different SPI-4 messages with preceding 5 TLP messages, conversion equipment is satisfied quiet lotus with preceding 5 TLP messages and is encapsulated in the same SPI-4 message and sends to SPI-4 equipment, and discharges the buffer memory of preceding 5 TLP messages.If conversion equipment finds that the address of the address of the 6th TLP message and the 5th TLP message is continuous, and the quiet lotus length of the 6th TLP message is less than the maximum quiet lotus length of TLP message, so, think that then the 6th TLP message is for constituting last TLP message of same SPI-4 message, conversion equipment is encapsulated in the quiet lotus of these 6 TLP messages in the same SPI-4 message and sends to SPI-4 equipment, and discharges the buffer memory of these 6 TLP messages.In addition, conversion equipment also can start a timer after whenever receiving a TLP message.For the 6th message of receiving, if the address of its address and the 5th TLP message is continuous, its quiet lotus length is not less than the maximum quiet lotus length of TLP message, and after receiving the timer expiry that is started behind the 6th the TLP message, conversion equipment is not received next TLP message yet, think that then the 6th TLP message is for constituting last TLP message of same SPI-4 message, conversion equipment is encapsulated in the quiet lotus of these 6 TLP messages in the same SPI-4 message and sends to SPI-4 equipment, and discharges the buffer memory of these 6 TLP messages.
In addition, make mistakes if constitute any TLP message of same SPI-4 message, conversion equipment then can be selected to abandon whole SPI-4 message and will not transmit, and handles resource with the message of saving SPI-4 equipment.
Need to prove that the present invention is applicable to that all do not relate to the interface of address and relate to message conversion between the interface of address.Be that example describes only below with SPI-4 and PCI-E, suitable equally for other the interface that does not relate to the address and message conversion the present invention of relating between the interface of address, as SPI-2 and PCI-E, SPI-3 and PCI-E, Ethernet and PCI-E etc., give unnecessary details no longer one by one here.
Correspondingly, the present invention also provides a kind of message converting system, and its structure mainly comprises referring to shown in Figure 4: have with first equipment of the irrelevant interface in address, have second equipment and the conversion equipment of the interface relevant with the address, wherein,
First equipment is used for and will mails to the quiet lotus part of the data encapsulation of second equipment at first message, and the head that the data manipulation initial address is encapsulated in first message is sent;
Conversion equipment, be used for behind first message that first equipment of receiving sends, according to the maximum quiet lotus length of second message quiet lotus of first message is carried out burst, and be respectively each burst and add and comprise that second header of address information is packaged into second message format, second message that will obtain then sends to second equipment, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst;
Described first message is for adopting the message of the irrelevant interface protocol in described and address, and described second message is for adopting the message of the described interface protocol relevant with the address.
Described conversion equipment also can be further used for behind second message that second equipment of receiving sends, and the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sends to first equipment.
In addition, the present invention also provides a kind of conversion equipment, and its structure mainly comprises referring to shown in Figure 5: message encapsulation unit and packet sending unit, wherein,
The message encapsulation unit, be used for behind first message that first equipment of receiving sends, according to the maximum quiet lotus length of second message quiet lotus of first message is carried out burst, and be respectively each burst and add and comprise that second header of address information is packaged into second message format, second message that will obtain then sends to packet sending unit, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst;
Packet sending unit is used for second message that the message encapsulation unit sends is sent to second equipment;
Wherein, described first equipment is the equipment with the interface that has nothing to do with the address; Described second equipment is the equipment with interface relevant with the address; Described first message is for adopting the message described and interface protocol that the address is irrelevant, and its quiet lotus partly encapsulates the data that first equipment will mail to second equipment, and head carries the data manipulation initial address; Described second message is for adopting the message of the described interface protocol relevant with the address.
Described message encapsulation unit can be further used for behind second message that second equipment of receiving sends, and the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sends to packet sending unit;
Described packet sending unit is further used for first message that the message encapsulation unit sends is sent to first equipment.
Wherein, described message encapsulation unit specifically can comprise: afterbody determining unit, quiet lotus module units and buffer unit, wherein,
The afterbody determining unit, be used for second message that second equipment sends is cached to buffer unit one by one, and after whenever receiving one second message, whether the address of judging current second message of receiving is continuous with the address of preceding second message of once receiving, if discontinuous, second message of once receiving before then determining is for constituting last second message of first message; If continuously, whether the quiet lotus length of then judging current second message of receiving less than the maximum quiet lotus length of second message, if less than, determine that then current second message of receiving is for constituting last second message of first message; If be not less than, then wait for receiving next second message; And after having determined to constitute last second message of first message, the information of last second message sends to quiet lotus module units with this;
Quiet lotus module units, be used for the quiet lotus of described last second message and the quiet lotus of all second messages of buffer memory is encapsulated in same first message before this message quiet lotus are partly sent to packet sending unit, and discharge the buffer memory that constitutes all second messages of this first message in the buffer unit.
Described afterbody determining unit also can be further used for starting a timer after whenever receiving one second message, if do not receive next second message behind the timer expiry yet, determine that then current second message of receiving is for constituting last second message of first message.
The above has carried out further detailed description to purpose of the present invention, technical scheme and beneficial effect; institute is understood that; the above is not in order to restriction the present invention; within the spirit and principles in the present invention all; any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (20)
1, a kind of message forwarding method, be applicable to have with first equipment of the irrelevant interface in address and have and second equipment of the interface that the address is relevant between message change, it is characterized in that this method comprises:
The data encapsulation that first equipment will mail to second equipment partly sends the quiet lotus of first message;
Conversion equipment convert first message of receiving to second message format, and second message that will be converted to sends to second equipment after receiving first message that first equipment sends;
Wherein, described first message is for adopting the message of the irrelevant interface protocol in described and address, and described second message is for adopting the message of the described interface protocol relevant with the address.
2, method according to claim 1 is characterized in that, the head of described first message carries the data manipulation initial address message (IAM);
The process that first message that described conversion equipment will be received converts second message format to comprises:
Conversion equipment carries out burst according to the maximum quiet lotus length of second message to the quiet lotus of first message, and be respectively each burst and add second header that comprises address information, be packaged into second message format, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst.
3, method according to claim 1 and 2 is characterized in that, this method further comprises:
After conversion equipment was received second message that second equipment sends, the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sent to first equipment.
4, method according to claim 3 is characterized in that, the process that the quiet lotus that the quiet lotus of described second message that will receive is encapsulated in first message partly sends to first equipment comprises:
Conversion equipment is second message received of buffer memory one by one, determine to constitute last second message of first message, the quiet lotus of described last second message and the quiet lotus of all second messages of buffer memory is encapsulated in same first message before this message quiet lotus are partly sent to first equipment, and discharge the buffer memory of all second messages that constitute this first message.
5, method according to claim 4 is characterized in that, the process of last second message of described definite formation first message comprises:
Conversion equipment is after whenever receiving one second message, whether the address of judging current second message of receiving is continuous with the address of preceding second message of once receiving, if discontinuous, second message of once receiving before then determining is for constituting last second message of first message; If continuously, whether the quiet lotus length of then judging current second message of receiving less than the maximum quiet lotus length of second message, if less than, determine that then current second message of receiving is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
6, method according to claim 5 is characterized in that, the process of last second message of described definite formation first message also comprises:
For first second message of receiving, whether the quiet lotus length that conversion equipment is judged this message less than the maximum quiet lotus length of second message, if less than, determine that then this message is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
7, according to claim 5 or 6 described methods, it is characterized in that this method further comprises:
Conversion equipment starts a timer after whenever receiving one second message, if do not receive next second message behind the timer expiry yet, determine that then described current second message of receiving is for constituting last second message of first message.
8, method according to claim 1 is characterized in that, described first equipment is to have the equipment of SPI-2 interface or for equipment with SPI-3 interface or for having the equipment of SPI-4 interface;
Described second equipment is the equipment with PCI-E interface.
9, a kind of message forwarding method, be applicable to have with first equipment of the irrelevant interface in address and have and second equipment of the interface that the address is relevant between message change, it is characterized in that this method comprises:
After conversion equipment was received second message that second equipment sends, the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sent to first equipment;
Wherein, described first message is for adopting the message of the irrelevant interface protocol in described and address, and described second message is for adopting the message of the described interface protocol relevant with the address.
10, method according to claim 9 is characterized in that, the process that the quiet lotus that the quiet lotus of described second message that will receive is encapsulated in first message partly sends to first equipment comprises:
Conversion equipment is second message received of buffer memory one by one, determine to constitute last second message of first message, the quiet lotus of described last second message and the quiet lotus of all second messages of buffer memory is encapsulated in same first message before this message quiet lotus are partly sent to first equipment, and discharge the buffer memory of all second messages that constitute this first message.
11, method according to claim 10 is characterized in that, the process of last second message of described definite formation first message comprises:
Conversion equipment is after whenever receiving one second message, whether the address of judging current second message of receiving is continuous with the address of preceding second message of once receiving, if discontinuous, second message of once receiving before then determining is for constituting last second message of first message; If continuously, whether the quiet lotus length of then judging current second message of receiving less than the maximum quiet lotus length of second message, if less than, determine that then current second message of receiving is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
12, method according to claim 11 is characterized in that, the process of last second message of described definite formation first message also comprises:
For first second message of receiving, whether the quiet lotus length that conversion equipment is judged this message less than the maximum quiet lotus length of second message, if less than, determine that then this message is for constituting last second message of first message; If be not less than, then wait for receiving next second message.
13, according to claim 11 or 12 described methods, it is characterized in that this method further comprises:
Conversion equipment starts a timer after whenever receiving one second message, if do not receive next second message behind the timer expiry yet, determine that then described current second message of receiving is for constituting last second message of first message.
14, method according to claim 9 is characterized in that, described first equipment is to have the equipment of SPI-2 interface or for equipment with SPI-3 interface or for having the equipment of SPI-4 interface;
Described second equipment is the equipment with PCI-E interface.
15, a kind of message converting system is characterized in that, comprising: have with first equipment of the irrelevant interface in address, have second equipment and the conversion equipment of the interface relevant with the address, wherein,
First equipment is used for and will mails to the quiet lotus part of the data encapsulation of second equipment at first message, and the head that the data manipulation initial address is encapsulated in first message is sent;
Conversion equipment, be used for behind first message that first equipment of receiving sends, according to the maximum quiet lotus length of second message quiet lotus of first message is carried out burst, and be respectively each burst and add and comprise that second header of address information is packaged into second message format, second message that will obtain then sends to second equipment, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst;
Described first message is for adopting the message of the irrelevant interface protocol in described and address, and described second message is for adopting the message of the described interface protocol relevant with the address.
16, system according to claim 15 is characterized in that, described conversion equipment is further used for behind second message that second equipment of receiving sends, and the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sends to first equipment.
17, a kind of conversion equipment is characterized in that, comprising: message encapsulation unit and packet sending unit, wherein,
The message encapsulation unit, be used for behind first message that first equipment of receiving sends, according to the maximum quiet lotus length of second message quiet lotus of first message is carried out burst, and be respectively each burst and add and comprise that second header of address information is packaged into second message format, second message that will obtain then sends to packet sending unit, wherein, the address of first burst is the data manipulation initial address that first message carries, and the address of follow-up burst is followed successively by the address of previous burst and the length sum of previous burst;
Packet sending unit is used for second message that the message encapsulation unit sends is sent to second equipment;
Wherein, described first equipment is the equipment with the interface that has nothing to do with the address; Described second equipment is the equipment with interface relevant with the address; Described first message is for adopting the message described and interface protocol that the address is irrelevant, and its quiet lotus partly encapsulates the data that first equipment will mail to second equipment, and head carries the data manipulation initial address; Described second message is for adopting the message of the described interface protocol relevant with the address.
18, equipment according to claim 17, it is characterized in that, described message encapsulation unit is further used for behind second message that second equipment of receiving sends, and the quiet lotus that the quiet lotus of second message received is encapsulated in first message partly sends to packet sending unit;
Described packet sending unit is further used for, and first message that the message encapsulation unit is sent sends to first equipment.
19, equipment according to claim 18 is characterized in that, described message encapsulation unit comprises: afterbody determining unit, quiet lotus module units and buffer unit, wherein,
The afterbody determining unit, be used for second message that second equipment sends is cached to buffer unit one by one, and after whenever receiving one second message, whether the address of judging current second message of receiving is continuous with the address of preceding second message of once receiving, if discontinuous, second message of once receiving before then determining is for constituting last second message of first message; If continuously, whether the quiet lotus length of then judging current second message of receiving less than the maximum quiet lotus length of second message, if less than, determine that then current second message of receiving is for constituting last second message of first message; If be not less than, then wait for receiving next second message; And after having determined to constitute last second message of first message, the information of last second message sends to quiet lotus module units with this;
Quiet lotus module units, be used for the quiet lotus of described last second message and the quiet lotus of all second messages of buffer memory is encapsulated in same first message before this message quiet lotus are partly sent to packet sending unit, and discharge the buffer memory that constitutes all second messages of this first message in the buffer unit.
20, equipment according to claim 19, it is characterized in that, described afterbody determining unit is further used for starting a timer after whenever receiving one second message, if do not receive next second message behind the timer expiry yet, determine that then current second message of receiving is for constituting last second message of first message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101182539A CN101079815B (en) | 2007-07-03 | 2007-07-03 | Message forwarding method, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101182539A CN101079815B (en) | 2007-07-03 | 2007-07-03 | Message forwarding method, system and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101079815A true CN101079815A (en) | 2007-11-28 |
CN101079815B CN101079815B (en) | 2010-10-27 |
Family
ID=38907053
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101182539A Expired - Fee Related CN101079815B (en) | 2007-07-03 | 2007-07-03 | Message forwarding method, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101079815B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957590A (en) * | 2011-08-29 | 2013-03-06 | 盛科网络(苏州)有限公司 | Message slicing method and device |
CN104753753A (en) * | 2013-12-31 | 2015-07-01 | 杭州华为数字技术有限公司 | QPI message transmission method and device and computer system |
CN103780487B (en) * | 2014-01-29 | 2017-07-14 | 新华三技术有限公司 | Set up the method and device of Intermediate System-to-Intermediate System neighbours |
CN113626320A (en) * | 2021-07-28 | 2021-11-09 | 南京苏宁软件技术有限公司 | Automatic test method and device for TCP (Transmission control protocol) interface and computer equipment |
CN113835831A (en) * | 2021-09-01 | 2021-12-24 | 南京南瑞继保电气有限公司 | Data memory mapping method and device, electronic equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7379469B2 (en) * | 2001-01-12 | 2008-05-27 | Broadcom Corporation | System and method for scheduling burst profile changes based on minislot count |
CN1199405C (en) * | 2002-07-23 | 2005-04-27 | 华为技术有限公司 | Enterprise external virtual special network system and method using virtual router structure |
CN1238796C (en) * | 2002-10-30 | 2006-01-25 | 华为技术有限公司 | Device and method for realizing interface conversion |
-
2007
- 2007-07-03 CN CN2007101182539A patent/CN101079815B/en not_active Expired - Fee Related
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957590A (en) * | 2011-08-29 | 2013-03-06 | 盛科网络(苏州)有限公司 | Message slicing method and device |
CN102957590B (en) * | 2011-08-29 | 2015-03-11 | 盛科网络(苏州)有限公司 | Message slicing method and device |
CN104753753A (en) * | 2013-12-31 | 2015-07-01 | 杭州华为数字技术有限公司 | QPI message transmission method and device and computer system |
CN103780487B (en) * | 2014-01-29 | 2017-07-14 | 新华三技术有限公司 | Set up the method and device of Intermediate System-to-Intermediate System neighbours |
CN113626320A (en) * | 2021-07-28 | 2021-11-09 | 南京苏宁软件技术有限公司 | Automatic test method and device for TCP (Transmission control protocol) interface and computer equipment |
CN113835831A (en) * | 2021-09-01 | 2021-12-24 | 南京南瑞继保电气有限公司 | Data memory mapping method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101079815B (en) | 2010-10-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1819553A (en) | Transmission control protocol (TCP) congestion control using multiple tcp acknowledgements (ACKS) | |
CN1242569C (en) | Method and apparatus for allocating data streams onto single channel | |
CN1866971A (en) | Method and apparatus of data segmentation in a mobile communications system | |
CN1921457A (en) | Network equipment and message transferring method based on multiple-core processor | |
CN1437718A (en) | High-speed memory system | |
CN1946054A (en) | Transmission method and device for high speed data flow and data exchange device | |
CN1848719A (en) | Distribution bitmap diagram memory device, method and system for generating response among network entities | |
CN101079815A (en) | Message forwarding method, system and device | |
CN1901727A (en) | System and method for realizing antenna equipment central managing | |
CN1859037A (en) | Transmitting and receiving method for high speed medium cut-in control grouping data unit | |
CN1881979A (en) | Ethernet physical layer low-speed transmission realizing method and its applied network apparatus | |
CN1659065A (en) | Method and system for switching between subnetwork operation and full network operation | |
CN1909508A (en) | Port flow control method | |
CN1612501A (en) | Transmitting data using multi-frames | |
CN1848973A (en) | Short message group transmitting method, terminal and short message center | |
CN101060489A (en) | Message forwarding method and device | |
CN1889491A (en) | Wireless network, accessing card and wireless data transmitting method | |
CN1185805C (en) | Packet communication method, nodal equipment and packet communication system | |
CN1863140A (en) | Method for improving network resource utilization ratio of wireless communication system | |
CN1525710A (en) | Communication system, communication method, and mobile node and gateway for use with the system | |
CN1859112A (en) | Data transfer device and data transfer method of virtual ether net device | |
CN1870503A (en) | Link station information transmission method based on multi-interface route equipment | |
CN1700789A (en) | A transmission method for short message | |
CN1881953A (en) | Method and apparatus for transmitting message | |
CN1859293A (en) | Device and method for realizing message repeating |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd. |
|
CP03 | Change of name, title or address | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20101027 |
|
CF01 | Termination of patent right due to non-payment of annual fee |