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

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

Info

Publication number
CN113890712A
CN113890712A CN202111199994.0A CN202111199994A CN113890712A CN 113890712 A CN113890712 A CN 113890712A CN 202111199994 A CN202111199994 A CN 202111199994A CN 113890712 A CN113890712 A CN 113890712A
Authority
CN
China
Prior art keywords
data
channel
transmitted
target
sequence
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
CN202111199994.0A
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.)
Weway Shenzhen Network Technology Co ltd
Original Assignee
Weway Shenzhen 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 Weway Shenzhen Network Technology Co ltd filed Critical Weway Shenzhen Network Technology Co ltd
Priority to CN202111199994.0A priority Critical patent/CN113890712A/en
Publication of CN113890712A publication Critical patent/CN113890712A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order
    • H04L47/6235Variable service order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/626Queue scheduling characterised by scheduling criteria for service slots or service orders channel conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/628Queue scheduling characterised by scheduling criteria for service slots or service orders based on packet size, e.g. shortest packet first

Abstract

The invention relates to a data transmission technology, and discloses a data transmission method, which comprises the following steps: acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority; classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted; acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set; and selecting a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data, and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end. The invention also provides a data transmission device, equipment and a readable storage medium. The invention can improve the efficiency of data transmission.

Description

Data transmission method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to data transmission technologies, and in particular, to a data transmission method and apparatus, an electronic device, and a readable storage medium.
Background
With the development of communication technology, 5G messages and computers, the demand for data transmission is becoming higher and higher. In the traditional communication data transmission process, a single data transmission channel is used for transmitting data, and the proper data transmission channel can not be selected to transmit the data due to the characteristics of the data, so that the data transmission efficiency is low.
Disclosure of Invention
The invention provides a data transmission method, a data transmission device, electronic equipment and a computer readable storage medium, and mainly aims to improve the efficiency of data transmission.
In order to achieve the above object, a data transmission method provided by the present invention includes:
acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority;
classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set;
and selecting a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data, and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end.
Optionally, the classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted includes:
summarizing the data to be transmitted with the same data priority in all the data to be transmitted to obtain the data subset to be transmitted.
Optionally, the selecting a corresponding channel from the channel set and transmitting the to-be-transmitted data in the to-be-transmitted data subset corresponding to the channel set to a preset data receiving end includes:
numbering and sequencing the channels in the channel set according to channel capacity to obtain the channel sequence;
sequencing and numbering the data to be transmitted in the data to be transmitted subset according to the data size to obtain a data sequence to be transmitted;
selecting first data to be transmitted in the data sequence to be transmitted to obtain target data to be transmitted;
calculating according to the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, and selecting the channel in the channel sequence according to the calculation result to obtain a target channel corresponding to the target data to be transmitted;
updating the sequence length of the data sequence to be transmitted by using the target data to be transmitted, and judging whether the sequence length of the updated data sequence to be transmitted is zero or not;
when the updated sequence length of the data sequence to be transmitted is zero, transmitting the corresponding target data to be transmitted to the data receiving end by using the target channel;
and when the sequence length of the updated data sequence to be transmitted is not zero, updating the sequence length of the channel sequence by using the target channel, and returning to the step of selecting the first data to be transmitted in the data sequence to be transmitted.
Optionally, the calculating according to the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, and selecting a channel in the channel sequence according to the calculation result to obtain a target channel corresponding to the target data to be transmitted includes:
calculating the absolute value of the difference value between the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence to obtain the corresponding residual capacity;
selecting the minimum value of all the residual capacities to obtain a target residual capacity;
and determining the channel corresponding to the target residual capacity as a target channel corresponding to the target data to be transmitted.
Optionally, the determining the channel corresponding to the target remaining capacity as the target channel corresponding to the target data to be transmitted includes:
judging whether the number of the target residual capacity is multiple or not;
when the number of the target residual capacities is multiple, selecting a channel which is ranked most front in the channel sequence from all channels corresponding to the target residual capacities to obtain the target channel;
and when the number of the channels corresponding to the target residual capacity is single, determining the channels corresponding to the target residual capacity as the target channels.
Optionally, the performing, by using the target channel, sequence length update on the channel sequence includes:
judging whether the sequence length of the channel sequence is 1;
when the sequence length of the channel sequence is not 1, deleting the target channel in the channel sequence to obtain an updated channel sequence;
and when the sequence length in the channel sequence is 1, numbering and sequencing the channels in the channel set according to the channel capacity to obtain an updated channel sequence.
Optionally, the transmitting the corresponding target to-be-transmitted data to the data receiving end by using the target channel includes:
when the data size of the target data to be transmitted is smaller than a preset threshold value, transmitting the target data to be transmitted to the data receiving end by using the target channel according to a UDP transmission protocol;
and when the data size of the target data to be transmitted is not smaller than a preset threshold value, transmitting the target data to be transmitted to the data receiving end by using the target channel according to a TCP (transmission control protocol).
In order to solve the above problem, the present invention also provides a data transmission apparatus, including:
the data classification module is used for acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority; classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
the channel acquisition module is used for acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set;
and the data transmission module is used for selecting a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one computer program; and
and a processor executing the computer program stored in the memory to implement the data transmission method.
In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored, the at least one computer program being executed by a processor in an electronic device to implement the data transmission method described above.
According to the data transmission method, the data transmission device, the electronic equipment and the readable storage medium, the corresponding channels are selected from the channel set according to the channel capacity of the channels and the data size of the transmission data, the data to be transmitted in the data subsets to be transmitted corresponding to the channel set are transmitted to the preset data receiving end, the channels in the corresponding channel set are selected according to different data priorities, the data to be transmitted in the data subsets to be transmitted are transmitted, meanwhile, the corresponding data to be transmitted are transmitted according to the channels with the data sizes matched with the similar data capacity, and the data transmission efficiency is higher.
Drawings
Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a block diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 3 is a schematic internal structural diagram of an electronic device implementing a data transmission method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a data transmission method. The execution subject of the data transmission method includes, but is not limited to, at least one of electronic devices, such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. In other words, the data transmission method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a block chain platform. The server includes but is not limited to: the cloud server can be an independent server, or can be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Referring to fig. 1, which is a schematic flow chart of a data transmission method according to an embodiment of the present invention, in an embodiment of the present invention, the data transmission method includes:
s1, acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority;
in the embodiment of the invention, the data to be transmitted is data which needs to be transmitted to a preset data receiving end; the data priority is an identifier used for representing the importance degree of data, and the data priority comprises the following components: core data, non-core data.
S2, classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
in order to transmit different data of the data to be transmitted according to different data importance degrees, all the data to be transmitted are classified according to the data priority, and one or more data subsets to be transmitted are obtained.
In detail, in the embodiment of the present invention, classifying all the data to be transmitted according to the data priority includes: summarizing the data to be transmitted with the same data priority in all the data to be transmitted to obtain the data subset to be transmitted.
S3, acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set;
in the embodiment of the present invention, the channel is a pre-constructed data transmission channel between the data receiving end and the channel, and the types of channels corresponding to different data priorities are different, for example: if the priority of the data is core data, the corresponding channel is an encrypted channel; the data priority is uncore data, and the corresponding channel is a normal channel.
S4, according to the channel capacity of the channel and the data size of the transmission data, selecting a corresponding channel from the channel set, and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end.
In the embodiment of the present invention, the channels in the channel set corresponding to the same data priority transmit the data to be transmitted in the data subset corresponding to the data priority, so as to implement the classified transmission of the data, and the data receiving end is an intelligent terminal device capable of receiving the data, such as: mobile phones, computers, tablets, etc.
In order to further improve the data transmission efficiency and the utilization efficiency of the channels, it is necessary to select a suitable channel for each to-be-transmitted data to perform data transmission, and therefore, in the embodiment of the present invention, according to the channel capacity of the channel and the data size of the transmission data, a corresponding channel is selected from the channel set, and the to-be-transmitted data in the to-be-transmitted data subset corresponding to the channel set is transmitted to a preset data receiving end. In the embodiment of the invention to
In detail, in the embodiment of the present invention, selecting a corresponding channel from the channel set to transmit data to be transmitted in the to-be-transmitted data subset corresponding to the channel set to a preset data receiving end includes:
step A: numbering and sequencing the channels in the channel set according to channel capacity to obtain the channel sequence;
and B: sequencing and numbering the data to be transmitted in the data to be transmitted subset according to the data size to obtain a data sequence to be transmitted;
and C: selecting first data to be transmitted in the data sequence to be transmitted to obtain target data to be transmitted;
step D: calculating according to the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, and selecting the channel in the channel sequence according to the calculation result to obtain a target channel corresponding to the target data to be transmitted;
step E: updating the sequence length of the data sequence to be transmitted by using the target data to be transmitted, and judging whether the sequence length of the updated data sequence to be transmitted is zero or not;
optionally, in the embodiment of the present invention, performing sequence length update on the data sequence to be transmitted by using the target data to be transmitted includes: and deleting the target data to be transmitted in the data sequence to be transmitted to obtain an updated data sequence to be transmitted.
Step F: when the updated sequence length of the data sequence to be transmitted is zero, transmitting the corresponding target data to be transmitted to the data receiving end by using the target channel;
optionally, in the embodiment of the present invention, when the data size of the target data to be transmitted is smaller than a preset threshold, the target data to be transmitted is transmitted to the data receiving end by using the target channel according to a UDP transmission protocol; and when the data size of the target data to be transmitted is not smaller than a preset threshold value, transmitting the target data to be transmitted to the data receiving end by using the target channel according to a TCP (transmission control protocol). Optionally, when the data receiving end is in a local area network, the preset threshold is 548 bits, and when the data receiving end is in a public network, the preset threshold is 8184 bits.
In detail, in the embodiment of the present invention, since the number of channels in a channel sequence is smaller than the number of data in a data sequence to be transmitted, there may be more than one target data to be transmitted corresponding to the target channel, and when the number of the target data to be transmitted corresponding to the target channel is greater than 1, all the target data to be transmitted corresponding to the target channel are sequentially sent to the data receiving end through the target channels according to the sequence of each target data to be transmitted in the data sequence to be transmitted.
For example: the data to be transmitted in the target corresponding to the target channel are data A to be transmitted and data B to be transmitted, the sequence of the data A to be transmitted in the data sequence to be transmitted is 2 bits, the sequence of the data B to be transmitted in the data sequence to be transmitted is 3 rd bit, then the data A to be transmitted is firstly sent to the data receiving end by using the target channel, and then the data B to be transmitted is sent to the data receiving end.
Step G: and when the sequence length of the updated data sequence to be transmitted is not zero, updating the sequence length of the channel sequence by using the target channel, and returning to the step of selecting the first data to be transmitted in the data sequence to be transmitted.
Further, in the embodiment of the present invention, calculating according to the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, and selecting a channel in the channel sequence according to the calculation result to obtain the target channel corresponding to the target data to be transmitted includes:
step I: calculating the absolute value of the difference value between the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence to obtain the corresponding residual capacity;
in the embodiment of the present invention, when the data size is closer to the channel capacity, the higher the data transmission efficiency of the corresponding channel is, and the higher the resource utilization rate of the channel is, therefore, in order to measure the proximity degree between the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, the embodiment of the present invention calculates the absolute value of the difference between the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, and obtains the corresponding remaining capacity.
For example: the data size of the target data to be transmitted is 5kb, the channel sequence is [ channel a, channel B ], the channel capacity of channel a is 6kb, and the channel capacity of channel B is 7kb, then absolute values of differences between the data size of the target data to be transmitted and the channel capacities of channel a and channel B need to be calculated respectively, and the corresponding residual capacity of channel a is 1kb, and the corresponding residual capacity of channel B is 2 kb.
Step II: selecting the minimum value of all the residual capacities to obtain a target residual capacity;
in detail, in the embodiment of the present invention, in order to find a channel whose channel capacity is closest to the data size of the target data to be transmitted, a minimum value of all the remaining capacities is selected to obtain a target remaining capacity; since there may be one or more minimum values, there may be one or more target remaining capacities.
Step III: and determining the channel corresponding to the target residual capacity as a target channel corresponding to the target data to be transmitted.
Further, since one or more target remaining capacities may exist, determining the channel corresponding to the target remaining capacity as a target channel corresponding to the target to-be-transmitted data in the embodiment of the present invention includes:
step 1: judging whether the number of the target residual capacity is multiple or not;
step 2: when the number of the target residual capacities is multiple, selecting a channel which is ranked most front in the channel sequence from all channels corresponding to the target residual capacities to obtain the target channel;
for example: the total number of the target residual capacities is 2, A, B are the same in value, the channel corresponding to the target residual capacity A is channel A, the channel corresponding to the target residual capacity B is channel B, the channel A is ranked at the 3 rd position in the channel sequence, the channel B is ranked at the 2 nd position in the channel sequence, and the channel B is ranked at the top, so that the channel B is determined as the target channel.
And step 3: and when the number of the channels corresponding to the target residual capacity is single, determining the channels corresponding to the target residual capacity as the target channels.
Specifically, in the embodiment of the present invention, updating the sequence length of the channel sequence by using the target channel includes:
step i: judging whether the sequence length of the channel sequence is 1;
step ii: when the sequence length of the channel sequence is not 1, deleting the target channel in the channel sequence to obtain an updated channel sequence;
step iii: and when the sequence length in the channel sequence is 1, numbering and sequencing the channels in the channel set according to the channel capacity to obtain an updated channel sequence.
In detail, in the embodiment of the present invention, when the sequence length in the channel sequence is 1, it indicates that the number of channels in the channel sequence is smaller than the number of data to be transmitted in the data sequence to be transmitted, so that a corresponding channel cannot be determined for each data to be transmitted in the data sequence to be transmitted in one round of selection, and the remaining data to be transmitted needs to be reselected in an initial channel sequence.
Fig. 2 is a functional block diagram of the data transmission device according to the present invention.
The data transmission device 100 of the present invention may be installed in an electronic device. According to the implemented functions, the data transmission apparatus may include a data classification module 101, a channel acquisition module 102, and a data transmission module 103, which may also be referred to as a unit, and refer to a series of computer program segments that can be executed by a processor of an electronic device and can perform fixed functions, and are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the data classification module 101 is configured to obtain a data set to be transmitted, where each data to be transmitted in the data set to be transmitted has a corresponding data priority; classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
the channel acquiring module 102 is configured to acquire all channels corresponding to the priority of each type of data to obtain a corresponding channel set;
the data transmission module 103 is configured to select a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data, and transmit the data to be transmitted in the to-be-transmitted data subset corresponding to the channel set to a preset data receiving end.
In detail, when the modules in the data transmission device 100 according to the embodiment of the present invention are used, the same technical means as the data transmission method described in fig. 1 are used, and the same technical effects can be produced, which is not described herein again.
Fig. 2 is a schematic structural diagram of an electronic device implementing the data transmission method according to the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a data transfer program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a data transmission program, but also to temporarily store data that has been output or is to be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., data transmission programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The communication bus 12 may be a PerIPheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
Fig. 2 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 2 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power source may also include any component of one or more dc or ac power sources, recharging devices, power failure classification circuits, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Optionally, the communication interface 13 may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further include a user interface, which may be a Display (Display), an input unit (such as a Keyboard (Keyboard)), and optionally, a standard wired interface, or a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The data transfer program stored in the memory 11 of the electronic device is a combination of a plurality of computer programs, which when executed in the processor 10, can implement:
acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority;
classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set;
and selecting a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data, and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program may implement:
acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority;
classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set;
and selecting a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data, and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end.
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method of data transmission, the method comprising:
acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority;
classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set;
and selecting a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data, and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end.
2. The data transmission method according to claim 1, wherein the classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted includes:
summarizing the data to be transmitted with the same data priority in all the data to be transmitted to obtain the data subset to be transmitted.
3. The data transmission method according to any one of claims 1 or 2, wherein the selecting a corresponding channel from the channel set to transmit data to be transmitted in the to-be-transmitted data subset corresponding to the channel set to a preset data receiving end includes:
numbering and sequencing the channels in the channel set according to channel capacity to obtain the channel sequence;
sequencing and numbering the data to be transmitted in the data to be transmitted subset according to the data size to obtain a data sequence to be transmitted;
selecting first data to be transmitted in the data sequence to be transmitted to obtain target data to be transmitted;
calculating according to the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, and selecting the channel in the channel sequence according to the calculation result to obtain a target channel corresponding to the target data to be transmitted;
updating the sequence length of the data sequence to be transmitted by using the target data to be transmitted, and judging whether the sequence length of the updated data sequence to be transmitted is zero or not;
when the updated sequence length of the data sequence to be transmitted is zero, transmitting the corresponding target data to be transmitted to the data receiving end by using the target channel;
and when the sequence length of the updated data sequence to be transmitted is not zero, updating the sequence length of the channel sequence by using the target channel, and returning to the step of selecting the first data to be transmitted in the data sequence to be transmitted.
4. The data transmission method according to claim 3, wherein the calculating according to the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence, and selecting the channel in the channel sequence according to the calculation result to obtain the target channel corresponding to the target data to be transmitted comprises:
calculating the absolute value of the difference value between the data size of the target data to be transmitted and the channel capacity of each channel in the channel sequence to obtain the corresponding residual capacity;
selecting the minimum value of all the residual capacities to obtain a target residual capacity;
and determining the channel corresponding to the target residual capacity as a target channel corresponding to the target data to be transmitted.
5. The data transmission method according to claim 3, wherein the determining the channel corresponding to the target remaining capacity as the target channel corresponding to the target data to be transmitted includes:
judging whether the number of the target residual capacity is multiple or not;
when the number of the target residual capacities is multiple, selecting a channel which is ranked most front in the channel sequence from all channels corresponding to the target residual capacities to obtain the target channel;
and when the number of the channels corresponding to the target residual capacity is single, determining the channels corresponding to the target residual capacity as the target channels.
6. The data transmission method of claim 3, wherein the performing sequence length update on the channel sequence by using the target channel comprises:
judging whether the sequence length of the channel sequence is 1;
when the sequence length of the channel sequence is not 1, deleting the target channel in the channel sequence to obtain an updated channel sequence;
and when the sequence length in the channel sequence is 1, numbering and sequencing the channels in the channel set according to the channel capacity to obtain an updated channel sequence.
7. The data transmission method according to claim 3, wherein the transmitting the corresponding target data to be transmitted to the data receiving end by using the target channel includes:
when the data size of the target data to be transmitted is smaller than a preset threshold value, transmitting the target data to be transmitted to the data receiving end by using the target channel according to a UDP transmission protocol;
and when the data size of the target data to be transmitted is not smaller than a preset threshold value, transmitting the target data to be transmitted to the data receiving end by using the target channel according to a TCP (transmission control protocol).
8. A data transmission apparatus, comprising:
the data classification module is used for acquiring a data set to be transmitted, wherein each data to be transmitted in the data set to be transmitted has a corresponding data priority; classifying all the data to be transmitted according to the data priority to obtain one or more data subsets to be transmitted;
the channel acquisition module is used for acquiring all channels corresponding to the data priority of each type to obtain a corresponding channel set;
and the data transmission module is used for selecting a corresponding channel from the channel set according to the channel capacity of the channel and the data size of the transmission data and transmitting the data to be transmitted in the data subset to be transmitted corresponding to the channel set to a preset data receiving end.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data transmission method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the data transmission method according to any one of claims 1 to 7.
CN202111199994.0A 2021-10-14 2021-10-14 Data transmission method and device, electronic equipment and readable storage medium Pending CN113890712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111199994.0A CN113890712A (en) 2021-10-14 2021-10-14 Data transmission method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111199994.0A CN113890712A (en) 2021-10-14 2021-10-14 Data transmission method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113890712A true CN113890712A (en) 2022-01-04

Family

ID=79002908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111199994.0A Pending CN113890712A (en) 2021-10-14 2021-10-14 Data transmission method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113890712A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500680A (en) * 2022-04-19 2022-05-13 创思(广州)电子科技有限公司 Multi-channel intersection data classification type information transmission algorithm
CN115134060A (en) * 2022-06-20 2022-09-30 京东科技控股股份有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN116089175A (en) * 2023-04-10 2023-05-09 航天万源云数据河北有限公司 Disaster recovery method, device, equipment and storage medium for data center

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364856A (en) * 2007-08-07 2009-02-11 鼎桥通信技术有限公司 Resource distribution method and apparatus
US20100128688A1 (en) * 2008-11-24 2010-05-27 Electronics And Telecommunications Research Institute Data transmission/reception method in wireless communication system, and data transmitter and data receiver using the same
US20120253847A1 (en) * 2011-03-31 2012-10-04 General Electric Company Health information telecommunications system and method
CN109618240A (en) * 2018-10-26 2019-04-12 安徽清新互联信息科技有限公司 Wireless Multi-Channel adaptive equilibrium method for real-time audio and video transmission
CN111147606A (en) * 2020-01-06 2020-05-12 北京字节跳动网络技术有限公司 Data transmission method, device, terminal and storage medium
CN111955040A (en) * 2018-04-03 2020-11-17 Oppo广东移动通信有限公司 Data transmission method, terminal equipment and network equipment
CN112671921A (en) * 2020-12-29 2021-04-16 平安普惠企业管理有限公司 Data transmission method and device, electronic equipment and readable storage medium
CN112703689A (en) * 2021-01-30 2021-04-23 华为技术有限公司 Data transmission method and device, electronic equipment and storage medium
CN112751772A (en) * 2019-10-31 2021-05-04 上海哔哩哔哩科技有限公司 Data transmission method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364856A (en) * 2007-08-07 2009-02-11 鼎桥通信技术有限公司 Resource distribution method and apparatus
US20100128688A1 (en) * 2008-11-24 2010-05-27 Electronics And Telecommunications Research Institute Data transmission/reception method in wireless communication system, and data transmitter and data receiver using the same
US20120253847A1 (en) * 2011-03-31 2012-10-04 General Electric Company Health information telecommunications system and method
CN111955040A (en) * 2018-04-03 2020-11-17 Oppo广东移动通信有限公司 Data transmission method, terminal equipment and network equipment
CN109618240A (en) * 2018-10-26 2019-04-12 安徽清新互联信息科技有限公司 Wireless Multi-Channel adaptive equilibrium method for real-time audio and video transmission
CN112751772A (en) * 2019-10-31 2021-05-04 上海哔哩哔哩科技有限公司 Data transmission method and system
CN111147606A (en) * 2020-01-06 2020-05-12 北京字节跳动网络技术有限公司 Data transmission method, device, terminal and storage medium
CN112671921A (en) * 2020-12-29 2021-04-16 平安普惠企业管理有限公司 Data transmission method and device, electronic equipment and readable storage medium
CN112703689A (en) * 2021-01-30 2021-04-23 华为技术有限公司 Data transmission method and device, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500680A (en) * 2022-04-19 2022-05-13 创思(广州)电子科技有限公司 Multi-channel intersection data classification type information transmission algorithm
CN115134060A (en) * 2022-06-20 2022-09-30 京东科技控股股份有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN116089175A (en) * 2023-04-10 2023-05-09 航天万源云数据河北有限公司 Disaster recovery method, device, equipment and storage medium for data center
CN116089175B (en) * 2023-04-10 2023-06-23 航天万源云数据河北有限公司 Disaster recovery method, device, equipment and storage medium for data center

Similar Documents

Publication Publication Date Title
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN113806434B (en) Big data processing method, device, equipment and medium
CN111694844A (en) Enterprise operation data analysis method and device based on configuration algorithm and electronic equipment
CN112653760A (en) Cross-server file transmission method and device, electronic equipment and storage medium
CN113868529A (en) Knowledge recommendation method and device, electronic equipment and readable storage medium
CN114881616A (en) Business process execution method and device, electronic equipment and storage medium
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN114844844A (en) Delay message processing method, device, equipment and storage medium
CN114491047A (en) Multi-label text classification method and device, electronic equipment and storage medium
CN113722533A (en) Information pushing method and device, electronic equipment and readable storage medium
CN115687384A (en) UUID (user identifier) identification generation method, device, equipment and storage medium
CN114547011A (en) Data extraction method and device, electronic equipment and storage medium
CN113918296A (en) Model training task scheduling execution method and device, electronic equipment and storage medium
CN114185588A (en) Incremental package generation method, device, equipment and storage medium
CN113704616B (en) Information pushing method and device, electronic equipment and readable storage medium
CN115174698B (en) Market data decoding method, device, equipment and medium based on table entry index
CN115225489B (en) Dynamic control method for queue service flow threshold, electronic equipment and storage medium
CN115174691B (en) Big data loading method, device, equipment and medium based on page request
CN113452768A (en) Data reminding method, device, equipment and storage medium based on associated equipment
CN115033605A (en) Data query method and device, electronic equipment and storage medium
CN114942855A (en) Interface calling method and device, electronic equipment and storage medium
CN115225458A (en) Alarm notification method, alarm notification device, electronic equipment and storage medium
CN114840268A (en) Service code execution method and device, electronic equipment and storage medium
CN115409581A (en) Product recommendation method, device, equipment and medium based on user behavior configuration
CN114841129A (en) Data import method and device, electronic equipment and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220104

RJ01 Rejection of invention patent application after publication