A data transmission method, device, terminal device and storage medium
By formulating a traffic balancing strategy based on the priority of business data packets, the bandwidth allocation problem of multiple terminal devices in scenarios such as video conferencing was solved, ensuring the normal transmission of important services.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HAINAN SHILIAN COMM TECH CO LTD
- Filing Date
- 2022-08-19
- Publication Date
- 2026-06-23
Smart Images

Figure CN115529279B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, and in particular to a data transmission method, apparatus, terminal device, and storage medium. Background Technology
[0002] With the rapid development of video information technology, video information has gradually become increasingly important. Video conferencing, video teaching, two-way video communication, and other forms of video communication have become widely used in people's work, life, and study.
[0003] During video conferencing, some participating terminals need to send video data, while others need to join the video conference. This requires not only the transmission of video packets but also heartbeat packets or pairing packets. If there are many terminals transmitting video and many joining terminals, the network bandwidth cannot support the business. How to allocate traffic among multiple terminals performing different services is an urgent problem to be solved. Summary of the Invention
[0004] In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, apparatus, terminal device, and storage medium that overcomes or at least partially solves the above problems.
[0005] In a first aspect, embodiments of the present invention provide a data transmission method, the method comprising:
[0006] Retrieve multiple types of business data packets currently being processed;
[0007] Based on the priority of the service type of the service data packet, a traffic balancing strategy corresponding to the currently running service is determined; the traffic balancing strategy is used to ensure that the preset service runs normally.
[0008] The traffic balancing strategy is sent to each sending device;
[0009] Receive service data packets sent by each of the aforementioned sending devices using the traffic balancing strategy.
[0010] Optionally, the traffic balancing strategy includes at least a multimedia data transmission strategy and a signaling data transmission strategy; and the multimedia data transmission strategy has a higher priority than the signaling data transmission strategy.
[0011] The multimedia data transmission strategy is to send multimedia data packets using the maximum transmission capacity of service data packets; the signaling data transmission strategy is to send signaling data packets when there is remaining bandwidth, and the signaling data packets include at least one or more of heartbeat data packets and pairing data packets.
[0012] Optionally, receiving the service data packets sent by each of the sending devices using the traffic balancing strategy includes:
[0013] Receive multimedia data packets sent by the sending device using the multimedia data sending strategy;
[0014] and / or
[0015] Receive signaling data packets sent by the sending device using the signaling data transmission strategy.
[0016] Optionally, receiving the multimedia data packets sent by the sending device using the multimedia data transmission strategy includes:
[0017] If the sending device determines that the size of the multimedia data packet to be sent meets the maximum sending capacity, it receives the multimedia data packet with the maximum sending capacity sent by the sending device.
[0018] Optionally, the method further includes:
[0019] When the sending device determines that the size of the multimedia data packet to be sent does not meet the maximum sending capacity, it fills the multimedia data packet to be sent to obtain a filled multimedia data packet that meets the maximum sending capacity, and the receiving device receives the filled multimedia data packet that meets the maximum sending capacity sent by the sending device.
[0020] Optionally, the method further includes:
[0021] When a multimedia data packet sent by a third-party device is detected, if the multimedia data packet does not meet the traffic balancing strategy, the multimedia data packet sent by the third-party device will not be accepted.
[0022] Optionally, receiving the service data packets sent by each of the sending devices using the traffic balancing strategy includes:
[0023] The multimedia data packets received from the sending device are parsed to obtain service data corresponding to the sending device, so that the sending device can execute the service data.
[0024] Secondly, embodiments of the present invention provide a data transmission apparatus, the apparatus comprising:
[0025] The acquisition module is used to acquire multiple types of business data packets currently being processed.
[0026] The determining module is used to determine a traffic balancing strategy corresponding to the currently running service based on the priority of the service type of the service data packet; the traffic balancing strategy is used to ensure that the preset service runs normally.
[0027] The sending strategy module is used to send the traffic balancing strategy to each sending end device;
[0028] The receiving module is used to receive service data packets sent by each of the sending devices using the traffic balancing strategy.
[0029] Optionally, the traffic balancing strategy includes at least a multimedia data transmission strategy and a signaling data transmission strategy; and the multimedia data transmission strategy has a higher priority than the signaling data transmission strategy.
[0030] The multimedia data transmission strategy is to send multimedia data packets using the maximum transmission capacity of service data packets; the signaling data transmission strategy is to send signaling data packets when there is remaining bandwidth, and the signaling data packets include at least one or more of heartbeat data packets and pairing data packets.
[0031] Optionally, the receiving module is used to:
[0032] Receive multimedia data packets sent by the sending device using the multimedia data sending strategy;
[0033] and / or
[0034] Receive signaling data packets sent by the sending device using the signaling data transmission strategy.
[0035] Optionally, the receiving module is used to:
[0036] If the sending device determines that the size of the multimedia data packet to be sent meets the maximum sending capacity, it receives the multimedia data packet with the maximum sending capacity sent by the sending device.
[0037] Optionally, the sending module is used to:
[0038] When the sending device determines that the size of the multimedia data packet to be sent does not meet the maximum sending capacity, it fills the multimedia data packet to be sent to obtain a filled multimedia data packet that meets the maximum sending capacity, and the receiving device receives the filled multimedia data packet that meets the maximum sending capacity sent by the sending device.
[0039] Optionally, the sending module is used to:
[0040] When a multimedia data packet sent by a third-party device is detected, if the multimedia data packet does not meet the traffic balancing strategy, the multimedia data packet sent by the third-party device will not be accepted.
[0041] Optionally, the receiving module is used to:
[0042] The multimedia data packets received from the sending device are parsed to obtain service data corresponding to the sending device, so that the sending device can execute the service data.
[0043] Thirdly, embodiments of the present invention provide a terminal device, including: at least one processor and a memory;
[0044] The memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the first aspect.
[0045] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed, implements the data transmission method provided in the first aspect.
[0046] The embodiments of the present invention have the following advantages:
[0047] The data transmission method, apparatus, terminal device, and storage medium provided in this invention acquire multiple types of service data packets currently performing a service; determine a traffic balancing strategy corresponding to the currently performing service based on the priority of the service types of the service data packets; send the traffic balancing strategy to each sending end device; and receive service data packets sent by each sending end device using the traffic balancing strategy. This invention formulates different traffic balancing strategies for different service data packets. These traffic balancing strategies are used to ensure that a preset service can proceed normally. Then, each sending end device and receiving end device sends data packets according to the traffic balancing strategy. Thus, through the formulated traffic balancing strategy, the preset service can proceed normally without being affected by bandwidth limitations. Attached Figure Description
[0048] Figure 1 This is a flowchart illustrating the steps of an embodiment of the data transmission method of the present invention;
[0049] Figure 2 This is a flowchart illustrating the steps of another embodiment of the data transmission method of the present invention;
[0050] Figure 3 This is a flowchart illustrating the steps of another embodiment of the data transmission method of the present invention;
[0051] Figure 4 This is a flowchart illustrating the steps of another embodiment of the data transmission method of the present invention;
[0052] Figure 5 This is a structural block diagram of an embodiment of a data transmission device according to the present invention;
[0053] Figure 6This is a schematic diagram of the structure of a terminal device according to the present invention. Detailed Implementation
[0054] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0055] One embodiment of the present invention provides a data transmission method for transmitting data of different types of business data packets. The execution subject of this embodiment is a data transmission device, which is installed on a terminal device, wherein the terminal device can be a computer, tablet computer, or mobile phone terminal, etc.
[0056] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a data transmission method according to the present invention. The method may specifically include the following steps:
[0057] S101. Obtain multiple types of business data packets currently being processed;
[0058] Specifically, when conducting business between terminal devices, such as video conferencing, joining a meeting, or video calling, different types of business data packets will appear in the network link. If the network bandwidth cannot meet the data transmission requirements, data transmission cannot be carried out normally, affecting the normal operation of the business. To address this, this embodiment of the invention provides a data transmission method. For the receiving device, the receiving device acquires multiple types of business data packets currently being used for business, such as acquiring multimedia data packets, or acquiring heartbeat data packets, pairing data packets, etc.
[0059] S102. Determine the traffic balancing strategy corresponding to the currently running service based on the priority of the service type of the service data packet; the traffic balancing strategy is used to ensure that the preset service runs normally.
[0060] Specifically, in order to ensure the operation of some important services, the receiving device determines the priority of different service types. For example, it prioritizes certain services while other services can wait until the network condition is good before transmitting data. In this way, the receiving device determines the traffic balancing strategy corresponding to the currently running service based on the priority of the service type of the service data packet. This traffic balancing strategy is used to ensure that the preset services are running normally.
[0061] For example, the service data packets obtained by the receiving device include multimedia data packets and heartbeat data packets. In order to ensure that multimedia services, such as video calls and video conferencing, are performed normally, the traffic balancing strategy prioritizes the allocation of network traffic to high-priority video calls or video conferencing. In this way, video calls and video conferencing can be performed normally, and then low-priority services are processed.
[0062] S103. Send the traffic balancing strategy to each sending device;
[0063] Specifically, the receiving device sends the traffic balancing strategy to each sending device, which then sends service data packets according to the strategy. The traffic balancing strategy includes at least the priority of the service type and the maximum amount of data to be sent.
[0064] S104. Receive service data packets sent by each sending device using a traffic balancing strategy.
[0065] Specifically, after obtaining the traffic balancing strategy, the sending device sends service data packets according to the traffic balancing strategy, and the receiving device receives the service data packets sent by the sending device using the traffic balancing strategy. In this way, it can be ensured that high-priority services can proceed normally.
[0066] The data transmission method provided in this invention involves: acquiring multiple types of service data packets currently being processed; determining a traffic balancing strategy corresponding to the current service based on the priority of the service types of the service data packets; sending the traffic balancing strategy to each sending device; and receiving service data packets sent by each sending device using the traffic balancing strategy. This invention formulates different traffic balancing strategies for different service data packets, which are used to ensure that a preset service can proceed normally. Then, each sending device and receiving device sends data packets according to the traffic balancing strategy. Thus, through the formulated traffic balancing strategy, the preset service can proceed normally without being affected by bandwidth limitations.
[0067] Another embodiment of the present invention further supplements the data transmission method provided in the above embodiments.
[0068] like Figure 2 The diagram illustrates a flowchart of another embodiment of the data transmission method of the present invention, which includes:
[0069] S201. Obtain multiple types of service data packets currently being processed;
[0070] Specifically, for the receiving device, the receiving device acquires multiple types of service data packets currently being used for the service, such as acquiring multimedia data packets, or acquiring heartbeat data packets, pairing data packets, etc.
[0071] S202. Determine the traffic balancing strategy corresponding to the currently running service based on the priority of the service type of the service data packet; the traffic balancing strategy is used to ensure that the preset service runs normally.
[0072] Specifically, in order to ensure the operation of some important services, the receiving device determines the priority of different service types. For example, it prioritizes certain services while other services can wait until the network condition is good before transmitting data. In this way, the receiving device determines the traffic balancing strategy corresponding to the currently running service based on the priority of the service type of the service data packet. This traffic balancing strategy is used to ensure that the preset services are running normally.
[0073] S203. Send the traffic balancing strategy to each sending device;
[0074] Specifically, the traffic balancing strategy includes at least a multimedia data transmission strategy and a signaling data transmission strategy; among which, the multimedia data transmission strategy has a higher priority than the signaling data transmission strategy; alternatively, the signaling data transmission strategy may have a higher priority than the multimedia data transmission strategy, which can be set according to business needs.
[0075] The multimedia data transmission strategy is to send multimedia data packets using the maximum transmission capacity of service data packets; the signaling data transmission strategy is to send signaling data packets when there is remaining bandwidth, and the signaling data packets include at least one or more of heartbeat data packets and pairing data packets.
[0076] Specifically, to ensure the normal operation of services, when setting traffic balancing strategies, multimedia services should be given priority. This will not affect the normal operation of video calls or video conferencing. In practice, a maximum sending capacity needs to be set for multimedia services. That is, if the sending and receiving devices use the maximum sending capacity to send data packets, the data traffic can be occupied first, so that other service data packets cannot be diverted, thus ensuring the normal operation of multimedia services.
[0077] S204. If the sending device determines that the size of the multimedia data packet to be sent meets the preset sending capacity, the receiving device sends the multimedia data packet using the multimedia data sending strategy.
[0078] Specifically, when the sending device obtains the traffic balancing strategy, it sends data packets according to the traffic balancing strategy. If the traffic balancing strategy is set to prioritize sending multimedia data packets, the sending device adopts the multimedia data sending strategy and judges the size of the data packets to be sent. That is, the size of each data packet sent is the preset sending capacity, which can be the maximum sending capacity or the sending capacity that meets the conditions. In other words, if the sending device judges that the size of the multimedia data packet to be sent is the maximum sending capacity or the sending capacity that meets the conditions, it will send the multimedia data packet to be sent to the receiving device.
[0079] S205. When the sending device determines that the size of the multimedia data packet to be sent does not meet the preset sending capacity, it fills the multimedia data packet to be sent to obtain a filled multimedia data packet that meets the preset sending capacity, and the receiving device receives the filled multimedia data packet that meets the preset sending capacity sent by the sending device.
[0080] Specifically, if the sending device determines that the size of the multimedia data packet to be sent does not meet the preset sending capacity (i.e., it is less than the maximum value or less than the preset value), the sending device will pad the data packet to obtain a padded multimedia data packet that meets the preset sending capacity. The sending device will then send the padded multimedia data packet, which meets the sending capacity, to the receiving device. In this way, the sending and receiving devices prioritize using the current network bandwidth by sending data packets of the preset capacity, preventing other transmission links from consuming network bandwidth.
[0081] Specifically, the padding can be done at any position in the data packet, such as at the header, middle, or end of the data packet. The padding content can be any character, an empty character, or a preset character. In this embodiment, no specific limitation is made.
[0082] S206. Receive signaling data packets sent by the sending device using the signaling data transmission strategy.
[0083] Specifically, during multimedia data transmission between the sending and receiving devices, if there is remaining network bandwidth, signaling data packets can be sent using this remaining bandwidth. That is, the sending device can employ a signaling data transmission strategy to send signaling data packets to the receiving device. In other words, the receiving device prioritizes receiving multimedia data packets and then receives signaling data packets. This allows for traffic balancing of various service data packets in the network link, ensuring that each service can operate normally. When sending signaling data packets, it may also be necessary to pad the signaling data packets before transmission. This conserves network bandwidth and prevents it from being used by other services.
[0084] S207. When a multimedia data packet sent by a third-party device is detected, if the multimedia data packet does not meet the traffic balancing policy, the multimedia data packet sent by the third-party device shall not be accepted.
[0085] Since the network link has already been configured with a traffic balancing strategy, if a third device suddenly sends a multimedia data packet in the network link, the multimedia data packet no longer meets the traffic balancing strategy. Therefore, the receiving device will no longer receive the multimedia data packet sent by the third-party device and cannot occupy the current network bandwidth.
[0086] S208. Parse the service data packet sent by the receiving sending device to obtain the service data corresponding to the sending device, so that the sending device can execute the service data.
[0087] Specifically, after receiving multimedia data packets and signaling data packets sent by various sending devices, the receiving device parses the multimedia data packets and signaling data packets to obtain the actual service data and deletes the padding. In this way, the sending and receiving devices can execute services based on the parsed service data.
[0088] Figure 3 This is a flowchart illustrating the steps of another embodiment of the data transmission method of the present invention, which includes:
[0089] 1. The terminal reserves the first network bandwidth for high-priority devices based on the current network bandwidth. That is, the device sends the maximum amount of data packets to the terminal. If the bandwidth is not reached, the data is padded and sent again. This can be an Internet terminal device or a video network terminal device.
[0090] Data transmission process: First, the data to be sent is placed into the data block to be sent. Then, it is determined whether the data size has reached the maximum value. If it has, it is sent directly. If it has not reached the maximum value, it needs to be filled to the maximum value before it can be sent.
[0091] 2. Reserve a second network bandwidth for devices with lower priority, which can be used to send heartbeat packets and pairing packets, etc.
[0092] 3. If an external device sends a large data packet, such as a video packet, to the terminal, it cannot be sent due to insufficient network bandwidth.
[0093] The embodiments of the present invention ensure that certain devices can function normally, such as conducting meetings and sending meeting videos.
[0094] Figure 4 This is a flowchart of another embodiment of the data transmission method of the present invention; this process is a data receiving process. After receiving multimedia data, the terminal device needs to perform a data parsing operation to extract the actual size of the data and then pass it into the corresponding business logic for corresponding processing.
[0095] Because the bandwidth of the device data channel is fixed, the maximum number of devices that can use a channel is theoretically also fixed. Each device pre-occupies the data bandwidth by sending the maximum data traffic packet. That is, when the data size is insufficient, a special string is used to fill it. By sending any data packet (such as a heartbeat packet or a pairing packet) in the manner of the maximum data traffic packet, the bandwidth can be occupied to a large extent.
[0096] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0097] The data transmission method provided in this invention involves: acquiring multiple types of service data packets currently being processed; determining a traffic balancing strategy corresponding to the current service based on the priority of the service types of the service data packets; sending the traffic balancing strategy to each sending device; and receiving service data packets sent by each sending device using the traffic balancing strategy. This invention formulates different traffic balancing strategies for different service data packets, which are used to ensure that a preset service can proceed normally. Then, each sending device and receiving device sends data packets according to the traffic balancing strategy. Thus, through the formulated traffic balancing strategy, the preset service can proceed normally without being affected by bandwidth limitations.
[0098] Another embodiment of the present invention provides a data transmission apparatus for performing the data transmission method provided in the above embodiments.
[0099] Reference Figure 5 The diagram illustrates a structural block diagram of an embodiment of a data transmission device according to the present invention. This device can be applied in a video network and specifically includes the following modules: an acquisition module 501, a determination module 502, a transmission strategy module 503, and a receiving module 504, wherein:
[0100] The acquisition module 501 is used to acquire multiple types of business data packets currently being processed;
[0101] The determination module 502 is used to determine the traffic balancing strategy corresponding to the currently running service based on the priority of the service type of the service data packet;
[0102] The sending strategy module 503 is used to send the traffic balancing strategy to each sending end device;
[0103] The receiving module 504 is used to receive service data packets sent by each sending device using a traffic balancing strategy.
[0104] The data transmission apparatus provided in this embodiment of the invention acquires multiple types of service data packets currently performing a service; determines a traffic balancing strategy corresponding to the currently performing service based on the priority of the service types of the service data packets; sends the traffic balancing strategy to each sending end device; and receives service data packets sent by each sending end device using the traffic balancing strategy. This embodiment of the invention formulates different traffic balancing strategies for different service data packets. This traffic balancing strategy is used to ensure that a preset service can proceed normally. Then, each sending end device and receiving end device sends data packets according to the traffic balancing strategy. In this way, through the formulated traffic balancing strategy, the preset service can proceed normally without being affected by bandwidth limitations.
[0105] Another embodiment of the present invention further provides a description of the data transmission device provided in the above embodiments.
[0106] Optionally, the traffic balancing strategy includes at least a multimedia data transmission strategy and a signaling data transmission strategy; and the multimedia data transmission strategy has a higher priority than the signaling data transmission strategy.
[0107] The multimedia data transmission strategy is to send multimedia data packets using the maximum transmission capacity of service data packets; the signaling data transmission strategy is to send signaling data packets when there is remaining bandwidth, and the signaling data packets include at least one or more of heartbeat data packets and pairing data packets.
[0108] Optionally, the receiving module is used for:
[0109] The receiving and sending device uses a multimedia data transmission strategy to send multimedia data packets;
[0110] and / or
[0111] The receiving end device sends signaling data packets using a signaling data transmission strategy.
[0112] Optionally, the receiving module is used for:
[0113] If the sending device determines that the size of the multimedia data packet to be sent meets the preset sending capacity, it receives the multimedia data packet with the maximum sending capacity sent by the sending device.
[0114] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.
[0115] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0116] The data transmission apparatus provided in this embodiment of the invention acquires multiple types of service data packets currently performing a service; determines a traffic balancing strategy corresponding to the currently performing service based on the priority of the service types of the service data packets; sends the traffic balancing strategy to each sending end device; and receives service data packets sent by each sending end device using the traffic balancing strategy. This embodiment of the invention formulates different traffic balancing strategies for different service data packets. This traffic balancing strategy is used to ensure that a preset service can proceed normally. Then, each sending end device and receiving end device sends data packets according to the traffic balancing strategy. In this way, through the formulated traffic balancing strategy, the preset service can proceed normally without being affected by bandwidth limitations.
[0117] In another embodiment of the present invention, a terminal device is provided for executing the data transmission method provided in the above embodiments.
[0118] Figure 6 This is a schematic diagram of the structure of a terminal device according to the present invention, such as... Figure 6 As shown, the terminal device includes: at least one processor 601 and a memory 602;
[0119] The memory stores a computer program; at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the above embodiments.
[0120] The terminal device provided in this embodiment acquires multiple types of service data packets for the currently running service; determines a traffic balancing strategy corresponding to the currently running service based on the priority of the service types of the service data packets; sends the traffic balancing strategy to each sending end device; and receives service data packets sent by each sending end device using the traffic balancing strategy. In this embodiment, different traffic balancing strategies are formulated for different service data packets. This traffic balancing strategy is used to ensure that the preset service can proceed normally. Then, each sending end device and receiving end device sends data packets according to the traffic balancing strategy. In this way, through the formulated traffic balancing strategy, the preset service can proceed normally without being affected by bandwidth.
[0121] Another embodiment of this application provides a computer-readable storage medium storing a computer program, which, when executed, implements the data transmission method provided in any of the above embodiments.
[0122] According to the computer-readable storage medium of this embodiment, multiple types of service data packets of the currently performing service are acquired; a traffic balancing strategy corresponding to the currently performing service is determined according to the priority of the service type of the service data packets; the traffic balancing strategy is sent to each sending end device; and service data packets sent by each sending end device using the traffic balancing strategy are received. In this embodiment of the invention, different traffic balancing strategies are formulated according to different service data packets. The traffic balancing strategy is used to enable the preset service to proceed normally. Then, each sending end device and receiving end device sends data packets according to the traffic balancing strategy. In this way, through the formulated traffic balancing strategy, the preset service can proceed normally without being affected by bandwidth.
[0123] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0124] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0125] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing electronic device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0126] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing electronic device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device to cause a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable electronic device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0128] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0129] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or electronic device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or electronic device that includes said element.
[0130] The present invention has provided a detailed description of a data transmission method and a data transmission device. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will know that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A data transmission method, characterized by, The method comprises: obtaining a plurality of types of service data packets of a current service; determining a traffic balancing strategy corresponding to the current service according to a priority of a service type of the service data packets; the traffic balancing strategy is used for enabling a preset service to proceed normally; sending the traffic balancing strategy to each sending terminal device; the traffic balancing strategy at least comprises a multimedia data sending strategy and a signaling data sending strategy; and a priority of the multimedia data sending strategy is higher than that of the signaling data sending strategy; the multimedia data sending strategy is to send multimedia data packets by using a maximum sending capacity of the service data packets; and the signaling data sending strategy is to send signaling data packets in a case where there is remaining bandwidth; the signaling data packets at least comprise one or more of heartbeat data packets and pairing data packets; receiving service data packets sent by each sending terminal device by using the traffic balancing strategy; the receiving service data packets sent by each sending terminal device by using the traffic balancing strategy comprises: in a case where the sending terminal device judges that a size of multimedia data packets to be sent meets the maximum sending capacity, receiving the multimedia data packets of the maximum sending capacity sent by the sending terminal device; the method further comprises: in a case where the sending terminal device judges that the size of the multimedia data packets to be sent does not meet the maximum sending capacity, filling the multimedia data packets to be sent to obtain filled multimedia data packets meeting the maximum sending capacity, and receiving the filled multimedia data packets meeting the maximum sending capacity sent by the sending terminal device.
2. The method of claim 1, wherein, the receiving service data packets sent by each sending terminal device by using the traffic balancing strategy comprises: receiving multimedia data packets sent by the sending terminal device by using the multimedia data sending strategy; and / or receiving signaling data packets sent by the sending terminal device by using the signaling data sending strategy.
3. The method of claim 1, wherein, the method further comprises: when detecting multimedia data packets sent by a third-party device, if the multimedia data packets do not meet the traffic balancing strategy, not receiving the multimedia data packets sent by the third-party device.
4. The method of claim 1, wherein, the receiving service data packets sent by each sending terminal device by using the traffic balancing strategy comprises: analyzing the received multimedia data packets sent by the sending terminal device to obtain service data corresponding to the sending terminal device, so that the sending terminal device executes the service data.
5. A data transmission apparatus characterized by comprising: The apparatus comprises: an obtaining module, configured to obtain a plurality of types of service data packets of a current service; a determining module, configured to determine a traffic balancing strategy corresponding to the current service according to a priority of a service type of the service data packets; the traffic balancing strategy is used for enabling a preset service to proceed normally; A transmission strategy module is used to transmit the traffic balancing strategy to each transmitting end device; the traffic balancing strategy includes at least a multimedia data transmission strategy and a signaling data transmission strategy; and the multimedia data transmission strategy has a higher priority than the signaling data transmission strategy; the multimedia data transmission strategy is to transmit multimedia data packets using the maximum transmission capacity of service data packets; the signaling data transmission strategy is to transmit signaling data packets when there is remaining bandwidth, and the signaling data packets include at least one or more of heartbeat data packets and pairing data packets; The receiving module is used to receive service data packets sent by each of the sending devices using the traffic balancing strategy; The receiving module is configured to: receive the multimedia data packet with the maximum sending capacity sent by the sending device when the sending device determines that the size of the multimedia data packet to be sent meets the maximum sending capacity; The receiving module is further configured to: when the sending device determines that the size of the multimedia data packet to be sent does not meet the maximum sending capacity, fill the multimedia data packet to be sent to obtain a filled multimedia data packet that meets the maximum sending capacity, and the receiving device receives the filled multimedia data packet that meets the maximum sending capacity sent by the sending device.
6. A terminal device, comprising: include: At least one processor and memory; The memory stores computer programs; The at least one processor executes the computer program stored in the memory to implement the data transmission method according to any one of claims 1-4.
7. A computer readable storage medium characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the data transmission method according to any one of claims 1-4.