(19)
(11)EP 2 993 854 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
04.12.2019 Bulletin 2019/49

(21)Application number: 13887638.8

(22)Date of filing:  29.06.2013
(51)Int. Cl.: 
H04L 29/06  (2006.01)
H04L 12/24  (2006.01)
H04L 29/08  (2006.01)
H04L 12/26  (2006.01)
(86)International application number:
PCT/CN2013/078478
(87)International publication number:
WO 2014/205827 (31.12.2014 Gazette  2014/53)

(54)

CONNECTION RECOVERY METHOD, DEVICE AND SYSTEM

VERBINDUNGSWIEDERHERSTELLUNGSVERFAHREN, -VORRICHTUNG UND -SYSTEM

PROCÉDÉ, DISPOSITIF ET SYSTÈME DE RÉCUPÉRATION DE CONNEXION


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(43)Date of publication of application:
09.03.2016 Bulletin 2016/10

(73)Proprietor: Huawei Technologies Co., Ltd.
Longgang District Shenzhen, Guangdong 518129 (CN)

(72)Inventors:
  • HU, Bin
    Shenzhen Guangdong 518129 (CN)
  • CHEN, Xin
    Shenzhen Guangdong 518129 (CN)
  • XU, Mingyuan
    Shenzhen Guangdong 518129 (CN)
  • YAN, Qiang
    Shenzhen Guangdong 518129 (CN)

(74)Representative: Thun, Clemens 
Mitscherlich PartmbB Patent- und Rechtsanwälte Sonnenstraße 33
80331 München
80331 München (DE)


(56)References cited: : 
WO-A2-98/24244
US-A- 5 513 345
CN-A- 101 459 689
US-A1- 2004 103 210
  
  • SHITAO. LI.: 'ICE NEGOTIATION WHEN PAGE RELOAD IN RTCWEB DRAFT-LI-RTCWEB-ICE-PAGE-RELOAD-02.' RTCWEB. 22 October 2012, pages 1 - 7, XP015088388 Retrieved from the Internet: <URL:http://tools.ietf.org/pdf/ draft-li-rtcweb-ice-page-reload-02.pdf>
  • J. ROSENBERG.: 'INTERACTIVE CONNECTIVITY ESTABLISHMENT (ICE): A PROTOCOL FOR NETWORK ADDRESS TRANSLATOR ( NAT ) TRAVERSAL FOR OFFER/ANSWER PROTOCOLS.' IETF RFC 5245. April 2010, pages 1 - 117, XP055154341 Retrieved from the Internet: <URL:http://www.rfc-editor.org/rfc/pdfrfc/r fc5245.txt.pdf>
  
Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


Description

TECHNICAL FIELD



[0001] The present invention relates to the field of communications, and in particular, to a connection recovery method, apparatus, and system.

BACKGROUND



[0002] A network address translation (NAT, Network Address Translation) is a translation technology that converts a private address into a public IP address, and is widely applied to various types of network access manners and various types of networks. As a common comprehensive NAT traversal technology, interactive connectivity establishment (ICE, Interactive Connectivity Establishment) can integrate various NAT traversal technologies to enable a SIP-based client to traverse a firewall.

[0003] For example, WO 98/24244 refers to a method and apparatus for identifying restoral routes in a network. Further, US 5,5,13,345 refers to a searching system for determining alternative routes during a failure in a network of links and nodes. Further, US 2004/0103210A1 refers to a network management apparatus.

[0004] A main process of ICE includes: collecting address information of both communication parties; exchanging the address information of both communication parties; performing matching on the address information of both communication parties, forming a connectivity test list, and for address pairs in the list, sequentially determining connectivity of the address pairs by using four handshakes. An optimal network route is selected according to a connectivity test result and a selection standard.

[0005] When a connection is interrupted due to a client crash, a user misoperation or the like, both communication parties need to perform connection recovery according to the foregoing ICE process; address collection and a connectivity test still need to be performed for both communication parties, thereby leading to long connection recovery time, and severely affecting user experience.

SUMMARY



[0006] The present invention is intended to provide a connection recovery method, apparatus, and system, so as to increase a speed of completing connection recovery after a connection is interrupted.

[0007] According to a first aspect, an embodiment of the present invention provides a connection recovery method, where the method includes:

searching, by a first terminal, for a recovery candidate corresponding to an interrupted connection, where the recovery candidate includes connection information and a recovery identifier used to identify the connection information;

selecting, by the first terminal, one found recovery candidate as a first recovery candidate, where the first recovery candidate includes a first recovery identifier and first connection information;

sending, by the first terminal, a recovery candidate negotiation request to a second terminal, where the recovery candidate negotiation request includes the first recovery identifier of the selected first recovery candidate;

receiving, by the first terminal, a matching success message returned by the second terminal, where the matching success message is used to indicate that the second terminal finds a second recovery candidate that has a same recovery identifier as the first recovery candidate; and

after receiving the matching success message, transmitting, by the first terminal, data to the second terminal according to the first connection information.



[0008] In a first possible implementation manner of the first aspect, the recovery candidate further includes generation time, and when a quantity of recovery candidates that are corresponding to the interrupted connection and found by the first terminal is greater than or equal to two, the first recovery candidate is a recovery candidate with latest generation time.

[0009] According to a second aspect, an embodiment of the present invention further provides a connection recovery terminal, including:

a searching unit, configured to: search for a recovery candidate corresponding to an interrupted connection, where the recovery candidate includes connection information and a recovery identifier used to identify the connection information; and use one found recovery candidate as a first recovery candidate, where the first recovery candidate includes a first recovery identifier and first connection information;

a recovery candidate negotiation request sending unit, configured to send a recovery candidate negotiation request to a second terminal, where the recovery candidate negotiation request includes the first recovery identifier of the selected first recovery candidate;

a matching message receiving unit, configured to receive a matching success message returned by the second terminal, where the matching success message is used to indicate that the second terminal finds a second recovery candidate that has a same recovery identifier as the first recovery candidate; and

a data transmission unit, configured to transmit data to the second terminal according to the first connection information.



[0010] In a first possible implementation manner of the second aspect, the recovery candidate further includes generation time, and when a quantity of recovery candidates that are corresponding to the interrupted connection and found by the searching unit is greater than or equal to two, the searching unit is specifically configured to use a recovery candidate with latest generation time as the first recovery candidate.

[0011] According to a third aspect, an embodiment of the present invention further provides a connection recovery system, including at least a first terminal and a second terminal, where:

the first terminal is configured to: search for a recovery candidate corresponding to an interrupted connection, where the recovery candidate includes connection information and a recovery identifier used to identify the connection information; select one found recovery candidate as a first recovery candidate, where the first recovery candidate includes a first recovery identifier and first connection information; and send a recovery candidate negotiation request to the second terminal, where the recovery candidate negotiation request includes the first recovery identifier of the selected first recovery candidate;

the second terminal is configured to search for a second recovery candidate that has a same recovery identifier as the first recovery candidate, and return a matching success message to the first terminal; and

the first terminal and the second terminal transmit data to each other according to the first connection information and second connection information respectively.



[0012] In a first possible implementation manner of the third aspect, the connection information includes a local-end address and port and a peer-end address and port that are required for data transmission, and the first terminal is further configured to extract a local-end address and port and a peer-end address and port from the first connection information, and transmit the data to the second terminal.

[0013] According to the specific embodiments provided in the present invention, the present invention discloses the following technical effects:
In the embodiments of the present invention, after a communication connection is interrupted, either of two communication parties initiates a connection recovery process, searches for a pre-stored first recovery candidate corresponding to the connection, acquires a first recovery identifier and first connection information from the first recovery candidate, and sends the first recovery identifier to a second terminal, so that the second terminal may find, according to the first recovery identifier, a second recovery candidate that has a same recovery identifier as the first recovery candidate, thereby completing recovery candidate negotiation between both communication parties, so that both parties may perform data transmission by using the connection information in the recovery candidates determined by means of negotiation. Using the foregoing manner, in the embodiments of the present invention, two time-consuming operations, namely, an address collection process and a connectivity test on a collected valid address, do not need to be performed in a connection recovery process, thereby accelerating connection recovery after abnormal disconnection.

BRIEF DESCRIPTION OF DRAWINGS



[0014] To describe the technical solutions in the embodiments of the present invention or in the prior art more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

FIG. 1 is a schematic flowchart of a connection recovery method according to an embodiment of the present invention;

FIG. 2 is a schematic flowchart of another connection recovery method according to an embodiment of the present invention;

FIG. 3 is a schematic flowchart of a method for generating a recovery candidate according to an embodiment of the present invention;

FIG. 4 is a schematic diagram of a communication connection according to an embodiment of the present invention;

FIG. 4a is a schematic diagram of a format of a recovery candidate according to an embodiment of the present invention;

FIG. 5 is a schematic flowchart of a method for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention;

FIG. 6 is a schematic flowchart of another method for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention;

FIG. 7 is a schematic structural diagram of a connection recovery terminal according to an embodiment of the present invention;

FIG. 8 is a schematic structural diagram of a terminal for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention;

FIG. 9 is a schematic structural diagram of another terminal for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention;

FIG. 10 is a schematic structural diagram of a connection recovery system according to an embodiment of the present invention; and

FIG. 11 is a schematic composition diagram of hardware of a terminal according to an embodiment of the present invention.


DESCRIPTION OF EMBODIMENTS



[0015] The following clearly describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are merely some but not all of the embodiments of the present invention. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0016] As shown in FIG. 1, FIG. 1 is a schematic flowchart of a connection recovery method according to an embodiment of the present invention, including:

Step 101: A first terminal searches for a recovery candidate corresponding to an interrupted connection, where the recovery candidate includes connection information and a recovery identifier used to identify the connection information.

