WO2017050015A1 - 数据传输方法、装置以及终端 - Google Patents

数据传输方法、装置以及终端 Download PDF

Info

Publication number
WO2017050015A1
WO2017050015A1 PCT/CN2016/092475 CN2016092475W WO2017050015A1 WO 2017050015 A1 WO2017050015 A1 WO 2017050015A1 CN 2016092475 W CN2016092475 W CN 2016092475W WO 2017050015 A1 WO2017050015 A1 WO 2017050015A1
Authority
WO
WIPO (PCT)
Prior art keywords
transmission
data
links
transmission links
weight value
Prior art date
Application number
PCT/CN2016/092475
Other languages
English (en)
French (fr)
Inventor
关学进
文安明
李胡送
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2017050015A1 publication Critical patent/WO2017050015A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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

Definitions

  • the present disclosure relates to the field of communication technologies, for example, to a data transmission method, apparatus, and terminal.
  • the present disclosure provides a data transmission method, apparatus, and terminal, which can simultaneously use multiple access methods, fully utilize network resources, and improve network access efficiency.
  • an embodiment of the present disclosure provides a data transmission method, which is applied to a terminal, and includes:
  • the subsequent data is allocated and transmitted according to the adjusted weight value.
  • the receiving the transmission request of the target data includes: receiving a data transmission instruction; parsing the data transmission instruction, and acquiring size information of the data to be transmitted; and transmitting, according to the size information of the data to be transmitted, the to-be-transmitted Part of the data is selected as the target data in the data.
  • the establishing at least two transmission links, and allocating the target data to the at least two transmission links according to a weight value of a preset transmission link including: according to where the terminal is located The internet
  • the environment establishes at least two transmission links; setting a weight value of the transmission link according to the link characteristics of the at least two transmission links, where the link characteristics include: link type, cost information, and bandwidth information;
  • the weight value of the at least two transmission links allocates the target data into at least two groups, wherein the number of groups of the allocated data is the same as the number of the transmission links, and the size of each group of data after the allocation Matches the weight value of each transmission link.
  • the acquiring the transmission parameters of the at least two transmission links after the transmission is completed including: after waiting for the transmission to be completed, acquiring transmission information of the at least two transmission links; and calculating, according to the transmission information, Transmitting parameters of at least two transmission links, wherein the transmission parameters include: a round trip delay and a congestion window.
  • the adjusting, according to the transmission parameter, the weight value of the at least two transmission links including: adjusting a weight of the transmission link according to a round-trip delay and a congestion window of the at least two transmission links a value, wherein the adjusted weight value is inversely proportional to the value of the round trip delay and is proportional to the value of the congestion window.
  • an embodiment of the present disclosure provides a data transmission apparatus, which is applied to a terminal, and includes:
  • a receiving module configured to receive a transmission request of the target data
  • Establishing a module configured to establish at least two transmission links, and assign the target data to the at least two transmission links according to a preset weight value
  • An acquiring module configured to acquire transmission parameters of the at least two transmission links after the transmission is completed
  • an adjusting module configured to adjust weight values of the at least two transmission links according to the transmission parameter
  • the processing module is configured to perform subsequent data allocation and transmission according to the adjusted weight value.
  • the receiving module includes: a receiving unit configured to receive a data transmission instruction; a parsing unit configured to parse the data transmission instruction to obtain size information of data to be transmitted; and a selecting unit configured to be configured according to the to-be-transmitted The size information of the data is selected from the data to be transmitted as part of the target data.
  • the establishing module includes: an establishing unit, configured to establish at least two transmission links according to a network environment in which the terminal is located; and a setting unit configured to perform, according to link characteristics of the at least two transmission links Setting a weight value of the transmission link, where the link feature includes: a link type, fee information, and bandwidth information; and an allocation unit configured to allocate the target data according to weight values of the at least two transmission links There are at least two groups, wherein the number of groups of the allocated data is the same as the number of the transmission links, and the size of each of the allocated groups of data matches the weight value of each transmission link.
  • the obtaining module includes: an acquiring unit configured to wait for the transmission to be completed, and obtain the location Transmitting information of the at least two transmission links; and calculating, configured to calculate transmission parameters of the at least two transmission links according to the transmission information, where the transmission parameters include: a round trip delay and a congestion window.
  • the adjusting module includes: an adjusting unit, configured to adjust a weight value of the transmission link according to a round-trip delay and a congestion window of the at least two transmission links, where the adjusted weight value is It is inversely proportional to the value of the round trip delay and is proportional to the value of the congestion window.
  • an embodiment of the present disclosure provides a terminal, including the data transmission device described above.
  • embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions for performing the data transfer method described above.
  • the present disclosure allocates target data to the at least two transmission links by establishing at least two transmission links, and can adjust weight values according to transmission conditions of the transmission links in real time. Therefore, the network resources in the current network environment can be fully utilized, the network access efficiency is improved, and the user experience is improved.
  • FIG. 1 is a flowchart of a first embodiment of a data transmission method according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic structural diagram of establishing at least two transmission links according to an embodiment of the present disclosure.
  • FIG. 3 is a flowchart of a second embodiment of a data transmission method according to an embodiment of the present disclosure.
  • FIG. 4 is a flowchart of a third embodiment of a data transmission method according to an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a fourth embodiment of a data transmission method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a first embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of a second embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a third embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a fourth embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a first embodiment of a data transmission method according to an embodiment of the present disclosure.
  • the data transmission method is applied to a terminal, and the terminal may be an electronic device such as a smart phone, a tablet computer, a computer, or a wearable device.
  • the terminal can access the mobile network of the operator, for example, can access the mobile network of China Mobile or China Unicom, and can also access various wireless network hotspots. In other ways, the network can also be accessed via Bluetooth.
  • the data transmission method includes steps S110-S150.
  • step S110 a transmission request of the target data is received.
  • a transmission request of the target data is received.
  • the data transmission request of the user is obtained by detecting the operation of the user. For example, if a user requests to open a web page, download a file, or play music or video online, it can be understood that different data transmission requests correspond to different amounts of data.
  • step S120 at least two transmission links are established, and the target data is allocated to the at least two transmission links according to a preset weight value.
  • FIG. 2 is a schematic structural diagram of establishing at least two transmission links according to an embodiment of the present disclosure.
  • the application layer does not require any additional processing, and a multi-path transmission control protocol (MP-TCP) connection is established through a socket programming application programming interface (API), thereby implementing multiple transmission links simultaneously.
  • MP-TCP multi-path transmission control protocol
  • API socket programming application programming interface
  • FIG. 2 exemplarily shows four transmission links, and those skilled in the art can understand that the transmission link of the terminal can be Ethernet, wireless local area network (WLAN), carrier network.
  • the embodiments of the present disclosure are not limited thereto.
  • the weight values of the respective transmission links are set, and the target data is allocated to the transmission link according to the weight value.
  • the weight value may be preset and set according to the link characteristics of different transmission links. For example, if the network signal of the current operator is good, the weight may be set higher; if the bandwidth of the wireless network hotspot is lower, The weight can be set lower. It can be understood that the establishment of the transmission link in this step may also be before step S101, that is, the transmission chain is established first.
  • the embodiment of the present disclosure is not limited thereto.
  • step S130 transmission parameters of the at least two transmission links are acquired after the transmission is completed.
  • the transmission parameters of the current transmission link are obtained, where the transmission parameters include a round-trip delay and a congestion window, and the transmission parameters are calculated by counting the time spent transmitting and the size of the transmitted data.
  • step S140 the weight values of the at least two transmission links are adjusted according to the transmission parameters.
  • the weight value of the transmission link is adjusted according to the transmission parameters of each link. For example, if the round trip delay is large, it indicates that the transmission link is congested and its weight value can be lowered. If the congestion window is large, it indicates that the transmission link has a high bandwidth, and the weight value can be appropriately increased. It can be understood that the weight value can also be adjusted according to other manners, and the embodiment is not limited thereto.
  • step S150 the subsequent data is allocated and transmitted according to the adjusted weight value.
  • the subsequent data is allocated and transmitted according to the adjusted weight values.
  • the terminal can fully utilize the existing network resources to improve the network access efficiency, and at the same time, can adjust the weight value of each transmission link according to the network environment in real time, thereby further improving the network adaptability.
  • the data transmission method in the embodiment of the present disclosure allocates target data to the at least two transmission links by establishing at least two transmission links, and can adjust the weight value according to the transmission condition of the transmission link in real time. Therefore, the network resources in the current network environment can be fully utilized, the network access efficiency is improved, and the user experience is improved.
  • FIG. 3 is a flowchart of a second embodiment of a data transmission method according to an embodiment of the present disclosure.
  • the data transmission method includes the steps S310-S370, wherein the steps S340-S370 in the embodiment are the same as the steps S120-S150 in the first embodiment shown in FIG. 1, and are not described herein.
  • step S310 a data transfer instruction is received.
  • Receive data transfer instructions by detecting the user's operation. Among them, the user can issue data transmission instructions through various operations such as touch operation and voice control.
  • step S320 the data transmission instruction is parsed to obtain size information of the data to be transmitted.
  • the data transmission instruction is parsed, and the size information of the data to be transmitted corresponding to the data transmission instruction is obtained.
  • step S330 part of the data is selected as the target data from the data to be transmitted according to the size information of the data to be transmitted.
  • selecting part of the data from the data to be transmitted As the target data.
  • Part of the data is selected for transmission as the target data, in order to quickly verify the transmission quality of the transmission link and facilitate the mass transmission of subsequent data.
  • the basis for selecting part of the data may be preset.
  • data of a certain proportion of the original transmission data may be selected as the target data. For example, if the data to be transmitted is a song and the size is 4M, at this time, 4k of data can be selected as the target data for transmission. It is to be understood that the embodiments of the present disclosure are not limited thereto.
  • step S340 at least two transmission links are established, and the target data is allocated to the at least two transmission links according to a preset weight value.
  • step S350 transmission parameters of the at least two transmission links are acquired after the transmission is completed.
  • step S360 the weight values of the at least two transmission links are adjusted according to the transmission parameters.
  • step S370 the subsequent data is allocated and transmitted according to the adjusted weight value.
  • the data transmission method in the embodiment of the present disclosure selects target data from data to be transmitted by establishing at least two transmission links, and allocates target data to the at least two transmission links, and can be real-time based on
  • the transmission condition of the transmission link adjusts the weight value, so that the network resources in the current network environment can be fully utilized, the network access efficiency is improved, and the user experience is improved.
  • FIG. 4 is a flowchart of a third embodiment of a data transmission method according to an embodiment of the present disclosure.
  • the data transmission method includes steps S410-S490, wherein S410-S430 in this embodiment is the same as the steps S310-S330 in the second embodiment shown in FIG. 3, and S470-S490 in this embodiment
  • S410-S430 in this embodiment is the same as the steps S310-S330 in the second embodiment shown in FIG. 3, and S470-S490 in this embodiment
  • the steps of S350-S370 in the second embodiment shown in FIG. 3 are the same, and are not described herein.
  • step S410 a data transfer instruction is received.
  • step S420 the data transmission instruction is parsed to obtain size information of the data to be transmitted.
  • step S430 part of the data is selected as the target data from the data to be transmitted according to the size information of the data to be transmitted.
  • step S440 at least two transmission links are established according to the network environment in which the terminal is located.
  • step S450 the weight value of the transmission link is set according to the link characteristics of the at least two transmission links.
  • the levy includes: link type, cost information, and bandwidth information.
  • the link type includes: Ethernet, WLAN, rmnet, or Bluetooth.
  • the fee information refers to the charging situation of accessing the network by using the transmission link.
  • the bandwidth information refers to the charging situation.
  • the weight value of the transmission link is set according to the characteristics of the link. For example, if the network signal of the current operator is good, the weight can be set higher; if the bandwidth of the wireless network hotspot is lower, the weight can be set lower.
  • step S460 the target data is allocated into at least two groups according to weight values of the at least two transmission links.
  • the target data is allocated according to the weight value of the transmission link.
  • the number of groups of the allocated data is the same as the number of the transmission links, and the size of each group of data after the allocation matches the weight value of each transmission link.
  • step S470 transmission parameters of the at least two transmission links are acquired after the transmission is completed.
  • step S480 the weight values of the at least two transmission links are adjusted according to the transmission parameters.
  • step S490 allocation and transmission of subsequent data are performed according to the adjusted weight value.
  • the data transmission method in the embodiment of the present disclosure allocates target data to the at least two transmission links by selecting at least two transmission links according to a network environment by selecting target data from data to be transmitted, and
  • the weight value can be adjusted according to the transmission condition of the transmission link in real time to facilitate the transmission of subsequent data, thereby fully utilizing network resources in the current network environment, improving network access efficiency, and improving the user experience.
  • FIG. 5 is a flowchart of a fourth embodiment of a data transmission method according to an embodiment of the present disclosure.
  • the data transmission method includes steps S510-S5100, wherein S510-S560 in the embodiment is the same as the steps S410-S460 in the third embodiment shown in FIG. 4, and S5100 and FIG. 4 in this embodiment.
  • the steps of S490 in the third embodiment shown are the same and will not be described here.
  • step S510 a data transfer instruction is received.
  • step S520 the data transmission instruction is parsed to obtain size information of the data to be transmitted.
  • step S530 part of the data is selected as the target data from the data to be transmitted according to the size information of the data to be transmitted.
  • step S540 at least two transmission links are established according to the network environment in which the terminal is located.
  • step S550 a weight value of the transmission link is set according to the link characteristics of the at least two transmission links.
  • step S560 the target data is allocated according to the weight values of the at least two transmission links. For at least two groups.
  • step S570 after waiting for the transmission to be completed, the transmission information of the at least two transmission links is acquired.
  • the transmission information of the transmission link is acquired, wherein the transmission information includes the time of transmission and the amount of transmission data.
  • step S580 the transmission parameters of the at least two transmission links are calculated according to the transmission information, where the transmission parameters include: a round trip delay and a congestion window.
  • the transmission parameters are calculated based on the obtained transmission time and the amount of transmission data.
  • step S590 the weight value of the transmission link is adjusted according to the round-trip delay and the congestion window of the at least two transmission links.
  • the weight values of the respective transmission links are adjusted according to the round-trip delay of the transmission parameters and the congestion window.
  • the adjusted weight value is inversely proportional to the value of the round trip delay and is proportional to the value of the congestion window. That is, when the round-trip delay in the transmission parameter is high, the subsequent weight value needs to be lowered; when the congestion window in the transmission parameter is large, the subsequent weight value can be increased.
  • step S5100 the subsequent data is allocated and transmitted according to the adjusted weight value.
  • the data transmission method in the embodiment of the present disclosure allocates target data to the at least two transmission links by selecting at least two transmission links according to a network environment by selecting target data from data to be transmitted, and
  • the weight value can be adjusted according to the transmission condition of the transmission link in real time to facilitate the transmission of subsequent data, thereby fully utilizing network resources in the current network environment, improving network access efficiency, and improving the user experience.
  • FIG. 6 is a schematic structural diagram of a first embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • the data transmission device is applied to a terminal, and the terminal may be an electronic device such as a smart phone, a tablet computer, a computer, or a wearable device.
  • the terminal can access the mobile network of the operator, for example, can access the mobile network of China Mobile or China Unicom, and can also access various wireless network hotspots. In other ways, the network can also be accessed via Bluetooth.
  • the data transmission device includes a receiving module 601, an establishing module 602, an obtaining module 603, an adjusting module 604, and a processing module 605.
  • the receiving module 601 is configured to receive a transmission request of the target data.
  • the receiving module 601 receives a transmission request of the target data.
  • the receiving module 601 acquires a data transmission request of the user by detecting an operation of the user. For example, if a user requests to open a web page, download a file, or play music or video online, it can be understood that different data transmission requests correspond to different amounts of data.
  • the establishing module 602 is configured to establish at least two transmission links, and the target is determined according to a preset weight value Data is distributed onto the at least two transmission links.
  • the establishing module 602 establishes at least two transmission links.
  • the network may be simultaneously accessed through the operator's network and the wireless network hotspot, and at least two are established by using the multi-path technology. Strip transmission link.
  • the weight values of the respective transmission links are set, and the target data is allocated to the transmission link according to the weight value.
  • the weight value may be preset and set according to the link characteristics of different transmission links. For example, if the network signal of the current operator is good, the weight may be set higher; if the bandwidth of the wireless network hotspot is lower, The weight can be set lower.
  • the obtaining module 603 is configured to acquire transmission parameters of the at least two transmission links after the transmission is completed.
  • the obtaining module 603 acquires the transmission parameters of the current transmission link, where the transmission parameters include a round-trip delay and a congestion window, and the transmission parameters are calculated by counting the time consumed by the transmission and the size of the transmitted data amount.
  • the adjustment module 604 is configured to adjust the weight values of the at least two transmission links according to the transmission parameters.
  • the adjustment module 604 adjusts the weight value of the transmission link according to the transmission parameters of each link. For example, if the round trip delay is large, it indicates that the transmission link is congested and its weight value can be lowered. If the congestion window is large, it indicates that the transmission link has a high bandwidth, and the weight value can be appropriately increased. It can be understood that the weight value can also be adjusted according to other manners, and the embodiment is not limited thereto.
  • the processing module 605 is configured to perform subsequent data allocation and transmission according to the adjusted weight value.
  • the processing module 605 After adjusting the weight values of the links, the processing module 605 performs subsequent data allocation and transmission according to the adjusted weight values.
  • the data transmission apparatus in the embodiment of the present disclosure allocates target data to the at least two transmission links by establishing at least two transmission links, and can adjust the weight value according to the transmission condition of the transmission link in real time. Therefore, the network resources in the current network environment can be fully utilized, the network access efficiency is improved, and the user experience is improved.
  • FIG. 7 is a schematic structural diagram of a second embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • the receiving module 601 further includes: a receiving unit 6011, a parsing unit 6012, and a selecting unit 6013.
  • the receiving unit 6011 is configured to receive a data transfer instruction.
  • the receiving unit 6011 receives the data transmission instruction by detecting the operation of the user. Among them, the user can issue data transmission instructions through various operations such as touch operation and voice control.
  • the parsing unit 6012 is configured to parse the data transmission instruction to obtain size information of the data to be transmitted.
  • the parsing unit 6012 parses the data transmission instruction, and acquires size information of the data to be transmitted corresponding to the data transmission instruction.
  • the selecting unit 6013 is configured to select part of the data to be transmitted as the target data from the data to be transmitted according to the size information of the data to be transmitted.
  • the selecting unit 6013 selects part of the data from the data to be transmitted as the target data. Part of the data is selected for transmission as the target data, in order to quickly verify the transmission quality of the transmission link and facilitate the mass transmission of subsequent data.
  • the basis for selecting part of the data may be preset. Generally, data of a certain proportion of the original transmission data may be selected as the target data. For example, if the data to be transmitted is a song and the size is 4M, at this time, 4k of data can be selected as the target data for transmission. It is to be understood that the embodiments of the present disclosure are not limited thereto.
  • the data transmission apparatus in the embodiment of the present disclosure selects target data from data to be transmitted by establishing at least two transmission links, and allocates target data to the at least two transmission links, and can be real-time based on
  • the transmission condition of the transmission link adjusts the weight value, so that the network resources in the current network environment can be fully utilized, the network access efficiency is improved, and the user experience is improved.
  • FIG. 8 is a schematic structural diagram of a third embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • the establishing module 602 further includes: an establishing unit 6021 , a setting unit 6022 , and an allocating unit 6023 .
  • the establishing unit 6021 is configured to establish at least two transmission links according to a network environment in which the terminal is located.
  • the establishing unit 6021 detects the network environment in which the current terminal is located, and establishes at least two transmission links by using the multipath technology according to the network environment. For example, if the current network environment of the terminal not only exists in the network of the operator but also other wireless hotspots, two transmission links can be established, and the network resources of the operator and the network resources on the wireless hotspot are used at the same time.
  • the setting unit 6022 is configured to set a weight value of the transmission link according to link characteristics of the at least two transmission links.
  • the setting unit 6022 sets weight values of different transmission links according to link characteristics of the transmission link, where the link characteristics include: link type, cost information, and bandwidth information.
  • the link type includes: Ethernet, WLAN, rmnet, or Bluetooth.
  • the fee information refers to the charging situation of accessing the network through the transmission link.
  • the bandwidth information is Refers to the maximum bandwidth of the transmission link.
  • the weight value of the transmission link is set according to the characteristics of the link. For example, if the network signal of the current operator is good, the weight can be set higher; if the bandwidth of the wireless network hotspot is lower, the weight can be set lower.
  • the allocating unit 6023 is configured to allocate the target data into at least two groups according to weight values of the at least two transmission links.
  • the allocating unit 6023 allocates the target data according to the weight value of the transmission link.
  • the number of groups of the allocated data is the same as the number of the transmission links, and the size of each group of data after the allocation matches the weight value of each transmission link.
  • the data transmission apparatus in the embodiment of the present disclosure allocates target data to the at least two transmission links by selecting at least two transmission links according to a network environment by selecting target data from data to be transmitted, and
  • the weight value can be adjusted according to the transmission condition of the transmission link in real time to facilitate the transmission of subsequent data, thereby fully utilizing network resources in the current network environment, improving network access efficiency, and improving the user experience.
  • FIG. 9 is a schematic structural diagram of a fourth embodiment of a data transmission apparatus according to an embodiment of the present disclosure.
  • the obtaining module 603 further includes: an obtaining unit 6031 and a calculating unit 6032.
  • the adjusting module 604 further includes an adjusting unit 6041.
  • the obtaining unit 6031 is configured to acquire transmission information of the at least two transmission links after waiting for the transmission to be completed.
  • the acquisition unit 6031 acquires transmission information of the transmission link, wherein the transmission information includes the time of transmission and the amount of transmission data.
  • the calculating unit 6032 is configured to calculate transmission parameters of the at least two transmission links according to the transmission information, where the transmission parameters include: a round trip delay and a congestion window.
  • the calculation unit 6032 calculates the transmission parameters based on the obtained transmission time and the amount of transmission data.
  • the adjusting unit 6041 is configured to adjust a weight value of the transmission link according to a round-trip delay and a congestion window of the at least two transmission links.
  • the adjusting unit 6041 adjusts the weight values of the respective transmission links according to the round-trip delay of the transmission parameters and the congestion window.
  • the adjusted weight value is inversely proportional to the value of the round trip delay and is proportional to the value of the congestion window. That is, when the round-trip delay in the transmission parameter is high, the subsequent weight value needs to be lowered; when the congestion window in the transmission parameter is large, the subsequent weight value can be increased.
  • the data transmission apparatus in the embodiment of the present disclosure selects a destination by selecting data from the data to be transmitted.
  • Target data establishing at least two transmission links according to the network environment, allocating target data to the at least two transmission links, and adjusting weight values according to transmission conditions of the transmission link in real time to facilitate transmission of subsequent data, thereby enabling Make full use of the network resources in the current network environment, improve network access efficiency, and enhance the user experience.
  • the embodiment of the present disclosure further discloses a terminal, and the terminal may include a data transmission device.
  • the terminal may include a data transmission device.
  • the structure and function of the data transmission device refer to the related description in the embodiment in FIG. 6-9, and details are not described herein. It can be understood that the terminal of the embodiment of the present disclosure can also apply the data transmission method shown in any of the embodiments of FIG. 1 and FIG.
  • the terminal in the embodiment of the present disclosure allocates target data to the at least two transmission links by establishing at least two transmission links, and can adjust the weight value according to the transmission condition of the transmission link in real time, thereby It can fully utilize the network resources in the current network environment, improve network access efficiency, and enhance the user experience.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memoty, ROM), or a random access memory (RAM).
  • Embodiments of the present disclosure also provide a non-transitory computer readable storage medium storing computer executable instructions for performing the data transfer method described above.
  • FIG. 10 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal in the embodiment of the present invention may be any device with a touch display screen, such as a tablet computer, a mobile phone, an e-reader, a remote controller, a personal computer (PC), a notebook computer, an in-vehicle device, and a network television. , wearable devices, etc.
  • the mobile terminal in the embodiment of the present invention includes: at least one processor 501, such as a CPU, and at least one memory 504. It may also include at least one transmitter 505, at least one receiver 503, at least one communication bus 502, wherein the communication bus 502 is used to implement connection communication between these components.
  • the receiver 503 and the transmitter 505 of the device in the embodiment of the present invention may be a wired sending port, or may be a wireless device, for example, including an antenna device, for performing signaling or data communication with other node devices.
  • the memory 504 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • the memory 504 can optionally also be at least one storage device located remotely from the aforementioned processor 501.
  • a set of program codes is stored in the memory 504, and the processor 501 can call the memory through the communication bus 502.
  • the code stored in the memory 504 is to perform related functions.
  • the mobile terminal further includes a touch display screen, wherein the touch display screen is an integration of the touch screen and the display screen, and the touch display screen can be provided with an array of pressure sensors, and the mobile terminal can pass the pressure
  • the sensor array detects a pressure parameter, wherein the pressure sensor may be, for example, a resistance strain gauge pressure sensor, a semiconductor strain gauge pressure sensor, a piezoresistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, a resonant pressure sensor, etc., and the present invention
  • the embodiment includes, but is not limited to, the above manner to obtain touch force.
  • the touch display screen may include: a screen; an indium tin oxide pattern disposed under the screen; a touch sensor disposed under the indium tin oxide pattern; and the touch sensor a lower indium tin oxide substrate; and a pressure sensor disposed on an upper surface or a lower surface of the indium tin oxide substrate; or
  • the touch display screen may include: a screen; an indium tin oxide pattern disposed under the screen; a touch sensor disposed under the indium tin oxide pattern; and disposed on the Touch the pressure sensor below the sensor.
  • the processor 501 is configured to execute the data transmission method of the foregoing embodiment by calling the code stored in the memory 504 via the communication bus 502: receiving a transmission request of the target data; establishing at least two transmission links according to a preset weight value And the target data is allocated to the at least two transmission links; the transmission parameters of the at least two transmission links are acquired after the transmission is completed; and the weight values of the at least two transmission links are adjusted according to the transmission parameters. And the subsequent data distribution and transmission according to the adjusted weight value.
  • the transmission request of the receiving target data includes: receiving a data transmission instruction; parsing the data transmission instruction, acquiring size information of the data to be transmitted; and, according to the size information of the data to be transmitted, the data to be transmitted Part of the data is selected as the target data.
  • the establishing at least two transmission links, and allocating the target data to the at least two transmission links according to a weight value of a preset transmission link includes: according to a network where the terminal is located The environment establishes at least two transmission links; setting a weight value of the transmission link according to the link characteristics of the at least two transmission links, where the link characteristics include: link type, cost information, and bandwidth information;
  • the weight value of the at least two transmission links allocates the target data into at least two groups, wherein the number of groups of the allocated data is the same as the number of the transmission links, and the size of each group of data after the allocation Matches the weight value of each transmission link.
  • the acquiring the transmission parameters of the at least two transmission links after the transmission is completed includes: After waiting for the transmission to be completed, acquiring transmission information of the at least two transmission links; and calculating transmission parameters of the at least two transmission links according to the transmission information, where the transmission parameters include: a round-trip delay and a congestion window.
  • the adjusting, according to the transmission parameter, the weight value of the at least two transmission links including: adjusting a weight of the transmission link according to a round-trip delay and a congestion window of the at least two transmission links a value, wherein the adjusted weight value is inversely proportional to the value of the round trip delay and is proportional to the value of the congestion window.
  • target data is allocated to the at least two transmission links by establishing at least two transmission links, and the weight value can be adjusted according to the transmission condition of the transmission link in real time, thereby being able to fully utilize the current Network resources in the network environment improve network access efficiency and enhance user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本公开实施例提供了一种数据传输方法、装置以及终端,其中的数据传输方法包括:接收目标数据的传输请求;建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上;在传输完成后获取所述至少两条传输链路的传输参数;根据所述传输参数调整所述至少两条传输链路的权重值;按照调整后的权重值进行后续数据的分配与传输。本公开通过建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值。

