WO2022111699A1 - 数据传输方法、电子设备及计算机可读存储介质 - Google Patents

数据传输方法、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2022111699A1
WO2022111699A1 PCT/CN2021/134090 CN2021134090W WO2022111699A1 WO 2022111699 A1 WO2022111699 A1 WO 2022111699A1 CN 2021134090 W CN2021134090 W CN 2021134090W WO 2022111699 A1 WO2022111699 A1 WO 2022111699A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission
data
policy
transmitted
strategy
Prior art date
Application number
PCT/CN2021/134090
Other languages
English (en)
French (fr)
Inventor
鲍大祥
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to US18/255,020 priority Critical patent/US20240095210A1/en
Priority to EP21897199.2A priority patent/EP4246934A4/en
Publication of WO2022111699A1 publication Critical patent/WO2022111699A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/119Details of migration of file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a data transmission method, an electronic device, and a computer-readable storage medium.
  • a user when a user switches a mobile phone, it involves the migration of data categories such as text messages, contacts, memos, pictures, videos, music, documents, and application data.
  • the existing mobile phone data migration strategy generally sends each type of data according to a preset transmission sequence.
  • different mobile phones have different performances, and the data types and data volumes that need to be migrated may also be different.
  • the migration strategy using a fixed transmission order cannot make all mobile phones achieve the best speed when switching phones, and cannot bring better results to users. switch experience.
  • a first aspect of the embodiments of the present application discloses a data transmission method, which includes: in response to a received policy query request, searching for a transmission policy matching the policy query request from a preset policy library, wherein the policy query request includes The hardware information of the transmitting end, the hardware information of the receiving end, and the data information of the data to be transmitted in the transmitting end, the data information includes the total data amount of the data to be transmitted, the data type contained in the data to be transmitted, and each data type.
  • the data volume of the data category; the query result of the policy query request is fed back to the transmission end.
  • a transmission strategy suitable for the current transmission situation can be matched according to the hardware information of the transmitting end, the hardware information of the receiving end, and the data information of the data to be transmitted in the transmitting end, so as to improve the efficiency of data migration, and improve the user experience of switching.
  • the feeding back the query result of the policy query request to the transmission end includes: if a transmission policy matching the policy query request is found from the preset policy library , feed back the found transmission strategy to the transmission end; or if the transmission strategy that matches the strategy query request cannot be found from the preset strategy library, feed back the search result information with an empty match to the transmission side.
  • the matching transmission strategy can be used for data transmission, thereby improving the data migration efficiency.
  • the default transmission strategy is used for data to ensure the smooth completion of data migration.
  • the method further includes: when the transmission information fed back for the transmission policy sent to the transmitting end is received, updating the transmission policy by using the transmission information, wherein the transmission information At least the average transfer speed is included.
  • the information of the transmission strategy in the preset strategy library can be updated in combination with the actual data transmission result, so as to realize the optimization of the preset strategy library.
  • the searching for a transmission policy matching the policy query request from a preset policy library includes:
  • a plurality of the first transmission policies are obtained by searching, searching for a second transmission policy of the same data category as the data included in the to-be-transmitted data from the plurality of the first transmission policies;
  • a third transmission strategy whose difference between the plurality of second transmission strategies and the total data amount of the data to be transmitted is within a preset difference range is searched for.
  • the searching for a transmission policy matching the policy query request from a preset policy library includes:
  • a plurality of the first transmission strategies are obtained by searching, searching for a second transmission strategy whose difference from the total data volume of the data to be transmitted is within a preset difference range from the plurality of first transmission strategies;
  • a third transmission policy of the same type as the data type included in the data to be transmitted is searched for from the plurality of the second transmission policies.
  • the searching for a transmission policy matching the policy query request from a preset policy library further includes:
  • the transmission strategy with the smallest comprehensive difference with each data category of the data to be transmitted is selected from the plurality of the third transmission strategies, as the search strategy with the strategy Request a matching transport policy.
  • the method further includes: if there is no first transmission strategy matching the hardware information of the transmitting end and the hardware information of the receiving end in the preset strategy library, the feedback matching is empty The search result information is sent to the transmitting end.
  • the method further includes: searching for a first transmission strategy matching the hardware information of the transmitting end and the hardware information of the receiving end from the preset strategy library, including: Search the preset policy library for the first transmission policy with the same equipment model, memory size and storage capacity as the transmitting end and the receiving end; The first transmission strategy in which the CPU model, memory size and storage capacity of the receiving end are all the same.
  • the hardware information of the transmitting end and the hardware information of the receiving end match when the device model, memory size and storage capacity are the same, and the CPU model, memory size and storage capacity are the same. It can also be regarded as matching with the hardware information of the transmitting end and the hardware information of the receiving end.
  • the method further includes: if the number of the first transmission policy obtained by searching is one, using the first transmission policy as the transmission policy matching the policy search request; or If the number of the second transmission policies obtained by searching is one, the second transmission policy is used as the transmission policy matching the policy search request.
  • the first transmission strategy is selected from the plurality of first transmission strategies.
  • For the third transmission strategy within the preset difference range select the transmission strategy with the smallest difference from the total data volume of the data to be transmitted from the plurality of second transmission strategies as the search strategy with the strategy Request a matching transport policy.
  • the method further includes: if the difference from the total data amount of the data to be transmitted is not found from the plurality of first transmission strategies within the preset difference range The second transmission strategy in the internal, selecting the transmission strategy with the smallest difference from the total data volume of the data to be transmitted from the plurality of first transmission strategies as the transmission strategy matching the strategy search request; or if The third transmission strategy that is the same as the data category contained in the data to be transmitted is not found from the plurality of second transmission strategies, and the transmission strategy with the largest average transmission speed is selected from the plurality of second transmission strategies as the transport policy that matches the policy lookup request.
  • the data to be transmitted includes i data categories, where i is a natural number greater than or equal to 1, and the data to be transmitted is selected from the plurality of third transmission strategies that are related to the data to be transmitted.
  • is between f i and f i ' The absolute value of the difference.
  • a second aspect of an embodiment of the present application discloses a data transmission method, which includes: when a transmission end and a receiving end meet transmission conditions, acquiring hardware information of the transmitting end, hardware information of the receiving end, and information on the transmission end to be transmitted at the transmitting end
  • the data information of the data wherein the data information includes the total data volume of the data to be transmitted, the data types included in the to-be-transmitted data, and the data volume of each data type; send a policy search request to the query end, wherein the The policy search request includes the hardware information of the transmitting end, the hardware information of the receiving end and the data information of the data to be transmitted in the transmitting end, and the querying end is arranged in the transmitting end or in the server; receiving The query terminal feeds back the search result of the policy search request, so as to determine the transmission mode of the data to be transmitted based on the query result.
  • a transmission strategy suitable for the current transmission situation can be matched from the query end according to the hardware information of the transmitting end, the hardware information of the receiving end and the data information of the data to be transmitted in the transmitting end, so as to improve the efficiency of data migration and improve the user experience. Switching experience.
  • the determining the transmission mode of the data to be transmitted based on the query result includes: if the search result is a transmission found by the query end that matches the policy search request strategy, the data to be transmitted is transmitted by using the transmission strategy found by the query terminal; or if the search result is empty information, the data to be transmitted is transmitted by using the default transmission strategy.
  • the matching transmission strategy can be used for data transmission, thereby improving the data migration efficiency.
  • the transmission strategy is used, the default transmission strategy is used for data to ensure the smooth completion of data migration.
  • the method further includes: feeding back, to the inquiring end, transmission information for transmitting the data to be transmitted by using the transmission strategy found by the inquiring end, wherein the transmission information at least includes an average transfer speed.
  • the information of the transmission strategy stored at the query end can be updated in combination with the actual data transmission result, so as to realize the optimization of the transmission strategy stored at the query end.
  • the method further includes: dividing the data categories included in the data to be transmitted into transmission echelons according to a preset echelon division rule; if the data categories included in the data to be transmitted are divided For the same transmission echelon, use the default transmission strategy to transmit the data to be transmitted; if the data category contained in the data to be transmitted is divided into two or more transmission echelons, send the policy search request to the query end .
  • the preset echelon division rule includes: classifying data categories that do not require data preparation into a first transmission echelon; classifying data categories for which data preparation is performed in the first manner into a second transmission echelon Transmission echelon; divide the data categories for which data preparation is performed in the second manner into a third transmission echelon; wherein the first manner is different from the second manner.
  • the default transmission strategy includes: sequentially performing data transmission in the order of the first transmission echelon, the second transmission echelon, and the third transmission echelon; In the echelon, or in the second transmission echelon, or in the third transmission echelon, data transmission is performed in sequence according to the data amount of each data category from large to small, or from small to large.
  • the transmission will be performed in sequence in the order of transmission echelons, and the data types in each transmission echelon will be transmitted in sequence in the order of the size of the data.
  • embodiments of the present application provide a computer-readable storage medium, including computer instructions, which when the computer instructions are executed on an electronic device, cause the electronic device to execute the data transmission method described in the first aspect or the second aspect.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor and a memory, the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device The data transmission method as described in the first aspect or the second aspect is performed.
  • an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the data transmission method described in the first aspect or the second aspect.
  • an embodiment of the present application provides an apparatus having a function of implementing the behavior of the first electronic device in the method provided in the first aspect or the second aspect.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the computer-readable storage medium described in the third aspect, the electronic device described in the fourth aspect, the computer program product described in the fifth aspect, and the device described in the sixth aspect are all the same as the above-mentioned first aspect.
  • the method of the aspect or the second aspect corresponds, therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects of the corresponding methods provided above, which will not be repeated here.
  • FIG. 1 is a schematic structural diagram of a data transmission system provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a data transmission method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a data transmission method provided by another embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a data transmission method provided by another embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a data transmission method provided by another embodiment of the present application.
  • FIG. 6 is an interactive schematic diagram of data interaction between a first electronic device and a query terminal according to an embodiment of the present application
  • FIG. 7 is a schematic structural diagram of a possible first electronic device provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a possible server provided by an embodiment of the present application.
  • a schematic diagram of the architecture of a data transmission system provided by an embodiment of the present invention is exemplarily introduced below with reference to FIG. 1 .
  • the data transmission system 100 may include a first electronic device 10 , a second electronic device 11 and a query terminal 12 .
  • the first electronic device 10 and the second electronic device 11 may be consumer electronic products such as mobile phones and tablet computers.
  • the first electronic device 10 is the initiating end of data migration
  • the second electronic device 11 is the receiving end of data migration
  • the data stored in the first electronic device 10 can pass through the wireless network.
  • the wired network is migrated to the second electronic device 11 .
  • the data stored by the first electronic device 10 may be divided into a plurality of data categories, for example, the data stored by the first electronic device 10 is divided into 11 data categories.
  • the first data category corresponds to text message data
  • the second data category corresponds to contact data
  • the third data category corresponds to call record data
  • the fourth data category corresponds to memo data
  • the fifth data category corresponds to image data
  • the sixth data category corresponds to video data
  • the seventh data category corresponds to music data
  • the eighth data category corresponds to recording data
  • the ninth data category corresponds to document data
  • the tenth data category corresponds to application (Application, APP) data
  • the eleventh data category corresponds to system setting data.
  • the query terminal 12 may be disposed in the first electronic device 10, or may be disposed in other devices, such as a server.
  • the query terminal 12 may be an application, a plug-in, or a software and hardware functional module with a policy search request function. If the query terminal 12 is set in the first electronic device 10, the preset strategy library can also be stored in the first electronic device 10; if the query terminal 12 is set in a server, the preset strategy library can also be stored in the server.
  • the preset strategy library includes multiple transmission strategies, and each transmission strategy can define a transmission sequence of multiple data types. For example, the preset strategy library includes transmission strategies M 1 to Mn , where n is a positive integer greater than 1.
  • the transmission strategy M1 defines the hardware information of the transmitting end P1 (for example, the first electronic device 10), the hardware information of the receiving end Q1 (for example, the second electronic device 11), and the data of the data to be transmitted at the transmitting end P1 category, the total data volume of the data to be transmitted at the transmission end P1, and the data volume of each data type
  • the transmission strategy Mn defines the hardware information of the transmission end Pn , the hardware information of the receiving end Qn , the The data type of the data to be transmitted, the total data volume of the data to be transmitted at the transmission end Pn , and the data volume of each data type.
  • the first electronic device 10 when the query terminal 12 is installed in the first electronic device 10, the first electronic device 10 performs local real-time or regular updating of the preset policy database, and then when the first electronic device 10 and the second electronic device 11 When the transmission conditions are met, the query terminal 12 searches for a transmission strategy matching the current transmission situation from the preset strategy library stored locally in the first electronic device 10, so as to realize the query of the transmission strategy without relying on the network.
  • the server When the query terminal 12 is set in the server, the server performs local real-time or regular update on the preset policy database, the first electronic device 10 can send a policy search request to the server, and the query terminal 12 set on the server responds to the policy search request, and feed back the search result to the first electronic device 10 .
  • the preset policy library may be constructed by: when migrating the data of the first electronic device 10 to the second electronic device 11 , recording the total data volume of the data to be transmitted in the first electronic device 10 , the data type of the data to be transmitted and the data amount of each data type, arrange and combine the sending order of the data types of the first electronic device 10 to obtain multiple sets of transmission strategies, record the average transmission speed and transmission consumption of each set of transmission strategies Time. It can be understood that in this way, the average transmission speed and transmission time of data migration of various types of electronic devices under different transmission strategies can be recorded.
  • the first electronic device 10 may communicate with the query terminal 12 to find a transmission strategy matching the current transmission situation from the preset strategy library.
  • the transmission condition may be a condition for the first electronic device 10 to start data transmission after the first electronic device 10 establishes a communication connection with the second electronic device 11 .
  • an application program capable of triggering a transmission condition can be installed on the first electronic device 10, and during use, one can enter a designated interface of the APP, and click an icon corresponding to the transmission condition on the designated interface, Then, the first electronic device 10 is triggered to start data migration.
  • APP application program
  • the current transmission situation may include hardware information of the first electronic device 10 , hardware information of the second electronic device 11 , and data information of the data to be transmitted in the first electronic device 10 .
  • the hardware information may include parameters such as device model, central processing unit (CPU) model, memory size, and storage capacity.
  • the data information of the data to be transmitted may include the data type of the data to be transmitted, the total data amount of the data to be transmitted, and the data amount of each data type.
  • the query terminal 12 when there is no transmission strategy matching the current transmission situation in the preset strategy library, for example, the query terminal 12 returns the search result information with an empty match to the first electronic device 10, and the first electronic device 10 sends the information to the first electronic device 10.
  • the data to be transmitted is migrated to the second electronic device 11 using the default transmission policy.
  • the sending order of each data type in the default transmission policy may be set according to the amount of data.
  • the default transmission policy is generally formulated based on the following two points: a. Keep the data transmission channel sending data types with large amounts of data preferentially; b. Weigh the transmission order based on the preparation time of each data type.
  • the data categories that do not require additional time to prepare are divided into the first transmission echelon.
  • the first transmission echelon may include picture data, video data, document data, music data and recording data, and it will take extra time to perform the first transmission echelon.
  • the data category prepared by the method (such as querying the data from the database and saving it to the local) is divided into the second transmission echelon, and the second transmission echelon may include the APP data, which will take extra time to perform the second method (such as from the memory).
  • the data category prepared by querying the data and saving it locally) is divided into a third transmission echelon, and the third transmission echelon may include short message data, contact data, memo data, call record data and system setting data.
  • each data type in the transmission echelon can be sent sequentially according to the data volume of the data type in descending order (if the data volume is the same, random transmission can be performed).
  • each data category it is also possible to set the files under the data category (such as each picture, each video) to be sent in order of data size in descending order, or in order from small to large, or Can be sent randomly.
  • the default transmission policy is not immutable, and is related to the data type of the data to be transmitted currently and the data amount of each data type.
  • a data transmission method provided by an embodiment of the present application is applied to the first electronic device 10 to realize the backup of the data to be transmitted in the first electronic device 10 to the second electronic device 11 .
  • the data transmission method includes:
  • the data to be transmitted in the first electronic device 10 is classified into one or more data categories of eleven data categories, that is, the data to be transmitted in the first electronic device 10 can be classified into the first One or more of the transmission echelon, the second transmission echelon, and the third transmission echelon.
  • the data to be transmitted only includes picture data and video data, and both picture data and video data belong to the first transmission echelon, that is, the number of transmission echelons to which the data to be transmitted belongs is one; for another example, the data to be transmitted only includes picture data, Video data and APP data, picture data and video data belong to the first transmission echelon, and APP data belongs to the second transmission echelon, that is, the number of transmission echelons to which the data to be transmitted belongs is two; for another example, the data to be transmitted only includes image data , APP data and contact data, picture data belongs to the first transmission echelon, APP data belongs to the second transmission echelon, and contact data belongs to the third transmission echelon, that is, the number of transmission echelons to which the data to be transmitted belongs is three.
  • the first electronic device 10 does not need to acquire a transmission strategy matching the data to be transmitted from the preset strategy library, and directly uses the default transmission strategy to transmit the to-be-transmitted data data.
  • the data to be transmitted only includes the data of the first transmission echelon, and is sent sequentially according to the data amount of each data category in descending order. Assuming that the data to be transmitted includes 800M picture data, 1G video data and 100M document data, the default transmission strategy is to transmit 1G video data first, then transmit 800M picture data, and finally transmit 100M document data.
  • the data to be transmitted only includes the data of the second transmission echelon, that is, the data to be transmitted is APP data, which can be sent in descending order according to the data volume of each APP. Assuming that the data to be transmitted includes 100M of first APP data, 80M of second APP data and 500M of third APP data, the default transmission strategy is to first transmit 500M of third APP data, and then transmit 100M of first APP data, Finally, the second APP data of 80M is transmitted.
  • the first electronic device 10 will send a policy search request to the query terminal 12, and then the query terminal 12 can search from the preset policy database according to the preset search rule Find out the transport policy that matches the policy lookup request.
  • the policy search request may include hardware information of the first electronic device 10, hardware information of the second electronic device 11, the total data volume of the data to be transmitted, the data types included in the to-be-transmitted data, and the data volume of each data type.
  • the transmission echelon to which the data to be transmitted belongs includes a first transmission echelon and a second transmission echelon, and the first electronic device 10 will send a policy search request to the query terminal 12 to perform a transmission policy search.
  • the query terminal 12 when the query terminal 12 finds out a transmission policy matching the policy search request, the query terminal 12 will feed back the found transmission policy to the first electronic device 10, and then the first electronic device 10 can receive to the transmission strategy found by the query terminal 12 .
  • the first electronic device 10 receives the transmission policy from the query terminal 12 , it will use the received transmission policy to migrate the data to be transmitted to the second electronic device 11 .
  • the first electronic device 10 when the first electronic device 10 uses the received transmission strategy to transmit the data to be transmitted, it can count the transmission information in the data transmission process, and feed back the transmission information to the query terminal 12, and then the query terminal 12 can The transmission policy is updated according to the transmission information.
  • the transmission information may include the average transmission speed, or the average transmission speed and transmission time.
  • each transmission strategy in the preset strategy library also records a corresponding average transmission speed.
  • the query terminal 12 determines that the transmission strategy M1 is the transmission strategy matched by the policy search request, the query terminal 12 sends the transmission strategy M1 to the first electronic device 10, and the first electronic device 10 adopts the transmission strategy M1 to transmit the data to be transmitted to the first electronic device 10.
  • the second electronic device 11, the first electronic device 10 can count the average transmission speed of the data to be transmitted using the transmission strategy M1 this time, and after completing the transmission of the data to be transmitted, the average transmission speed is fed back to the query terminal 12.
  • the query terminal 12 will update the average transmission speed of transmission policy M1 with the received average transmission speed.
  • the default transmission policy is used to transmit the data to be transmitted.
  • step 24 and step 26 are performed in parallel.
  • step 24 and step 25 may be selected to be performed, or step 26 may be performed directly.
  • the query terminal 12 when the query terminal 12 fails to find a transmission policy matching the policy search request from the preset policy library, it indicates that there is no transmission policy matching the policy search request in the preset policy library, and the query The terminal 12 may send the search result information that matches the policy search request to be empty to the first electronic device 10 . Since the transmission strategy cannot be obtained from the preset strategy library, in order to realize the transmission of the data to be transmitted, the first electronic device 10 will adopt the default transmission strategy to transmit the data to be transmitted.
  • the data to be transmitted includes the data of the first transmission echelon and the data of the second transmission echelon, and the default transmission strategy is to send the data of the first transmission echelon first, and then send the data of the second transmission echelon.
  • the data volume of each data category in the first transmission echelon can be sent in descending order; for the second transmission echelon, the data volume of each APP can be sent in descending order. Send in small order.
  • the data to be transmitted includes the data of the second transmission echelon and the third transmission echelon, and the default transmission strategy is to send the data of the second transmission echelon first, and then send the data of the third transmission echelon.
  • the data volume of each data category in the third transmission echelon may be sent in descending order.
  • the data to be transmitted includes the data of the first transmission echelon, the second transmission echelon and the third transmission echelon.
  • the default transmission strategy is to send the data of the first transmission echelon first, then the data of the second transmission echelon, and finally the third transmission echelon. Transfer echelon data.
  • the above data transmission method can determine whether it is necessary to obtain the transmission strategy from the query end according to the number of transmission echelons to which the data to be transmitted belongs, so that the selection of the transmission strategy is more flexible.
  • the transmission strategy is obtained from the query end, the obtained transmission strategy is used.
  • the strategy transmits data to improve the data transmission efficiency.
  • the default transmission strategy is used to transmit the data to ensure that the data migration can be successfully completed.
  • a data transmission method provided by an embodiment of the present application is applied to the first electronic device 10 .
  • the query terminal 12 is set on the server as an example for description, and the data transmission method includes:
  • the first electronic device 10 when the first electronic device 10 and the second electronic device 11 meet the transmission conditions, the first electronic device 10 can obtain its own hardware information, the hardware information of the second electronic device 11 and the data information of the data to be transmitted .
  • the hardware information of the first electronic device 10 may include parameters such as device model, CPU model, memory size, storage capacity, and the like.
  • the hardware information of the second electronic device 11 may also include parameters such as device model, CPU model, memory size, and storage capacity.
  • the data information of the data to be transmitted may include information such as the data type of the data to be transmitted, the total data volume of the data to be transmitted, the data volume of each data type, and the like.
  • the policy search request includes hardware information of the first electronic device 10 , hardware information of the second electronic device 11 , and data information of the data to be transmitted.
  • the data information of the data to be transmitted may include the total data volume of the data to be transmitted, the data types included in the data to be transmitted, and the data volume of each data type.
  • the preset policy library is stored on the server, and the query terminal 12 set on the server can respond to the policy search request and search the preset policy library for a matching transmission policy.
  • step 33 and step 35 are performed in parallel.
  • step 33 and step 34 may be selected to be performed, or step 35 may be performed directly.
  • the above data transmission method obtains the transmission strategy from the server according to the hardware information of the transmitting end, the hardware information of the receiving end and the data information of the data to be transmitted in the transmitting end, so as to improve the data transmission efficiency.
  • the transmission strategy cannot be obtained from the server, the default The transmission strategy transmits data to ensure that the data migration can be completed successfully.
  • a data transmission method provided by an embodiment of the present application is applied to the first electronic device 10 .
  • the preset policy library is stored on the first electronic device 10 as an example for description, and the data transmission method includes:
  • the first electronic device 10 when the first electronic device 10 and the second electronic device 11 meet the transmission conditions, the first electronic device 10 can obtain its own hardware information, the hardware information of the second electronic device 11 and the data information of the data to be transmitted .
  • the hardware information of the first electronic device 10 may include parameters such as device model, CPU model, memory size, storage capacity, and the like.
  • the hardware information of the second electronic device 11 may also include parameters such as device model, CPU model, memory size, and storage capacity.
  • the data information of the data to be transmitted may include information such as the data type of the data to be transmitted, the total data volume of the data to be transmitted, the data volume of each data type, and the like.
  • the policy search request includes hardware information of the first electronic device 10 , hardware information of the second electronic device 11 , and data information of the data to be transmitted.
  • the data information of the data to be transmitted may include the total data volume of the data to be transmitted, the data types included in the data to be transmitted, and the data volume of each data type.
  • the query terminal 12 may search for the matching transmission policy from the preset policy library in response to the policy search request.
  • step 43 and step 45 are executed in parallel.
  • step 42 is executed, step 43 and step 44 can be selected to be executed, or step 45 can be executed directly.
  • the above-mentioned data transmission method searches for the transmission strategy from the local strategy library of the first electronic device according to the hardware information of the transmitting end, the hardware information of the receiving end and the data information of the data to be transmitted in the transmitting end, so as to improve the data transmission efficiency.
  • the policy library finds the transmission policy, the default transmission policy is used to transmit data to ensure that the data migration can be successfully completed.
  • the data transmission method includes:
  • the query terminal 12 when the query terminal 12 receives the policy search request, it will try to search for the transmission policy matching the policy search request from the preset policy library according to the preset search rule.
  • the query terminal 12 when the query terminal 12 finds a transmission policy matching the policy search request from the preset policy library, the query terminal 12 will The strategy is fed back to the first electronic device 10 .
  • the terminal when the terminal that initiates the policy search request uses the received transmission policy to transmit data, the terminal can count the transmission information during the data transmission process, and feed back the transmission information to the query terminal 12, the transmission information at least Including average transfer speed.
  • the query terminal 12 can update the transmission policy according to the transmission information.
  • step 52 and step 54 are performed in parallel.
  • step 52 and step 53 may be selected to be performed, or step 54 may be performed directly.
  • the query terminal 12 when the query terminal 12 fails to find a transmission policy matching the policy search request from the preset policy library, the query terminal 12 will feedback the matching The empty search result information is sent to the first electronic device 10 .
  • a schematic diagram of data interaction between the first electronic device 10 and the query terminal 12 provided by the embodiment of the present application is exemplarily introduced below with reference to FIG. 6 .
  • the first electronic device 10 sends a policy search request to the query terminal 12.
  • the policy search request includes the hardware information of the first electronic device 10, the hardware information of the second electronic device 11, the total data volume of the data to be transmitted, the data types contained in the data to be transmitted, and the data of each data type.
  • the amount of data For example, the hardware information of the first electronic device 10 is defined as the impact factor f 1 , the hardware information of the second electronic device 11 is defined as the impact factor f 2 , and the data category contained in the data to be transmitted is defined as the impact factor f 3 ,
  • the total data volume of the data to be transmitted is defined as the impact factor f 4 , the APP data in the data to be transmitted is defined as the impact factor f 5 , the video data in the data to be transmitted is defined as the impact factor f 6 , and the The picture data in the data to be transmitted is defined as the influence factor f 7 , the music data in the data to be transmitted is defined as the influence factor f 8 , the document data in the data to be transmitted is defined as the influence factor f 9 , and the recording
  • the query terminal 12 searches the preset policy library for a transmission policy matching the policy search request based on the preset search rule.
  • the preset policy library includes a plurality of transmission policies, and each transmission policy may be represented in the form of a queue, and the order of elements in the queue is the transmission order of the data categories.
  • the transmission strategy M 1 ⁇ n 1 ,n 2 ,n 3 ,..,n i ⁇ , where n i represents the i-th transmitted data category.
  • the query terminal 12 when the query terminal 12 receives a policy search request, it will match the transmission policy in the preset policy library according to the following search rules:
  • the transmission strategy matching the impact factor f1 may refer to the transmission strategy that is the same as the device model, memory size and storage capacity of the first electronic device 10, or the same as the CPU model, memory size and storage capacity of the first electronic device 10. A transfer strategy with the same capacity.
  • the transmission strategy matching the impact factor f2 may refer to the transmission strategy that is the same as the device model, memory size and storage capacity of the second electronic device 11, or the same as the CPU model, memory size and storage capacity of the second electronic device 11. The same transmission strategy. If a plurality of transmission strategies are screened out from the preset strategy library and match the impact factor f 1 and the impact factor f 2 , the matching of link ii is continued. If only one transmission strategy is screened out from the preset strategy library and matches the impact factor f 1 and the impact factor f 2 , the query terminal 12 identifies the transmission strategy as the transmission strategy matching the strategy search request, and sends it to the first electronic device device 10.
  • the query terminal 12 feeds back the search result information that matches empty to the first electronic device 10 , and the first electronic device 10 The data to be transferred will be transferred using the default transfer policy.
  • the data categories of the data to be transmitted this time include the first data category (message data), the second data category (contact data), the fifth data category (picture data), the ninth data category (document data), the tenth data category Data category (APP data), then filter out the transmission strategies that only transmit the first data category, the second data category, the fifth data category, the ninth data category, and the tenth data category from the multiple transmission strategies matched by link i. . If a plurality of transmission strategies matched with the impact factor f 3 can still be screened out from the multiple transmission strategies matched by the link i, the matching of the link iii is continued.
  • the query terminal 12 identifies the transmission strategy as the transmission strategy matching the strategy search request, and sends the transmission strategy to the first transmission strategy.
  • Electronic device 10 If no transmission strategy matching the impact factor f 3 is found from the multiple transmission strategies matched by the link i, at this time, an optimal transmission strategy can be selected from the multiple transmission strategies matched by the link i as the strategy. Find a transport policy that matches the request.
  • the optimal transmission strategy may be the transmission strategy with the maximum transmission speed among the multiple transmission strategies, or the transmission strategy with the smallest difference between the data category and the data category of the data to be transmitted this time; if there are multiple transmission strategies with the smallest difference, You can choose the one with the highest transfer speed.
  • the query terminal 12 may also feed back the search result information that the matching is empty to the first electronic device 10 , the first electronic device 10 will use the default transmission policy to transmit the data to be transmitted.
  • the preset range can be set according to actual needs. For example, if the preset range is set to plus or minus 3G, the difference between the total data volume of the data to be transmitted this time is screened from the multiple transmission strategies matched by link ii. Transmission strategy within 3G. If a plurality of transmission strategies matched with the impact factor f 4 can still be screened out from the multiple transmission strategies matched by the link ii, the matching of the link iv is continued. If only one transmission strategy matched with the impact factor f 4 is selected from the multiple transmission strategies matched in the link ii, the query terminal 12 identifies the transmission strategy as the transmission strategy matching the strategy search request, and sends the transmission strategy to the first transmission strategy. Electronic device 10 .
  • an optimal transmission strategy can be selected from the multiple transmission strategies matched by the link ii as the strategy. Find a transport policy that matches the request.
  • the optimal transmission strategy may be the transmission strategy with the maximum transmission speed among the multiple transmission strategies, or the transmission strategy with the smallest difference in the total data volume; if there are multiple transmission strategies with the smallest difference in the total data volume, you can choose another transmission strategy. The one with the highest transfer speed.
  • the query terminal 12 may also feed back the search result information with an empty match to the first electronic device 10 , the first electronic device 10 will use the default transmission policy to transmit the data to be transmitted.
  • the order of judging the data category and the total data amount can be changed.
  • link ii is: screening out the transmission strategy matching the impact factor f 4 from the multiple transmission strategies matched by link i, that is, screening out the transmission strategy matching the data to be transmitted this time from the multiple transmission strategies matched by link i.
  • a transmission strategy that is the same as the data category of the data to be transmitted this time is filtered out of the transmission strategies.
  • the query terminal 12 can sequentially calculate the comprehensive difference between each transmission strategy screened from the link iii and the influence factors f 5 to f 15 of the data to be transmitted this time based on the preset deviation calculation formula, and then select the transmission strategy with the smallest comprehensive difference. As the transport policy that matches this policy lookup request.
  • the above-mentioned screening step iv is described by taking an example that the data to be transmitted this time includes impact factors f 5 to f 15 .
  • the data to be transmitted this time can also only include some of the impact factors in the impact factors f 5 to f 15 , for example, the impact factors f 5 to f 8 are included, and the impact factors are selected from the multiple transmission strategies matched in link iii.
  • the transmission strategy with the smallest comprehensive difference of f 5 to f 8 is used as the transmission strategy matching the strategy search request.
  • the transmission strategy screened from the link iii includes the transmission strategy M 1 , the transmission strategy M 2 and the transmission strategy M 3 .
  • the data to be transmitted this time includes impact factors f5 (the amount of APP data is 800M), f6 (the amount of video data is 2G, that is, 2048M), f7 (the amount of picture data is 900M), f8 ( The amount of music data is 800M).
  • the transmission strategy with the smallest comprehensive difference value is selected as the transmission strategy matching the strategy search request. For example, if V1>V2> V3 , the query terminal 12 will select the transmission policy M3 as the transmission policy matching the policy search request, and send the transmission policy M3 to the first electronic device 10 .
  • the query terminal 12 feeds back the search result to the first electronic device 10 .
  • the query terminal 12 if the query terminal 12 finds a transmission policy matching the policy search request from the preset policy library, the query terminal 12 feeds back the found transmission policy to the first electronic device 10 . If the query terminal 12 fails to find a transmission policy matching the policy search request from the preset policy library, the query terminal 12 feeds back the search result information that matches the empty search result to the first electronic device 10. At this time, the first electronic device 10 The data to be transferred will be transferred using the default transfer policy.
  • the first electronic device 10 feeds back the transmission information to the query terminal 12.
  • the transmission information may include at least an average transmission speed.
  • the transmission information during the data transmission process may be counted, and the The transmission information is fed back to the query terminal 12, and then the query terminal 12 can update the transmission policy according to the transmission information.
  • the first electronic device 10 may include a first processor 1001 , a first memory 1002 and a first communication bus 1003 .
  • the first memory 1002 is used to store one or more first computer programs 1004 .
  • One or more first computer programs 1004 are configured to be executed by the first processor 1001 .
  • the one or more first computer programs 1004 include instructions that can be used to implement the data transmission method described above in the first electronic device 10 .
  • the structure illustrated in this embodiment does not constitute a specific limitation on the first electronic device 10 .
  • the first electronic device 10 may include more or less components than shown, or combine some components, or separate some components, or different component arrangements.
  • the server 13 may include a second processor 2001 , a second memory 2002 and a second communication bus 2003 .
  • the second memory 2002 is used to store one or more second computer programs 2004 .
  • One or more second computer programs 2004 are configured to be executed by the second processor 2001 .
  • the one or more second computer programs 2004 include instructions that can be used to implement the above-mentioned data transmission method in the server 13 .
  • the structure illustrated in this embodiment does not constitute a specific limitation on the server 13 .
  • the server 13 may include more or fewer components than shown, or combine some components, or separate some components, or different component arrangements.
  • Both the first processor 1001 and the second processor 2001 may include one or more processing units, for example, the first processor 1001 may include an application processor (application processor, AP), a modem, a graphics processing unit (graphics processing unit, GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processor processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor
  • AP application processor
  • modem graphics processing unit
  • graphics processing unit graphics processing unit
  • ISP image signal processor
  • DSP digital signal processor
  • NPU neural-network processor processing unit
  • Both the first processor 1001 and the second processor 2001 may also be provided with a memory for storing instructions and data.
  • the memory in the first processor 1001 and the second processor 2001 is a cache memory.
  • the memory may store instructions or data that have just been used or recycled by the first processor 1001 (the second processor 2001 ). If the first processor 1001 (the second processor 2001 ) needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided and the waiting time of the first processor 1001 (the second processor 2001 ) is reduced, thereby improving the efficiency of the system.
  • both the first processor 1001 and the second processor 2001 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, SIM interface, and/or USB interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • both the first memory 1002 and the second storage area 2002 may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), Secure Digital (SD) card, Flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), Secure Digital (SD) card, Flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • This embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are executed on the electronic device, the electronic device executes the above-mentioned relevant method steps to implement the data transmission method in the above-mentioned embodiment.
  • This embodiment also provides a computer program product, which when the computer program product runs on the computer, causes the computer to execute the above-mentioned relevant steps, so as to realize the data transmission method in the above-mentioned embodiment.
  • the embodiments of the present application also provide an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the data transmission method in each of the above method embodiments.
  • the first electronic device, computer storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the provided above. The beneficial effects in the corresponding method will not be repeated here.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined. Or it may be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a readable storage medium.
  • a readable storage medium including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Library & Information Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例提供了一种数据传输方法,涉及电子设备领域。在进行数据传输时,获取传输端的硬件信息、接收端的硬件信息及传输端中待传输数据的数据信息,并将该些信息反馈至查询端,以从查询端获取与当前传输情形匹配的传输策略。本申请实施例还提供了一种电子设备及计算机可读存储介质。本申请可解决传统采用固定发送策略导致数据迁移效率低的问题,根据当前传输情形选用适合自身的传输策略,可提高数据迁移效率,提升用户使用体验。