Step 102: The first terminal selects one found recovery candidate as a first recovery candidate, where the first recovery candidate includes a first recovery identifier and first connection information.

Step 103: The first terminal sends a negotiation request to a second terminal, where the negotiation request includes the first recovery identifier of the selected first recovery candidate.

Step 104: The first terminal receives a matching success message returned by the second terminal, where the matching success message is used to indicate that the second terminal finds a second recovery candidate that has a same recovery identifier as the first recovery candidate.

Step 105: After receiving the matching success message, the first terminal transmits data to the second terminal according to the first connection information.



[0017] In the embodiment of the present invention, after a communication connection is interrupted, either of two communication parties initiates a connection recovery process, searches for a pre-stored first recovery candidate corresponding to the connection, acquires a first recovery identifier and first connection information from the first recovery candidate, and sends the first recovery identifier to a second terminal, so that the second terminal may find, according to the first recovery identifier, a second recovery candidate that has a same recovery identifier as the first recovery candidate, thereby completing recovery candidate negotiation between both communication parties, so that both parties may perform data transmission by using the connection information in the recovery candidates determined by means of negotiation. Using the foregoing manner, in the embodiment of the present invention, two time-consuming operations, namely, an address collection process and a connectivity test on a collected valid address, do not need to be performed in a connection recovery process, that is, negotiation on a communicable address and port does not need to be performed, thereby accelerating connection recovery after abnormal disconnection.

[0018] It should be noted that, for a purpose of differentiation, in the embodiment of the present invention, a recovery candidate stored on a first terminal side is used as a first recovery candidate, a recovery candidate stored on a second terminal side is used as a second recovery candidate, the first recovery candidate includes a first recovery identifier and first connection information, and the second recovery candidate includes a second recovery identifier and second connection information. In a process of recovery candidate negotiation, if the first recovery candidate and the second recovery candidate match successfully (that is, the first recovery identifier is the same as the second recovery identifier), the first connection information and the second connection information are also in a mapping relationship, and the first connection information and the second connection information are an address and a port that are used when the first terminal and the second terminal transmit data to each other before the connection is interrupted.

[0019] As shown in FIG. 2, FIG. 2 is a schematic flowchart of another connection recovery method according to an embodiment of the present invention, where the method specifically includes the following steps:

Step 201: A connection between two communication parties (communication between a first terminal and a second terminal is used as an example) is interrupted in a communication process, the first terminal detects that a cause of interrupting the connection is abnormal disconnection, and the first terminal initiates a connection recovery process.
In a specific scenario, the communication process may be point-to-point video communication. After the point-to-point video communication is terminated due to a misoperation by a user of the first terminal (for example, browser refreshing), or a software fault in the first terminal, the first terminal determines that the communication connection is abnormally interrupted, and initiates a connection recovery process. The first terminal is an initiator of the connection recovery.
It should be noted that, the cause of the interrupted connection may be detected by using the prior art, for example, detection by means of mouse movement, which is not limited in the embodiment of the present invention.

Step 202: The first terminal searches for a recovery candidate corresponding to the connection, and determines whether the connection supports fast recovery. If the first terminal finds a recovery candidate, it indicates that the connection supports fast recovery, and the first terminal selects one recovery candidate from stored recovery candidates to perform a connection recovery operation; if the terminal cannot find a recovery candidate, it indicates that the connection does not support fast recovery, and a standard ICE process is executed to perform the connection recovery.
The recovery candidate includes at least the following content: a recovery identifier, and an address and a port (namely connection information) that are used when the first terminal or the second terminal transmits data by using the connection before the connection is interrupted.
It should be noted that the recovery candidate is preferentially stored locally on the first terminal. Content of the recovery candidate may further include generation time. When a quantity of recovery candidates that are corresponding to the interrupted connection and found by the first terminal is greater than or equal to two, the first terminal preferentially selects a recovery candidate with latest generation time for the connection recovery.
Further, in a specific application scenario, multiple applications may run on the first terminal or the second terminal, where each application includes multiple users, and each user in each application is allocated with a unique user identifier. In order to identify an abnormally interrupted connection, an application and a user that use the connection for communication, and addresses and ports of both ends of the connection need to be identified. Therefore, in addition to the connection information, the recovery identifier, and the generation time, the recovery candidate may further include an application identifier (App id) and a user identifier (user id). Specifically, when the user identifier is unique in all applications, the recovery candidate may not include the application identifier; when the user identifier is unique in an individual application, the recovery candidate includes the application identifier. It should be noted that, when data transmission may be performed between different applications, application identifiers in recovery candidates stored by both communication parties may be different, which is not limited in the present invention.

Step 203: The first terminal sends a negotiation request to the second terminal, where the negotiation request includes a recovery identifier of the found recovery candidate.



[0020] In a scenario, the first terminal may send an identifier of the selected recovery candidate to the second terminal by using an Offer message. Specifically, in an extended type attribute (namely, an ice-options attribute) of the Offer message, "ice-options: recovery" is used to indicate that the Offer message is a negotiation request; in addition, an identifier field (namely, an ice-recovery-id field) is added to the Offer message, where the field is used to carry the recovery identifier of the recovery candidate.

[0021] Some content of an extended Offer message provided by the embodiment of the present invention is shown in the following example, where the ice-options attribute and the ice-recovery-id field are included.

v=0

o=- 4252590694 2 IN IP4 127.0.0.1

s=-

t=0 0

a=group:BUNDLE audio video

a=msid-semantic: WMS 32KSiGEuoocLuCIbBrSRbJhBuWQhL09C500C

m=audio 1 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126

c=IN IP4 0.0.0.0

a=rtcp:1 IN IP4 0.0.0.0

a=ice-ufrag:Dq2Hm+ngyeZfFb8D

a=ice-pwd:XqxuEiWD74InoOWCFcmKMc9M

a=ice-options recovery

a=ice-recovery-id: ak83iLWzr0sfd62Pld5kg

a=sendrecv
...



[0022] In a specific scenario, the negotiation request further includes the application identifier and the user identifier.

[0023] It should be noted that, in this step, the first terminal and the second terminal may establish a signaling connection by using an application server, so as to implement recovery candidate negotiation, or may use another existing manner, which is not limited in the present invention. Step 204: The second terminal receives the negotiation request, and determines, according to the received recovery identifier of the recovery candidate, whether a recovery candidate with an identifier the same as the recovery identifier is stored; if yes, the second terminal returns a matching success message to the first terminal, where the matching success message is used to indicate that matching of recovery identifiers is successful, and the process proceeds to step 205; if not, the second terminal returns a failure message to the first terminal, where the failure message is used to instruct the first terminal to initiate a standard ICE process to perform the connection recovery.

[0024] Specifically, the recovery candidate may be stored locally on the second terminal or stored on a network side device in which the second terminal may perform query.

[0025] Further, the matching success message or matching failure message may use an Answer message. In the embodiment of the present invention, a recovery identifier matching result is carried by extending the Answer message. For example, an ice-options attribute is also extended in the Answer message, where the ice-options attribute is used to indicate that the Answer message is a fast recovery response, and a field ice-recovery-response is added to the Answer message, where the field is used to indicate a recovery identifier searching result. When a value of the ice-recovery-response is OK, it indicates that the searching is successful, that is, the second terminal also finds a recovery candidate with an identifier the same as the recovery identifier that is of the recovery candidate and carried in the negotiation request; when the value of the ice-recovery-response is ERROR, it indicates that the searching fails, a recovery candidate with a recovery identifier the same as the recovery identifier that is of the recovery candidate and carried in the negotiation request message is not found on a second terminal side, and the answer does not carry any candidate information.

[0026] Some content of an extended Answer message provided by the embodiment of the present invention is shown in the following example:

v=0

o=- 1914227327 2 IN IP4 127.0.0.1

s=-

t=0 0

a=group:BUNDLE audio video

a=msid-semantic: WMS c3E2b7ZmdY1jMTGsupAK8EG2cg1QZoZ4sV06

m=audio 1 RTP/SAVPF 111 103 104 0 8 107 106 105 13 126

c=IN IP4 0.0.0.0

a=rtcp:1 IN IP4 0.0.0.0

a=candidate:3051601105 1 udp 2113937151 10.166.41.134 60453 typ host generation 0

a=candidate:4217389089 1 tcp 1509957375 10.166.41.134 60747 typ host generation 0

a=ice-ufrag:Gyd8HOyLRA8gU4G8

a=ice-pwd:0izAaoCbwAlTaEuQO8huxETk

a=ice-options :recovery

a=ice-recovery-response: OK

a=sendrecv



[0027] Further, when the negotiation request further includes the application identifier and the user identifier, the second terminal searches a stored record that matches the application identifier and the user identifier to determine whether a recovery candidate that has a same recovery identifier is stored.

[0028] Step 205: The first terminal and the second terminal send a Keepalives message to each other and start to transmit a media stream. In this case, the media stream may be interworked theoretically.

[0029] In the embodiment of the present invention, after returning a success message to the first terminal, the second terminal extracts, from the recovery candidate found on a local end, a local-end address and port, and a peer-end address and port that are used for data transmission, and sends a Keepalives message and a media stream to the first terminal; after receiving the success message, the first terminal sends a Keepalives message and a media stream to a peer-end address and port included in a recovery candidate found on a local end.

[0030] In the embodiment of the present invention, because the first terminal stores the recovery candidate corresponding to the abnormally interrupted connection, the first terminal does not need to access a STUN/TURN (Session Traversal Utilities for NAT /Traversal Using Relay NAT, Session Traversal Utilities for NAT /Traversal Using Relay NAT) server to collect address information, thereby reducing pressure of the STUN/TURN server. When the connection of both parties is abnormally interrupted due to other causes such as a user misoperation or a client software fault, the first terminal may read the connection information included in the stored recovery candidate, and preferentially select the connection information for data transmission. Using the foregoing manner, in the embodiment of the present invention, two time-consuming operations, namely, an address collection process and a connectivity test on a collected valid address, do not need to be performed in a connection recovery process, thereby accelerating connection recovery after abnormal disconnection. Further, if a network environment changes after the connection is abnormally interrupted, the addresses and the ports that are of both parties of the connection and stored in the recovery candidate may not be available. Therefore, before step 205, the connection recovery method further includes:

Step 206: The first terminal and the second terminal perform connectivity test on the connection information included in the recovery candidate. If the test fails, the recovery candidates that are corresponding to the recovery identifier and stored on both parties are deleted, and an error processing process, namely, step 207, is executed. It should be noted that the connectivity test may use a test method in the standard ICE process, which is not limited in the present invention.

Step 207: An initiator deletes a recovery candidate corresponding to the recovery identifier used in the connection recovery this time, and continues to check whether there is another recovery candidate. If there is another recovery candidate, step 202 to step 204 are repeated until a valid recovery candidate is found, or all recovery candidates are invalid; if another recovery candidate does not exist, the initiator initiates a standard ICE reconnection process. In the foregoing embodiment of the present invention, another recovery candidate is used to perform the connection recovery only in a case in which a recovery candidate preferentially selected by the recovery initiator does not pass the connectivity test. In addition to ensuring connection recovery efficiency, the foregoing manner can increase a success rate of the connection recovery to the greatest extent.



[0031] Before the connection is interrupted, determined connection information needs to be stored (that is, to generate a recovery candidate) in a process of establishing the connection. As shown in FIG. 3, FIG. 3 is a schematic flowchart of a method for generating a recovery candidate according to an embodiment of the present invention, where the method includes:

Step 301: In a process of establishing a connection between two communication parties, both communication parties perform address collection, and send collected local-end address information to a peer end. Both communication parties perform a connectivity test according to acquired address information of both parties, and determine an optimal route used for the communication connection. After a connectivity test stage ends, a first terminal generates a recovery identifier (recovery id) for first connection information that passes the connectivity test.
Specifically, as shown in FIG. 4, FIG. 4 is a schematic diagram of a communication connection according to an embodiment of the present invention, where a first terminal and a second terminal are connected through a STUN server by using respective NATs. A:a indicates an internal address and an internal port of the first terminal, B:b indicates an external address and an external port of the first terminal in a first NAT, and C:c indicates a relay address and a relay port of the first terminal on the STUN server. X:x indicates an internal address and an internal port of the second terminal, Y:y indicates an external address and an external port of the second terminal in a second NAT, and Z:z indicates a relay address and a relay port of the second terminal on the STUN server.
The first terminal and the second terminal send an address acquiring request to the STUN server to collect respective address information, where the address information collected by the first terminal is A:a, B:b, and C:c, and the address information collected by the second terminal is X:x, Y:y, and Z:z. The first terminal and the second terminal exchange the collected address information, initiate a connectivity test process with respect to the addresses of both communication parties, and determine connection information for data transmission. It should be noted that both communication parties may be separately located in different NATs, or located in a same NAT, or only one of the two parties is located in a NAT. Therefore, the addresses and ports of both communication parties included in the connection information may be internal network addresses and internal network ports, or may be external network addresses and external network ports, or may further be a relay address and a relay port of a TURN server. For a specific address collection process and connectivity test process, reference may be made to a standard ICE process, which is not limited in the present invention.

Step 302: The first terminal adds the recovery identifier to a notification message and sends the notification message to the peer end, to instruct a second terminal to use the received recovery identifier as a recovery identifier of connection information recorded on a local end. Specifically, a STUN request message may be preferentially selected as the notification message, and the recovery identifier may be carried in the STUN request message in a manner of extending a message body.
Specifically, the embodiment of the present invention further provides an extension instance of a STUN message, and the following shows a schematic diagram of a RECOVERY attribute format in an extended STUN message provided in the embodiment of the present invention:


The STUN message is extended in the embodiment of the present invention, a RECOVERY attribute is added to the STUN message, and a recovery identifier (RECOVERY ID) is carried in the RECOVERY attribute.
Further, a value of the RECOVERY attribute is 0x0050, and a Length attribute is further included thereafter, where the Length attribute is used to indicate a length of the RECOVERY attribute. Preferentially, the length of the RECOVERY attribute is 16 bits. Further, the RECOVERY attribute may include one or more sub-attributes.
It should be noted that the embodiment of the present invention is not limited to the STUN message, as long as the recovery identifier is sent to the peer end to implement that both communication parties store connection information that includes the same recovery identifier.

Step 303: After receiving the notification message, the second terminal uses the received recovery identifier as a recovery identifier of second connection information that passes the connectivity test and that is recorded on the local end, and stores the recovery identifier and the second connection information as a recovery candidate locally or in a storage network element on a network side.


Specifically:



[0032] The recovery identifier (Recovery id) is randomly generated by the first terminal in the process of establishing the connection, is unique, and is used as evidence for both parties to determine a same recovery candidate during the connection recovery.

[0033] The second connection information includes an address and port used for data transmission by the local end, and an address and port of the peer end, and is used to determine the addresses and ports of both communication parties during the connection recovery. It should be noted that the address or port used for data transmission by the local end or the peer end may belong to a public network or a private network, and is determined in an ICE negotiation process according to a specific network environment, which is not limited in the present invention. Further, the recovery candidate further includes generation time, namely local time when the recovery candidate is generated. The generation time is used by a recovery initiator to search for a latest recovery candidate corresponding to the connection when initiating the connection recovery.

[0034] Still further, in a specific application scenario, multiple applications may run on the first terminal or the second terminal, where each application includes multiple users, and each user in each application is allocated with a unique user identifier. In order to identify an abnormally interrupted connection, an application and a user that use the connection for communication, and addresses and ports of both ends of the connection need to be identified. Therefore, in addition to the connection information, the recovery identifier, and the generation time, the recovery candidate may further include an application identifier (App id) and a user identifier (user id). Specifically, when the user identifier is unique in all applications, the recovery candidate may not include the application identifier; when the user identifier is unique in an individual application, the recovery candidate includes the application identifier. It should be noted that, when data transmission may be performed between different applications, application identifiers in recovery candidates stored by both communication parties may be different, which is not limited in the present invention.

[0035] Step 304: The second terminal returns a response message to the first terminal.

[0036] Step 305: After receiving the response message returned by the second terminal, the first terminal stores the connection information and the recovery identifier as a recovery candidate locally or in a storage unit on a network side. Further, the recovery candidate may further include at least one of generation time, a user identifier, and an application identifier. Content types of the recovery candidates stored by the first terminal and the second terminal may be consistent.

[0037] FIG. 4a shows a schematic diagram of a format of a recovery candidate stored by using an HTML5 LocalStorage technology according to an embodiment of the present invention. Candidate L indicates a local-end address and port of the connection information, and Candidate R indicates a peer-end address and port of the connection information.

[0038] It should be noted that the embodiment of the present invention does not impose a limit on a manner in which both communication parties store a recovery candidate.

[0039] The embodiment of the present invention provides a method for generating a recovery candidate, where generation of the recovery candidate is completed in a process of establishing a connection. After the connection is abnormally interrupted, a stored recovery candidate may be used to perform connection recovery.

[0040] Further, in order to maintain validity of recovery candidates stored by both communication parties, a recovery candidate management manner provided in the embodiment of the present invention includes at least one of the following:

Manner 1: In a connection recovery process, when the first terminal receives a matching failure message returned by the second terminal, the first terminal deletes a recovery candidate that fails in matching.

Manner 2: The first terminal and the second terminal perform a connectivity test on a recovery candidate that succeeds in matching, and delete a recovery candidate whose connectivity test result is a failure.

Manner 3: When the first terminal or the second terminal initiates an ICE Restart process to modify the connection information, the first terminal and the second terminal update connection information included in the respective stored recovery candidates to modified connection information.

Manner 4: After a session between the first terminal and the second terminal is terminated, the first terminal and the second terminal clear a recovery candidate stored in a process of this session.

Manner 5: A clearance period and keepalive duration are set, the first terminal or the second terminal performs periodical clearance on the stored recovery candidate, and clears, according to generation time of a recovery candidate, a recovery candidate with generation duration exceeding the keepalive duration.

Manner 6: After successfully recovering the connection by using the recovery candidate, the first terminal and the second terminal update generation time of the recovery candidate.



[0041] In the embodiment of the present invention, two communication parties store a recovery candidate that is saved in a process of establishing a connection. When the connection between both parties is abnormally interrupted due to other causes such as a user misoperation or a client software fault, a first terminal may read connection information included in the stored recovery candidate, and preferentially select the connection information for data transmission. Using the foregoing manner, in the embodiment of the present invention, two time-consuming operations, namely, an address collection process and a connectivity test on a collected valid address, do not need to be performed in a connection recovery process, that is, negotiation on a communicable address and port does not need to be performed, thereby accelerating connection recovery after abnormal disconnection. Further, the embodiment of the present invention further provides the recovery candidate management manner, ensuring time validity of the recovery candidate.

[0042] As shown in FIG. 5, FIG. 5 is a schematic flowchart of a method for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention, where the method includes:

Step 501: A first terminal acquires local-end address information, and sends the acquired local-end address information to a second terminal.

Step 502: The first terminal receives address information that is of the second terminal and sent by the second terminal.

Step 503: The first terminal initiates a connectivity test according to the acquired address information of both parties, and selects an optimal route as first connection information of the connection.

Step 504: The first terminal generates a first recovery identifier for the first connection information, and sends the first recovery identifier to the second terminal, so that the second terminal uses the first recovery identifier as a recovery identifier corresponding to second connection information that is of the connection and acquired on a local end, where the second connection information is acquired by the second terminal in a process of the connectivity test.

Step 505: The first terminal receives a response message returned by the second terminal, and locally stores the first recovery identifier and the first connection information as a first recovery candidate.



[0043] As shown in FIG. 6, FIG. 6 is a schematic flowchart of another method for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention, where the method includes:

Step 601: A second terminal acquires local-end address information, and sends the acquired local-end address information to a first terminal.

Step 602: The second terminal receives address information that is of the first terminal and sent by the first terminal.

Step 603: The second terminal initiates a connectivity test according to the acquired address information of both parties, and selects an optimal route as second connection information of the connection.

Step 604: The second terminal receives a first recovery identifier sent by the first terminal, and uses the first recovery identifier as a recovery identifier corresponding to second connection information that is of the connection and acquired on a local end, where the first recovery identifier is a recovery identifier generated by the first terminal for acquired first connection information of the connection.

Step 605: The second terminal locally stores the first recovery identifier and the second connection information as a second recovery candidate.



[0044] The embodiment of the present invention provides a method for generating a recovery candidate in a process of establishing a connection, where a first terminal generates a recovery identifier for connection information corresponding to an optimal route determined by two parties in a connectivity test process, and sends the recovery identifier to a second terminal, so that the second terminal allocates the recovery identifier to connection information that is determined by a local end for the connection. Both communication parties store a recovery candidate, including the recovery identifier and connection information separately determined by both parties; therefore, when the connection is abnormally interrupted, one of the two communication parties may initiate a connection recovery process, and resume communication by using the connection information stored in the embodiment. In this way, both communication parties do not need to perform address collection, thereby accelerating connection recovery after abnormal disconnection.

[0045] Corresponding to the foregoing method embodiments, the embodiments of the present invention further provide corresponding apparatus and system embodiments.

[0046] As shown in FIG. 7, FIG. 7 is a schematic structural diagram of a connection recovery terminal according to an embodiment of the present invention, where the terminal includes:

a searching unit 701, configured to: search for a recovery candidate corresponding to an interrupted connection, where the recovery candidate includes a recovery identifier and connection information; and use one found recovery candidate as a first recovery candidate, where the first recovery candidate includes a first recovery identifier and first connection information;

a negotiation request sending unit 702, configured to send a negotiation request to a second terminal, where the negotiation request includes the first recovery identifier of the selected first recovery candidate;

a matching message receiving unit 703, configured to receive a matching success message returned by the second terminal, where the matching success message is used to indicate that the second terminal finds a second recovery candidate that has a same recovery identifier as the first recovery candidate; and

a data transmission unit 704, configured to transmit data to the second terminal according to the first connection information.



[0047] Further, the recovery candidate further includes generation time, and when a quantity of recovery candidates that are corresponding to the interrupted connection and found by the searching unit 701 is greater than or equal to two, the searching unit 701 is specifically configured to use a recovery candidate with latest generation time as the first recovery candidate.

[0048] Further, the connection information includes a local-end address and port and a peer-end address and port that are required for data transmission, and the data transmission unit 704 is specifically configured to extract a local-end address and port and a peer-end address and port from the first connection information, and transmit the data to the second terminal.

[0049] The terminal further includes an interruption detecting unit 705, configured to detect that a cause of interrupting the connection is abnormal disconnection, where a cause of the abnormal disconnection includes browser refreshing or a client software fault.

[0050] The terminal further includes a storage unit 706, configured to store the first recovery candidate corresponding to the connection.

[0051] Further, the terminal further includes:

an address information acquiring unit 707, configured to acquire local-end address information, and receive address information that is of the second terminal and sent by the second terminal;

a testing unit 708, configured to initiate a connectivity test to the second terminal according to the address information that is of both parties and acquired by the address information acquiring unit, and select an optimal route as the first connection information of the connection;

a recovery candidate generating unit 709, configured to generate the first recovery identifier for the first connection information, and store the first recovery identifier and the first connection information as the first recovery candidate; and

a recovery identifier sending unit 710, configured to send the first recovery identifier to the second terminal, so that the second terminal uses the first recovery identifier as a recovery identifier corresponding to second connection information that is of the connection and acquired on a local end.



[0052] The recovery identifier sending unit 710 is specifically configured to send the first recovery identifier to the second terminal by using a Session Traversal Utilities for NAT STUN message.

[0053] The testing unit is further configured to perform a connectivity test on the first connection information and the second connection information with the second terminal.

[0054] When a result of the connectivity test is a failure, the searching unit 701 is further configured to select another recovery candidate except the first recovery candidate to perform, with the second terminal, recovery candidate matching.

[0055] The terminal further includes a management unit 711, configured to manage, in at least one of the following manners, a recovery candidate stored in the storage unit:

when the first terminal receives a matching failure message returned by the second terminal, deleting the first recovery candidate;

deleting a recovery candidate whose connectivity test result is a failure;

when the first terminal or the second terminal initiates an ICE Restart process to modify the connection information, updating connection information included in the stored recovery candidate to modified connection information;

after a session between the first terminal and the second terminal is terminated, clearing a recovery candidate stored in a process of this session;

setting a clearance period and keepalive duration, performing periodical clearance on the stored recovery candidate, and clearing, according to generation time of a recovery candidate, a recovery candidate with generation duration exceeding the keepalive duration; and

after recovering the connection by using the first recovery candidate, updating generation time of the first recovery candidate.



[0056] In the embodiment of the present invention, after a communication connection is interrupted, one of two communication parties initiates a connection recovery process, searches for a pre-stored first recovery candidate corresponding to the connection, acquires a first recovery identifier and first connection information from the first recovery candidate, and sends the first recovery identifier to a second terminal, so that the second terminal may find, according to the first recovery identifier, a second recovery candidate that has a same recovery identifier as the first recovery candidate, thereby completing recovery candidate negotiation between both communication parties, so that both parties may perform data transmission by using the connection information in the recovery candidates determined by means of negotiation. Using the foregoing manner, in the embodiment of the present invention, two time-consuming operations, namely, an address collection process and a connectivity test on a collected valid address, do not need to be performed in a connection recovery process, that is, negotiation on a communicable address and port does not need to be performed, thereby accelerating connection recovery after abnormal disconnection.

[0057] As shown in FIG. 8, FIG. 8 is a schematic structural diagram of a terminal for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention, where the terminal includes:

an address information acquiring unit 801, configured to acquire local-end address information, send the acquired local-end address information to a second terminal, and receive address information that is of the second terminal and sent by the second terminal;

a testing unit 802, configured to initiate a connectivity test according to the acquired address information of both parties, and select an optimal route as first connection information of the connection;

a recovery candidate generating unit 803, configured to generate a first recovery identifier for the first connection information, and after a response message receiving unit 805 receives a response message returned by the second terminal, locally store the first recovery identifier and the first connection information as a first recovery candidate;

a recovery identifier sending unit 804, configured to send the first recovery identifier to the second terminal, so that the second terminal uses the first recovery identifier as a recovery identifier corresponding to second connection information that is of the connection and acquired on a local end, where the second connection information is acquired by the second terminal in a process of the connectivity test; and

the response message receiving unit 805, configured to receive the response message returned by the second terminal.



[0058] As shown in FIG. 9, FIG. 9 is a schematic structural diagram of another terminal for generating a recovery candidate in a process of establishing a connection according to an embodiment of the present invention, where the terminal includes:

an address information acquiring unit 901, configured to acquire local-end address information, send the acquired local-end address information to a first terminal, and receive address information that is of the first terminal and sent by the first terminal;

a testing unit 902, configured to initiate a connectivity test according to the acquired address information of both parties, and select an optimal route as second connection information of the connection;

a recovery identifier receiving unit 903, configured to receive a first recovery identifier sent by the first terminal, and use the first recovery identifier as a recovery identifier corresponding to the second connection information that is of the connection and acquired on a local end, where the first recovery identifier is a recovery identifier generated by the first terminal for acquired first connection information of the connection; and

a recovery candidate generating unit 904, configured to locally store the first recovery identifier and the second connection information as a second recovery candidate.



[0059] The embodiment of the present invention provides a terminal for generating a recovery candidate in a process of establishing a connection, where a first terminal generates a recovery identifier for connection information corresponding to an optimal route determined by two parties in a connectivity test process, and sends the recovery identifier to a second terminal, so that the second terminal allocates the recovery identifier to connection information that is determined by a local end for the connection. Both communication parties store a recovery candidate, including the recovery identifier and connection information separately determined by both parties; therefore, when the connection is abnormally interrupted, one of the two communication parties may initiate a connection recovery process, and resume communication by using the connection information stored in the embodiment. In this way, both communication parties do not need to perform address collection, thereby accelerating connection recovery after abnormal disconnection.

[0060] As shown in FIG. 10, FIG. 10 is a schematic structural diagram of a connection recovery system according to an embodiment of the present invention, where the system includes a first terminal 1001 and a second terminal 1002.

[0061] The first terminal 1001 is configured to: search for a recovery candidate corresponding to an interrupted connection, where the recovery candidate includes a recovery identifier and connection information; select one found recovery candidate as a first recovery candidate, where the first recovery candidate includes a first recovery identifier and first connection information; and send a negotiation request to the second terminal 1002, where the negotiation request includes the first recovery identifier of the selected first recovery candidate;

the second terminal 1002 is configured to search for a second recovery candidate that has a same recovery identifier as the first recovery candidate, and return a matching success message to the first terminal 1001; and

the first terminal 1001 and the second terminal 1002 transmit data to each other according to the first connection information and second connection information respectively. The connection information includes a local-end address and port and a peer-end address and port that are required for data transmission, and the first terminal 1001 is further configured to extract a local-end address and port and a peer-end address and port from the first connection information, and transmit the data to the second terminal 1002.



[0062] The recovery candidate further includes an application identifier and a user identifier, and correspondingly, the negotiation request further includes a first application identifier and a first user identifier that are of the first recovery candidate, and the second recovery candidate further includes a second application identifier and a second user identifier.

[0063] The second terminal 1002 is further configured to search a stored record that matches the first application identifier and the first user identifier for the second recovery candidate that has the same recovery identifier as the first recovery candidate.

[0064] The first terminal 1001 stores the first recovery candidate corresponding to the connection, and the second terminal 1002 stores the second recovery candidate corresponding to the connection.

[0065] The first terminal 1001 is further configured to acquire local-end address information, send the acquired local-end address information to the second terminal 1002, and receive address information that is of the second terminal 1002 and sent by the second terminal 1002.

[0066] The second terminal 1002 is further configured to acquire local-end address information, send the acquired local-end address information to the first terminal 1001, and receive the address information that is of the first terminal 1001 and sent by the first terminal 1001.

[0067] The first terminal 1001 is further configured to initiate a connectivity test according to the acquired address information of both parties, and select an optimal route as the first connection information of the connection.

[0068] The second terminal 1002 is further configured to initiate a connectivity test according to the acquired address information of both parties, and select an optimal route as the second connection information of the connection.

[0069] The first terminal 1001 is further configured to generate the first recovery identifier for the first connection information, and send the first recovery identifier to the second terminal 1002.

[0070] The second terminal 1002 is further configured to receive the first recovery identifier sent by the first terminal 1001, use the first recovery identifier as a recovery identifier corresponding to the second connection information that is of the connection and acquired on a local end, locally store the first recovery identifier and the second connection information as the second recovery candidate, and send a response message to the first terminal 1001.

[0071] The first terminal 1001 is further configured to receive the response message returned by the second terminal 1002, and locally store the first recovery identifier and the first connection information as the first recovery candidate.

[0072] The first terminal 1001 and the second terminal 1002 are further configured to manage a stored recovery candidate in at least one of the following manners:

deleting a recovery candidate whose connectivity test result is a failure;

when the first terminal 1001 or the second terminal 1002 initiates an ICE Restart process to modify the connection information, updating connection information included in the stored recovery candidate to modified connection information;

after a session between the first terminal 1001 and the second terminal 1002 is terminated, clearing a recovery candidate stored in a process of this session;

setting a clearance period and keepalive duration, performing periodical clearance on the stored recovery candidate, and clearing, according to generation time of a recovery candidate, a recovery candidate with generation duration exceeding the keepalive duration; and

after recovering the connection by using the recovery candidate, updating generation time of the recovery candidate.



[0073] In the embodiment of the present invention, because the first terminal stores the recovery candidate corresponding to the abnormally interrupted connection, the first terminal does not need to access a STUN/TURN (Session Traversal Utilities for NAT /Traversal Using Relay NAT, Session Traversal Utilities for NAT /Traversal Using Relay NAT) server to collect address information, thereby reducing pressure of the STUN/TURN server. When the connection of both parties is abnormally interrupted due to other causes such as a user misoperation or a client software fault, the first terminal may read the connection information included in the stored recovery candidate, and preferentially select the connection information for data transmission. Using the foregoing manner, in the embodiment of the present invention, two time-consuming operations, namely, an address collection process and a connectivity test on a collected valid address, do not need to be performed in a connection recovery process, thereby accelerating connection recovery after abnormal disconnection. Further, as shown in FIG. 11, an embodiment of the present invention provides a schematic composition diagram of hardware of a terminal according to an embodiment of the present invention, which may include at least one processor (for example, a CPU), at least one network interface or another communications interface, a memory, and at least one communications bus that is configured to implement connection communication between these apparatuses. The processor is configured to execute an executable module stored in the memory, for example, a computer program. The memory may include a high-speed random access memory (RAM: Random Access Memory), or may further include a non-volatile memory (non-volatile memory), for example, at least one magnetic disk memory. A communication connection between a system gateway and at least one other network element is implemented by using at least one network interface (which may be wired or wireless), and the Internet, a wide area network, a local area network, a metropolitan area network, or the like may be used.

[0074] In some implementation manners, the memory stores a program instruction, where the program instruction may be executed by the processor, and the program instruction may include each unit indicated in the foregoing embodiments of the present invention. For a specific implementation manner of each unit, reference may be made to corresponding content in the foregoing embodiments of the present invention, and details are not repeatedly described herein.

[0075] Based on the foregoing descriptions of the implementation manners, a person skilled in the art may clearly understand that all or some of the steps of the methods in the embodiments may be implemented by software in addition to a necessary universal hardware platform. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art may be implemented in the form of a software product. The computer software product may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, or an optical disc, and includes several instructions for instructing a computer device (which may be a personal computer, a resource management server, or a network communications device such as a media gateway) to perform the methods described in the embodiments or some parts of the embodiments of the present invention.

[0076] It should be noted that the embodiments in this specification are all described in a progressive manner, for same or similar parts in the embodiments, reference may be made to these embodiments, and each embodiment focuses on a difference from other embodiments. Especially, device and system embodiments are basically similar to a method embodiment, and therefore are described briefly; for related parts, reference may be made to partial descriptions in the method embodiment. The described device and system embodiments are merely exemplary. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments. A person of ordinary skill in the art may understand and implement the embodiments of the present invention without creative efforts.


Claims

1. A connection recovery method, comprising:

searching, by a first terminal, for a recovery candidate corresponding to an interrupted connection between the first terminal and a second terminal, wherein the recovery candidate comprises connection information and a recovery identifier used to identify the connection information (step 101);

selecting, by the first terminal, one found recovery candidate as a first recovery candidate, wherein the first recovery candidate comprises a first recovery identifier and first connection information (step 102);

sending, by the first terminal, a recovery candidate negotiation request to the second terminal, wherein the recovery candidate negotiation request comprises the first recovery identifier of the selected first recovery candidate (step 103);

receiving, by the first terminal, a matching success message returned by the second terminal, wherein the matching success message is used to indicate that the second terminal finds a second recovery candidate that has a same recovery identifier as the first recovery candidate (step 104); and

after receiving the matching success message, transmitting, by the first terminal, data to the second terminal according to the first connection information (step 105).


 
2. The method according to claim 1, wherein the recovery candidate further comprises generation time, and when a quantity of recovery candidates that are corresponding to the interrupted connection and found by the first terminal is greater than or equal to two, the first recovery candidate is a recovery candidate with latest generation time.
 
3. The method according to claim 1 or 2, wherein the connection information comprises a local-end address and port and a peer-end address and port that are required for data transmission;
wherein the transmitting, by the first terminal, data to the second terminal according to the first connection information comprises:
extracting, by the first terminal, a local-end address and port and a peer-end address and port from the first connection information, and transmitting the data to the second terminal.
 
4. The method according to any one of claims 1 to 3, wherein the recovery candidate further comprises an application identifier and a user identifier, and correspondingly, the recovery candidate negotiation request further comprises a first application identifier and a first user identifier that are of the first recovery candidate, and the second recovery candidate further comprises a second application identifier and a second user identifier; and
the method further comprises: searching, by the second terminal, a stored record that matches the first application identifier and the first user identifier for the second recovery candidate that has the same recovery identifier as the first recovery candidate;
wherein before the connection is interrupted, a first user of a first application running on the first terminal performs, by using the connection, data transmission with a second user of a second application running on the second terminal.
 
5. The method according to claim 1, wherein the recovery candidate negotiation request comprises a type attribute and an identifier field, the type attribute is used to indicate that the recovery candidate negotiation request is used for connection recovery, and the identifier field is used to carry the recovery identifier of the first recovery candidate;
wherein the recovery candidate negotiation request is an Offer message, and the type attribute is an extended ice-options attribute.
 
6. The method according to claim 1, wherein the method further comprises at least one of the following recovery candidate modification manners:

when the first terminal receives a matching failure message returned by the second terminal, deleting, by the first terminal, the first recovery candidate;

performing, by the first terminal and the second terminal, a connectivity test on a recovery candidate that succeeds in matching, and deleting a recovery candidate whose connectivity test result is a failure;

when the first terminal or the second terminal initiates an ICE Restart process to modify the connection information, updating, by the first terminal and the second terminal, connection information comprised in the respective stored recovery candidates to modified connection information;

after a session between the first terminal and the second terminal is terminated, clearing, by the first terminal and the second terminal, a recovery candidate stored in a process of this session;

setting a clearance period and keepalive duration, performing, by the first terminal or the second terminal, periodical clearance on the stored recovery candidate, and clearing, according to generation time of a recovery candidate, a recovery candidate with generation duration exceeding the keepalive duration; and

after recovering the connection by using the first recovery candidate, updating, by the first terminal, generation time of the first recovery candidate.


 
7. The method according to claim 1, wherein the method further comprises: when the first terminal cannot find the recovery candidate corresponding to the interrupted connection, initiating, by the first terminal, an interactive connection recovery ICE process to re-establish a connection between the first terminal and the second terminal.
 
8. A connection recovery terminal, comprising:

a searching unit (701), configured to: search for a recovery candidate corresponding to an interrupted connection between said terminal and a second terminal, wherein the recovery candidate comprises connection information and a recovery identifier used to identify the connection information; and use one found recovery candidate as a first recovery candidate, where the first recovery candidate comprises a first recovery identifier and first connection information;

a recovery candidate negotiation request sending unit (702), configured to send a recovery candidate negotiation request to the second terminal, wherein the recovery candidate negotiation request comprises the first recovery identifier of the selected first recovery candidate;

a matching message receiving unit (703), configured to receive a matching success message returned by the second terminal, wherein the matching success message is used to indicate that the second terminal finds a second recovery candidate that has a same recovery identifier as the first recovery candidate; and

a data transmission unit (704), configured to transmit data to the second terminal according to the first connection information.


 
9. The terminal according to claim 8, wherein the recovery candidate further comprises generation time, and when a quantity of recovery candidates that are corresponding to the interrupted connection and found by the searching unit is greater than or equal to two, the searching unit is specifically configured to use a recovery candidate with latest generation time as the first recovery candidate.
 
10. The terminal according to claim 8, wherein the connection information comprises a local-end address and port and a peer-end address and port that are required for data transmission, and the data transmission unit is specifically configured to extract a local-end address and port and a peer-end address and port from the first connection information, and transmit the data to the second terminal.
 
11. The terminal according to claim 8, further comprising a management unit, configured to manage, in at least one of the following manners, a recovery candidate stored in a storage unit:

when the first terminal receives a matching failure message returned by the second terminal, deleting the first recovery candidate;

deleting a recovery candidate whose connectivity test result is a failure;

when the first terminal or the second terminal initiates an ICE Restart process to modify the connection information, updating connection information comprised in the stored recovery candidate to modified connection information;

after a session between the first terminal and the second terminal is terminated, clearing a recovery candidate stored in a process of this session;

setting a clearance period and keepalive duration, performing periodical clearance on the stored recovery candidate, and clearing, according to generation time of a recovery candidate, a recovery candidate with generation duration exceeding the keepalive duration; and

after recovering the connection by using the first recovery candidate, updating generation time of the first recovery candidate.


 
12. A connection recovery system, comprising a first terminal (1001) and a second terminal (1002), wherein:

the first terminal (1001) is configured to: search for a recovery candidate corresponding to an interrupted connection between the first terminal and the second terminal, wherein the recovery candidate comprises connection information and a recovery identifier used to identify the connection information; select one found recovery candidate as a first recovery candidate, wherein the first recovery candidate comprises a first recovery identifier and first connection information; and send a recovery candidate negotiation request to the second terminal, wherein the recovery candidate negotiation request comprises the first recovery identifier of the selected first recovery candidate;

the second terminal (1002) is configured to search for a second recovery candidate that has a same recovery identifier as the first recovery candidate, and return a matching success message to the first terminal; and

the first terminal (1001) and the second terminal (1002) transmit data to each other according to the first connection information and second connection information respectively.


 
13. The system according to claim 12, wherein the connection information comprises a local-end address and port and a peer-end address and port that are required for data transmission, and the first terminal is further configured to extract a local-end address and port and a peer-end address and port from the first connection information, and transmit the data to the second terminal.
 
14. The system according to claim 12 or 13, wherein the recovery candidate further comprises an application identifier and a user identifier, and correspondingly, the recovery candidate negotiation request further comprises a first application identifier and a first user identifier that are of the first recovery candidate, and the second recovery candidate further comprises a second application identifier and a second user identifier; and
the second terminal is further configured to search a stored record that matches the first application identifier and the first user identifier for the second recovery candidate that has the same recovery identifier as the first recovery candidate.
 
15. The system according to any one of claims 12 to 14, wherein the first terminal stores the first recovery candidate corresponding to the connection, and the second terminal stores the second recovery candidate corresponding to the connection.
 


Ansprüche

1. Verbindungswiederherstellungsverfahren, umfassend:

Suchen, durch ein erstes Terminal, nach einem Wiederherstellungskandidaten, der einer unterbrochenen Verbindung zwischen dem ersten Terminal und einem zweiten Terminal entspricht, wobei der Wiederherstellungskandidat Verbindungsinformationen und einen Wiederherstellungsidentifikator umfasst, der verwendet wird, um die Verbindungsinformationen zu identifizieren (Schritt 101);

Auswählen, durch das erste Terminal, eines gefundenen Wiederherstellungskandidaten als ersten Wiederherstellungskandidaten, wobei der erste Wiederherstellungskandidat einen ersten Wiederherstellungsidentifikator und erste Verbindungsinformationen umfasst (Schritt 102);

Senden, durch das erste Terminal, einer Wiederherstellungskandidaten-Verhandlungsanforderung an das zweite Terminal, wobei die Wiederherstellungskandidaten-Verhandlungsanforderung den ersten Wiederherstellungsidentifikator des ausgewählten ersten Wiederherstellungskandidaten umfasst (Schritt 103);

Empfangen, durch das erste Terminal, einer Übereinstimmungserfolgsnachricht, die von dem zweiten Terminal zurückgeführt wird, wobei die Übereinstimmungserfolgsnachricht verwendet wird, um anzuzeigen, dass das zweite Terminal einen zweiten Wiederherstellungskandidaten findet, der denselben Wiederherstellungsidentifikator aufweist wie der erste Wiederherstellungskandidat (Schritt 104); und

nach dem Empfangen der Übereinstimmungserfolgsnachricht, Übertragen, durch das erste Terminal, von Daten an das zweite Terminal gemäß den ersten Verbindungsinformationen (Schritt 105).


 
2. Verfahren nach Anspruch 1, wobei der Wiederherstellungskandidat ferner die Generierungszeit umfasst, und, wenn eine Menge von Wiederherstellungskandidaten, die der unterbrochenen Verbindung entsprechen und von dem ersten Terminal gefunden werden, größer oder gleich zwei ist, der erste Wiederherstellungskandidat ein Wiederherstellungskandidat mit der letzten Generierungszeit ist.
 
3. Verfahren nach Anspruch 1 oder 2, wobei die Verbindungsinformationen eine "Local-End"-Adresse und einen Port und eine "Peer-End"-Adresse und einen Port umfassen, die für eine Datenübertragung erforderlich sind;
wobei das Übertragen, durch das erste Terminal, von Daten an das zweite Terminal gemäß den ersten Verbindungsinformationen umfasst:
Extrahieren, durch das erste Terminal, einer "Local-End"-Adresse und eines Ports und einer "Peer-End"-Adresse und eines Ports aus den ersten Verbindungsinformationen, und Übertragen der Daten an das zweite Terminal.
 
4. Verfahren nach einem der Ansprüche 1 bis 3, wobei der Wiederherstellungskandidat ferner einen Anwendungsidentifikator und einen Benutzeridentifikator umfasst, und dementsprechend die Wiederherstellungskandidaten-Verhandlungsanforderung ferner einen ersten Anwendungsidentifikator und einen ersten Benutzeridentifikator umfasst, die von dem ersten Wiederherstellungskandidaten sind, und der zweite Wiederherstellungskandidat ferner einen zweiten Anwendungsidentifikator und einen zweiten Benutzeridentifikator umfasst; und
wobei das Verfahren ferner umfasst: Suchen, durch das zweite Terminal, eines gespeicherten Datensatzes, welcher mit dem ersten Anwendungsidentifikator und dem ersten Benutzeridentifikator für den zweiten Wiederherstellungskandidaten übereinstimmt, der denselben Wiederherstellungsidentifikator aufweist wie der erste Wiederherstellungskandidat;
wobei, bevor die Verbindung unterbrochen wird, ein erster Benutzer einer ersten Anwendung, die auf dem ersten Terminal läuft, unter Verwendung der Verbindung, eine Datenübertragung mit einem zweiten Benutzer einer zweiten Anwendung, die auf dem zweiten Terminal läuft, vornimmt.
 
5. Verfahren nach Anspruch 1, wobei die Wiederherstellungskandidaten-Verhandlungsanforderung ein Typattribut und ein Identifikatorfeld umfasst, wobei das Typattribut verwendet wird, um anzuzeigen, dass die Wiederherstellungskandidaten-Verhandlungsanforderung zur Verbindungswiederherstellung verwendet wird, und das Identifikatorfeld verwendet wird, um den Wiederherstellungsidentifikator des ersten Wiederherstellungskandidaten zu tragen;
wobei die Wiederherstellungskandidaten-Verhandlungsanforderung eine "Offer"-Nachricht ist, und das Typattribut an erweitertes ICE-Optionen-Attribut ist.
 
6. Verfahren nach Anspruch 1, wobei das Verfahren ferner mindestens eine der folgenden Wiederherstellungskandidaten-Modifikationsweisen umfasst:

wenn das erste Terminal eine Übereinstimmungsfehlernachricht empfängt, die von dem zweiten Terminal zurückgeführt wird, Löschen, durch das erste Terminal, des ersten Wiederherstellungskandidaten;

Vornehmen, durch das erste Terminal und das zweite Terminal, eines Konnektivitätstests an einem Wiederherstellungskandidaten, bei dem eine Übereinstimmung erfolgreich ist, und Löschen eines Wiederherstellungskandidaten, dessen Konnektivitätstestergebnis ein Fehler ist;

wenn das erste Terminal oder das zweite Terminal einen ICE "Restart"-Prozess initiiert, um die Verbindungsinformationen zu modifizieren, Aktualisieren, durch das erste Terminal und das zweite Terminal, von Verbindungsinformationen, die in den jeweiligen gespeicherten Wiederherstellungskandidaten enthalten sind, auf modifizierte Verbindungsinformationen;

nachdem eine Sitzung zwischen dem ersten Terminal und dem zweiten Terminal beendet wird, Löschen, durch das erste Terminal und das zweite Terminal, eines Wiederherstellungskandidaten, der in einem Prozess dieser Sitzung gespeichert wird;

Einstellen einer Löschperiode und "KeepAlive"-Dauer, Vornehmen, durch das erste Terminal oder das zweite Terminal, eines periodischen Löschens an dem gespeicherten Wiederherstellungskandidaten, und Löschen, gemäß der Generierungszeit eines Wiederherstellungskandidaten, eines Wiederherstellungskandidaten mit einer Generierungsdauer, welche die "KeepAlive"-Dauer überschreitet; und

nach der Wiederherstellung der Verbindung unter Verwendung des ersten Wiederherstellungskandidaten, Aktualisieren, durch das erste Terminal, der Generierungszeit des ersten Wiederherstellungskandidaten.


 
7. Verfahren nach Anspruch 1, wobei das Verfahren ferner umfasst: wenn das erste Terminal den Wiederherstellungskandidaten, welcher der unterbrochenen Verbindung entspricht, nicht finden kann, Initiieren, durch das erste Terminal, eines interaktiven Verbindungswiederherstellungs-ICE-Prozesses, um erneut eine Verbindung zwischen dem ersten Terminal und dem zweiten Terminal herzustellen.
 
8. Verbindungswiederherstellungs-Terminal, umfassend:

eine Sucheinheit (701), die ausgelegt ist, um: nach einem Wiederherstellungskandidaten zu suchen, der einer unterbrochenen Verbindung zwischen dem Terminal und einem zweiten Terminal entspricht, wobei der Wiederherstellungskandidat Verbindungsinformationen und einen Wiederherstellungsidentifikator umfasst, der verwendet wird, um die Verbindungsinformationen zu identifizieren; und einen gefundenen Wiederherstellungskandidaten als ersten Wiederherstellungskandidaten zu verwenden, wobei der erste Wiederherstellungskandidat einen ersten Wiederherstellungsidentifikator und erste Verbindungsinformationen umfasst;

eine Wiederherstellungskandidaten-Verhandlungsanforderungs-Sendeeinheit (702), die ausgelegt ist, um eine Wiederherstellungskandidaten-Verhandlungsanforderung an das zweite Terminal zu senden, wobei die Wiederherstellungskandidaten-Verhandlungsanforderung den ersten Wiederherstellungsidentifikator des ausgewählten ersten Wiederherstellungskandidaten umfasst;

eine Übereinstimmungsnachricht-Empfangseinheit (703), die ausgelegt ist, um eine Übereinstimmungserfolgsnachricht, die von dem zweiten Terminal zurückgeführt wird, zu empfangen, wobei die Übereinstimmungserfolgsnachricht verwendet wird, um anzuzeigen, dass das zweite Terminal einen zweiten Wiederherstellungskandidaten findet, der denselben Wiederherstellungsidentifikator aufweist wie der erste Wiederherstellungskandidat; und

eine Datenübertragungseinheit (704), die ausgelegt ist, um Daten an das zweite Terminal gemäß den ersten Verbindungsinformationen zu übertragen.


 
9. Terminal nach Anspruch 8, wobei der Wiederherstellungskandidat ferner die Generierungszeit umfasst, und, wenn eine Menge von Wiederherstellungskandidaten, die der unterbrochenen Verbindung entsprechen und von der Sucheinheit gefunden werden, größer oder gleich zwei ist, die erste Sucheinheit spezifisch ausgelegt ist, um einen Wiederherstellungskandidaten mit der letzten Generierungszeit als ersten Wiederherstellungskandidaten zu verwenden.
 
10. Terminal nach Anspruch 8, wobei die Verbindungsinformationen eine "Local-End"-Adresse und einen Port und eine "Peer-End"-Adresse und einen Port umfassen, die für eine Datenübertragung erforderlich sind, und die Datenübertragungseinheit spezifisch ausgelegt ist, um eine "Local-End"-Adresse und einen Port und eine "Peer-End"-Adresse und einen Port aus den ersten Verbindungsinformationen zu extrahieren, und die Daten an das zweite Terminal zu übertragen.
 
11. Terminal nach Anspruch 8, ferner umfassend eine Verwaltungseinheit, die ausgelegt ist, um, auf mindestens eine der folgenden Weisen, einen Wiederherstellungskandidaten zu verwalten, der in einer Speichereinheit gespeichert ist:

wenn das erste Terminal eine Übereinstimmungsfehlernachricht empfängt, die von dem zweiten Terminal zurückgeführt wird, Löschen des ersten Wiederherstellungskandidaten;

Löschen eines Wiederherstellungskandidaten, dessen Konnektivitätstestergebnis ein Fehler ist;

wenn das erste Terminal oder das zweite Terminal einen ICE "Restart"-Prozess initiiert, um die Verbindungsinformationen zu modifizieren, Aktualisieren von Verbindungsinformationen, die in dem jeweiligen gespeicherten Wiederherstellungskandidaten enthalten sind, auf modifizierte Verbindungsinformationen;

nachdem eine Sitzung zwischen dem ersten Terminal und dem zweiten Terminal beendet wird, Löschen eines Wiederherstellungskandidaten, der in einem Prozess dieser Sitzung gespeichert wird;

Einstellen einer Löschperiode und "KeepAlive"-Dauer, Vornehmen eines periodischen Löschens an dem gespeicherten Wiederherstellungskandidaten, und Löschen, gemäß der Generierungszeit eines Wiederherstellungskandidaten, eines Wiederherstellungskandidaten mit einer Generierungsdauer, welche die "KeepAlive"-Dauer überschreitet; und

nach der Wiederherstellung der Verbindung unter Verwendung des ersten Wiederherstellungskandidaten, Aktualisieren der Generierungszeit des ersten Wiederherstellungskandidaten.


 
12. Verbindungswiederherstellungssystem, umfassend ein erstes Terminal (1001) und ein zweites Terminal (1002), wobei:

das erste Terminal (1001) ausgelegt ist, um: nach einem Wiederherstellungskandidaten zu suchen, der einer unterbrochenen Verbindung zwischen dem ersten Terminal und dem zweiten Terminal entspricht, wobei der Wiederherstellungskandidat Verbindungsinformationen und einen Wiederherstellungsidentifikator umfasst, der verwendet wird, um die Verbindungsinformationen zu identifizieren; einen gefundenen Wiederherstellungskandidaten als ersten Wiederherstellungskandidaten auszuwählen, wobei der erste Wiederherstellungskandidat einen ersten Wiederherstellungsidentifikator und erste Verbindungsinformationen umfasst; und

eine Wiederherstellungskandidaten-Verhandlungsanforderung an das zweite Terminal zu senden, wobei die Wiederherstellungskandidaten-Verhandlungsanforderung den ersten Wiederherstellungsidentifikator des ausgewählten ersten Wiederherstellungskandidaten umfasst;

das zweite Terminal (1002) ausgelegt ist, um nach einem zweiten Wiederherstellungskandidaten zu suchen, der denselben Wiederherstellungsidentifikator aufweist wie der erste Wiederherstellungskandidat, und eine Übereinstimmungserfolgsnachricht an das erste Terminal zurückzuführen; und

das erste Terminal (1001) und das zweite Terminal (1002) Daten aneinander jeweils gemäß den ersten Verbindungsinformationen und zweiten Verbindungsinformationen übertragen.


 
13. System nach Anspruch 12, wobei die Verbindungsinformationen eine "Local-End"-Adresse und einen Port und eine "Peer-End"-Adresse und einen Port umfassen, die für eine Datenübertragung erforderlich sind, und das erste Terminal ferner ausgelegt ist, um eine "Local-End"-Adresse und einen Port und eine "Peer-End"-Adresse und einen Port aus den ersten Verbindungsinformationen zu extrahieren, und die Daten an das zweite Terminal zu übertragen.
 
14. System nach Anspruch 12 oder 13, wobei der Wiederherstellungskandidat ferner einen Anwendungsidentifikator und einen Benutzeridentifikator umfasst, und dementsprechend die Wiederherstellungskandidaten-Verhandlungsanforderung ferner einen ersten Anwendungsidentifikator und einen ersten Benutzeridentifikator umfasst, die von dem ersten Wiederherstellungskandidaten sind, und der zweite Wiederherstellungskandidat ferner einen zweiten Anwendungsidentifikator und einen zweiten Benutzeridentifikator umfasst; und
das zweite Terminal ferner ausgelegt ist, um nach einem gespeicherten Datensatz zu suchen, welcher mit dem ersten Anwendungsidentifikator und dem ersten Benutzeridentifikator für den zweiten Wiederherstellungskandidaten übereinstimmt, der denselben Wiederherstellungsidentifikator aufweist wie der erste Wiederherstellungskandidat.
 
15. System nach einem der Ansprüche 12 bis 14, wobei das erste Terminal den ersten Wiederherstellungskandidaten speichert, welcher der Verbindung entspricht, und das zweite Terminal den zweiten Wiederherstellungskandidaten speichert, welcher der Verbindung entspricht.
 


Revendications

1. Procédé de récupération de connexion, consistant :

à chercher, au moyen d'un premier terminal, un candidat de récupération correspondant à une connexion interrompue entre le premier terminal et un second terminal,

dans lequel le candidat de récupération comporte des informations de connexion et un identifiant de récupération utilisé pour identifier les informations de connexion (étape 101) ;

à sélectionner, au moyen du premier terminal, un candidat de récupération trouvé en tant que premier candidat de récupération, dans lequel le premier candidat de récupération comprend un premier identifiant de récupération et des premières informations de connexion (étape 102) ;

à envoyer, au moyen du premier terminal, une demande de négociation de candidat de récupération au second terminal, dans lequel la demande de négociation de candidat de récupération comprend le premier identifiant de récupération du premier candidat de récupération sélectionné (étape 103) ;

à recevoir, au moyen du premier terminal, un message de réussite de mise en correspondance renvoyé par le second terminal, dans lequel le message de réussite de mise en correspondance est utilisé pour indiquer que le second terminal trouve un second candidat de récupération qui possède un même identifiant de récupération que le premier candidat de récupération (étape 104) ; et

après la réception du message de réussite de mise en correspondance, à transmettre, au moyen du premier terminal, des données au second terminal en fonction des premières informations de connexion (étape 105).


 
2. Procédé selon la revendication 1, dans lequel le candidat de récupération comprend en outre un moment de génération et, lorsqu'une quantité de candidats de récupération qui correspondent à la connexion interrompue et qui sont trouvés par le premier terminal, est supérieure ou égale à deux, le premier candidat de récupération est un candidat de récupération ayant le dernier moment de génération.
 
3. Procédé selon la revendication 1 ou 2, dans lequel les informations de connexion comportent une adresse et un port d'extrémité locale et une adresse et un port d'extrémité homologue qui sont nécessaires pour une transmission de données ;
dans lequel la transmission, par le premier terminal, de données au second terminal en fonction des premières informations de connexion consiste :
à extraire, au moyen du premier terminal, une adresse et un port d'extrémité locale et une adresse et un port d'extrémité homologue à partir des premières informations de connexion et à transmettre les données au second terminal.
 
4. Procédé selon l'une quelconque des revendications 1 à 3, dans lequel le candidat de récupération comprend en outre un identifiant d'application et un identifiant d'utilisateur et, de manière correspondante, la demande de négociation de candidat de récupération comprend en outre un premier identifiant d'application et un premier identifiant d'utilisateur qui proviennent du premier candidat de récupération, et le second candidat de récupération comprend en outre un second identifiant d'application et un second identifiant utilisateur ; et
le procédé consiste en outre : à chercher, au moyen du second terminal, un enregistrement stocké qui met en correspondance le premier identifiant d'application et le premier identifiant d'utilisateur du second candidat de récupération qui possède le même identifiant de récupération que le premier candidat de récupération ;
dans lequel, avant que la connexion ne soit interrompue, un premier utilisateur d'une première application s'exécutant sur le premier terminal effectue, en utilisant la connexion, une transmission de données avec un second utilisateur d'une seconde application s'exécutant sur le second terminal.
 
5. Procédé selon la revendication 1, dans lequel la demande de négociation de candidat de récupération comprend un attribut type et un champ d'identifiant, l'attribut type est utilisé pour indiquer que la demande de négociation de candidat de récupération est utilisée pour une récupération de connexion et le champ d'identifiant est utilisé pour comporter l'identifiant de récupération du premier candidat de récupération ;
dans lequel la demande de négociation de candidat de récupération est un message d'offre et l'attribut type est un attribut d'options étendues d'émulateur connecté.
 
6. Procédé selon la revendication 1, dans lequel le procédé comprend en outre au moins l'une des manières suivantes de modification de candidats de récupération consistant :

lorsque le premier terminal reçoit un message d'échec de mise en correspondance renvoyé par le second terminal, à supprimer, au moyen du premier terminal, le premier candidat de récupération ;

à effectuer, au moyen du premier terminal et du second terminal, un test de connectivité sur un candidat de récupération qui a réussi une mise en correspondance, et à supprimer un candidat de récupération dont un résultat de test de connectivité est un échec ;

lorsque le premier terminal ou le second terminal déclenche un processus de redémarrage ICE pour modifier les informations de connexion, à mettre à jour, au moyen du premier terminal et du second terminal, des informations de connexion incluses dans les candidats de récupération stockés respectifs pour obtenir des informations de connexion modifiées ;

après qu'une session entre le premier terminal et le second terminal est terminée, à effacer, au moyen du premier terminal et du second terminal, un candidat de récupération stocké dans un processus de cette session ;

à définir une période d'enlèvement et une durée de maintien, à effectuer, au moyen du premier terminal ou du second terminal, un enlèvement périodique concernant le candidat de récupération stocké et à effacer, en fonction d'un moment de génération d'un candidat de récupération, un candidat de récupération ayant une durée de génération qui dépasse la durée de maintien ; et

après la récupération de la connexion en utilisant le premier candidat de récupération, à mettre à jour, au moyen du premier terminal, un moment de génération du premier candidat de récupération.


 
7. Procédé selon la revendication 1, dans lequel le procédé consiste en outre : lorsque le premier terminal ne peut pas trouver le candidat de récupération correspondant à la connexion interrompue, à déclencher, au moyen du premier terminal, un processus ICE de récupération de connexion interactif pour rétablir une connexion entre le premier terminal et le second terminal.
 
8. Terminal de récupération de connexion comprenant :

une unité de recherche (701), configurée : pour chercher un candidat de récupération correspondant à une connexion interrompue entre ledit terminal et un second terminal, dans lequel le candidat de récupération comporte des informations de connexion et un identifiant de récupération utilisé pour identifier les informations de connexion ; et

pour utiliser un candidat de récupération trouvé comme premier candidat de récupération, dans lequel le premier candidat de récupération comprend un premier identifiant de récupération et des premières informations de connexion ;

une unité d'envoi de demande de négociation de candidat de récupération (702), configurée pour envoyer une demande de négociation de candidat de récupération au second terminal, dans lequel la demande de négociation de candidat de récupération comprend le premier identifiant de récupération du premier candidat de récupération sélectionné ;

une unité de réception de message de mise en correspondance (703), configurée pour recevoir un message de réussite de mise en correspondance renvoyé par le second terminal, dans lequel le message de réussite de mise en correspondance est utilisé pour indiquer que le second terminal trouve un second candidat de récupération qui possède un même identifiant de récupération que le premier candidat de récupération ; et une unité de transmission de données (704), configurée pour transmettre des données au second terminal en fonction des premières informations de connexion.


 
9. Terminal selon la revendication 8, dans lequel le candidat de récupération comprend en outre un moment de génération et, lorsqu'une quantité de candidats de récupération qui correspondent à la connexion interrompue et qui sont trouvés par l'unité de recherche, est supérieure ou égale à deux, l'unité de recherche est spécifiquement configurée pour utiliser un candidat de récupération ayant le dernier moment de génération comme premier candidat de récupération.
 
10. Terminal selon la revendication 8, dans lequel les informations de connexion comportent une adresse et un port d'extrémité locale et une adresse et un port d'extrémité homologue qui sont nécessaires pour une transmission de données, et l'unité de transmission est spécifiquement configurée pour extraire une adresse et un port d'extrémité locale et une adresse et un port d'extrémité homologue à partir des premières informations de connexion et pour transmettre les données au second terminal.
 
11. Terminal selon la revendication 8, comprenant en outre une unité de gestion, configurée pour gérer un candidat de récupération stocké dans une unité de stockage selon au moins l'une des manières suivantes consistant :

lorsque le premier terminal reçoit un message d'échec de mise en correspondance renvoyé par le second terminal, à supprimer le premier candidat de récupération ;

à supprimer un candidat de récupération dont un résultat de test de connectivité est un échec ;

lorsque le premier terminal ou le second terminal déclenche un processus de redémarrage ICE pour modifier les informations de connexion, à mettre à jour des informations de connexion incluses dans le candidat de récupération stocké pour obtenir des informations de connexion modifiées ;

après qu'une session entre le premier terminal et le second terminal est terminée, à effacer un candidat de récupération stocké dans un processus de cette session ;

à définir une période d'enlèvement et une durée de maintien, à effectuer un enlèvement périodique concernant le candidat de récupération stocké et à effacer, en fonction d'un moment de génération d'un candidat de récupération, un candidat de récupération ayant une durée de génération qui dépasse la durée de maintien ; et

après la récupération de la connexion en utilisant le premier candidat de récupération, à mettre à jour un moment de génération du premier candidat de récupération.


 
12. Système de récupération de connexion comprenant un premier terminal (1001) et un second terminal (1002), dans lequel :

le premier terminal (1001) est configuré : pour chercher un candidat de récupération correspondant à une connexion interrompue entre le premier terminal et le second terminal,

dans lequel le candidat de récupération comporte des informations de connexion et un identifiant de récupération utilisé pour identifier les informations de connexion ; pour sélectionner un candidat de récupération trouvé en tant que premier candidat de récupération, dans lequel le premier candidat de récupération comprend un premier identifiant de récupération et des premières informations de connexion ; et pour envoyer une demande de négociation de candidat de récupération au second terminal, dans lequel la demande de négociation de candidat de récupération comprend le premier identifiant de récupération du premier candidat de récupération sélectionné ;

le second terminal (1002) est configuré pour chercher un second candidat de récupération qui possède un même identifiant de récupération que le premier candidat de récupération et pour renvoyer un message de réussite de mise en correspondance au premier terminal ; et

le premier terminal (1001) et le second terminal (1002) transmettent des données l'un à l'autre en fonction des premières informations de connexion et des secondes informations de connexion respectivement.


 
13. Système selon la revendication 12, dans lequel les informations de connexion comportent une adresse et un port d'extrémité locale et une adresse et un port d'extrémité homologue qui sont nécessaires pour une transmission de données, et le premier terminal est en outre configuré pour extraire une adresse et un port d'extrémité locale et une adresse et un port d'extrémité homologue à partir des premières informations de connexion et pour transmettre les données au second terminal.
 
14. Système selon la revendication 12 ou 13, dans lequel le candidat de récupération comprend en outre un identifiant d'application et un identifiant d'utilisateur et, de manière correspondante, la demande de négociation de candidat de récupération comprend en outre un premier identifiant d'application et un premier identifiant d'utilisateur qui proviennent du premier candidat de récupération, et le second candidat de récupération comprend en outre un second identifiant d'application et un second identifiant utilisateur ; et
le second terminal est en outre configuré pour chercher un enregistrement stocké qui met en correspondance le premier identifiant d'application et le premier identifiant d'utilisateur du second candidat de récupération qui possède le même identifiant de récupération que le premier candidat de récupération.
 
15. Système selon l'une quelconque des revendications 12 à 14, dans lequel le premier terminal stocke le premier candidat de récupération correspondant à la connexion et le second terminal stocke le second candidat de récupération correspondant à la connexion.
 




Drawing






























REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description