Description

数据传输方法、装置以及终端
本申请要求于2015年9月21日提交中国专利局,申请号为201510603099.9、发明名称为“一种数据传输方法、装置以及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本公开涉及通信技术领域,例如涉及一种数据传输方法、装置以及终端。
背景技术
相关技术的智能手机、平板等移动终端可以通过运营商的移动网络或者无线网络热点等方式接入网络。相关技术中,由于移动终端在同一时间只能选取一种接入方式,当存在无线网络热点时,移动终端会优先选用无线网络热点来接入网络。然而,由于有时候无线网络热点的网络质量较差或者带宽较小,选择连接至无线网络热点会无法满足用户的使用需求、网络接入效率较低。
发明内容
本公开提供一种数据传输方法、装置以及终端,能够同时使用多种接入方式,充分利用网络资源,提升网络接入效率。
第一方面,本公开的实施例提供了一种数据传输方法,应用于终端,包括:
接收目标数据的传输请求;
建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上;
在传输完成后获取所述至少两条传输链路的传输参数;
根据所述传输参数调整所述至少两条传输链路的权重值;以及
按照调整后的权重值进行后续数据的分配与传输。
可选地,所述接收目标数据的传输请求,包括:接收数据传输指令;解析所述数据传输指令,获取待传输数据的大小信息;根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
可选地,所述建立至少两条传输链路,根据预设的传输链路的权重值将所述目标数据分配到所述至少两条传输链路上,包括:根据所述终端所处的网络 环境建立至少两条传输链路;根据所述至少两条传输链路的链路特征设置传输链路的权重值,其中,所述链路特征包括:链路类型、费用信息以及带宽信息;根据所述至少两条传输链路的权重值将所述目标数据分配为至少两组,其中,分配后的数据的组数与所述传输链路的条数相同,分配后的各组数据的大小与各条传输链路的权重值匹配。
可选地,所述在传输完成后获取所述至少两条传输链路的传输参数,包括:等待传输完成后,获取所述至少两条传输链路的传输信息;根据所述传输信息计算所述至少两条传输链路的传输参数,其中所述传输参数包括:往返时延以及拥塞窗口。
可选地,所述根据所述传输参数调整所述至少两条传输链路的权重值,包括:根据所述至少两条传输链路的往返时延以及拥塞窗口调整所述传输链路的权重值,其中,所述调整后的权重值与往返时延的数值成反比,与拥塞窗口的数值成正比。
第二方面,本公开的实施例提供了一种数据传输装置,应用于终端,包括:
接收模块,配置为接收目标数据的传输请求;
建立模块,配置为建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上;
获取模块,配置为在传输完成后获取所述至少两条传输链路的传输参数;
调整模块,配置为根据所述传输参数调整所述至少两条传输链路的权重值;
处理模块,配置为按照调整后的权重值进行后续数据的分配与传输。
可选地,所述接收模块包括:接收单元,配置为接收数据传输指令;解析单元,配置为解析所述数据传输指令,获取待传输数据的大小信息;选取单元,配置为根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
可选地,所述建立模块包括:建立单元,配置为根据所述终端所处的网络环境建立至少两条传输链路;设置单元,配置为根据所述至少两条传输链路的链路特征设置传输链路的权重值,其中,所述链路特征包括:链路类型、费用信息以及带宽信息;分配单元,配置为根据所述至少两条传输链路的权重值将所述目标数据分配为至少两组,其中,分配后的数据的组数与所述传输链路的条数相同,分配后的各组数据的大小与各条传输链路的权重值匹配。
可选地,所述获取模块包括:获取单元,配置为等待传输完成后,获取所 述至少两条传输链路的传输信息;计算单元,配置为根据所述传输信息计算所述至少两条传输链路的传输参数,其中所述传输参数包括:往返时延以及拥塞窗口。
可选地,所述调整模块包括:调整单元,配置为根据所述至少两条传输链路的往返时延以及拥塞窗口调整所述传输链路的权重值,其中,所述调整后的权重值与往返时延的数值成反比,与拥塞窗口的数值成正比。
第三方面,本公开的实施例提供了一种终端,包括上述所述的数据传输装置。
第四方面,本公开的实施例还提供一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述的数据传输方法。
实施本公开实施例,具有如下有益效果:本公开通过建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
附图说明
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的一种数据传输方法第一实施例的流程图。
图2所示为本公开实施例提供的建立至少两条传输链路的结构示意图。
图3为本公开实施例提供的一种数据传输方法第二实施例的流程图。
图4为本公开实施例提供的一种数据传输方法第三实施例的流程图。
图5为本公开实施例提供的一种数据传输方法第四实施例的流程图。
图6为本公开实施例提供的一种数据传输装置第一实施例的结构示意图。
图7为本公开实施例提供的一种数据传输装置第二实施例的结构示意图。
图8为本公开实施例提供的一种数据传输装置第三实施例的结构示意图。
图9为本公开实施例提供的一种数据传输装置第四实施例的结构示意图。
图10为本公开的实施例提供的一种移动终端的结构示意图。
实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
图1为本公开实施例提供的一种数据传输方法第一实施例的流程图。在本实施方式中,该数据传输方法应用于终端,所述终端可以为智能手机、平板电脑、电脑、可穿戴式装置等电子设备。所述终端可以接入运营商的移动网络,比如,可以接入中国移动或者中国联通的移动网络,也可以接入各种无线网络热点。在其他方式中,还可以通过蓝牙方式接入网络。该数据传输方法包括步骤S110-S150。
在步骤S110中,接收目标数据的传输请求。
首先接收目标数据的传输请求。在本实施方式中,通过侦测用户的操作,获取用户的数据传输请求。比如,用户请求打开某个网页、下载某个文件或者在线播放音乐或视频等,可以理解的是,不同的数据传输请求对应着不同的数据量。
在步骤S120中,建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上。
在接收了数据的传输请求之后,建立至少两条传输链路,在本实施方式中,可以是同时通过运营商的网络以及无线网络热点接入网络,通过采用多路径技术建立至少两条传输链路。图2所示为本公开实施例提供的建立至少两条传输链路的结构示意图。如图2所示,在应用层无需任何额外处理,通过套接字(Socket)的应用程序编程接口(API)建立多路径传输控制协议(MP-TCP)连接,从而实现多条传输链路同时使用,互不影响,图2示例性的给出了四条传输链路,本领域技术人员可以理解的是,终端的传输链路可以是以太网(Ethernet)、无线局域网(WLAN)、运营商网络(rmnet)或者蓝牙网络(Bluetooth),本公开实施例并不以此为限。在建立了传输链路之后,设置各条传输链路的权重值,根据权重值将目标数据分配到传输链路上。其中,权重值可以预先设置,根据不同传输链路的链路特征进行设置,比如,若当前运营商的网络信号很好,则权重可以设置的较高;若无线网络热点的带宽较低,则权重可以设置的较低。可以理解的是,本步骤中建立传输链路也可以位于步骤S101之前,即先建立传输链 路,再接收用户的传输请求,本公开实施例并不以此为限。
在步骤S130中,在传输完成后获取所述至少两条传输链路的传输参数。
等待目标数据传输完成之后,获取当前传输链路的传输参数,其中,传输参数包括往返时延以及拥塞窗口,通过统计传输耗费的时间以及传输数据量的大小计算所述传输参数。
在步骤S140中,根据所述传输参数调整所述至少两条传输链路的权重值。
根据每条链路的传输参数调整传输链路的权重值。比如,若往返时延较大,则表明该传输链路较为拥堵,可以调低其权重值;若拥塞窗口较大,则表明该传输链路带宽较高,可以适当调高其权重值。可以理解的是,还可以根据其他方式调整所述权重值,本实施例并不以此为限。
在步骤S150中,按照调整后的权重值进行后续数据的分配与传输。
在调整了各条链路的权重值之后,根据调整后的权重值进行后续数据的分配和传输。
通过采用上述方式,终端可以充分利用现有的网络资源,提升网络接入效率,同时,还能够实时根据网络环境调整各条传输链路的权重值,进一步提升网络适应能力。
上述可知,本公开实施例中的数据传输方法,通过建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
图3所示为本公开实施例提供的一种数据传输方法第二实施例的流程图。在本实施方式中,该数据传输方法包括步骤S310-S370,其中,本实施例中S340-S370与图1所示第一实施例中步骤S120-S150的步骤相同,在此不赘述。
在步骤S310中,接收数据传输指令。
通过侦测用户的操作,接收数据传输指令。其中,用户可以通过触摸操作、语音控制等多种方式发出数据传输指令。
在步骤S320中,解析所述数据传输指令,获取待传输数据的大小信息。
解析数据传输指令,获取所述数据传输指令对应的待传输数据的大小信息。
在步骤S330中,根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
在获取了待传输数据的大小信息之后,从所述待传输数据中选取部分数据 作为目标数据。选取部分数据进行作为目标数据先行传输,是为了快速的检验传输链路的传输质量,便于后续数据的大量传输。其中,选取部分数据的依据可以预先设置,一般的,可以选取占原传输数据量一定比例的数据作为目标数据。比如,若待传输数据为一首歌曲,大小为4M,此时,可以选取4k的数据作为目标数据进行传输。可以理解的是,还可以按照其他方式选取,本公开实施例并不以此为限。
在步骤S340中,建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上。
在步骤S350中,在传输完成后获取所述至少两条传输链路的传输参数。
在步骤S360中,根据所述传输参数调整所述至少两条传输链路的权重值。
在步骤S370中,按照调整后的权重值进行后续数据的分配与传输。
上述可知,本公开实施例中的数据传输方法,通过建立至少两条传输链路,从待传输数据中选择目标数据,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
图4所示为本公开实施例提供的一种数据传输方法第三实施例的流程图。在本实施方式中,该数据传输方法包括步骤S410-S490,其中,本实施例中S410-S430与图3所示第二实施例中S310-S330的步骤相同,本实施例中S470-S490与图3所示第二实施例中S350-S370的步骤相同,在此不赘述。
在步骤S410中,接收数据传输指令。
在步骤S420中,解析所述数据传输指令,获取待传输数据的大小信息。
在步骤S430中,根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
在步骤S440中,根据所述终端所处的网络环境建立至少两条传输链路。
侦测当前终端所处的网络环境,根据网络环境通过多路径技术建立至少两条传输链路。比如,若终端当前的网络环境不仅存在运营商的网络,还存在其他无线热点,则可以建立两条传输链路,同时使用运营商的网络和无线热点上的网络资源。
在步骤S450中,根据所述至少两条传输链路的链路特征设置传输链路的权重值。
根据传输链路的链路特征设置不同传输链路的权重值,其中,所述链路特 征包括:链路类型、费用信息以及带宽信息。链路类型包括:以太网(Ethernet)、无线局域网(WLAN)、运营商网络(rmnet)或者蓝牙网络(Bluetooth),费用信息是指采用该传输链路接入网络的收费情况,带宽信息是指该传输链路的最大带宽。根据链路特征的不同设置传输链路的权重值。比如,若当前运营商的网络信号很好,则权重可以设置的较高;若无线网络热点的带宽较低,则权重可以设置的较低。
在步骤S460中,根据所述至少两条传输链路的权重值将所述目标数据分配为至少两组。
根据传输链路的权重值对目标数据进行分配。其中,分配后的数据的组数与所述传输链路的条数相同,分配后的各组数据的大小与各条传输链路的权重值匹配。
在步骤S470中,在传输完成后获取所述至少两条传输链路的传输参数。
在步骤S480中,根据所述传输参数调整所述至少两条传输链路的权重值。
在步骤S490中,按照调整后的权重值进行后续数据的分配与传输。
上述可知,本公开实施例中的数据传输方法,通过从待传输数据中选择目标数据,根据网络环境建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值以便于传输后续数据,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
图5所示为本公开实施例提供的一种数据传输方法第四实施例的流程图。在本实施方式中,该数据传输方法包括步骤S510-S5100,其中,本实施例中S510-S560与图4所示第三实施例中S410-S460的步骤相同,本实施例中S5100与图4所示第三实施例中S490的步骤相同,在此不赘述。
在步骤S510中,接收数据传输指令。
在步骤S520中,解析所述数据传输指令,获取待传输数据的大小信息。
在步骤S530中,根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
在步骤S540中,根据所述终端所处的网络环境建立至少两条传输链路。
在步骤S550中,根据所述至少两条传输链路的链路特征设置传输链路的权重值。
在步骤S560中,根据所述至少两条传输链路的权重值将所述目标数据分配 为至少两组。
在步骤S570中,等待传输完成后,获取所述至少两条传输链路的传输信息。
在传输完成之后,获取传输链路的传输信息,其中,所述传输信息包括传输耗费的时间以及传输数据量。
在步骤S580中,根据所述传输信息计算所述至少两条传输链路的传输参数,其中,所述传输参数包括:往返时延以及拥塞窗口。
根据获得的传输耗费的时间以及传输数据量计算传输参数。
在步骤S590中,根据所述至少两条传输链路的往返时延以及拥塞窗口调整所述传输链路的权重值。
在得到传输参数了之后,根据传输参数的往返时延以及拥塞窗口调整各条传输链路的权重值。其中,所述调整后的权重值与往返时延的数值成反比,与拥塞窗口的数值成正比。也就是,当传输参数中的往返时延较高时,后续的权重值需要调低;当传输参数中的拥塞窗口较大时,后续的权重值可以调高。
在步骤S5100中,按照调整后的权重值进行后续数据的分配与传输。
上述可知,本公开实施例中的数据传输方法,通过从待传输数据中选择目标数据,根据网络环境建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值以便于传输后续数据,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
图6为本公开实施例提供的一种数据传输装置第一实施例的结构示意图。在本实施方式中,该数据传输装置应用于终端,所述终端可以为智能手机、平板电脑、电脑、可穿戴式装置等电子设备。所述终端可以接入运营商的移动网络,比如,可以接入中国移动或者中国联通的移动网络,也可以接入各种无线网络热点。在其他方式中,还可以通过蓝牙方式接入网络。该数据传输装置包括接收模块601、建立模块602、获取模块603、调整模块604以及处理模块605。
接收模块601配置为接收目标数据的传输请求。
接收模块601接收目标数据的传输请求。在本实施方式中,接收模块601通过侦测用户的操作,获取用户的数据传输请求。比如,用户请求打开某个网页、下载某个文件或者在线播放音乐或视频等,可以理解的是,不同的数据传输请求对应着不同的数据量。
建立模块602配置为建立至少两条传输链路,根据预设的权重值将所述目标 数据分配到所述至少两条传输链路上。
在接收了数据的传输请求之后,建立模块602建立至少两条传输链路,在本实施方式中,可以是同时通过运营商的网络以及无线网络热点接入网络,通过采用多路径技术建立至少两条传输链路。在建立了传输链路之后,设置各条传输链路的权重值,根据权重值将目标数据分配到传输链路上。其中,权重值可以预先设置,根据不同传输链路的链路特征进行设置,比如,若当前运营商的网络信号很好,则权重可以设置的较高;若无线网络热点的带宽较低,则权重可以设置的较低。
获取模块603配置为在传输完成后获取所述至少两条传输链路的传输参数。
等待目标数据传输完成之后,获取模块603获取当前传输链路的传输参数,其中,传输参数包括往返时延以及拥塞窗口,通过统计传输耗费的时间以及传输数据量的大小计算所述传输参数。
调整模块604配置为根据所述传输参数调整所述至少两条传输链路的权重值。
调整模块604根据每条链路的传输参数调整传输链路的权重值。比如,若往返时延较大,则表明该传输链路较为拥堵,可以调低其权重值;若拥塞窗口较大,则表明该传输链路带宽较高,可以适当调高其权重值。可以理解的是,还可以根据其他方式调整所述权重值,本实施例并不以此为限。
处理模块605配置为按照调整后的权重值进行后续数据的分配与传输。
在调整了各条链路的权重值之后,处理模块605根据调整后的权重值进行后续数据的分配和传输。
上述可知,本公开实施例中的数据传输装置,通过建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
图7为本公开实施例提供的一种数据传输装置第二实施例的结构示意图。对比图6所示的第一实施例,本实施方式中,接收模块601进一步包括:接收单元6011、解析单元6012以及选取单元6013。
接收单元6011配置为接收数据传输指令。
接收单元6011通过侦测用户的操作,接收数据传输指令。其中,用户可以通过触摸操作、语音控制等多种方式发出数据传输指令。
解析单元6012配置为解析所述数据传输指令,获取待传输数据的大小信息。
解析单元6012解析数据传输指令,获取所述数据传输指令对应的待传输数据的大小信息。
选取单元6013配置为根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
选取单元6013在获取了待传输数据的大小信息之后,从所述待传输数据中选取部分数据作为目标数据。选取部分数据进行作为目标数据先行传输,是为了快速的检验传输链路的传输质量,便于后续数据的大量传输。其中,选取部分数据的依据可以预先设置,一般的,可以选取占原传输数据量一定比例的数据作为目标数据。比如,若待传输数据为一首歌曲,大小为4M,此时,可以选取4k的数据作为目标数据进行传输。可以理解的是,还可以按照其他方式选取,本公开实施例并不以此为限。
上述可知,本公开实施例中的数据传输装置,通过建立至少两条传输链路,从待传输数据中选择目标数据,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
图8为本公开实施例提供的一种数据传输装置第三实施例的结构示意图。对比图7所示的第二实施例,本实施方式中,建立模块602进一步包括:建立单元6021、设置单元6022以及分配单元6023。
建立单元6021配置为根据所述终端所处的网络环境建立至少两条传输链路。
建立单元6021侦测当前终端所处的网络环境,根据网络环境通过多路径技术建立至少两条传输链路。比如,若终端当前的网络环境不仅存在运营商的网络,还存在其他无线热点,则可以建立两条传输链路,同时使用运营商的网络和无线热点上的网络资源。
设置单元6022配置为根据所述至少两条传输链路的链路特征设置传输链路的权重值。
设置单元6022根据传输链路的链路特征设置不同传输链路的权重值,其中,所述链路特征包括:链路类型、费用信息以及带宽信息。链路类型包括:以太网(Ethernet)、无线局域网(WLAN)、运营商网络(rmnet)或者蓝牙网络(Bluetooth),费用信息是指采用该传输链路接入网络的收费情况,带宽信息是 指该传输链路的最大带宽。根据链路特征的不同设置传输链路的权重值。比如,若当前运营商的网络信号很好,则权重可以设置的较高;若无线网络热点的带宽较低,则权重可以设置的较低。
分配单元6023配置为根据所述至少两条传输链路的权重值将所述目标数据分配为至少两组。
分配单元6023根据传输链路的权重值对目标数据进行分配。其中,分配后的数据的组数与所述传输链路的条数相同,分配后的各组数据的大小与各条传输链路的权重值匹配。
上述可知,本公开实施例中的数据传输装置,通过从待传输数据中选择目标数据,根据网络环境建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值以便于传输后续数据,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
图9为本公开实施例提供的一种数据传输装置第四实施例的结构示意图。对比图8所示的第三实施例,本实施方式中,获取模块603进一步包括:获取单元6031以及计算单元6032,调整模块604进一步包括调整单元6041。
获取单元6031配置为等待传输完成后,获取所述至少两条传输链路的传输信息。
在传输完成之后,获取单元6031获取传输链路的传输信息,其中,所述传输信息包括传输耗费的时间以及传输数据量。
计算单元6032配置为根据所述传输信息计算所述至少两条传输链路的传输参数,其中所述传输参数包括:往返时延以及拥塞窗口。
计算单元6032根据获得的传输耗费的时间以及传输数据量计算传输参数。
调整单元6041配置为根据所述至少两条传输链路的往返时延以及拥塞窗口调整所述传输链路的权重值。
调整单元6041在得到传输参数了之后,根据传输参数的往返时延以及拥塞窗口调整各条传输链路的权重值。其中,所述调整后的权重值与往返时延的数值成反比,与拥塞窗口的数值成正比。也就是,当传输参数中的往返时延较高时,后续的权重值需要调低;当传输参数中的拥塞窗口较大时,后续的权重值可以调高。
上述可知,本公开实施例中的数据传输装置,通过从待传输数据中选择目 标数据,根据网络环境建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值以便于传输后续数据,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
本公开实施例还公开了一种终端,该终端可以包括数据传输装置,该数据传输装置的结构和功能可以参见图6-9中实施例中的相关说明,在此不赘述。可以理解的是,本公开实施例的终端,也可以应用图1、图3-5任一实施例所示的数据传输方法。
上述可知,本公开实施例中的终端,通过建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memoty,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
本公开的实施例还提供一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述的数据传输方法。
请参考图10,图10是本发明实施例的一种移动终端的结构示意图。本发明实施例中的移动终端可以是任何具备触控显示屏的设备,例如:平板电脑、手机、电子阅读器、遥控器、个人计算机(Personal Computer,PC)、笔记本电脑、车载设备、网络电视、可穿戴设备等。如图10所示,本发明实施例中的移动终端包括:至少一个处理器501,例如CPU,和至少一个存储器504。还可以包括至少一个发送器505,至少一个接收器503,至少一个通信总线502,其中,通信总线502用于实现这些组件之间的连接通信。其中,本发明实施例中装置的接收器503和发送器505可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他节点设备进行信令或数据的通信。存储器504可以是高速RAM存储器,也可以是非易失性的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器504可选的还可以是至少一个位于远离前述处理器501的存储装置。存储器504中存储一组程序代码,且所述处理器501可通过通信总线502,调用存 储器504中存储的代码以执行相关的功能。
所述移动终端还包括触控显示屏,所述触控显示屏为所述触控屏和所述显示屏的集成,该触控显示屏中可以设置有压力传感器阵列,移动终端能够通过该压力传感器阵列检测压力参数,其中,上述压力传感器例如可以是电阻应变片压力传感器、半导体应变片压力传感器、压阻式压力传感器、电感式压力传感器、电容式压力传感器、谐振式压力传感器等,本发明实施例中包括但不限于上述方式来获取触控力度。
举例来说,所述触控显示屏可以包括:屏面;设置于所述屏面下方的铟锡氧化物图形;设置于所述铟锡氧化物图形下方的触摸传感器;设置于所述触摸传感器下方的铟锡氧化物基板;以及设置于所述铟锡氧化物基板的上表面或者下表面的压力传感器;或者
又举例来说,所述触控显示屏可以包括:屏面;设置于所述屏面下方的铟锡氧化物图形;设置于所述铟锡氧化物图形下方的触摸传感器;以及设置于所述触摸传感器下方的压力传感器。
所述处理器501配置为通过通信总线502,调用存储器504中存储的代码执行上述实施例的数据传输方法:接收目标数据的传输请求;建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上;在传输完成后获取所述至少两条传输链路的传输参数;根据所述传输参数调整所述至少两条传输链路的权重值;以及按照调整后的权重值进行后续数据的分配与传输。
可选地,所述接收目标数据的传输请求包括:接收数据传输指令;解析所述数据传输指令,获取待传输数据的大小信息;根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
可选地,所述建立至少两条传输链路,根据预设的传输链路的权重值将所述目标数据分配到所述至少两条传输链路上包括:根据所述终端所处的网络环境建立至少两条传输链路;根据所述至少两条传输链路的链路特征设置传输链路的权重值,其中,所述链路特征包括:链路类型、费用信息以及带宽信息;根据所述至少两条传输链路的权重值将所述目标数据分配为至少两组,其中,分配后的数据的组数与所述传输链路的条数相同,分配后的各组数据的大小与各条传输链路的权重值匹配。
可选地,所述在传输完成后获取所述至少两条传输链路的传输参数包括: 等待传输完成后,获取所述至少两条传输链路的传输信息;根据所述传输信息计算所述至少两条传输链路的传输参数,其中所述传输参数包括:往返时延以及拥塞窗口。
可选地,所述根据所述传输参数调整所述至少两条传输链路的权重值,包括:根据所述至少两条传输链路的往返时延以及拥塞窗口调整所述传输链路的权重值,其中,所述调整后的权重值与往返时延的数值成反比,与拥塞窗口的数值成正比。
以上所揭露的仅为本公开较佳实施例而已,当然不能以此来限定本公开之权利范围,因此依本公开权利要求所作的等同变化,仍属本公开所涵盖的范围
工业实用性
根据本公开的实施例,通过建立至少两条传输链路,将目标数据分配到所述至少两条传输链路上,并能实时根据传输链路的传输情况调整权重值,从而能够充分利用当前网络环境中的网络资源,提升网络接入效率,提升用户的使用体验。

Claims (12)

  1. 一种数据传输方法,应用于终端,包括:
    接收目标数据的传输请求;
    建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上;
    在传输完成后获取所述至少两条传输链路的传输参数;
    根据所述传输参数调整所述至少两条传输链路的权重值;以及
    按照调整后的权重值进行后续数据的分配与传输。
  2. 如权利要求1所述的数据传输方法,其中,所述接收目标数据的传输请求,包括:
    接收数据传输指令;
    解析所述数据传输指令,获取待传输数据的大小信息;
    根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
  3. 如权利要求2所述的数据传输方法,其中,所述建立至少两条传输链路,根据预设的传输链路的权重值将所述目标数据分配到所述至少两条传输链路上,包括:
    根据所述终端所处的网络环境建立至少两条传输链路;
    根据所述至少两条传输链路的链路特征设置传输链路的权重值,其中,所述链路特征包括:链路类型、费用信息以及带宽信息;
    根据所述至少两条传输链路的权重值将所述目标数据分配为至少两组,其中,分配后的数据的组数与所述传输链路的条数相同,分配后的各组数据的大小与各条传输链路的权重值匹配。
  4. 如权利要求1-3任一项所述的数据传输方法,其中,所述在传输完成后获取所述至少两条传输链路的传输参数,包括:
    等待传输完成后,获取所述至少两条传输链路的传输信息;
    根据所述传输信息计算所述至少两条传输链路的传输参数,其中所述传输参数包括:往返时延以及拥塞窗口。
  5. 如权利要求4所述的数据传输方法,其中,所述根据所述传输参数调整所述至少两条传输链路的权重值,包括:
    根据所述至少两条传输链路的往返时延以及拥塞窗口调整所述传输链路的 权重值,其中,所述调整后的权重值与往返时延的数值成反比,与拥塞窗口的数值成正比。
  6. 一种数据传输装置,应用于终端,包括:
    接收模块,配置为接收目标数据的传输请求;
    建立模块,配置为建立至少两条传输链路,根据预设的权重值将所述目标数据分配到所述至少两条传输链路上;
    获取模块,配置为在传输完成后获取所述至少两条传输链路的传输参数;
    调整模块,配置为根据所述传输参数调整所述至少两条传输链路的权重值;
    处理模块,配置为按照调整后的权重值进行后续数据的分配与传输。
  7. 如权利要求6所述的数据传输装置,其中,所述接收模块包括:
    接收单元,配置为接收数据传输指令;
    解析单元,配置为解析所述数据传输指令,获取待传输数据的大小信息;
    选取单元,配置为根据所述待传输数据的大小信息,从所述待传输数据中选取部分数据作为目标数据。
  8. 如权利要求7所述的数据传输装置,其中,所述建立模块包括:
    建立单元,配置为根据所述终端所处的网络环境建立至少两条传输链路;
    设置单元,配置为根据所述至少两条传输链路的链路特征设置传输链路的权重值,其中,所述链路特征包括:链路类型、费用信息以及带宽信息;
    分配单元,配置为根据所述至少两条传输链路的权重值将所述目标数据分配为至少两组,其中,分配后的数据的组数与所述传输链路的条数相同,分配后的各组数据的大小与各条传输链路的权重值匹配。
  9. 如权利要求6-8任一项所述的数据传输装置,其中,所述获取模块包括:
    获取单元,配置为等待传输完成后,获取所述至少两条传输链路的传输信息;
    计算单元,配置为根据所述传输信息计算所述至少两条传输链路的传输参数,其中所述传输参数包括:往返时延以及拥塞窗口。
  10. 如权利要求9所述的数据传输装置,其中,所述调整模块包括:
    调整单元,配置为根据所述至少两条传输链路的往返时延以及拥塞窗口调整所述传输链路的权重值,其中,所述调整后的权重值与往返时延的数值成反比,与拥塞窗口的数值成正比。
  11. 一种终端,包括如权利要求6-10任一项所述的数据传输装置。
  12. 一种非瞬时性计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项所述的数据传输方法。
PCT/CN2016/092475 2015-09-21 2016-07-30 数据传输方法、装置以及终端 WO2017050015A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510603099.9A CN105553868A (zh) 2015-09-21 2015-09-21 一种数据传输方法、装置以及终端
CN201510603099.9 2015-09-21

Publications (1)

Publication Number Publication Date
WO2017050015A1 true WO2017050015A1 (zh) 2017-03-30

Family

ID=55832806

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/092475 WO2017050015A1 (zh) 2015-09-21 2016-07-30 数据传输方法、装置以及终端

Country Status (2)

Country Link
CN (1) CN105553868A (zh)
WO (1) WO2017050015A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111542063A (zh) * 2020-04-28 2020-08-14 张鹏程 一种通信装置及方法
CN113423143A (zh) * 2021-03-26 2021-09-21 阿里巴巴新加坡控股有限公司 多路径数据传输方法、装置及电子设备
CN113542836A (zh) * 2021-07-06 2021-10-22 腾讯科技(深圳)有限公司 远程控制方法及装置、电子设备、计算机可读存储介质

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553868A (zh) * 2015-09-21 2016-05-04 宇龙计算机通信科技(深圳)有限公司 一种数据传输方法、装置以及终端
CN106484325A (zh) * 2016-09-14 2017-03-08 广东欧珀移动通信有限公司 一种数据迁移方法及移动终端
CN109274596B (zh) * 2018-08-23 2021-01-22 Oppo广东移动通信有限公司 数据传输方法及相关装置
CN115442452A (zh) * 2019-01-08 2022-12-06 华为技术有限公司 一种数据传输方法及电子设备
CN109618373B (zh) * 2019-01-15 2021-04-16 Oppo广东移动通信有限公司 链路选取方法及相关装置
CN111741373B (zh) * 2019-03-25 2022-09-30 杭州萤石软件有限公司 一种视频数据传输方法和视频源设备
CN111294858B (zh) 2019-04-22 2021-08-03 展讯通信(上海)有限公司 数据传输方法及装置
CN111294664A (zh) * 2019-05-28 2020-06-16 杭州萤石软件有限公司 音视频传输数据方法、电子设备及存储介质
CN111277502B (zh) * 2020-01-20 2022-05-17 北京红云融通技术有限公司 多链路聚合传输数据的方法及发送设备
CN111294289A (zh) * 2020-03-26 2020-06-16 上海有个机器人有限公司 一种多链路切换的机器人通讯方法和系统
CN112533036A (zh) * 2020-11-30 2021-03-19 北京大学 一种神经自适应视频流多路径传输结果确定方法及系统
CN115550683A (zh) * 2021-06-29 2022-12-30 华为技术有限公司 一种视频数据的传输方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404093A (zh) * 2010-09-10 2012-04-04 中国移动通信集团公司 数据传输方式的管理方法和数据传输设备
CN102905319A (zh) * 2012-10-23 2013-01-30 李文龙 一种数据分流的方法及系统
CN103200606A (zh) * 2013-03-18 2013-07-10 东莞宇龙通信科技有限公司 终端和数据业务处理方法
CN103547327A (zh) * 2012-12-27 2014-01-29 华为技术有限公司 多种无线制式通信的实现方法及用户设备
CN105101438A (zh) * 2015-07-10 2015-11-25 努比亚技术有限公司 多数据通道的数据分配方法及装置
CN105553868A (zh) * 2015-09-21 2016-05-04 宇龙计算机通信科技(深圳)有限公司 一种数据传输方法、装置以及终端
CN105682146A (zh) * 2016-01-08 2016-06-15 努比亚技术有限公司 数据传输方法、装置及用户设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8751627B2 (en) * 2009-05-05 2014-06-10 Accenture Global Services Limited Method and system for application migration in a cloud
CN101778114B (zh) * 2010-01-26 2012-09-05 浙江广播电视集团 一种基于负载均衡的流媒体业务多路并行传输方法
CN103905328B (zh) * 2012-12-25 2017-09-12 中国移动通信集团公司 一种数据传输控制系统、方法及相关装置
CN103718532A (zh) * 2013-03-26 2014-04-09 华为技术有限公司 一种数据传输方法、装置及终端设备
CN103442380B (zh) * 2013-08-29 2016-12-28 成都西加云杉科技有限公司 一种智能传输链路选择的方法及系统
CN103580966A (zh) * 2013-11-04 2014-02-12 惠州Tcl移动通信有限公司 一种无线链路和有线链路并行传输数据的方法及系统
CN103580842A (zh) * 2013-11-04 2014-02-12 惠州Tcl移动通信有限公司 一种多类型无线链路并行传输的方法和系统
CN112954741B (zh) * 2013-12-26 2024-03-15 索尼公司 移动终端、以及移动终端之间协作传输的实现方法
CN104320164A (zh) * 2014-10-14 2015-01-28 宇龙计算机通信科技(深圳)有限公司 一种数据传输方法和装置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404093A (zh) * 2010-09-10 2012-04-04 中国移动通信集团公司 数据传输方式的管理方法和数据传输设备
CN102905319A (zh) * 2012-10-23 2013-01-30 李文龙 一种数据分流的方法及系统
CN103547327A (zh) * 2012-12-27 2014-01-29 华为技术有限公司 多种无线制式通信的实现方法及用户设备
CN103200606A (zh) * 2013-03-18 2013-07-10 东莞宇龙通信科技有限公司 终端和数据业务处理方法
CN105101438A (zh) * 2015-07-10 2015-11-25 努比亚技术有限公司 多数据通道的数据分配方法及装置
CN105553868A (zh) * 2015-09-21 2016-05-04 宇龙计算机通信科技(深圳)有限公司 一种数据传输方法、装置以及终端
CN105682146A (zh) * 2016-01-08 2016-06-15 努比亚技术有限公司 数据传输方法、装置及用户设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111542063A (zh) * 2020-04-28 2020-08-14 张鹏程 一种通信装置及方法
CN113423143A (zh) * 2021-03-26 2021-09-21 阿里巴巴新加坡控股有限公司 多路径数据传输方法、装置及电子设备
CN113542836A (zh) * 2021-07-06 2021-10-22 腾讯科技(深圳)有限公司 远程控制方法及装置、电子设备、计算机可读存储介质
CN113542836B (zh) * 2021-07-06 2023-05-16 腾讯科技(深圳)有限公司 远程控制方法及装置、电子设备、计算机可读存储介质

