CN101267395B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN101267395B
CN101267395B CN2008101019052A CN200810101905A CN101267395B CN 101267395 B CN101267395 B CN 101267395B CN 2008101019052 A CN2008101019052 A CN 2008101019052A CN 200810101905 A CN200810101905 A CN 200810101905A CN 101267395 B CN101267395 B CN 101267395B
Authority
CN
China
Prior art keywords
data
receiving element
packet
data transmission
packet header
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
CN2008101019052A
Other languages
Chinese (zh)
Other versions
CN101267395A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008101019052A priority Critical patent/CN101267395B/en
Publication of CN101267395A publication Critical patent/CN101267395A/en
Application granted granted Critical
Publication of CN101267395B publication Critical patent/CN101267395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention relates to a data transmission method and device, the data transmission method comprising the steps of: a transmission unit adds package heads of all units for the data being transmitted except a destination receiving unit, and transmits the data package added with the package head; a receiving unit that receives the data package deletes the package heads of the unit that transmits the data package to judge whether or not the receiving unit is the destination receiving unit, if so, the data being transmitted successfully; if not, transferring the data package. The method and device solves the data transmission problem in an end system inner part greatly, which avoids operation to carry out a lot of inter-offsets and improves the data transmission efficiency between the data layer and the module.

Description

Data transmission method and device
Technical field
The embodiment of the invention relates to field of computer technology, relates in particular to a kind of data transmission method and device.
Background technology
Along with development of internet technology, the complex data communication system by many machine interconnection and cooperative cooperating has appearred, in these systems, follow some agreements that allow each machine to communicate by letter, i.e. agreement with other machines.A too complicated data communication system is difficult to formulate a separate protocol and solves all problems; Therefore need a whole set of agreement of cooperating with each other (protocol suite), the single agreement in the complex data communication system protocol family is a subproblem in the attention location system only.
Simultaneously, be to reduce the complexity of design of protocol, most network all is to organize by " layer " mode: the purpose of each layer all is to its last layer certain service to be provided, and shields the details that how to realize this service.Like this, in fact just be simplified to transfer of data between " layer " in the transmission through network data.
Current, transmission control protocol (TCP)/Internet protocol (IP) has become the internetworking de facto standards, and it uses simple five " layer " model to organize; In order to realize the transfer of data between the end system; Need each layer collaborative interactive in the whole network, accomplish the transmission of entire stream, as shown in Figure 1; Be existing ICP/IP protocol stack model sketch map; When application layer data transmitted between transport layer, network layer and link layer, the form of the section of changing into, bag, frame was passed through physical layer transmission at last successively; As shown in Figure 2, for existing ICP/IP protocol stack packet changes sketch map, wherein:, transmit data to transport layer in application layer; In transport layer, add TCP packet header, forward the data to network layer; In network layer, add IP packet header, forward the data to link layer; At link layer, add frame head and postamble, forward the data to the opposite end.
To the system of complicacy, idea of modular has been proposed in the system engineering, it is divided into a plurality of little modules according to the principle of function aggregation, unicity and coupling with a large scale system; In a system that is refined as three modules (modules A, module B, module C), transmit data to module C by modules A through module B, data variation is as shown in Figure 3, wherein, in modules A, adds packet header of modules A for data, forwards the data to module B then; At module B, remove the modules A header part, the packet header for data are added module B forwards the data to module C then; At module C, remove module B header part, obtain data and begin to handle.
But above-mentioned TCP/IP standard only is applicable to and the communication of equity section to this complex data Communication System Design of the Internet.Do not provide concrete scheme for the transfer of data between end system inside; In addition, the TCP/IP standard is aimed at the design of complicated internet environment, and its each layer protocol all designed comparatively complicated mechanism and guaranteed its fault-tolerance, but for the system that real-time is had relatively high expectations, its performance is not high; And when data were transmitted between multilayer, the operation of each transmission node of transmitting layer of mediating (inspection packet header, upper strata, deletion packet header, upper strata, make up this layer packet header and send data) was more loaded down with trivial details and repeat.
In addition; For the communication between end system inside, when multilayer is transmitted, all need carry out the operation (delete packet header, upper strata, make up this layer packet header) of cancelling out each other in a large number on the whole path; If there is lot of data to need to transmit, the middle layer bottleneck that just becomes whole system of transmitting; Equally, the operation between multimode also need be carried out the operation (add this module packet header, remove this module packet header) of cancelling out each other in a large number, thereby makes the data transmission efficiency of intermodule low.
Summary of the invention
The embodiment of the invention provides a kind of data transmission method and device, solves end system internal data transfer problem preferably with realization, thereby improves the data transmission mechanism efficient of data Layer and the efficient of modular data transmission mechanism.
The embodiment of the invention provides a kind of data transmission method, and this method comprises:
Transmitting element be data waiting for transmission packet header of adding said transmitting element, and said transmitting element to purpose receiving element between packet header of all unit on the transmission path, and send the packet that adds behind the packet header;
Receive that the receiving element deletion of packet sends the packet header of the unit of this packet, judge whether this receiving element is the purpose receiving element, if, then transfer of data success; Otherwise, transmit packet.
The embodiment of the invention provides a kind of data transmission device, and this device comprises:
Transmitting element is used to the packet header that data waiting for transmission are added the packet header of said transmitting element, reached all unit on the transmission path between said transmitting element to the purpose receiving element, and sends the packet behind the interpolation packet header;
Receiving element is used to receive the packet header of deleting the unit that sends this packet behind the packet, judges whether this receiving element is the purpose receiving element, if then transfer of data is accomplished; Otherwise, transmit packet.
Above-mentioned data transmission method and device have solved end system internal data transfer problem preferably, needing to have avoided the operation of cancelling out each other in a large number of execution, have improved the data transmission efficiency of data Layer, have also improved the data transmission efficiency of intermodule simultaneously.
Through accompanying drawing and embodiment, the technical scheme of the embodiment of the invention is done further detailed description below.
Description of drawings
Fig. 1 is existing ICP/IP protocol stack model sketch map;
Fig. 2 changes sketch map for existing ICP/IP protocol stack packet;
Fig. 3 changes sketch map for existing intermodular data bag;
Fig. 4 is the flow chart of data transmission method embodiment of the present invention;
Fig. 5 is the sketch map of packet alternate embodiment one in the data transmission procedure of the present invention;
Fig. 6 is the sketch map of packet alternate embodiment two in the data transmission procedure of the present invention;
Fig. 7 is the structural representation of data transmission device embodiment of the present invention.
Embodiment
As shown in Figure 4, be the flow chart of data transmission method embodiment of the present invention, this method specifically comprises:
Step 101, transmitting element are the packet header that data waiting for transmission are added all unit except that the purpose receiving element, and send the packet behind the interpolation packet header;
Before step 101, also comprise: data transmission device is divided into a plurality of unit that comprise transmitting element and receiving element, and above-mentioned transmitting element and receiving element can be data Layer or module etc.;
When above-mentioned unit is data Layer, suppose data transmission device is divided into a plurality of data Layers, wherein; Transmitting element is the N layer; The purpose receiving element is that (layer of 1≤i≤N) then at the N layer, adds N layer, N-1 layer ... the packet header of i+1 layer to i; And being forwarded to the N-1 layer, its packet changes as shown in Figure 5;
When above-mentioned unit is module, suppose data transmission device is divided into modules A, module B and module C, then add the packet header of modules A and module B, and be forwarded to module B in modules A, its packet changes as shown in Figure 6;
Step 102, receive that the receiving element deletion of packet sends the packet header of the unit of this packet;
Step 103, this receiving element judge whether this receiving element is the purpose receiving element, if, then transfer of data success, otherwise, transmit packet, execution in step 102.
Wherein, receiving element judges whether this receiving element is whether the purpose receiving element can be that this receiving element is realized through the destination address in the data query bag.
When above-mentioned unit is data Layer; At the N-1 layer, delete the packet header of N layer, whether the destination address in (N-1) layer data query bag is (N-1) layer; If find be not; Then (N-1) layer continues packet is transmitted to (N-2) layer, and then (N-2) layer repeats aforesaid operations, until successfully being sent to the i layer.
When above-mentioned unit was module, in the packet header of module B removing module A, whether the destination address in this packet of module B inquiry was module B; If then transfer of data success; Otherwise, continue to transmit this packet, after this packet is forwarded to module C; Module C inquire in this packet destination address just oneself, then transfer of data success.
Above-mentioned data transmission method; Through being concentrated on transmitting element, the operation of adding packet header handles; Needing to avoid the operation of cancelling out each other in a large number of execution, improved the data transmission efficiency of data Layer, solved the middle problem that layer becomes the system data transmission bottleneck of transmitting; Simultaneously, also improved the data transmission efficiency of intermodule.
As shown in Figure 7, be the structural representation of data transmission device embodiment of the present invention, this device specifically comprises: transmitting element 1 is used to the packet header that data waiting for transmission are added all unit except that the purpose receiving element, and sends the packet behind the interpolation packet header; Receiving element 2 is used to receive the packet header of deleting the unit that sends this packet behind the packet, judges whether this receiving element is the purpose receiving element, if then transfer of data is accomplished; Otherwise, transmit packet.
Wherein, above-mentioned receiving element can comprise: removing module is used to receive the packet header of deleting the unit that sends this packet behind the packet; Enquiry module, whether the destination address that is used for through the data query bag is this receiving element, judges whether this receiving element is the purpose receiving element, if then transfer of data is accomplished, otherwise transmits packet.
In addition, said apparatus also comprises: divide module, be used for data transmission device is divided into a plurality of unit that comprise transmitting element and receiving element; And above-mentioned transmitting element and receiving element can be data Layer or module etc.
Above-mentioned data transmission device concentrates on the transmitting element processing through adding module with the operation of adding packet header entirely, needing to have avoided the operation of cancelling out each other in a large number of execution; Improved the data transmission efficiency of data Layer, solved the middle problem that layer becomes the system data transmission bottleneck of transmitting, destination address is judged and confirmed through processing module; Data successfully are sent to receiving element; Accomplish transfer of data preferably, simultaneously, also improved the data transmission efficiency of intermodule.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (8)

