Data migration method

By testing the file transfer security and corruption degree of alternative transmission channels and selecting the target channel for data migration, the problem of low data transmission efficiency is solved and the efficiency and reliability of data transmission is improved.

CN119172285AActive Publication Date: 2024-12-20CHINA MOBILE INTERNET CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411099607.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-20
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The prior art has the problem of low data transmission efficiency during data migration, which is mainly due to the failure to screen the transmission channel, resulting in data corruption or loss, which in turn leads to data retransmission.

Method used

By determining M alternative transmission channels, testing is performed based on file transfer security dimensions and file transfer corruption dimensions, and selecting the target transmission channel for data migration, reducing the chance of data retransmission.

Benefits of technology

It improves the efficiency of data transmission, reduces the risk of data corruption or loss, and solves the problem of low data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172285A_ABST
    Figure CN119172285A_ABST
Patent Text Reader

Abstract

The invention discloses a data migration method, and particularly relates to the field of Internet, and the method comprises the steps: determining M alternative transmission channels for data migration under the condition of meeting the condition of data migration between first equipment and second equipment; m is an integer greater than 1; based on a test file, carrying out transmission test on the M alternative transmission channels according to a target dimension to obtain a test result; the target dimension comprises at least one of a file transmission security dimension and a file transmission damage dimension; determining a target transmission channel from the M alternative transmission channels according to a test result; and carrying out data migration between the first equipment and the second equipment based on the target transmission channel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet, and specifically relates to a data migration method. Background Art

[0002] Usually, a user can use an account to log in to a terminal device, such as a mobile phone, computer, etc., and store the user's photos, videos, and other data on the logged-in device. After using a terminal device for a period of time, the user will often log in to another new device that has not been used through the account. Since the new device is used for the first time, at this time, it is often necessary to migrate the data on the old device that the user has logged in to the new device.

[0003] When performing data migration between a user's old device and a new device, the related technology has a problem of low data transmission efficiency during the data migration process due to the influence of various external factors. Summary of the invention

[0004] The present application provides a data migration method disclosed in the present application, which can solve the problem of low data transmission efficiency in the process of data migration in the related technology.

[0005] In a first aspect, an embodiment of the present application provides a data migration method, the method comprising:

[0006] When a condition for performing data migration between the first device and the second device is met, determining M candidate transmission channels for performing data migration; M is an integer greater than 1;

[0007] Based on the test file, performing a transmission test on the M candidate transmission channels according to a target dimension to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension;

[0008] According to the test result, determining a target transmission channel from the M candidate transmission channels;

[0009] Based on the target transmission channel, data migration is performed between the first device and the second device.

[0010] In a second aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0011] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.

[0012] In a fourth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0013] At least one of the above technical solutions provided in the embodiments of the present application can achieve the following technical effects:

[0014] In an embodiment of the present application, when conditions for performing data migration between a first device and a second device are met, M alternative transmission channels for performing data migration are determined; M is an integer greater than 1; based on a test file, a transmission test is performed on the M alternative transmission channels according to a target dimension to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension; based on the test result, a target transmission channel is determined from the M alternative transmission channels; based on the target transmission channel, data migration is performed between the first device and the second device. In this way, since the target transmission channel is determined from M alternative transmission channels according to the test results, and the test results are obtained by performing transmission tests on the M alternative transmission channels according to the target dimension, the determined target transmission channel is a transmission channel that has been screened on the target dimension (at least one of the file transmission security dimension and the file damage dimension). Compared with the related art that does not screen the transmission channel, data damage or loss may occur during the data transmission process, thereby causing data retransmission and resulting in low data transmission efficiency. The embodiment of the present application further determines the target transmission channel from the alternative transmission channels according to the target dimension, and uses the determined target transmission channel for data migration, which can reduce the probability of data retransmission to a certain extent, thereby improving the efficiency of data transmission and solving the problem of low data transmission efficiency in the process of data migration in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a flow chart of a data migration method provided in an embodiment of the present application.

[0016] Figure 2 It is a flowchart of a transmission test process for M candidate transmission channels according to the file transmission security dimension provided by an embodiment of the present application.

[0017] Figure 3 It is a flowchart of a transmission test process for M candidate transmission channels according to a transmission damage dimension provided by an embodiment of the present application.

[0018] Figure 4 It is a flowchart of a process of determining M candidate transmission channels for data migration provided by an embodiment of the present application.

[0019] Figure 5 It is a flowchart of a process of performing data migration between a first device and a second device based on a target transmission channel provided by an embodiment of the present application.

[0020] Figure 6 It is a flow chart of a data migration method provided in an embodiment of the present application.

[0021] Figure 7 It is a flowchart of a transmission test process for M candidate transmission channels according to the file transmission security dimension provided by an embodiment of the present application.

[0022] Figure 8 It is a structural diagram of a data migration device provided in an embodiment of the present application.

[0023] Fig. 9 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0026] As discussed in the background technology section, after registering an account, a user can use the account to log in to a terminal device, so as to store files belonging to the user account on the terminal device where the user account has been logged in. When a user needs to switch terminal devices to log in to a user account, if the user switches to a new device that the user account has never logged in to, the new device does not store files belonging to the user account. At this time, the data on the historical device that the user has logged in to will be migrated to the new device. However, when the related technology migrates data between the user's historical device and the new device, due to the influence of various external factors, there is a problem of low data transmission efficiency during the data migration process.

[0027] In a data migration method provided in an embodiment of the present application, when a condition for performing data migration between a first device and a second device is met, M alternative transmission channels for performing data migration are determined; M is an integer greater than 1; based on a test file, a transmission test is performed on the M alternative transmission channels according to a target dimension to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension; based on the test result, a target transmission channel is determined from the M alternative transmission channels; based on the target transmission channel, data migration is performed between the first device and the second device. In this way, since the target transmission channel is determined from M alternative transmission channels according to the test results, and the test results are obtained by performing transmission tests on the M alternative transmission channels according to the target dimension, the determined target transmission channel is a transmission channel that has been screened on the target dimension (at least one of the file transmission security dimension and the file damage dimension). Compared with the related art that does not screen the transmission channel, data damage or loss may occur during the data transmission process, thereby causing data retransmission and resulting in low data transmission efficiency. The embodiment of the present application further determines the target transmission channel from the alternative transmission channels according to the target dimension, and uses the determined target transmission channel for data migration, which can reduce the probability of data retransmission to a certain extent, thereby improving the efficiency of data transmission and solving the problem of low data transmission efficiency in the process of data migration in the related art.

[0028] Furthermore, in the case where a user has stored multiple duplicate files with the same content on a terminal device that has logged into the user account, when the user uses the user account to re-login to a new device that the user has never logged into, and needs to migrate the data on the historical device that has been logged into to the new device, migrating a large number of duplicate files will cause the migration process rate to be extremely low. In a data migration method provided in the present application, when data migration is performed between a first device and a second device based on a target transmission channel, the content to be migrated on the first device can be obtained; the content to be migrated can be deduplicated to obtain target migration content; and the target migration content can be migrated from the first device to the second device through the target transmission channel, and the second device is a device different from the first device. When data migration is performed between the first device and the second device based on the target transmission channel, the content to be migrated on the first device is deduplicated to obtain the target migration content, so that only the target migration content obtained after the deduplication process is migrated during the migration process, thereby reducing the amount of migrated data and improving the migration rate.

[0029] It should be understood that all data migration methods provided in the embodiments of the present application can be performed by an electronic device. The electronic device may include a server. The server may be a single server or a server cluster. In the case where the server is a server cluster, in the data migration method provided by the present application, determining M alternative transmission channels for data migration, performing transmission tests on the M alternative transmission channels, determining the target transmission channel from the M alternative transmission channels, and performing data migration between the first device and the second device may be performed by the same server or by different servers. The electronic device may also include a terminal device, which may be the first device or the second device mentioned below, such as a mobile phone, a tablet, a computer, or other terminal devices. The embodiments of the present application do not limit the specific hardware deployment environment.

[0030] In the following, in conjunction with the accompanying drawings, all data migration methods provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0031] See also Figure 1 , Figure 1 A flowchart of a data migration method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method comprises the following steps:

[0032] Step 110: When a condition for performing data migration between the first device and the second device is met, determine M candidate transmission channels for performing data migration; M is an integer greater than 1.

[0033] In an embodiment of the present application, the condition for data migration between the first device and the second device may be any custom condition, such as obtaining a request for data migration between the first device and the second device sent by the target user or receiving a specified operation of the target user, and the target user may be a user using the first device or the second device. The condition for data migration between the first device and the second device may also be a request to migrate the data located on the first device to the second device when a user who is not registering for the first time logs into the second device (including logging into the second device itself and logging into the client software on the second device), wherein the second device may be a device logged into for the first time by a user who is not registering for the first time, and the first device may be a device logged into by a user who is not registering for the first time.

[0034] In an embodiment of the present application, before determining M alternative transmission channels for data migration, target user information input by the target user on the target device can be obtained; wherein, the target user information is used to log in to the terminal device (including logging in to the terminal device itself, and logging in to the client software on the terminal device); based on the target user information, the identity of the target user is determined; the identity includes non-first-time registered users and first-time registered users; in the case where the target user is the non-first-time registered user, the device information of the terminal device that the target user logs in to using the user account is obtained; based on the device information, it is determined whether the terminal device is a device logged in for the first time by the non-first-time registered user or a device logged in historically by the non-first-time registered user.

[0035] In the process of determining the M candidate transmission channels for data migration, the number of files and the file size of the content to be migrated may be obtained first, and then based on the number of files and the file size of the content to be migrated, the M candidate transmission channels for data migration may be determined; wherein the content to be migrated may be files stored on the first device, such as files stored on the first device when the user logs in to the first device. Specifically, after obtaining the number of files and the file size of the content to be migrated, based on the number of files and the file size of the content to be migrated, M candidate transmission channels whose transmission rates match the number of files and the file size of the content to be migrated may be determined.

[0036] In an embodiment of the present application, in the process of determining M alternative transmission channels for data migration, after obtaining the number of files and the file size of the content to be migrated, a third weight coefficient for the number of files of the content to be migrated and a fourth weight coefficient for the file size of the content to be migrated can also be obtained, and then based on the number of files of the content to be migrated, the third weight coefficient, the file size of the content to be migrated and the fourth weight coefficient, an evaluation value of the content to be migrated is determined, and then based on the evaluation value of the content to be migrated, M alternative transmission channels for data migration are determined from K established transmission channels, where K is an integer greater than M. Specifically, in the process of determining the evaluation value of the content to be migrated based on the number of files of the content to be migrated, the third weight coefficient, the file size of the content to be migrated and the fourth weight coefficient, the evaluation value of the content to be migrated can be calculated by the formula E=F*a3+G*a4; wherein E is the evaluation value of the content to be migrated, F is the number of files of the content to be migrated, a3 is the third weight coefficient, G is the file size of the content to be migrated, and a4 is the fourth weight coefficient, and then based on the evaluation value of the content to be migrated, M alternative transmission channels for data migration are determined.

[0037] Step 120: Based on the test file, perform transmission tests on the M candidate transmission channels according to the target dimension to obtain test results.

[0038] In an embodiment of the present application, the target dimension may include at least one of a file transfer security dimension and a file transfer damage dimension. Specifically, a transmission test may be performed on M alternative transmission channels according to the file transfer security dimension based on a test file, or a transmission test may be performed on M alternative transmission channels according to the file transfer damage dimension based on the test file, or a transmission test may be performed on M alternative transmission channels according to both the file transfer security dimension and the file transfer damage dimension based on the test file.

[0039] In an embodiment of the present application, in the process of performing a transmission test on M candidate transmission channels according to the file transmission security dimension, the following process can be performed for any one of the M candidate transmission channels: obtaining the transmission duration of the test file transmitted via the transmission channel, and if the transmission duration is not within the first standard transmission duration interval, determining that a transmission abnormality occurs in the transmission channel; if the transmission duration is within the first standard transmission duration interval, determining that the transmission channel is secure; wherein, any one of the M candidate transmission channels can be any one of the M candidate transmission channels, or can be each of all the transmission channels in the M candidate transmission channels. After performing the above process for any one of the M candidate transmission channels, the number of transmission channels in which transmission abnormalities occur in the M candidate transmission channels can be used as the test result of the transmission test on the M candidate transmission channels according to the file transmission security dimension.

[0040] In the embodiment of the present application, in the process of performing transmission tests on M candidate transmission channels according to the target dimension based on the test file, the test file may include N groups. The transmission tests on the M candidate transmission channels according to the target dimension based on the test file may be at least one of the two processes of performing transmission tests on the M candidate transmission channels according to the file transmission security dimension based on the N groups of test files and performing transmission tests on the M candidate transmission channels according to the file transmission damage dimension based on the N groups of test files. In the process of performing transmission tests on M alternative transmission channels according to the file transmission security dimension based on N groups of test files, the following process can be performed for any one of the M alternative transmission channels: obtaining the transmission duration of the i-th group of test files among the N groups of test files transmitted via any one of the M alternative transmission channels; if the transmission duration of the i-th group of test files is not within the second standard transmission duration interval, determining that transmission abnormalities occur in transmitting the i-th group of test files via the transmission channel; if the transmission duration of the i-th group of test files is within the second standard transmission duration interval, determining that transmission of the i-th group of test files via the transmission channel is safe; obtaining the number of transmission abnormality groups in which transmission abnormalities occur in the process of transmitting N groups of test files via the transmission channel; and obtaining the test result of the transmission channel based on the number of transmission abnormality groups; wherein, 1≤i≤N. In the process of performing transmission testing on alternative transmission channels according to the file transmission damage dimension based on N groups of test files, the following process can be performed for any one of the M alternative transmission channels: obtaining the number of file losses and the number of file damages when transmitting the N groups of test files via the alternative transmission channel, and obtaining the test result of the alternative transmission channel based on the number of file losses and the number of file damages, wherein the number of file losses is the number of test files that have not been received from the start to the end of transmission, and the number of file damages is the number of damaged test files among the received test files.

[0041] In an embodiment of the present application, when a transmission test is performed on M candidate transmission channels according to a target dimension based on a test file, if the test file includes N groups, in the process of performing a transmission test on M candidate transmission channels according to a file transmission security dimension based on N groups of test files, after obtaining the number of test file groups that have transmission anomalies in the process of transmitting N groups of test files via the transmission channel, the test result of the transmission channel can be obtained based on the number of transmission anomaly groups in which the test files have transmission anomalies. Specifically, the file transmission security rate of the transmission channel can be determined based on the number of test file groups and the number of transmission anomaly groups, and the file transmission security rate of the transmission channel can be used as the test result of the transmission channel. The calculation formula for the file transmission security rate of the transmission channel can be S = (N-A) / N; wherein S is the file transmission security rate, N is the number of test file groups, and A is the number of transmission anomaly groups.

