CN107707640A - A kind of Point-to-Point Data Transmission method and apparatus - Google Patents

A kind of Point-to-Point Data Transmission method and apparatus Download PDF

Info

Publication number
CN107707640A
CN107707640A CN201710874796.7A CN201710874796A CN107707640A CN 107707640 A CN107707640 A CN 107707640A CN 201710874796 A CN201710874796 A CN 201710874796A CN 107707640 A CN107707640 A CN 107707640A
Authority
CN
China
Prior art keywords
data
data block
point
receiving node
duration
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.)
Pending
Application number
CN201710874796.7A
Other languages
Chinese (zh)
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.)
Shenzhen Shenglu IoT Communication Technology Co Ltd
Original Assignee
Shenzhen Shenglu IoT Communication Technology 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 Shenzhen Shenglu IoT Communication Technology Co Ltd filed Critical Shenzhen Shenglu IoT Communication Technology Co Ltd
Priority to CN201710874796.7A priority Critical patent/CN107707640A/en
Publication of CN107707640A publication Critical patent/CN107707640A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The present invention relates to include including a kind of Point-to-Point Data Transmission method and apparatus, its method:Sending node is established to the connecting link of receiving node;When monitoring data to be transmitted bag to be present in task stack team, data to be transmitted bag is split according to default segmentation rule, obtains multiple data blocks;Unique label is set to multiple data blocks, the order that multiple data blocks are split according to data block is numbered;Statistics block number information, amount of capacity information and its label information are generated into message;To send there is provided each data block and message of numbering in the lump into receiving node.The present invention by transmitting again by data to be transmitted bag piecemeal, according to along setting label, effectively raise data transmission efficiency, by data to be transmitted bag piecemeal and the processing mode of numbering, receiving terminal can be easy to quickly to integrate each data block, and when some or multiple transmission of data blocks fail, data block can be retransmitted according to label information, without again retransmitting total data.

Description

