WO2020147627A1 - Link selection method and related apparatus - Google Patents

Link selection method and related apparatus Download PDF

Info

Publication number
WO2020147627A1
WO2020147627A1 PCT/CN2020/070954 CN2020070954W WO2020147627A1 WO 2020147627 A1 WO2020147627 A1 WO 2020147627A1 CN 2020070954 W CN2020070954 W CN 2020070954W WO 2020147627 A1 WO2020147627 A1 WO 2020147627A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication links
link
type
data
data transmission
Prior art date
Application number
PCT/CN2020/070954
Other languages
French (fr)
Chinese (zh)
Inventor
黄园
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2020147627A1 publication Critical patent/WO2020147627A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/082Load balancing or load distribution among bearers or channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • H04W76/16Involving different core network technologies, e.g. a packet-switched [PS] bearer in combination with a circuit-switched [CS] bearer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking

Definitions

  • This application relates to the technical field of electronic equipment, and in particular to a link selection method and related devices.
  • the embodiments of the present application provide a link selection method and related devices, in order to improve the rationality and effectiveness of link selection, increase data transmission speed, and reduce network delay.
  • an embodiment of the present application provides a link selection method applied to an electronic device, the method includes:
  • an embodiment of the present application provides a link selection device applied to electronic equipment.
  • the link selection device includes a processing unit and a communication unit, where:
  • the processing unit is configured to determine the status information of the multiple communication links to be connected when a multi-link activation request is detected; and to select at least two of the multiple communication links according to the status information Target communication links; and for connecting the at least two target communication links through the communication unit.
  • an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be processed by the above
  • the above program includes instructions for performing the steps in any method of the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application.
  • the computer program causes the computer to execute the first embodiment of the present application.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in any method of the first aspect.
  • the computer program product may be a software installation package.
  • FIG. 1 is an exemplary system architecture diagram of a wireless communication system in which an electronic device is provided according to an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of a link selection method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another link selection method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another link selection method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a block diagram of functional units of a link selection device provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may be electronic devices with data transmission capabilities.
  • the electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or devices connected to a wireless modem Other processing equipment, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
  • UE User Equipment
  • MS Mobile Station
  • terminal device terminal device
  • Link aggregation means that the device can use two or more network ports to surf the Internet at the same time. For example, using link aggregation on a mobile phone to use Wi-Fi and data networks for network access. Android network system, when Wi-Fi is enabled, the data network will be unavailable (Connectivity Service network scoring mechanism causes the data network to be disconnected), and link aggregation requires at least two or more available networks, so The prerequisite of the Service-Level Agreement (SLA) is to enable Wi-Fi and data networks to coexist. As shown in FIG.
  • SLA Service-Level Agreement
  • the electronic device 101 can be connected to a data network 103, which is a communication network for transmitting data services; Wi-Fi 102, Wi-Fi is a technology that allows electronic devices to connect to a wireless local area network; usually Use 2.4G UHF or 5G SHF ISM radio frequency band; and Bluetooth communication 104, a wireless technology standard, can achieve short-distance network sharing and data exchange between fixed equipment, mobile equipment and building personal area network (using 2.4-2.485GHz ISM band UHF radio waves); can also be LORA communication module, a long-distance wireless transmission technology based on spread spectrum technology.
  • Wi-Fi 102 Wi-Fi is a technology that allows electronic devices to connect to a wireless local area network
  • Bluetooth communication 104 a wireless technology standard, can achieve short-distance network sharing and data exchange between fixed equipment, mobile equipment and building personal area network (using 2.4-2.485GHz ISM band UHF radio waves); can also be LORA communication module, a long-distance wireless transmission technology based on spread spectrum technology.
  • FIG. 2 is a schematic flowchart of a link selection method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. 1. As shown in the figure, the link selection method includes:
  • the detection of the multi-link activation request by the electronic device may specifically be the detection of the activation request for the above-mentioned link aggregation function, or it may also be the detection of the execution operation of the activation of the link aggregation function, which is not limited here.
  • the specific implementation of the detection of the multi-link start request may also be the detection of the start operation for the multi-link start request button, or the detection that the current data transmission speed is lower than a preset speed threshold, etc. This is not limited.
  • the state information may be various, for example, it may include the number of currently connected devices of each communication link, or it may be the channel quality of each communication link, or it may be the information of each communication link.
  • the data transmission frequency, data transmission rate, etc. are not limited here.
  • the multiple communication links to be connected may include data networks, Wi-Fi, Bluetooth communication, LORA communication, and dedicated hotspots for smart furniture devices (such as boxes with various smart home configurations).
  • S202 The electronic device selects at least two target communication links among the multiple communication links according to the state information.
  • the specific implementation manners for selecting at least two target communication links of the plurality of communication links according to the state information may be various, for example, according to the channel quality of each communication link Select at least two target communication links with the best channel quality, or select at least two target communication links with a smaller number of connected devices according to the number of connected devices in each communication link, which is not limited here .
  • the channel quality can be calculated according to the channel of the communication link, and the channel quality includes the capacity of the channel itself, network speed, network delay, etc.
  • S203 The electronic device is connected to the at least two target communication links.
  • the electronic device when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
  • the determining the status information of the multiple communication links to be connected when the multi-link activation request is detected includes:
  • the data type may include a first data type and a second data type, etc.
  • the first data type is data transmission through a wired network (for example, dedicated hotspots of smart home equipment, Wi-Fi, etc., that is, no The data type needs to be transmitted through the cellular mobile communication network), and the second data type is the data type that needs to be transmitted through the cellular mobile communication network.
  • the electronic device is a smart phone
  • the multiple data transmission tasks include the smart phone uploading data to the smart home, such as the transmission task of TV projection, etc., corresponding to the first data type, and also including the smart phone to another smart phone
  • the transmission task of transmitting chat information corresponds to the second data type.
  • different data types can select the target communication link according to the status information of different communication links, that is, the electronic device needs to obtain different status information of the communication link according to different data types, for example, when the data type is the first data
  • the determined type of status information can be the number of devices connected to each communication link, or the channel quality of each communication link.
  • the determined status information type can be It is the data transmission frequency or data transmission rate of each communication link, which is not limited here.
  • the electronic device determines the type of status information of each communication link to be obtained according to the data types of multiple data transmission tasks to be processed, classifies the data transmission tasks finely, and effectively selects different data types Different target communication links improve the rationality of link selection.
  • the determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks includes:
  • Determining that the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links;
  • the selecting at least two target communication links of the multiple communication links according to the state information includes:
  • the plurality of first reference communication links of the first communication link type may be dedicated hotspots of smart home devices, Wi-Fi, Bluetooth, etc.
  • the preset number threshold may be, for example, 1, 2, etc. Make a limit.
  • the electronic device determines the type of the corresponding communication link according to the data type, which is beneficial to improve the rationality of the communication link.
  • the target communication link is selected according to the number of devices connected to each communication link. It helps to improve the efficiency of data transmission.
  • the selecting at least two target communication links of the multiple communication links according to the state information includes:
  • the electronic device when the electronic device detects that the number of connected devices of each first reference communication link is greater than the preset number threshold, it selects the target communication link according to the data transmission frequency of each first reference communication link , To further improve the accuracy of link selection to improve data transmission efficiency.
  • the determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks includes:
  • the data types of the multiple data transmission tasks include a first data type and a second data type
  • the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links, and all of the plurality of second reference communication links
  • the type of the state information is the channel quality corresponding to each of the second reference communication links
  • the selecting at least two target communication links of the multiple communication links according to the state information includes:
  • At least one of the target communication links among the plurality of second reference communication links is selected according to the channel quality of the plurality of second reference communication links.
  • the channel quality can be calculated based on the communication channel of the second reference communication link.
  • the channel quality includes the capacity of the channel itself, network speed, network delay, etc.
  • For network speed calculation read the network traffic of the two interfaces and record the last time. The traffic recorded this time is made a difference to get the amount of traffic on the network port in this second, that is, the network speed, and the network delay is calculated based on the round-trip time statistical algorithm of the data in the channel.
  • the specific implementation manners for selecting at least one of the multiple second reference communication links according to the channel quality of the multiple second reference communication links may be various, for example, It is to select at least one target communication link with the best channel quality among the multiple second reference channel communication links, or the electronic device may be preset with the corresponding relationship between the data amount and the channel quality, and the electronic device may correspond according to the second data type Select at least one target communication link with corresponding channel quality corresponding to the data amount among the multiple second reference communication links, which is not limited here.
  • the data in the same data transmission task can belong to both the first data type and the second data type.
  • at least one target communication link can also be selected from the first reference communication link.
  • at least one target communication link is selected from the second reference communication link, and the data packets with different data transmission tasks are simultaneously shunted and transmitted through the two target communication links.
  • the target communication link can be selected from different communication link types to split the transmission data transmission task, which is beneficial to Avoid the interference of multi-link simultaneous transmission and improve the effectiveness of data offload transmission.
  • the determining the status information of the multiple communication links to be connected when the multi-link activation request is detected includes:
  • the selecting at least two target communication links of the multiple communication links according to the state information includes:
  • the historical connection record may be a historical connection record for a continuous month, or may be a historical connection record for a continuous week, and the historical connection record of each communication link includes time period, data transmission rate, number of connected devices, etc., There is no limitation here.
  • the implementation method may be to select at least two target communication links with the highest data transmission rate among the plurality of communication links to be connected, or to select the data transmission rate of the plurality of communication links to be connected to be higher than a preset At least two target communication links of the rate threshold are not limited here.
  • the electronic device determines the data transmission rate of each time period according to the historical connection record of each communication link to determine the target communication link connected in each time period, which is beneficial to improve the intelligence of link selection.
  • the method further includes:
  • the multiple data packets are offloaded and transmitted through the at least two target communication links.
  • the specific implementation manner of splitting the data transmission task to obtain multiple data packets may be splitting the data transmission task according to different data types in the data transmission task, or may be dividing the data transmission task in the data transmission task.
  • the data is evenly distributed into multiple data groups according to the amount of data, which is not limited here.
  • the multiple data packets mean that the number of data packets and the amount of data in each group have been determined, where one wireless communication link may correspond to multiple data packets or one data packet, which is not limited herein.
  • the specific implementation manner of establishing the correspondence between each of the data packets and the at least two target wireless communication links may be to determine the corresponding target wireless communication link according to the data type of each data packet in the data packet , Or it can be based on the data volume in the data packet to determine the corresponding target wireless communication link, etc., which is not uniquely limited here.
  • the electronic device groups the data in the data transmission task and selects different target wireless communication links for transmission according to different data packets, which reduces the data transmission volume of each target wireless communication link and improves Data transmission speed, and the pertinence of each target wireless communication link transmission.
  • FIG. 3 is a schematic flowchart of a link selection method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. 1, as shown in FIG. As shown, the link selection method includes:
  • the electronic device determines the data types of multiple data transmission tasks to be processed when detecting the multi-link start request.
  • the electronic device determines that the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links.
  • S304 The electronic device determines the number of devices connected to the multiple first reference communication links.
  • the electronic device selects at least two target communication links of the plurality of first reference communication links whose data transmission frequency is greater than a preset frequency threshold.
  • S307 The electronic device is connected to the at least two target communication links.
  • the electronic device when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
  • the electronic device determines the type of status information of each communication link to be obtained according to the data types of the multiple data transmission tasks to be processed, classifies the data transmission tasks finely, and effectively selects different target communications for different data types Link, improve the rationality of link selection.
  • the electronic device when the electronic device detects that the number of connected devices of each first reference communication link is greater than the preset number threshold, it selects the target communication link according to the data transmission frequency of each first reference communication link, which further improves Accuracy of link selection to improve data transmission efficiency.
  • FIG. 4 is a schematic flowchart of a link selection method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. The electronic device has established multiple wireless communication links. As shown in the figure, this link selection method includes:
  • the electronic device determines the data transmission rate of each communication link to be connected in multiple preset time periods according to the historical connection records of the multiple communication links to be connected.
  • the electronic device determines a first preset time period among the multiple preset time periods corresponding to the current time period.
  • the electronic device selects at least two target communications among the multiple communication links to be connected according to the data transmission rate of each communication link to be connected in the first preset time period. link.
  • S404 The electronic device is connected to the at least two target communication links.
  • S405 The electronic device divides the multiple data transmission tasks to be processed into multiple data packets.
  • S406 The electronic device establishes a correspondence between each of the data packets and the at least two target communication links.
  • S407 The electronic device offloads and transmits the multiple data packets through the at least two target communication links according to the corresponding relationship.
  • the electronic device when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
  • the electronic device groups the data in the data transmission task, and selects different target wireless communication links for transmission according to different data packets, which reduces the data transmission volume of each target wireless communication link and improves the data transmission speed. And the pertinence of each target wireless communication link transmission.
  • the electronic device determines the data transmission rate of each time period according to the historical connection record of each communication link to determine the target communication link connected in each time period, which is beneficial to improve the intelligence of link selection.
  • FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application.
  • the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the aforementioned memory 520 and are configured to be executed by the aforementioned application processor 510,
  • the one or more programs 521 include instructions for performing the following steps:
  • the electronic device when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
  • the instructions in the program 521 are specifically used to perform the following operations: When the multi-link start request is reached, the data types of the multiple data transmission tasks to be processed are determined; and the data types for determining the multiple communication links to be connected according to the data types of the multiple data transmission tasks The type of the status information; and the status information used to determine that the multiple communication links to be connected match the type of the status information.
  • the instruction in the program 521 Specifically, it is configured to perform the following operation: when the data types of the multiple data transmission tasks are all the first data type, determining that the multiple communication links to be connected belong to the first data type corresponding to the first data type.
  • a plurality of first reference communication links of a communication link type; and for determining the type of the state information of the plurality of first reference communication links as the corresponding one of each of the first reference communication links The number of connected devices;
  • the instructions in the program 521 are specifically used to perform the following operations: selecting the plurality of first reference communication At least two of the target communication links in which the number of connected devices in the link is less than a preset number threshold.
  • the instructions in the program 521 are specifically used to perform the following operations: When the number of connected devices corresponding to each of the plurality of first reference communication links is greater than or equal to the preset number threshold, it is determined that each of the first reference communication links The data transmission frequency of the reference communication link; and used to select at least two of the target communication links in the plurality of first reference communication links whose data transmission frequency is greater than a preset frequency threshold.
  • the instruction in the program 521 Specifically, it is configured to perform the following operations: when the data types of the multiple data transmission tasks include a first data type and a second data type, determining that the multiple communication links to be connected belong to the first data A plurality of first reference communication links of a first communication link type corresponding to the type, and a plurality of second reference communication links of a second communication link type corresponding to the second data type; and
  • the types of the status information of the plurality of first reference communication links are the number of connected devices corresponding to each of the first reference communication links, and the status of the plurality of second reference communication links
  • the type of information is the channel quality corresponding to each of the second reference communication links;
  • the instructions in the program 521 are specifically used to perform the following operations: selecting the plurality of first reference communication At least one of the target communication links in which the number of connected devices in the link is less than a preset number threshold; and used to select the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links At least one of the target communication links among the communication links.
  • the instructions in the program 521 are specifically used to perform the following operations: When a multi-link activation request is reached, determine the data transmission rate of each of the communication links to be connected in multiple preset time periods according to the historical connection records of the multiple communication links to be connected;
  • the instructions in the program 521 are specifically used to perform the following operations: determining the plurality of communication links corresponding to the current time period A first preset time period among the preset time periods; and configured to select the number to be connected according to the data transmission rate of each communication link to be connected in the first preset time period At least two target communication links among the two communication links.
  • the one or more programs 521 further include instructions for executing the following steps: after the connecting the at least two target communication links, divide the multiple data transmission tasks to be processed into A plurality of data packets; and establishing a correspondence between each of the data packets and the at least two target communication links; and according to the correspondence, the at least two target communication links are shunted and transmitted Multiple data groups.
  • the electronic device includes a hardware structure and/or a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to be beyond the scope of this application.
  • the embodiments of the present application may divide the functional unit of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 6 is a block diagram of functional units of the link selection device 600 involved in an embodiment of the present application.
  • the link selection device 600 is applied to electronic equipment.
  • the link selection device 600 includes a processing unit 601 and a communication unit 602, wherein:
  • the processing unit 601 is configured to determine the status information of the multiple communication links to be connected when a multi-link activation request is detected; and to select at least one of the multiple communication links according to the status information Two target communication links; and for connecting the at least two target communication links through the communication unit 602.
  • the link selection device 600 may further include a storage unit 603 for storing program codes and data of the electronic device.
  • the processing unit 601 may be a processor
  • the communication unit 602 may be a touch screen or a transceiver
  • the storage unit 603 may be a memory.
  • the electronic device when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
  • the processing unit 601 is specifically configured to: Upon request, determining the data types of the multiple data transmission tasks to be processed; and for determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks ; And the state information used to determine that the multiple communication links to be connected match the type of the state information.
  • the processing unit 601 specifically uses In: when the data types of the multiple data transmission tasks are all the first data type, determine that the multiple communication links to be connected belong to the first communication link type corresponding to the first data type A plurality of first reference communication links; and used to determine the type of the state information of the plurality of first reference communication links as the number of connected devices corresponding to each of the first reference communication links;
  • the processing unit 601 is specifically configured to: select the plurality of first reference communication links At least two of the target communication links whose number of connected devices is less than a preset number threshold.
  • the processing unit 601 is specifically configured to: when the plurality of communication links are detected When the number of connected devices corresponding to each of the first reference communication links in the first reference communication link is greater than or equal to the preset number threshold, determine the value of each first reference communication link Data transmission frequency; and used to select at least two of the target communication links whose data transmission frequency is greater than a preset frequency threshold among the plurality of first reference communication links.
  • the processing unit 601 specifically uses Yu: When the data types of the multiple data transmission tasks include a first data type and a second data type, determine that the multiple communication links to be connected belong to the first data type corresponding to the first data type.
  • the type of the state information of the reference communication link is the number of connected devices corresponding to each of the first reference communication links, and the type of the state information of the plurality of second reference communication links is each Channel quality corresponding to the second reference communication link;
  • the processing unit 601 is specifically configured to: select the plurality of first reference communication links At least one of the target communication links in which the number of connected devices is less than a preset number threshold; and is configured to select one of the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links At least one target communication link.
  • the processing unit 601 is specifically configured to: When requesting, determine the data transmission rate of each communication link to be connected in multiple preset time periods according to the historical connection records of the multiple communication links to be connected;
  • the processing unit 601 is specifically configured to: determine the multiple preset time periods corresponding to the current time period The first preset time period in the first preset time period; and for selecting the plurality of communication links to be connected according to the data transmission rate of each of the communication links to be connected in the first preset time period At least two target communication links.
  • the processing unit 601 is further configured to: divide the multiple data transmission tasks to be processed into multiple data packets; and establish each The correspondence between the data packets and the at least two target communication links; and according to the correspondence, the at least two target communication links are shunted and transmitted through the communication unit 602. Data grouping.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to perform part or all of the steps of any method described in the foregoing method embodiments ,
  • the aforementioned computer includes electronic devices.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing the computer program, the computer program is operable to cause the computer to perform any of the methods described in the above embodiments Some or all steps of the method.
  • the computer program product may be a software installation package, and the computer includes an electronic device.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the above-mentioned units is only a division of logical functions.
  • there may be other division methods for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • the technical solution of the present application may essentially be a part that contributes to the existing technology or all or part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application.
  • the aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • magnetic disk or optical disk etc.

