CN116801396A - Data transmission method, device, electronic equipment and storage medium - Google Patents

Data transmission method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116801396A
CN116801396A CN202310969288.2A CN202310969288A CN116801396A CN 116801396 A CN116801396 A CN 116801396A CN 202310969288 A CN202310969288 A CN 202310969288A CN 116801396 A CN116801396 A CN 116801396A
Authority
CN
China
Prior art keywords
transmission link
transmitted
data
transmission
link
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202310969288.2A
Other languages
Chinese (zh)
Inventor
邸卫光
张泽明
王剑
高海东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youzhuju Network Technology Co Ltd
Original Assignee
Beijing Youzhuju Network Technology Co Ltd
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 Beijing Youzhuju Network Technology Co Ltd filed Critical Beijing Youzhuju Network Technology Co Ltd
Priority to CN202310969288.2A priority Critical patent/CN116801396A/en
Publication of CN116801396A publication Critical patent/CN116801396A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure relates to a data transmission method, a device, an electronic device and a storage medium, wherein the method comprises the steps of obtaining data to be transmitted and a link to be transmitted, wherein the link to be transmitted comprises a first transmission link and a second transmission link; acquiring network bandwidths respectively corresponding to the first transmission link and the second transmission link; based on the network bandwidth, transmitting the data to be transmitted through the first transmission link and the second transmission link respectively; wherein, the data volume transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth. Therefore, the two transmission links can be fully utilized to transmit data, the transmission time of the data can be reduced to a great extent, and the data transmission efficiency is improved.

Description

