CN105337682A - Data transmission method and apparatus - Google Patents

Data transmission method and apparatus Download PDF

Info

Publication number
CN105337682A
CN105337682A CN201410224776.1A CN201410224776A CN105337682A CN 105337682 A CN105337682 A CN 105337682A CN 201410224776 A CN201410224776 A CN 201410224776A CN 105337682 A CN105337682 A CN 105337682A
Authority
CN
China
Prior art keywords
data
error protection
receiving terminal
terminal type
generation
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
CN201410224776.1A
Other languages
Chinese (zh)
Other versions
CN105337682B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410224776.1A priority Critical patent/CN105337682B/en
Publication of CN105337682A publication Critical patent/CN105337682A/en
Application granted granted Critical
Publication of CN105337682B publication Critical patent/CN105337682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a data transmission method and apparatus, and belongs to the technical field of data transmission. The method comprises the following steps: obtaining a receiving end type of a target receiving end corresponding to first data to be transmitted; according to the receiving end type, selecting an error protection method for the first data; according to the error protection method, processing the first data to generate second data, wherein the second data comprises the first data and error protection data; and transmitting the second data to the target receiving end. According to the invention, the error protection method of the first data is determined through the receiving end type of the target receiving end corresponding to the first data to be transmitted, and the second data is generated according to the error protection method and is transmitted to the target receiving end, such that the defect of incapability of adaptation of a single error protection method to multiple receiving end transmission environments is avoided, and the efficiency and the reliability of data transmission are improved.

Description

A kind of method and device transmitting data
Technical field
The present invention relates to technical field of data transmission, particularly a kind of method and device transmitting data.
Background technology
Along with the development of data transmission technology, cause packet loss in order to avoid network problem, by the mode of generated error protected data before data is transmitted to ensure the integrality of data.
The transmitting terminal of data is according to the generation ratio of the data content bag preset and error protection data; data after generated error protection; and these data are sent to server; the data retransmission that receives directly is given corresponding receiving terminal by server, and receiving terminal carries out error protection data decoding according to the data received again and obtains decoded data.
Inventor finds that prior art at least exists following problem:
Due to the problem of the network bandwidth and transmission link, the packet loss of the downlink data that the packet loss of the upstream data that transmitting terminal is corresponding is corresponding compared with receiving terminal is low.Therefore, if adapt to upstream data and arrange above-mentioned generation ratio, then can reduce the protection of downlink data; If adapt to downlink data and arrange above-mentioned generation ratio, then for upstream data, then the error protection data generated too much, can reduce bandwidth availability ratio.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and the device that transmit data.Described technical scheme is as follows:
On the one hand, provide a kind of method transmitting data, described method comprises:
Obtain the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission;
According to the error protection method of described receiving terminal type selecting to described first data;
Carry out process generation second data according to described error protection method to described first data, described second data comprise the first data and error protection data;
Described second data are transferred to described intended recipient end.
Preferably, described according to the error protection method of described receiving terminal type selecting to described first data, comprising:
In the corresponding relation of the generation ratio of the receiving terminal type prestored and error protection data; obtain the generation ratio of error protection data corresponding to described receiving terminal type, and be the error protection method to described first data by the generation ratio-dependent of error protection data corresponding for described receiving terminal type.
Preferably, describedly according to described error protection method, process generation second data are carried out to described first data, comprising:
According to the generation ratio of error protection data corresponding to described receiving terminal type, error protection data coding generation second data are carried out to described first data.
Preferably, described according to described error protection method process generation second data are carried out to described first data before, described method also comprises:
Inquire about in described first data and whether there is error protection data;
If there is error protection data in described first data, then error protection data decoding is carried out to described first data.
Preferably, if there is error protection data in described first data, then error protection data decoding is carried out to described first data, comprising:
If inquire the mark of error protection data in the packet header of the packet of described first data, then determine to there is error protection data in described first data, and error protection data decoding is carried out to described first data.
On the other hand, provide a kind of device transmitting data, described device comprises:
Acquisition module, for obtaining the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission;
Select module, for according to the error protection method of described receiving terminal type selecting to described first data;
Generation module, for carrying out process generation second data according to described error protection method to described first data, described second data comprise the first data and error protection data;
Transport module, for being transferred to described intended recipient end by described second data.
Preferably, described selection module specifically for:
In the corresponding relation of the generation ratio of the receiving terminal type prestored and error protection data; obtain the generation ratio of error protection data corresponding to described receiving terminal type, and be the error protection method to described first data by the generation ratio-dependent of error protection data corresponding for described receiving terminal type.
Preferably, described generation module specifically for:
According to the generation ratio of error protection data corresponding to described receiving terminal type, error protection data coding generation second data are carried out to described first data.
Preferably, described device also comprises:
Enquiry module, for inquiring about in described first data whether there is error protection data;
Decoder module, if for there is error protection data in described first data, then carry out error protection data decoding to described first data.
Preferably, described decoder module specifically for:
If inquire the mark of error protection data in the packet header of the packet of described first data, then determine to there is error protection data in described first data, and error protection data decoding is carried out to described first data.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
Determine the error protection method to the first data by the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission, generate the second data according to this error protection method, and the second data are transferred to intended recipient end.Avoid the defect that single error protection mode cannot adapt to multiple receiving terminal transmission environment, improve efficiency and the reliability of transmission data.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the transmission data that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the transmission data that the embodiment of the present invention two provides;
Fig. 3 is the method flow diagram of the transmission data that the embodiment of the present invention three provides;
Fig. 4 is the apparatus structure schematic diagram of the transmission data that the embodiment of the present invention four provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method transmitting data, see Fig. 1, method flow comprises:
101: the receiving terminal type obtaining intended recipient end corresponding to the first data waiting for transmission;
102: according to the error protection method of receiving terminal type selecting to the first data;
103: carry out process generation second data according to error protection method to the first data, the second data comprise the first data and error protection data;
104: the second data are transferred to intended recipient end.
The embodiment of the present invention determines the error protection method to the first data by the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission, generates the second data, and the second data are transferred to intended recipient end according to this error protection method.Avoid the defect that single error protection mode cannot adapt to multiple receiving terminal transmission environment, improve efficiency and the reliability of transmission data.
Embodiment two
Embodiments provide a kind of method transmitting data, see Fig. 2.
It should be noted that, in embodiments of the present invention, be described with the non-executive agent of source transmitting terminal of data.
Wherein, the method flow process comprises:
201: the receiving terminal type obtaining intended recipient end corresponding to the first data waiting for transmission.
Wherein, the first data are original data waiting for transmission in embodiments of the present invention, wherein do not comprise any error protection data, therefore in embodiments of the present invention, without the need to carrying out the operation of removing error protection data in the first data.
Wherein, the receiving terminal type of intended recipient end can include but not limited to: network forwarding equipment, server, data receiver etc.Wherein, data receiver is then the object terminal of data.
Further, the mode obtaining the receiving terminal type of intended recipient end can be determined by the address of intended recipient end.Wherein, the address of intended recipient end and the corresponding relation of receiving terminal type can be prestored, and from this corresponding relation, determine the receiving terminal type of intended recipient end.
202: in the corresponding relation of the generation ratio of the receiving terminal type prestored and error protection data; obtain the generation ratio of error protection data corresponding to receiving terminal type, and be the error protection method to the first data by the generation ratio-dependent of error protection data corresponding for receiving terminal type.
Wherein, the corresponding a kind of error protection method of the generation ratio of each error protection data.
Error protection data can include but not limited in embodiments of the present invention: forward error correction.
Such as: when receiving terminal type is network forwarding equipment; network condition in such cases in general transmitting procedure is better; therefore can the generation ratio between setting data content bag and error protection data be the mode generated error protected data of 10:1; to reduce the quantity of the error protection data in the second data of generation; reach the object of the capacity of reduction by second data, improve bandwidth availability ratio.
When receiving terminal type is data receiver; network condition in such cases in general transmitting procedure is poor; therefore can the generation ratio between setting data content bag and error protection data be the mode generated error protected data of 6:1; to improve the quantity of the error protection data in the second data of generation; improve the data protection ability to the first data, reduce cause because of frame losing in transmitting procedure cannot the possibility of restoring data.
203: according to the generation ratio of error protection data corresponding to receiving terminal type, carry out error protection data coding generation second data to the first data, the second data comprise the first data and error protection data.
204: the second data are transferred to intended recipient end.
The embodiment of the present invention determines the error protection method to the first data by the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission, generates the second data, and the second data are transferred to intended recipient end according to this error protection method.Avoid the defect that single error protection mode cannot adapt to multiple receiving terminal transmission environment, improve efficiency and the reliability of transmission data.
Embodiment three
Embodiments provide a kind of method transmitting data, see Fig. 3.
It should be noted that, in embodiments of the present invention, with the transferring equipment of data for executive agent is described, as network forwarding equipment, or server is that example is described.
Wherein, method flow comprises:
301: receive the first data, and inquire about in the first data whether there is error protection data.
The mode of inquiry is the mark of inquiring about this packet in the packet header of each packet in the first data, and wherein the type of packet can be divided into two kinds, and one is data content bag, and another kind is error protection data bag.Accordingly, the mark of corresponding stored Various types of data bag in the packet header of packet, can determine whether there is error protection data in the first data by inquiring about this mark.
302: if there is error protection data in the first data, then error protection data decoding is carried out to the first data.
Wherein, the first data convert, then for carrying out the process of error protection data decoding to the first data, is the data before error protection data coding by the process of deletion.
Accordingly, step 302 can be specially:
If inquire the mark of error protection data in the packet header of the packet of the first data, then determine to there is error protection data in the first data, and error protection data decoding is carried out to the first data.
Wherein, the process of decoding can be; completeness check is carried out to the data content bag in the first data; if there is the data content bag that frame losing occurs in check results; then search the corresponding error protection data of this data content bag, and carry out data content Recovery processing according to the data content bag of this error protection data to this generation frame losing.
303: the receiving terminal type obtaining intended recipient end corresponding to the first data waiting for transmission.
Wherein, the receiving terminal type of intended recipient end can include but not limited to: network forwarding equipment, server, data receiver etc.Wherein, data receiver is then the object terminal of data.
Further, the mode obtaining the receiving terminal type of intended recipient end can be determined by the address of intended recipient end.Wherein, the address of intended recipient end and the corresponding relation of receiving terminal type can be prestored, and from this corresponding relation, determine the receiving terminal type of intended recipient end.
304: in the corresponding relation of the generation ratio of the receiving terminal type prestored and error protection data; obtain the generation ratio of error protection data corresponding to receiving terminal type, and be the error protection method to the first data by the generation ratio-dependent of error protection data corresponding for receiving terminal type.
Wherein, the corresponding a kind of error protection method of the generation ratio of each error protection data.
Error protection data can include but not limited in embodiments of the present invention: forward error correction.
305: according to the generation ratio of error protection data corresponding to receiving terminal type, carry out error protection data coding generation second data to the first data, the second data comprise the first data and error protection data.
306: the second data are transferred to intended recipient end.
The embodiment of the present invention determines the error protection method to the first data by the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission, generates the second data, and the second data are transferred to intended recipient end according to this error protection method.Avoid the defect that single error protection mode cannot adapt to multiple receiving terminal transmission environment, improve efficiency and the reliability of transmission data.
Embodiment four
Embodiments provide a kind of device transmitting data, see Fig. 4, this device comprises:
Acquisition module 401, for obtaining the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission;
Select module 402, for according to the error protection method of receiving terminal type selecting to the first data;
Generation module 403, for carrying out process generation second data according to error protection method to the first data, the second data comprise the first data and error protection data;
Transport module 404, for being transferred to intended recipient end by the second data.
Wherein, select module 402 specifically for:
In the corresponding relation of the generation ratio of the receiving terminal type prestored and error protection data; obtain the generation ratio of error protection data corresponding to receiving terminal type, and be the error protection method to the first data by the generation ratio-dependent of error protection data corresponding for receiving terminal type.
Wherein, generation module 403 specifically for:
According to the generation ratio of error protection data corresponding to receiving terminal type, error protection data coding generation second data are carried out to the first data.
Wherein, device also comprises:
Enquiry module 405, for inquiring about in the first data whether there is error protection data;
Decoder module 406, if for there is error protection data in the first data, then carry out error protection data decoding to the first data.
Wherein, decoder module 406 specifically for:
If inquire the mark of error protection data in the packet header of the packet of the first data, then determine to there is error protection data in the first data, and error protection data decoding is carried out to the first data.
The embodiment of the present invention determines the error protection method to the first data by the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission, generates the second data, and the second data are transferred to intended recipient end according to this error protection method.Avoid the defect that single error protection mode cannot adapt to multiple receiving terminal transmission environment, improve efficiency and the reliability of transmission data.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. transmit a method for data, it is characterized in that, described method comprises:
Obtain the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission;
According to the error protection method of described receiving terminal type selecting to described first data;
Carry out process generation second data according to described error protection method to described first data, described second data comprise the first data and error protection data;
Described second data are transferred to described intended recipient end.
2. method according to claim 1, is characterized in that, described according to the error protection method of described receiving terminal type selecting to described first data, comprising:
In the corresponding relation of the generation ratio of the receiving terminal type prestored and error protection data; obtain the generation ratio of error protection data corresponding to described receiving terminal type, and be the error protection method to described first data by the generation ratio-dependent of error protection data corresponding for described receiving terminal type.
3. method according to claim 2, is characterized in that, describedly carries out process generation second data according to described error protection method to described first data, comprising:
According to the generation ratio of error protection data corresponding to described receiving terminal type, error protection data coding generation second data are carried out to described first data.
4. method according to claim 1, is characterized in that, described according to described error protection method process generation second data are carried out to described first data before, described method also comprises:
Inquire about in described first data and whether there is error protection data;
If there is error protection data in described first data, then error protection data decoding is carried out to described first data.
5. method according to claim 4, is characterized in that, if there is error protection data in described first data, then carries out error protection data decoding to described first data, comprising:
If inquire the mark of error protection data in the packet header of the packet of described first data, then determine to there is error protection data in described first data, and error protection data decoding is carried out to described first data.
6. transmit a device for data, it is characterized in that, described device comprises:
Acquisition module, for obtaining the receiving terminal type of intended recipient end corresponding to the first data waiting for transmission;
Select module, for according to the error protection method of described receiving terminal type selecting to described first data;
Generation module, for carrying out process generation second data according to described error protection method to described first data, described second data comprise the first data and error protection data;
Transport module, for being transferred to described intended recipient end by described second data.
7. device according to claim 6, is characterized in that, described selection module specifically for:
In the corresponding relation of the generation ratio of the receiving terminal type prestored and error protection data; obtain the generation ratio of error protection data corresponding to described receiving terminal type, and be the error protection method to described first data by the generation ratio-dependent of error protection data corresponding for described receiving terminal type.
8. device according to claim 7, is characterized in that, described generation module specifically for:
According to the generation ratio of error protection data corresponding to described receiving terminal type, error protection data coding generation second data are carried out to described first data.
9. device according to claim 6, is characterized in that, described device also comprises:
Enquiry module, for inquiring about in described first data whether there is error protection data;
Decoder module, if for there is error protection data in described first data, then carry out error protection data decoding to described first data.
10. device according to claim 9, is characterized in that, described decoder module specifically for:
If inquire the mark of error protection data in the packet header of the packet of described first data, then determine to there is error protection data in described first data, and error protection data decoding is carried out to described first data.
CN201410224776.1A 2014-05-26 2014-05-26 A kind of method and device of transmission data Active CN105337682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410224776.1A CN105337682B (en) 2014-05-26 2014-05-26 A kind of method and device of transmission data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410224776.1A CN105337682B (en) 2014-05-26 2014-05-26 A kind of method and device of transmission data

Publications (2)

Publication Number Publication Date
CN105337682A true CN105337682A (en) 2016-02-17
CN105337682B CN105337682B (en) 2018-10-12

Family

ID=55288014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410224776.1A Active CN105337682B (en) 2014-05-26 2014-05-26 A kind of method and device of transmission data

Country Status (1)

Country Link
CN (1) CN105337682B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018166433A1 (en) * 2017-03-15 2018-09-20 华为技术有限公司 Data transmission method and related device
CN111767564A (en) * 2020-09-03 2020-10-13 北京悠易网际科技发展有限公司 Data replacement method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859580A (en) * 2005-10-17 2006-11-08 华为技术有限公司 Multimedia data network realtime transfer method for supporting error elasticity
US20100034161A1 (en) * 2008-08-07 2010-02-11 Qualcomm Incorporated Rnti-dependent scrambling sequence initialization
CN102065372A (en) * 2009-11-16 2011-05-18 中国移动通信集团公司 Method for transmitting data in broadcast mode and related device
CN103078798A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Method and equipment for establishing route table

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859580A (en) * 2005-10-17 2006-11-08 华为技术有限公司 Multimedia data network realtime transfer method for supporting error elasticity
US20100034161A1 (en) * 2008-08-07 2010-02-11 Qualcomm Incorporated Rnti-dependent scrambling sequence initialization
CN102065372A (en) * 2009-11-16 2011-05-18 中国移动通信集团公司 Method for transmitting data in broadcast mode and related device
CN103078798A (en) * 2012-12-28 2013-05-01 华为技术有限公司 Method and equipment for establishing route table

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018166433A1 (en) * 2017-03-15 2018-09-20 华为技术有限公司 Data transmission method and related device
CN108632896A (en) * 2017-03-15 2018-10-09 华为技术有限公司 A kind of data transmission method and relevant device
CN108632896B (en) * 2017-03-15 2020-09-29 华为技术有限公司 Data transmission method and related equipment
US11240709B2 (en) 2017-03-15 2022-02-01 Huawei Technologies Co., Ltd. Data transmission method and related device
CN111767564A (en) * 2020-09-03 2020-10-13 北京悠易网际科技发展有限公司 Data replacement method and device and electronic equipment

Also Published As

Publication number Publication date
CN105337682B (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN107257270B (en) Data transmission method and system based on hybrid automatic repeat request
US9356879B2 (en) Optimized path maximum transmission unit discovery
CN110943800A (en) Method, device and system for sending data packet, storage medium and electronic device
CN106330414A (en) Message transmission method and device
CN110708397B (en) Apparatus and method for data delivery in Delay Tolerant Networks (DTNs)
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
US20170078916A1 (en) Data processing method and apparatus
WO2017112744A1 (en) Improved joint fountain coding and network coding for loss-tolerant information spreading
JP2022507567A (en) Shifting in the sky wave system
US10412151B2 (en) Method and system for on-demand file repair
CN110545161B (en) Multimedia data real-time transmission method with redundancy
US9548921B2 (en) Compression of routing information exchanges
KR102539421B1 (en) Apparatus for one-way data transmission, apparatus for one-way data reception, and one-way data transmission method for using the same
CN111836233B (en) Data transmission method, communication device, and storage medium
CN105337682A (en) Data transmission method and apparatus
US10484148B2 (en) Method and device for transmitting and receiving multimedia data
CN105490773A (en) Method and device for transmitting multimedia data
CN112804028B (en) Data packet transmission method, equipment and storage medium
CN103281369B (en) Message processing method and wide area network acceleration controller WOC
US20130322468A1 (en) Apparatus and method for transmitting/receiving data in communication system
US9059847B2 (en) Reliable multicast broadcast in wireless networks
EP3952174B1 (en) Method for robust transmission of samples of digitised signals in an rf communication system
CN111385241B (en) Method, device and system for repairing lost packet of multimedia data and readable storage medium
CN104579562A (en) Data transmission device and method
CN102571264B (en) Method and device for protecting integrity of file during broadcasting of data file

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant