CN102739777B - Data stream disconnection recovering method and system - Google Patents
Data stream disconnection recovering method and system Download PDFInfo
- Publication number
- CN102739777B CN102739777B CN201210178333.4A CN201210178333A CN102739777B CN 102739777 B CN102739777 B CN 102739777B CN 201210178333 A CN201210178333 A CN 201210178333A CN 102739777 B CN102739777 B CN 102739777B
- Authority
- CN
- China
- Prior art keywords
- data
- information
- data block
- identification information
- flow
- 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.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a data stream disconnection recovering method and system. The data stream disconnection recovering method comprises the following steps that: a sending end establishes a connection with a receiving end and sends a data stream to the receiving end, wherein information carried by the data stream comprises former link identification information, current link identification information, stream identification information and data block information; the receiving end receives the data stream and stores the former link identification information, the current link identification information, the stream identification information and data information transmitted on a current link in a local data information sheet, and stores the received data block information in a receiving queue; after the connection is disconnected, the sending end re-creates a new logic link as a current link, and sends the untransmitted data stream continuously to the receiving end; and the receiving end merges the received data block information before the connection is disconnected and data block information carried in the untransmitted data stream according to the stream identification information of the untransmitted data stream.
Description
Technical field
The invention belongs to network communication field, particularly relate to a kind of data flow and disconnect restoration methods and system.
Background technology
Along with the develop rapidly of information-intensive society, various means of communication such as Fetion, QQ etc. are generally used by people, and except individual application, the instant communication mode of some enterprise versions is also familiar with by popular gradually, such as video conference etc.In daily use, the continuity of data stream transmitting directly has influence on the quality of video conference.But in practical application, when Network Abnormal in data transmission procedure disconnects, the data block of not complete reception can abandon by client.Even if client have received part full block of data in data flow before network disconnects, when client reconnect server continue send be not transmitted data flow time, because the logical links of former network disconnects, the data flow that the logical links re-established transmits and former data flow do not have continuity, therefore, even if client have received all data streams, can not normal decoder restoring data.
Summary of the invention
The invention provides a kind of data flow and disconnect restoration methods and system to solve the problem.
The invention provides a kind of data flow and disconnect restoration methods, comprise the following steps.Transmitting terminal sends data flow to described receiving terminal after setting up the connection with receiving terminal, and the information that described data flow is carried comprises last link identification information, current ink identification information, flow identification information and data block information.In local data information table, store the data message that described last link identification information, described current ink identification information, described flow identification information and current ink have transmitted after described receiving terminal receives described data flow, and in receiving queue, store the data block information received.After described connection disconnects, described transmitting terminal re-creates new logical links as current ink, and continues to described receiving terminal to send the described data flow do not transferred.Described receiving terminal according to the flow identification information of the described data flow do not transferred, merge described connect disconnect before the data block information that received and the described data flow that the do not transfer data block information of carrying.
The invention provides a kind of data flow and disconnect recovery system, comprise transmitting terminal and receiving terminal, described transmitting terminal connects described receiving terminal.Described transmitting terminal, sends data flow to described receiving terminal after setting up the connection with receiving terminal, and the information that described data flow is carried comprises last link identification information, current ink identification information, flow identification information and data block information.Described transmitting terminal, after also disconnecting for described connection, re-creates new logical links as current ink, and continues to described receiving terminal to send the described data flow do not transferred.Described receiving terminal, after receiving described data flow, in local data information table, store the data message that described last link identification information, described current ink identification information, described flow identification information and current ink have transmitted, and in receiving queue, store the data block information received.Described receiving terminal, also for the flow identification information according to the described data flow do not transferred, the data block information that the data block information received before merging described connection disconnection and the described data flow do not transferred are carried.
Compared to prior art, restoration methods and system is disconnected according to data flow provided by the invention, transmitting terminal sends data flow after setting up the connection with receiving terminal, the data message that the described last link identification information that after receiving terminal receiving data stream, memorying data flow carries in local data information table, described current ink identification information, flow identification information and current ink have transmitted, and in receiving queue, store the data block information received.After connection disconnects, transmitting terminal re-creates new logical links as current ink, and to receiving terminal continue to send the described data flow that do not transfer and receiving terminal according to the flow identification information of the described data flow do not transferred, merge described connect disconnection before the data block information that received and the described data flow that the do not transfer data block information of carrying.So, receiving terminal by traffic identifier merge connect disconnect before transmission data block information and re-establish to connect and follow-uply resume defeated data block information, effectively ensure that the connectivity of transfer of data.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the flow chart of the data flow disconnection restoration methods that preferred embodiment according to the present invention provides;
Figure 2 shows that the data flow architecture schematic diagram that preferred embodiment according to the present invention provides;
Figure 3 shows that the schematic diagram of the data flow disconnection recovery system that preferred embodiment according to the present invention provides.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the flow chart of the data flow disconnection restoration methods that preferred embodiment according to the present invention provides.As shown in Figure 1, the data flow that preferred embodiment of the present invention provides disconnects restoration methods and comprises step 101 ~ 104.
Step 101: transmitting terminal sends data flow to described receiving terminal after setting up the connection with receiving terminal, and the information that described data flow is carried comprises last link identification information, current ink identification information, flow identification information and data block information.
Specifically, transmitting terminal has the data to be sent stored with data block information form, and data block information is stored in order in local waiting list.When after the connection that transmitting terminal is set up with receiving terminal, described transmitting terminal obtains data block information to be sent successively from waiting list, and be, after described data block information adds last link identification information, current ink identification information, flow identification information, be sent to receiving terminal with stream socket.Described data flow carry information comprises last link identification information, current ink identification information, flow identification information and data block information, and described data block information comprises data block title, data block size and data block contents.Wherein, if transmitting terminal first time connects with receiving terminal, described last link identification information is identical with described current ink identification information.In the present embodiment, described flow identification information be for data block information add after carried by data flow, in other embodiment, described flow identification information also can data flow self possess, and is not construed as limiting this present invention.
Step 102: store the data message that described last link identification information, described current ink identification information, described flow identification information and current ink have transmitted after described receiving terminal receives described data flow in local data information table, and store the data block information received in receiving queue.
Specifically, receiving terminal this locality comprises data message table, and described data message table comprises the data message that described last link identification information, described current ink identification information, described flow identification information and current ink have transmitted.The data message that described current ink has transmitted, comprises the memory address of the size of data that current ink has transmitted, corresponding data block title and corresponding data block message.Data block information in described receiving terminal receiving data stream can be full block of data information or partial data block message, and can read link information and flow identification information that described data flow carries.After receiving terminal starts receiving data stream, be stored in the receiving queue of receiving terminal by the data block information received, described data block information comprises data block title, data block size and data block contents.
Step 103: after described connection disconnects, described transmitting terminal re-creates new logical links as current ink, and continue to described receiving terminal to send the described data flow do not transferred.
Specifically, if when transmitting terminal is not sent completely to the data flow that receiving terminal sends, connect improper disconnection, then transmitting terminal need re-establish with the logical links of receiving terminal as current ink, continues to send the described data flow do not transferred.After transmitting terminal successfully sends data block information, transmitting terminal deletes described data block information from waiting list.
Step 104: described receiving terminal according to the flow identification information of the described data flow do not transferred, merge described connect disconnect before the data block information that received and the described data flow that the do not transfer data block information of carrying.
Specifically, after last connection disconnects, transmitting terminal is set up new logical links and is sent the data flow do not transferred to receiving terminal, receiving terminal searches the described data message connecting the link before disconnecting and transmitted according to the last link identification information that described data flow is carried in data message table, the current ink identification information carried according to described data flow searches the data message that described new logical links has transmitted in data message table, and after searching respectively in receiving queue and connect according to the memory address that described data message indicates data block information that the data block information transmitted of link before disconnecting and new logical links transmitted, the data block information found in described receiving queue is merged according to described traffic identifier.
Illustrate to connect below in conjunction with Fig. 2 and disconnect the process that rear transmitting terminal creates the data flow that new logical links continuation transmission does not transfer.Figure 2 shows that the data flow architecture schematic diagram that preferred embodiment according to the present invention provides.As shown in Figure 2, the data flow that preferred embodiment of the present invention provides comprises current ink identification information, last link identification information, flow identification information and data block information, and described data block information comprises data block title, data block size and data block contents.
If it is after the First Contact Connections of L1 that transmitting terminal is set up with receiving terminal link identification, data block 1 information is obtained from waiting list, and fill in data block 1 information last link identification, current ink mark be L1, traffic identifier a after, send traffic identifier be that the data flow of a is to receiving terminal.Receiving terminal, after reception data block 1 information, stores last link identification information and current ink identification information is L1, flow identification information is a in data message table, and is stored in the data message that L1 link has transmitted.
If receiving terminal have received full block of data 1 information that size is 150kb when L1 link disconnects, and transmitting terminal is set up and receiving terminal link identification is after the new logic link of L2, transmitting terminal is that data block 2 information adds link information and flow identification information, and continuing to send traffic identifier is the data flow of a.In this, the link information carried in described now data flow comprises last link identification L1 and current ink mark L2.If in L2 link, transmitted all data blocks 2 information that size is 100kb, described data message sheet format is such as shown in following table.
As shown above, after receiving terminal receives the described data flow of new L2 link continuation transmission, the data message that the L1 link disconnected before the last link identification information L1 carried according to data flow searches in data message table has transmitted (namely, L1 link has transmitted 150kb data block 1 information, memory address is add1), and data block 1 information in receiving queue is searched according to the memory address add1 in described data message.Simultaneously, (namely the current ink identification information L2 carried according to described data flow searches data message that L2 link transmitted, L2 link has transmitted 100kb data block 2 information, and memory address is add2), and data block 2 information in receiving queue is searched according to memory address add2.Last receiving terminal merges data block 1 information in the receiving queue found and data block 2 information according to traffic identifier a.
Figure 3 shows that the schematic diagram of the data flow disconnection recovery system that preferred embodiment according to the present invention provides.As shown in Figure 3, the data flow that preferred embodiment of the present invention provides disconnects recovery system and comprises transmitting terminal 201 and receiving terminal 202, and described transmitting terminal 201 connects described receiving terminal 202.Described transmitting terminal 201, for set up with the connection of receiving terminal 202 after send data flow to described receiving terminal 202, the information that described data flow is carried comprises last link identification information, current ink identification information, flow identification information and data block information.Described transmitting terminal 201, after also disconnecting for described connection, re-creates new logical links as current ink, and continues to described receiving terminal 202 to send the described data flow do not transferred.Described receiving terminal 202, after receiving described data flow, in local data information table, store the data message that described last link identification information, described current ink identification information, described flow identification information and current ink have transmitted, and in receiving queue, store the described data block information received.Described receiving terminal 202, the data block information also for carrying according to the data block information received before the described connection disconnection of the flow identification information merging of the described data flow do not transferred and the described data flow do not transferred.
In sum, restoration methods and system is disconnected according to data flow provided by the invention, transmitting terminal sends data flow after setting up the connection with receiving terminal, the data message that the described last link identification information that after receiving terminal receiving data stream, memorying data flow carries in local data information table, described current ink identification information, flow identification information and current ink have transmitted, and in receiving queue, store the data block information received.After connection disconnects, transmitting terminal re-creates after new logical links continues to send the data flow that do not transfer to receiving terminal, receiving terminal searches the described data message connecting the link before disconnecting and transmitted according to the last link identification information that described data flow is carried in data message table, the current ink identification information carried according to described data flow searches the data message that described new logical links has transmitted in data message table, and after searching respectively in receiving queue and connect according to the memory address that described data message indicates data block information that the data block information transmitted of link before disconnecting and new logical links transmitted, receiving terminal merges the data block information found in described receiving queue according to flow identification information.So, receiving terminal by traffic identifier merge connect disconnect before transmission data block information and re-establish to connect and follow-uply resume defeated data block information, effectively ensure that the connectivity of transfer of data.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.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 (6)
1. data flow disconnects a restoration methods, it is characterized in that, comprises the following steps:
Transmitting terminal sends data flow to described receiving terminal after setting up the connection with receiving terminal, and the information that described data flow is carried comprises last link identification information, current ink identification information, flow identification information and data block information;
In local data information table, store the data message that described last link identification information, described current ink identification information, described flow identification information and current ink have transmitted after described receiving terminal receives described data flow, and in receiving queue, store the data block information received;
After described connection disconnects, described transmitting terminal re-creates new logical links as current ink, and continues to described receiving terminal to send the described data flow do not transferred;
Described receiving terminal according to the flow identification information of the described data flow do not transferred, merge described connect disconnect before the data block information that received and the described data flow that the do not transfer data block information of carrying;
After described receiving terminal receives the data flow do not transferred of described transmitting terminal transmission, in data message table, the described data message connecting the link before disconnecting and transmitted is searched according to the last link identification information that described data flow is carried, the current ink identification information carried according to described data flow searches the data message that described new logical links has transmitted in data message table, and the data block information connecting the data block information transmitted of link before disconnecting and new logical links and transmitted is searched in receiving queue respectively according to the memory address that described data message indicates, the data block information found in described receiving queue is merged according to described flow identification information.
2. method according to claim 1, is characterized in that, when described transmitting terminal sets up the First Contact Connections with receiving terminal, the current ink identification information that the data flow sent to described receiving terminal is carried is identical with last link identification information.
3. method according to claim 1, it is characterized in that, described receiving terminal merge in described receiving queue connect disconnect before after the data block information that received and the described data flow the do not transferred data block information of carrying, judge that whether the described data block information after merging is complete, if so, described receiving terminal submits partial data block message to.
4. method according to claim 1, it is characterized in that, when described transmitting terminal sends data flow to described receiving terminal, from the waiting list of described transmitting terminal, obtain data block information to be sent successively, and be sent to receiving terminal with stream socket add the link information of described connection in described data block information after.
5. method according to claim 4, is characterized in that, after described transmitting terminal successfully sends described data block information, from described waiting list, deletes described data block information.
6. method according to claim 1, is characterized in that, data block information comprises: data block title, data block size and data block contents.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210178333.4A CN102739777B (en) | 2012-06-01 | 2012-06-01 | Data stream disconnection recovering method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210178333.4A CN102739777B (en) | 2012-06-01 | 2012-06-01 | Data stream disconnection recovering method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102739777A CN102739777A (en) | 2012-10-17 |
CN102739777B true CN102739777B (en) | 2015-04-01 |
Family
ID=46994548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210178333.4A Expired - Fee Related CN102739777B (en) | 2012-06-01 | 2012-06-01 | Data stream disconnection recovering method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102739777B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109428915B (en) * | 2017-08-25 | 2021-06-29 | 北京国双科技有限公司 | Data acquisition method and device |
CN115277723A (en) * | 2022-07-19 | 2022-11-01 | 国能信控互联技术有限公司 | Buffer event-based breakpoint continuous transmission method and system for edge acquisition history module |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101888405A (en) * | 2010-06-07 | 2010-11-17 | 北京高森明晨信息科技有限公司 | Cloud computing file system and data processing method |
CN102301730A (en) * | 2011-07-18 | 2011-12-28 | 华为技术有限公司 | Method, device and system for transmitting and processing multichannel AV |
-
2012
- 2012-06-01 CN CN201210178333.4A patent/CN102739777B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101888405A (en) * | 2010-06-07 | 2010-11-17 | 北京高森明晨信息科技有限公司 | Cloud computing file system and data processing method |
CN102301730A (en) * | 2011-07-18 | 2011-12-28 | 华为技术有限公司 | Method, device and system for transmitting and processing multichannel AV |
Also Published As
Publication number | Publication date |
---|---|
CN102739777A (en) | 2012-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105263101B (en) | The System and method for of smartwatch real-time reception mobile phone notification message | |
US8462733B2 (en) | Method and system for transferring a communication session between data sources | |
WO2014090083A1 (en) | Service bearing method and apparatus during distributed resilient network interconnect | |
KR20150007623A (en) | Method and appratus for protection switching in packet transport system | |
CN105681260A (en) | Cloud storage file transmission method, fusion communication platform, sending end and system | |
CN100388721C (en) | Method for protecting coupling based on flow control transfer protocol | |
RU2019117012A (en) | MESSAGING FOR WEARABLE DEVICES | |
CN114885443B (en) | Multi-mode network control system and method supporting mobile access of terminal | |
CN102739777B (en) | Data stream disconnection recovering method and system | |
CN103533064A (en) | Method for upgrading server program without interrupting network user online state | |
US8620277B2 (en) | Method and device for backing up unread short message | |
CN104835990B (en) | A kind of charger charging method and system based on low-power consumption bluetooth | |
CN102209050B (en) | Instant messaging system and method for realizing user information sharing | |
CN102006301B (en) | Method for controlling movement of stream control transmission protocol (SCTP) association among multiple terminals | |
CN109951388B (en) | Routing uninterrupted method and main control board | |
CN101409829B (en) | Method and apparatus for forwarding multicast in IP monitoring network | |
CN105812838A (en) | Multi-screen interaction data sharing method and system | |
CN110737505B (en) | Virtual storage access method adopting virtual channel | |
CN100508523C (en) | Value-added business synchronizing method, system and device | |
CN105187236B (en) | A kind of method of network flow migration | |
JP2017139744A5 (en) | ||
TWI679870B (en) | Information processing method and device | |
CN210053418U (en) | System for data transmission by network relay equipment using multipath transmission | |
CN100426782C (en) | Method for transmitting singlecast service in resilient packet ring | |
CN101964925B (en) | Method and system for controlling recovery of planar node after restarting in automatic switched optical network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP01 | Change in the name or title of a patent holder |
Address after: Suzhou City, Jiangsu province 215121 Fengting Avenue Suzhou Industrial Park No. 666 Weiting Intelligent Industrial Park Building 8 Patentee after: CODYY EDUCATION TECHNOLOGY Co.,Ltd. Address before: Suzhou City, Jiangsu province 215121 Fengting Avenue Suzhou Industrial Park No. 666 Weiting Intelligent Industrial Park Building 8 Patentee before: SUZHOU CODYY NETWORK SCIENCE & TECHNOLOGY Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150401 |
|
CF01 | Termination of patent right due to non-payment of annual fee |