CN100502365C - Interplate communicating method - Google Patents
Interplate communicating method Download PDFInfo
- Publication number
- CN100502365C CN100502365C CNB2006101500931A CN200610150093A CN100502365C CN 100502365 C CN100502365 C CN 100502365C CN B2006101500931 A CNB2006101500931 A CN B2006101500931A CN 200610150093 A CN200610150093 A CN 200610150093A CN 100502365 C CN100502365 C CN 100502365C
- Authority
- CN
- China
- Prior art keywords
- packet
- packet header
- header
- standard
- stream index
- 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
Links
Images
Abstract
A method for carrying out communication between plates includes querying stream index identification according to stream character information and combining it with data body to form simple data packet being sent to outgoing interface plate, querying out standard packet head by outgoing interface according to stream index identification and combining standard packet head with data body to form restoration data packet. The device used for realizing said method is also disclosed.
Description
Technical field
The present invention relates to a kind of interplate communication method, relate in particular to a kind of interplate communication method that can improve actual effective bandwidth utilance that is applied to carry out in the distributed apparatus communication between plates.
Background technology
Distributed apparatus as distribution router etc., has a plurality of interface boards, and each interface board all has several interfaces.When work, each interface board can be finished the forwarding of packet voluntarily, also can cooperate with other interface boards and finish the forwarding of packet.Therefore, the pass-through mode of distributed apparatus can be divided into two kinds, and a kind of is to transmit in the plate, and another kind is to transmit between plate.
As shown in Figure 1, existing distributed apparatus mainly comprises: mainboard 10, and slave board 20, several distributed interface boards have some interfaces on each interface board, and mainboard 10, and slave board 20 and several interface boards all are connected on the system bus 30.Transmit in the plate and be meant the pass-through mode that packet is transmitted between the distinct interface on the interface board, as the data packet transmission direction 61 among Fig. 1, send into forwarding unit from the interface 53 of interface board 43, after transmitting, send from the interface 54 of same interface board 43, finish in the plate and transmit; Transmit between plate and be meant the pass-through mode that packet is transmitted between the interface on the distinct interface plate, as the data packet transmission direction 62 among Fig. 1, send into forwarding unit from the interface 51 of interface board 41, after transmitting, send from the interface 52 of another interface board 42, finish between plate and transmit.
The defective of prior art is: between plate in the pass-through mode, the packet that is forwarded is except the data volume of packet itself, also need to carry some additional informations, these additional informations as a packet, are forwarded to another interface board from an interface board with the data data volume information that will transmit.For example, when using Free BSD (Free Berkeley Systems Distribution) network operating system, this packet is also referred to as MBUF (Memory Buffers).MBUF comprises MBUF head and data volume two parts, and wherein, the MBUF head is used to deposit additional contextual information; Data volume is used for depositing the data message that will transmit.MBUF head and data volume two parts can be continuous physically or discontinuously arranged.When transmitting between plate, MBUF head and data volume all will be forwarded to another interface board from an interface board, but sometimes, need the data volume amount of information of forwarding very little, and by contrast, the length of MBUF head is but very big, thereby when causing transmission small data body, actual effective bandwidth utilance is very low.For example, suppose that a MBUF head length degree is 256 bytes, the small data body length that needs to transmit is 64 bytes, and at this moment, the MBUF length of transmitting between plate is the 256+64=320 byte, and therefore, actual effective bandwidth utilance only is 64/320=1/5.That is, if the slave board bus bandwidth is 10G, the so actual bandwidth of effectively utilizing only is 2G, and visible bandwidth availability ratio is very low.
Summary of the invention
The objective of the invention is to, transmission method between a kind of plate is provided, make when between plate, carrying out data packet transmission, improve the actual bandwidth utilance.
For achieving the above object, the invention provides a kind of interplate communication method, comprising:
After the incoming interface plate receives packet, according to the stream characteristic information in this packet, the corresponding stream index sign that inquiry is preserved in advance;
Create second packet header, the stream index sign that inquires is written in second packet header,, then should also be written in second packet header by non-standard header if also have and other non-standard header of standard packet header phase region in the packet header of described packet;
The packet header that described packet is replaced in described second packet header is combined into the data volume of described packet and simplifies packet;
The described packet of simplifying is sent to the outgoing interface plate;
After described outgoing interface plate receives and simplifies packet, according to the stream index sign of simplifying in the packet, the corresponding standard packet header that inquiry is preserved in advance;
Standard packet header and data volume are combined into recovery data packets.
For achieving the above object, the present invention also provides a kind of interface board, comprising:
Enquiry module is used for when sending or receive packet, inquires about corresponding stream index sign according to the stream characteristic information in this packet, or inquires about the corresponding standard packet header of preserving in advance according to the stream index sign of simplifying in the packet;
The data packet group compound module, be used for when sending or receive packet, the stream index sign that will come from enquiry module is combined into data volume simplifies packet, the standard packet header and the data volume with the stream index sign that maybe will come from enquiry module are combined into the normal data bag, and standard packet header and data volume are combined into recovery data packets.
Based on above-mentioned steps and device, owing to only transmit between incoming interface plate and the outgoing interface plate and simplify packet, and this is simplified and only comprises stream index sign and data volume in the packet, and the stream index sign only is the mark that different data streams is carried out, and compares with the packet header of packet, and data length significantly reduces, therefore, improved the actual bandwidth utilance, especially for the very little situation of data volume message length, effect is more obvious.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Description of drawings
Fig. 1 is the pass-through mode schematic diagram of existing distributed apparatus;
Fig. 2 is the embodiment of the invention 1 a described interplate communication method flow chart;
Fig. 3 is the embodiment of the invention 2 described interplate communication method flow charts;
Fig. 4 is the embodiment of the invention 3 described interplate communication method flow charts;
Fig. 5 is the distributed apparatus structural representation with the embodiment of the invention 4 described interface boards.
Embodiment
Need to prove that at first data flow is meant the set of one group of packet with same stream characteristic information.In following each embodiment, be that five-tuple information is that example is illustrated only, and for the data flow with other stream characteristic informations, because its transmission feature is identical, so processing method is also identical with this characteristic information, this paper repeats no more.
Embodiment 1
Present embodiment provides a kind of and according to the five-tuple information that data packets in data flows had the packet header of packet has been simplified, and to reduce the data length in packet header, improves the interplate communication method of actual bandwidth utilization ratio.Wherein, as shown in Figure 2,
Step 101, when carrying out communication between plates, after the incoming interface plate is received a packet, according to the stream characteristic information in this packet, the corresponding stream index sign that inquiry is preserved in advance.Wherein, the corresponding stream index sign of preserving in advance is by to by the artificial five-tuple information of related data flow of preserving in advance, and stream index sign and standard packet header are inquired about and obtained.Five-tuple information is meant these five kinds of information of source IP address, purpose IP address, source port number, destination slogan and protocol number of carrying in the packet.Because when specific service is provided once to the user, as download a webpage, transmit a file, or send an Email etc., one group of packet often has identical five-tuple information, can be a data flow with the packet definitions with identical five-tuple information therefore.When carrying out communication between plates, information in the same data flow in the packet header of each packet is changeless basically, therefore will have in one group of packet of identical five-tuple information, the common header packet information in the packet header of each packet extracts, save as standard packet header, identical data flow has identical standard packet header.
Step 102 is combined into the data volume of the stream index that inquires sign and packet and simplifies packet.When carrying out transmitting between plate, packet comprises packet header and data volume, stream index sign and data volume be combined into simplify packet multiple compound mode can be arranged, be specifically as follows, create one second packet header, the stream index that inquires sign is written in second packet header,, is combined into the data volume of packet and simplifies packet with the packet header of the second packet header replacement data bag; Perhaps, the stream index sign that inquires can be written in the data volume of packet, be combined into and simplify packet.
Step 103 will be simplified packet and be sent to the outgoing interface plate.Concrete transmission method can be transmitted or transparent transmission by equipment such as mainboards according to existing routing forwarding technology.
Step 104 is after the outgoing interface plate receives and simplifies packet, according to the stream index sign of simplifying in the packet, the corresponding standard packet header that inquiry is preserved in advance.Concrete querying method can be different according to the various combination mode described in the step 102, specifically can inquire about according to the sign of the stream index in second packet header of simplifying in the packet; Perhaps can also inquire about according to the sign of the stream index in the data volume of simplifying in the packet.
Step 105 is combined into recovery data packets with standard packet header and data volume.Both comprise the data volume information that to transmit in the recovery data packets, comprised the needed header packet information of communication between plates again, thereby realized the communication between plates between the distinct interface plate.
In the described method of present embodiment, because the incoming interface plate is simplified in the packet to the transmission of outgoing interface plate, only comprise stream index sign and data volume, and the stream index sign only is the mark that different data streams is carried out, compare with the packet header of packet, data length significantly reduces, and therefore, has improved the actual bandwidth utilance.Especially for the very little situation of data volume message length, effect is more obvious.For example, suppose that the MBUF head simplified 16 bytes even littler, then the actual bandwidth utilance just can reach 64/ (64+16)=more than 80%.
Embodiment 2
Method described in the embodiment 1 can only be applicable to the identical situation of packet header content of same data packets in data flows, but in some cases, although the packet header most contents of same data packets in data flows is identical, but some content can change with the difference of packet, therefore standard packet header can't be defined within, thereby the range of application of this method can be limited.Present embodiment provides a kind of interplate communication method that can address the above problem.As shown in Figure 3,
In the described step of present embodiment, because simplifying in the packet of transmitting except comprising data volume information, only comprise stream index sign and non-standard header, and the stream index sign only is the mark that different data streams is carried out, so data volume is considerably less; And, the most contents of the different pieces of information bag in the same data flow all is identical, it is the most information content that standard packet header has comprised packet header, and may be with the partial information content of bag variation, promptly non-standard header only accounts for the very fraction in packet header, therefore, the amount of information of non-standard header also seldom, thereby improved actual effective bandwidth utilance, especially for the very little situation of data volume amount of information, effect is then more obvious.In addition, therefore more accurately complete because the packet header of simplifying of transmitting in the present embodiment also includes the non-standard header that changes with bag to the recovery in packet header, thus more be applicable to the situation that includes non-standard header in the packet header.
Embodiment 3
In the interplate communication method described in the embodiment 1,2, the stream index sign, all preserve by manually carrying out parallel connection in advance in five-tuple information and standard packet header, inquires about when packet is transmitted.It is less relatively and change little situation that this method only is suitable for the five-tuple information category.But in some cases, interface definition on the interface board can carry out dynamic change, correspondingly, a large amount of variations also can take place in the five-tuple information content, at this moment, just can not satisfy the inquiry needs of the five-tuple information after the variation by artificial stream index sign of preserving in advance, and need manual intervention also can increase a large amount of workloads.For this reason, present embodiment provides a kind of and need also not protect by manually in advance the stream index sign being carried out association, but according to the first packet in the data flow stream index mark is carried out the related interplate communication method of preserving.As shown in Figure 4,
After step 301, incoming interface plate are received a packet, according to the five-tuple information in this packet, the corresponding stream index sign of preserving in advance of inquiry.Wherein, corresponding stream index sign of preserving in advance is meant, according to the first packet in this data flow, carries out related stream index sign of preserving in advance.
After step 305, incoming interface plate receive other packets in the same data flow described in the step 301,, inquire about corresponding stream index sign according to the five-tuple information in this packet.Owing in step 302, created the stream index sign that is associated with five-tuple information in this packet, therefore can successfully inquire required result.
In the described step of present embodiment, because incoming interface plate and outgoing interface plate have all carried out related preservation to stream index sign, standard packet header and the five-tuple information of untreated data flow, therefore, still can carry out communication between plates according to embodiment 1 or embodiment 2 described methods for other packets in this data flow, thereby improve the actual bandwidth utilance.And, when the outgoing interface plate need can utilize the five-tuple information of the described step preservation of present embodiment or stream index sign to finish inquiry, and then generation be simplified packet, the realization data packet transmission when the incoming interface plate sends this data flow.In addition,, need not artificial participation, therefore also reduced staff's workload, improved operating efficiency because whole process is that system finishes automatically.
In addition, it needs to be noted, the corresponding stream index sign of preserving in advance of the described inquiry of present embodiment can also be inquired about artificial stream index sign of preserving in advance earlier, if inquiry failure, again according to these data to five-tuple information, related preservation is carried out with the stream index sign in standard packet header, inquires about for other packets in the data flow at this packet place.Can reduce certain overhead like this.
Embodiment 4
Present embodiment provides a kind of interface board structure that can improve communication between plates actual bandwidth utilance.As shown in Figure 5,, comprising for having the distributed apparatus schematic diagram of the described interface board of present embodiment: mainboard 10, slave board 20, several interface boards such as interface board 41,42 all are connected on the system bus 30; Each interface board is an example with interface board 41, is provided with interface 51 and waits several interfaces, and enquiry module 411, data packet group compound module 421, the bus interface 431 that links to each other with system bus 30 is used for the transceive data bag.Wherein, data packet group compound module 421 is connected with enquiry module 411, and enquiry module 411, data packet group compound module 421, and bus interface 431 and several interfaces all are connected on the plate internal bus.Below need carry out with interface 51 that data packet transmission is an example between plate to interface 52, the operation principle of this equipment is described.
After the interface 51 of interface board 41 was received a packet, enquiry module 411 was inquired about corresponding stream index sign according to the stream characteristic information in this packet.Below, be that five-tuple information is illustrated with this stream characteristic information, for other stream characteristic informations, processing method is identical.If successful inquiring then identifies the stream index that inquires and the non-standard header of this packet sends to data packet group compound module 421; If inquiry failure, untreated packets before the specification interface plate 41 then with above-mentioned five-tuple information, therefore create a corresponding with it stream index sign and a standard packet header, and the stream index sign of creating is written in the standard packet header, send to data packet group compound module 421.Wherein, five-tuple information is meant these five kinds of information of source IP address, purpose IP address, source port number, destination slogan and protocol number of carrying in the packet.Because specific service is being provided once to the user, as download a webpage, transmit a file, or send an Email etc., one group of packet often has identical five-tuple information, therefore can be a data flow with packet definitions with identical five-tuple information, to have in one group of packet of identical five-tuple information, the common header packet information in the packet header of each packet extracts as standard packet header, will be non-standard header with standard header packet information information definition inequality in the packet header.Five-tuple information, standard packet header and stream index sign need be carried out the association preservation, inquire about during for other packets of transmission.Concrete store method has a lot, both can define preservation in advance, also can dynamically generate in transmission course and preserve; Both can be kept in the enquiry module 411, also can be kept in other storage mediums such as internal memory, buffer memory, hard disk of this interface board; Both can be kept in this interface board, and also can be kept in mainboard or other equipment, only according to different store methods, enquiry module 411 will be taked corresponding inquiry mechanism.
Data packet group compound module 421 slave plate internal buses obtain the data volume information of packet, and itself and the information that comes from enquiry module 411 are made up.If come from the information of enquiry module 411 and only is stream index sign and non-standard header, then this stream index sign and non-standard header and data volume are combined into and simplify packet; If come from the information of enquiry module 411 is the standard packet header that carries the stream index sign, then this standard packet header and data volume is combined into the normal data bag.Packet after data packet group compound module 421 will make up sends to bus interface 431, and then sends to mainboard 10 by system bus 30, is transmitted to interface board 42 by mainboard 10.
Based on the described device of present embodiment, because simplifying in the packet of transmitting except comprising data volume information, only comprise stream index sign and non-standard header, and the stream index sign only is the mark that different data streams is carried out, so data volume is considerably less; And, the most contents of the different pieces of information bag in the same data flow all is identical, it is the most information content that standard packet header has comprised packet header, and may be with the partial information content of bag variation, promptly non-standard header only accounts for the very fraction in packet header, therefore, the amount of information of non-standard header also seldom, thereby improved actual effective bandwidth utilance, especially for the very little situation of data volume amount of information, effect is then more obvious.In addition, though the standard packet header in the normal data bag of this device transmission is still very big, but at most only need transmission primaries for each data flow, other packets in this data flow and the same data flow that needs once more to transmit do not need repetition transmission standard packet, therefore, still can guarantee higher actual effective bandwidth utilance.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.
Claims (9)
1, a kind of interplate communication method comprises:
After the incoming interface plate receives packet, according to the stream characteristic information in this packet, the corresponding stream index sign that inquiry is preserved in advance;
Create second packet header, the stream index sign that inquires is written in second packet header,, then should also be written in second packet header by non-standard header if also have and other non-standard header of standard packet header phase region in the packet header of described packet;
The packet header that described packet is replaced in described second packet header is combined into the data volume of described packet and simplifies packet;
The described packet of simplifying is sent to the outgoing interface plate;
After described outgoing interface plate receives and simplifies packet, according to the stream index sign of simplifying in the packet, the corresponding standard packet header that inquiry is preserved in advance;
Standard packet header and data volume are combined into recovery data packets.
2, interplate communication method according to claim 1, it is characterized in that: described basis is simplified the stream index sign in the packet, and the corresponding standard packet header that inquiry is preserved in advance comprises: the corresponding standard packet header that inquiry is preserved in advance according to the sign of the stream index in second packet header of simplifying in the packet.
3, interplate communication method according to claim 1, it is characterized in that: describedly standard packet header and data volume are combined into recovery data packets comprise: the non-standard header in second packet header that will receive is written to form in the standard packet header and recovers packet header, will recover packet header and data volume is combined into recovery data packets.
4, interplate communication method according to claim 1, it is characterized in that: described data volume with the stream index that inquires sign and packet is combined into simplifies packet and comprises: the stream index sign that inquires is written in the data volume of packet, is combined into and simplifies packet.
5, interplate communication method according to claim 4, it is characterized in that: described basis is simplified the stream index sign of packet, and the corresponding standard packet header that inquiry is preserved in advance comprises: the corresponding standard packet header that inquiry is preserved in advance according to the sign of the stream index in the data volume of simplifying in the packet.
6, interplate communication method according to claim 1, it is characterized in that: described step also comprises: if the incoming interface plate does not inquire corresponding stream index sign, then create one with this packet in the corresponding stream index of stream characteristic information sign and standard packet header, with the stream index sign created and standard packet header with flow characteristic information and carry out related preservation.
7, interplate communication method according to claim 6 is characterized in that: described step also comprises: the stream index sign of creating is written in the standard packet header of establishment, is combined into the normal data bag with the data volume of packet, send to the outgoing interface plate.
8, interplate communication method according to claim 7 is characterized in that: described step also comprises: after the outgoing interface plate receives the normal data bag, association is carried out in the sign of the stream index in the normal data bag, stream characteristic information and standard packet header preserved.
9, according to any described interplate communication method among the claim 1-8, it is characterized in that, described according to the stream characteristic information in this packet, inquire about corresponding stream index sign and also comprise:, inquire about corresponding stream index sign according to the five-tuple information in this packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101500931A CN100502365C (en) | 2006-10-26 | 2006-10-26 | Interplate communicating method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101500931A CN100502365C (en) | 2006-10-26 | 2006-10-26 | Interplate communicating method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1933450A CN1933450A (en) | 2007-03-21 |
CN100502365C true CN100502365C (en) | 2009-06-17 |
Family
ID=37879076
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101500931A Active CN100502365C (en) | 2006-10-26 | 2006-10-26 | Interplate communicating method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100502365C (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ES2565628T3 (en) | 2011-07-06 | 2016-04-06 | Huawei Technologies Co., Ltd. | Message processing procedure and related device |
FR2999853B1 (en) * | 2012-12-13 | 2018-05-25 | Enensys Technologies | METHOD FOR GENERATING AND TRANSFERRING AT LEAST ONE DATA STREAM |
CN112350957A (en) * | 2019-08-09 | 2021-02-09 | 中兴通讯股份有限公司 | Method and device for sending network message and network processor |
CN111327546B (en) * | 2020-02-25 | 2022-01-28 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
-
2006
- 2006-10-26 CN CNB2006101500931A patent/CN100502365C/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN1933450A (en) | 2007-03-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CA2968964C (en) | Source ip address transparency systems and methods | |
CN101197851B (en) | Method and system for implementing control of plane centralized type data plane distribution | |
IL219557A (en) | Network application apparatus | |
CN102025630A (en) | Load balancing method and load balancing system | |
JP2002314598A (en) | Data distribution method | |
PL1813088T3 (en) | Method and system for routing in communication networks between a first node and a second node | |
CN101945103A (en) | IP (Internet Protocol) network application accelerating system | |
JP4398354B2 (en) | Relay system | |
EP4084415A1 (en) | Data management method and system, associated subsystem and computer readable medium | |
CN102932262A (en) | Network processor and image realizing method thereof | |
CN100508500C (en) | Interplate communicating method and interface plate | |
CN100502365C (en) | Interplate communicating method | |
CN106464745A (en) | Dns server, client and data synchronization method | |
CN104168338A (en) | Network address conversion device and network address conversion method | |
CN106301844B (en) | Method and device for realizing log transmission | |
CN209805866U (en) | Conversation maintaining system | |
CN1487706B (en) | Method, system and control process for enterprise to communicate timely | |
CN1863202B (en) | Method for improving load balance apparatus and server processing performance | |
CN100561978C (en) | A kind of strategy route device and method | |
CN101605090A (en) | Two layers of middle-agent's of DHCP implementation method in the EPON | |
CN102625162B (en) | Method and system for data transmission | |
CN103379130A (en) | Network access system and method based on application layer data | |
CN101621528B (en) | Conversation system based on Ethernet switch cluster management and method for realizing conversation passage | |
CN102833146B (en) | Method and equipment for network duplicate removal | |
CN100469054C (en) | Method and equipment in use for communication connection of redirecting network |
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 | ||
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. |