Abstract

Disclosed are a link selection method and a related apparatus. The method comprises: when detecting a multilink start request, determining status information of multiple communication links to be connected; selecting, according to the status information, at least two target communication links of the multiple communication links; and connecting the at least two target communication links. Embodiments of the present application help to improve the reasonability and effectiveness of link selection, improve the data transmission speed, and reduce the network delay.

Description

链路选取方法及相关装置Link selection method and related device 技术领域Technical field
本申请涉及电子设备技术领域,具体涉及一种链路选取方法及相关装置。This application relates to the technical field of electronic equipment, and in particular to a link selection method and related devices.
背景技术Background technique
随着移动通信技术的发展,用户对数据通信的需求越来越大,目前市面上的智能终端在进行数据传输时,用户一般通过选取蜂窝移动网络通信或者Wi-Fi通信等方式发送数据,智能终端需要和相同区域内的其他设备竞争无线链路资源,难以满足用户的上网需求。With the development of mobile communication technology, users have an increasing demand for data communication. When smart terminals on the market currently transmit data, users generally select cellular mobile network communication or Wi-Fi communication to send data. The terminal needs to compete for wireless link resources with other devices in the same area, which is difficult to meet the user's demand for Internet access.
发明内容Summary of the invention
本申请实施例提供了一种链路选取方法及相关装置,以期提升链路选取的合理性和有效性,提升数据传输速度,减少网络延迟。The embodiments of the present application provide a link selection method and related devices, in order to improve the rationality and effectiveness of link selection, increase data transmission speed, and reduce network delay.
第一方面,本申请实施例提供一种链路选取方法,应用于电子设备,所述方法包括:In the first aspect, an embodiment of the present application provides a link selection method applied to an electronic device, the method includes:
在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息;When the multi-link start request is detected, determine the status information of the multiple communication links to be connected;
根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路;Selecting at least two target communication links among the multiple communication links according to the state information;
连接所述至少两条目标通信链路。Connecting the at least two target communication links.
第二方面,本申请实施例提供一种链路选取装置,应用于电子设备,所述链路选取装置包括处理单元和通信单元,其中,In a second aspect, an embodiment of the present application provides a link selection device applied to electronic equipment. The link selection device includes a processing unit and a communication unit, where:
所述处理单元,用于在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息;以及用于根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路;以及用于通过所述通信单元连接所述至少两条目标通信链路。The processing unit is configured to determine the status information of the multiple communication links to be connected when a multi-link activation request is detected; and to select at least two of the multiple communication links according to the status information Target communication links; and for connecting the at least two target communication links through the communication unit.
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be processed by the above The above program includes instructions for performing the steps in any method of the first aspect of the embodiments of the present application.
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。According to a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application. In one aspect, some or all of the steps described in any method.
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。According to a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in any method of the first aspect. The computer program product may be a software installation package.
附图说明BRIEF DESCRIPTION
下面将对本申请实施例所涉及到的附图作简单地介绍。The drawings related to the embodiments of the present application will be briefly described below.
图1是本申请实施例提供的一种电子设备所处无线通信系统的示例系统架构图;FIG. 1 is an exemplary system architecture diagram of a wireless communication system in which an electronic device is provided according to an embodiment of the present application;
图2是本申请实施例提供的一种链路选取方法的流程示意图;2 is a schematic flowchart of a link selection method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种链路选取方法的流程示意图;FIG. 3 is a schematic flowchart of another link selection method provided by an embodiment of the present application;
图4是本申请实施例提供的另一种链路选取方法的流程示意图;FIG. 4 is a schematic flowchart of another link selection method provided by an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构示意图;5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图6是本申请实施例提供的一种链路选取装置的功能单元组成框图。FIG. 6 is a block diagram of functional units of a link selection device provided by an embodiment of the present application.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms “first” and “second” in the description and claims of the present application and the above drawings are used to distinguish different objects, not to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "embodiments" means that specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art understand explicitly and implicitly that the embodiments described herein can be combined with other embodiments.
本申请实施例所涉及到的电子设备可以是具备数据传输能力的电子设备,该电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。The electronic devices involved in the embodiments of the present application may be electronic devices with data transmission capabilities. The electronic devices may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or devices connected to a wireless modem Other processing equipment, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), etc.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the application in detail.
链路聚合,是指使设备可以同时使用两个或者两个以上的网口同时进行上网,比如在手机上通过链路聚合的同时使用Wi-Fi和数据网络来进行网络访问。android网络系统,当Wi-Fi被使能的时候,会导致数据网络不可使用(Connectivity Service网络评分机制导致数据网络断开),而链路聚合至少需要两个或两个以上的可用网络,所以服务等级协议(Service-Level Agreement,缩写为SLA)的前提条件就是要使Wi-Fi和数据网络共存。如图1所示,目前电子设备101可以连接数据网络103,数据网为用于传输数据业务的通信网;Wi-Fi102,Wi-Fi是一种允许电子设备连接到一个无线局域网的技术;通常使用2.4G UHF或5G SHF ISM射频频段;以及蓝牙通信104,一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离网络共享以及数据交换(使用2.4—2.485GHz的ISM波段的UHF无线电波);还可以是LORA通信模块,一种基于扩频技术的远距离无线传输技术等。Link aggregation means that the device can use two or more network ports to surf the Internet at the same time. For example, using link aggregation on a mobile phone to use Wi-Fi and data networks for network access. Android network system, when Wi-Fi is enabled, the data network will be unavailable (Connectivity Service network scoring mechanism causes the data network to be disconnected), and link aggregation requires at least two or more available networks, so The prerequisite of the Service-Level Agreement (SLA) is to enable Wi-Fi and data networks to coexist. As shown in FIG. 1, at present, the electronic device 101 can be connected to a data network 103, which is a communication network for transmitting data services; Wi-Fi 102, Wi-Fi is a technology that allows electronic devices to connect to a wireless local area network; usually Use 2.4G UHF or 5G SHF ISM radio frequency band; and Bluetooth communication 104, a wireless technology standard, can achieve short-distance network sharing and data exchange between fixed equipment, mobile equipment and building personal area network (using 2.4-2.485GHz ISM band UHF radio waves); can also be LORA communication module, a long-distance wireless transmission technology based on spread spectrum technology.
请参阅图2,图2是本申请实施例提供了一种链路选取方法的流程示意图,应用于如图1中所述的电子设备,如图所示,本链路选取方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a link selection method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. 1. As shown in the figure, the link selection method includes:
S201,电子设备在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息。S201: When detecting a multi-link start request, the electronic device determines status information of multiple communication links to be connected.
其中,电子设备检测到多链路启动请求具体可以是检测到针对上述链路聚合功能的启用请求,或者也可以是检测到启用链路聚合功能的执行操作,在此不做限定。The detection of the multi-link activation request by the electronic device may specifically be the detection of the activation request for the above-mentioned link aggregation function, or it may also be the detection of the execution operation of the activation of the link aggregation function, which is not limited here.
其中,所述检测到多链路启动请求的具体实现方式也可以是检测到针对多链路启动请求按键的启动操作,或者可以是检测到当前数据传输的速度低于预设速度阈值等,在此不做限定。Wherein, the specific implementation of the detection of the multi-link start request may also be the detection of the start operation for the multi-link start request button, or the detection that the current data transmission speed is lower than a preset speed threshold, etc. This is not limited.
其中,所述状态信息可以是多种多样的,例如可以包括每条通信链路的当前已连接的设备数量,或者可以是每条通信链路的信道质量,或者可以是每条通信链路的数据传输频率、数据传输速率等,在此不做限定。Wherein, the state information may be various, for example, it may include the number of currently connected devices of each communication link, or it may be the channel quality of each communication link, or it may be the information of each communication link. The data transmission frequency, data transmission rate, etc. are not limited here.
其中,所述待连接的多条通信链路可以包括数据网络、Wi-Fi、蓝牙通信、LORA通信, 以及智能家具设备的专用热点(例如各种智能家居专属配置的盒子等)等。Wherein, the multiple communication links to be connected may include data networks, Wi-Fi, Bluetooth communication, LORA communication, and dedicated hotspots for smart furniture devices (such as boxes with various smart home configurations).
S202,所述电子设备根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路。S202: The electronic device selects at least two target communication links among the multiple communication links according to the state information.
其中,所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路的具体实现方式可以是多种多样的,例如可以是,根据每条通信链路的信道质量选取至少两条信道质量最好的目标通信链路,或者可以是根据每条通信链路已连接的设备数量选取至少两条已连接的设备数量较少的目标通信链路,在此不做限定。Wherein, the specific implementation manners for selecting at least two target communication links of the plurality of communication links according to the state information may be various, for example, according to the channel quality of each communication link Select at least two target communication links with the best channel quality, or select at least two target communication links with a smaller number of connected devices according to the number of connected devices in each communication link, which is not limited here .
其中,可以根据通信链路的信道计算信道质量,信道质量包括信道自身的容量、网速、网络延迟等。Among them, the channel quality can be calculated according to the channel of the communication link, and the channel quality includes the capacity of the channel itself, network speed, network delay, etc.
S203,所述电子设备连接所述至少两条目标通信链路。S203: The electronic device is connected to the at least two target communication links.
可以看出,本申请实施例中,电子设备在确在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,并根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,最后,连接所述至少两条目标通信链路。可见,电子设备在启动多链路之后,根据每条通信链路的状态信息选取至少两条目标通信链路进行连接以传输数据包,相对于传统的链路选取方法能够提升链路选取的合理性和有效性,同时,相比于通过一条通信链路传输数据能够提高数据传输的速度,减少数据传输消耗的时间,降低网络延迟,提高电子设备的数据传输效率。It can be seen that, in this embodiment of the application, when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
在一个可能的示例中,所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,包括:In a possible example, the determining the status information of the multiple communication links to be connected when the multi-link activation request is detected includes:
在检测到多链路启动请求时,确定待处理的多个数据传输任务的数据类型;When a multi-link start request is detected, determine the data type of multiple data transmission tasks to be processed;
根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型;Determining the type of the state information of the multiple communication links to be connected according to the data type of the multiple data transmission tasks;
确定所述待连接的多条通信链路与所述状态信息的类型匹配的状态信息。Determine the state information of the multiple communication links to be connected that matches the type of the state information.
其中,所述数据类型可以包括第一数据类型和第二数据类型等,所述第一数据类型为需要通过有线网络进行数据传输(例如,智能家居设备的专用热点、Wi-Fi等,即不需要通过蜂窝移动通信网络进行数据传输)的数据类型,第二数据类型为需要通过蜂窝移动通信网络进行数据传输的数据类型。Wherein, the data type may include a first data type and a second data type, etc. The first data type is data transmission through a wired network (for example, dedicated hotspots of smart home equipment, Wi-Fi, etc., that is, no The data type needs to be transmitted through the cellular mobile communication network), and the second data type is the data type that needs to be transmitted through the cellular mobile communication network.
举例而言,电子设备为智能手机,多个数据传输任务中包括智能手机向智能家居上传数据,例如电视机投屏的传输任务等,对应第一数据类型,还包括智能手机向另外一个智能手机传输聊天信息的传输任务,对应第二数据类型。For example, the electronic device is a smart phone, and the multiple data transmission tasks include the smart phone uploading data to the smart home, such as the transmission task of TV projection, etc., corresponding to the first data type, and also including the smart phone to another smart phone The transmission task of transmitting chat information corresponds to the second data type.
其中,不同的数据类型可以根据不同的通信链路的状态信息选取目标通信链路,即,电子设备需要根据不同的数据类型获取通信链路不同的状态信息,例如,当数据类型为第一数据类型时,确定的状态信息的类型可以是每个通信链路已连接的设备数量,也可以是每个通信链路的信道质量,当数据类型为第二数据类型时,确定的状态信息类型可以是每个通信链路的数据传输频率或者数据传输速率等,在此不做限定。Among them, different data types can select the target communication link according to the status information of different communication links, that is, the electronic device needs to obtain different status information of the communication link according to different data types, for example, when the data type is the first data When type, the determined type of status information can be the number of devices connected to each communication link, or the channel quality of each communication link. When the data type is the second data type, the determined status information type can be It is the data transmission frequency or data transmission rate of each communication link, which is not limited here.
可见,本示例中,电子设备根据待处理的多个数据传输任务的数据类型来确定要获取的每条通信链路的状态信息类型,对数据传输任务精细化分类,有效针对不同的数据类型选取不同的目标通信链路,提升链路选取的合理性。It can be seen that in this example, the electronic device determines the type of status information of each communication link to be obtained according to the data types of multiple data transmission tasks to be processed, classifies the data transmission tasks finely, and effectively selects different data types Different target communication links improve the rationality of link selection.
在这个可能的示例中,所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型,包括:In this possible example, the determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks includes:
当所述多个数据传输任务的所述数据类型均为第一数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路;When the data types of the multiple data transmission tasks are all of the first data type, it is determined that the multiple of the multiple communication links to be connected belong to the first communication link type corresponding to the first data type. Article 1 reference communication link;
确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路 对应的已连接的设备数量;Determining that the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links;
所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:The selecting at least two target communication links of the multiple communication links according to the state information includes:
选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少两条所述目标通信链路。Select at least two of the target communication links in the plurality of first reference communication links where the number of connected devices is less than a preset number threshold.
其中,第一通信链路类型的多条第一参考通信链路可以是智能家居设备的专用热点、Wi-Fi、蓝牙等,所述预设数量阈值例如可以是1、2等,在此不做限定。Wherein, the plurality of first reference communication links of the first communication link type may be dedicated hotspots of smart home devices, Wi-Fi, Bluetooth, etc., and the preset number threshold may be, for example, 1, 2, etc. Make a limit.
可见,本示例中,电子设备根据数据类型确定对应的通信链路的类型,有利于提升通信链路使用的合理性,而且,根据每条通信链路已连接的设备数量选择目标通信链路,有利于提升数据传输的高效性。It can be seen that in this example, the electronic device determines the type of the corresponding communication link according to the data type, which is beneficial to improve the rationality of the communication link. Moreover, the target communication link is selected according to the number of devices connected to each communication link. It helps to improve the efficiency of data transmission.
在这个可能的示例中,所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:In this possible example, the selecting at least two target communication links of the multiple communication links according to the state information includes:
当检测到所述多条第一参考通信链路中每条所述第一参考通信链路对应的所述已连接的设备数量均大于或者等于所述预设数量阈值时,确定每条所述第一参考通信链路的数据传输频率;When it is detected that the number of connected devices corresponding to each of the plurality of first reference communication links is greater than or equal to the preset number threshold, it is determined that each of the The data transmission frequency of the first reference communication link;
选取所述多条第一参考通信链路中所述数据传输频率大于预设频率阈值的至少两条所述目标通信链路。Select at least two of the target communication links in the plurality of first reference communication links whose data transmission frequency is greater than a preset frequency threshold.
可见,本示例中,电子设备在检测到每条第一参考通信链路的已连接设备的数量大于预设数量阈值时,根据每条第一参考通信链路的数据传输频率选取目标通信链路,进一步提升了链路选取的准确性,以提升数据传输效率。It can be seen that, in this example, when the electronic device detects that the number of connected devices of each first reference communication link is greater than the preset number threshold, it selects the target communication link according to the data transmission frequency of each first reference communication link , To further improve the accuracy of link selection to improve data transmission efficiency.
在一个可能的示例中,所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型,包括:In a possible example, the determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks includes:
当所述多个数据传输任务的所述数据类型包括第一数据类型和第二数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路,以及属于所述第二数据类型对应的第二通信链路类型的多条第二参考通信链路;When the data types of the multiple data transmission tasks include a first data type and a second data type, it is determined that the multiple communication links to be connected belong to the first communication link corresponding to the first data type A plurality of first reference communication links of a channel type, and a plurality of second reference communication links of a second communication link type corresponding to the second data type;
确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量,以及所述多条第二参考通信链路的所述状态信息的类型为每条所述第二参考通信链路对应的信道质量;It is determined that the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links, and all of the plurality of second reference communication links The type of the state information is the channel quality corresponding to each of the second reference communication links;
所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:The selecting at least two target communication links of the multiple communication links according to the state information includes:
选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少一条所述目标通信链路;Selecting at least one of the target communication links in the plurality of first reference communication links where the number of connected devices is less than a preset number threshold;
根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路。At least one of the target communication links among the plurality of second reference communication links is selected according to the channel quality of the plurality of second reference communication links.
其中,根据第二参考通信链路的通信信道可以计算信道质量,信道质量包括信道自身的容量、网速、网络延迟等,对于网速的计算,读两个接口的网络流量,把上一次记录的流量这次记录的流量做一个差,得到这一秒钟网口上的流量的多少,即网速,而网络延迟是根据数据在信道中的往返时间统计算法得出。Among them, the channel quality can be calculated based on the communication channel of the second reference communication link. The channel quality includes the capacity of the channel itself, network speed, network delay, etc. For network speed calculation, read the network traffic of the two interfaces and record the last time. The traffic recorded this time is made a difference to get the amount of traffic on the network port in this second, that is, the network speed, and the network delay is calculated based on the round-trip time statistical algorithm of the data in the channel.
其中,根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路的具体实现方式可以是多种多样的,例如可以是选取多条第二参考信道通信链路中信道质量最好的至少一条目标通信链路,或者可以是电子设备预设置有数据量与信道质量的对应关系,电子设备可以根据第二数据类型对应的数据量选取多条第二参考通信链路中与该数据量对应的相应信道质量的至少一条目标通信链路,在此不做限定。The specific implementation manners for selecting at least one of the multiple second reference communication links according to the channel quality of the multiple second reference communication links may be various, for example, It is to select at least one target communication link with the best channel quality among the multiple second reference channel communication links, or the electronic device may be preset with the corresponding relationship between the data amount and the channel quality, and the electronic device may correspond according to the second data type Select at least one target communication link with corresponding channel quality corresponding to the data amount among the multiple second reference communication links, which is not limited here.
其中,同一个数据传输任务中的数据可以即属于第一数据类型,也属于第二数据类型,在这种情况下,同样的可以在第一参考通信链路中选取至少一条目标通信链路,以及在第二参考通信链路中选取至少一条目标通信链路,通过这两条目标通信链路同时分流传输该数据传输任务不同的数据包。Among them, the data in the same data transmission task can belong to both the first data type and the second data type. In this case, at least one target communication link can also be selected from the first reference communication link. And at least one target communication link is selected from the second reference communication link, and the data packets with different data transmission tasks are simultaneously shunted and transmitted through the two target communication links.
可见,本示例中,电子设备在多个数据传输任务中包括第一数据类型和第二数据类型时,可以在不同的通信链路类型中分别选取目标通信链路分流传输数据传输任务,有利于避免多链路同时传输的干扰性,提升数据分流传输的有效性。It can be seen that, in this example, when the electronic device includes the first data type and the second data type in multiple data transmission tasks, the target communication link can be selected from different communication link types to split the transmission data transmission task, which is beneficial to Avoid the interference of multi-link simultaneous transmission and improve the effectiveness of data offload transmission.
在一个可能的示例中,所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,包括:In a possible example, the determining the status information of the multiple communication links to be connected when the multi-link activation request is detected includes:
在检测到多链路启动请求时,根据待连接的所述多条通信链路的历史连接记录确定每条待连接的所述通信链路在多个预设时间段的数据传输速率;When a multi-link activation request is detected, determine the data transmission rate of each communication link to be connected in a plurality of preset time periods according to the historical connection records of the plurality of communication links to be connected;
所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:The selecting at least two target communication links of the multiple communication links according to the state information includes:
确定当前时间段对应的所述多个预设时间段中的第一预设时间段;Determine the first preset time period among the multiple preset time periods corresponding to the current time period;
根据每条待连接的所述通信链路在所述第一预设时间段的所述数据传输速率选取所述待连接的多条通信链路中的至少两条目标通信链路。Select at least two target communication links among the plurality of communication links to be connected according to the data transmission rate of each communication link to be connected in the first preset time period.
其中,所述历史连接记录可以是连续一个月的历史连接记录、或者可以是连续一周的历史连接记录,每条通信链路的历史连接记录包括时间段、数据传输速率、已连接设备数量等,在此不做限定。Wherein, the historical connection record may be a historical connection record for a continuous month, or may be a historical connection record for a continuous week, and the historical connection record of each communication link includes time period, data transmission rate, number of connected devices, etc., There is no limitation here.
其中,根据每条待连接的所述通信链路在所述第一预设时间段的所述数据传输速率选取所述待连接的多条通信链路中的至少两条目标通信链路的具体实现方式可以是选取所述待连接的多条通信链路中数据传输速率最高的至少两条目标通信链路,可以是选取所述待连接的多条通信链路中数据传输速率高于预设速率阈值的至少两条目标通信链路,在此不做限定。Wherein, according to the data transmission rate of each of the communication links to be connected in the first preset time period, specific details of at least two target communication links among the plurality of communication links to be connected are selected. The implementation method may be to select at least two target communication links with the highest data transmission rate among the plurality of communication links to be connected, or to select the data transmission rate of the plurality of communication links to be connected to be higher than a preset At least two target communication links of the rate threshold are not limited here.
可见,本示例中,电子设备根据每条通信链路的历史连接记录确定每个时间段的数据传输速率以确定每个时间段连接的目标通信链路,有利于提升链路选取的智能性。It can be seen that in this example, the electronic device determines the data transmission rate of each time period according to the historical connection record of each communication link to determine the target communication link connected in each time period, which is beneficial to improve the intelligence of link selection.
在一个可能的示例中,所述连接所述至少两条目标通信链路之后,所述方法还包括:In a possible example, after the connecting the at least two target communication links, the method further includes:
将待处理的多个数据传输任务分为多个数据分组;Divide multiple data transmission tasks to be processed into multiple data packets;
建立每个所述数据分组与所述至少两条目标通信链路之间的对应关系;Establishing a correspondence between each of the data packets and the at least two target communication links;
按照所述对应关系,通过所述至少两条目标通信链路分流传输所述多个数据分组。According to the corresponding relationship, the multiple data packets are offloaded and transmitted through the at least two target communication links.
其中,所述将所述数据传输任务拆分,得到多个数据分组的具体实现方式可以是根据数据传输任务中不同的数据类型对数据传输任务进行拆分,或者可以是将数据传输任务中的数据按照数据量平均分配为多个数据分组,在此不做限定。Wherein, the specific implementation manner of splitting the data transmission task to obtain multiple data packets may be splitting the data transmission task according to different data types in the data transmission task, or may be dividing the data transmission task in the data transmission task. The data is evenly distributed into multiple data groups according to the amount of data, which is not limited here.
其中,所述多个数据分组是指数据分组的数量和每个组数据量已经确定,其中,一个无线通信链路可以对应多个数据分组也可以对应一个数据分组,在此不做限定。The multiple data packets mean that the number of data packets and the amount of data in each group have been determined, where one wireless communication link may correspond to multiple data packets or one data packet, which is not limited herein.
其中,建立每个所述数据分组与所述至少两个目标无线通信链路之间的对应关系的具体实现方式可以是根据数据分组中每个数据分组的数据类型确定对应的目标无线通信链路,或者可以是根据数据分组中的数据量确定对应的目标无线通信链路等,在此不做唯一限定。Wherein, the specific implementation manner of establishing the correspondence between each of the data packets and the at least two target wireless communication links may be to determine the corresponding target wireless communication link according to the data type of each data packet in the data packet , Or it can be based on the data volume in the data packet to determine the corresponding target wireless communication link, etc., which is not uniquely limited here.
可见,本示例中,电子设备将数据传输任务中的数据分组,并根据不同的数据分组选取不同的目标无线通信链路进行传输,降低了每个目标无线通信链路的数据传输量,提升了数据传输速度,以及每个目标无线通信链路传输的针对性。It can be seen that, in this example, the electronic device groups the data in the data transmission task and selects different target wireless communication links for transmission according to different data packets, which reduces the data transmission volume of each target wireless communication link and improves Data transmission speed, and the pertinence of each target wireless communication link transmission.
与上述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供的一种链路选取 方法的流程示意图,应用于如图1中所述的电子设备,如图所示,本链路选取方法包括:Consistent with the embodiment shown in FIG. 2 above, please refer to FIG. 3. FIG. 3 is a schematic flowchart of a link selection method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. 1, as shown in FIG. As shown, the link selection method includes:
S301,电子设备在检测到多链路启动请求时,确定待处理的多个数据传输任务的数据类型。S301: The electronic device determines the data types of multiple data transmission tasks to be processed when detecting the multi-link start request.
S302,所述电子设备当所述多个数据传输任务的所述数据类型均为第一数据类型时,确定待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路。S302: When the data types of the multiple data transmission tasks are all the first data type, the electronic device determines that the multiple communication links to be connected belong to the first communication link corresponding to the first data type Multiple first reference communication links of road type.
S303,所述电子设备确定所述多条第一参考通信链路的状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量。S303: The electronic device determines that the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links.
S304,所述电子设备确定所述多条第一参考通信链路已连接的设备数量。S304: The electronic device determines the number of devices connected to the multiple first reference communication links.
S305,所述电子设备当检测到所述多条第一参考通信链路中每条所述第一参考通信链路对应的所述已连接的设备数量均大于或者等于预设数量阈值时,确定每条所述第一参考通信链路的数据传输频率。S305: When the electronic device detects that the number of connected devices corresponding to each of the plurality of first reference communication links is greater than or equal to a preset number threshold, determine The data transmission frequency of each of the first reference communication links.
S306,所述电子设备选取所述多条第一参考通信链路中所述数据传输频率大于预设频率阈值的至少两条目标通信链路。S306: The electronic device selects at least two target communication links of the plurality of first reference communication links whose data transmission frequency is greater than a preset frequency threshold.
S307,所述电子设备连接所述至少两条目标通信链路。S307: The electronic device is connected to the at least two target communication links.
可以看出,本申请实施例中,电子设备在确在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,并根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,最后,连接所述至少两条目标通信链路。可见,电子设备在启动多链路之后,根据每条通信链路的状态信息选取至少两条目标通信链路进行连接以传输数据包,相对于传统的链路选取方法能够提升链路选取的合理性和有效性,同时,相比于通过一条通信链路传输数据能够提高数据传输的速度,减少数据传输消耗的时间,降低网络延迟,提高电子设备的数据传输效率。It can be seen that, in this embodiment of the application, when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
此外,电子设备根据待处理的多个数据传输任务的数据类型来确定要获取的每条通信链路的状态信息类型,对数据传输任务精细化分类,有效针对不同的数据类型选取不同的目标通信链路,提升链路选取的合理性。In addition, the electronic device determines the type of status information of each communication link to be obtained according to the data types of the multiple data transmission tasks to be processed, classifies the data transmission tasks finely, and effectively selects different target communications for different data types Link, improve the rationality of link selection.
此外,电子设备在检测到每条第一参考通信链路的已连接设备的数量大于预设数量阈值时,根据每条第一参考通信链路的数据传输频率选取目标通信链路,进一步提升了链路选取的准确性,以提升数据传输效率。In addition, when the electronic device detects that the number of connected devices of each first reference communication link is greater than the preset number threshold, it selects the target communication link according to the data transmission frequency of each first reference communication link, which further improves Accuracy of link selection to improve data transmission efficiency.
与上述图2所示的实施例一致的,请参阅图4,图4是本申请实施例提供的一种链路选取方法的流程示意图,应用于如图1中所述的电子设备,所述电子设备建立有多个无线通信链路,如图所示,本链路选取方法包括:Consistent with the embodiment shown in FIG. 2 above, please refer to FIG. 4. FIG. 4 is a schematic flowchart of a link selection method provided by an embodiment of the present application, which is applied to the electronic device described in FIG. The electronic device has established multiple wireless communication links. As shown in the figure, this link selection method includes:
S401,电子设备在检测到多链路启动请求时,根据待连接的多条通信链路的历史连接记录确定每条待连接的所述通信链路在多个预设时间段的数据传输速率。S401: When detecting a multi-link activation request, the electronic device determines the data transmission rate of each communication link to be connected in multiple preset time periods according to the historical connection records of the multiple communication links to be connected.
S402,所述电子设备确定当前时间段对应的所述多个预设时间段中的第一预设时间段。S402: The electronic device determines a first preset time period among the multiple preset time periods corresponding to the current time period.
S403,所述电子设备根据每条待连接的所述通信链路在所述第一预设时间段的所述数据传输速率选取所述待连接的多条通信链路中的至少两条目标通信链路。S403. The electronic device selects at least two target communications among the multiple communication links to be connected according to the data transmission rate of each communication link to be connected in the first preset time period. link.
S404,所述电子设备连接所述至少两条目标通信链路。S404: The electronic device is connected to the at least two target communication links.
S405,所述电子设备将待处理的多个数据传输任务分为多个数据分组。S405: The electronic device divides the multiple data transmission tasks to be processed into multiple data packets.
S406,所述电子设备建立每个所述数据分组与所述至少两条目标通信链路之间的对应关系。S406: The electronic device establishes a correspondence between each of the data packets and the at least two target communication links.
S407,所述电子设备按照所述对应关系,通过所述至少两条目标通信链路分流传输所述多个数据分组。S407: The electronic device offloads and transmits the multiple data packets through the at least two target communication links according to the corresponding relationship.
可以看出,本申请实施例中,电子设备在确在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,并根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,最后,连接所述至少两条目标通信链路。可见,电子设备在启动多链路之后,根据每条通信链路的状态信息选取至少两条目标通信链路进行连接以传输数据包,相对于传统的链路选取方法能够提升链路选取的合理性和有效性,同时,相比于通过一条通信链路传输数据能够提高数据传输的速度,减少数据传输消耗的时间,降低网络延迟,提高电子设备的数据传输效率。It can be seen that, in this embodiment of the application, when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
此外,电子设备将数据传输任务中的数据分组,并根据不同的数据分组选取不同的目标无线通信链路进行传输,降低了每个目标无线通信链路的数据传输量,提升了数据传输速度,以及每个目标无线通信链路传输的针对性。In addition, the electronic device groups the data in the data transmission task, and selects different target wireless communication links for transmission according to different data packets, which reduces the data transmission volume of each target wireless communication link and improves the data transmission speed. And the pertinence of each target wireless communication link transmission.
此外,电子设备根据每条通信链路的历史连接记录确定每个时间段的数据传输速率以确定每个时间段连接的目标通信链路,有利于提升链路选取的智能性。In addition, the electronic device determines the data transmission rate of each time period according to the historical connection record of each communication link to determine the target communication link connected in each time period, which is beneficial to improve the intelligence of link selection.
与上述图2、图3、图4所示的实施例一致的,请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,如图所示,所述电子设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令:Consistent with the embodiments shown in FIGS. 2, 3, and 4 above, please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. As shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the aforementioned memory 520 and are configured to be executed by the aforementioned application processor 510, The one or more programs 521 include instructions for performing the following steps:
在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息;When the multi-link start request is detected, determine the status information of the multiple communication links to be connected;
根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路;Selecting at least two target communication links among the multiple communication links according to the state information;
连接所述至少两条目标通信链路。Connecting the at least two target communication links.
可以看出,本申请实施例中,电子设备在确在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,并根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,最后,连接所述至少两条目标通信链路。可见,电子设备在启动多链路之后,根据每条通信链路的状态信息选取至少两条目标通信链路进行连接以传输数据包,相对于传统的链路选取方法能够提升链路选取的合理性和有效性,同时,相比于通过一条通信链路传输数据能够提高数据传输的速度,减少数据传输消耗的时间,降低网络延迟,提高电子设备的数据传输效率。It can be seen that, in this embodiment of the application, when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
在一个可能的示例中,在所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息方面,所述程序521中的指令具体用于执行以下操作:在检测到多链路启动请求时,确定待处理的多个数据传输任务的数据类型;以及用于根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型;以及用于确定所述待连接的多条通信链路与所述状态信息的类型匹配的状态信息。In a possible example, in terms of determining the status information of the multiple communication links to be connected when the multi-link activation request is detected, the instructions in the program 521 are specifically used to perform the following operations: When the multi-link start request is reached, the data types of the multiple data transmission tasks to be processed are determined; and the data types for determining the multiple communication links to be connected according to the data types of the multiple data transmission tasks The type of the status information; and the status information used to determine that the multiple communication links to be connected match the type of the status information.
在这个可能的示例中,在所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型方面,所述程序521中的指令具体用于执行以下操作:当所述多个数据传输任务的所述数据类型均为第一数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路;以及用于确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量;In this possible example, in terms of determining the type of the state information of the plurality of communication links to be connected according to the data type of the plurality of data transmission tasks, the instruction in the program 521 Specifically, it is configured to perform the following operation: when the data types of the multiple data transmission tasks are all the first data type, determining that the multiple communication links to be connected belong to the first data type corresponding to the first data type. A plurality of first reference communication links of a communication link type; and for determining the type of the state information of the plurality of first reference communication links as the corresponding one of each of the first reference communication links The number of connected devices;
在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述程序521中的指令具体用于执行以下操作:选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少两条所述目标通信链路。In terms of selecting at least two target communication links of the plurality of communication links according to the state information, the instructions in the program 521 are specifically used to perform the following operations: selecting the plurality of first reference communication At least two of the target communication links in which the number of connected devices in the link is less than a preset number threshold.
在这个可能的示例中,在所述根据所述状态信息选取所述多条通信链路中的至少两条 目标通信链路方面,所述程序521中的指令具体用于执行以下操作:当检测到所述多条第一参考通信链路中每条所述第一参考通信链路对应的所述已连接的设备数量均大于或者等于所述预设数量阈值时,确定每条所述第一参考通信链路的数据传输频率;以及用于选取所述多条第一参考通信链路中所述数据传输频率大于预设频率阈值的至少两条所述目标通信链路。In this possible example, in terms of selecting at least two target communication links among the multiple communication links according to the state information, the instructions in the program 521 are specifically used to perform the following operations: When the number of connected devices corresponding to each of the plurality of first reference communication links is greater than or equal to the preset number threshold, it is determined that each of the first reference communication links The data transmission frequency of the reference communication link; and used to select at least two of the target communication links in the plurality of first reference communication links whose data transmission frequency is greater than a preset frequency threshold.
在一个可能的示例中,在所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型方面,所述程序521中的指令具体用于执行以下操作:当所述多个数据传输任务的所述数据类型包括第一数据类型和第二数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路,以及属于所述第二数据类型对应的第二通信链路类型的多条第二参考通信链路;以及用于确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量,以及所述多条第二参考通信链路的所述状态信息的类型为每条所述第二参考通信链路对应的信道质量;In a possible example, in terms of determining the type of the state information of the plurality of communication links to be connected according to the data type of the plurality of data transmission tasks, the instruction in the program 521 Specifically, it is configured to perform the following operations: when the data types of the multiple data transmission tasks include a first data type and a second data type, determining that the multiple communication links to be connected belong to the first data A plurality of first reference communication links of a first communication link type corresponding to the type, and a plurality of second reference communication links of a second communication link type corresponding to the second data type; and The types of the status information of the plurality of first reference communication links are the number of connected devices corresponding to each of the first reference communication links, and the status of the plurality of second reference communication links The type of information is the channel quality corresponding to each of the second reference communication links;
在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述程序521中的指令具体用于执行以下操作:选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少一条所述目标通信链路;以及用于根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路。In terms of selecting at least two target communication links of the plurality of communication links according to the state information, the instructions in the program 521 are specifically used to perform the following operations: selecting the plurality of first reference communication At least one of the target communication links in which the number of connected devices in the link is less than a preset number threshold; and used to select the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links At least one of the target communication links among the communication links.
在一个可能的示例中,在所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息方面,所述程序521中的指令具体用于执行以下操作:在检测到多链路启动请求时,根据待连接的所述多条通信链路的历史连接记录确定每条待连接的所述通信链路在多个预设时间段的数据传输速率;In a possible example, in terms of determining the status information of the multiple communication links to be connected when the multi-link activation request is detected, the instructions in the program 521 are specifically used to perform the following operations: When a multi-link activation request is reached, determine the data transmission rate of each of the communication links to be connected in multiple preset time periods according to the historical connection records of the multiple communication links to be connected;
在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述程序521中的指令具体用于执行以下操作:确定当前时间段对应的所述多个预设时间段中的第一预设时间段;以及用于根据每条待连接的所述通信链路在所述第一预设时间段的所述数据传输速率选取所述待连接的多条通信链路中的至少两条目标通信链路。In terms of selecting at least two target communication links of the plurality of communication links according to the state information, the instructions in the program 521 are specifically used to perform the following operations: determining the plurality of communication links corresponding to the current time period A first preset time period among the preset time periods; and configured to select the number to be connected according to the data transmission rate of each communication link to be connected in the first preset time period At least two target communication links among the two communication links.
在一个可能的示例中,所述一个或多个程序521还包括用于执行以下步骤的指令:所述连接所述至少两条目标通信链路之后,将待处理的多个数据传输任务分为多个数据分组;以及建立每个所述数据分组与所述至少两条目标通信链路之间的对应关系;以及按照所述对应关系,通过所述至少两条目标通信链路分流传输所述多个数据分组。In a possible example, the one or more programs 521 further include instructions for executing the following steps: after the connecting the at least two target communication links, divide the multiple data transmission tasks to be processed into A plurality of data packets; and establishing a correspondence between each of the data packets and the at least two target communication links; and according to the correspondence, the at least two target communication links are shunted and transmitted Multiple data groups.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that, in order to realize the above functions, the electronic device includes a hardware structure and/or a software module corresponding to each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of the examples described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered to be beyond the scope of this application.
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the functional unit of the electronic device according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
图6是本申请实施例中所涉及的链路选取装置600的功能单元组成框图。该链路选取装置600应用于电子设备,该链路选取装置600包括处理单元601和通信单元602,其中:FIG. 6 is a block diagram of functional units of the link selection device 600 involved in an embodiment of the present application. The link selection device 600 is applied to electronic equipment. The link selection device 600 includes a processing unit 601 and a communication unit 602, wherein:
所述处理单元601,用于在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息;以及用于根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路;以及用于通过所述通信单元602连接所述至少两条目标通信链路。The processing unit 601 is configured to determine the status information of the multiple communication links to be connected when a multi-link activation request is detected; and to select at least one of the multiple communication links according to the status information Two target communication links; and for connecting the at least two target communication links through the communication unit 602.
其中,所述链路选取装置600还可以包括存储单元603,用于存储电子设备的程序代码和数据。所述处理单元601可以是处理器,所述通信单元602可以是触控显示屏或者收发器,存储单元603可以是存储器。Wherein, the link selection device 600 may further include a storage unit 603 for storing program codes and data of the electronic device. The processing unit 601 may be a processor, the communication unit 602 may be a touch screen or a transceiver, and the storage unit 603 may be a memory.
可以看出,本申请实施例中,电子设备在确在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,并根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,最后,连接所述至少两条目标通信链路。可见,电子设备在启动多链路之后,根据每条通信链路的状态信息选取至少两条目标通信链路进行连接以传输数据包,相对于传统的链路选取方法能够提升链路选取的合理性和有效性,同时,相比于通过一条通信链路传输数据能够提高数据传输的速度,减少数据传输消耗的时间,降低网络延迟,提高电子设备的数据传输效率。It can be seen that, in this embodiment of the application, when the electronic device does detect the multi-link activation request, it determines the status information of the multiple communication links to be connected, and selects the multiple communication links according to the status information At least two target communication links in the path, and finally, connect the at least two target communication links. It can be seen that after the electronic device starts the multi-link, it selects at least two target communication links to connect to transmit data packets according to the status information of each communication link. Compared with the traditional link selection method, the rationality of link selection can be improved. At the same time, compared with transmitting data through a communication link, it can increase the speed of data transmission, reduce the time consumed by data transmission, reduce network delay, and improve the data transmission efficiency of electronic equipment.
在一个可能的示例中,在所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息方面,所述处理单元601具体用于:在检测到多链路启动请求时,确定待处理的多个数据传输任务的数据类型;以及用于根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型;以及用于确定所述待连接的多条通信链路与所述状态信息的类型匹配的状态信息。In a possible example, in terms of determining the status information of the multiple communication links to be connected when the multi-link activation request is detected, the processing unit 601 is specifically configured to: Upon request, determining the data types of the multiple data transmission tasks to be processed; and for determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks ; And the state information used to determine that the multiple communication links to be connected match the type of the state information.
在这个可能的示例中,在所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型方面,所述处理单元601具体用于:当所述多个数据传输任务的所述数据类型均为第一数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路;以及用于确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量;In this possible example, in determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks, the processing unit 601 specifically uses In: when the data types of the multiple data transmission tasks are all the first data type, determine that the multiple communication links to be connected belong to the first communication link type corresponding to the first data type A plurality of first reference communication links; and used to determine the type of the state information of the plurality of first reference communication links as the number of connected devices corresponding to each of the first reference communication links;
在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述处理单元601具体用于:选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少两条所述目标通信链路。In terms of selecting at least two target communication links among the plurality of communication links according to the state information, the processing unit 601 is specifically configured to: select the plurality of first reference communication links At least two of the target communication links whose number of connected devices is less than a preset number threshold.
在这个可能的示例中,在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述处理单元601具体用于:当检测到所述多条第一参考通信链路中每条所述第一参考通信链路对应的所述已连接的设备数量均大于或者等于所述预设数量阈值时,确定每条所述第一参考通信链路的数据传输频率;以及用于选取所述多条第一参考通信链路中所述数据传输频率大于预设频率阈值的至少两条所述目标通信链路。In this possible example, in terms of selecting at least two target communication links of the plurality of communication links according to the state information, the processing unit 601 is specifically configured to: when the plurality of communication links are detected When the number of connected devices corresponding to each of the first reference communication links in the first reference communication link is greater than or equal to the preset number threshold, determine the value of each first reference communication link Data transmission frequency; and used to select at least two of the target communication links whose data transmission frequency is greater than a preset frequency threshold among the plurality of first reference communication links.
在一个可能的示例中,在所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型方面,所述处理单元601具体用于:当所述多个数据传输任务的所述数据类型包括第一数据类型和第二数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路,以及属于所述第二数据类型对应的第二通信链路类型的多条第二参考通信链路;以及用于确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量,以及所述多条第二参考通信链路的所述状态信息的类型为每条所述第二参考通信链路对应的信道质量;In a possible example, in determining the type of the state information of the multiple communication links to be connected according to the data types of the multiple data transmission tasks, the processing unit 601 specifically uses Yu: When the data types of the multiple data transmission tasks include a first data type and a second data type, determine that the multiple communication links to be connected belong to the first data type corresponding to the first data type. A plurality of first reference communication links of a communication link type, and a plurality of second reference communication links of a second communication link type corresponding to the second data type; and used to determine the plurality of first reference communication links The type of the state information of the reference communication link is the number of connected devices corresponding to each of the first reference communication links, and the type of the state information of the plurality of second reference communication links is each Channel quality corresponding to the second reference communication link;
在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所 述处理单元601具体用于:选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少一条所述目标通信链路;以及用于根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路。In terms of selecting at least two target communication links among the plurality of communication links according to the state information, the processing unit 601 is specifically configured to: select the plurality of first reference communication links At least one of the target communication links in which the number of connected devices is less than a preset number threshold; and is configured to select one of the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links At least one target communication link.
在一个可能的示例中,在所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息方面,所述处理单元601具体用于:在检测到多链路启动请求时,根据待连接的所述多条通信链路的历史连接记录确定每条待连接的所述通信链路在多个预设时间段的数据传输速率;In a possible example, in terms of determining the status information of the multiple communication links to be connected when the multi-link activation request is detected, the processing unit 601 is specifically configured to: When requesting, determine the data transmission rate of each communication link to be connected in multiple preset time periods according to the historical connection records of the multiple communication links to be connected;
在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述处理单元601具体用于:确定当前时间段对应的所述多个预设时间段中的第一预设时间段;以及用于根据每条待连接的所述通信链路在所述第一预设时间段的所述数据传输速率选取所述待连接的多条通信链路中的至少两条目标通信链路。In terms of selecting at least two target communication links of the multiple communication links according to the state information, the processing unit 601 is specifically configured to: determine the multiple preset time periods corresponding to the current time period The first preset time period in the first preset time period; and for selecting the plurality of communication links to be connected according to the data transmission rate of each of the communication links to be connected in the first preset time period At least two target communication links.
在一个可能的示例中,所述处理单元601在所述连接所述至少两条目标通信链路之后,还用于:将待处理的多个数据传输任务分为多个数据分组;以及建立每个所述数据分组与所述至少两条目标通信链路之间的对应关系;以及按照所述对应关系,通过所述至少两条目标通信链路通过所述通信单元602分流传输所述多个数据分组。In a possible example, after the at least two target communication links are connected, the processing unit 601 is further configured to: divide the multiple data transmission tasks to be processed into multiple data packets; and establish each The correspondence between the data packets and the at least two target communication links; and according to the correspondence, the at least two target communication links are shunted and transmitted through the communication unit 602. Data grouping.
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to perform part or all of the steps of any method described in the foregoing method embodiments , The aforementioned computer includes electronic devices.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing the computer program, the computer program is operable to cause the computer to perform any of the methods described in the above embodiments Some or all steps of the method. The computer program product may be a software installation package, and the computer includes an electronic device.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the sequence of actions described. Because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the description of each embodiment has its own emphasis. For a part that is not detailed in an embodiment, you can refer to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above-mentioned units is only a division of logical functions. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software function unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可 以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory. Based on such an understanding, the technical solution of the present application may essentially be a part that contributes to the existing technology or all or part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application are described in detail above, and specific examples are used to explain the principle and implementation of the present application. The descriptions of the above embodiments are only used to help understand the method and core idea of the present application; at the same time, Those of ordinary skill in the art, based on the ideas of the present application, may have changes in specific implementations and application scopes. In summary, the content of this specification should not be construed as limiting the present application.