[0042] In an embodiment of the present application, when performing a transmission test on M alternative transmission channels according to a target dimension based on a test file, if the test file includes N groups, in the process of performing a transmission test on the alternative transmission channel according to a file transmission damage dimension based on N groups of test files, after obtaining the number of file losses and the number of file damages of N groups of test files transmitted via the alternative transmission channel, the file transmission damage rate of the transmission channel can be determined based on the number of file losses and the number of file damages; and the file transmission damage rate of the transmission channel is used as the test result of the transmission channel. The calculation formula of the file transmission damage rate of the transmission channel can be: Among them, CS is the transmission damage rate of the transmission channel, SD i is the number of file losses in the i-th test file among N test files, SS i is the number of damaged files in the i-th test file among the N test files, a 1 is the first weight coefficient, a 2 is the second weight coefficient, and N is the number of test file groups.

[0043] Step 130: According to the test result, determine the target transmission channel from the M candidate transmission channels.

[0044] In the embodiment of the present application, since in the process of performing transmission tests on M candidate transmission channels according to the target dimension, the target dimension may include at least one of the file transmission security dimension and the file transmission damage dimension, the process of determining the target transmission channel from the M candidate transmission channels according to the test results may include determining the target transmission channel from the M candidate transmission channels according to at least one of the test results of the file transmission security dimension test and the test results of the file transmission damage dimension test. Specifically, the target transmission channel may be determined from the M candidate transmission channels according to the test results of the file transmission security dimension test, the target transmission channel may be determined from the M candidate transmission channels according to the test results of the file transmission damage dimension test, and the target transmission channel may be determined from the M candidate transmission channels according to the test results of the file transmission security dimension test and the test results of the file transmission damage dimension test.

[0045] In an embodiment of the present application, the test result of the file transfer security dimension test may include a file transfer security rate; the test result of the file transfer damage dimension test may include a file transfer damage rate.

[0046] Step 140: Migrate data between the first device and the second device based on the target transmission channel.

[0047] In an embodiment of the present application, the data migration between the first device and the second device can be performed directly between the first device and the second device without the aid of a third party. At this time, the M alternative transmission channels can be the transmission channels between the first device and the second device. Of course, the data migration between the first device and the second device can also be completed with the aid of a third party, and the third party can be a server, such as a cloud disk server, which can transfer the content to be migrated on the first device to the server, and then migrate it to the second device via the server. At this time, the M alternative transmission channels may include the transmission channel between the first device and the server, and may also include the transmission channel between the server and the second device. Of course, the M alternative transmission channels may also be the transmission channel between the first device and the second device (that is, including the transmission channel between the first device and the server and the transmission channel between the server and the second device).

[0048] In an embodiment of the present application, in the process of performing data migration between a first device and a second device based on a target transmission channel, the content to be migrated on the first device can be first obtained, and the content to be migrated can be deduplicated to obtain the target migration content, and then the target migration content can be migrated from the first device to the second device through the target transmission channel, wherein the second device is a device different from the first device.

[0049] In the embodiment of the present application, the content to be migrated obtained from the first device may be at least one of files such as pictures, videos, audios, and documents. For example, in the process of performing data migration between the first device and the second device based on the target transmission channel, after obtaining the content to be migrated (i.e., the picture to be migrated) on the first device, multiple target pictures with the same name or format are obtained from the content to be migrated, and the multiple target pictures are deduplicated to obtain target pictures with no duplicate content, and the target pictures with no duplicate content are determined as target migration content, and then the target migration content is migrated from the first device to the second device through the target transmission channel.

[0050] In an embodiment of the present application, when conditions for performing data migration between a first device and a second device are met, M alternative transmission channels for performing data migration are determined; M is an integer greater than 1; based on a test file, a transmission test is performed on the M alternative transmission channels according to a target dimension to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension; based on the test result, a target transmission channel is determined from the M alternative transmission channels; based on the target transmission channel, data migration is performed between the first device and the second device. In this way, since the target transmission channel is determined from M alternative transmission channels according to the test results, and the test results are obtained by performing transmission tests on the M alternative transmission channels according to the target dimension, the determined target transmission channel is a transmission channel that has been screened on the target dimension (at least one of the file transmission security dimension and the file damage dimension). Compared with the related art that does not screen the transmission channel, data damage or loss may occur during the data transmission process, thereby causing data retransmission and resulting in low data transmission efficiency. The embodiment of the present application further determines the target transmission channel from the alternative transmission channels according to the target dimension, and uses the determined target transmission channel for data migration, which can reduce the probability of data retransmission to a certain extent, thereby improving the efficiency of data transmission and solving the problem of low data transmission efficiency in the process of data migration in the related art.

[0051] See also Figure 2 , Figure 2 A flowchart of a transmission test process for M candidate transmission channels according to the file transmission security dimension is provided in an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0052] Step 210: For any one of the M candidate transmission channels, obtain the transmission duration of the i-th group of test files among the N groups of test files transmitted via the transmission channel, 1≤i≤N.

[0053] In the process of obtaining the transmission duration of the i-th group of test files in N test files through the transmission channel for any one of the M candidate transmission channels, a transmission channel can be arbitrarily selected from the M candidate transmission channels to obtain the transmission start time and the transmission end time of the transmission test of the i-th group of test files in the N test files through the transmission channel, and the transmission duration of the transmission test of the i-th group of test files in the N test files through the transmission channel is obtained based on the transmission start time and the transmission end time. It should be understood that the transmission duration of the i-th group of test files in the N test files through the transmission channel can be obtained for each of the M candidate transmission channels.

[0054] Step 220: If the transmission duration of the i-th group of test files is not within the second standard transmission duration interval, it is determined that a transmission abnormality occurs in the transmission of the i-th group of test files via the transmission channel.

[0055] In an embodiment of the present application, a second standard transmission time interval can be pre-set to determine whether a transmission abnormality occurs when transmitting the i-th group of test files via the transmission channel. The second standard transmission time interval may be different from the first standard transmission time interval, for example, the second standard transmission time interval is within the first standard transmission time interval mentioned above.

[0056] Step 230: If the transmission time of the i-th group of test files is within the second standard transmission time interval, it is determined that it is safe to transmit the i-th group of test files via the transmission channel;

[0057] Step 240: obtaining the number of transmission abnormality groups of test files in which transmission abnormality occurs during the process of transmitting N groups of test files via the transmission channel;

[0058] Step 250: Based on the number of transmission abnormality groups, obtain the test result of the transmission channel.

[0059] In an embodiment of the present application, in the process of obtaining the test result of the transmission channel based on the number of transmission anomaly groups with transmission anomalies in the test file, the file transmission safety rate of the transmission channel can be determined based on the number of test file groups and the number of transmission anomaly groups; and the file transmission safety rate of the transmission channel is used as the test result of the transmission channel. The calculation formula of the file transmission safety rate of the transmission channel can be S = (N-A) / N; wherein S is the file transmission safety rate, N is the number of test file groups, and A is the number of transmission anomaly groups, and the file transmission safety rate of the transmission channel is used as the test result of the transmission channel.

[0060] In the embodiment of the present application, for each transmission channel in the M candidate transmission channels, the transmission time of the i-th test file in the N test files transmitted via each transmission channel can be obtained, and the number of transmission abnormality groups in which the test files have transmission abnormalities during the transmission of the N test files via each transmission channel can be obtained, and then the test result of each transmission channel can be obtained based on the number of transmission abnormality groups. Specifically, after obtaining the test result of the j-th transmission channel in the M candidate transmission channels based on the number of transmission abnormality groups (i.e., the number of file groups with transmission abnormalities in the N test files), the j+1-th transmission channel can be selected from the M candidate transmission channels to repeat steps 210 to 250 until the test result of each transmission channel in the M candidate transmission channels is obtained.

[0061] In an embodiment of the present application, a file transmission security dimension test is performed on M alternative transmission channels, so that the transmission security rates of the M alternative transmission channels can be calculated, so that a target transmission channel can be selected from the M alternative transmission channels for data migration based on the transmission security rate. This can not only effectively avoid damage and loss of the target migration content during the transmission process, but also increase the transmission efficiency of the target migration content.

[0062] See also Figure 3 , Figure 3 A flowchart of a transmission test process for M candidate transmission channels according to the file transmission damage dimension is provided in an embodiment of the present application, such as Figure 3 As shown, the process includes the following steps:

[0063] Step 310: For any one of the M candidate transmission channels, obtain the number of lost files and the number of damaged files transmitted through the transmission channel for N groups of test files.

[0064] In the embodiment of the present application, the number of lost files may be the number of test files that are not received from the start of transmission to the end of transmission; the number of damaged files may be the number of damaged test files (e.g., test files that are garbled or cannot be opened normally) among the received test files. The total number of files in the i-th test file among the N test files may be obtained, and after the i-th test file among the N test files is transmitted, the number of unreceived test files and the number of damaged test files among the i-th test files among the N test files transmitted via the alternative transmission channel may be obtained, where 1≤i≤N.

[0065] Step 320: Based on the number of lost files and the number of damaged files, a test result of the transmission channel is obtained.

[0066] In the embodiment of the present application, the file transmission damage rate of the transmission channel can be determined based on the number of file losses and the number of file damages; and the file transmission damage rate of the transmission channel is used as the test result of the transmission channel. The calculation formula of the file transmission damage rate of the transmission channel can be: Among them, CS is the transmission damage rate of the transmission channel, SD i is the number of file losses in the i-th test file among N test files, SS i is the number of damaged files in the i-th test file among the N test files, a 1 is the first weight coefficient, a 2 is the second weight coefficient, the file transmission damage rate of the transmission channel is taken as the test result of the transmission channel, and N is the number of test file groups.

[0067] In an embodiment of the present application, a file transfer damage dimension test is performed on M alternative transmission channels, so that the file transfer damage rate of the M alternative transmission channels can be calculated, so that a target transmission channel can be selected from the M alternative transmission channels for data migration based on the file transfer damage rate. This can not only effectively avoid damage and loss of the target migration content during the transmission process, but also increase the transmission efficiency of the target migration content.

[0068] See also Figure 4 , Figure 4 A flowchart of a process of determining M candidate transmission channels for data migration provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the process includes the following steps:

[0069] Step 410: Obtain the number and size of files of the content to be migrated.

[0070] In an embodiment of the present application, the content to be migrated may be stored on a user's historical login device, such as the first device mentioned above. The content to be migrated may be content indicated by target file information obtained by the first device, and the target file information may be input into the first device by the user, and the target file information may include file name, file creation time, file type, etc.

[0071] In the embodiment of the present application, the number of files of the content to be migrated may be the number of files in the content to be migrated, and the file size of the migrated content may be the actual size of the file or the number of bytes of the hard disk space occupied by the file.

[0072] Step 420: Obtain a third weight coefficient for the number of files of the content to be migrated and a fourth weight coefficient for the file size of the content to be migrated.

[0073] In an embodiment of the present application, weight coefficients may be pre-set for the number of files to be migrated and the size of the files, for example, a third weight coefficient is set for the number of files to be migrated, and a fourth weight coefficient is set for the file size of the content to be migrated.

[0074] Step 430: Determine the evaluation value of the content to be migrated based on the number of files of the content to be migrated, the third weight coefficient, the file size of the content to be migrated, and the fourth weight coefficient.

[0075] In the embodiment of the present application, the evaluation value of the content to be migrated can be calculated by the formula E=F*a3+G*a4, wherein E is the evaluation value of the content to be migrated, F is the number of files of the content to be migrated, a3 is the first weight coefficient, G is the file size of the content to be migrated, and a4 is the fourth weight coefficient.

[0076] Step 440: Based on the evaluation value of the content to be migrated, determine M candidate transmission channels for data migration from K established transmission channels, where K is an integer greater than M.

[0077] In the embodiment of the present application, K transmission channels may be established in advance between the first device and the second device. After determining the evaluation value of the content to be migrated, M candidate transmission channels for data migration may be determined from the K established transmission channels based on the evaluation value of the content to be migrated. Specifically, based on the evaluation value of the content to be migrated, M candidate transmission channels that are consistent with the evaluation value may be determined from the K transmission channels.

[0078] In the embodiment of the present application, M candidate transmission channels are selected according to the file size and number of the content to be migrated, which can not only effectively avoid damage and loss of the target migration content during the transmission process, but also increase the transmission efficiency of the target migration content.

[0079] See also Figure 5 , Figure 5 A flowchart of a process of performing data migration between a first device and a second device based on a target transmission channel is provided in an embodiment of the present application, such as Figure 5 As shown, the process includes the following steps:

[0080] Step 510: Acquire the content to be migrated on the first device.

[0081] In the embodiment of the present application, the content to be migrated may include at least one of files such as pictures, videos, audios, and documents.

[0082] Step 520: Acquire multiple target images with the same name or format from the content to be migrated.

[0083] In the embodiment of the present application, when the content to be migrated includes pictures, a plurality of target pictures with the same name or the same format are obtained from the content to be migrated.

[0084] Step 530: performing deduplication processing on the multiple target images to obtain target images with non-duplicate contents, and determining the target images with non-duplicate contents as target migration contents.

[0085] In an embodiment of the present application, in the process of deduplicating multiple target images, only one target image with the same name or format may be retained to obtain a target image with no duplication of content.

[0086] In an embodiment of the present application, in the process of deduplicating multiple target images, the multiple target images can be virtually divided into picture grids, and the number of pixels of different colors in the picture grids of the multiple target images can be compared. Based on the comparison results, it is determined whether the multiple target images are target images with repeated content, and the target images with non-duplicate content are retained, and the target images with repeated content are deduplicated.

[0087] Step 540: Migrate the target migration content from the first device to a second device through the target transmission channel, where the second device is a device different from the first device.

[0088] In an embodiment of the present application, in the process of migrating the target migration content from the first device to the second device through the target transmission channel, the target migration content can be migrated from the first device to the second device, or the target migration content can be migrated from the first device to a third device, and the target migration content can be migrated from the third device to the second device, wherein the third device can be a server.

[0089] After the target migration content is migrated from the first device to the second device through the target transmission channel, the storage location and storage device of the migrated target migration content are detected. If the storage location or storage device changes, the migration of the target migration content is successful.

[0090] In the embodiment of the present application, when the content to be migrated also includes files such as video and audio, multiple target videos and target audios with the same name or format are obtained from the content to be migrated, and the multiple target videos and target audios are deduplicated, for example, the pictures of the multiple target videos are analyzed frame by frame, and the frequency, signal and other information of the multiple target audios are analyzed frame by frame to obtain target videos and target audios with no duplicate content. When the content to be migrated also includes documents, target documents with the same name or format can be obtained from the content to be migrated, and multiple target documents are deduplicated, for example, text recognition is performed on the multiple target documents to obtain target documents with no duplicate content.

[0091] In an embodiment of the present application, during the process of performing data migration between the first device and the second device based on the target transmission channel, the content to be migrated can also be repeatedly analyzed and deduplicated to obtain the target migration content, thereby greatly reducing the transmission of repeated content to be migrated, while reducing storage pressure and increasing the transmission efficiency of the target migration content.

[0092] See also Figure 6 , Figure 6 A flowchart of a data migration method provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the method comprises the following steps:

[0093] Step 610: Obtain the number and size of files of the content to be migrated.

[0094] In an embodiment of the present application, the content to be migrated may be stored on a user's historical login device, such as the second device mentioned above. The content to be migrated may be content indicated by target file information obtained by the second device, and the target file information may be input into the second device by the user, and the target file information may include file name, file creation time, file type, etc.

[0095] In the embodiment of the present application, the number of files of the content to be migrated may be the number of files in the content to be migrated, and the file size of the migrated content may be the actual size of the file or the number of bytes of the hard disk space occupied by the file.

[0096] Step 613: Obtain a third weight coefficient for the number of files of the to-be-migrated content and a fourth weight coefficient for the file size of the to-be-migrated content.

[0097] In an embodiment of the present application, weight coefficients may be pre-set for the number of files to be migrated and the size of the files, for example, a third weight coefficient is set for the number of files to be migrated, and a fourth weight coefficient is set for the file size of the content to be migrated.

[0098] Step 616: Determine the evaluation value of the content to be migrated based on the number of files of the content to be migrated, the third weight coefficient, the file size of the content to be migrated, and the fourth weight coefficient.

[0099] In the embodiment of the present application, the evaluation value of the content to be migrated can be calculated by the formula E=F*a3+G*a4, wherein E is the evaluation value of the content to be migrated, F is the number of files of the content to be migrated, a3 is the first weight coefficient, G is the file size of the content to be migrated, and a4 is the fourth weight coefficient.

[0100] Step 619: Based on the evaluation value of the content to be migrated, determine M candidate transmission channels for data migration from the K established transmission channels, where K is an integer greater than M.

[0101] In the embodiment of the present application, K transmission channels may be established in advance between the first device and the second device. After determining the evaluation value of the content to be migrated, M candidate transmission channels for data migration may be determined from the K established transmission channels based on the evaluation value of the content to be migrated. Specifically, based on the evaluation value of the content to be migrated, M candidate transmission channels that are consistent with the evaluation value may be determined from the K transmission channels.

[0102] Step 622: For each transmission channel among the M candidate transmission channels, obtain the transmission duration of the i-th group of test files among the N groups of test files transmitted via the transmission channel, 1≤i≤N.

[0103] In the process of obtaining the transmission duration of the i-th test file in N groups of test files transmitted via the transmission channel for each of the M alternative transmission channels, the transmission start time of the transmission test of the i-th test file in the N groups of test files from each of the M alternative transmission channels and the transmission end time of the transmission test can be obtained based on the transmission start time and the transmission end time.

[0104] Step 625: If the transmission duration of the i-th group of test files is not within the second standard transmission duration interval, it is determined that a transmission abnormality occurs in the transmission of the i-th group of test files via the transmission channel.

[0105] In an embodiment of the present application, a second standard transmission time interval can be pre-set to determine whether a transmission abnormality occurs when transmitting the i-th group of test files via the transmission channel. The second standard transmission time interval can be within the first standard transmission time interval mentioned above, and the second standard transmission time interval can also be equal to the first standard transmission time interval.

[0106] Step 628: If the transmission time of the i-th group of test files is within the second standard transmission time interval, it is determined that it is safe to transmit the i-th group of test files via the transmission channel;

[0107] Step 631: obtaining the number of transmission abnormality groups of test files in which transmission abnormality occurs during the transmission of N groups of test files via the transmission channel;

[0108] Step 634: Based on the number of transmission exception groups, obtain the file transmission security dimension test result of the transmission channel.

[0109] In an embodiment of the present application, in the process of obtaining the test result of the transmission channel based on the number of transmission anomaly groups, the file transmission safety rate of the transmission channel can be determined based on the number of test file groups and the number of transmission anomaly groups, and the file transmission safety rate of the transmission channel can be used as the test result of the transmission channel. Among them, the calculation formula of the file transmission safety rate of the transmission channel can be S = (N-A) / N; wherein S is the file transmission safety rate, N is the number of test file groups, and A is the number of transmission anomaly groups, and the file transmission safety rate of the transmission channel is used as the test result of the file transmission security dimension of the transmission channel.

[0110] After obtaining the test result of the transmission channel based on the number of transmission anomaly groups with transmission anomalies in the test file, the next transmission channel can be selected from the M candidate transmission channels to repeat steps 210 to 250 until the test result of each transmission channel in the M candidate transmission channels is obtained.

[0111] Step 637: For each of the M candidate transmission channels, obtain the number of lost files and the number of damaged files transmitted via the transmission channel for the N groups of test files.

[0112] In the embodiment of the present application, the number of lost files may be the number of test files that are not received from the start of transmission to the end of transmission; the number of damaged files may be the number of damaged test files (e.g., test files that are garbled or cannot be opened normally) among the received test files. The total number of files in the i-th test file among the N test files may be obtained, and after the i-th test file among the N test files is transmitted, the number of unreceived test files and the number of damaged test files among the i-th test files among the N test files transmitted via the alternative transmission channel may be obtained, where 1≤i≤N.

[0113] Step 640: Based on the number of lost files and the number of damaged files, a test result of the file transmission damage dimension of the transmission channel is obtained.

[0114] In the embodiment of the present application, the file transmission damage rate of the transmission channel can be determined based on the number of file losses and the number of file damages; and the file transmission damage rate of the transmission channel is used as the test result of the transmission channel. The calculation formula of the file transmission damage rate of the transmission channel can be: Among them, CS is the transmission damage rate of the transmission channel, SD i is the number of file losses in the i-th test file among N test files, SS i is the number of damaged files in the i-th test file among the N test files, a 1 is the first weight coefficient, a 2 is the second weight coefficient, and N is the number of test file groups.

[0115] Step 643: According to the test results of the file transmission security dimension test and the test results of the file transmission damage dimension test, determine the target transmission channel from the M candidate transmission channels.

[0116] In an embodiment of the present application, the test result of the file transmission security dimension test may include a file transmission security rate; the test result of the file transmission damage dimension test may include a file transmission damage rate. In the process of determining the target transmission channel from the M candidate transmission channels according to the test result of the file transmission security dimension test and the test result of the file transmission damage dimension test, the target transmission channel may be determined from the M candidate transmission channels according to the file transmission damage rate and the file transmission security rate. Specifically, a fifth weight coefficient may be set for the file transmission damage rate, and a sixth weight coefficient may be set for the file transmission security rate. For each transmission channel in the M candidate transmission channels, a transmission score is calculated based on the file transmission damage rate, the file transmission security rate, the fifth weight coefficient and the sixth weight coefficient of the transmission channel. The transmission channel with a higher file transmission security rate and a lower file transmission damage rate may be selected from the M candidate transmission channels as the target transmission channel in combination with the transmission score. For example, when the transmission score is proportional to the file transmission security rate, and the transmission score is inversely proportional to the file transmission damage rate, the transmission channel with the highest transmission score among the M candidate transmission channels may be determined as the target transmission channel.

[0117] Step 646: Obtain the content to be migrated on the first device.

[0118] In the embodiment of the present application, the content to be migrated may include at least one of files such as pictures, videos, audios, and documents.

[0119] Step 649: Acquire multiple target images with the same name or format from the content to be migrated.

[0120] In the embodiment of the present application, when the content to be migrated includes pictures, a plurality of target pictures with the same name or the same format are obtained from the content to be migrated.

[0121] Step 652: performing deduplication processing on the multiple target images to obtain target images with non-duplicate content, and determining the target images with non-duplicate content as target migration content.

[0122] In an embodiment of the present application, in the process of deduplicating multiple target images, only one target image with the same name or format may be retained to obtain a target image with no duplication of content.

[0123] In an embodiment of the present application, in the process of deduplicating multiple target images, the multiple target images can be virtually divided into picture grids, and the number of pixels of different colors in the picture grids of the multiple target images can be compared. Based on the comparison results, it is determined whether the multiple target images are target images with repeated content, and the target images with non-duplicate content are retained, and the target images with repeated content are deduplicated.

[0124] Step 655: Migrate the target migration content from the first device to a second device through the target transmission channel, where the second device is a device different from the first device.

[0125] After the target migration content is migrated from the first device to the second device through the target transmission channel, the storage location and storage device of the migrated target migration content are detected. If the storage location or storage device changes, the migration of the target migration content is successful.

[0126] In the embodiment of the present application, when the content to be migrated also includes files such as video and audio, multiple target videos and target audios with the same name or format are obtained from the content to be migrated, and the multiple target videos and target audios are deduplicated, for example, the pictures of the multiple target videos are analyzed frame by frame, and the frequency, signal and other information of the multiple target audios are analyzed frame by frame to obtain target videos and target audios with no duplicate content. When the content to be migrated also includes documents, target documents with the same name or format can be obtained from the content to be migrated, and multiple target documents are deduplicated, for example, text recognition is performed on the multiple target documents to obtain target documents with no duplicate content.

[0127] In an embodiment of the present application, when conditions for performing data migration between a first device and a second device are met, M alternative transmission channels for performing data migration are determined; M is an integer greater than 1; based on a test file, a transmission test is performed on the M alternative transmission channels according to a target dimension to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension; based on the test result, a target transmission channel is determined from the M alternative transmission channels; based on the target transmission channel, data migration is performed between the first device and the second device. In this way, since the target transmission channel is determined from M alternative transmission channels according to the test results, and the test results are obtained by performing transmission tests on the M alternative transmission channels according to the target dimension, the determined target transmission channel is a transmission channel that has been screened on the target dimension (at least one of the file transmission security dimension and the file damage dimension). Compared with the related art that does not screen the transmission channel, data damage or loss may occur during the data transmission process, thereby causing data retransmission and resulting in low data transmission efficiency. The embodiment of the present application further determines the target transmission channel from the alternative transmission channels according to the target dimension, and uses the determined target transmission channel for data migration, which can reduce the probability of data retransmission to a certain extent, thereby improving the efficiency of data transmission and solving the problem of low data transmission efficiency in the process of data migration in the related art.

[0128] In order to better understand the data migration method provided in the embodiment of the present application, further explanation is given below. It should be understood that the discussion below is only exemplary.

[0129] The data migration method provided in the embodiment of the present application can be applied to various situations, such as the situation where there is a mobile cloud disk. The mobile cloud disk is a professional Internet storage tool and a product of Internet cloud technology. It provides information storage, reading, downloading and other services for enterprises and individuals through the Internet, and has the characteristics of security, stability and massive storage. With the rapid development of mobile cloud disk technology, the functions for files in mobile cloud disks are becoming more and more perfect. The mobile cloud disk can be deployed on the user side (such as a terminal device). After the user logs in to the cloud disk client through the cloud disk account, the user information, terminal device information and file information can be uploaded to the cloud disk server for storage. At the same time, when the user uses another new device that has not been used, the data on the old device that the user has logged in to is migrated to the new device through the cloud disk client. Due to the large amount of data in the data migration process, data migration takes a lot of time and cycles. At the same time, a large number of duplicate files are also migrated to the new device along with the data migration.

[0130] In an embodiment of the present application, after obtaining the user information input by the user, the user information can be compared with the user information stored in the database to determine whether the user is a first-time registered user or a non-first-time registered user, and obtain the version information of the client. According to the version information of the client, it is determined whether it is a client that the user logs in to for the first time or a client that the user has logged in to historically. If it is a case where a non-first-time registered user logs in to a client with historical logins or a first-time registered user logs in to a client for the first time, data migration is not performed. If it is a case where a non-first-time registered user logs in to a client for the first time, a data migration operation is performed. Based on comparing the user information with the user information stored in the database, it is determined whether the user is a first-time registered user or a non-first-time registered user; then the version information of the client is compared to determine the case where a non-first-time registered user logs in to a client for the first time, so as to facilitate the subsequent data migration between clients for the case where a non-first-time registered user logs in to a client for the first time.

[0131] In the embodiment of the present application, for the case where a non-first-time registered user logs in to a client for the first time, the number and size of files to be migrated are obtained, M candidate transmission channels are determined according to the number and size of files, and then the M candidate transmission channels are tested for transmission, and a target transmission channel is determined from the M candidate transmission channels based on the test results for data migration. The content to be migrated may include pictures, audio, and video files in the user's photo album.

[0132] In the process of determining M alternative transmission channels according to the number of files and the file size, corresponding weight coefficients are assigned to the number of files and the file size respectively. For example, a third weight coefficient is set for the number of files of the content to be migrated, and a fourth weight coefficient is set for the file size of the content to be migrated. Based on the number of files of the content to be migrated, the third weight coefficient, the file size of the content to be migrated and the fourth weight coefficient, an evaluation value of the content to be migrated is determined. Based on the evaluation value of the content to be migrated, M alternative transmission channels for data migration are determined from the K established transmission channels.

[0133] In the process of performing transmission tests on M candidate transmission channels, file transmission security dimension tests and file transmission damage dimension tests can be performed simultaneously. Specifically, N groups of test files are set; in the process of performing file transmission security dimension tests on M candidate transmission channels, such as Figure 7 As shown, for each transmission channel in the M alternative transmission channels, each group of test files in the N groups of test files is transmitted through the transmission channel, the transmission start time is recorded, and the transmission process is interfered with by a virus program, and then the transmission end time of all files received in the i-th group of test files is recorded; the transmission start time is subtracted from the transmission end time to obtain the transmission duration of the i-th group of test files in the N groups of test files, and the transmission duration of the i-th group of test files in the N groups of test files is compared with the standard transmission duration interval (for example, the first standard transmission duration interval or the second standard transmission duration interval mentioned above). If the transmission duration of the i-th group of test files in the N groups of test files is not within the standard transmission duration interval, the transmission of the i-th group of test files in the N groups of test files is recorded as abnormal transmission. After each group of test files in the N groups of test files is transmitted, the transmission safety rate of the transmission channel is calculated using the formula, and the specific formula is as follows: Transmission safety rate = (number of test file groups - number of abnormal transmission groups) / number of test file groups.

[0134] In the process of testing the file transmission damage dimension of M candidate transmission channels, the total number of N groups of test files is first obtained, and the N groups of test files are transmitted through each transmission channel of the M candidate transmission channels. The number of file losses and the number of file damages of the i-th group of test files in the N groups of test files after being transmitted through the transmission channel are obtained, wherein the number of file losses is the number of test files that have not been received from the beginning to the end of transmission, and the amount of data damage is the number of test files that have been damaged after transmission, and the damage includes phenomena such as the test file cannot be opened; based on the number of file losses and the number of file damages, the formula Determine the file transmission damage rate of the alternative transmission channel; where CS is the transmission damage rate of the transmission channel, SD i is the number of file losses in the i-th test file among N test files, SS i is the number of damaged files in the i-th test file among the N test files, a1 is the first weight coefficient, a 2 is the second weight coefficient. Based on the transmission damage rate and the transmission safety rate, a target transmission channel is determined from the M candidate transmission channels, and data migration is performed based on the target transmission channel.

[0135] In an embodiment of the present application, M alternative transmission channels are selected based on the file size and number of files to be migrated, which is a screening process. Then, the M alternative transmission channels are tested in the file transmission security dimension and the file transmission damage dimension, so that the transmission safety rate and transmission damage rate of the M alternative transmission channels can be calculated. Based on the transmission damage rate and the transmission safety rate, a target transmission channel is selected from the M alternative transmission channels for data migration. This can not only effectively avoid damage and loss of the target migration content during the transmission process, but also increase the transmission efficiency of the target migration content.

[0136] In the process of data migration, in order to avoid the transmission of duplicate files and thus occupying the transmission channel, it is necessary to repeatedly analyze the content to be migrated, and focus on analyzing the content to be migrated with the same name or format. Take the pictures in the content to be migrated as an example: obtain multiple target pictures with the same name or format from the content to be migrated, virtually divide the multiple target pictures into picture grids, compare the number of pixels of different colors in the picture grids, determine whether the multiple target pictures are duplicate target pictures based on the comparison results, and deduplicate the duplicate target pictures to obtain target pictures with no duplicate content, determine the target pictures with no duplicate content as target migration content, and then migrate the target migration content through the target transmission channel.

[0137] After the data migration is completed, the storage location and storage device of the target migration content are detected. If the storage location or storage device has changed, the migration success is reported. Specifically, the migration success can be reported through the following code:

[0138]

[0139]

[0140] Figure 8 800 is a structural block diagram of a data migration device 800 provided in an embodiment of the present application. Figure 8 The data migration device 800 provided in the embodiment of the present application includes:

[0141] The determination module 810 is used to determine M candidate transmission channels for data migration when the conditions for data migration between the first device and the second device are met; M is an integer greater than 1;

[0142] A testing module 820 is configured to perform a transmission test on the M candidate transmission channels according to a target dimension based on a test file to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension;

[0143] The determination module 810 is further configured to determine a target transmission channel from the M candidate transmission channels according to the test result;

[0144] The migration module 830 is used to migrate data between the first device and the second device based on the target transmission channel.

[0145] In an embodiment of the present application, when conditions for performing data migration between a first device and a second device are met, M alternative transmission channels for performing data migration are determined; M is an integer greater than 1; based on a test file, a transmission test is performed on the M alternative transmission channels according to a target dimension to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension; based on the test result, a target transmission channel is determined from the M alternative transmission channels; based on the target transmission channel, data migration is performed between the first device and the second device. In this way, since the target transmission channel is determined from M alternative transmission channels according to the test results, and the test results are obtained by performing transmission tests on the M alternative transmission channels according to the target dimension, the determined target transmission channel is a transmission channel that has been screened on the target dimension (at least one of the file transmission security dimension and the file damage dimension). Compared with the related art that does not screen the transmission channel, data damage or loss may occur during the data transmission process, thereby causing data retransmission and resulting in low data transmission efficiency. The embodiment of the present application further determines the target transmission channel from the alternative transmission channels according to the target dimension, and uses the determined target transmission channel for data migration, which can reduce the probability of data retransmission to a certain extent, thereby improving the efficiency of data transmission and solving the problem of low data transmission efficiency in the process of data migration in the related art.

[0146] In one embodiment of the present application, the target dimension is a file transmission security dimension; in the process of performing transmission tests on the M alternative transmission channels based on the test file according to the target dimension to obtain test results, the test module 820 is specifically used to: for any one of the M alternative transmission channels, execute the following process: obtain the transmission duration of the test file transmitted via the transmission channel; if the transmission duration is not within the first standard transmission duration interval, determine that a transmission abnormality occurs in the transmission channel; if the transmission duration is within the first standard transmission duration interval, determine that the transmission channel is secure.

[0147] In one embodiment of the present application, the test file includes N groups; the target dimension is a file transmission security dimension; in the process of performing transmission tests on the M alternative transmission channels based on the test file according to the target dimension to obtain test results, the test module 820 is also used to: for any one of the M alternative transmission channels, perform the following process: obtain the transmission duration of the i-th group of test files among the N groups of test files transmitted via the transmission channel; if the transmission duration of the i-th group of test files is not within the second standard transmission duration interval, determine that transmission anomalies occur in transmitting the i-th group of test files via the transmission channel; if the transmission duration of the i-th group of test files is within the second standard transmission duration interval, determine that transmission of the i-th group of test files via the transmission channel is safe; obtain the number of transmission anomaly groups in which transmission anomalies occur in the process of transmitting the N groups of test files via the transmission channel; based on the number of transmission anomaly groups, obtain the test result of the transmission channel; wherein, 1≤i≤N.

[0148] In one embodiment of the present application, the file transmission security dimension includes a file transmission security rate; in the process of performing transmission tests on the M alternative transmission channels based on the test file and according to the target dimension to obtain test results, the test module 820 is also used to: determine the file transmission security rate of the transmission channel based on the number of test file groups and the number of transmission exception groups; use the file transmission security rate of the transmission channel as the test result of the transmission channel; wherein the calculation formula for the file transmission security rate of the transmission channel is S=(N-A) / N; wherein S is the file transmission security rate, A is the number of transmission exception groups, and N is the number of test file groups.

[0149] In one embodiment of the present application, the test file includes N groups; the target dimension includes a file transmission damage dimension; in the process of performing transmission tests on the M alternative transmission channels based on the test file and according to the target dimension to obtain test results, the test module 820 is also used to: for any one of the M alternative transmission channels, perform the following process: obtain the number of file losses and the number of file damages when N groups of test files are transmitted via the transmission channel; based on the number of file losses and the number of file damages, obtain the test result of the transmission channel; wherein the number of file losses is the number of test files that have not been received from the start of transmission to the end of transmission; the number of file damages is the number of damaged test files among the received test files.

[0150] In one embodiment of the present application, the file transmission damage dimension includes a file transmission damage rate; the target dimension includes a file transmission damage dimension; in the process of performing transmission tests on the M candidate transmission channels based on the test file and the target dimension to obtain test results, the test module 820 is further used to: determine the file transmission damage rate of the transmission channel based on the number of file losses and the number of file damages; and use the file transmission damage rate of the transmission channel as the test result of the transmission channel; wherein the calculation formula for the file transmission damage rate of the transmission channel is: Among them, CS is the transmission damage rate of the transmission channel, SD i is the number of file losses in the i-th test file among N test files, SS i is the number of damaged files in the i-th test file among the N test files, a 1 is the first weight coefficient, a 2 is the second weight coefficient, and N is the number of test file groups.

[0151] In one embodiment of the present application, in the process of determining M alternative transmission channels for data migration, the determination module 810 is specifically used to: obtain the number of files and the file size of the content to be migrated; and determine the M alternative transmission channels for data migration based on the number of files and the file size of the content to be migrated.

[0152] In one embodiment of the present application, in the process of determining M alternative transmission channels for data migration based on the number of files and the file size of the content to be migrated, the determination module 810 is specifically used to: obtain a third weight coefficient for the number of files of the content to be migrated and a fourth weight coefficient for the file size of the content to be migrated; determine an evaluation value of the content to be migrated based on the number of files of the content to be migrated, the third weight coefficient, the file size of the content to be migrated and the fourth weight coefficient; and determine M alternative transmission channels for data migration from K established transmission channels based on the evaluation value of the content to be migrated, wherein K is an integer greater than M.

[0153] In one embodiment of the present application, in the process of performing data migration between the first device and the second device based on the target transmission channel, the migration module 830 is specifically used to: obtain the content to be migrated on the first device; deduplicate the content to be migrated to obtain target migration content; migrate the target migration content from the first device to the second device through the target transmission channel, and the second device is a device different from the first device.

[0154] In one embodiment of the present application, the content to be migrated includes pictures; the migration module 830 includes a deduplication unit, and in the process of deduplicating the content to be migrated to obtain target migration content, the deduplication unit is used to: obtain multiple target pictures with the same name or format from the content to be migrated; deduplicate the multiple target pictures to obtain target pictures with no duplicate content.

[0155] like Fig. 9 As shown, an embodiment of the present application also provides an electronic device 900, which can be various types of computers, etc. The electronic device 900 includes: a processor 910 and a memory 920, and the memory 920 stores a program or instruction, and the program or instruction is executed by the processor 910 to implement the steps of any of the methods described above. For example, when the program is executed by the processor 910, the following process is implemented: when the conditions for data migration between the first device and the second device are met, M alternative transmission channels for data migration are determined; M is an integer greater than 1; based on the test file, the M alternative transmission channels are tested for transmission according to the target dimension to obtain the test result; the target dimension includes at least one of the file transmission security dimension and the file transmission damage dimension; according to the test result, the target transmission channel is determined from the M alternative transmission channels; based on the target transmission channel, data migration is performed between the first device and the second device. In this way, since the target transmission channel is determined from M alternative transmission channels according to the test results, and the test results are obtained by performing transmission tests on the M alternative transmission channels according to the target dimension, the determined target transmission channel is a transmission channel that has been screened on the target dimension (at least one of the file transmission security dimension and the file damage dimension). Compared with the related art that does not screen the transmission channel, data damage or loss may occur during the data transmission process, thereby causing data retransmission and resulting in low data transmission efficiency. The embodiment of the present application further determines the target transmission channel from the alternative transmission channels according to the target dimension, and uses the determined target transmission channel for data migration, which can reduce the probability of data retransmission to a certain extent, thereby improving the efficiency of data transmission and solving the problem of low data transmission efficiency in the process of data migration in the related art.

[0156] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the data migration method provided in any of the above embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0157] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0158] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0159] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0160] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0161] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0162] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data migration method, characterized in that: include: When a condition for performing data migration between the first device and the second device is met, determining M candidate transmission channels for performing data migration; M is an integer greater than 1; Based on the test file, performing a transmission test on the M candidate transmission channels according to a target dimension to obtain a test result; the target dimension includes at least one of a file transmission security dimension and a file transmission damage dimension; According to the test result, determining a target transmission channel from the M candidate transmission channels; Based on the target transmission channel, data migration is performed between the first device and the second device.

2. The method according to claim 1, characterized in that: The target dimension is the file transmission security dimension; The performing transmission tests on the M candidate transmission channels according to the target dimension based on the test file to obtain test results includes: For any one of the M alternative transmission channels, the following process is performed: obtaining the transmission duration of the test file via the transmission channel; if the transmission duration is not within the first standard transmission duration interval, determining that a transmission abnormality occurs in the transmission channel; if the transmission duration is within the first standard transmission duration interval, determining that the transmission channel is secure.

3. The method according to claim 1, characterized in that The test file includes N groups; the target dimension is the file transmission security dimension; The performing transmission tests on the M candidate transmission channels according to the target dimension based on the test file to obtain test results includes: For any one of the M candidate transmission channels, the following process is performed: obtaining the transmission duration of the i-th group of test files among the N groups of test files transmitted via the transmission channel; if the transmission duration of the i-th group of test files is not within the second standard transmission duration interval, determining that a transmission abnormality occurs in the transmission of the i-th group of test files via the transmission channel; if the transmission duration of the i-th group of test files is within the second standard transmission duration interval, determining that the transmission of the i-th group of test files via the transmission channel is safe; obtaining the number of transmission abnormality groups in which transmission abnormalities occur in the process of transmitting the N groups of test files via the transmission channel; and obtaining the test result of the transmission channel based on the number of transmission abnormality groups; Among them, 1≤i≤N.

4. The method according to claim 3, characterized in that The file transmission security dimension includes a file transmission security rate; the test result of the transmission channel obtained based on the number of transmission anomaly groups includes: Determining the file transmission safety rate of the transmission channel based on the number of test file groups and the number of transmission abnormality groups; Taking the file transmission security rate of the transmission channel as the test result of the transmission channel; The calculation formula of the file transmission safety rate of the transmission channel is S=(N-A) / N; S is the file transmission safety rate, N is the number of test file groups, and A is the number of transmission anomaly groups.

5. The method according to claim 1, characterized in that The test file includes N groups; the target dimension is the file transmission damage dimension; The step of performing a transmission test on the candidate transmission channel according to the target dimension based on the test file to obtain a test result includes: For any one of the M candidate transmission channels, the following process is performed: Obtain the number of lost files and the number of damaged files transmitted through the transmission channel for N groups of test files; Based on the number of lost files and the number of damaged files, obtaining a test result of the transmission channel; The number of lost files is the number of test files that were not received from the beginning to the end of transmission; the number of damaged files is the number of damaged test files among the received test files.

6. The method according to claim 5, characterized in that The file transmission damage dimension includes a file transmission damage rate; the test result of the transmission channel obtained based on the number of lost files and the number of damaged files includes: Determining a file transmission damage rate of the transmission channel based on the number of lost files and the number of damaged files; Using the file transmission damage rate of the transmission channel as the test result of the transmission channel; The calculation formula of the file transmission damage rate of the transmission channel is: CS is the file transmission damage rate of the transmission channel, SD i is the number of file losses in the i-th test file among N test files, SS i is the number of damaged files in the i-th group of test files among N groups of test files, a1 is the first weight coefficient, a2 is the second weight coefficient, and N is the number of test file groups.

7. The method according to any one of claims 1 to 6, characterized in that: The determining of M candidate transmission channels for data migration includes: Get the number and size of files to be migrated; Based on the number and size of files of the to-be-migrated content, M candidate transmission channels for data migration are determined.

8. The method according to claim 7, characterized in that The determining, based on the number and size of files of the to-be-migrated content, M candidate transmission channels for data migration includes: Obtaining a third weight coefficient for the number of files of the to-be-migrated content and a fourth weight coefficient for the file size of the to-be-migrated content; determining an evaluation value of the content to be migrated based on the number of files of the content to be migrated, the third weight coefficient, the file size of the content to be migrated, and the fourth weight coefficient; Based on the evaluation value of the content to be migrated, M candidate transmission channels for data migration are determined from K established transmission channels, where K is an integer greater than M.

9. The method according to any one of claims 1 to 6, characterized in that: Based on the target transmission channel, data migration is performed between the first device and the second device, including: Acquire the content to be migrated on the first device; Deduplication processing is performed on the content to be migrated to obtain target migration content; The target migration content is migrated from the first device to a second device through the target transmission channel, where the second device is a device different from the first device.

10. The method according to claim 9, characterized in that The content to be migrated includes pictures; and the deduplication processing of the content to be migrated to obtain target migration content includes: Acquire multiple target images with the same name or format from the content to be migrated; Deduplication processing is performed on the multiple target images to obtain target images with no duplicate content.

Citation Information

Patent Citations

  • Data transmission method and device for multi-data channel

    CN105101316A

  • Method and device for transmitting wireless data of terminal, terminal, server and storage medium

    CN108235374A

  • Data transmission method, device and system

    CN108777665A

  • Data migration method, device and system, equipment and storage medium

    CN110032339A

  • Data channel switching method and device

    CN110474722A