Data transmission method, device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of data processing, and in particular relates to a data transmission method, a data transmission device, electronic equipment and a storage medium.
Background
With the continuous development of technology, terminal products represented by mobile phones are gradually popularized, users can conveniently acquire information required by themselves through mobile phone networking, and mobile phones are mainly networked through mobile traffic or wireless networks at present.
In the related art, data transmission is performed by wireless network networking by default under the condition that a mobile phone can be connected to a wireless network, and data transmission is performed by switching to mobile network networking under the condition that the wireless network speed is low, so that the two network networking cannot be fully utilized in the related art, and the data transmission efficiency is low.
Disclosure of Invention
The disclosure provides a data transmission method, a data transmission device, electronic equipment and a storage medium.
According to an aspect of the present disclosure, there is provided a data transmission method, the method including:
acquiring data to be transmitted and a link to be transmitted, wherein the link to be transmitted comprises a first transmission link and a second transmission link;
acquiring network bandwidths respectively corresponding to the first transmission link and the second transmission link;
based on the network bandwidth, transmitting the data to be transmitted through the first transmission link and the second transmission link respectively; wherein, the data volume transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth.
According to another aspect of the present disclosure, there is provided a data transmission apparatus, the apparatus including:
the data acquisition module is used for acquiring data to be transmitted and a link to be transmitted, wherein the link to be transmitted comprises a first transmission link and a second transmission link;
the network bandwidth acquisition module is used for acquiring network bandwidths respectively corresponding to the first transmission link and the second transmission link;
the transmission module is used for transmitting the data to be transmitted through the first transmission link and the second transmission link respectively based on the network bandwidth; wherein, the data volume transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth.
According to a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: a memory and a processor, the memory having stored thereon a computer program, the processor implementing the method as described above when executing the program.
According to a fourth aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the above-described method of the present disclosure.
According to the data transmission method, the device, the electronic equipment and the storage medium, the data to be transmitted and the links to be transmitted are obtained, the network bandwidths corresponding to the first transmission link and the second transmission link in the links to be transmitted are obtained, the data to be transmitted is transmitted through the first transmission link and the second transmission link based on the network bandwidths, the data amount transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth, so that the data can be transmitted by fully utilizing the two transmission links, the data transmission duration can be reduced to a great extent, and the data transmission efficiency is improved.
Drawings
Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments, with reference to the following drawings, wherein:
fig. 1 is a schematic diagram of a scenario of data transmission provided in an exemplary embodiment of the present disclosure;
fig. 2 is a flowchart of a data transmission method according to an exemplary embodiment of the present disclosure;
fig. 3 is a schematic block diagram of functional modules of a data transmission apparatus according to an exemplary embodiment of the present disclosure;
FIG. 4 is a block diagram of an electronic device provided in an exemplary embodiment of the present disclosure;
fig. 5 is a block diagram of a computer system according to an exemplary embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below. It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window. It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
In the related art, a mobile phone and other terminals are usually switched between a mobile network and a wireless network in the networking process, so that resources of the two networks cannot be fully utilized, and the transmission efficiency of the network is low.
Therefore, in order to improve the transmission efficiency of the network, the embodiments of the present disclosure may check the networking status of the terminal such as a mobile phone, for example, whether it can be connected to a mobile network or whether it can be connected to a wireless network. In an embodiment, taking a mobile phone as an example, the mobile network may be that a user connects to the internet and performs data transmission through a SIM (Subscriber Identity Module) or a traffic card installed on the mobile phone, and the domestic mobile network may include a mobile communication network, a communication network or a telecommunication network, and the wireless network may be a common WIFI (WIreless Fidelity ) network.
Under the condition that the mobile phone can be connected with the mobile network, whether the flow of the mobile network can meet the requirement of data transmission of a user can be detected, for example, a lot of mobile flows currently have corresponding packages, for example, a certain amount of mobile flows such as 10G are contained in each month, some have infinite flows and the like, and the problem of flow limitation is not considered in the general wireless network case, so that the user can always connect with the wireless network for data transmission, and the problem of extra fee deduction does not exist.
Therefore, when the mobile phone is allowed by the user through the mobile network networking or the wireless network networking, for example, the current data is transmitted through the mobile network networking or the wireless network networking without additional charge or the user can accept the data, in the embodiment, the data is transmitted through the mobile network and the wireless network simultaneously, so that the network resources of the mobile network and the wireless network are fully utilized, and the data transmission efficiency is improved.
In an embodiment, the mobile phone establishes a communication connection relationship with the server through a transmission link, where the transmission link may include a first transmission link and a second transmission link, the first transmission link may be a mobile network, the second transmission link may be a wireless network, data may be transmitted between the mobile phone and the server through the transmission link, for example, the mobile phone sends data to the server through the transmission link, and the mobile phone may also receive data sent by the server through the transmission link. In the embodiments, the mobile phone sends data to the server through the transmission link is taken as an example for explanation, and the embodiments are not limited thereto.
When the mobile phone needs to send data to be transmitted to the server through the transmission link, the data volume of the data to be transmitted can be obtained, for example, the data volume of the data to be transmitted is 5G, 2G or 10M, the data to be transmitted can be divided into a plurality of fragments according to the data volume of the data to be transmitted, the larger the data volume is, the more the obtained fragments can be, the size of each fragment can be fixed, for example, 1M, and the size of each fragment can be determined according to the needs, and the embodiment is not limited to this.
In an embodiment, one slice may be transmitted through the mobile network and the wireless network, respectively, for example, the mobile phone sends one slice through the mobile network server, and the mobile phone sends one slice to the server through the wireless network. The network bandwidths of the two transmission links of the mobile network and the wireless network can be respectively obtained according to the size of the fragments and the time consumption of the fragments. And the data to be transmitted can be preferentially transmitted through the transmission link with larger network bandwidth, and the data to be transmitted can be simultaneously transmitted on the transmission link with smaller network bandwidth.
It should be noted that, the network bandwidth represents the maximum network traffic that can be achieved by the current network device per second in its application environment, and the index is commonly used to measure the network capability that can be provided by the device. The network bandwidth is divided into an upstream bandwidth and a downstream bandwidth, and the downstream bandwidth is generally greater than the upstream bandwidth for the mobile network device. Because the actual network request is often completed by a plurality of device nodes and transmission medium links in the network, the actual network bandwidth of the terminal device will vary with the network capabilities of other devices on the network link, the number of people on the network, the traffic usage of other people sharing the network device, and so on.
In an embodiment, for example, in a case where the network bandwidth of the wireless network is greater than the network bandwidth of the mobile network, the data to be transmitted is preferably transmitted through the wireless network, and the data to be transmitted is simultaneously transmitted through the mobile network, so that the data to be transmitted is simultaneously transmitted through the wireless network and the mobile network, and the transmission efficiency of the data transmission can be improved to a great extent.
In an embodiment, the maximum number of concurrent slices transmitted by the network may be set, for example, the maximum number of concurrent slices is 5 slices, that is, 5 slices may be simultaneously transmitted through the transmission link, so that slices of data to be transmitted may be allocated according to network bandwidths of the wireless network and the mobile network, for example, in a case where the network bandwidth of the wireless network is greater than the network bandwidth of the mobile network, 3 slices may be simultaneously transmitted through the wireless network, and 2 slices may be simultaneously transmitted through the mobile network, so that 5 slices of data to be transmitted may be simultaneously transmitted through the wireless network and the mobile network, respectively.
If the network bandwidths between the wireless network and the mobile network are relatively large, for example, the ratio of the two network bandwidths can be compared with a threshold value, and if the ratio is greater than a certain threshold value, the number of fragments passing through the wireless network and the mobile network respectively can be correspondingly adjusted, for example, in the case that the maximum concurrent number of fragments is 5, 4 fragments can be simultaneously transmitted through the wireless network, and 1 fragment can be simultaneously transmitted through the mobile network. If the network bandwidths between the wireless network and the mobile network are relatively close, the ratio of the network bandwidths can be compared with a threshold value according to the ratio of the network bandwidths of the wireless network and the mobile network, and if the ratio is not greater than a certain threshold value, the number of fragments respectively transmitted by the wireless network and the mobile network can be correspondingly adjusted to ensure that the number of fragments respectively transmitted by the wireless network and the mobile network are relatively close, for example, 3 fragments can be simultaneously transmitted by the wireless network, 2 fragments can be simultaneously transmitted by the mobile network, and the like.
As shown in fig. 1, fig. 1 provides a schematic view of a scenario of data transmission for the present disclosure. For example, in the process that the transmitting end transmits data to be transmitted to the receiving end 14 through the first transmission link 12 and the second transmission link 13 at the same time, the data to be transmitted can be processed into a plurality of fragments, for example, the fragments are put into the data pool 11, and in the transmission process, the fragments can be transmitted according to the network bandwidth of the first transmission link 12 and the network bandwidth of the second transmission link 13, for example, when the bandwidth of the first transmission link 12 is greater than the bandwidth of the second transmission link 13, the first transmission link 12 can acquire the fragments from the data pool faster due to faster network speed of the first transmission link 12; the second transmission link 13 is slower than the first transmission link 12 in network speed, so that the second transmission link 13 can obtain the fragments to be transmitted from the data pool 11 at a slower speed, and further, the data volume transmitted on the transmission link with a larger network bandwidth is larger, and meanwhile, the data to be transmitted can be simultaneously transmitted on the transmission link with a smaller bandwidth, so that the purpose of fully utilizing the two transmission links to simultaneously transmit the data is achieved.
In addition, in the embodiment provided by the present disclosure, once the data transmitted on a certain transmission link fails, the corresponding fragment on the transmission link with the failed transmission may be transmitted through another transmission link, for example, the fragment with the failed transmission may be retried by transmitting the fragment with the failed transmission through the mobile network, until all the fragments of the data to be transmitted are transmitted, so as to ensure the transmission efficiency of the data. Under the condition that the mobile network and the wireless network are available for selection and network data transmission are carried out at the same time, the mobile network and the wireless network can be connected to carry out data transmission at the same time, and the efficiency of data transmission can be greatly improved.
Based on the foregoing embodiments, in still another embodiment provided by the present disclosure, there is further provided a data transmission method, as shown in fig. 2, the method may include the following steps:
in step S210, data to be transmitted and a link to be transmitted are acquired, where the link to be transmitted includes a first transmission link and a second transmission link.
In an embodiment, the data to be transmitted may be data to be transmitted or data to be received, the first transmission link may be a mobile network corresponding to the foregoing embodiment, and the second transmission link may be a wireless network corresponding to the foregoing embodiment.
In step S220, network bandwidths respectively corresponding to the first transmission link and the second transmission link are obtained.
In an embodiment, before data transmission, network detection may be performed on the first transmission link and the second transmission link respectively to obtain network bandwidths corresponding to the first transmission link and the second transmission link respectively, and in a data transmission process, real-time network bandwidths of the first transmission link and the second transmission link may be obtained respectively according to a data amount and time consumption of transmission data.
In an embodiment, during the transmission of data to be transmitted, the data may be divided into a plurality of slices according to the size of the data volume of the data to be transmitted. For example, a target data amount of data to be transmitted may be acquired, and the data to be transmitted may be divided into a plurality of pieces based on the target data amount. In an embodiment, the size of each slice may be preset, so that the larger the target data size of the data to be transmitted, the larger the number of slices.
When the network bandwidths corresponding to the first transmission link and the second transmission link are obtained, the fragments can be transmitted to the first transmission link and the second transmission link respectively, and the network bandwidth corresponding to each transmission link can be obtained through the time consumption of the transmission of the fragments and the data size of the fragments. Specifically, a preset number of fragments can be transmitted through the first transmission link and the second transmission link respectively, and network bandwidths of the first transmission link and the second transmission link are determined respectively based on transmission time consumption of the preset number of fragments. In the embodiment, the preset number may be one, and other numbers may be set as needed, and the embodiment is not limited thereto.
In step S230, data to be transmitted is transmitted through the first transmission link and the second transmission link, respectively, based on the network bandwidth. Wherein the amount of data transmitted by each of the transmission links to be transmitted is positively correlated with the corresponding network bandwidth.
In the embodiment, network bandwidths corresponding to the first transmission link and the second transmission link can be obtained respectively, more data to be transmitted are transmitted on the transmission link with larger network bandwidth, and smaller data to be transmitted are transmitted on the transmission link with smaller network bandwidth, so that the data to be transmitted are transmitted by fully utilizing the two transmission links, and meanwhile, the data transmission quantity on each transmission link can be reasonably distributed according to the network bandwidth, and the data transmission efficiency can be improved to a great extent.
Therefore, in the embodiment provided by the disclosure, the first network bandwidth corresponding to the first transmission link may be acquired, and the second network bandwidth corresponding to the second transmission link may be acquired. And determining that the priority of the first transmission link for transmitting the data to be transmitted is greater than the priority of the second transmission link for transmitting the data to be transmitted under the condition that the first network bandwidth is greater than the second network bandwidth. In the embodiment, the priority of the data to be transmitted can be determined by different network bandwidths of the two transmission links, and the transmission links with large network bandwidths can transmit more data to be transmitted because the transmission links with large network bandwidths can transmit the data faster, so that the total consumption of the data to be transmitted can be reduced as a whole, and the transmission efficiency of the data transmission can be greatly improved.
Based on the above embodiment, in still another embodiment provided in the present disclosure, the step S230 may further include the steps of:
step S231, obtaining the target concurrency slice number of the data to be transmitted.
Step S232, based on the network bandwidth, the fragments corresponding to the target concurrent fragments are respectively allocated to the first transmission link and the second transmission link, and the fragments corresponding to the target concurrent fragments are simultaneously transmitted through the first transmission link and the second transmission link.
In an embodiment, the maximum number of concurrent slices of network transmission may be preset, and the maximum number of concurrent slices is taken as the target number of concurrent slices, for example, the maximum number of concurrent slices is m+n slices, that is, m+n slices may be simultaneously transmitted through the transmission link, so that slices of data to be transmitted may be allocated according to network bandwidths of the first transmission link and the second transmission link, for example, in a case where the network bandwidth of the first transmission link is greater than the network bandwidth of the second transmission link, M slices may be simultaneously transmitted through the first transmission link, and N slices may be simultaneously transmitted through the second transmission link, so that m+n slices of data to be transmitted may be simultaneously transmitted through the first transmission link and the second transmission link, respectively. Wherein M and N are positive integers, M is greater than N.
If the difference between the network bandwidths of the first transmission link and the second transmission link is relatively large, for example, the difference between the network bandwidths of the first transmission link and the second transmission link and the threshold value can be compared according to the ratio of the network bandwidths of the first transmission link and the second transmission link, and if the ratio is greater than the preset threshold value, the number of fragments passing through the first transmission link and the second transmission link can be correspondingly adjusted, for example, m+x fragments can be simultaneously transmitted through the first transmission link and N-X fragments can be simultaneously transmitted through the second transmission link under the condition that the maximum concurrent number of fragments is m+n, wherein X is a positive integer smaller than N. If the network bandwidths between the first transmission link and the second transmission link are relatively close, the network bandwidths can be compared with a threshold according to the ratio of the network bandwidths of the first transmission link and the second transmission link, and if the ratio is not greater than a preset threshold, the number of fragments respectively transmitted through the first transmission link and the second transmission link can be correspondingly adjusted so that the number of fragments respectively transmitted by the first transmission link and the second transmission link are relatively close.
Based on the above embodiment, in yet another embodiment provided by the present disclosure, the method may further include the steps of:
step S240, in the case that the target segment with the transmission failure is obtained, a first transmission link corresponding to the target segment is obtained.
And step S250, switching the target fragments to a second transmission link for transmission.
In an embodiment, once data transmitted on a transmission link fails, a corresponding slice on the transmission link with the failed transmission link may be transmitted through another transmission link, where the target slice in the embodiment includes the slice with the failed transmission. For example, if the fragmentation transmitted by the first transmission link fails, the transmission retry can be performed on the fragmented transmitted by the second transmission link, and likewise, if the fragmentation transmitted by the second transmission link fails, the transmission retry can be performed on the fragmented transmitted by the first transmission link until all the fragmented transmission of the data to be transmitted is completed, so as to ensure the transmission efficiency of the data.
In addition, in the embodiment provided by the disclosure, the fragments can be sent again to the link with failed transmission, so that if the fragments are successfully transmitted, the data can be continuously transmitted through the transmission link. Specifically, the target number of fragments may be sent to the first transmission link with failed transmission, and when the successful transmission of the target number of fragments is detected, the data to be transmitted is transmitted through the first transmission link and the second transmission link respectively. The target number may be one or several, and may be specifically set according to actual needs, and the embodiment is not limited thereto.
In the case of dividing each functional module by corresponding each function, the embodiments of the present disclosure provide a data transmission device, which may be a server or a chip applied to the server. Fig. 3 is a schematic block diagram of functional modules of a data transmission apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 3, the data transmission apparatus includes:
the data acquisition module 10 is configured to acquire data to be transmitted and a link to be transmitted, where the link to be transmitted includes a first transmission link and a second transmission link;
a network bandwidth obtaining module 20, configured to obtain network bandwidths corresponding to the first transmission link and the second transmission link respectively;
a transmission module 30, configured to transmit the data to be transmitted through the first transmission link and the second transmission link, respectively, based on the network bandwidth; wherein, the data volume transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth.
In yet another embodiment provided by the present disclosure, the apparatus further comprises:
the data volume acquisition module is used for acquiring the target data volume of the data to be transmitted;
and the slicing processing module is used for dividing the data to be transmitted into a plurality of slices based on the target data volume.
In yet another embodiment provided in the present disclosure, the network bandwidth obtaining module is specifically configured to:
transmitting a preset number of fragments through the first transmission link and the second transmission link respectively;
and respectively determining the network bandwidths of the first transmission link and the second transmission link based on the transmission time consumption of the preset number of fragments.
In yet another embodiment provided by the present disclosure, the apparatus further comprises: a determination module, wherein,
the network bandwidth obtaining module is further configured to obtain a first network bandwidth corresponding to the first transmission link, and obtain a second network bandwidth corresponding to the second transmission link;
the determining module is configured to determine that, when the first network bandwidth is greater than the second network bandwidth, a priority of the first transmission link for transmitting the data to be transmitted is greater than a priority of the second transmission link for transmitting the data to be transmitted.
In yet another embodiment provided by the present disclosure, the transmission module is specifically configured to:
acquiring the target concurrency piece number of the data to be transmitted;
and based on the network bandwidth, respectively distributing the fragments corresponding to the target concurrent fragments to the first transmission link and the second transmission link, and simultaneously transmitting the fragments corresponding to the target concurrent fragments through the first transmission link and the second transmission link.
In yet another embodiment provided by the present disclosure, the apparatus further comprises:
the target transmission link acquisition module is used for acquiring a first transmission link corresponding to a target fragment under the condition that the target fragment with transmission failure is acquired;
and the data transmission module is used for switching the target fragments to the second transmission link for transmission.
In yet another embodiment provided by the present disclosure, the apparatus further comprises:
a sending module, configured to send a target number of fragments to the first transmission link;
the transmission module is further configured to transmit the data to be transmitted through the first transmission link and the second transmission link, respectively, when the target number of fragments is detected to be successfully transmitted.
For the device parts, see the descriptions corresponding to the above method embodiments specifically, and are not repeated here.
According to the data transmission device provided by the embodiment of the disclosure, the data to be transmitted and the links to be transmitted are obtained, the network bandwidths corresponding to the first transmission link and the second transmission link in the links to be transmitted are obtained, the data to be transmitted is transmitted through the first transmission link and the second transmission link based on the network bandwidths, and the data amount transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth, so that the data can be transmitted by fully utilizing the two transmission links, the transmission duration of the data can be reduced to a great extent, and the data transmission efficiency is provided.
The embodiment of the disclosure also provides an electronic device, including: at least one processor; a memory for storing the at least one processor-executable instruction; wherein the at least one processor is configured to execute the instructions to implement the above-described methods disclosed by embodiments of the present disclosure.
Fig. 4 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. As shown in fig. 4, the electronic device 1800 includes at least one processor 1801 and a memory 1802 coupled to the processor 1801, the processor 1801 may perform corresponding steps in the above-described methods disclosed by embodiments of the present disclosure.
The processor 1801 may also be referred to as a central processing unit (central processing unit, CPU), which may be an integrated circuit chip with signal processing capabilities. The steps of the above-described methods disclosed in the embodiments of the present disclosure may be accomplished by instructions in the form of integrated logic circuits or software in hardware in the processor 1801. The processor 1801 may be a general purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present disclosure may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor. The software modules may reside in a memory 1802 such as random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as is well known in the art. The processor 1801 reads the information in the memory 1802 and, in combination with its hardware, performs the steps of the method described above.
In addition, various operations/processes according to the present disclosure, when implemented by software and/or firmware, may be installed from a storage medium or network to a computer system having a dedicated hardware structure, such as computer system 1900 shown in fig. 5, which is capable of performing various functions including functions such as those described previously, and the like, when various programs are installed. Fig. 5 is a block diagram of a computer system according to an exemplary embodiment of the present disclosure.
Computer system 1900 is intended to represent various forms of digital electronic computing devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the computer system 1900 includes a computing unit 1901, and the computing unit 1901 may perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 1902 or a computer program loaded from a storage unit 1908 into a Random Access Memory (RAM) 1903. In the RAM 1903, various programs and data required for the operation of the computer system 1900 may also be stored. The computing unit 1901, ROM 1902, and RAM 1903 are connected to each other via a bus 1904. An input/output (I/O) interface 1905 is also connected to bus 1904.
Various components in computer system 1900 are connected to I/O interface 1905, including: an input unit 1906, an output unit 1907, a storage unit 1908, and a communication unit 1909. The input unit 1906 may be any type of device capable of inputting information to the computer system 1900, and the input unit 1906 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. The output unit 1907 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 1908 may include, but is not limited to, magnetic disks, optical disks. The communication unit 1909 allows the computer system 1900 to exchange information/data with other devices over a network, such as the internet, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 1901 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 1901 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1901 performs the various methods and processes described above. For example, in some embodiments, the above-described methods disclosed by embodiments of the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1908. In some embodiments, some or all of the computer programs may be loaded and/or installed onto electronic device 1900 via ROM 1902 and/or communication unit 1909. In some embodiments, the computing unit 1901 may be configured to perform the above-described methods of the disclosed embodiments by any other suitable means (e.g., by means of firmware).
The disclosed embodiments also provide a computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the above-described method disclosed by the disclosed embodiments.
A computer readable storage medium in embodiments of the present disclosure may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium described above can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium described above may include one or more wire-based electrical connections, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The disclosed embodiments also provide a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the above-described methods of the disclosed embodiments.
In an embodiment of the present disclosure, computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including but not limited to an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computers may be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computers.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules, components or units referred to in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a module, component or unit does not in some cases constitute a limitation of the module, component or unit itself.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The above description is merely illustrative of some embodiments of the present disclosure and of the principles of the technology applied. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the disclosure. The scope of the present disclosure is defined by the appended claims.