Claims (20)

  1. 一种链路选取方法,其特征在于,应用于电子设备,所述方法包括:A method for link selection, characterized in that it is applied to an electronic device, and the method includes:
    在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息;When the multi-link start request is detected, determine the status information of the multiple communication links to be connected;
    根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路;Selecting at least two target communication links among the multiple communication links according to the state information;
    连接所述至少两条目标通信链路。Connecting the at least two target communication links.
  2. 根据权利要求1所述的方法,其特征在于,所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,包括:The method according to claim 1, wherein the determining the status information of the multiple communication links to be connected when the multi-link activation request is detected comprises:
    在检测到多链路启动请求时,确定待处理的多个数据传输任务的数据类型;When a multi-link start request is detected, determine the data type of multiple data transmission tasks to be processed;
    根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型;Determining the type of the state information of the multiple communication links to be connected according to the data type of the multiple data transmission tasks;
    确定所述待连接的多条通信链路与所述状态信息的类型匹配的状态信息。Determine the state information of the multiple communication links to be connected that matches the type of the state information.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型,包括:The method according to claim 2, wherein the determining the type of the state information of the plurality of communication links to be connected according to the data type of the plurality of data transmission tasks comprises:
    当所述多个数据传输任务的所述数据类型均为第一数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路;When the data types of the multiple data transmission tasks are all of the first data type, it is determined that the multiple of the multiple communication links to be connected belong to the first communication link type corresponding to the first data type. Article 1 reference communication link;
    确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量;Determining that the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links;
    所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:The selecting at least two target communication links of the multiple communication links according to the state information includes:
    选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少两条所述目标通信链路。Select at least two of the target communication links in the plurality of first reference communication links where the number of connected devices is less than a preset number threshold.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:The method according to claim 3, wherein the selecting at least two target communication links of the plurality of communication links according to the state information comprises:
    当检测到所述多条第一参考通信链路中每条所述第一参考通信链路对应的所述已连接的设备数量均大于或者等于所述预设数量阈值时,确定每条所述第一参考通信链路的数据传输频率;When it is detected that the number of connected devices corresponding to each of the plurality of first reference communication links is greater than or equal to the preset number threshold, it is determined that each of the The data transmission frequency of the first reference communication link;
    选取所述多条第一参考通信链路中所述数据传输频率大于预设频率阈值的至少两条所述目标通信链路。Select at least two of the target communication links in the plurality of first reference communication links whose data transmission frequency is greater than a preset frequency threshold.
  5. 根据权利要求2所述的方法,其特征在于,所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型,包括:The method according to claim 2, wherein the determining the type of the state information of the plurality of communication links to be connected according to the data type of the plurality of data transmission tasks comprises:
    当所述多个数据传输任务的所述数据类型包括第一数据类型和第二数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路,以及属于所述第二数据类型对应的第二通信链路类型的多条第二参考通信链路;When the data types of the multiple data transmission tasks include a first data type and a second data type, it is determined that the multiple communication links to be connected belong to the first communication link corresponding to the first data type A plurality of first reference communication links of a channel type, and a plurality of second reference communication links of a second communication link type corresponding to the second data type;
    确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量,以及所述多条第二参考通信链路的所述状态信息的类型为每条所述第二参考通信链路对应的信道质量;It is determined that the type of the state information of the plurality of first reference communication links is the number of connected devices corresponding to each of the first reference communication links, and all of the plurality of second reference communication links The type of the state information is the channel quality corresponding to each of the second reference communication links;
    所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:The selecting at least two target communication links of the multiple communication links according to the state information includes:
    选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少一条所述目标通信链路;Selecting at least one of the target communication links in the plurality of first reference communication links where the number of connected devices is less than a preset number threshold;
    根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路。At least one of the target communication links among the plurality of second reference communication links is selected according to the channel quality of the plurality of second reference communication links.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路,包括:The method according to claim 5, wherein the selecting at least one of the target communication links of the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links ,include:
    根据所述多条第二参考通信链路的信道质量确定所述多条第二参考通信链路的优先级;Determining the priority of the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links;
    根据所述多条第二参考通信链路的优先级选取所述多条第二参考通信链路中的至少一条所述目标通信链路。At least one of the target communication links among the plurality of second reference communication links is selected according to the priority of the plurality of second reference communication links.
  7. 根据权利要求1所述的方法,其特征在于,所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息,包括:The method according to claim 1, wherein the determining the status information of the multiple communication links to be connected when the multi-link activation request is detected comprises:
    在检测到多链路启动请求时,根据待连接的所述多条通信链路的历史连接记录确定每条待连接的所述通信链路在多个预设时间段的数据传输速率;When a multi-link activation request is detected, determine the data transmission rate of each communication link to be connected in a plurality of preset time periods according to the historical connection records of the plurality of communication links to be connected;
    所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路,包括:The selecting at least two target communication links of the multiple communication links according to the state information includes:
    确定当前时间段对应的所述多个预设时间段中的第一预设时间段;Determine the first preset time period among the multiple preset time periods corresponding to the current time period;
    根据每条待连接的所述通信链路在所述第一预设时间段的所述数据传输速率选取所述待连接的多条通信链路中的至少两条目标通信链路。Select at least two target communication links among the plurality of communication links to be connected according to the data transmission rate of each communication link to be connected in the first preset time period.
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述连接所述至少两条目标通信链路之后,所述方法还包括:The method according to any one of claims 1-7, wherein after the connecting the at least two target communication links, the method further comprises:
    将待处理的多个数据传输任务分为多个数据分组;Divide multiple data transmission tasks to be processed into multiple data packets;
    建立每个所述数据分组与所述至少两条目标通信链路之间的对应关系;Establishing a correspondence between each of the data packets and the at least two target communication links;
    按照所述对应关系,通过所述至少两条目标通信链路分流传输所述多个数据分组。According to the corresponding relationship, the multiple data packets are offloaded and transmitted through the at least two target communication links.
  9. 一种链路选取装置,其特征在于,应用于电子设备,所述链路选取装置包括处理单元和通信单元,其中,A link selection device is characterized in that it is applied to electronic equipment. The link selection device includes a processing unit and a communication unit, wherein:
    所述处理单元,用于在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息;以及用于根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路;以及用于通过所述通信单元连接所述至少两条目标通信链路。The processing unit is configured to determine the status information of the multiple communication links to be connected when a multi-link activation request is detected; and to select at least two of the multiple communication links according to the status information Target communication links; and for connecting the at least two target communication links through the communication unit.
  10. 根据权利要求9所述的装置,其特征在于,在所述在检测到多链路启动请求时,确定待连接的多条通信链路的状态信息方面,所述处理单元具体用于:在检测到多链路启动请求时,确定待处理的多个数据传输任务的数据类型;以及用于根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型;以及用于确定所述待连接的多条通信链路与所述状态信息的类型匹配的状态信息。The apparatus according to claim 9, wherein, in determining the status information of the multiple communication links to be connected when the multi-link activation request is detected, the processing unit is specifically configured to: When the multi-link start request is reached, the data types of the multiple data transmission tasks to be processed are determined; and the data types for determining the multiple communication links to be connected according to the data types of the multiple data transmission tasks The type of the status information; and the status information used to determine that the multiple communication links to be connected match the type of the status information.
  11. 根据权利要求10所述的装置,其特征在于,在所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型方面,所述处理单元具体用于:当所述多个数据传输任务的所述数据类型均为第一数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路;以及用于确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量;The apparatus according to claim 10, wherein in the aspect of determining the type of the state information of the plurality of communication links to be connected according to the data type of the plurality of data transmission tasks, The processing unit is specifically configured to: when the data types of the multiple data transmission tasks are all the first data type, determine that the multiple communication links to be connected belong to the first data type corresponding to the first data type. A plurality of first reference communication links of a communication link type; and for determining the type of the state information of the plurality of first reference communication links as the corresponding one of each of the first reference communication links The number of connected devices;
    在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述处理单元具体用于:选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少两条所述目标通信链路。In the aspect of selecting at least two target communication links of the plurality of communication links according to the state information, the processing unit is specifically configured to: select the target communication link of the plurality of first reference communication links At least two of the target communication links whose number of connected devices is less than a preset number threshold.
  12. 根据权利要求11所述的装置,其特征在于,在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述处理单元具体用于:当检测到所述多条第一参考通信链路中每条所述第一参考通信链路对应的所述已连接的设备数量均大于或者等于所述预设数量阈值时,确定每条所述第一参考通信链路的数据传输频率;以及用于选取所述多条第一参考通信链路中所述数据传输频率大于预设频率阈值的至少两条所述目标通信链路。The device according to claim 11, wherein in the aspect of selecting at least two target communication links of the plurality of communication links according to the state information, the processing unit is specifically configured to: When the number of connected devices corresponding to each of the plurality of first reference communication links is greater than or equal to the preset number threshold, it is determined that each of the first reference communication links The data transmission frequency of the reference communication link; and used to select at least two of the target communication links in the plurality of first reference communication links whose data transmission frequency is greater than a preset frequency threshold.
  13. 根据权利要求10所述的装置,其特征在于,在所述根据所述多个数据传输任务的所述数据类型确定所述待连接的多条通信链路的所述状态信息的类型方面,所述处理单元具体用于:当所述多个数据传输任务的所述数据类型包括第一数据类型和第二数据类型时,确定所述待连接的多条通信链路中属于所述第一数据类型对应的第一通信链路类型的多条第一参考通信链路,以及属于所述第二数据类型对应的第二通信链路类型的多条第二参考通信链路;以及用于确定所述多条第一参考通信链路的所述状态信息的类型为每条所述第一参考通信链路对应的已连接的设备数量,以及所述多条第二参考通信链路的所述状态信息的类型为每条所述第二参考通信链路对应的信道质量;The apparatus according to claim 10, wherein in the aspect of determining the type of the state information of the plurality of communication links to be connected according to the data type of the plurality of data transmission tasks, The processing unit is specifically configured to: when the data types of the multiple data transmission tasks include a first data type and a second data type, determine that the multiple communication links to be connected belong to the first data A plurality of first reference communication links of a first communication link type corresponding to the type, and a plurality of second reference communication links of a second communication link type corresponding to the second data type; and The types of the status information of the plurality of first reference communication links are the number of connected devices corresponding to each of the first reference communication links, and the status of the plurality of second reference communication links The type of information is the channel quality corresponding to each of the second reference communication links;
    在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述处理单元具体用于:选取所述多条第一参考通信链路中所述已连接的设备数量小于预设数量阈值的至少一条所述目标通信链路;以及用于根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路。In the aspect of selecting at least two target communication links of the plurality of communication links according to the state information, the processing unit is specifically configured to: select the target communication link of the plurality of first reference communication links At least one of the target communication links in which the number of connected devices is less than a preset number threshold; and configured to select at least one of the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links One said target communication link.
  14. 根据权利要求13所述的装置,其特征在于,所述根据所述多条第二参考通信链路的信道质量选取所述多条第二参考通信链路中的至少一条所述目标通信链路,包括:The apparatus according to claim 13, wherein the selecting at least one of the target communication links of the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links ,include:
    根据所述多条第二参考通信链路的信道质量确定所述多条第二参考通信链路的优先级;Determining the priority of the plurality of second reference communication links according to the channel quality of the plurality of second reference communication links;
    根据所述多条第二参考通信链路的优先级选取所述多条第二参考通信链路中的至少一条所述目标通信链路。At least one of the target communication links among the plurality of second reference communication links is selected according to the priority of the plurality of second reference communication links.
  15. 根据权利要求9所述的装置,其特征在于,确定待连接的多条通信链路的状态信息方面,所述处理单元具体用于:在检测到多链路启动请求时,根据待连接的所述多条通信链路的历史连接记录确定每条待连接的所述通信链路在多个预设时间段的数据传输速率;The device according to claim 9, characterized in that, in terms of determining the status information of the multiple communication links to be connected, the processing unit is specifically configured to: when a multi-link activation request is detected, according to the status information of the multiple communication links to be connected The historical connection records of the multiple communication links determine the data transmission rate of each of the communication links to be connected in multiple preset time periods;
    在所述根据所述状态信息选取所述多条通信链路中的至少两条目标通信链路方面,所述处理单元具体用于:确定当前时间段对应的所述多个预设时间段中的第一预设时间段;以及用于根据每条待连接的所述通信链路在所述第一预设时间段的所述数据传输速率选取所述待连接的多条通信链路中的至少两条目标通信链路。In the aspect of selecting at least two target communication links of the plurality of communication links according to the state information, the processing unit is specifically configured to: determine among the plurality of preset time periods corresponding to the current time period The first preset period of time; and the method used to select one of the plurality of communication links to be connected according to the data transmission rate of each of the communication links to be connected in the first preset period of time At least two target communication links.
  16. 根据权利要求9-15任一项所述的装置,其特征在于,所述处理单元在所述连接所述至少两条目标通信链路之后,还用于:将待处理的多个数据传输任务分为多个数据分组;以及建立每个所述数据分组与所述至少两条目标通信链路之间的对应关系;以及按照所述对应关系,通过所述至少两条目标通信链路通过所述通信单元分流传输所述多个数据分组。The device according to any one of claims 9-15, wherein the processing unit is further configured to: transmit multiple data transmission tasks to be processed after the at least two target communication links are connected. Divided into a plurality of data packets; and establishing a correspondence between each of the data packets and the at least two target communication links; and according to the correspondence, through the at least two target communication links The communication unit splits and transmits the plurality of data packets.
  17. 一种芯片,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片的设备执行如权利要求1-8中任一项所述的方法。A chip, characterized by comprising: a processor for calling and running a computer program from a memory, so that a device installed with the chip executes the method according to any one of claims 1-8.
  18. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-8任一项所述的方法中的步骤的指令。An electronic device, characterized in that it includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory, and are configured to be executed by the processor, The program includes instructions for performing the steps in the method of any one of claims 1-8.
  19. 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-8任一项所述的方法。A computer-readable storage medium characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method according to any one of claims 1-8.
  20. 一种计算机程序产品,其特征在于,当所述计算机程序产品在终端上运行时,权利要求1-8任一项所述的方法得以实现。A computer program product, characterized in that, when the computer program product runs on a terminal, the method according to any one of claims 1-8 can be implemented.