Description

数据传输方法、电子设备及计算机可读存储介质
本申请要求于2020年11月30日提交中国专利局,申请号为202011379409.0、申请名称为“数据传输方法、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种数据传输方法、电子设备及计算机可读存储介质。
背景技术
当前用户更换电子设备的频率很高,大部分用户在换机时会选择将旧电子设备中的数据迁移到新购买的电子设备中。随着电子设备存储空间的提升,现在很多用户的电子设备都存储有超过几十G,甚至上百G的数据,如何快速完成数据迁移是用户换机体验一个重要组成部分。
比如,用户在进行手机换机过程中,涉及到诸如短信、联系人、备忘录、图片、视频、音乐、文档、应用数据等数据类别的迁移。现有的手机数据迁移策略,一般都是按照预设传输顺序对每一类别数据进行发送。但是不同手机具有不同的性能,需要进行数据迁移的数据类别和数据量也可能不一样,使用固定传输顺序的迁移策略不能让所有手机在换机时速度达到最优,无法给用户带来较佳的换机体验。
发明内容
有鉴于此,有必要提供一种数据传输方法,其可克服上述问题,使得电子设备可以灵活使用适合自身的数据传输策略,提升数据迁移效率及用户换机体验。
本申请实施例第一方面公开了一种数据传输方法,包括:响应接收到的策略查询请求,从预设策略库中查找与所述策略查询请求匹配的传输策略,其中所述策略查询请求包括传输端的硬件信息、接收端的硬件信息及所述传输端中待传输数据的数据信息,所述数据信息包括所述待传输数据的总数据量、所述待传输数据所包含的数据类别及每一数据类别的数据量;将所述策略查询请求的查询结果反馈至所述传输端。
通过采用该技术方案,可实现根据传输端的硬件信息、接收端的硬件信息及传输端中待传输数据的数据信息匹配出适合当前传输情形的传输策略,提高数据迁移效率,及提升用户换机体验。
在一种可能的实现方式中,所述将所述策略查询请求的查询结果反馈至所述传输端,包括:若从所述预设策略库中查找到与所述策略查询请求匹配的传输策略,将查找到的传输策略反馈至所述传输端;或若从所述预设策略库中未能查找到与所述策略查询请求匹配的传输策略,反馈匹配为空的查找结果信息至所述传输端。
通过采用该技术方案,可在预设策略库中查找到与策略查询请求匹配的传输策略时,采用该匹配的传输策略进行数据传输,提高数据迁移效率,当未能在预设策略库中查找到与策 略查询请求匹配的传输策略时,采用默认传输策略进行数据,保证数据迁移顺利完成。
在一种可能的实现方式中,所述方法还包括:当接收到针对发送给所述传输端的传输策略所反馈的传输信息时,利用所述传输信息更新所述传输策略,其中所述传输信息至少包括平均传输速度。
通过采用该技术方案,可以结合实际数据传输结果来更新预设策略库中的传输策略的信息,实现对预设策略库进行优化。
在一种可能的实现方式中所述从预设策略库中查找与所述策略查询请求匹配的传输策略,包括:
从所述预设策略库中查找与所述传输端的硬件信息及所述接收端的硬件信息匹配的第一传输策略;
若查找得到多个所述第一传输策略,从多个所述第一传输策略中查找与所述待传输数据所包含的数据类别相同的第二传输策略;
若查找得到多个所述第二传输策略,从多个所述第二传输策略中查找与所述待传输数据的总数据量的差值在预设差值范围内的第三传输策略。
通过采用该技术方案,可实现从预设策略库中查找与策略查询请求匹配的传输策略,提高数据迁移效率。
在一种可能的实现方式中,所述从预设策略库中查找与所述策略查询请求匹配的传输策略,包括:
从所述预设策略库中查找与所述传输端的硬件信息及所述接收端的硬件信息匹配的第一传输策略;
若查找得到多个所述第一传输策略,从多个所述第一传输策略中查找与所述待传输数据的总数据量的差值在预设差值范围内的第二传输策略;
若查找得到多个所述第二传输策略,从多个所述第二传输策略中查找与所述待传输数据所包含的数据类别相同的第三传输策略。
通过采用该技术方案,可实现从预设策略库中查找与策略查询请求匹配的传输策略,提高数据迁移效率。
在一种可能的实现方式中,所述从预设策略库中查找与所述策略查询请求匹配的传输策略,还包括:
若查找得到多个所述第三传输策略,从多个所述第三传输策略中筛选出与所述待传输数据的每一数据类别的综合差值最小的传输策略,作为与所述策略查找请求匹配的传输策略。
通过采用该技术方案,可实现从预设策略库中查找与策略查询请求匹配的传输策略,提高数据迁移效率。
在一种可能的实现方式中,所述方法还包括:若所述预设策略库中不存在与所述传输端的硬件信息及所述接收端的硬件信息匹配的第一传输策略,反馈匹配为空的查找结果信息至所述传输端。
通过采用该技术方案,可实现在未能从预设策略库中查找到与策略查询请求匹配的传输策略时,通知传输端,使得传输端可以采用默认传输策略进行数据,保证数据迁移顺利完成。
在一种可能的实现方式中,所述方法还包括:所述从所述预设策略库中查找与所述传输端的硬件信息及所述接收端的硬件信息匹配的第一传输策略,包括:从所述预设策略库中查找与所述传输端和所述接收端的设备型号、内存大小与存储容量均相同的第一传输策略;或 从所述预设策略库中查找与所述传输端和所述接收端的CPU型号、内存大小与存储容量均相同的第一传输策略。
通过采用该技术方案,可实现在设备型号、内存大小与存储容量均相同的情形下,认定为与传输端的硬件信息及接收端的硬件信息匹配,在CPU型号、内存大小与存储容量均相同的情形下,同样可以认定为与传输端的硬件信息及接收端的硬件信息匹配。
在一种可能的实现方式中,所述方法还包括:若查找得到所述第一传输策略的个数为一个,将所述第一传输策略作为与所述策略查找请求匹配的传输策略;或若查找得到所述第二传输策略的个数为一个,将所述第二传输策略作为与所述策略查找请求匹配的传输策略。
通过采用该技术方案,可实现从预设策略库中查找与策略查询请求匹配的传输策略,提高数据迁移效率。
在一种可能的实现方式中,若从多个所述第一传输策略中未查找到与所述待传输数据所包含的数据类别相同的第二传输策略,从多个所述第一传输策略中选择具有最大平均传输速度的传输策略作为与所述策略查找请求匹配的传输策略;或若从多个所述第二传输策略中未查找到与所述待传输数据的总数据量的差值在所述预设差值范围内的第三传输策略,从多个所述第二传输策略中选择与所述待传输数据的总数据量的差值为最小的传输策略作为与所述策略查找请求匹配的传输策略。
通过采用该技术方案,可实现从预设策略库中查找与策略查询请求匹配的传输策略,提高数据迁移效率。
在一种可能的实现方式中,所述方法还包括:若从多个所述第一传输策略中未查找到与所述待传输数据的总数据量的差值在所述预设差值范围内的第二传输策略,从多个所述第一传输策略中选择与所述待传输数据的总数据量的差值为最小的传输策略作为与所述策略查找请求匹配的传输策略;或若从多个所述第二传输策略中未查找到与所述待传输数据所包含的数据类别相同的第三传输策略,从多个所述第二传输策略中选择具有最大平均传输速度的传输策略作为与所述策略查找请求匹配的传输策略。
通过采用该技术方案,可实现从预设策略库中查找与策略查询请求匹配的传输策略,提高数据迁移效率。
在一种可能的实现方式中,所述待传输数据包括i个数据类别,i为大于或等于1的自然数,所述从多个所述第三传输策略中筛选出与所述待传输数据的每一数据类别的综合差值最小的传输策略之前,还包括:基于预设偏差计算公式依次计算每一所述第三传输策略与所述待传输数据的每一数据类别的综合差值;其中,所述预设偏差计算公式为:V=Sum(p i*|f i–f i’|),V为所述综合差值,p i为第i数据类别的权重,f i为所述待传输数据的第i数据类别的数据量,f i’为所述第三传输策略所对应的第i数据类别的数据量,|f i–f i’|为f i与f i’之间的差值的绝对值。
通过采用该技术方案,可实现从预设策略库中查找与策略查询请求匹配的传输策略,提高数据迁移效率。
本申请实施例第二方面公开了一种数据传输方法,包括:在传输端与接收端满足传输条件时,获取所述传输端的硬件信息、所述接收端的硬件信息及所述传输端中待传输数据的数据信息,其中所述数据信息包括所述待传输数据的总数据量、所述待传输数据所包含的数据类别及每一数据类别的数据量;发送策略查找请求至查询端,其中所述策略查找请求包括所述传输端的硬件信息、所述接收端的硬件信息及所述传输端中待传输数据的数据信息,所述 查询端设置于所述传输端内,或设置于服务器内;接收所述查询端针对所述策略查找请求反馈的查找结果,以基于所述查询结果确定所述待传输数据的传输方式。
通过采用该技术方案,可实现根据传输端的硬件信息、接收端的硬件信息及传输端中待传输数据的数据信息从查询端中匹配出适合当前传输情形的传输策略,提高数据迁移效率,及提升用户换机体验。
在一种可能的实现方式中,所述基于所述查询结果确定所述待传输数据的传输方式,包括:若所述查找结果为所述查询端查找到的与所述策略查找请求匹配的传输策略,利用所述查询端查找到的传输策略传输所述待传输数据;或若所述查找结果为匹配为空的信息,利用默认传输策略传输所述待传输数据。
通过采用该技术方案,可在查询端查找到与策略查询请求匹配的传输策略时,采用该匹配的传输策略进行数据传输,提高数据迁移效率,当查询端未能查找到与策略查询请求匹配的传输策略时,采用默认传输策略进行数据,保证数据迁移顺利完成。
在一种可能的实现方式中,所述方法还包括:反馈利用所述查询端查找到的传输策略进行所述待传输数据传输的传输信息至所述查询端,其中所述传输信息至少包括平均传输速度。
通过采用该技术方案,可以结合实际数据传输结果来更新查询端所存储的传输策略的信息,实现对查询端所存储的传输策略进行优化。
在一种可能的实现方式中,所述方法还包括:根据预设梯队划分规则对所述待传输数据所包含的数据类别进行传输梯队划分;若所述待传输数据所包含的数据类别被划分为同一个传输梯队,利用默认传输策略传输所述待传输数据;若所述待传输数据所包含的数据类别被划分为两个或两个以上的传输梯队,发送所述策略查找请求至查询端。
通过采用该技术方案,当待传输数据所包含的数据类别仅归属一个传输梯队时,无需从查询端获取传输策略,直接采用默认传输策略进行数据传输,当待传输数据所包含的数据类归属于两个或两个以上的传输梯队时,向查询端发起策略查找请求,以匹配出适合当前传输情形的传输策略。
在一种可能的实现方式中,所述预设梯队划分规则包括:将不需要进行数据准备的数据类别划分为第一传输梯队;将采用第一种方式进行数据准备的数据类别划分为第二传输梯队;将采用第二种方式进行数据准备的数据类别划分为第三传输梯队;其中,所述第一种方式与所述第二种方式不相同。
通过采用该技术方案,实现对待传输数据所包含的数据类别进行传输梯队划分。
在一种可能的实现方式中,所述默认传输策略包括:按照所述第一传输梯队、所述第二传输梯队、所述第三传输梯队的顺序依次进行数据传输;在所述第一传输梯队中,或在所述第二传输梯队中,或在所述第三传输梯队中,按照每一所述数据类别的数据量大小从大到小,或从小到大的顺序依次进行数据传输。
通过采用该技术方案,当采用默认传输策略进行数据传输时,将按照传输梯队顺序进行依次传输,对于每一传输梯队中的数据类别,按照数据量大小顺序依次进行传输。
第三方面,本申请实施例提供一种计算机可读存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面或第二方面所述的数据传输方法。
第四方面,本申请实施例提供一种电子设备,所述电子设备包括处理器和存储器,所述存储器用于存储指令,所述处理器用于调用所述存储器中的指令,使得所述电子设备执行 如第一方面或第二方面所述的数据传输方法。
第五方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行如第一方面或第二方面所述的数据传输方法。
第六方面,本申请实施例提供一种装置,该装置具有实现上述第一方面或第二方面所提供的方法中第一电子设备行为的功能。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。
可以理解地,上述提供的第三方面所述的计算机可读存储介质,第四方面所述的电子设备,第五方面所述的计算机程序产品,第六方面所述的装置均与上述第一方面或第二方面的方法对应,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1为本申请一实施例提供的数据传输系统的架构示意图;
图2为本申请一实施例提供的数据传输方法的流程示意图;
图3为本申请另一实施例提供的数据传输方法的流程示意图;
图4为本申请又一实施例提供的数据传输方法的流程示意图;
图5为本申请又一实施例提供的数据传输方法的流程示意图;
图6为本申请一实施例提供的第一电子设备与查询端进行数据交互的交互示意图;
图7为本申请一实施例提供的一种可能的第一电子设备的结构示意图;
图8为本申请一实施例提供的一种可能的服务器的结构示意图。
具体实施方式
需要说明的是,本申请中“至少一个”是指一个或者多个,“多个”是指两个或多于两个。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。本申请的说明书和权利要求书及附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不是用于描述特定的顺序或先后次序。
为了便于理解,示例性的给出了部分与本申请实施例相关概念的说明以供参考。
下面结合图1示例性的介绍本发明实施例提供的数据传输系统的架构示意图。
数据传输系统100可以包括第一电子设备10、第二电子设备11及查询端12。第一电子设备10与第二电子设备11可以是手机、平板电脑等消费类电子产品。下文为便于描述多个设备之间的数据传输,假设第一电子设备10为数据迁移的发起端,第二电子设备11为数据迁移的接收端,第一电子设备10存储的数据可以通过无线网络或有线网络迁移至第二电子设备11。
在一些实施例中,第一电子设备10存储的数据可以被划分为多个数据类别,例如第一电子设备10存储的数据被划分为11个数据类别。第一数据类别对应短信数据,第二数据类别对应联系人数据,第三数据类别对应通话记录数据,第四数据类别对应备忘录数据,第五数据类别对应图片数据,第六数据类别对应视频数据,第七数据类别对应音乐数据,第八数据类别对应录音数据,第九数据类别对应文档数据,第十数据类别对应应用程序(Application,APP)数据,第十一数据类别对应系统设置数据。
在一些实施例中,查询端12可以设置于第一电子设备10内,也可以设置于其他设备中,如服务器内。查询端12可以是具备策略查找请求功能的应用、插件、或软硬件功能模块。若查询端12设置于第一电子设备10内,预设策略库亦可以存储在第一电子设备10;若查询端12设置于服务器内,预设策略库亦可以存储在该服务器。预设策略库包括多条传输策略,每一传输策略可以定义有多个数据类别的传输顺序。例如,预设策略库包括传输策略M 1~M n,n为大于1的正整数。传输策略M 1定义有传输端P 1(例如,第一电子设备10)的硬件信息、接收端Q 1(例如,第二电子设备11)的硬件信息、传输端P 1的待传输数据的数据类别、传输端P 1的待传输数据的总数据量及每一数据类别的数据量,传输策略M n定义有传输端P n的硬件信息、接收端Q n的硬件信息、传输端P n的待传输数据的数据类别、传输端P n的待传输数据的总数据量及每一数据类别的数据量。
在一些实施例中,当查询端12设置于第一电子设备10内时,由第一电子设备10对预设策略库进行本地实时或定时更新,进而当第一电子设备10与第二电子设备11满足传输条件时,查询端12从第一电子设备10本地存储的预设策略库中查找出与当前传输情形匹配的传输策略,实现无需依赖网络进行传输策略的查询。当查询端12设置于服务器内时,由服务器对预设策略库进行本地实时或定时更新,第一电子设备10可以发送策略查找请求至服务器,由设置在服务器上的查询端12响应该策略查找请求,并反馈查找结果至第一电子设备10。
在一些实施例中,该预设策略库可以通过以下方式构建得到:当将第一电子设备10的数据迁移至第二电子设备11时,记录第一电子设备10中待传输数据的总数据量、待传输数据的数据类别及每一数据类别的数据量,对第一电子设备10的数据类别的发送顺序进行排列组合得到多组传输策略,记录每一组传输策略的平均传输速度及传输耗时。可以理解,采用该方式可以记录得到多种型号的电子设备在不同传输策略下进行数据迁移的平均传输速度及传输耗时。
当第一电子设备10与第二电子设备11满足传输条件时,第一电子设备10可以与查询端12进行通信,以从预设策略库中查找出与当前传输情形匹配的传输策略。该传输条件可以为第一电子设备10与第二电子设备11建立通信连接后,第一电子设备10开始执行数据传输的条件。例如,可以在第一电子设备10上安装能够触发传输条件的应用程序(APP),在使用过程中,可以进入到该APP的指定界面,并在该指定界面点击与该传输条件对应的图标,进而触发第一电子设备10开始进行数据迁移。在另一实施例中,也可以是直接在第一电子设备10选中待传输数据,通过触控预设操作,例如长按操作,弹出相应的发送选项,在使用者选择对应选项后触发数据迁移。进一步地,还可以根据语音指令在第一电子设备10中搜索符合条件的待传输数据以触发数据迁移。
该当前传输情形可以包括第一电子设备10的硬件信息、第二电子设备11的硬件信息及第一电子设备10中待传输数据的数据信息。所述硬件信息可以包括设备型号、中央处理器(CPU)型号、内存大小、存储容量等参数。待传输数据的数据信息可以包括待传输数据的数据类型、待传输数据的总数据量、每一数据类型的数据量。当第一电子设备10与第二电子设备11满足传输条件时,第一电子设备10可以发送策略查找请求至查询端12,由查询端12根据预设查找规则从预设策略库中查找出与当前传输情形匹配的传输策略,并将查找到的传输策略反馈给第一电子设备10,第一电子设备10可以基于从查询端12接收到的传输策略将待传输数据迁移至第二电子设备11。
在一些实施例中,当预设策略库中不存在与当前传输情形匹配的传输策略时,比如,查询端12返回匹配为空的查找结果信息至第一电子设备10,第一电子设备10将采用默认传输策略将待传输数据迁移至第二电子设备11。
在一些实施例中,当第一电子设备10采用默认传输策略进行数据迁移时,默认传输策略中每一数据类型的发送顺序可以根据数据量进行设定。为了实现更快地传输数据,默认传输策略一般基于以下两点进行制定:a.保持数据传输通道优先发送数据量大的数据类别;b.基于每一数据类别的准备时间来权衡发送顺序。
例如,将不需要额外花费时间准备的数据类别划分为第一传输梯队,该第一传输梯队可以包括图片数据、视频数据、文档数据、音乐数据和录音数据,将需要额外花费时间进行第一种方式(例如从数据库中查询出数据并保存至本地)准备的数据类别划分为第二传输梯队,该第二传输梯队可以包括APP数据,将需要额外花费时间进行第二种方式(例如从内存中查询出数据并保存至本地)准备的数据类别划分为第三传输梯队,该第三传输梯队可以包括短信数据、联系人数据、备忘录数据、通话记录数据和系统设置数据。当采用默认传输策略进行数据传输时,将按照第一传输梯队、第二传输梯队、第三传输梯队的顺序进行依次发送。对于每一传输梯队而言,该传输梯队内的每一数据类别可以按照数据类别的数据量大小从大到小顺序依次发送(若为相同数据量,则可以进行随机发送)。对于每一数据类别而言,同样可以设置将该数据类别下的文件(例如每一张图片、每一个视频)按照数据大小从大到小顺序依次发送,也可以从小到大顺序依次发送,也可以随机进行发送。
可以理解,该默认传输策略并不是一成不变的,其与当前待传输数据的数据类别、每一数据类别的数据量有关。
参照图2所示,本申请实施例提供的一种数据传输方法,应用于第一电子设备10中,以实现将第一电子设备10中的待传输数据备份至第二电子设备11。本实施例中,数据传输方法包括:
21、获取待传输数据所属的传输梯队的数量。
在一些实施例中,第一电子设备10中的待传输数据被分类至十一个数据类别中的一个或多个数据类别,即第一电子设备10中的待传输数据可以被归纳至第一传输梯队、第二传输梯队、第三传输梯队中的一个或多个传输梯队。例如,待传输数据仅包括图片数据和视频数据,而图片数据和视频数据均属于第一传输梯队,即待传输数据所属的传输梯队的数量为一个;再例如,待传输数据仅包括图片数据、视频数据和APP数据,图片数据和视频数据均属于第一传输梯队,APP数据属于第二传输梯队,即待传输数据所属的传输梯队的数量为二个;再例如,待传输数据仅包括图片数据、APP数据和联系人数据,图片数据属于第一传输梯队,APP数据属于第二传输梯队,联系人数据属于第三传输梯队,即待传输数据所属的传输梯队的数量为三个。
22、若待传输数据所属的传输梯队的数量为一个,采用默认传输策略传输该待传输数据。
在一些实施例中,若待传输数据所属的传输梯队的数量为一个,第一电子设备10无需从预设策略库中获取与待传输数据匹配的传输策略,直接采用默认传输策略传输该待传输数据。例如,待传输数据仅包括第一传输梯队的数据,按照每一数据类别的数据量大小 从大到小顺序依次发送。假设,待传输数据包括800M的图片数据、1G的视频数据及100M的文档数据,则默认传输策略为先传送1G的视频数据,再传送800M的图片数据,最后传送100M的文档数据。再例如,待传输数据仅包括第二传输梯队的数据,即待传输数据为APP数据,可以按照每一APP的数据量大小从大到小顺序依次发送。假设,待传输数据包括100M的第一APP数据、80M的第二APP数据及500M的第三APP数据,则默认传输策略为先传送500M的第三APP数据,再传送100M的第一APP数据,最后传送80M的第二APP数据。
23、若待传输数据所属的传输梯队的数量大于一个,发送策略查找请求至查询端12。
在一些实施例中,若待传输数据所属的传输梯队的数量大于一个,第一电子设备10将发送策略查找请求至查询端12,进而查询端12可以根据预设查找规则从预设策略库中查找出与该策略查找请求匹配的传输策略。策略查找请求可以包括第一电子设备10的硬件信息、第二电子设备11的硬件信息、待传输数据的总数据量、待传输数据所包含的数据类别及每一数据类别的数据量。
例如,待传输数据所属的传输梯队包括第一传输梯队与第二传输梯队,第一电子设备10将会发送策略查找请求至查询端12,以进行传输策略查找。
24、若从查询端12接收到与该策略查找请求匹配的传输策略,基于接收到的传输策略将待传输数据传输至第二电子设备11。
在一些实施例中,当查询端12查找出与该策略查找请求匹配的传输策略时,查询端12将会将查找到的传输策略反馈至第一电子设备10,进而第一电子设备10可以接收到查询端12查找到的传输策略。当第一电子设备10从查询端12接收到传输策略时,将会利用接收到的传输策略将待传输数据迁移至第二电子设备11。
25、将采用该接收到的传输策略进行待传输数据传输的传输信息反馈至查询端12,所述传输信息至少包括平均传输速度。
在一些实施例中,在第一电子设备10利用接收到的传输策略进行待传输数据传输时,可以统计数据传输过程中的传输信息,并将传输信息反馈给查询端12,进而查询端12可以根据该传输信息更新该传输策略。传输信息可以包括平均传输速度、或者平均传输速度与传输耗时。
比如,预设策略库中的每一传输策略均还记录有对应的平均传输速度。查询端12确定传输策略M 1为策略查找请求匹配的传输策略,查询端12将传输策略M 1发送给第一电子设备10,第一电子设备10采用传输策略M 1将待传输数据传输至第二电子设备11,第一电子设备10可以统计本次采用传输策略M 1进行待传输数据传输的平均传输速度,并在完成待传输数据传输后,将平均传输速度反馈给查询端12,查询端12将会利用接收到的平均传输速度来更新传输策略M 1的平均传输速度。
26、若从查询端12接收到与该策略查找请求匹配为空的查找结果信息,采用默认传输策略传输该待传输数据。
可以理解,步骤24与步骤26为并列执行的步骤,当执行完步骤23时,可以选择执行步骤24与步骤25,或者直接执行步骤26。
在一些实施例中,当查询端12未能从预设策略库中查找出与该策略查找请求匹配的传输策略时,表明预设策略库中不存在与该策略查找请求匹配的传输策略,查询端12可以发送与该策略查找请求匹配为空的查找结果信息至第一电子设备10。由于无法从预设 策略库中获取传输策略,为了实现传输该待传输数据,第一电子设备10将采用默认传输策略传输该待传输数据。
例如,待传输数据包括第一传输梯队与第二传输梯队的数据,该默认传输策略为先发送第一传输梯队的数据,再发送第二传输梯队的数据。对于第一传输梯队而言,可以按照第一传输梯队中每一数据类别的数据量大小从大到小顺序依次发送,对于第二传输梯队而言,可以按照每一APP的数据量大小从大到小顺序依次发送。例如,待传输数据包括第二传输梯队与第三传输梯队的数据,该默认传输策略为先发送第二传输梯队的数据,再发送第三传输梯队的数据。对于第三传输梯队而言,可以按照第三传输梯队中每一数据类别的数据量大小从大到小顺序依次发送。例如,待传输数据包括第一传输梯队、第二传输梯队与第三传输梯队的数据,该默认传输策略为先发送第一传输梯队的数据,再发送第二传输梯队的数据,最后发送第三传输梯队的数据。
上述数据传输方法,可根据待传输数据所属的传输梯队的数量来确定是否需要从查询端获取传输策略,使得传输策略选择更灵活,当从查询端获取到传输策略时,采用该获取到的传输策略传输数据,提高数据传输效率,当未能从查询端获取到传输策略时,采用默认传输策略传输数据,保证数据迁移能顺利完成。
参照图3所示,本申请实施例提供的一种数据传输方法,应用于第一电子设备10中。本实施例中,以查询端12设置在服务器上为例进行说明,数据传输方法包括:
31、获取第一电子设备10的硬件信息、第二电子设备11的硬件信息及第一电子设备10中待传输数据的数据信息。
在一些实施例中,当第一电子设备10与第二电子设备11满足传输条件时,第一电子设备10可以获取自身的硬件信息,第二电子设备11的硬件信息及待传输数据的数据信息。第一电子设备10的硬件信息可以包括设备型号、CPU型号、内存大小、存储容量等参数。第二电子设备11的硬件信息同样可以包括设备型号、CPU型号、内存大小、存储容量等参数。待传输数据的数据信息可以包括待传输数据的数据类型、待传输数据的总数据量、每一数据类型的数据量等信息。
32、发送策略查找请求至服务器。
在一些实施例中,该策略查找请求包括第一电子设备10的硬件信息、第二电子设备11的硬件信息及待传输数据的数据信息。待传输数据的数据信息可以包括待传输数据的总数据量、待传输数据所包含的数据类别及每一数据类别的数据量。预设策略库存储在服务器上,设置在服务器上的查询端12可以响应该策略查找请求,并在预设策略库中查找与其匹配的传输策略。
33、若从查询端12接收到与该策略查找请求匹配的传输策略,基于接收到的传输策略将待传输数据迁移至第二电子设备11。
34、将采用该接收到的传输策略进行待传输数据传输的传输信息反馈至服务器,所述传输信息至少包括平均传输速度。
35、若从查询端12接收到与该策略查找请求匹配为空的查找结果信息,采用默认传输策略传输该待传输数据。
可以理解,步骤33与步骤35为并列执行的步骤,当执行完步骤32时,可以选择执行步骤33与步骤34,或者直接执行步骤35。
上述数据传输方法,根据传输端的硬件信息、接收端的硬件信息及传输端中待传输数据 的数据信息从服务器获取传输策略,以提高数据传输效率,当未能从服务器获取到传输策略时,采用默认传输策略传输数据,保证数据迁移能顺利完成。
参照图4所示,本申请实施例提供的一种数据传输方法,应用于第一电子设备10中。本实施例中,以预设策略库存储在第一电子设备10上为例进行说明,数据传输方法包括:
41、获取第一电子设备10的硬件信息、第二电子设备11的硬件信息及第一电子设备10中待传输数据的数据信息。
在一些实施例中,当第一电子设备10与第二电子设备11满足传输条件时,第一电子设备10可以获取自身的硬件信息,第二电子设备11的硬件信息及待传输数据的数据信息。第一电子设备10的硬件信息可以包括设备型号、CPU型号、内存大小、存储容量等参数。第二电子设备11的硬件信息同样可以包括设备型号、CPU型号、内存大小、存储容量等参数。待传输数据的数据信息可以包括待传输数据的数据类型、待传输数据的总数据量、每一数据类型的数据量等信息。
42、发送策略查找请求至查询端12。
在一些实施例中,该策略查找请求包括第一电子设备10的硬件信息、第二电子设备11的硬件信息及待传输数据的数据信息。待传输数据的数据信息可以包括待传输数据的总数据量、待传输数据所包含的数据类别及每一数据类别的数据量。查询端12可以响应策略查找请求从预设策略库中查找与其匹配的传输策略。
43、若从查询端12接收到与该策略查找请求匹配的传输策略,基于接收到的传输策略将待传输数据迁移至第二电子设备11。
44、将采用该接收到的传输策略进行待传输数据传输的传输信息反馈至查询端12,所述传输信息至少包括平均传输速度。
45、若从查询端12接收到与该策略查找请求匹配为空的查找结果信息,采用默认传输策略传输该待传输数据。
可以理解,步骤43与步骤45为并列执行的步骤,当执行完步骤42时,可以选择执行步骤43与步骤44,或者直接执行步骤45。
上述数据传输方法,根据传输端的硬件信息、接收端的硬件信息及传输端中待传输数据的数据信息从第一电子设备的本地策略库中查找传输策略,以提高数据传输效率,当未能从本地策略库查找到传输策略时,采用默认传输策略传输数据,保证数据迁移能顺利完成。
参照图5所示,本申请实施例提供的一种数据传输方法,应用于查询端12中。本实施例中,数据传输方法包括:
51、当接收到策略查找请求时,根据预设查找规则从预设策略库中查找与策略查找请求匹配的传输策略。
在一些实施例中,当查询端12接收到策略查找请求时,将会根据预设查找规则尝试从预设策略库中查找与策略查找请求匹配的传输策略。
52、若从预设策略库中查找到与该策略查找请求匹配的传输策略时,将查找到的传输策略反馈至发起该策略查找请求的终端。
在一些实施例中,比如是第一电子设备10发送的策略查找请求,当查询端12从预设策略库中查找到与该策略查找请求匹配的传输策略时,查询端12将查找到的传输策略反馈至第一电子设备10。
53、当接收到针对该传输策略反馈的传输信息时,利用该传输信息更新该传输策略。
在一些实施例中,当发起该策略查找请求的终端利用接收到的传输策略进行数据传输时,终端可以统计数据传输过程中的传输信息,并将传输信息反馈给查询端12,该传输信息至少包括平均传输速度。查询端12可以根据该传输信息更新该传输策略。
54、若从预设策略库中未能查找到与该策略查找请求匹配的传输策略时,反馈匹配为空的查找结果信息至发起该策略查找请求的终端。
可以理解,步骤52与步骤54为并列执行的步骤,当执行完步骤51时,可以选择执行步骤52与步骤53,或者直接执行步骤54。
在一些实施例中,比如是第一电子设备10发送的策略查找请求,当查询端12未能从预设策略库中查找到与该策略查找请求匹配的传输策略时,查询端12将反馈匹配为空的查找结果信息至第一电子设备10。
下面结合图6示例性的介绍本申请实施例提供的第一电子设备10与查询端12之间的数据交互示意图。
61、第一电子设备10向查询端12发送策略查找请求。
在一些实施例中,策略查找请求包括第一电子设备10的硬件信息、第二电子设备11的硬件信息、待传输数据的总数据量、待传输数据所包含的数据类别及每一数据类别的数据量。比如,将第一电子设备10的硬件信息定义为影响因子f 1,将第二电子设备11的硬件信息定义为影响因子f 2,将待传输数据所包含的数据类别定义为影响因子f 3,将待传输数据的总数据量定义为影响因子f 4,将待传输数据中的APP数据定义为影响因子f 5,将待传输数据中的视频数据定义为影响因子f 6,将待传输数据中的图片数据定义为影响因子f 7,将待传输数据中的音乐数据定义为影响因子f 8,将待传输数据中的文档数据定义为影响因子f 9,将待传输数据中的录音数据定义为影响因子f 10,将待传输数据中的短信数据定义为影响因子f 11,将待传输数据中的联系人数据定义为影响因子f 12,将待传输数据中的通话记录数据定义为影响因子f 13,将待传输数据中的备忘录数据定义为影响因子f 14,将待传输数据中的系统设置数据定义为影响因子f 15
62、查询端12基于预设查找规则从预设策略库查找与该策略查找请求匹配的传输策略。
在一些实施例中,预设策略库包括多个传输策略,每一传输策略可以以队列的样式进行表示,队列中元素的顺序即为数据类别的发送顺序。比如,传输策略M 1={n 1,n 2,n 3,..,n i},n i表示第i个发送的数据类别。
在一些实施例中,当查询端12接收到策略查找请求时,将按照如下查找规则在该预设策略库中进行传输策略的匹配:
i、从预设策略库中筛选出与影响因子f 1、影响因子f 2均匹配的传输策略。其中,与影响因子f 1匹配的传输策略可以是指与第一电子设备10的设备型号、内存大小及存储容量均相同的传输策略,或者与第一电子设备10的CPU型号、内存大小及存储容量均相同的传输策略。
与影响因子f 2匹配的传输策略可以是指与第二电子设备11的设备型号、内存大小及存储容量均相同的传输策略,或者与第二电子设备11的CPU型号、内存大小及存储容量均相同的传输策略。若从预设策略库中筛选出多个传输策略与影响因子f 1、影响因子f 2匹配,则继续进行环节ii的匹配。若从预设策略库中仅筛选出一个传输策略与影响因子f 1、影响因子 f 2匹配,查询端12将该传输策略认定为与该策略查找请求匹配的传输策略,并发送给第一电子设备10。若从预设策略库中未查找到与影响因子f 1、影响因子f 2均匹配的传输策略,查询端12将反馈匹配为空的查找结果信息至第一电子设备10,第一电子设备10将采用默认传输策略来传输待传输数据。
ii、从环节i匹配到的多个传输策略中筛选出与影响因子f 3匹配的传输策略,即从环节i匹配到的多个传输策略中筛选出与本次待传输数据的数据类别相同的传输策略。
比如,本次待传输数据的数据类别包括第一数据类别(短信数据)、第二数据类别(联系人数据)、第五数据类别(图片数据)、第九数据类别(文档数据)、第十数据类别(APP数据),则从环节i匹配到的多个传输策略中筛选出仅传输第一数据类别、第二数据类别、第五数据类别、第九数据类别及第十数据类别的传输策略。若从环节i匹配到的多个传输策略中仍然可以筛选出多个传输策略与影响因子f 3匹配,则继续进行环节iii的匹配。若从环节i匹配到的多个传输策略中仅筛选出1个传输策略与影响因子f 3匹配,查询端12将该传输策略认定为与该策略查找请求匹配的传输策略,并发送给第一电子设备10。若从环节i匹配到的多个传输策略中未查找到与影响因子f 3匹配的传输策略,此时,可以从环节i匹配到的多个传输策略中选择一最优传输策略作为与该策略查找请求匹配的传输策略。该最优的传输策略可以是该多个传输策略中具有最大传输速度的传输策略,或者数据类别与本次待传输数据的数据类别差异最小的传输策略;若存在多个差异最小的传输策略,可以再选择传输速度最大的那一个。
在一些实施例中,若从环节i匹配到的多个传输策略中未查找到与影响因子f 3匹配的传输策略,查询端12也可以反馈匹配为空的查找结果信息至第一电子设备10,第一电子设备10将采用默认传输策略来传输待传输数据。
iii、从环节ii匹配到的多个传输策略中筛选出与影响因子f 4匹配的传输策略,即从环节ii匹配到的多个传输策略中筛选出与本次待传输数据的总数据量的差值在预设范围内的传输策略。
该预设范围可以根据实际需求进行设定,比如预设范围设定为正负3G,则从环节ii匹配到的多个传输策略中筛选出与本次待传输数据的总数据量的差值在3G内的传输策略。若从环节ii匹配到的多个传输策略中仍然可以筛选出多个传输策略与影响因子f 4匹配,则继续进行环节iv的匹配。若从环节ii匹配到的多个传输策略中仅筛选出1个传输策略与影响因子f 4匹配,查询端12将该传输策略认定为与该策略查找请求匹配的传输策略,并发送给第一电子设备10。若从环节ii匹配到的多个传输策略中未查找到与影响因子f 4匹配的传输策略,此时,可以从环节ii匹配到的多个传输策略中选择一最优传输策略作为与该策略查找请求匹配的传输策略。该最优的传输策略可以是该多个传输策略中具有最大传输速度的传输策略,或者总数据量差值最小的传输策略;若存在多个总数据量差值最小的传输策略,可以再选择传输速度最大的那一个。
在一些实施例中,若从环节ii匹配到的多个传输策略中未查找到与影响因子f 4匹配的传输策略,查询端12也可以反馈匹配为空的查找结果信息至第一电子设备10,第一电子设备10将采用默认传输策略来传输待传输数据。
在一些实施例中,数据类别与总数据量的先后判断顺序可以变换。比如,环节ii是:从环节i匹配到的多个传输策略中筛选出与影响因子f 4匹配的传输策略,即从环节i匹配到的多个传输策略中筛选出与本次待传输数据的总数据量的差值在预设范围内的传输策略;环 节iii是:从环节ii匹配到的多个传输策略中筛选出与影响因子f 3匹配的传输策略,即从环节ii匹配到的多个传输策略中筛选出与本次待传输数据的数据类别相同的传输策略。
iv、从环节iii匹配到的多个传输策略中筛选出与影响因子f 5~f 15的综合差值最小的传输策略作为与该策略查找请求匹配的传输策略。
查询端12可以基于预设偏差计算公式依次计算每一从环节iii筛选到的传输策略与本次待传输数据的影响因子f 5~f 15的综合差值,再选择综合差值最小的传输策略作为与该策略查找请求匹配的传输策略。该预设偏差计算公式可以为:V=Sum(p i*|f i–f i’|),其中,5≤i≤15,V为综合差值,p i为影响因子f i的权重,p i的值可以根据实际需求进行设定,每一影响因子f i可以具有不同的权重值,f i为本次待传输数据的影响因子,f i’为从环节iii筛选到的传输策略的影响因子,|f i–f i’|为影响因子f i与影响因子f i’的差值的绝对值。
可以理解的,上述筛选环节iv是以本次待传输数据包括影响因子f 5~f 15为例进行说明。本次待传输数据也可以只包括影响因子f 5~f 15中的部分影响因子,比如包括影响因子f 5~f 8,则是从环节iii匹配到的多个传输策略中筛选出与影响因子f 5~f 8的综合差值最小的传输策略作为与该策略查找请求匹配的传输策略。
例如,从环节iii筛选到的传输策略包括传输策略M 1、传输策略M 2及传输策略M 3。本次待传输数据包括影响因子f 5(APP数据的数量量为800M)、f 6(视频数据的数量量为2G,即2048M)、f 7(图片数据的数量量为900M)、f 8(音乐数据的数量量为800M)。传输策略M 1包括的影响因子f 5’(APP数据的数量量为700M)、f 6’(视频数据的数量量为3G,即3072M)、f 7’(图片数据的数量量为700M)、f 8’(音乐数据的数量量为500M),则可以通过该预设偏差计算公式计算得到传输策略M 1与本次待传输数据的综合差值V1=(p 5*|800–700|)+(p 6*|2048–3072|)+(p 7*|900–700|)+(p 8*|800–500|)。传输策略M 2包括的影响因子f 5’(APP数据的数量量为700M)、f 6’(视频数据的数量量为1.5G,即1536M)、f 7’(图片数据的数量量为700M)、f 8’(音乐数据的数量量为500M),则可以通过该预设偏差计算公式计算得到传输策略M 2与本次待传输数据的综合差值V2=(p 5*|800–700|)+(p 6*|2048–1536|)+(p 7*|900–700|)+(p 8*|800–500|)。传输策略M 3包括的影响因子f 5’(APP数据的数量量为500M)、f 6’(视频数据的数量量为1.5G,即1536M)、f 7’(图片数据的数量量为900M)、f 8’(音乐数据的数量量为700M),则可以通过该预设偏差计算公式计算得到传输策略M 3与本次待传输数据的综合差值V3=(p 5*|800–500|)+(p 6*|2048–1536|)+(p 7*|900–900|)+(p 8*|800–700|)。当计算得到综合差值V1、V2、V3后,再选择综合差值最小的传输策略作为与该策略查找请求匹配的传输策略。比如,若V1>V2>V3,查询端12将选择传输策略M 3作为与该策略查找请求匹配的传输策略,并将传输策略M 3发送给第一电子设备10。
63、查询端12反馈查找结果至第一电子设备10。
在一些实施例中,若查询端12从预设策略库中查找到与该策略查找请求匹配的传输策略时,查询端12将查找到的传输策略反馈至第一电子设备10。若查询端12未能从预设策略库中查找到与该策略查找请求匹配的传输策略时,查询端12反馈匹配为空的查找结果信息至第一电子设备10,此时第一电子设备10将采用默认传输策略来传输待传输数据。
64、第一电子设备10反馈传输信息至查询端12。
在一些实施例中,传输信息至少可以包括平均传输速度,当第一电子设备10利用从查询端12接收到的传输策略进行待传输数据传输时,可以统计数据传输过程中的传输信 息,并将传输信息反馈给查询端12,进而查询端12可以根据该传输信息更新该传输策略。
参考图7,为本申请实施例提供的第一电子设备10的硬件结构示意图。如图7所示,第一电子设备10可以包括第一处理器1001、第一存储器1002及第一通信总线1003。第一存储器1002用于存储一个或多个第一计算机程序1004。一个或多个第一计算机程序1004被配置为被该第一处理器1001执行。该一个或多个第一计算机程序1004包括指令,上述指令可以用于实现在第一电子设备10中执行上述数据传输方法。
可以理解的是,本实施例示意的结构并不构成对第一电子设备10的具体限定。在另一些实施例中,第一电子设备10可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
参考图8,为本申请实施例提供的服务器13的硬件结构示意图。如图8所示,服务器13可以包括第二处理器2001、第二存储器2002及第二通信总线2003。第二存储器2002用于存储一个或多个第二计算机程序2004。一个或多个第二计算机程序2004被配置为被该第二处理器2001执行。该一个或多个第二计算机程序2004包括指令,上述指令可以用于实现在服务器13中执行上述数据传输方法。
可以理解的是,本实施例示意的结构并不构成对服务器13的具体限定。在另一些实施例中,服务器13可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
第一处理器1001与第二处理器2001均可以包括一个或多个处理单元,例如:第一处理器1001可以包括应用处理器(application processor,AP),调制解调器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
第一处理器1001、第二处理器2001中均还可以设置有存储器,用于存储指令和数据。在一些实施例中,第一处理器1001与第二处理器2001中的存储器为高速缓冲存储器。该存储器可以保存第一处理器1001(第二处理器2001)刚用过或循环使用的指令或数据。如果第一处理器1001(第二处理器2001)需要再次使用该指令或数据,可从该存储器中直接调用。避免了重复存取,减少了第一处理器1001(第二处理器2001)的等待时间,因而提高了系统的效率。
在一些实施例中,第一处理器1001与第二处理器2001均可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,SIM接口,和/或USB接口等。
在一些实施例中,第一存储器1002与第二存储区2002均可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当 该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的数据传输方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的数据传输方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的数据传输方法。
其中,本实施例提供的第一电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。

Claims (20)

  1. 一种数据传输方法,其特征在于,包括:
    响应接收到的策略查询请求,从预设策略库中查找与所述策略查询请求匹配的传输策略,其中所述策略查询请求包括传输端的硬件信息、接收端的硬件信息及所述传输端中待传输数据的数据信息,所述数据信息包括所述待传输数据的总数据量、所述待传输数据所包含的数据类别及每一数据类别的数据量;
    将所述策略查询请求的查询结果反馈至所述传输端。
  2. 如权利要求1所述的数据传输方法,其特征在于,所述将所述策略查询请求的查询结果反馈至所述传输端,包括:
    若从所述预设策略库中查找到与所述策略查询请求匹配的传输策略,将查找到的传输策略反馈至所述传输端;或
    若从所述预设策略库中未能查找到与所述策略查询请求匹配的传输策略,反馈匹配为空的查找结果信息至所述传输端。
  3. 如权利要求1或2所述的数据传输方法,其特征在于,所述方法还包括:
    当接收到针对发送给所述传输端的传输策略所反馈的传输信息时,利用所述传输信息更新所述传输策略,其中所述传输信息至少包括平均传输速度。
  4. 如权利要求1所述的数据传输方法,其特征在于,所述从预设策略库中查找与所述策略查询请求匹配的传输策略,包括:
    从所述预设策略库中查找与所述传输端的硬件信息及所述接收端的硬件信息匹配的第一传输策略;
    若查找得到多个所述第一传输策略,从多个所述第一传输策略中查找与所述待传输数据所包含的数据类别相同的第二传输策略;
    若查找得到多个所述第二传输策略,从多个所述第二传输策略中查找与所述待传输数据的总数据量的差值在预设差值范围内的第三传输策略。
  5. 如权利要求1所述的数据传输方法,其特征在于,所述从预设策略库中查找与所述策略查询请求匹配的传输策略,包括:
    从所述预设策略库中查找与所述传输端的硬件信息及所述接收端的硬件信息匹配的第一传输策略;
    若查找得到多个所述第一传输策略,从多个所述第一传输策略中查找与所述待传输数据的总数据量的差值在预设差值范围内的第二传输策略;
    若查找得到多个所述第二传输策略,从多个所述第二传输策略中查找与所述待传输数据所包含的数据类别相同的第三传输策略。
  6. 如权利要求4或5所述的数据传输方法,其特征在于,所述从预设策略库中查找与所述策略查询请求匹配的传输策略,还包括:
    若查找得到多个所述第三传输策略,从多个所述第三传输策略中筛选出与所述待传输数据的每一数据类别的综合差值最小的传输策略,作为与所述策略查找请求匹配的传输策略。
  7. 如权利要求4或5所述的数据传输方法,其特征在于,所述方法还包括:
    若所述预设策略库中不存在与所述传输端的硬件信息及所述接收端的硬件信息匹配的第 一传输策略,反馈匹配为空的查找结果信息至所述传输端。
  8. 如权利要求4或5所述的数据传输方法,其特征在于,所述从所述预设策略库中查找与所述传输端的硬件信息及所述接收端的硬件信息匹配的第一传输策略,包括:
    从所述预设策略库中查找与所述传输端和所述接收端的设备型号、内存大小与存储容量均相同的第一传输策略;或
    从所述预设策略库中查找与所述传输端和所述接收端的CPU型号、内存大小与存储容量均相同的第一传输策略。
  9. 如权利要求4或5所述的数据传输方法,其特征在于,所述方法还包括:
    若查找得到所述第一传输策略的个数为一个,将所述第一传输策略作为与所述策略查找请求匹配的传输策略;或
    若查找得到所述第二传输策略的个数为一个,将所述第二传输策略作为与所述策略查找请求匹配的传输策略。
  10. 如权利要求4所述的数据传输方法,其特征在于,所述方法还包括:
    若从多个所述第一传输策略中未查找到与所述待传输数据所包含的数据类别相同的第二传输策略,从多个所述第一传输策略中选择具有最大平均传输速度的传输策略作为与所述策略查找请求匹配的传输策略;或若从多个所述第二传输策略中未查找到与所述待传输数据的总数据量的差值在所述预设差值范围内的第三传输策略,从多个所述第二传输策略中选择与所述待传输数据的总数据量的差值为最小的传输策略作为与所述策略查找请求匹配的传输策略。
  11. 如权利要求5所述的数据传输方法,其特征在于,所述方法还包括:
    若从多个所述第一传输策略中未查找到与所述待传输数据的总数据量的差值在所述预设差值范围内的第二传输策略,从多个所述第一传输策略中选择与所述待传输数据的总数据量的差值为最小的传输策略作为与所述策略查找请求匹配的传输策略;或
    若从多个所述第二传输策略中未查找到与所述待传输数据所包含的数据类别相同的第三传输策略,从多个所述第二传输策略中选择具有最大平均传输速度的传输策略作为与所述策略查找请求匹配的传输策略。
  12. 如权利要求6所述的数据传输方法,其特征在于,所述待传输数据包括i个数据类别,i为大于或等于1的自然数,所述从多个所述第三传输策略中筛选出与所述待传输数据的每一数据类别的综合差值最小的传输策略之前,还包括:
    基于预设偏差计算公式依次计算每一所述第三传输策略与所述待传输数据的每一数据类别的综合差值;
    其中,所述预设偏差计算公式为:V=Sum(p i*|f i–f i’|),V为所述综合差值,p i为第i数据类别的权重,f i为所述待传输数据的第i数据类别的数据量,f i’为所述第三传输策略所对应的第i数据类别的数据量,|f i–f i’|为f i与f i’之间的差值的绝对值。
  13. 一种数据传输方法,包括:
    在传输端与接收端满足传输条件时,获取所述传输端的硬件信息、所述接收端的硬件信息及所述传输端中待传输数据的数据信息,其中所述数据信息包括所述待传输数据的总数据量、所述待传输数据所包含的数据类别及每一数据类别的数据量;
    发送策略查找请求至查询端,其中所述策略查找请求包括所述传输端的硬件信息、所述接收端的硬件信息及所述传输端中待传输数据的数据信息,所述查询端设置于所述传输端内, 或设置于服务器内;
    接收所述查询端针对所述策略查找请求反馈的查找结果,以基于所述查询结果确定所述待传输数据的传输方式。
  14. 如权利要求13所述的数据传输方法,其特征在于,所述基于所述查询结果确定所述待传输数据的传输方式,包括:
    若所述查找结果为所述查询端查找到的与所述策略查找请求匹配的传输策略,利用所述查询端查找到的传输策略传输所述待传输数据;或
    若所述查找结果为匹配为空的信息,利用默认传输策略传输所述待传输数据。
  15. 如权利要求14所述的数据传输方法,其特征在于,所述方法还包括:
    反馈利用所述查询端查找到的传输策略进行所述待传输数据传输的传输信息至所述查询端,其中所述传输信息至少包括平均传输速度。
  16. 如权利要求13所述的数据传输方法,其特征在于,所述方法还包括:
    根据预设梯队划分规则对所述待传输数据所包含的数据类别进行传输梯队划分;
    若所述待传输数据所包含的数据类别被划分为同一个传输梯队,利用默认传输策略传输所述待传输数据;
    若所述待传输数据所包含的数据类别被划分为两个或两个以上的传输梯队,发送所述策略查找请求至所述查询端。
  17. 如权利要求16所述的数据传输方法,其特征在于,所述预设梯队划分规则包括:
    将不需要进行数据准备的数据类别划分为第一传输梯队;
    将采用第一种方式进行数据准备的数据类别划分为第二传输梯队;
    将采用第二种方式进行数据准备的数据类别划分为第三传输梯队;
    其中,所述第一种方式与所述第二种方式不相同。
  18. 如权利要求17所述的数据传输方法,其特征在于,所述默认传输策略包括:
    按照所述第一传输梯队、所述第二传输梯队、所述第三传输梯队的顺序依次进行数据传输;
    在所述第一传输梯队中,或在所述第二传输梯队中,或在所述第三传输梯队中,按照每一所述数据类别的数据量大小从大到小,或从小到大的顺序依次进行数据传输。
  19. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1至权利要求12中或权利要求13-18中任一项所述的数据传输方法。
  20. 一种电子设备,其特征在于,所述电子设备包括处理器和存储器,所述存储器,用于存储指令,所述处理器用于调用所述存储器中的指令,使得所述电子设备执行权利要求1至权利要求12中或权利要求13-18中任一项所述的数据传输方法。
PCT/CN2021/134090 2020-11-30 2021-11-29 数据传输方法、电子设备及计算机可读存储介质 WO2022111699A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US18/255,020 US20240095210A1 (en) 2020-11-30 2021-11-29 Data Transmission Method, Electronic Device, and Computer-Readable Storage Medium
EP21897199.2A EP4246934A4 (en) 2020-11-30 2021-11-29 DATA TRANSMISSION METHOD, ELECTRONIC DEVICE AND COMPUTER-READABLE STORAGE MEDIUM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011379409.0A CN114640706B (zh) 2020-11-30 2020-11-30 数据传输方法、电子设备及计算机可读存储介质
CN202011379409.0 2020-11-30

Publications (1)

Publication Number Publication Date
WO2022111699A1 true WO2022111699A1 (zh) 2022-06-02

Family

ID=81754045

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/134090 WO2022111699A1 (zh) 2020-11-30 2021-11-29 数据传输方法、电子设备及计算机可读存储介质

Country Status (4)

Country Link
US (1) US20240095210A1 (zh)
EP (1) EP4246934A4 (zh)
CN (1) CN114640706B (zh)
WO (1) WO2022111699A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037626A (zh) * 2022-06-17 2022-09-09 阿里巴巴(中国)有限公司 一种策略管理方法、装置、系统及电子设备
CN115174075A (zh) * 2022-07-22 2022-10-11 武汉卓诺世环电子商务有限公司 一种数据传输方法、设备及计算机存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8285850B1 (en) * 2006-01-19 2012-10-09 Symantec Operating Corporation Configuration and dynamic detection of connection-based backup policies
CN103795490A (zh) * 2012-10-30 2014-05-14 深圳中兴网信科技有限公司 一种数据传输加速的方法及系统
CN107704633A (zh) * 2017-11-01 2018-02-16 郑州云海信息技术有限公司 一种文件迁移的方法和系统
CN108322479A (zh) * 2018-03-06 2018-07-24 深圳辉烨通讯技术有限公司 数据传输方法、装置、终端以及存储介质

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4481903B2 (ja) * 2005-08-24 2010-06-16 キヤノン株式会社 文書配信システム、文書管理クライアント、文書配信方法およびプログラム
JP4592611B2 (ja) * 2006-02-03 2010-12-01 富士通株式会社 パケット通信システム
US9727751B2 (en) * 2010-10-29 2017-08-08 Nokia Technologies Oy Method and apparatus for applying privacy policies to structured data
US20150293699A1 (en) * 2014-04-11 2015-10-15 Graham Bromley Network-attached storage enhancement appliance
US9298734B2 (en) * 2014-06-06 2016-03-29 Hitachi, Ltd. Storage system, computer system and data migration method
CN104615661B (zh) * 2015-01-05 2019-02-19 华为技术有限公司 面向云平台应用的服务推荐方法、设备及系统
CN106507269B (zh) * 2016-09-14 2020-02-07 Oppo广东移动通信有限公司 一种数据迁移方法及终端设备
CN106533967B (zh) * 2016-12-08 2019-04-12 北京中安智达科技有限公司 一种可自定义负载均衡策略的数据传输方法
CN107071765B (zh) * 2017-04-13 2020-05-22 北京珠穆朗玛移动通信有限公司 数据接收方法及数据接收终端
WO2019218282A1 (zh) * 2018-05-16 2019-11-21 华为技术有限公司 一种数据传输方法及终端
CN111132234B (zh) * 2018-11-01 2023-08-04 华为终端有限公司 一种数据传输方法及对应的终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8285850B1 (en) * 2006-01-19 2012-10-09 Symantec Operating Corporation Configuration and dynamic detection of connection-based backup policies
CN103795490A (zh) * 2012-10-30 2014-05-14 深圳中兴网信科技有限公司 一种数据传输加速的方法及系统
CN107704633A (zh) * 2017-11-01 2018-02-16 郑州云海信息技术有限公司 一种文件迁移的方法和系统
CN108322479A (zh) * 2018-03-06 2018-07-24 深圳辉烨通讯技术有限公司 数据传输方法、装置、终端以及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4246934A4

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037626A (zh) * 2022-06-17 2022-09-09 阿里巴巴(中国)有限公司 一种策略管理方法、装置、系统及电子设备
CN115037626B (zh) * 2022-06-17 2024-03-08 阿里巴巴(中国)有限公司 一种策略管理方法、装置、系统及电子设备
CN115174075A (zh) * 2022-07-22 2022-10-11 武汉卓诺世环电子商务有限公司 一种数据传输方法、设备及计算机存储介质