Claims (10)

1. A method of data transmission, the method comprising:
acquiring data to be transmitted and a link to be transmitted, wherein the link to be transmitted comprises a first transmission link and a second transmission link;
acquiring network bandwidths respectively corresponding to the first transmission link and the second transmission link;
based on the network bandwidth, transmitting the data to be transmitted through the first transmission link and the second transmission link respectively; wherein, the data volume transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth.
2. The method according to claim 1, wherein the method further comprises:
acquiring the target data volume of the data to be transmitted;
and dividing the data to be transmitted into a plurality of fragments based on the target data volume.
3. The method of claim 2, wherein the obtaining network bandwidths respectively corresponding to the first transmission link and the second transmission link comprises:
transmitting a preset number of fragments through the first transmission link and the second transmission link respectively;
and respectively determining the network bandwidths of the first transmission link and the second transmission link based on the transmission time consumption of the preset number of fragments.
4. A method according to claim 3, characterized in that the method further comprises:
acquiring a first network bandwidth corresponding to the first transmission link and acquiring a second network bandwidth corresponding to the second transmission link;
and under the condition that the first network bandwidth is larger than the second network bandwidth, determining that the priority of the first transmission link for transmitting the data to be transmitted is larger than the priority of the second transmission link for transmitting the data to be transmitted.
5. The method of claim 2, wherein the transmitting the data to be transmitted over the first transmission link and the second transmission link, respectively, comprises:
acquiring the target concurrency piece number of the data to be transmitted;
and based on the network bandwidth, respectively distributing the fragments corresponding to the target concurrent fragments to the first transmission link and the second transmission link, and simultaneously transmitting the fragments corresponding to the target concurrent fragments through the first transmission link and the second transmission link.
6. The method according to any one of claims 1 to 5, further comprising:
under the condition that a target fragment with transmission failure is obtained, a first transmission link corresponding to the target fragment is obtained;
and switching the target fragments to the second transmission link for transmission.
7. The method of claim 6, wherein the method further comprises:
transmitting a target number of fragments to the first transmission link;
and executing the step of transmitting the data to be transmitted through the first transmission link and the second transmission link respectively under the condition that the successful transmission of the target number of fragments is detected.
8. A data transmission apparatus, the apparatus comprising:
the data acquisition module is used for acquiring data to be transmitted and a link to be transmitted, wherein the link to be transmitted comprises a first transmission link and a second transmission link;
the network bandwidth acquisition module is used for acquiring network bandwidths respectively corresponding to the first transmission link and the second transmission link;
the transmission module is used for transmitting the data to be transmitted through the first transmission link and the second transmission link respectively based on the network bandwidth; wherein, the data volume transmitted by each transmission link in the links to be transmitted is positively correlated with the corresponding network bandwidth.
9. An electronic device, comprising:
at least one processor;
a memory for storing the at least one processor-executable instruction;
wherein the at least one processor is configured to execute the instructions to implement the method of any of claims 1-7.
10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1-7.
CN202310969288.2A 2023-08-03 2023-08-03 Data transmission method, device, electronic equipment and storage medium Pending CN116801396A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310969288.2A CN116801396A (en) 2023-08-03 2023-08-03 Data transmission method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310969288.2A CN116801396A (en) 2023-08-03 2023-08-03 Data transmission method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116801396A true CN116801396A (en) 2023-09-22