PCT/CN2020/070954 2019-01-15 2020-01-08 Link selection method and related apparatus WO2020147627A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910037476.5 2019-01-15
CN201910037476.5A CN109618373B (en) 2019-01-15 2019-01-15 Link selection method and related device

Publications (1)

Publication Number Publication Date
WO2020147627A1 true WO2020147627A1 (en) 2020-07-23

Family

ID=66019658

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/070954 WO2020147627A1 (en) 2019-01-15 2020-01-08 Link selection method and related apparatus

Country Status (2)

Country Link
CN (1) CN109618373B (en)
WO (1) WO2020147627A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157925A (en) * 2021-08-31 2022-03-08 佛山市顺德区美的饮水机制造有限公司 Water intaking data transmission method, device and system
CN114500170A (en) * 2021-12-28 2022-05-13 杭州安恒信息安全技术有限公司 VPN line screening method, device, equipment and storage medium
CN116506525A (en) * 2023-05-16 2023-07-28 中科融信科技有限公司 Heterogeneous link-based data transmission device and method and electronic equipment
CN117460017A (en) * 2023-10-11 2024-01-26 北京讯腾智慧科技股份有限公司 Beidou reference station data transmission and detection system
CN114500170B (en) * 2021-12-28 2024-04-26 杭州安恒信息安全技术有限公司 VPN line screening method, device, equipment and storage medium

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109618373B (en) * 2019-01-15 2021-04-16 Oppo广东移动通信有限公司 Link selection method and related device
CN111836329B (en) * 2019-04-19 2022-04-22 Oppo广东移动通信有限公司 Data transmission method and related device
CN110505014A (en) * 2019-08-27 2019-11-26 Oppo广东移动通信有限公司 Data transfer control method and Related product
CN111163442B (en) * 2019-12-27 2021-11-23 咻享智能(深圳)有限公司 Route planning method and related device for wireless Internet of things
CN111131477B (en) * 2019-12-28 2022-01-11 杭州和利时自动化有限公司 Data processing method, device and equipment
CN111385043B (en) * 2019-12-31 2021-11-23 咻享智能(深圳)有限公司 Wireless internet of things channel management method and related device
SG10202002245YA (en) * 2020-03-11 2021-10-28 Panasonic Ip Corp America Communication apparatus and communication method for multi-link setup and link maintenance
CN113973058A (en) * 2020-07-23 2022-01-25 华为技术有限公司 Link management method and communication device
CN112492581A (en) * 2020-09-30 2021-03-12 中兴通讯股份有限公司 Data transmission method and device
CN112399484B (en) * 2020-11-13 2023-09-12 Oppo广东移动通信有限公司 Data transmission method and device, storage medium and electronic equipment
CN112291816B (en) * 2020-11-13 2023-03-24 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN114697733B (en) * 2020-12-31 2023-06-06 华为技术有限公司 Screen-throwing audio and video data transmission method and related equipment
CN113078926B (en) * 2021-03-19 2023-01-03 维沃移动通信有限公司 Data transmission method and device and electronic equipment
CN113411375B (en) * 2021-05-08 2023-07-18 长沙智能驾驶研究院有限公司 Information processing method, apparatus, and computer storage medium
CN113365310B (en) * 2021-05-31 2023-03-24 浙江大华技术股份有限公司 Data transmission method and device, storage medium and electronic device
WO2023039734A1 (en) * 2021-09-14 2023-03-23 Oppo广东移动通信有限公司 Multi-link communication method, apparatus and device, and medium
CN115915251A (en) * 2021-09-30 2023-04-04 展讯通信(上海)有限公司 Data transmission method and device, chip module and electronic equipment
CN115348610B (en) * 2022-10-18 2023-03-24 成都市以太节点科技有限公司 Millimeter wave multilink self-adaptive communication method, electronic equipment and storage medium
CN117135602A (en) * 2023-04-25 2023-11-28 荣耀终端有限公司 Data interaction method for handwriting pen multi-connection scene, handwriting pen and Bluetooth system
CN117062180B (en) * 2023-08-15 2024-02-02 广州视声智能股份有限公司 Communication path selection method and device based on multiple Bluetooth networks

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781157A (en) * 2014-01-14 2014-05-07 南京邮电大学 Heterogeneous-network access decision method based on multi-network parallel transmission
CN107517482A (en) * 2017-09-28 2017-12-26 北京小米移动软件有限公司 Data transmission method and device
CN108777666A (en) * 2018-08-23 2018-11-09 Oppo广东移动通信有限公司 The shunt method and relevant device of link aggregation
US20180368047A1 (en) * 2017-06-14 2018-12-20 Cisco Technology, Inc. System and method to facilitate link aggregation using network-based internet protocol (ip) flow mobility in a network environment
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497660B (en) * 2011-12-09 2014-08-13 电子科技大学 Multi-service concurrency accessing system and accessing method used for heterogeneous wireless network
CN105656732A (en) * 2014-11-17 2016-06-08 中兴通讯股份有限公司 Method, device and terminal for supporting multiple network data access
CN105553868A (en) * 2015-09-21 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Data transmission method and device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781157A (en) * 2014-01-14 2014-05-07 南京邮电大学 Heterogeneous-network access decision method based on multi-network parallel transmission
US20180368047A1 (en) * 2017-06-14 2018-12-20 Cisco Technology, Inc. System and method to facilitate link aggregation using network-based internet protocol (ip) flow mobility in a network environment
CN107517482A (en) * 2017-09-28 2017-12-26 北京小米移动软件有限公司 Data transmission method and device
CN108777666A (en) * 2018-08-23 2018-11-09 Oppo广东移动通信有限公司 The shunt method and relevant device of link aggregation
CN109618373A (en) * 2019-01-15 2019-04-12 Oppo广东移动通信有限公司 Link choosing method and relevant apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
INTEL CORPORATION: "Motivation for New SI: Integrated LTE-WLAN RATs", 3GPP DRAFT; RP-140685, 13 June 2014 (2014-06-13), Sophia Antipolis, France, pages 1 - 4, XP051644401 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157925A (en) * 2021-08-31 2022-03-08 佛山市顺德区美的饮水机制造有限公司 Water intaking data transmission method, device and system
CN114500170A (en) * 2021-12-28 2022-05-13 杭州安恒信息安全技术有限公司 VPN line screening method, device, equipment and storage medium
CN114500170B (en) * 2021-12-28 2024-04-26 杭州安恒信息安全技术有限公司 VPN line screening method, device, equipment and storage medium
CN116506525A (en) * 2023-05-16 2023-07-28 中科融信科技有限公司 Heterogeneous link-based data transmission device and method and electronic equipment
CN117460017A (en) * 2023-10-11 2024-01-26 北京讯腾智慧科技股份有限公司 Beidou reference station data transmission and detection system