Also Published As

Publication number Publication date
CN105553868A (zh) 2016-05-04

Similar Documents

Publication Publication Date Title
WO2017050015A1 (zh) 数据传输方法、装置以及终端
US11979857B2 (en) Resource selection method and terminal
CN111404873B (zh) 在支持mec的网络环境中提供ims服务的电子装置
CN109041262B (zh) 数据传输方法及相关装置
CN110324859B (zh) 副链路的传输资源选择方法、配置方法、终端和网络设备
EP2930899B1 (en) Tcp link configuration method and apparatus
JP2016226011A5 (zh)
WO2019119837A1 (zh) 业务识别方法、装置及网络设备
WO2020038132A1 (zh) 数据传输方法及相关装置
CN104301066A (zh) 数据包传输方法及装置
CN105682149B (zh) 一种数据传输方法和设备
EP3123762B1 (en) Wlan access point which approves internet access only if quality of the radio link is sufficiently good
CN113157300A (zh) 一种数据处理方法、装置和存储介质
KR20210082249A (ko) 사이드링크의 연결 제어 방법, 단말 및 네트워크측 장치
WO2020164521A1 (zh) 数据包分配方法、装置、移动终端及存储介质
EP3706462A1 (en) Method and apparatus for improving network performance
CN103856558B (zh) 一种用于终端应用的数据处理方法和装置
US20220361037A1 (en) User equipment and wireless communication method for neural network computation
CN103796080B (zh) 一种数据处理方法与电子设备
WO2015018056A1 (zh) 业务分流方法、设备和系统
WO2021056847A1 (zh) 报文传输方法、装置、计算机设备和存储介质
CN111277972B (zh) 一种直接通信接口QoS参数确定方法及相关设备
CN105959974B (zh) 一种预测空口带宽的方法和装置
WO2017080363A1 (zh) 一种数据传输的方法及wap设备
CN110572851A (zh) 一种数据上传方法、系统、装置及计算机可读存储介质

Legal Events

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

Ref document number: 16847897

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

Country of ref document: EP

Kind code of ref document: A1