A kind of Point-to-Point Data Transmission method and apparatus
Technical field
The present invention relates to technical field of data transmission, more particularly to a kind of Point-to-Point Data Transmission method and apparatus.
Background technology
Under current information society high speed development, as data message constantly increases severely, for the transmission requirement of big data Also more and more higher, the data integrity and efficiency of transmission that current technology means are transmitted for big data can't be satisfactory, Especially when there are some loss of datas, search get up it is fairly cumbersome, total data need to be passed once again again, take compared with More resources, cause time waste and the raising of financial cost.How data transmission efficiency and quick solution transmission data are improved Loss situation, it is current people's urgent problem to be solved.
The content of the invention
In order to solve the above technical problems, the invention provides a kind of Point-to-Point Data Transmission method and apparatus.
In a first aspect, the embodiments of the invention provide a kind of Point-to-Point Data Transmission method, comprise the following steps:
Sending node is established to the connecting link of receiving node;
When monitoring data to be transmitted bag to be present in task stack team, the data to be transmitted bag is obtained;
The sending node is split the data to be transmitted bag according to default segmentation rule, obtains multiple data Block;
Unique label is set to the multiple data block, the label includes data block classification information, will be described more The order that individual data block is split according to data block is numbered, by the label of data block corresponding to the numbering write-in;
The number of sending node statistics label and the data volume size of each data block, and by the number information of statistics, Data volume size information and its corresponding data block label information generation message;
To send there is provided each data block of numbering and the message to the receiving node.
The present invention by by data to be transmitted bag piecemeal, according to along setting label and numbering, then be transmitted, effectively carry High data transmission efficiency, by data to be transmitted bag piecemeal and the processing mode of numbering, can be easy to receiving terminal quickly by each number Integrate according to block, and when some or multiple transmission of data blocks fail, can be retransmitted data block according to label information, and Total data need not be retransmitted again, because data to be transmitted is coated with block transmission, its occupancy is small will not also to take excessive money Source, so as to save time cost and financial cost.
Further, described will be sent in the lump to described receive there is provided each data block of numbering and the message is saved In point, concretely comprise the following steps:First send the message and send each data block successively further according to number order to the receiving node In.
Above-mentioned further technical scheme, receiving node is set to be preferentially received message, and sequentially receiving node is easy in transmission Each data block is reintegrated.
Second aspect, present invention also offers a kind of Point-to-Point Data Transmission device, including:
Link connection module, for establishing sending node to the connecting link of receiving node;
Monitoring modular, for when monitoring data to be transmitted bag to be present in task stack team, obtaining the data to be transmitted Bag, and send into sending node;
The sending node, for being split the data to be transmitted bag according to default segmentation rule, obtain multiple Data block;
And unique label is set to the multiple data block, the label includes data block classification information, by described in The order that multiple data blocks are split according to data block is numbered, by the label of data block corresponding to the numbering write-in;
And the number of label and the data volume size of each data block are counted, and by the number information of statistics, data volume size Information and its corresponding data block label information generation message;
To send there is provided each data block of numbering and the message to the receiving node.
The present invention by by data to be transmitted bag piecemeal, according to along setting label and numbering, then be transmitted, effectively carry High data transmission efficiency, by data to be transmitted bag piecemeal and the processing mode of numbering, can be easy to receiving terminal quickly by each number Integrate according to block, and when some or multiple transmission of data blocks fail, can be retransmitted data block according to label information, and Total data need not be retransmitted again, because data to be transmitted is coated with block transmission, its occupancy is small will not also to take excessive money Source, so as to save time cost and financial cost.
Further, the sending node is specifically used for, and the message is first sent further according to volume according to the transmission instruction Number order sends each data block into the receiving node successively.
Above-mentioned further technical scheme, receiving node is set to be preferentially received message, and sequentially receiving node is easy in transmission Each data block is reintegrated.
Brief description of the drawings
Fig. 1 is the method flow diagram for the Point-to-Point Data Transmission method that one embodiment of the invention provides;
Fig. 2 is the method flow diagram for the Point-to-Point Data Transmission method that one embodiment of the invention provides;
Fig. 3 is the method flow diagram for the Retransmission timeout mechanism that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram for the Retransmission timeout mechanism that another embodiment of the present invention provides;
Fig. 5 is the module frame chart for the Point-to-Point Data Transmission device that one embodiment of the invention provides.
In accompanying drawing, the list of parts representated by each label is as follows:
01st, sending node, 02, receiving node.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as particular system structure, interface, technology it The detail of class, understand the present invention to cut thoroughly.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, circuit with And the detailed description of method, in case unnecessary details hinders description of the invention.
Fig. 1 is the method flow diagram for the Point-to-Point Data Transmission method that one embodiment of the invention provides;
As shown in figure 1, the embodiments of the invention provide a kind of Point-to-Point Data Transmission method, comprise the following steps:
Step S01:Sending node is established to the connecting link of receiving node;
Step S02:When monitoring data to be transmitted bag to be present in task stack team, the data to be transmitted bag is obtained;
Step S03:The sending node is split the data to be transmitted bag according to default segmentation rule, is obtained Multiple data blocks;
Step S04:Unique label is set to the multiple data block, the label includes data block classification information, The order that the multiple data block is split according to data block is numbered, by the mark of data block corresponding to the numbering write-in In label;
In this step, numbering is set for each data block, so that receiving node is received after each data block according to the volume Number reintegrated;
Step S05:The number and each data block amount of capacity of sending node statistics label, and by the number of statistics Information, amount of capacity information and its corresponding data block label information generation message;
Step S06:To send there is provided each data block of numbering and the message to the receiving node.
In above-described embodiment, by setting label and numbering by data to be transmitted bag piecemeal, according to suitable, then it is transmitted, has Effect improves data transmission efficiency, by data to be transmitted bag piecemeal and the processing mode of numbering, receiving terminal can be easy to quick Each data block is integrated, and when some or multiple transmission of data blocks fail, data block can be subjected to weight according to label information Pass, without again retransmitting total data, because data to be transmitted is coated with block transmission, its occupancy is small will not also to be taken More resource, so as to save time cost and financial cost.
It is described to send there is provided each data block of numbering and the message to described specifically, in above-described embodiment Receiving node, concretely comprise the following steps:First send the message and send each data block successively further according to number order to the reception In node.
Receiving node can be made to be preferentially received message, and sequentially transmission is easy to receiving node to carry out each data block Reintegrate.
Fig. 2 is the method flow diagram for the Point-to-Point Data Transmission method that one embodiment of the invention provides;
Preferential, the present embodiment is improved on the basis of Fig. 1, as shown in Fig. 2
Step S011:Sending node is established to the connecting link of receiving node;
Step S012:When monitoring data to be transmitted bag to be present in task stack team, the data to be transmitted bag is obtained;
Step S013:The sending node is split the data to be transmitted bag according to default segmentation rule, is obtained Multiple data blocks;
Step S014:Unique label is set to the multiple data block, and the label includes data block classification letter Breath, and the order that the multiple data block is split according to data block is numbered, by data block corresponding to the numbering write-in Label in;
Step S015:Unified safety code is set to each data block, and the safety code is used to judge whether for receiving node Receive data block;
Specifically, the specific method of safety code is set in above-described embodiment to be:
The numeric string or English words letter string that safety code can be randomly generated, can also be set, such as safety code bag The data block number and date of shipping of this transmission are included, i.e. 20170810-25,20170810 represent date of shipping, and 25 represent this The secondary number for sending data block;
In this step, the safety code of setting, the security of data transfer is improved, when receiving node receives data block, really Determine whether data block includes the safety code, if including receiving, otherwise not receiving;
Step S016:The number of sending node statistics label and the data volume size of each data block, and by statistics Number information, data volume size information and its corresponding data block label information and safety code generation message;
Step S017:To send there is provided each data block of safety code and the message to the receiving node.
In above-described embodiment, by setting the form of safety code for each data block, prevent viral data from transmitting in the lump to connecing Node is received, improves the security of data transfer.
Preferably, the present embodiment is improved on the basis of Fig. 1, and the sending node will according to default segmentation rule The data to be transmitted bag is split, and obtains multiple data blocks and specifically includes:
The capacity such as data to be transmitted bag are split, obtain the equal-sized data block of multiple data volumes;
Or
By data to be transmitted bag random division, multiple unequal data blocks of data volume size are obtained.
In above-described embodiment, if selecting that, by data to be transmitted bag random division, step can also be included, data are set Threshold value is measured, the data volume size for the data block that random division is obtained is compared with the data-quantity threshold, if random divide The data volume for the data block for cutting to obtain then carries out random division again more than or equal to the data-quantity threshold, until obtaining small In the data block of the data-quantity threshold.
In above-described embodiment, the transmission packet for the treatment of that can relatively rationalize is split, and is partitioned into data volume size and fits When data block, be easy to transmit.
Fig. 3 is the method flow diagram for the Retransmission timeout mechanism that another embodiment of the present invention provides;
Preferably, the present embodiment is improved on the basis of Fig. 1, it is described by there is provided each data block of numbering and The message is sent to the receiving node, in addition to step:Each data block is judged according to the Retransmission timeout mechanism of setting Whether transmission is successful;
As shown in figure 3, the Retransmission timeout mechanism includes:
Step A01:It is provided for judging the preset data transmission difference duration t whether the transmission duration of data block is overtime;
Step A02:Obtain duration W used in data volume size, transmission rate and the actual transmissions of each data blockn
In this step, duration W used in actual transmissionsnAcquisition, time that data BOB(beginning of block) is sent and the data can be passed through The difference for the time that block end is sent, that is, obtain duration W used in actual transmissionsn
Step A03:Determine that each data block is sent to reception according to the data volume size and transmission rate of each data block The estimated duration T of noden
In this step, it is contemplated that duration TnUtopian transmission duration is referred to, it is certain in transmission rate, and not middle stealpass In the case of defeated, the transmission duration that calculates, for judging the deviation of transmission of data blocks duration;
Step A04:Calculate duration W used in the actual transmissions of current data blocknWith estimated duration TnAbsolute difference, obtain To actual transmissions difference duration a;
In this step, for example, duration W used in actual transmissionsnFor 45min, it is contemplated that duration TnFor 20min, calculate | Wn-Tn| Actual transmissions difference duration a is obtained, | a |=25min;
Step A05:Judge whether the actual transmissions difference duration a of current data block is more than or equal to the data transfer Difference duration t, if it is, judging that current data block is transmitted as time-out, and step A06 is performed, otherwise perform step A07;
In this step, if data transfer difference duration t is 20min, actual transmissions difference duration a is 25min, is compared Compared with then actual transmissions difference duration a is more than data transfer difference duration t, then the data block has timeout case;
Step A06:By in the label information writing data blocks time-out report of current data block;
Step A07:When completion all data blocks time-out judges, data block time-out report is sent extremely to receive and saved Point.
The step A07 is specifically included, and is made whether to complete the judgement of all data block timeout cases, if it is, will The data block time-out report is sent to receiving node, so that the receiving node is according in data block time-out report Label information is confirmed whether to receive the data, otherwise continues to judge subsequent data chunk, returns and performs step A04.
In above-described embodiment, sending node passes through the data volume size of each data block, transmission rate and actual transmissions institute With duration, to calculate the estimated duration of transmission of data blocks, obtain actual transmissions difference duration, then with default poor data transmission Value duration is compared, and can actively find out which data block there is a situation where to send time-out, and is reported to receiving node, Data block time-out report is sent, receiving node determines whether data block receives success according to the report of data block time-out, therefore Improve the success rate of data receiver.
Fig. 4 is the method flow diagram for the Retransmission timeout mechanism that another embodiment of the present invention provides;
Preferably, the present embodiment is improved on the basis of Fig. 3, as shown in figure 4, the Retransmission timeout mechanism includes:
Step A01:It is provided for judging the preset data transmission difference duration t whether the transmission duration of data block is overtime;
Step A02:Obtain duration W used in data volume size, transmission rate and the actual transmissions of each data blockn
Step A03:Determine that each data block is sent to reception according to the data volume size and transmission rate of each data block The estimated duration T of noden
Step A04:Calculate duration W used in the actual transmissions of current data blocknWith estimated duration TnAbsolute difference, obtain To actual transmissions difference duration a;In this step, for example, duration W used in actual transmissionsnFor 45min, it is contemplated that duration TnFor 20min, calculate | Wn-Tn| actual transmissions difference duration a is obtained, | a |=25 min;
Step A05:Judge whether the actual transmissions difference duration a of current data block is more than or equal to the data transfer Difference duration t, if it is, judging that current data block is transmitted as time-out, and step A06 is performed, otherwise perform step A07;Example Such as, if data transfer difference duration t is 20min, actual transmissions difference duration a is 25min, is compared, then actual transmissions are poor Value duration a is more than data transfer difference duration t, then the data block has timeout case;
Step A06:By in the label information writing data blocks time-out report of current data block;
Step A07:Whether complete the judgement of all data block timeout cases, if it is, perform step A08, otherwise after It is continuous that subsequent data chunk is judged, return and perform step A04;
Step A08:Data block time-out report is sent to receiving node, so that the receiving node is according to Label information in data block time-out report is confirmed whether to receive the data block;
Sending node is by duration used in the data volume size, transmission rate and actual transmissions of each data block, to calculate Taking for transmission of data blocks, obtains actual transmissions difference duration, then compared with default data transfer difference duration, energy Enough which data blocks that actively finds out there is a situation where to send time-out, and be reported to receiving node, that is, send data block time-out report Accuse;
Also include, receiving node determines whether data block receives successful step according to the report of data block time-out:
Step A09:The data block time-out for receiving the receiving node feedback determines report, and the data block time-out determines Report includes the data block label information of each reception failure, and searches whether weight be present from the data block label information Acknowledgement indicator is sent out, if there is corresponding to the then numbering lookup in the repeating transmission acknowledgement indicator and data block label information Data block, by the data block retransmissions found into the receiving node, wherein, the repeating transmission acknowledgement indicator is by described Receiving node is written into the data block label information for the data block that need to be retransmitted.
Specifically, when the receiving node receives the data block time-out report of sending node transmission, institute is confirmed one by one Whether each data block stated in data block time-out report receives success, in the data block of the data block if not receiving successfully Write-in, which is retransmitted, in label information confirms mark, and generates data block time-out and determine that report is sent into sending node, the transmission Node is connected to the data block time-out and determined after reporting, repeating transmission is searched from data block label information and confirms mark, according to repeating transmission Confirm that mark determines to be retransmitted corresponding data block;
The repeating transmission acknowledgement indicator can be written form, such as " it is determined that repeating transmission ", will be corresponding to " it is determined that repeating transmission " write In data block label information, then when sending node receives data block time-out determination report, report is determined from data block time-out Read block label information in announcement, and from the mark of data block label information lookup " it is determined that repeating transmission ", and according to " it is determined that weight Corresponding data block is re-transmitted in receiving node by hair ";Or the repeating transmission acknowledgement indicator can also be numeral or word Female form, such as " 1 ", " 2 ", " A ", " B ", agreement 1 represent to need to retransmit, and 2 represent to retransmit, and agreement A represents to need Retransmit, B represents to retransmit;Or the acknowledgement indicator of retransmitting can also be digital or letter form, such as " △ ", "○", agreement △ represent to need to retransmit, and zero represents to retransmit.
In the above-mentioned embodiment for data block retransmissions, sending node can be by transmitting terminal active detecting with the presence or absence of number The possibility of failure is sent according to block time-out, and data block time-out report is sent into receiving node, and is determined by receiving node Data block sends success or not, and receiving node is searched corresponding according to the data block label information recorded in data block time-out report Data block whether be properly received, if be not successfully received, by retransmit acknowledgement indicator write in the data block label information, Data block time-out report is fed back into sending node again, sending node retransmits the hair again according to corresponding to retransmitting acknowledgement indicator The data block of failure is sent, there is the quick data block searched and send failure, improve efficiency of transmission.
Fig. 5 is the module frame chart for the Point-to-Point Data Transmission device that one embodiment of the invention provides;
As shown in figure 5, a kind of Point-to-Point Data Transmission device, including:
Link connection module, for establishing sending node 01 to the connecting link of receiving node 02;
Monitoring modular, for when monitoring data to be transmitted bag to be present in task stack team, obtaining the data to be transmitted Bag, and send into sending node 01;
The sending node 02, for being split the data to be transmitted bag according to default segmentation rule, obtain more Individual data block;
And unique label is set to the multiple data block, the label includes data block classification information, by described in The order that multiple data blocks are split according to data block is numbered, by the label of data block corresponding to the numbering write-in;
And the number of label and the data volume size of each data block are counted, and by the number information of statistics, data volume size Information and its corresponding data block label information generation message;
To send there is provided each data block of numbering and the message to the receiving node 02.
The present invention by by data to be transmitted bag piecemeal, according to along setting label and numbering, then be transmitted, effectively carry High data transmission efficiency, by data to be transmitted bag piecemeal and the processing mode of numbering, can be easy to receiving terminal quickly by each number Integrate according to block, and when some or multiple transmission of data blocks fail, can be retransmitted data block according to label information, and Total data need not be retransmitted again, because data to be transmitted is coated with block transmission, its occupancy is small will not also to take excessive money Source, so as to save time cost and financial cost.
Preferably, the sending node is specifically used for, and the message is first sent further according to numbering according to the transmission instruction Order sends each data block into the receiving node successively.
Receiving node can be made to be preferentially received message, and sequentially transmission is easy to receiving node to carry out each data block Reintegrate.
Preferably, the present embodiment is improved to sending node, and the sending node is also particularly useful for each data block Unified safety code is set, and the safety code is used to judge whether to receive data block for receiving node, so that receiving node receives During data block, determine whether data block includes the safety code, if including receiving, otherwise not receiving.
Specifically, described safety code specific method is:The numeric string or English that safety code can be randomly generated Alphabetic string, it can also be set, such as safety code includes data block number and date of shipping, i.e. 20170810-25, 20170810 represent date of shipping, and 25 represent this number for sending data block.
In above-described embodiment, by setting the form of safety code for each data block, prevent viral data from transmitting in the lump to connecing Node is received, improves the security of data transfer.
Preferably, the present embodiment is improved to sending node, and the default segmentation rule in the sending node includes:
The capacity such as data to be transmitted bag are split, obtain the equal-sized data block of multiple data volumes;
Or
By data to be transmitted bag random division, multiple unequal data blocks of data volume size are obtained.
In above-described embodiment, if selecting that, by data to be transmitted bag random division, step can also be included, data are set Threshold value is measured, the data volume size for the data block that random division is obtained is compared with the data-quantity threshold, if random divide The data volume for the data block for cutting to obtain then carries out random division again more than or equal to the data-quantity threshold, until obtaining small In the data block of the data-quantity threshold.
In above-described embodiment, the transmission packet for the treatment of that can relatively rationalize is split, and is partitioned into data volume size and fits When data block, be easy to transmit.
Preferably, in addition to retransmission module, the retransmission module be used for when by each data block send to receiving node it Afterwards, judge whether each data block sends success according to the Retransmission timeout mechanism of setting;
The Retransmission timeout mechanism includes:
It is provided for judging the preset data transmission difference duration t whether the transmission duration of data block is overtime;
And obtain duration W used in data volume size, transmission rate and the actual transmissions of each data blockn
It is pre- to receiving node to determine that each data block is sent according to the data volume size and transmission rate of each data block The long T of timingn
Calculate duration W used in the actual transmissions of current data blocknWith estimated duration TnAbsolute difference, obtain actual biography Measurement shoutage value duration a, and judge whether the actual transmissions difference duration a is more than or equal to the data transfer difference duration t, If it is, judging that current data block is transmitted as time-out, and the label information writing data blocks time-out of current data block is reported In;
For example, duration W used in actual transmissionsnFor 45min, it is contemplated that duration TnFor 20min, calculate | Wn-Tn| obtain reality Difference duration a is transmitted, | a |=25min;If data transfer difference duration t is 20min, actual transmissions difference duration a is 25min, it is compared, then actual transmissions difference duration a is more than data transfer difference duration t, then the data block has overtime feelings Condition;
When completion all data blocks time-out judges, data block time-out report is sent to receiving node, with toilet Label information of the receiving node in data block time-out report is stated to be confirmed whether to receive the data block.
Preferably, the present embodiment is improved on the basis of Fig. 5, and the Retransmission timeout mechanism also includes:
The overtime report of data block of the receiving node feedback is received, the data block time-out report of feedback is included respectively The data block label information of individual reception failure, and search whether to exist from the data block label information and retransmit acknowledgement indicator, If there is data block corresponding to the then numbering lookup in the repeating transmission acknowledgement indicator and data block label information, will look into The data block retransmissions found into the receiving node, wherein, it is described repeating transmission acknowledgement indicator by the receiving node by its Write in the data block label information for the data block that need to be retransmitted.
Specifically, when the receiving node receives the data block time-out report of sending node transmission, institute is confirmed one by one Whether each data block stated in data block time-out report receives success, in the data block of the data block if not receiving successfully Write-in, which is retransmitted, in label information confirms mark, and generates data block time-out and determine that report is sent into sending node, the transmission Node receives the data block time-out and determined after reporting, repeating transmission is searched from data block label information and confirms mark, according to heavy Hair confirms that mark is retransmitted corresponding data block;
The repeating transmission acknowledgement indicator can be written form, such as " it is determined that repeating transmission ", will be corresponding to " it is determined that repeating transmission " write In data block label information, then when sending node receives data block time-out determination report, report is determined from data block time-out Read block label information in announcement, and from the mark of data block label information lookup " it is determined that repeating transmission ", and according to " it is determined that weight Corresponding data block is re-transmitted in receiving node by hair ";Or the repeating transmission acknowledgement indicator can also be numeral or word Female form, such as " 1 ", " 2 ", " A ", " B ", agreement 1 represent to need to retransmit, and 2 represent to retransmit, and agreement A represents to need Retransmit, B represents to retransmit;Or the acknowledgement indicator of retransmitting can also be digital or letter form, such as " △ ", "○", agreement △ represent to need to retransmit, and zero represents to retransmit.
In the above-mentioned embodiment for data block retransmissions, sending node can be by transmitting terminal active detecting with the presence or absence of number The possibility of failure is sent according to block time-out, and data block time-out report is sent into receiving node, and is determined by receiving node Data block sends success or not, and receiving node is searched corresponding according to the data block label information recorded in data block time-out report Data block whether be properly received, if be not successfully received, by retransmit acknowledgement indicator write in the data block label information, Data block time-out report is fed back into sending node again, sending node retransmits the hair again according to corresponding to retransmitting acknowledgement indicator The data block of failure is sent, there is the quick data block searched and send failure, improve efficiency of transmission.
Main advantages of the present invention are:
1st, by by data to be transmitted bag piecemeal, according to along setting label and numbering, then be transmitted, effectively raise Data transmission efficiency, by data to be transmitted bag piecemeal and the processing mode of numbering, it can be easy to receiving terminal quickly by each data block Integrate, and when some or multiple transmission of data blocks fail, can be retransmitted data block according to label information, without Total data is retransmitted again, because data to be transmitted is coated with block transmission, its occupancy is small will not also to take excessive resource, So as to save time cost and financial cost;
2nd, by setting the form of safety code for each data block, prevent viral data from transmitting in the lump to receiving node, improve The security of data transfer
3rd, the possibility of failure can be sent with the presence or absence of data block time-out by transmitting terminal active detecting, and by data block Time-out report transmitting and receiving terminal, and determine that data block sends success or not by receiving terminal, if it is determined that failure is sent, then Again the data block of transmission failure is retransmitted, there is the quick data block searched and send failure, improve efficiency of transmission.
Reader should be understood that in the description of this specification, reference term " one embodiment ", " some embodiments ", " show The description of example ", " specific example " or " some examples " etc. means to combine the specific features that the embodiment or example describe, tied Structure, material or feature are contained at least one embodiment or example of the present invention.In this manual, to above-mentioned term Schematic representation need not be directed to identical embodiment or example.Moreover, description specific features, structure, material or Feature can combine in an appropriate manner in any one or more embodiments or example.In addition, in not conflicting situation Under, those skilled in the art by the different embodiments or example described in this specification and different embodiments or can show The feature of example is combined and combined.
It is apparent to those skilled in the art that for convenience of description and succinctly, the dress of foregoing description The specific work process with unit is put, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, can pass through Other modes are realized.For example, device embodiment described above is only schematical, for example, the division of unit, only Only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.
The unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or multiple nets can also be distributed to On network unit.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needs Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also It is that unit is individually physically present or two or more units are integrated in a unit.It is above-mentioned integrated Unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If integrated unit realized in the form of SFU software functional unit and as independent production marketing or in use, It can be stored in a computer read/write memory medium.Based on such understanding, technical scheme substantially or Person says the part to be contributed to prior art, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) perform each embodiment method of the present invention whole or Part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), Random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with store program codes Medium.
More than, it is only embodiment of the invention, but protection scope of the present invention is not limited thereto, and it is any ripe Know those skilled in the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or substitutions should be all included within the scope of the present invention.Therefore, protection scope of the present invention Ying Yiquan The protection domain that profit requires is defined.

