CN101079815B - Message forwarding method, system and device - Google Patents

Message forwarding method, system and device Download PDF

Info

Publication number
CN101079815B
CN101079815B CN2007101182539A CN200710118253A CN101079815B CN 101079815 B CN101079815 B CN 101079815B CN 2007101182539 A CN2007101182539 A CN 2007101182539A CN 200710118253 A CN200710118253 A CN 200710118253A CN 101079815 B CN101079815 B CN 101079815B
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.)
Active
Application number
CN2007101182539A
Other languages
Chinese (zh)
Other versions
CN101079815A (en
Inventor
刘玉印
易莉
张国良
余永飞
张耀
向邦柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2007101182539A priority Critical patent/CN101079815B/en
Publication of CN101079815A publication Critical patent/CN101079815A/en
Application granted granted Critical
Publication of CN101079815B publication Critical patent/CN101079815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Message forwarding method, system and device
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 of the interface relevant with the address, and conversion equipment, 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 second header that comprises address information, be 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 second header that comprises address information, be 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
Figure G200710118253920070731D000091
Sheet, wherein,
Figure G200710118253920070731D000092
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 (18)

1. 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, and 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.
2. method according to claim 1 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.
3. method according to claim 2 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.
4. method according to claim 3 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.
5. method according to claim 4 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.
6. according to claim 4 or 5 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.
7. 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.
8. 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;
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.
9. method according to claim 8 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.
10. method according to claim 9 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.
11., it is characterized in that this method further comprises according to claim 9 or 10 described methods:
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.
12. method according to claim 8 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.
13. a message converting system is characterized in that, comprising: have first equipment of the interface that has nothing to do with the address, have second equipment of the interface relevant with the address, and conversion equipment, 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 second header that comprises address information, be 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.
14. system according to claim 13 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.
15. a 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 second header that comprises address information, be 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.
16. equipment according to claim 15, 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.
17. equipment according to claim 16 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.
18. equipment according to claim 17, 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.
CN2007101182539A 2007-07-03 2007-07-03 Message forwarding method, system and device Active CN101079815B (en)

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 CN101079815A (en) 2007-11-28
CN101079815B true CN101079815B (en) 2010-10-27

Family

ID=38907053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101182539A Active CN101079815B (en) 2007-07-03 2007-07-03 Message forwarding method, system and device

Country Status (1)

Country Link
CN (1) CN101079815B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957590B (en) * 2011-08-29 2015-03-11 盛科网络(苏州)有限公司 Message slicing method and device
CN104753753B (en) * 2013-12-31 2018-11-16 杭州华为数字技术有限公司 A kind of transmission method, equipment and the computer system of QPI message
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1223692A2 (en) * 2001-01-12 2002-07-17 Broadcom Corporation System, method, and computer program product for scheduling burst profile changes based on minislot count
CN1471275A (en) * 2002-07-23 2004-01-28 ��Ϊ�������޹�˾ Enterprise external virtual special network system and method using virtual router structure
CN1494003A (en) * 2002-10-30 2004-05-05 华为技术有限公司 Device and method for realizing interface conversion

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1223692A2 (en) * 2001-01-12 2002-07-17 Broadcom Corporation System, method, and computer program product for scheduling burst profile changes based on minislot count
CN1471275A (en) * 2002-07-23 2004-01-28 ��Ϊ�������޹�˾ Enterprise external virtual special network system and method using virtual router structure
CN1494003A (en) * 2002-10-30 2004-05-05 华为技术有限公司 Device and method for realizing interface conversion

Also Published As

Publication number Publication date
CN101079815A (en) 2007-11-28

Similar Documents

Publication Publication Date Title
CN101971594B (en) Methods and apparatus for formatting headers in a communication frame
CN101079815B (en) Message forwarding method, system and device
JP2002261786A (en) Multi-access communication system and data transmitting and receiving device
CN108512785B (en) Data transmission protocol method
CN101436978A (en) Method for authentic data transmission using UDP protocol
CN102780705A (en) Ethernet-(controller area network) CAN protocol converter
CN104813600A (en) Signal sending method, receiving method, apparatus and communication device
CN103746938A (en) Method and device for transmitting data packet
CN112953683B (en) Adaptive rate SRIO interface data transmission method
CN102404414A (en) Ethernet communication system and method based on multi-media card/security digital card (MMC/SD) interface
CN102487330B (en) Method and device for sending operation, administration and maintenance messages
CN101883329B (en) Method and device for supporting MBMS (Multimedia Broadcast Multicast Service) business content synchronization based on integrated EPS (Evolved Packet System)
CN102238493B (en) Machine-to-machine (M2M)-platform-based message sequential transmission and receiving method and device
CN107222379A (en) A kind of method and apparatus of serial communication
CN101631074B (en) Multilink message sending method, device and network equipment
CN107846709B (en) Wireless communication device and wireless communication method based on LoRa
CN102118356A (en) Message transmission method and transmission device
CN101227688A (en) Method for transmitting data through USB interface on mobile phone
CN103179087A (en) Asynchronous Socket data transmission method and system from application layer to transmission control protocol (TCP) layer
WO2012058875A1 (en) Method and system for serial communication
CN101616160A (en) A kind of main frame and corresponding notifying method with function of informing maximal transmission unit
CN102546422B (en) Message forwarding method in exchange chip, exchange chip and network device
CN112363963A (en) Data transmission method and device based on Powerlink bus
EP1525722B1 (en) Packet signal processing architecture
CN103763749A (en) TS-IP routing module and broadcast routing system

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: Xinhua three Technology 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: Huasan Communication Technology Co., Ltd.

CP03 Change of name, title or address