Family

ID=88034823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310969288.2A Pending CN116801396A (en) 2023-08-03 2023-08-03 Data transmission method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116801396A (en)

Similar Documents

Publication Publication Date Title
CN111163130B (en) Network service system and data transmission method thereof
CN112868265B (en) Network resource management method, management device, electronic equipment and storage medium
EP3817255A1 (en) Data verification method and apparatus, and storage medium
US20210345009A1 (en) Method and device, equipment, and storage medium for data processing
US20230413247A1 (en) Method for communication processing, terminal device, and non-transitory computer-readable storage medium
CN111538572A (en) Task processing method, device, scheduling server and medium
WO2021129742A1 (en) Network data recovery method and device, and mobile terminal
CN112422485A (en) Communication method and device of transmission control protocol
CN113261249A (en) Data transmission method, related equipment and computer storage medium
CN101572764B (en) Method and system for sending pictures between electronic picture frames and electronic picture frame
CN114510299A (en) Method, device and storage medium for processing artificial intelligence service
CN114979148B (en) Data transmission method, device and computer readable storage medium
CN109005060B (en) Deep learning application optimization framework based on hierarchical highly heterogeneous distributed system
CN111371896A (en) Network acceleration method, terminal and storage medium
CN116801396A (en) Data transmission method, device, electronic equipment and storage medium
CN107819761B (en) Data processing method and device and readable storage medium
CN108289165B (en) Method and device for realizing camera control based on mobile phone and terminal equipment
CN116055403A (en) Message data transmission method, device and server
CN107124353B (en) Message processing method and device, computer device and storage medium
CN115776461A (en) Screen projection method, equipment and storage medium
CN113890906A (en) Call forwarding method and device, electronic equipment and computer readable storage medium
CN111385167A (en) Network connection recovery method, device, computer device and storage medium
CN114270309A (en) Resource acquisition method and device and electronic equipment
CN113132324B (en) Sample identification method and system
CN114268910B (en) Group information issuing method and equipment of cluster network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination