CN-121985021-A - Communication link switching method, device, equipment and medium
Abstract
The embodiment of the invention provides a communication link switching method, a device, equipment and a medium, wherein the method comprises the steps of establishing a second communication link with terminal equipment based on a second communication protocol after establishing a first communication link with the terminal equipment based on a first communication protocol; the method comprises the steps of determining data characteristics of data communicated based on a first communication link, determining a migration strategy of the data according to the data characteristics of the data, executing data migration from the first communication link to a second communication link according to the migration strategy, and disconnecting the first communication link when the second communication link meets a link stability condition after the data migration is completed. The embodiment of the invention keeps the combined action of the double communication links when data migration is carried out, and establishes the migration strategy based on the data characteristics, thereby effectively avoiding service interruption in the network switching process, disconnecting the first link after ensuring the stability of the second communication link, ensuring the service continuity and the control reliability and improving the user experience.
Inventors
- CAI YU
- TANG JIE
- CHEN DAOYUAN
- LI YU
Assignees
- 珠海格力电器股份有限公司
- 珠海联云科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251209
Claims (13)
- 1. A method for switching a communication link, the method being applied to a home host, the method comprising: After establishing a first communication link with a terminal device based on a first communication protocol, establishing a second communication link with the terminal device based on a second communication protocol; determining data characteristics of data communicated based on the first communication link, and determining a migration policy of the data according to the data characteristics of the data; Performing data migration from the first communication link to the second communication link according to the migration policy; and after the data migration is completed, disconnecting the first communication link when the second communication link meets the link stability condition.
- 2. The method according to claim 1, wherein the data characteristics include at least one of a data amount and a criticality of data, and wherein the criticality of data is determined according to control instruction information of the terminal device.
- 3. The method of communication link switching according to claim 2, wherein the migration policy includes a first migration policy, and wherein the determining the migration policy of the data according to the data characteristics of the data includes: determining migration priority of the data according to the data quantity and the criticality of the data, wherein the migration priority of the data is inversely proportional to the data quantity of the data and directly proportional to the criticality of the data; And determining a first migration strategy, wherein the first migration strategy is to migrate according to the migration priorities of different data.
- 4. The method of communication link switching according to claim 2, wherein the migration policy includes a second migration policy, and wherein the determining the migration policy of the data according to the data characteristics of the data includes: Determining first data of which the data quantity is lower than a data quantity threshold value and second data of which the data quantity is greater than or equal to the data quantity threshold value in the data according to the data quantity of the data communicated with the terminal equipment through the first communication link; and determining a second migration strategy, wherein the second migration strategy is to migrate the second data after the first time period after the first data migration is completed.
- 5. The method of communication link switching according to claim 2, wherein the migration policy includes a third migration policy, and wherein the determining the migration policy of the data according to the data characteristics of the data includes: Determining third data with the critical degree lower than a critical degree threshold value and fourth data with the critical degree greater than or equal to the critical degree threshold value in the data to be migrated according to the critical degree of the data communicated with the terminal equipment through the first communication link; and determining a third migration policy, wherein the third migration policy is to migrate the fourth data after a second time period after the third data is migrated.
- 6. The communication link switching method according to claim 2, characterized in that the method further comprises: detecting the network transmission condition of the second communication link in the data migration process; when the network transmission of the second communication link is abnormal, determining key data which need to be transmitted through the communication link, wherein the key data is data with the key degree larger than a key degree threshold value; transmitting the critical data over the first communication link.
- 7. The method of communication link switching according to claim 1, wherein after said disconnecting said first communication link, said method further comprises: establishing standby communication links with the terminal equipment based on a plurality of standby communication protocols respectively; acquiring first network state information of the second communication link according to a preset period; determining a first quality score for the second communication link based on the first network state information; Acquiring second network state information corresponding to a plurality of standby communication links according to a preset period; Determining a second quality score of the corresponding third communication link according to the plurality of second network state information; determining a target communication link in each backup link when the second quality score continues to be higher than the first quality score for a preset time; and executing data migration from the second communication link to the target communication link according to the migration policy.
- 8. The method of claim 7, wherein the quality score is determined by network state information of the communication link and corresponding weights, the network state information including at least one of throughput, delay, and power consumption.
- 9. The communication link switching method according to claim 1, wherein the first communication link is established by a first communication protocol, the first communication protocol is a short-range wireless communication protocol, and the second communication protocol is a wireless local area network communication protocol.
- 10. The communication link switching method according to claim 1, wherein the link stability condition is that a time for continuous normal network transmission of data through the second communication link is greater than the time threshold.
- 11. A communication link switching apparatus for use with a home host, the apparatus comprising: A second communication link establishment module configured to establish a second communication link with a terminal device based on a second communication protocol after establishing the first communication link with the terminal device based on the first communication protocol; the migration policy determining module is used for determining data characteristics of data communicated based on the first communication link and determining migration policies of the data according to the data characteristics of the data; A first data migration module for performing data migration from the first communication link to the second communication link according to the migration policy; And the communication link disconnection module is used for disconnecting the first communication link when the second communication link meets the link stability condition after the data migration is completed.
- 12. An electronic device comprising a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program when executed by the processor implementing the steps of the communication link switching method according to any of claims 1-10.
- 13. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the communication link switching method according to any of claims 1-10.
Description
Communication link switching method, device, equipment and medium Technical Field The present invention relates to the field of communications link technologies, and in particular, to a communications link switching method and a communications link switching device. Background In the field of intelligent home network switching, the existing scheme generally realizes network switching by directly disconnecting the current communication connection and then establishing a new connection, and the equipment has perceivable service interruption during switching due to the lack of a guarantee mechanism for data continuity and state synchronization in the switching process. The rough switching mode is difficult to maintain service continuity, and cannot meet the high-reliability requirements for seamless and noninductive network migration in the smart home scene. Disclosure of Invention In view of the foregoing, embodiments of the present invention are presented to provide a method, apparatus, device, and medium for communication link switching that overcomes or at least partially solves the foregoing. According to a first aspect of an embodiment of the present invention, there is provided a communication link switching method, applied to a home host, the method including: After establishing a first communication link with a terminal device based on a first communication protocol, establishing a second communication link with the terminal device based on a second communication protocol; determining data characteristics of data communicated based on the first communication link, and determining a migration policy of the data according to the data characteristics of the data; Performing data migration from the first communication link to the second communication link according to the migration policy; and after the data migration is completed, disconnecting the first communication link when the second communication link meets the link stability condition. Optionally, the data characteristic includes at least one of data quantity and key degree of the data, and the key degree of the data is determined according to the control instruction information of the terminal device. Optionally, the migration policy includes a first migration policy, and the determining the migration policy of the data according to the data characteristics of the data includes: determining migration priority of the data according to the data quantity and the criticality of the data, wherein the migration priority of the data is inversely proportional to the data quantity of the data and directly proportional to the criticality of the data; And determining a first migration strategy, wherein the first migration strategy is to migrate according to the migration priorities of different data. Optionally, the migration policy includes a second migration policy, and the determining the migration policy of the data according to the data feature of the data includes: Determining first data of which the data quantity is lower than a data quantity threshold value and second data of which the data quantity is greater than or equal to the data quantity threshold value in the data according to the data quantity of the data communicated with the terminal equipment through the first communication link; and determining a second migration strategy, wherein the second migration strategy is to migrate the second data after the first time period after the first data migration is completed. Optionally, the migration policy includes a third migration policy, and the determining the migration policy of the data according to the data feature of the data includes: Determining third data with the critical degree lower than a critical degree threshold value and fourth data with the critical degree greater than or equal to the critical degree threshold value in the data to be migrated according to the critical degree of the data communicated with the terminal equipment through the first communication link; and determining a third migration policy, wherein the third migration policy is to migrate the fourth data after a second time period after the third data is migrated. Optionally, the method further comprises: detecting the network transmission condition of the second communication link in the data migration process; when the network transmission of the second communication link is abnormal, determining key data which need to be transmitted through the communication link, wherein the key data is data with the key degree larger than a key degree threshold value; transmitting the critical data over the first communication link. Optionally, after the disconnecting the first communication link, the method further includes: establishing standby communication links with the terminal equipment based on a plurality of standby communication protocols respectively; acquiring first network state information of the second communication link according to a preset period; determining