Claims (10)

  1. A kind of 1. Point-to-Point Data Transmission method, it is characterised in that comprise the following steps:
    Sending node is established to the connecting link of receiving node;
    When monitoring data to be transmitted bag to be present in task stack team, the data to be transmitted bag is obtained;
    The sending node is split the data to be transmitted bag according to default segmentation rule, obtains multiple data blocks;
    Unique label is set to the multiple data block, the label includes data block classification information, by the multiple number The order split according to block according to data block is numbered, by the label of data block corresponding to the numbering write-in;
    The number of sending node statistics label and the data volume size of each data block, and by number information, the data of statistics Measure size information and its corresponding data block label information generation message;
    To send there is provided each data block of numbering and the message to the receiving node.
  2. 2. Point-to-Point Data Transmission method according to claim 1, it is characterised in that described by there is provided each of numbering Data block and the message are sent to before the receiving node, in addition to step:
    Unified safety code is set to each data block, and the safety code is used to judge whether to receive data block for receiving node.
  3. 3. Point-to-Point Data Transmission method according to claim 1, it is characterised in that the sending node is according to default point Cut rule to be split the data to be transmitted bag, obtain multiple data blocks, including:
    The capacity such as data to be transmitted bag are split, obtain the equal-sized data block of multiple data volumes;
    Or
    By data to be transmitted bag random division, multiple unequal data blocks of data volume size are obtained;
    The random division includes setting data-quantity threshold, data volume size and the number of the data block that random division is obtained It is compared according to amount threshold value, will if the data volume for the data block that random division obtains is more than or equal to the data-quantity threshold The data block carries out random division again, until yielding less than the data block of the data-quantity threshold.
  4. 4. Point-to-Point Data Transmission method according to claim 1, it is characterised in that described by there is provided each of numbering Data block and the message are sent to the receiving node, in addition to step:Judged according to the Retransmission timeout mechanism of setting Whether each data block sends success;
    The Retransmission timeout mechanism includes:
    It is provided for judging the preset data transmission difference duration t whether the transmission duration of data block is overtime;
    And obtain duration W used in data volume size, transmission rate and the actual transmissions of each data blockn
    Determine that each data block is sent to the pre- timing of receiving node according to the data volume size and transmission rate of each data block Long Tn
    Calculate duration W used in the actual transmissions of current data blocknWith estimated duration TnAbsolute difference, it is poor to obtain actual transmissions It is worth duration a, and judges whether the actual transmissions difference duration a is more than or equal to the data transfer difference duration t, if It is then to judge that current data block is transmitted as time-out, and by the label information writing data blocks time-out report of current data block;
    When completion all data blocks time-out judges, data block time-out report is sent to receiving node.
  5. 5. Point-to-Point Data Transmission method according to claim 4, it is characterised in that described when completion all data blocks surpass When judging, data block time-out report is sent to receiving node, in addition to:
    The data block time-out for receiving the receiving node feedback determines report, and the data block time-out determines that report includes each connect The data block label information of failure is received, and searches whether to exist from the data block label information and retransmits acknowledgement indicator, if In the presence of data block corresponding to the then numbering lookup in the repeating transmission acknowledgement indicator and data block label information, by what is found Into the receiving node wherein, the repeating transmission acknowledgement indicator is written into by the receiving node needs weight to the data block retransmissions In the data block label information of the data block of hair.
  6. A kind of 6. Point-to-Point Data Transmission device, it is characterised in that including:
    Link connection module, for establishing sending node to the connecting link of receiving node;
    Monitoring modular, for when monitoring data to be transmitted bag to be present in task stack team, obtaining the data to be transmitted bag, and Send into sending node;
    The sending node, for being split the data to be transmitted bag according to default segmentation rule, obtain multiple data Block;
    And unique label is set to the multiple data block, the label includes data block classification information, will be the multiple The order that data block is split according to data block is numbered, by the label of data block corresponding to the numbering write-in;
    And the number of label and the data volume size of each data block are counted, and by the number information of statistics, data volume size information And its corresponding data block label information generation message;
    To send there is provided each data block of numbering and the message to the receiving node.
  7. 7. Point-to-Point Data Transmission device according to claim 6, it is characterised in that the sending module is additionally operable to:
    Unified safety code is set to each data block, and the safety code is used to judge whether to receive data block for receiving node.
  8. 8. Point-to-Point Data Transmission device according to claim 6, it is characterised in that default point in the segmentation module Cutting rule includes:
    The capacity such as data to be transmitted bag are split, obtain the equal-sized data block of multiple data volumes;
    Or
    By data to be transmitted bag random division, multiple unequal data blocks of data volume size are obtained;
    The random division specifically includes setting data-quantity threshold, the data volume size for the data block that random division is obtained and institute State data-quantity threshold to be compared, if the data volume for the data block that random division obtains is more than or equal to the data-quantity threshold The data block is then subjected to random division again, until yielding less than the data block of the data-quantity threshold.
  9. 9. Point-to-Point Data Transmission device according to claim 6, it is characterised in that described heavy also including retransmission module Transmission module is used for after each data block is sent to receiving node, judges that each data block is according to the Retransmission timeout mechanism of setting It is no to send successfully;
    The Retransmission timeout mechanism includes:
    It is provided for judging the preset data transmission difference duration t whether the transmission duration of data block is overtime;
    And obtain duration W used in data volume size, transmission rate and the actual transmissions of each data blockn
    Determine that each data block is sent to the pre- timing of receiving node according to the data volume size and transmission rate of each data block Long Tn
    Calculate duration W used in the actual transmissions of current data blocknWith estimated duration TnAbsolute difference, it is poor to obtain actual transmissions It is worth duration a, and judges whether the actual transmissions difference duration a is more than or equal to the data transfer difference duration t, if It is then to judge that current data block is transmitted as time-out, and by the label information writing data blocks time-out report of current data block;
    When completion all data blocks time-out judges, data block time-out report is sent to receiving node.
  10. 10. Point-to-Point Data Transmission device according to claim 9, it is characterised in that the retransmission module also includes,
    The data block time-out for receiving the receiving node feedback determines report, and the data block time-out determines that report includes each connect The data block label information of failure is received, and searches whether to exist from the data block label information and retransmits acknowledgement indicator, if In the presence of data block corresponding to the then numbering lookup in the repeating transmission acknowledgement indicator and data block label information, by what is found The data block retransmissions into the receiving node, wherein, it is described repeating transmission acknowledgement indicator by the receiving node be written into need In the data block label information of the data block of repeating transmission.
CN201710874796.7A 2017-09-25 2017-09-25 A kind of Point-to-Point Data Transmission method and apparatus Pending CN107707640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710874796.7A CN107707640A (en) 2017-09-25 2017-09-25 A kind of Point-to-Point Data Transmission method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710874796.7A CN107707640A (en) 2017-09-25 2017-09-25 A kind of Point-to-Point Data Transmission method and apparatus

Publications (1)

Publication Number Publication Date
CN107707640A true CN107707640A (en) 2018-02-16

Family

ID=61174803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710874796.7A Pending CN107707640A (en) 2017-09-25 2017-09-25 A kind of Point-to-Point Data Transmission method and apparatus

Country Status (1)

Country Link
CN (1) CN107707640A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632565A (en) * 2018-05-25 2018-10-09 苏州科达科技股份有限公司 Transmission method, playback method, device and the conference facility of video code flow
CN108881042A (en) * 2018-04-25 2018-11-23 郑州易通众联电子科技有限公司 Data transmission method and data transmission device
CN109151904A (en) * 2018-08-22 2019-01-04 苏州凌犀物联网技术有限公司 A kind of Lora message reassembly and repeating method, transmitting terminal and receiving end
CN109561145A (en) * 2018-11-27 2019-04-02 泰康保险集团股份有限公司 Document handling method, device, electronic equipment and storage medium
CN109587222A (en) * 2018-11-12 2019-04-05 厦门安胜网络科技有限公司 A kind of method, apparatus and storage medium of file fragmentationization transmission
CN110008283A (en) * 2019-03-12 2019-07-12 平安普惠企业管理有限公司 A kind of data processing method and device based on data label
CN110120980A (en) * 2019-05-27 2019-08-13 牧星机器人(江苏)有限公司 Reliable file transmission method, computer equipment and the storage medium of unstable link
CN110120938A (en) * 2019-04-02 2019-08-13 视联动力信息技术股份有限公司 It is a kind of to assist the control method and device for turning server
CN110380785A (en) * 2019-08-16 2019-10-25 青岛海信宽带多媒体技术有限公司 A kind of digital diagnostic information acquisition methods, device and optical module
CN110430017A (en) * 2019-08-01 2019-11-08 青岛海信宽带多媒体技术有限公司 A kind of data transmission method for uplink, device and optical module
CN110430025A (en) * 2019-08-01 2019-11-08 青岛海信宽带多媒体技术有限公司 A kind of data transmission method for uplink, device and optical module
CN110430015A (en) * 2019-07-20 2019-11-08 中国船舶重工集团公司第七二四研究所 A kind of group packet error block repeating method based on RS coding checkout information
CN110602004A (en) * 2019-08-30 2019-12-20 深圳壹账通智能科技有限公司 Supervision data reporting, electronic device, equipment and computer readable storage medium
CN110868275A (en) * 2019-11-22 2020-03-06 珠海豹趣科技有限公司 Communication control method and device between electronic whiteboards and electronic equipment
CN112051974A (en) * 2019-06-06 2020-12-08 浙江汉朔电子科技有限公司 Electronic price tag information transmission method and system, electronic price tag and server
CN112583707A (en) * 2020-12-01 2021-03-30 河南东方世纪交通科技股份有限公司 Internet of things gateway based on edge calculation
CN113300817A (en) * 2020-09-22 2021-08-24 阿里巴巴集团控股有限公司 Data transmission method and device
CN113347096A (en) * 2021-08-06 2021-09-03 湖南三湘银行股份有限公司 Transmission processing method of third party payment data
CN114173153A (en) * 2021-12-03 2022-03-11 北京数码视讯技术有限公司 Video processing method and device and electronic equipment
CN114745181A (en) * 2022-04-11 2022-07-12 中国南方电网有限责任公司 Data processing method and device
CN115086306A (en) * 2022-08-18 2022-09-20 天津市天河计算机技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN116106936A (en) * 2023-04-13 2023-05-12 中国铁塔股份有限公司 Method for generating monitoring information of dam body, and method and device for transmitting positioning signal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136722B (en) * 2007-10-15 2010-08-11 北京交通大学 Data transmitting method and transmitting equipment suitable for high speed mobile terminal
CN102137027A (en) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 Reliable data transmission method and device thereof
CN102647251A (en) * 2012-03-26 2012-08-22 北京星网锐捷网络技术有限公司 Data transmission method and system, sending terminal equipment as well as receiving terminal equipment
EP1558000B1 (en) * 2004-01-23 2012-09-05 NTT DoCoMo, Inc. Transmitter device for controlling data transmission
CN105743978A (en) * 2016-01-29 2016-07-06 武汉联影医疗科技有限公司 Data transmitting method
CN106452692A (en) * 2016-11-30 2017-02-22 网宿科技股份有限公司 Data transmission method and system
CN106506119A (en) * 2016-11-16 2017-03-15 南京金水尚阳信息技术有限公司 A kind of RTU reliable data transmission control methods of arrowband nonsymmetric channel

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1558000B1 (en) * 2004-01-23 2012-09-05 NTT DoCoMo, Inc. Transmitter device for controlling data transmission
CN101136722B (en) * 2007-10-15 2010-08-11 北京交通大学 Data transmitting method and transmitting equipment suitable for high speed mobile terminal
CN102137027A (en) * 2011-05-03 2011-07-27 厦门市美亚柏科信息股份有限公司 Reliable data transmission method and device thereof
CN102647251A (en) * 2012-03-26 2012-08-22 北京星网锐捷网络技术有限公司 Data transmission method and system, sending terminal equipment as well as receiving terminal equipment
CN105743978A (en) * 2016-01-29 2016-07-06 武汉联影医疗科技有限公司 Data transmitting method
CN106506119A (en) * 2016-11-16 2017-03-15 南京金水尚阳信息技术有限公司 A kind of RTU reliable data transmission control methods of arrowband nonsymmetric channel
CN106452692A (en) * 2016-11-30 2017-02-22 网宿科技股份有限公司 Data transmission method and system

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881042A (en) * 2018-04-25 2018-11-23 郑州易通众联电子科技有限公司 Data transmission method and data transmission device
CN108632565A (en) * 2018-05-25 2018-10-09 苏州科达科技股份有限公司 Transmission method, playback method, device and the conference facility of video code flow
CN109151904A (en) * 2018-08-22 2019-01-04 苏州凌犀物联网技术有限公司 A kind of Lora message reassembly and repeating method, transmitting terminal and receiving end
CN109587222A (en) * 2018-11-12 2019-04-05 厦门安胜网络科技有限公司 A kind of method, apparatus and storage medium of file fragmentationization transmission
CN109561145A (en) * 2018-11-27 2019-04-02 泰康保险集团股份有限公司 Document handling method, device, electronic equipment and storage medium
CN109561145B (en) * 2018-11-27 2022-04-05 泰康保险集团股份有限公司 File processing method and device, electronic equipment and storage medium
CN110008283A (en) * 2019-03-12 2019-07-12 平安普惠企业管理有限公司 A kind of data processing method and device based on data label
CN110008283B (en) * 2019-03-12 2023-09-05 山西数字政府建设运营有限公司 Data processing method and device based on data tag
CN110120938A (en) * 2019-04-02 2019-08-13 视联动力信息技术股份有限公司 It is a kind of to assist the control method and device for turning server
CN110120938B (en) * 2019-04-02 2021-11-16 视联动力信息技术股份有限公司 Control method and device for cooperative server
CN110120980A (en) * 2019-05-27 2019-08-13 牧星机器人(江苏)有限公司 Reliable file transmission method, computer equipment and the storage medium of unstable link
CN112051974A (en) * 2019-06-06 2020-12-08 浙江汉朔电子科技有限公司 Electronic price tag information transmission method and system, electronic price tag and server
CN112051974B (en) * 2019-06-06 2023-12-15 汉朔科技股份有限公司 Electronic price tag information transmission method and system, electronic price tag and server
CN110430015A (en) * 2019-07-20 2019-11-08 中国船舶重工集团公司第七二四研究所 A kind of group packet error block repeating method based on RS coding checkout information
CN110430017A (en) * 2019-08-01 2019-11-08 青岛海信宽带多媒体技术有限公司 A kind of data transmission method for uplink, device and optical module
CN110430025A (en) * 2019-08-01 2019-11-08 青岛海信宽带多媒体技术有限公司 A kind of data transmission method for uplink, device and optical module
CN110430025B (en) * 2019-08-01 2021-12-14 青岛海信宽带多媒体技术有限公司 Data sending method and device and optical module
CN110430017B (en) * 2019-08-01 2022-02-11 青岛海信宽带多媒体技术有限公司 Data sending method and device and optical module
CN110380785A (en) * 2019-08-16 2019-10-25 青岛海信宽带多媒体技术有限公司 A kind of digital diagnostic information acquisition methods, device and optical module
CN110602004A (en) * 2019-08-30 2019-12-20 深圳壹账通智能科技有限公司 Supervision data reporting, electronic device, equipment and computer readable storage medium
CN110868275A (en) * 2019-11-22 2020-03-06 珠海豹趣科技有限公司 Communication control method and device between electronic whiteboards and electronic equipment
CN113300817A (en) * 2020-09-22 2021-08-24 阿里巴巴集团控股有限公司 Data transmission method and device
CN113300817B (en) * 2020-09-22 2023-09-15 阿里巴巴集团控股有限公司 Data transmission method and device
CN112583707A (en) * 2020-12-01 2021-03-30 河南东方世纪交通科技股份有限公司 Internet of things gateway based on edge calculation
CN113347096A (en) * 2021-08-06 2021-09-03 湖南三湘银行股份有限公司 Transmission processing method of third party payment data
CN114173153A (en) * 2021-12-03 2022-03-11 北京数码视讯技术有限公司 Video processing method and device and electronic equipment
CN114745181A (en) * 2022-04-11 2022-07-12 中国南方电网有限责任公司 Data processing method and device
CN115086306A (en) * 2022-08-18 2022-09-20 天津市天河计算机技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN116106936A (en) * 2023-04-13 2023-05-12 中国铁塔股份有限公司 Method for generating monitoring information of dam body, and method and device for transmitting positioning signal

Similar Documents

Publication Publication Date Title
CN107707640A (en) A kind of Point-to-Point Data Transmission method and apparatus
CN100448224C (en) Method and apparatus for discovering path maximum transmission unit (PMTU)
US7233594B2 (en) Apparatus for transmitting/receiving wireless data and method thereof
CN1996823B (en) Inter-layer communication for releasing retransmission buffer contents
CN106411560A (en) Data transmission method and device
US11637440B2 (en) Battery management system, and method and apparatus for transmitting information
JPS5866448A (en) Error detecting system for exchange of packet
CN107196740A (en) The transmission method and device of a kind of code block
CN103716130A (en) Physical layer self-adaption processing method for improving network transmission reliability
CN107623643A (en) A kind of data packet forwarding method and device
TW200812284A (en) Wireless communication device and wireless communication method used for mobile communication system
CN104468548A (en) Data verification method, disaster recovery storage and production storage
CN104104480A (en) Method and device for detecting retransmission packet loss of TCP (transmission control protocol)
CN107370570A (en) A kind of feedback information transmission method, UE, base station and system
CN106788894A (en) Segmentation individual transmission method of calibration
CN105657677A (en) Short message sending method, short message gateway and service platform
CN104104475A (en) Response signal generation method, receiving method and device
CN108347311A (en) Send and receive method, access network equipment and the terminal device of feedback information
CN106911485A (en) For the method and apparatus of reliable multicast transport data
CN106375064A (en) Password keyboard USB communication anomaly recovery method and system
CN109428684B (en) Data transmission method, RLC entity and PDCP entity
CN103534973A (en) Method, apparatus and system for minimizing transmission layer confirmation messages
CN109391373A (en) Data repeating method, base station, terminal and system
CN104486047B (en) Self-aided terminal monitoring method, device and system
CN111246428A (en) Network reliable communication method, system, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180216