Also Published As

Publication number Publication date
CN114640706B (zh) 2023-09-12
CN114640706A (zh) 2022-06-17
EP4246934A1 (en) 2023-09-20
US20240095210A1 (en) 2024-03-21
EP4246934A4 (en) 2024-05-08

Similar Documents

Publication Publication Date Title
WO2022111699A1 (zh) 数据传输方法、电子设备及计算机可读存储介质
CN108694241B (zh) 一种数据的存储方法及设备
CN110096336B (zh) 数据监控方法、装置、设备和介质
US20160117079A1 (en) Method and apparatus for displaying application icons on terminal
CN102223416B (zh) 一种媒体文件的传输方法及系统
WO2020038257A1 (en) Method for link aggregation and related products
EP3404538A1 (en) Data processing method, and data processing apparatus
WO2023103419A1 (zh) 基于消息队列的5g消息批量发送方法、装置及电子设备
WO2024007678A1 (zh) 一种存储空间整理方法及电子设备
CN109618174A (zh) 一种直播数据传输方法、装置、系统以及存储介质
CN107784085B (zh) 一种数据列表的导出方法及其终端
CN113392863A (zh) 一种机器学习训练数据集的获取方法、获取装置及终端
US11755540B2 (en) Chunking method and apparatus
WO2017114180A1 (zh) 调整组件逻辑线程数量的方法及装置
WO2021179170A1 (zh) 数据推送方法、装置、服务器及存储介质
CN112788585B (zh) 一种5g核心网中nf切换方法、装置及存储介质
WO2021237630A1 (zh) 多键值命令的处理方法、装置、电子设备及存储介质
CN106933702A (zh) 一种智能终端存储空间管理的方法、装置及智能终端
WO2023143595A1 (zh) 处理器之间的通信方法、系统、存储介质以及处理器
WO2023193599A1 (zh) 文件传输方法、装置及终端设备
CN111857992A (zh) 一种Radosgw模块中线程资源分配方法和装置
WO2023061180A1 (zh) 基于多频率的数据发送和接收方法、装置和设备
WO2018201993A1 (zh) 图像绘制方法、终端及存储介质
CN101819589B (zh) 一种控制文件输入输出缓存的方法及装置
CN103152386B (zh) 业务数据分发服务器及其业务数据分发方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21897199

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18255020

Country of ref document: US

ENP Entry into the national phase

Ref document number: 2021897199

Country of ref document: EP

Effective date: 20230611

NENP Non-entry into the national phase

Ref country code: DE