Also Published As

Publication number Publication date
CN109618373B (en) 2021-04-16
CN109618373A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
WO2020147627A1 (en) Link selection method and related apparatus
WO2020207229A1 (en) Data transmission method and related apparatus
WO2020164520A1 (en) Data packet distribution method and apparatus, mobile terminal, and storage medium
WO2020143680A1 (en) Data transmission method and related apparatus
US10993166B2 (en) Data transmission method, electronic device, and computer readable storage medium
WO2020164475A1 (en) Data distribution method and apparatus, mobile terminal, and storage medium
WO2020147606A1 (en) Wireless roaming method and device
WO2020164349A1 (en) Data transmission control method and related product
WO2020038132A1 (en) Data transmission method and related apparatus
CN109495880B (en) Data transmission method and related device
WO2020164351A1 (en) Link connection method and related apparatus
US11070466B2 (en) Method for link aggregation and related devices
WO2020098410A1 (en) Transmission control method and related apparatus
WO2020114048A1 (en) Data transmission method and related apparatus
US20210297902A1 (en) Data transmission method, related storage medium and electronic device
EP4057730A1 (en) Data processing system, method, and apparatus, device, and readable storage medium
WO2020164521A1 (en) Data packet distribution method and apparatus, and mobile terminal and storage medium
US10841965B2 (en) Device to device-based communication method and terminal
CN109617802B (en) Link aggregation implementation method and related product
WO2020048355A1 (en) User interface (ui) display control method and apparatus
WO2020143579A1 (en) Link aggregation implementation method and related product
US11974168B2 (en) Method for data transmission through communication link, electronic device, and storage medium
US11973684B2 (en) Link aggregation implementation method and related product
CN110574468A (en) Quality score based network connection selection
WO2018209471A1 (en) Communication resource allocation method and system

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: 20741155

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20741155

Country of ref document: EP

Kind code of ref document: A1