1. data transmission method is characterized in that comprising:
Transmitting element be data waiting for transmission packet header of adding said transmitting element, and said transmitting element to purpose receiving element between packet header of all unit on the transmission path, and send the packet that adds behind the packet header;
Receive that the receiving element deletion of packet sends the packet header of the unit of this packet, judge whether this receiving element is the purpose receiving element, if, then transfer of data success; Otherwise, transmit packet.
2. data transmission method according to claim 1 is characterized in that also comprising:
Data transmission device is divided into a plurality of unit that comprise transmitting element and receiving element.
3. data transmission method according to claim 1 and 2 is characterized in that said transmitting element and receiving element are data Layer or are module.
4. data transmission method according to claim 1 is characterized in that saidly judging whether this receiving element is that the purpose receiving element comprises:
Whether said receiving element is that this receiving element judges whether this receiving element is the purpose receiving element through the destination address in the data query bag.
5. data transmission device is characterized in that comprising:
Transmitting element is used to the packet header that data waiting for transmission are added the packet header of said transmitting element, reached all unit on the transmission path between said transmitting element to the purpose receiving element, and sends the packet behind the interpolation packet header;
Receiving element is used to receive the packet header of deleting the unit that sends this packet behind the packet, judges whether this receiving element is the purpose receiving element, if then transfer of data is accomplished; Otherwise, transmit packet.
6. data transmission device according to claim 5 is characterized in that also comprising:
Divide module, be used for said data transmission device is divided into a plurality of unit that comprise transmitting element and receiving element.
7. according to claim 5 or 6 described data transmission devices, it is characterized in that said transmitting element and receiving element are data Layer or are module.
8. data transmission device according to claim 5 is characterized in that said receiving element comprises:
Removing module is used to receive the packet header of deleting the unit that sends this packet behind the packet;
Enquiry module, whether the destination address that is used for through the data query bag is this receiving element, judges whether this receiving element is the purpose receiving element, if then transfer of data is accomplished, otherwise transmits packet.
CN2008101019052A 2008-03-13 2008-03-13 Data transmission method and device Active CN101267395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101019052A CN101267395B (en) 2008-03-13 2008-03-13 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101019052A CN101267395B (en) 2008-03-13 2008-03-13 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN101267395A CN101267395A (en) 2008-09-17
CN101267395B true CN101267395B (en) 2012-04-25

Family

ID=39989537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101019052A Active CN101267395B (en) 2008-03-13 2008-03-13 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN101267395B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932367B (en) * 2009-03-30 2014-02-19 华为技术有限公司 Method, apparatus and system for processing the private message
CN105978909B (en) * 2016-07-08 2019-01-22 北京炼石网络技术有限公司 Data transmission method, data transmission device and system based on transport-layer encapsulations

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464703A (en) * 2002-06-19 2003-12-31 华为技术有限公司 Method for increasing IP message transferring speed
CN1585407A (en) * 2004-05-26 2005-02-23 杨波 Embedded chip system for supporting TCP/IP V6 protocol
CN1863139A (en) * 2005-07-05 2006-11-15 华为技术有限公司 L2TP message processing method
CN101047620A (en) * 2006-04-07 2007-10-03 华为技术有限公司 Device and method for quickly processing message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464703A (en) * 2002-06-19 2003-12-31 华为技术有限公司 Method for increasing IP message transferring speed
CN1585407A (en) * 2004-05-26 2005-02-23 杨波 Embedded chip system for supporting TCP/IP V6 protocol
CN1863139A (en) * 2005-07-05 2006-11-15 华为技术有限公司 L2TP message processing method
CN101047620A (en) * 2006-04-07 2007-10-03 华为技术有限公司 Device and method for quickly processing message

Also Published As

Publication number Publication date
CN101267395A (en) 2008-09-17

Similar Documents

Publication Publication Date Title
CN103416010B (en) The network automatic conversion between agreement
US8189612B2 (en) System on chip with interface and processing unit configurations provided by a configuration server
CN101047714B (en) Apparatus and method for processing network data
CN102789432B (en) USB device driving method and system
CN1697354B (en) Method for reliable transmitting data through multicast and unicast protocol, and host of receiving data
US8751655B2 (en) Collective acceleration unit tree structure
CN102377640B (en) Message processing apparatus, message processing method and preprocessor
CN102611612A (en) Multi-path communications in a data center environment
CN105075199B (en) Straight-forward network system with multiple distributed connections to each resource
US6760304B2 (en) Apparatus and method for receive transport protocol termination
CN102035751A (en) Data transmission method and equipment
CN108199865A (en) A kind of route service implementation method based on distribution subscription
CN102891803A (en) Congestion processing method and network device
CN104486229A (en) Method and equipment for realizing VPN message forwarding
CN101803289B (en) Fitness based routing
CN101267395B (en) Data transmission method and device
CN1781293A (en) System and method for modifying data transferred from a source to a destination
CN102299862B (en) Quick forwarding equipment and method for two-layer tunnel
WO2012068900A1 (en) File transfer method, transfer engine and network element
CN107819697A (en) Data transmission method, interchanger and data center
CN101488910B (en) Method for communication between several connection interfaces
CN101355483A (en) Method and equipment for transmitting data packet by multiple network ports
CN103999435B (en) For the apparatus and method of efficient network address translation and ALG process
CN102685011B (en) Route computing method in a kind of TRILL network and equipment
US20110270942A1 (en) Combining multiple hardware networks to achieve low-latency high-bandwidth point-to-point communication

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