CN101267395A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN101267395A
CN101267395A CNA2008101019052A CN200810101905A CN101267395A CN 101267395 A CN101267395 A CN 101267395A CN A2008101019052 A CNA2008101019052 A CN A2008101019052A CN 200810101905 A CN200810101905 A CN 200810101905A CN 101267395 A CN101267395 A CN 101267395A
Authority
CN
China
Prior art keywords
data
receiving element
packet
data transmission
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101019052A
Other languages
Chinese (zh)
Other versions
CN101267395B (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 an independent agreement 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 provide certain service to its last layer, and the details that how to realize this service is shielded.Like this, the transmission data in fact just have been simplified to transfer of data between " layer " in network.
Current, transmission control protocol (TCP)/Internet protocol (IP) has become the internetworking de facto standards, 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, finish the transmission of entire stream, as shown in Figure 1, be existing ICP/IP protocol stack model schematic diagram, when application layer data transmits between transport layer, network layer and link layer, the form of the section of changing into, bag, frame is passed through physical layer transmission at last successively; As shown in Figure 2, for existing ICP/IP protocol stack packet changes schematic diagram, 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.
At the system of complexity, 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 wherein, in modules A, is added packet header of modules A for data as shown in Figure 3, 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 at 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 (check packet header, upper strata, deletion packet header, upper strata, make up this layer packet header and send data) of each transmission node of transmitting layer of mediating was more loaded down with trivial details and repeat.
In addition, for the communication between end system inside, when multilayer is transmitted, all need to 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 needs to carry 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 is 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;
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 data waiting for transmission to add the packet header of all unit except that 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 finished; 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.
Below by drawings and Examples, the technical scheme of the embodiment of the invention is described in further detail.
Description of drawings
Fig. 1 is existing ICP/IP protocol stack model schematic diagram;
Fig. 2 changes schematic diagram for existing ICP/IP protocol stack packet;
Fig. 3 changes schematic diagram for existing intermodular data bag;
Fig. 4 is the flow chart of data transmission method embodiment of the present invention;
Fig. 5 is the schematic diagram of packet alternate embodiment one in the data transmission procedure of the present invention;
Fig. 6 is the schematic diagram 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;
Also comprised before step 101: data transmission system 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 system 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 system 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 by 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 is module, packet header at module B removing module A, whether the destination address that module B inquires about in this packet is 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, concentrating on transmitting element by the operation that will add packet header handles, 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, 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 data waiting for transmission to add the packet header of 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 finished; 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 by the data query bag is this receiving element, judges whether this receiving element is the purpose receiving element, if then transfer of data is finished, otherwise transmits packet.
In addition, said apparatus also comprises: divide module, be used for data transmission system 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, by adding module the operation of adding packet header is concentrated on the transmitting element processing 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 by processing module, data successfully are sent to receiving element, finish transfer of data preferably, simultaneously, also improved the data transmission efficiency of intermodule.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, 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 modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (8)

1, a kind of data transmission method is characterized in that comprising:
Transmitting element is 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;
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 system 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 described transmitting element and receiving element are data Layer or module.
4, data transmission method according to claim 1 is characterized in that describedly judging whether this receiving element is that the purpose receiving element comprises:
Whether described receiving element is that this receiving element judges whether this receiving element is the purpose receiving element by the destination address in the data query bag.
5, a kind of data transmission device is characterized in that comprising:
Transmitting element is used to data waiting for transmission to add the packet header of all unit except that 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 finished; Otherwise, transmit packet.
6, data transmission device according to claim 5 is characterized in that also comprising:
Divide module, be used for data transmission system is divided into a plurality of unit that comprise transmitting element and receiving element.
7,, it is characterized in that described transmitting element and receiving element are data Layer or module according to claim 5 or 6 described data transmission devices.
8, data transmission device according to claim 5 is characterized in that described 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 by the data query bag is this receiving element, judges whether this receiving element is the purpose receiving element, if then transfer of data is finished, 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 true CN101267395A (en) 2008-09-17
CN101267395B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101932367A (en) * 2009-03-30 2010-12-29 华为技术有限公司 Method, apparatus and system for processing the private message
CN105978909A (en) * 2016-07-08 2016-09-28 北京炼石网络技术有限公司 Transport layer encapsulation-based data transmission method, and data transmission apparatus and system

Family Cites Families (4)

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

Cited By (4)

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

Also Published As

Publication number Publication date
CN101267395B (en) 2012-04-25

Similar Documents

Publication Publication Date Title
CN101047714B (en) Apparatus and method for processing network data
CN103428226B (en) Method and system for communication of user state and inner core
CN1697354B (en) Method for reliable transmitting data through multicast and unicast protocol, and host of receiving data
CN100369423C (en) Network simulation detection system and method
CN101488922B (en) Network-on-chip router having adaptive routing capability and implementing method thereof
CN102377640B (en) Message processing apparatus, message processing method and preprocessor
CN106953853B (en) Network-on-chip gigabit Ethernet resource node and working method thereof
US20030115350A1 (en) System and method for efficient handling of network data
CN102035751A (en) Data transmission method and equipment
US6760304B2 (en) Apparatus and method for receive transport protocol termination
CN108199865A (en) A kind of route service implementation method based on distribution subscription
CN109417533A (en) Send the method and forwarding device of data
CN104618365B (en) protocol message processing method, device and terminal
CN101267395B (en) Data transmission method and device
CN106301871A (en) A kind of forwarding detection (BFD) method based on lacp and system
CN103299298A (en) Service processing method and system
CN104598430A (en) Network interface interconnection design and control system of CPU interconnection expansion system
CN101488910B (en) Method for communication between several connection interfaces
CN101355483A (en) Method and equipment for transmitting data packet by multiple network ports
CN101501679A (en) Electronic device and method for synchronizing a communication
CN101257390A (en) Machine frame type network appliance and method for network treater to insert card and process business
WO2017088489A1 (en) Data message transmission method and system, and communication system
CN103078720A (en) Message processing method and message processing device
CN107749875B (en) Big data artificial intelligence analytic system
CN113542941A (en) Optical fiber channel and Ethernet networking method based on network on chip

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